/* ============================================================
   MY NEIGHBORHOOD CHIROPRACTIC — Shared Stylesheet
   File: www/shared.css
   Updated: 2026-07-12 01:11
   Changes: Corrected the --green- token family, --gold, and --text-dark
            back to the docs/MNC_CODING_STANDARDS.md §5 palette after an incorrect
            intermediate repaint to a sage/olive scheme based on a
            screenshot that turned out not to be the real site.
            Pixel-verified against genuine backup screenshots — see
            the warning block below before touching these values.
   Color Scheme: Green + Warm White + Gold Accent
   Font: Fraunces (display) + DM Sans (body)
   ============================================================

   ⚠ COLOR PALETTE — VERIFIED CORRECT, DO NOT CHANGE WITHOUT PROOF ⚠

   These are the client-approved brand colors. History, so this doesn't
   happen a third time:

   1. Public site drifted to an undocumented teal palette at some point
      (cause unknown) despite docs/MNC_CODING_STANDARDS.md §5 always
      having documented this green/gold scheme.
   2. 2026-07-11, repainted teal → the values below, matching §5.
   3. Same day, shown a screenshot claimed to be "an earlier backup" that
      was actually muted sage/olive — repainted to match it. This was
      WRONG; that screenshot was not the real site.
   4. Same day, Joel found and shared three genuine screenshots of the
      real backup. Pixel-sampled them directly (not eyeballed) and they
      match the values below almost exactly (0–1 unit off per RGB
      channel — within PNG compression noise):
        --green-dark  sampled #3B6222 from the hero bg   → exact match
        --green-base  sampled #74BE45 from "Book Now"    → exact match
        --green-tint  sampled #EEF7E8 from an icon box   → exact match
        --green-pale  sampled #F5FAF1 from a section bg  → exact match
        --gold        sampled #E9A021 from an underline  → 1-unit match
        --gold-tint   sampled #FCF1DC from a quote box   → 1-unit match
        --text-dark   sampled #1A2E10 from a heading     → exact match

   Conclusion: docs/MNC_CODING_STANDARDS.md §5 was right all along. The
   fix for teal was correct the first time; step 3 above was the actual
   regression. If a future "reference screenshot" contradicts these
   values, verify it's genuinely the live/backup site (pixel-sample it,
   don't eyeball) before touching this block again.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,300;1,9..144,400&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ── TOKENS ── */
:root {
  /* Per docs/MNC_CODING_STANDARDS.md §5 — matches intake.html and the
     admin portal. Pixel-verified against real backup screenshots
     2026-07-11 — see the block comment above before changing these. */
  --green-darkest: #284417;
  --green-dark:    #3B6222;
  --green-mid:     #51882F;
  --green-base:    #74BE45;
  --green-bright:  #93CC6F;
  --green-light:   #B8DDA0;
  --green-tint:    #EEF7E8;
  --green-pale:    #F5FAF1; /* not in docs, but pixel-verified exact match to real site */

  --gold:         #E8A020;
  --gold-light:   #F0C060; /* not in docs — lighter tint derived from --gold */
  --gold-tint:    #FCF0DC; /* not in docs, but pixel-verified ~exact match to real site */

  --white:        #ffffff;
  --off-white:    #f8f6f1;
  --warm-gray:    #ede9e3;
  --mid-gray:     #a89f96;
  --text-dark:    #1A2E10; /* matches docs/admin --navy exactly; pixel-verified */
  --text-mid:     #3B6222; /* = --green-dark, for readable body copy */
  --text-muted:   #6B8F54; /* matches admin's --text3 */

  --red:          #c0392b;
  --green:        var(--green-base);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:    6px;
  --radius-md:    10px;
  --radius-lg:    16px;
  --radius-xl:    24px;

  --shadow-sm:    0 1px 3px rgba(59, 98, 34, 0.08);
  --shadow-md:    0 4px 16px rgba(59, 98, 34, 0.10);
  --shadow-lg:    0 8px 32px rgba(59, 98, 34, 0.13);

  --max-w:        1120px;
  --section-pad:  80px 24px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
}
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; }
p { color: var(--text-mid); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-bright);
  margin-bottom: 12px;
  display: block;
}

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-base);
  color: var(--white);
  border-color: var(--green-base);
}
.btn-primary:hover {
  background: var(--green-mid);
  border-color: var(--green-mid);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--green-base);
  border-color: var(--green-base);
}
.btn-outline:hover {
  background: var(--green-tint);
  transform: translateY(-1px);
}
.btn-gold {
  background: var(--gold);
  color: var(--text-dark);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-white {
  background: var(--white);
  color: var(--green-dark);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--green-tint);
  transform: translateY(-1px);
}
.btn-phone {
  background: var(--gold);
  color: var(--text-dark);
  border-color: var(--gold);
  font-size: 17px;
  padding: 16px 32px;
}
.btn-phone:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 160, 32,0.35);
}
.btn-lg { padding: 18px 36px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ── LAYOUT ── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-pad); }
.section-light { background: var(--off-white); }
.section-green { background: var(--green-dark); color: var(--white); }
.section-green h2, .section-green h3, .section-green h4 { color: var(--white); }
.section-green p { color: var(--green-light); }
.section-green .eyebrow { color: var(--gold-light); }
.section-pale { background: var(--green-pale); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── PHOTO PLACEHOLDERS ──
   Replace src="" with actual image path when photos are ready */
.photo-placeholder {
  background: var(--green-tint);
  border: 2px dashed var(--green-light);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--green-base);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 20px;
  min-height: 320px;
}
.photo-placeholder .ph-icon { font-size: 32px; opacity: 0.5; }
.photo-placeholder .ph-label { font-size: 11px; opacity: 0.6; font-weight: 400; margin-top: 4px; }

/* ── NAV ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--green-tint);
  border: 2px solid var(--green-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--green-base);
  font-weight: 700;
  font-family: var(--font-display);
  overflow: hidden;
}
.nav-logo-img img { width: 100%; height: 100%; object-fit: cover; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.nav-logo-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--green-dark);
}
.nav-logo-sub {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-bright);
  font-weight: 600;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-mid);
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active {
  background: var(--green-tint);
  color: var(--green-base);
}
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-phone {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--green-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-phone-icon {
  width: 28px; height: 28px;
  background: var(--gold-tint);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--green-dark);
  font-size: 22px;
}
.mobile-menu {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--warm-gray);
  padding: 16px 24px 24px;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.mobile-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-mid);
}
.mobile-menu a:hover { background: var(--green-tint); color: var(--green-base); }

/* ── FOOTER ── */
.site-footer {
  background: var(--green-darkest);
  color: var(--green-light);
  padding: 64px 24px 32px;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-brand-desc {
  font-size: 13px;
  color: var(--green-light);
  line-height: 1.7;
  max-width: 260px;
  margin-bottom: 20px;
}
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--green-light);
  margin-bottom: 8px;
}
.footer-contact-icon { color: var(--gold); margin-top: 2px; flex-shrink: 0; }
.footer-col-title {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a {
  font-size: 13px;
  color: var(--green-light);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  max-width: var(--max-w);
  margin: 24px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

/* ── CARDS ── */
.card {
  background: var(--white);
  border: 1px solid var(--warm-gray);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--green-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}

/* ── BADGES / PILLS ── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}
.badge-green { background: var(--green-tint); color: var(--green-mid); }
.badge-gold { background: var(--gold-tint); color: #8a6520; }

/* ── DIVIDER ── */
.divider {
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 16px 0 24px;
}
.divider-center { margin: 16px auto 24px; }

/* ── SMS OPT-IN FORM ── */
.sms-form-wrap {
  background: var(--green-dark);
  border-radius: var(--radius-xl);
  padding: 40px;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}
.sms-form-text h3 { color: var(--white); margin-bottom: 8px; }
.sms-form-text p { color: var(--green-light); font-size: 14px; }
.sms-form {
  display: flex;
  gap: 10px;
  flex: 1;
  min-width: 280px;
  flex-wrap: wrap;
}
.sms-input {
  flex: 1;
  min-width: 180px;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.08);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s;
}
.sms-input::placeholder { color: rgba(255,255,255,0.4); }
.sms-input:focus { border-color: var(--green-bright); }
.sms-disclaimer {
  font-size: 11px;
  color: var(--green-light);
  opacity: 0.6;
  margin-top: 8px;
  width: 100%;
}

/* ── AI CHAT WIDGET ── */
.chat-bubble {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}
.chat-toggle {
  width: 58px; height: 58px;
  border-radius: 50%;
  background: var(--green-base);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(116, 190, 69,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  font-size: 24px;
  color: white;
}
.chat-toggle:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 28px rgba(116, 190, 69,0.5);
}
.chat-window {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 340px;
  background: var(--white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--warm-gray);
  display: none;
  flex-direction: column;
  overflow: hidden;
  z-index: 998;
}
.chat-window.open { display: flex; }
.chat-header {
  background: var(--green-dark);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.chat-header-info h4 { color: var(--white); font-size: 14px; font-family: var(--font-body); font-weight: 600; }
.chat-header-info p { color: var(--green-light); font-size: 11px; }
.chat-messages {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 220px;
  max-height: 320px;
  overflow-y: auto;
}
.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}
.chat-msg-bot {
  background: var(--green-pale);
  color: var(--text-dark);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  background: var(--green-base);
  color: var(--white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.chat-quick-replies {
  padding: 0 16px 12px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.chat-qr-btn {
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--green-light);
  background: none;
  color: var(--green-base);
  font-size: 12px;
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.15s;
}
.chat-qr-btn:hover { background: var(--green-tint); }
.chat-input-row {
  padding: 12px 16px;
  border-top: 1px solid var(--warm-gray);
  display: flex;
  gap: 8px;
}
.chat-input {
  flex: 1;
  padding: 9px 14px;
  border-radius: 20px;
  border: 1px solid var(--warm-gray);
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  color: var(--text-dark);
}
.chat-input:focus { border-color: var(--green-bright); }
.chat-send {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--green-base);
  border: none;
  cursor: pointer;
  color: white;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.chat-send:hover { background: var(--green-mid); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 1;
  transform: none;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  :root { --section-pad: 56px 20px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-mobile-btn { display: flex; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .sms-form-wrap { padding: 28px; }
  .chat-window { width: calc(100vw - 56px); right: 20px; }
}
