/* ═══════════════════════════════════════════
   Life Charge Chiropractic — Shared Page CSS
   ui_kits/website/shared.css
   ═══════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lora:ital,wght@0,400;1,400;1,600&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --red: #ED3237; --yellow: #FFCC29; --charcoal: #606062;
  --deep: #2D2D2F; --cream: #FFF7E8; --sand: #EADDC8;
  --sage: #AEBFA3; --white: #fff; --border: #E5E5E5;
  --grad: linear-gradient(135deg, #ED3237 0%, #F47B20 50%, #FFCC29 100%);
  --font: 'Montserrat', sans-serif; --serif: 'Lora', Georgia, serif;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); color: var(--deep); background: var(--white); }

/* NAV */
nav { position: sticky; top: 0; z-index: 200; background: rgba(255,255,255,0.98); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 0 48px; height: 68px; max-width: 1440px; margin: 0 auto; }
.nav-logo img { height: 40px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a { font-size: 12px; font-weight: 700; color: var(--charcoal); text-decoration: none; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px; border-radius: 6px; transition: background 0.15s, color 0.15s; }
.nav-links a:hover, .nav-links a.active { background: var(--cream); color: var(--red); }
.nav-cta { background: var(--red); color: white; font-family: var(--font); font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 6px; padding: 11px 20px; cursor: pointer; margin-left: 12px; transition: background 0.2s, transform 0.15s; white-space: nowrap; }
.nav-cta:hover { background: #D42B30; transform: translateY(-1px); }

/* BUTTONS */
.btn-primary { background: var(--red); color: white; font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 6px; padding: 15px 28px; cursor: pointer; transition: background 0.2s, transform 0.15s, box-shadow 0.2s; display: inline-block; text-decoration: none; }
.btn-primary:hover { background: #D42B30; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(237,50,55,0.30); }
.btn-ghost { background: transparent; color: var(--deep); font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; border: 2px solid var(--border); border-radius: 6px; padding: 13px 24px; cursor: pointer; transition: border-color 0.2s, background 0.2s; text-decoration: none; display: inline-block; }
.btn-ghost:hover { border-color: var(--deep); background: var(--cream); }
.btn-grad { background: var(--grad); color: white; font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 6px; padding: 15px 28px; cursor: pointer; transition: opacity 0.2s, transform 0.15s; }
.btn-grad:hover { opacity: 0.9; transform: translateY(-1px); }

/* SECTION UTILITIES */
.sw { padding: 88px 48px; }
.sw-sm { padding: 64px 48px; }
.inner { max-width: 1200px; margin: 0 auto; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.eyebrow-y { color: var(--yellow); }
.h2 { font-size: clamp(26px, 3vw, 42px); font-weight: 900; line-height: 1.1; letter-spacing: -0.02em; color: var(--deep); margin-bottom: 16px; }
.h2-white { color: white; }
.body-text { font-size: 15px; color: var(--charcoal); line-height: 1.75; }
.body-muted { color: rgba(255,255,255,0.60); }
.legal-note { font-size: 12px; color: rgba(96,96,98,0.75); line-height: 1.6; font-style: italic; margin-top: 18px; }
.legal-note.light { color: rgba(255,255,255,0.45); }

/* PAGE HERO */
.page-hero { min-height: 420px; display: flex; align-items: center; background: var(--deep); position: relative; overflow: hidden; padding: 72px 48px; }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center 30%; opacity: 0.28; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(45,45,47,0.97) 0%, rgba(45,45,47,0.65) 60%, rgba(45,45,47,0.2) 100%); }
.page-hero-inner { max-width: 700px; position: relative; z-index: 2; }
.page-hero-inner .eyebrow { color: var(--yellow); margin-bottom: 14px; }
.page-hero-inner h1 { font-size: clamp(34px, 4.5vw, 58px); font-weight: 900; color: white; letter-spacing: -0.03em; line-height: 1.08; margin-bottom: 18px; }
.page-hero-inner p { font-size: 16px; color: rgba(255,255,255,0.68); line-height: 1.72; max-width: 480px; margin-bottom: 32px; }

/* BREADCRUMB */
.breadcrumb { background: var(--cream); border-bottom: 1px solid var(--sand); padding: 12px 48px; }
.breadcrumb-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--charcoal); }
.breadcrumb-inner a { color: var(--red); text-decoration: none; font-weight: 600; }
.breadcrumb-sep { opacity: 0.4; }

/* TWO-COL LAYOUT */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.col-photo { border-radius: 12px; overflow: hidden; aspect-ratio: 4/3; }
.col-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* SYMPTOM GRID */
.symptom-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 32px; }
.symptom-card { background: var(--cream); border-radius: 10px; padding: 24px; }
.sym-icon { width: 10px; height: 10px; border-radius: 50%; background: var(--grad); margin-bottom: 12px; }
.sym-title { font-size: 14px; font-weight: 700; color: var(--deep); margin-bottom: 6px; }
.sym-body { font-size: 13px; color: var(--charcoal); line-height: 1.6; }

/* NUMBERED POINTS */
.numbered-list { display: flex; flex-direction: column; gap: 0; }
.num-item { display: flex; gap: 20px; padding-bottom: 24px; position: relative; }
.num-item:last-child { padding-bottom: 0; }
.num-item:not(:last-child)::after { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--border); }
.num-circle { width: 36px; height: 36px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; color: white; flex-shrink: 0; }
.num-content { padding-top: 6px; }
.num-title { font-size: 15px; font-weight: 700; color: var(--deep); margin-bottom: 4px; }
.num-body { font-size: 13px; color: var(--charcoal); line-height: 1.65; }

/* CHECK LIST */
.check-list { display: flex; flex-direction: column; gap: 10px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--charcoal); line-height: 1.5; }
.check-dot { width: 18px; height: 18px; border-radius: 50%; background: var(--grad); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.check-dot svg { width: 9px; height: 9px; stroke: white; stroke-width: 2.5; fill: none; }

/* INLINE QUOTE */
.pull-quote { background: var(--deep); border-radius: 12px; padding: 36px 40px; margin: 32px 0; position: relative; overflow: hidden; }
.pull-quote::before { content: '"'; position: absolute; top: -10px; left: 20px; font-family: var(--serif); font-size: 120px; color: rgba(255,255,255,0.05); line-height: 1; }
.pull-quote blockquote { font-family: var(--serif); font-size: 20px; font-style: italic; color: white; line-height: 1.6; position: relative; z-index: 1; }
.pull-quote cite { display: block; font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.45); margin-top: 12px; font-style: normal; letter-spacing: 0.05em; }

/* PAGE CTA BANNER */
.page-cta { background: var(--red); padding: 64px 48px; text-align: center; }
.page-cta h2 { font-size: clamp(24px, 3vw, 38px); font-weight: 900; color: white; letter-spacing: -0.02em; margin-bottom: 12px; }
.page-cta p { font-size: 15px; color: rgba(255,255,255,0.75); margin-bottom: 28px; }
.page-cta .btn-white { background: white; color: var(--red); font-family: var(--font); font-size: 12px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; border: none; border-radius: 6px; padding: 15px 28px; cursor: pointer; transition: opacity 0.2s; }
.page-cta .btn-white:hover { opacity: 0.9; }

/* RELATED PAGES */
.related { background: var(--cream); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
.rel-card { background: white; border-radius: 10px; padding: 24px; border: 1px solid var(--border); text-decoration: none; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; display: block; }
.rel-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); transform: translateY(-2px); border-color: var(--red); }
.rel-label { font-size: 9px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.rel-title { font-size: 15px; font-weight: 700; color: var(--deep); margin-bottom: 6px; line-height: 1.3; }
.rel-body { font-size: 13px; color: var(--charcoal); line-height: 1.6; }

/* FOOTER */
.footer-grad-line { height: 3px; background: var(--grad); }
footer { background: #111113; padding: 56px 48px 32px; }
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 200px 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo img { height: 44px; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.7; margin-bottom: 10px; }
.footer-tagline { font-size: 12px; color: #4A4A4C; line-height: 1.6; }
.f-col-title { font-size: 10px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase; color: #606062; margin-bottom: 14px; }
.f-links { display: flex; flex-direction: column; gap: 8px; }
.f-links a { font-size: 12px; color: #5A5A5C; text-decoration: none; transition: color 0.2s; }
.f-links a:hover { color: var(--red); }
.footer-bottom { border-top: 1px solid #1E1E20; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.f-copy { font-size: 11px; color: #3A3A3C; }

/* ═══════════════════════════════════════════
   MOBILE RESPONSIVE
   ═══════════════════════════════════════════ */

/* Hamburger toggle (hidden on desktop) */
.nav-toggle { display: none; background: transparent; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--deep); margin: 5px 0; transition: transform 0.25s, opacity 0.2s; border-radius: 2px; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Tablet & under ── */
@media (max-width: 900px) {
  .sw  { padding: 56px 24px; }
  .sw-sm { padding: 40px 24px; }
  .nav-inner { padding: 0 20px; height: 60px; }
  .nav-logo img { height: 32px; }

  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse { direction: ltr; }
  .col-photo { aspect-ratio: 16/10; }

  .symptom-grid    { grid-template-columns: 1fr 1fr; gap: 12px; }
  .related-grid    { grid-template-columns: 1fr; gap: 12px; }

  .page-hero { padding: 56px 24px; min-height: 320px; }
  .page-hero-inner h1 { font-size: clamp(28px, 6vw, 42px); }
  .page-hero-inner p  { font-size: 15px; }

  .breadcrumb { padding: 10px 20px; }
  .breadcrumb-inner { flex-wrap: wrap; }

  .pull-quote { padding: 24px 24px; }
  .pull-quote blockquote { font-size: 17px; }

  .page-cta { padding: 48px 24px; }

  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  footer { padding: 40px 24px 24px; }
}

/* ── Tablet & mobile (drawer nav) ── */
@media (max-width: 1024px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: white;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    transform: translateY(-110%);
    transition: transform 0.25s ease-out;
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a {
    font-size: 14px; padding: 14px 8px;
    border-bottom: 1px solid var(--cream);
    text-align: left;
    width: 100%;
  }
  .nav-links a:last-of-type { border-bottom: none; }
  .nav-cta { margin: 12px 0 0 !important; padding: 14px 20px !important; font-size: 12px !important; text-align: center; width: 100%; }
}

/* ── Small mobile ── */
@media (max-width: 540px) {
  .sw, .sw-sm { padding: 40px 16px; }
  .symptom-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
  .h2 { font-size: clamp(22px, 6vw, 32px); }
  body { font-size: 14px; }
  .form-grid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .form-mock { padding: 24px !important; }
}

/* ─── Bigger mobile logo + nav ─── */
@media (max-width: 1024px) {
  .nav-inner { height: 70px !important; padding: 0 18px !important; }
  .nav-logo img { height: 44px !important; width: auto !important; }
  .nav-links { top: 70px !important; max-height: calc(100vh - 70px) !important; }
}

/* ─── Sticky bottom CTA bar ─── */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: flex; gap: 8px; padding: 10px 12px;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 24px rgba(0,0,0,0.08);
  transform: translateY(110%);
  transition: transform 0.3s ease-out;
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta a {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 16px; border-radius: 8px;
  font-family: var(--font); font-size: 13px; font-weight: 800;
  letter-spacing: 0.06em; text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.15s, opacity 0.2s;
}
.sticky-cta a:active { transform: scale(0.97); }
.sticky-cta .sc-call { background: white; color: var(--deep); border: 2px solid var(--border); }
.sticky-cta .sc-call:hover { background: var(--cream); border-color: var(--deep); }
.sticky-cta .sc-book { background: var(--red); color: white; border: 2px solid var(--red); }
.sticky-cta .sc-book:hover { background: #D42B30; }
.sticky-cta svg { width: 16px; height: 16px; flex-shrink: 0; }

/* leave breathing room so footer isn't hidden under the bar on mobile */
@media (max-width: 1024px) {
  body { padding-bottom: 76px; }
  .sticky-cta { gap: 6px; padding: 8px; }
  .sticky-cta a { font-size: 11px; letter-spacing: 0.02em; padding: 12px 8px; gap: 6px; }
}
/* On desktop, show as a smaller floating pill in the corner */
@media (min-width: 1025px) {
  .sticky-cta {
    left: auto; right: 24px; bottom: 24px;
    width: auto; padding: 0; gap: 10px; background: transparent;
    border: none; box-shadow: none; backdrop-filter: none;
  }
  .sticky-cta a {
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    padding: 13px 22px; font-size: 12px;
  }
  .sticky-cta .sc-call { display: none; } /* keep desktop minimal — book only */
}

/* ═══════════════════════════════════════════
   COMPREHENSIVE MOBILE RESCUE
   Catches every page-specific grid pattern across all 27 sub-pages.
   Higher specificity (using attribute matching) so it overrides inline page styles.
   ═══════════════════════════════════════════ */

@media (max-width: 1024px) {
  /* Every page-hero split layout collapses */
  .about-hero-grid,
  .blog-hero-grid,
  .contact-hero-grid,
  .thermal-hero-grid {
    grid-template-columns: 1fr !important;
    min-height: auto !important;
  }
  .about-hero-left,
  .blog-hero-left,
  .contact-hero-left {
    padding: 56px 24px 40px !important;
  }
  .about-hero-right,
  .blog-hero-right,
  .contact-hero-right,
  .thermal-hero-right {
    min-height: 280px;
  }
  .about-hero-right img,
  .blog-hero-right img,
  .contact-hero-right img,
  .thermal-hero-right img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover;
  }

  /* All 3-col / 4-col content grids collapse to 2-col */
  .audience-grid,
  .benefit-grid,
  .blog-grid,
  .conditions-grid,
  .contact-cards,
  .evidence-grid,
  .family-who-grid,
  .local-grid,
  .neuro-grid,
  .outcome-grid,
  .payment-grid,
  .resources-grid,
  .reviews-grid,
  .study-grid,
  .tech-grid,
  .thermal-grid,
  .all-posts-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
  }

  /* All 2-col side-by-side layouts collapse to 1-col */
  .blog-main-grid,
  .doctor-grid,
  .first-visit-grid,
  .form-grid,
  .olivia-grid,
  .phil-grid,
  .story-grid,
  .contact-grid,
  .faq-grid,
  .adjust-gallery {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }

  /* Section padding compresses on tablet/mobile */
  .sw, .sw-sm,
  .section-wrap, .section-wrap-sm {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  /* Doctor headshot — keep portrait but full-width */
  .doctor-grid > div:first-child .dr-photo,
  .doctor-grid .dr-photo { max-width: 360px; margin: 0 auto; }
  .doctor-grid .dr-photo img,
  .dr-family img { width: 100%; }

  /* Big text scales down on tablet */
  .page-hero-inner h1 { font-size: clamp(28px, 6vw, 38px) !important; }
  .h2, .section-h2 { font-size: clamp(24px, 5vw, 34px) !important; }

  /* Tables/forms */
  .form-mock { padding: 24px !important; }
  .form-row { grid-template-columns: 1fr 1fr; gap: 10px; }

  /* Office gallery on contact / about pages */
  div[style*="grid-template-columns:1fr 1fr 1fr"][style*="height:280px"],
  div[style*="grid-template-columns:1fr 1fr 1fr"][style*="height:240px"] {
    grid-template-columns: 1fr 1fr !important;
    height: auto !important;
  }
}

@media (max-width: 640px) {
  /* On small mobile, drop to single column on most grids */
  .audience-grid,
  .benefit-grid,
  .blog-grid,
  .conditions-grid,
  .contact-cards,
  .evidence-grid,
  .family-who-grid,
  .local-grid,
  .neuro-grid,
  .outcome-grid,
  .payment-grid,
  .resources-grid,
  .reviews-grid,
  .study-grid,
  .tech-grid,
  .thermal-grid,
  .all-posts-grid,
  .form-row,
  .dr-meta {
    grid-template-columns: 1fr !important;
  }

  .sw, .sw-sm,
  .section-wrap, .section-wrap-sm { padding: 40px 16px !important; }
  .page-hero { padding: 40px 16px !important; min-height: 280px !important; }
  .about-hero-left,
  .blog-hero-left,
  .contact-hero-left { padding: 40px 16px !important; }

  /* Office gallery row goes single column on phone */
  div[style*="grid-template-columns:1fr 1fr 1fr"][style*="height"] {
    grid-template-columns: 1fr !important;
    grid-auto-rows: 220px;
  }

  /* Pull-quotes and form-mock breathing room */
  .pull-quote { padding: 24px 20px !important; }
  .pull-quote blockquote { font-size: 16px !important; }

  /* Big numbers in process steps */
  .num-circle { width: 32px; height: 32px; }
  .step-circle { width: 32px; height: 32px; }
}

/* Make all images responsive by default (safety net) */
img { max-width: 100%; height: auto; }
