/*
Theme Name: Online MMJ Card
Theme URI: https://onlinemmjcard.com/
Author: Online MMJ Card Healthcare Team
Author URI: https://onlinemmjcard.com/
Description: Complete, production-ready Medical Marijuana Card & 420 Evaluations Telehealth WordPress Theme. Features dynamic local city landing page templates, state law guides, service pages, qualifying condition hubs, native LocalBusiness JSON-LD schema, Rank Math & Yoast SEO compatibility, and Open Sans typography.
Version: 2.0.0
Requires at least: 5.8
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: online-mmj-card
Tags: medical, clinic, telehealth, cannabis, local-seo, custom-menu, page-templates, full-width-template
*/

/* Base reset to ensure seamless edge-to-edge layout with Open Sans */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100vh;
  box-sizing: border-box;
  font-family: 'Open Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  background-color: #ffffff;
  color: #0f172a;
  line-height: 1.6;
}

*, *:before, *:after {
  box-sizing: inherit;
}

/* Base typography */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Open Sans', sans-serif;
  color: #0f172a;
  font-weight: 800;
  line-height: 1.25;
  margin-top: 0;
}

a {
  color: #16a34a;
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: #15803d;
  text-decoration: underline;
}

/* Layout container helper */
.mmj-container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Breadcrumb navigation styling */
.mmj-breadcrumbs {
  font-size: 0.8125rem;
  color: #64748b;
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  background-color: #f8fafc;
}

.mmj-breadcrumbs a {
  color: #64748b;
}

.mmj-breadcrumbs a:hover {
  color: #16a34a;
}

.mmj-breadcrumbs .separator {
  margin: 0 0.5rem;
  color: #cbd5e1;
}

.mmj-breadcrumbs .current {
  color: #0f172a;
  font-weight: 700;
}

/* Local page hero and card helpers */
.mmj-badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mmj-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: #16a34a;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  box-shadow: 0 4px 6px -1px rgba(22, 163, 74, 0.2);
  transition: all 0.2s ease;
}

.mmj-btn-primary:hover {
  background-color: #15803d;
  box-shadow: 0 10px 15px -3px rgba(22, 163, 74, 0.3);
  transform: translateY(-1px);
}

.mmj-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background-color: #f1f5f9;
  color: #1e293b !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.mmj-btn-secondary:hover {
  background-color: #e2e8f0;
}

/* Card components */
.mmj-card {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.mmj-card:hover {
  border-color: #16a34a;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.07);
}

/* Content typography inside WP editor */
.entry-content {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: #334155;
}

.entry-content h2 {
  font-size: 1.75rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.entry-content h3 {
  font-size: 1.25rem;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content ul, .entry-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.entry-content li {
  margin-bottom: 0.5rem;
}

/* React root anchor */
#online-mmj-card-root {
  min-height: 100vh;
  width: 100%;
}

/* Prevent duplicate static WordPress PHP header, banner, progress bar, breadcrumbs, or footer when React SPA is mounted */
body.online-mmj-spa-active > .online-mmj-static-progress,
body.online-mmj-spa-active > .online-mmj-static-banner,
body.online-mmj-spa-active > .online-mmj-static-header,
body.online-mmj-spa-active > .online-mmj-static-footer,
body.online-mmj-spa-active > .mmj-breadcrumbs,
body.online-mmj-spa-active .mmj-breadcrumbs,
body.online-mmj-spa-active > header.site-header,
body.online-mmj-spa-active > header.online-mmj-header,
body.online-mmj-spa-active > footer.site-footer,
body.online-mmj-spa-active #mmj-scroll-progress,
body.online-mmj-spa-active > div.bg-slate-50:not(#online-mmj-card-root) {
  display: none !important;
}

/* Hide any static sibling elements around #online-mmj-card-root inside WordPress templates */
body.online-mmj-spa-active main > *:not(#online-mmj-card-root):not(:has(#online-mmj-card-root)),
body.online-mmj-spa-active article > *:not(#online-mmj-card-root):not(:has(#online-mmj-card-root)),
body.online-mmj-spa-active .entry-content > *:not(#online-mmj-card-root):not(:has(#online-mmj-card-root)) {
  display: none !important;
}

/* Zero out padding and constraints when mounting React inside WordPress template containers */
body.online-mmj-spa-active main,
body.online-mmj-spa-active article,
body.online-mmj-spa-active .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  border: none !important;
  background: transparent !important;
}

noscript .online-mmj-static-banner,
noscript .online-mmj-static-header,
noscript .online-mmj-static-footer {
  display: block !important;
}

/* ==========================================================================
   Universal Page Builder & Editor Component Classes (Elementor, Divi, Gutenberg)
   ========================================================================== */
.mmj-hero-section {
  padding: 2.5rem 1rem 3.5rem;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 50%, #ffffff 100%);
  border-bottom: 1px solid #f1f5f9;
}

.mmj-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  max-width: 1280px;
  margin: 0 auto;
  align-items: center;
}

@media (min-width: 1024px) {
  .mmj-hero-grid {
    grid-template-columns: 7fr 5fr;
  }
}

.mmj-badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #065f46;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.mmj-metric-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
}

.mmj-practice-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1.5rem;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.05), 0 8px 10px -6px rgba(0,0,0,0.01);
  padding: 1.5rem;
}

@media (min-width: 640px) {
  .mmj-practice-card {
    padding: 2rem;
  }
}

.mmj-stats-proof-bar {
  background: #0f172a;
  color: #ffffff;
  padding: 2rem 1rem;
}

.mmj-stats-proof-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

@media (min-width: 768px) {
  .mmj-stats-proof-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mmj-feature-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
}

.mmj-dispensary-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  padding: 1rem 0.75rem;
  text-align: center;
}

.mmj-step-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
}

.mmj-pricing-card {
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}

.mmj-pricing-card.featured {
  border-color: #16a34a;
  position: relative;
  box-shadow: 0 10px 15px -3px rgba(22,163,74,0.1);
}

.mmj-condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: #1e293b;
}

.mmj-faq-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.mmj-faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 800;
  color: #0f172a;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: transparent;
  border: none;
}

.mmj-faq-question:hover {
  color: #16a34a;
}

.mmj-faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.8125rem;
  color: #475569;
  line-height: 1.6;
}

.mmj-review-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px 0 rgba(0,0,0,0.05);
}

.mmj-cta-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  border-radius: 1.5rem;
  padding: 3rem 1.5rem;
  text-align: center;
}

/* Buttons */
.mmj-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  background-color: #008f58;
  color: #ffffff !important;
  font-size: 0.8125rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.75rem;
  text-decoration: none !important;
  box-shadow: 0 4px 6px -1px rgba(0, 143, 88, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.mmj-btn-primary:hover {
  background-color: #007a4a;
  box-shadow: 0 6px 12px -2px rgba(0, 143, 88, 0.35);
  transform: translateY(-1px);
}

.mmj-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.5rem;
  background-color: #f1f5f9;
  color: #1e293b !important;
  font-size: 0.8125rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 0.75rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid #e2e8f0;
}

.mmj-btn-secondary:hover {
  background-color: #e2e8f0;
  color: #0f172a !important;
}

/* WordPress Admin Bar Compatibility: ensure sticky header and top banner are not hidden under admin bar */
body.admin-bar header.sticky,
.admin-bar header.sticky,
.admin-bar #online-mmj-card-root header {
  top: 32px !important;
}

@media screen and (max-width: 782px) {
  body.admin-bar header.sticky,
  .admin-bar header.sticky,
  .admin-bar #online-mmj-card-root header {
    top: 46px !important;
  }
}

/* ==========================================================================
   Gutenberg & Page Builder Alignment & Layout Styles
   ========================================================================== */
.alignwide {
  margin-left: -4rem;
  margin-right: -4rem;
  max-width: calc(100% + 8rem);
  width: calc(100% + 8rem);
}

.alignfull {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  width: 100vw;
}

@media (max-width: 768px) {
  .alignwide {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
    width: 100%;
  }
}

/* Page Builder Full Width Canvas */
.page-builder-canvas,
.page-builder-fullwidth-canvas,
.builder-fullwidth {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Brand Palette Helpers */
.has-primary-emerald-color { color: #16a34a !important; }
.has-primary-emerald-background-color { background-color: #16a34a !important; }
.has-dark-forest-color { color: #15803d !important; }
.has-dark-forest-background-color { background-color: #15803d !important; }
.has-deep-navy-color { color: #0f172a !important; }
.has-deep-navy-background-color { background-color: #0f172a !important; }
.has-emerald-tint-color { color: #ecfdf5 !important; }
.has-emerald-tint-background-color { background-color: #ecfdf5 !important; }
.has-warning-amber-color { color: #d97706 !important; }
.has-warning-amber-background-color { background-color: #d97706 !important; }
.has-white-color { color: #ffffff !important; }
.has-white-background-color { background-color: #ffffff !important; }

