/* ==========================================================================
   Health Link Chiropractic Clinic — Shared Stylesheet
   Dr. David Waring, DC · Sterling Heights, MI
   Site by AppWT Web & AI Solutions
   Mobile-first · Vanilla CSS · No frameworks
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. RULE 19 RESPONSIVE BASELINE — NO HORIZONTAL SCROLL, EVER
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
video,
iframe,
picture,
svg,
canvas,
embed,
object {
  max-width: 100%;
  height: auto;
}

table { display: block; max-width: 100%; overflow-x: auto; }
pre,
code { max-width: 100%; overflow-x: auto; }

/* --------------------------------------------------------------------------
   2. DESIGN TOKENS (CSS variables)
   -------------------------------------------------------------------------- */
:root {
  /* Palette */
  --teal:          #0E5C63;  /* primary deep teal */
  --teal-dark:     #094248;  /* hovers / depth */
  --teal-darker:   #06343a;  /* footer */
  --green:         #2FB67A;  /* accent wellness green */
  --green-dark:    #228a5c;  /* green hover */
  --orange:        #EE7A2B;  /* strength accent (sparingly) */
  --orange-dark:   #cf6418;  /* orange hover */
  --charcoal:      #1E2630;  /* body text */
  --charcoal-soft: #3a4655;  /* muted text */
  --offwhite:      #F7FAFA;  /* page bg */
  --white:         #ffffff;  /* cards */
  --line:          #e2eaea;  /* hairline borders */

  /* Typography */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
               Helvetica, Arial, "Helvetica Neue", sans-serif;
  --font-head: "Helvetica Neue", Arial, var(--font-base);

  /* Spacing & shape */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 22px;
  --shadow:      0 6px 22px rgba(14, 92, 99, 0.10);
  --shadow-lg:   0 14px 40px rgba(14, 92, 99, 0.16);
  --shadow-soft: 0 2px 10px rgba(30, 38, 48, 0.06);

  /* Layout */
  --maxw:        1180px;
  --maxw-narrow: 800px;
  --header-h:    72px;
  --gutter:      clamp(1rem, 4vw, 2rem);
  --section-y:   clamp(2.75rem, 7vw, 5.5rem);
}

/* --------------------------------------------------------------------------
   3. BASE ELEMENTS
   -------------------------------------------------------------------------- */
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-base);
  font-size: clamp(1rem, 0.96rem + 0.25vw, 1.0625rem);
  line-height: 1.65;
  color: var(--charcoal);
  background: var(--offwhite);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--charcoal);
  line-height: 1.18;
  margin: 0 0 0.6em;
  font-weight: 800;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.2rem); }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.8vw, 2.3rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.9vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--teal);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--green-dark); }
a:focus-visible,
button:focus-visible,
.btn:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 4px;
}

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

strong, b { font-weight: 700; color: var(--charcoal); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

img { display: block; }

/* Skip link for keyboard / screen-reader users */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  background: var(--teal);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
  color: #fff;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT HELPERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--maxw-narrow); }

.section { padding-block: var(--section-y); }
.section--tint { background: var(--white); }
.section--teal {
  background: var(--teal);
  color: #eaf6f6;
}
.section--teal h1,
.section--teal h2,
.section--teal h3 { color: #fff; }

.section-head {
  max-width: 760px;
  margin: 0 auto 2.5rem;
  text-align: center;
}
.section-head .eyebrow { margin-bottom: 0.5rem; }
.section-head p { color: var(--charcoal-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-dark);
}

.lead {
  font-size: clamp(1.1rem, 1rem + 0.6vw, 1.3rem);
  line-height: 1.55;
  color: var(--charcoal-soft);
}

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   5. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  padding: 0.85rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
              border-color 0.15s ease, transform 0.08s ease,
              box-shadow 0.15s ease;
  text-decoration: none;
  -webkit-appearance: none;
  appearance: none;
}
.btn:active { transform: translateY(1px); }

/* Primary = deep teal */
.btn--primary {
  background: var(--teal);
  color: #fff;
  box-shadow: var(--shadow-soft);
}
.btn--primary:hover { background: var(--teal-dark); color: #fff; }

/* Accent = wellness green */
.btn--green {
  background: var(--green);
  color: #06342a;
}
.btn--green:hover { background: var(--green-dark); color: #fff; }

/* Strength accent = orange (use sparingly) */
.btn--orange {
  background: var(--orange);
  color: #2a1402;
}
.btn--orange:hover { background: var(--orange-dark); color: #fff; }

/* Outline (on light) */
.btn--outline {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn--outline:hover { background: var(--teal); color: #fff; }

/* Outline (on dark / teal backgrounds) */
.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}
.btn--ghost:hover { background: #fff; color: var(--teal); }

.btn--lg { font-size: 1.1rem; padding: 1.05rem 1.9rem; }
.btn--block { display: flex; width: 100%; }

.btn .btn__icon { font-size: 1.1em; line-height: 1; }

/* --------------------------------------------------------------------------
   6. SITE HEADER + NAV
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding-block: 0.5rem;
}

/* Logo wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-head);
  text-decoration: none;
  line-height: 1.05;
  color: var(--charcoal);
}
.brand:hover { color: var(--charcoal); }
.brand__logo { width: 40px; height: 40px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; }
.brand__name {
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}
.brand__name .brand__dr { color: var(--teal); }
.brand__tag {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--green-dark);
  text-transform: uppercase;
}

/* Nav */
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav__list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav__link {
  font-weight: 600;
  font-size: 0.97rem;
  color: var(--charcoal);
  padding: 0.4rem 0;
  position: relative;
}
.nav__link:hover,
.nav__link[aria-current="page"] { color: var(--teal); }
.nav__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
}

.header__cta { flex: 0 0 auto; }

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 11px;
  background: var(--teal);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  height: 3px;
  width: 100%;
  background: #fff;
  border-radius: 3px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* --------------------------------------------------------------------------
   7. MOBILE STICKY "TEXT TO BOOK" BAR
   -------------------------------------------------------------------------- */
.text-bar {
  display: none; /* shown on mobile via media query */
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 300;
  padding: 0.6rem 0.75rem;
  padding-bottom: calc(0.6rem + env(safe-area-inset-bottom, 0px));
  background: var(--teal);
  box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.18);
}
.text-bar .btn {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.95rem 1rem;
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 60%, var(--teal-darker) 100%);
  color: #eaf6f6;
  overflow: hidden;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-block: clamp(2.5rem, 7vw, 5rem);
}
.hero__content { max-width: 640px; }
.hero h1 { color: #fff; margin-bottom: 0.5em; }
.hero__eyebrow { color: var(--green); }
.hero__sub {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: #d4ecec;
  margin-bottom: 1.6rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  font-size: 0.92rem;
  color: #cfe9e9;
  list-style: none;
  margin: 0;
  padding: 0;
}
.hero__trust li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
}
.hero__trust li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}
.hero__media { position: relative; }
.hero__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
/* Decorative orange strength accent */
.hero::after {
  content: "";
  position: absolute;
  right: -120px; top: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(238,122,43,0.18), transparent 70%);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   9. CARDS + GRIDS
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 3vw, 1.75rem);
  grid-template-columns: 1fr;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
  box-shadow: var(--shadow-soft);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card--link:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--charcoal-soft); }
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(47, 182, 122, 0.14);
  color: var(--teal);
  font-size: 1.5rem;
}
.card__icon--orange {
  background: rgba(238, 122, 43, 0.14);
  color: var(--orange-dark);
}
.card__more {
  display: inline-block;
  margin-top: 0.75rem;
  font-weight: 700;
  color: var(--teal);
}
.card__more::after { content: " →"; }

/* Media card (image on top) */
.card--media { padding: 0; overflow: hidden; }
.card--media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.card--media .card__body { padding: clamp(1.1rem, 3vw, 1.5rem); }

/* Feature row (image + text) */
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.25rem, 4vw, 2.5rem);
  align-items: center;
}
.feature__img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  object-fit: cover;
}

/* Stat / credential chips */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.stat {
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  box-shadow: var(--shadow-soft);
}
.stat__num {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem);
  font-weight: 800;
  color: var(--teal);
  line-height: 1;
}
.stat__label {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.88rem;
  color: var(--charcoal-soft);
}

/* Badge / pill */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: rgba(47, 182, 122, 0.14);
  color: var(--green-dark);
}
.badge--orange {
  background: rgba(238, 122, 43, 0.15);
  color: var(--orange-dark);
}

/* Pill list of conditions / services */
.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  list-style: none;
  margin: 0; padding: 0;
}
.pill-list li {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  box-shadow: var(--shadow-soft);
}

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.7rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0.05em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem; height: 1.35rem;
  background: var(--green);
  color: #06342a;
  font-weight: 800;
  font-size: 0.85rem;
  border-radius: 50%;
}

/* --------------------------------------------------------------------------
   10. CTA BANNER
   -------------------------------------------------------------------------- */
.cta-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--teal));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 5vw, 3rem);
  text-align: center;
  box-shadow: var(--shadow);
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: #e7f6f0; max-width: 620px; margin-inline: auto; }
.cta-banner .btn { margin-top: 1.25rem; }
.cta-banner .cta-note {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: #d7f0e6;
}

/* --------------------------------------------------------------------------
   11. FAQ / ACCORDION
   -------------------------------------------------------------------------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  padding: 1.1rem 1.35rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--charcoal);
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  flex: 0 0 auto;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--teal);
  transition: transform 0.2s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__answer {
  padding: 0 1.35rem 1.25rem;
  color: var(--charcoal-soft);
}
.faq__answer p:first-child { margin-top: 0; }

/* --------------------------------------------------------------------------
   12. CONTACT / NAP / HOURS
   -------------------------------------------------------------------------- */
.nap {
  list-style: none;
  margin: 0; padding: 0;
}
.nap li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}
.nap__icon {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 1.1rem;
  line-height: 1.5;
}
.nap a { font-weight: 600; }

.hours-table {
  display: table;
  width: 100%;
  border-collapse: collapse;
  overflow: visible;
}
.hours-table th,
.hours-table td {
  text-align: left;
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.97rem;
}
.hours-table th {
  font-weight: 700;
  color: var(--charcoal);
}
.hours-table td { color: var(--charcoal-soft); text-align: right; }
.hours-table tr:last-child th,
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table .is-closed { color: var(--orange-dark); font-weight: 600; }

/* Form fields (Contact / New Patients) */
.form-field { margin-bottom: 1.1rem; }
.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--charcoal);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  font: inherit;
  color: var(--charcoal);
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.form-field textarea { min-height: 140px; resize: vertical; }

/* Map embed wrapper */
.map-embed {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  aspect-ratio: 16 / 9;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* --------------------------------------------------------------------------
   13. BREADCRUMBS
   -------------------------------------------------------------------------- */
.breadcrumbs {
  font-size: 0.85rem;
  color: var(--charcoal-soft);
  padding-block: 0.9rem;
}
.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  list-style: none;
  margin: 0; padding: 0;
}
.breadcrumbs li { margin: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 0.35rem; color: var(--line); }
.breadcrumbs a { color: var(--charcoal-soft); }
.breadcrumbs a:hover { color: var(--teal); }
.breadcrumbs [aria-current="page"] { color: var(--teal); font-weight: 600; }

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--teal-darker);
  color: #c6e0e0;
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
  font-size: 0.95rem;
}
.site-footer a { color: #d9efef; }
.site-footer a:hover { color: #fff; }
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand__name .brand__dr { color: var(--green); }
.footer__brand p { color: #a9cccc; margin-top: 0.75rem; }
.footer h3 {
  color: #fff;
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
.footer__links {
  list-style: none;
  margin: 0; padding: 0;
}
.footer__links li { margin-bottom: 0.55rem; }
.footer .nap li { margin-bottom: 0.6rem; }
.footer .nap__icon { color: var(--green); }
.footer .hours-table th { color: #e3f2f2; }
.footer .hours-table td { color: #a9cccc; }
.footer .hours-table th,
.footer .hours-table td { border-bottom-color: rgba(255,255,255,0.10); }
.footer .hours-table .is-closed { color: #f0a979; }
.footer__cta .btn { width: 100%; margin-top: 0.5rem; }
.footer__cta .cta-note { display:block; margin-top:0.6rem; font-size:0.84rem; color:#a9cccc; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.86rem;
  color: #9fc4c4;
}
.footer__bottom a { color: #d9efef; }

/* --------------------------------------------------------------------------
   15. UTILITIES — spacing
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 1rem; }
.stack-lg > * + * { margin-top: 1.75rem; }
.mx-auto { margin-inline: auto; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   16. RESPONSIVE BREAKPOINTS — mobile-first scale-up
   Targets verified: 320 / 375 / 414 / 768 / 1024 / 1280
   ========================================================================== */

/* Default (≤ 575px): mobile layout
   - hamburger nav, hidden desktop list
   - sticky text-to-book bar visible
   - extra bottom padding so the bar never covers content */
@media (max-width: 859px) {
  .nav__list {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    padding: 0.5rem var(--gutter) 1rem;
    transform: translateY(-130%);
    transition: transform 0.25s ease;
  }
  .nav__list.is-open { transform: translateY(0); }
  .nav__item { width: 100%; }
  .nav__link {
    display: block;
    padding: 0.85rem 0.25rem;
    border-bottom: 1px solid var(--line);
    font-size: 1.05rem;
  }
  .nav__link[aria-current="page"]::after { display: none; }
  .nav__item:last-child .nav__link { border-bottom: 0; }

  .nav-toggle { display: flex; }
  .header__cta { display: none; } /* sticky bar handles mobile CTA */

  .text-bar { display: block; }

  body { padding-bottom: 76px; } /* clearance for sticky text bar */
  .site-footer { padding-bottom: calc(1.5rem + 76px); }
}

/* Small phones: keep brand text from crowding */
@media (max-width: 360px) {
  .brand__name { font-size: 1rem; }
  .brand__tag { font-size: 0.66rem; }
  .brand__logo { width: 34px; height: 34px; }
}

/* ≥ 560px: two-up grids, stats stay 2-col */
@media (min-width: 560px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
}

/* ≥ 768px: tablet — feature rows side-by-side, hero two-col starts to breathe */
@media (min-width: 768px) {
  .feature { grid-template-columns: 1fr 1fr; }
  .feature--reverse .feature__img { order: 2; }
  .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

/* ≥ 860px: desktop nav appears, sticky bar hides */
@media (min-width: 860px) {
  .nav__list {
    position: static;
    flex-direction: row;
    transform: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav-toggle { display: none; }
  .header__cta { display: inline-flex; }
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
}

/* ≥ 992px: hero becomes two-column, four-up grids */
@media (min-width: 992px) {
  .hero__inner { grid-template-columns: 1.05fr 0.95fr; }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
  .footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
}

#backToTop{position:fixed;right:18px;bottom:84px;z-index:60;width:46px;height:46px;border:0;border-radius:50%;background:#0E5C63;color:#fff;font-size:22px;cursor:pointer;opacity:0;pointer-events:none;transition:opacity .25s;box-shadow:0 4px 14px rgba(0,0,0,.25)}#backToTop.show{opacity:1;pointer-events:auto}.footer-map{margin-top:1.5rem}
