/* Layout: sticky slim header → asymmetric hero (copy + pollen calendar) → alternating
   full-bleed bands (white / mist tint / deep pine) on a 1160px centered column. */
:root {
  --pine: #2c5e17;        /* deep leaf green, matched to the logo's darkest green */
  --pine-deep: #18350c;
  --pollen: #e6b43c;      /* pollen gold accent, used sparingly */
  --moss: #457c27;
  --mist: #f0f5ec;        /* green-biased neutral tint */
  --paper: #fbfcfa;
  --ink: #172214;
  --ink-soft: #4d5a48;
  --line: #d9e4d3;
  --card: #ffffff;
  --on-pine: #eef4ea;
  --shadow: 0 1px 2px rgb(24 53 12 / .06), 0 8px 24px rgb(24 53 12 / .08);

  --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --font-body: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --step-4: clamp(2.4rem, 1.5rem + 3.8vw, 4.1rem);

  --header-h: 72px;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --pine: #3e8a1f;
    --pine-deep: #10200a;
    --pollen: #f0c35a;
    --moss: #9fd27f;
    --mist: #172414;
    --paper: #0f180c;
    --ink: #e7efe3;
    --ink-soft: #a9b9a3;
    --line: #2b3d26;
    --card: #152112;
    --on-pine: #e7efe3;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .3);
    color-scheme: dark;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: var(--step-4); font-weight: 700; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 700; }
h4 { font-size: var(--step-0); font-weight: 700; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--pollen); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--pollen); color: #1b1b1b; padding: 10px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { top: 12px; }

.eyebrow {
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .75rem;
}

/* ---------- buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: .7rem 1.35rem;
  border-radius: 999px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; text-align: center;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--pine); color: #fff; }
.btn-primary:hover { background: var(--pine-deep); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--card); }
.btn-ghost:hover { border-color: var(--pine); }
.btn-pay { background: var(--pollen); color: #1d1a10; min-height: 42px; padding: .5rem 1.1rem; }
.btn-light { background: var(--on-pine); color: var(--pine-deep); }
.btn-outline-light { border-color: rgb(255 255 255 / .45); color: var(--on-pine); }
.btn-outline-light:hover { border-color: var(--on-pine); }
.text-link { color: var(--pine); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; min-width: 0; }
.brand picture { display: block; }
.brand-logo { display: block; height: 50px; width: auto; max-width: 100%; }

.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.site-nav ul a {
  display: block; padding: .45rem .7rem; border-radius: 8px;
  text-decoration: none; font-weight: 500; font-size: .97rem; color: var(--ink-soft);
}
.site-nav ul a:hover { color: var(--ink); background: var(--mist); }
.site-nav ul a.active { color: var(--pine); background: var(--mist); }

.nav-toggle { display: none; }

/* ---------- hero ---------- */
.hero {
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 100% 0%, color-mix(in srgb, var(--pollen) 14%, transparent), transparent 60%),
    radial-gradient(50rem 30rem at 0% 100%, color-mix(in srgb, var(--moss) 14%, transparent), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy { min-width: 0; }
.hero-copy h1 { max-width: 14ch; }
.lead { font-size: var(--step-1); color: var(--ink-soft); margin-top: 1.25rem; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-proof { list-style: none; padding: 0; margin: 2.75rem 0 0; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem; }
.hero-proof li { display: flex; flex-direction: column; }
.hero-proof strong { font-family: var(--font-display); font-size: var(--step-2); color: var(--pine); line-height: 1; }
.hero-proof span { font-size: var(--step--1); color: var(--ink-soft); margin-top: .35rem; max-width: 15ch; line-height: 1.35; }

.season-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: var(--shadow); min-width: 0;
}
.season-card h2 { font-size: var(--step-1); }
.season-note { color: var(--ink-soft); font-size: var(--step--1); margin: .4rem 0 1.4rem; }
.season-chart { display: grid; gap: .7rem; margin-bottom: 1.4rem; }
.season-row { display: grid; grid-template-columns: 7.5rem 1fr; align-items: center; gap: .75rem; }
.month-grid { display: grid; grid-template-columns: repeat(12, 1fr); font-size: .75rem; color: var(--ink-soft); text-align: center; }
.season-label { font-size: .9rem; font-weight: 600; line-height: 1.25; }
.season-track {
  display: grid; grid-template-columns: repeat(12, 1fr); height: 14px;
  background: var(--mist); border-radius: 999px; overflow: hidden;
}
.season-track i { grid-column: var(--s) / var(--e); background: var(--pollen); border-radius: 999px; }
.season-track i.soft { background: color-mix(in srgb, var(--moss) 55%, transparent); }

/* ---------- sections ---------- */
.section { padding-block: clamp(4rem, 8vw, 6.5rem); }
.section-tint { background: var(--mist); }
.section-pine { background: var(--pine-deep); color: var(--on-pine); }
.section-pine .eyebrow { color: var(--pollen); }
.section-head { max-width: 46rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head > p:not(.eyebrow) { color: var(--ink-soft); margin-top: 1rem; font-size: 1.1rem; }
.section-head .btn { margin-top: 1.5rem; }

/* services */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.service {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem; min-width: 0;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.service:hover { border-color: color-mix(in srgb, var(--pine) 45%, var(--line)); box-shadow: var(--shadow); }
.service p { color: var(--ink-soft); }
.service .text-link { margin-top: auto; padding-top: .25rem; }
.service-icon { width: 44px; height: 44px; color: var(--pine); }

.conditions { margin-top: clamp(2.5rem, 5vw, 3.5rem); }
.conditions h3 { margin-bottom: 1rem; }
.chip-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chip-list li {
  padding: .4rem .85rem; border-radius: 999px; font-size: .92rem;
  background: var(--mist); border: 1px solid var(--line);
}

/* desensitization */
.desens-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 1.5rem; align-items: start; }
.oit {
  background: var(--card); border-radius: 20px; padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line); min-width: 0;
}
.oit > p { margin-top: .9rem; color: var(--ink-soft); }
.oit h4 { margin-top: 1.75rem; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 1rem 0 1.75rem; display: grid; gap: .9rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3.15rem; min-height: 2.25rem; padding-top: .2rem; color: var(--ink-soft); }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  display: grid; place-items: center; background: var(--pollen); color: #1d1a10;
  font-family: var(--font-display); font-weight: 700;
}
.steps strong { color: var(--ink); }
.desens-side { display: grid; gap: 1.5rem; min-width: 0; }
.mini { padding: 1.5rem 0 0; border-top: 2px solid var(--pine); }
.mini p { margin-top: .6rem; color: var(--ink-soft); }

/* about */
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.doctor { margin: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.doctor img {
  width: 100%; aspect-ratio: 5 / 6; object-fit: cover; object-position: 50% 20%;
  border-radius: 20px; background: var(--mist);
}
.doctor figcaption {
  display: flex; flex-direction: column; margin: .9rem 0 0; position: relative;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: .9rem 1.1rem; box-shadow: var(--shadow); line-height: 1.35;
}
.doctor figcaption strong { font-family: var(--font-display); font-size: 1.1rem; }
.doctor figcaption span { color: var(--ink-soft); font-size: .92rem; }
.about-copy { min-width: 0; }
.about-copy > p:not(.eyebrow) { margin-top: 1.1rem; color: var(--ink-soft); max-width: 62ch; }
.about-copy h2 { margin-bottom: .25rem; }
.research { margin-top: 2rem; padding: 1.5rem; border-radius: var(--radius); background: var(--mist); }
.research p { margin-top: .5rem; color: var(--ink-soft); }
.credentials { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem 1.5rem; }
.credentials li { color: var(--ink-soft); font-size: .95rem; line-height: 1.4; border-top: 1px solid var(--line); padding-top: .9rem; }
.credentials .credential-wide { grid-column: 1 / -1; }
.credentials strong { display: block; font-family: var(--font-display); font-size: var(--step-2); color: var(--pine); margin-bottom: .2rem; }

/* testimonials */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.quote {
  margin: 0; padding: 1.6rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .12);
  display: flex; flex-direction: column; gap: 1rem; min-width: 0;
}
.quote p { font-size: 1rem; line-height: 1.6; }
.quote footer { margin-top: auto; font-size: .85rem; color: var(--pollen); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.quote-feature { grid-column: span 2; grid-row: span 2; justify-content: center; }
.quote-feature p { font-family: var(--font-display); font-size: var(--step-2); line-height: 1.3; font-weight: 500; }
.review-cta {
  margin-top: 2.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem;
  border-top: 1px solid rgb(255 255 255 / .15); padding-top: 2rem;
}
.review-links { display: flex; flex-wrap: wrap; gap: .75rem; }

/* forms */
.forms-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.forms-grid .section-head { margin-bottom: 0; }
.form-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; min-width: 0; }
.form-list a {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.form-list a:hover { border-color: var(--pine); transform: translateX(3px); }
.form-list a > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.form-list small { color: var(--ink-soft); font-size: .88rem; }
.file-tag {
  flex: none; font-size: .72rem; font-weight: 700; letter-spacing: .06em;
  padding: .45rem .5rem; border-radius: 6px; background: var(--mist); color: var(--pine); border: 1px solid var(--line);
}

/* locations */
.loc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
.loc {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 2.25rem); display: flex; flex-direction: column; gap: 1rem; min-width: 0;
}
.loc h3 { font-size: var(--step-2); }
.loc address { font-style: normal; color: var(--ink-soft); }
.hours { margin: 0; display: grid; gap: .35rem; font-variant-numeric: tabular-nums; }
.hours div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: .35rem; }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; color: var(--ink-soft); text-align: right; }
.phones { display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; }
.phone { font-family: var(--font-display); font-size: var(--step-2); font-weight: 700; color: var(--pine); text-decoration: none; }
.phones span { color: var(--ink-soft); font-size: .9rem; }
.loc .text-link { margin-top: auto; }

/* SMS terms & privacy */
.legal { padding-block: clamp(3rem, 6vw, 4.5rem); border-top: 1px solid var(--line); }
.legal h2 { font-size: var(--step-2); }
.legal-alt { background: var(--mist); }
.legal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.legal-grid .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 24px); }
.legal-body { max-width: 68ch; font-size: 1rem; }
.legal-body h3 { font-size: 1.05rem; margin-top: 1.6rem; }
.legal-body h3:first-child { margin-top: 0; }
.legal-body p { color: var(--ink-soft); margin-top: .45rem; }
.legal-body strong { color: var(--ink); }
.legal-body a { color: var(--pine); font-weight: 600; }
.legal-ref { margin-top: 1.6rem !important; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.sms-keys { display: flex; flex-wrap: wrap; gap: .5rem .9rem; margin-top: 1.25rem; font-size: .92rem; color: var(--ink-soft); }
.sms-keys span { display: inline-flex; align-items: center; gap: .45rem; }
kbd {
  font: 700 .78rem/1 var(--font-body); letter-spacing: .06em;
  padding: .4rem .55rem; border-radius: 6px; color: var(--pine);
  background: var(--card); border: 1px solid var(--line); border-bottom-width: 2px;
}

/* holiday hours popup + banner (content lives in holiday-hours.js) */
.holiday-banner { background: var(--pollen); color: #1d1a10; text-align: center; }
.holiday-banner button {
  width: 100%; border: 0; background: none; color: inherit; cursor: pointer;
  font: 500 .95rem/1.4 var(--font-body); padding: .6rem var(--gutter);
}
.holiday-banner button:hover { text-decoration: underline; text-underline-offset: 3px; }
.holiday-dialog {
  width: min(30rem, calc(100% - 32px)); max-height: calc(100% - 32px); overflow: auto;
  border: 0; border-radius: 20px; padding: clamp(1.5rem, 5vw, 2.25rem);
  background: var(--card); color: var(--ink); box-shadow: 0 24px 64px rgb(0 0 0 / .3);
}
.holiday-dialog::backdrop { background: rgb(10 20 6 / .55); }
.holiday-dialog h2 { font-size: var(--step-2); padding-right: 2rem; }
.holiday-dialog .eyebrow { border-top: 4px solid var(--pollen); padding-top: .9rem; display: inline-block; }
.holiday-close {
  position: absolute; top: .9rem; right: .9rem; width: 40px; height: 40px;
  display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.holiday-close:hover { background: var(--mist); }
.holiday-hours { margin: 1.25rem 0 0; display: grid; gap: .1rem; }
.holiday-hours div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem 1rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.holiday-hours dt { font-weight: 600; }
.holiday-hours dd { margin: 0; color: var(--ink-soft); }
.holiday-note { margin-top: 1rem; color: var(--ink-soft); font-size: .95rem; }
.holiday-dialog .btn { margin-top: 1.5rem; width: 100%; }

/* footer */
.site-footer { background: var(--pine-deep); color: var(--on-pine); padding-block: 2.5rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.25rem 2rem; }
.footer-brand { display: flex; flex-direction: column; gap: .4rem; }
.footer-brand img { height: 52px; width: auto; max-width: 100%; }
.footer-brand p { font-size: .92rem; opacity: .8; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.site-footer nav a { text-decoration: none; opacity: .85; }
.site-footer nav a:hover { opacity: 1; text-decoration: underline; }
.fine { width: 100%; font-size: .85rem; opacity: .7; border-top: 1px solid rgb(255 255 255 / .12); padding-top: 1.25rem; }

/* ---------- responsive ---------- */
.site-nav ul a, .btn-pay { white-space: nowrap; }

@media (max-width: 1180px) {
  .site-nav ul a { padding: .45rem .5rem; font-size: .93rem; }
  .site-nav { gap: .75rem; }
}

@media (max-width: 1080px) {
  .nav-toggle {
    display: grid; place-items: center; width: 46px; height: 46px; flex: none;
    border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--ink); cursor: pointer;
  }
  .bars, .bars::before, .bars::after {
    display: block; width: 20px; height: 2px; background: currentColor; border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease; position: relative;
  }
  .bars::before, .bars::after { content: ""; position: absolute; left: 0; }
  .bars::before { top: -6px; }
  .bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 1rem;
    padding: 1rem var(--gutter) 1.5rem;
    background: var(--paper); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: .85rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .btn-pay { min-height: 48px; }
}

@media (max-width: 960px) {
  .hero-grid, .desens-layout, .forms-grid { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service:last-child { grid-column: span 2; }
  .quotes { grid-template-columns: 1fr 1fr; }
  .about-grid, .legal-grid { grid-template-columns: 1fr; }
  .legal-grid .section-head { position: static; }
  .doctor { position: static; max-width: 420px; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand-logo { height: 40px; }
  .service-grid, .quotes, .loc-grid { grid-template-columns: 1fr; }
  .service:last-child { grid-column: auto; }
  .quote-feature { grid-column: auto; grid-row: auto; }
  .credentials { gap: 1rem; }
  .hero-actions .btn { flex: 1 1 100%; }
  .season-row { grid-template-columns: 5.75rem 1fr; }
  .season-label { font-size: .82rem; }
  .doctor { max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
