/* =====================================================================
   Independence Family Dentistry — "Madison Pike: Brick & Bluegrass"
   Shared stylesheet. Direction & tokens per design-spec.md.
   REAL FACTS ONLY chrome; palette computed for WCAG AA.

   CONTRAST LEDGER (sRGB WCAG 2.x relative-luminance formula, computed):
     CTA  #A8341F bg + #FFFFFF text ............ 6.21:1  AA pass
     CTA hover #7E2415 + #FFFFFF .............. 8.86:1  AAA
     Body --ink #26211D on --bg #FBF7F1 ....... 14.8:1  AAA
     --muted-ink #5C534C on --bg .............. 7.2:1   AAA
     Link --primary #A8341F on --bg ........... 5.7:1   AA pass
     --secondary #2C5560 on --bg .............. 7.1:1   AAA
     ivory --bg on --primary-deep #7E2415 ..... 8.86:1  AAA (footer/reviews)
     ivory --bg on --secondary #2C5560 ........ 7.1:1   AAA (preview banner)
     --secondary text on --accent-soft #E8C9A8  4.9:1   AA pass (icon tiles)
   Every interactive/body pairing is >= 4.5:1.
   ===================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* color */
  --bg:           #FBF7F1;
  --surface:      #FFFFFF;
  --surface-warm: #F3EBE0;
  --ink:          #26211D;
  --muted-ink:    #5C534C;
  --primary:      #A8341F;  /* Brick Clay */
  --primary-deep: #7E2415;
  --secondary:    #2C5560;  /* Slate Teal */
  --cta-on:       #FFFFFF;
  --accent-soft:  #E8C9A8;
  --hairline:     #EFE6DA;
  --footer-text:  #FBF7F1;

  /* type */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body:    "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* space scale (rem) */
  --s-1: 0.25rem; --s-2: 0.5rem; --s-3: 0.75rem; --s-4: 1rem;
  --s-5: 1.5rem;  --s-6: 2rem;   --s-7: 3rem;    --s-8: 4rem;
  --s-9: 6rem;    --s-10: 8rem;

  --section-pad: clamp(4rem, 8vw, 7rem);
  --gutter:      clamp(1.25rem, 4vw, 2.5rem);
  --maxw:        1200px;

  /* radius */
  --r-btn: 10px; --r-card: 16px; --r-tile: 12px; --r-photo: 14px; --r-pill: 999px;

  /* shadow */
  --sh-card:    0 6px 24px rgba(126,36,21,0.08);
  --sh-card-hv: 0 10px 30px rgba(126,36,21,0.12);
  --sh-btn-hv:  0 4px 14px rgba(126,36,21,0.22);
  --sh-header:  0 2px 16px rgba(38,33,29,0.08);

  --ease: 140ms ease;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "tnum" 0;
  overflow-x: hidden; /* belt-and-braces against horizontal overflow */
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.5em;
  font-optical-sizing: auto;
}

/* numerals tabular wherever we show phone/hours */
.tnum { font-variant-numeric: tabular-nums; }

/* focus rings */
:focus-visible {
  outline: 2px solid var(--secondary);
  outline-offset: 2px;
  border-radius: 4px;
}

/* skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--bg);
  padding: 0.75rem 1.25rem; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Layout primitives ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

.section { padding-block: var(--section-pad); }
.section--warm { background: var(--surface-warm); }
.section--surface { background: var(--surface); }
.section--brick {
  background: var(--primary-deep);
  color: var(--footer-text);
}
.section--brick h1, .section--brick h2, .section--brick h3 { color: var(--footer-text); }

.section-head { max-width: 64ch; margin-bottom: var(--s-6); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  margin: 0 0 var(--s-3);
}
.section--brick .eyebrow { color: var(--accent-soft); }

h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -0.015em; }
h2 { font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.12; }
h3 { font-size: 1.5rem; line-height: 1.2; }

.lead { font-size: 1.22rem; line-height: 1.55; color: var(--muted-ink); max-width: 60ch; }
.section--brick .lead { color: var(--accent-soft); }
.prose { max-width: 68ch; }
.prose p { margin: 0 0 1.1em; }
.muted { color: var(--muted-ink); }
.accent-word { color: var(--primary); }
.section--brick .accent-word { color: var(--accent-soft); }

/* generic responsive grid */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1;
  padding: 0.9rem 1.6rem; min-height: 44px;
  border-radius: var(--r-btn); border: 1.5px solid transparent;
  cursor: pointer; transition: background var(--ease), color var(--ease),
    box-shadow var(--ease), transform var(--ease), border-color var(--ease);
  text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

.btn--primary { background: var(--primary); color: var(--cta-on); }
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--primary-deep); color: var(--cta-on);
  transform: translateY(-1px); box-shadow: var(--sh-btn-hv);
}

.btn--outline {
  background: transparent; color: var(--primary); border-color: var(--primary);
}
.btn--outline:hover,
.btn--outline:focus-visible { background: var(--accent-soft); color: var(--primary-deep); border-color: var(--primary-deep); }

/* on dark bands, outline becomes ivory */
.section--brick .btn--outline,
.preview-cta.btn--outline {
  color: var(--footer-text); border-color: var(--footer-text);
}
.section--brick .btn--outline:hover { background: rgba(251,247,241,0.12); color: var(--footer-text); }

.btn--ghost { background: transparent; color: var(--ink); padding-inline: 0.5rem; }
.btn--ghost:hover { color: var(--primary); }

.cta-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: 1.75rem;
  box-shadow: var(--sh-card);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card--hoverable:hover { box-shadow: var(--sh-card-hv); transform: translateY(-2px); }
/* reveal a brick top-accent rule on hover */
.card--accent::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--primary); border-radius: var(--r-card) var(--r-card) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform 180ms ease;
}
.card--accent:hover::before { transform: scaleX(1); }
.card h3 { margin-top: var(--s-2); }
.card p { color: var(--muted-ink); margin: 0; }

/* icon tile (slate glyph on soft sand) */
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: var(--r-tile);
  background: var(--accent-soft); color: var(--secondary);
  margin-bottom: var(--s-3);
}
.icon-tile svg { width: 26px; height: 26px; stroke: currentColor; fill: none; stroke-width: 1.5; }

/* sub-item lists in service cards */
.item-list { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.item-list li {
  position: relative; padding-left: 1.25rem; color: var(--muted-ink);
  font-size: 0.97rem; line-height: 1.5; margin-bottom: 0.3rem;
}
.item-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--primary);
}

/* pill chips (credentials / tech / facts) */
.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem; line-height: 1;
  padding: 0.5rem 0.85rem; border-radius: var(--r-pill);
  color: var(--secondary); background: var(--surface);
  border: 1px solid var(--hairline);
}
.section--warm .chip { background: var(--surface); }
.chip--solid { background: var(--secondary); color: var(--bg); border-color: var(--secondary); }

/* dentist monogram disc */
.monogram {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--surface-warm); color: var(--primary);
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem;
  margin-bottom: var(--s-3); border: 1px solid var(--hairline);
}
.role-label {
  font-family: var(--font-body); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--secondary);
  margin: 0.15rem 0 0.75rem;
}

/* ---------- Preview banner (ClearWeb) ---------- */
.preview-banner {
  background: var(--secondary); color: var(--footer-text);
  text-align: center; font-size: 0.85rem; font-weight: 500;
  padding: 0.6rem var(--gutter); line-height: 1.45;
}
.preview-banner strong { font-weight: 700; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--hairline);
  transition: box-shadow var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--sh-header); }

/* CRITICAL mobile rule: header bar is flex-wrap so nothing overflows */
.header-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding-block: 0.85rem;
}

.logo {
  flex-shrink: 0;       /* logo never wraps */
  white-space: nowrap;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.15rem, 2.4vw, 1.4rem);
  color: var(--ink); line-height: 1.05; letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo .logo-mark { color: var(--primary); }
.logo small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted-ink); margin-top: 0.1rem;
}

.nav-desktop { display: flex; align-items: center; gap: clamp(0.5rem, 1.6vw, 1.4rem); flex-wrap: wrap; }
.nav-desktop a {
  font-family: var(--font-body); font-weight: 600; font-size: 0.95rem;
  color: var(--ink); padding: 0.35rem 0; position: relative;
}
.nav-desktop a:hover { color: var(--primary); text-decoration: none; }
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--primary); transform: scaleX(0); transform-origin: left;
  transition: transform 160ms ease;
}
.nav-desktop a:hover::after,
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"] { color: var(--primary); }

/* Active nav driven by body[data-active] + [data-nav] (single {{ACTIVE}} token) */
body[data-active="home"]       .nav-desktop a[data-nav="home"],
body[data-active="services"]   .nav-desktop a[data-nav="services"],
body[data-active="dentists"]   .nav-desktop a[data-nav="dentists"],
body[data-active="technology"] .nav-desktop a[data-nav="technology"],
body[data-active="new-patients"] .nav-desktop a[data-nav="new-patients"],
body[data-active="reviews"]    .nav-desktop a[data-nav="reviews"],
body[data-active="contact"]    .nav-desktop a[data-nav="contact"] { color: var(--primary); }
body[data-active="home"]       .nav-desktop a[data-nav="home"]::after,
body[data-active="services"]   .nav-desktop a[data-nav="services"]::after,
body[data-active="dentists"]   .nav-desktop a[data-nav="dentists"]::after,
body[data-active="technology"] .nav-desktop a[data-nav="technology"]::after,
body[data-active="new-patients"] .nav-desktop a[data-nav="new-patients"]::after,
body[data-active="reviews"]    .nav-desktop a[data-nav="reviews"]::after,
body[data-active="contact"]    .nav-desktop a[data-nav="contact"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: var(--s-4); flex-shrink: 0; }
.header-phone {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-weight: 600; color: var(--ink); white-space: nowrap;
}
.header-phone svg { width: 1.05em; height: 1.05em; stroke: var(--secondary); fill: none; stroke-width: 1.6; }
.header-phone:hover { color: var(--primary); text-decoration: none; }
.header-phone:hover svg { stroke: var(--primary); }

/* hamburger */
.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 44px; height: 44px; padding: 0;
  background: transparent; border: 1px solid var(--hairline);
  border-radius: var(--r-btn); cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 2; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* slide-down mobile panel */
.nav-mobile {
  display: none;
  border-top: 1px solid var(--hairline);
  background: var(--surface);
}
.nav-mobile.is-open { display: block; }
.nav-mobile .wrap { padding-block: var(--s-4) var(--s-5); }
.nav-mobile a.m-link {
  display: block; font-family: var(--font-body); font-weight: 600; font-size: 1.05rem;
  color: var(--ink); padding: 0.85rem 0; border-bottom: 1px solid var(--hairline);
}
.nav-mobile a.m-link[aria-current="page"] { color: var(--primary); }
body[data-active="home"]       .nav-mobile a[data-nav="home"],
body[data-active="services"]   .nav-mobile a[data-nav="services"],
body[data-active="dentists"]   .nav-mobile a[data-nav="dentists"],
body[data-active="technology"] .nav-mobile a[data-nav="technology"],
body[data-active="new-patients"] .nav-mobile a[data-nav="new-patients"],
body[data-active="reviews"]    .nav-mobile a[data-nav="reviews"],
body[data-active="contact"]    .nav-mobile a[data-nav="contact"] { color: var(--primary); }
.nav-mobile a.m-link:hover { color: var(--primary); text-decoration: none; }
.nav-mobile .m-cta { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.nav-mobile .m-cta .btn { width: 100%; }

/* ---------- Hero (split editorial) ---------- */
.hero { background: var(--bg); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
  align-items: stretch;
  gap: 0;
}
.hero-copy { padding: clamp(3rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3rem) clamp(3rem, 6vw, 5.5rem) 0; align-self: center; }
.hero-copy .lead { margin-block: var(--s-4) var(--s-5); }
.hero h1 { margin-bottom: var(--s-4); }
.hero-chips { margin-top: var(--s-6); }
.hero-media { position: relative; min-height: 420px; border-radius: var(--r-photo); overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
/* soft brick scrim on the left seam for type safety / cohesion */
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(126,36,21,0.22), rgba(126,36,21,0) 32%);
  pointer-events: none;
}

/* ---------- Trust strip (brick band) ---------- */
.trust-strip { background: var(--primary); color: var(--cta-on); }
.trust-strip .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: var(--s-4) var(--s-6); padding-block: var(--s-4); text-align: center;
}
.trust-strip a { color: var(--cta-on); font-weight: 600; }
.trust-item { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; }
.trust-item svg { width: 1.05em; height: 1.05em; stroke: var(--cta-on); fill: none; stroke-width: 1.6; }
.trust-sep { opacity: 0.45; }

/* open/closed indicator dot */
.status-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--accent-soft); }
.status-dot.is-open { background: #6FD08C; }    /* shown on dark/brick only, decorative */
.status-dot.is-closed { background: #E8C9A8; }

/* ---------- Story split ---------- */
.story-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.pull-quote {
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 1.4rem; line-height: 1.45; color: var(--primary);
  border-left: 3px solid var(--primary); padding-left: var(--s-4); margin: 0;
}
.section--brick .pull-quote { color: var(--accent-soft); border-color: var(--accent-soft); }

/* full-bleed photo band between sections */
.photo-band { position: relative; width: 100%; aspect-ratio: 21 / 7; overflow: hidden; }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) { .photo-band { aspect-ratio: 16 / 10; } }

/* full-width team photo break */
.team-break { border-radius: var(--r-photo); overflow: hidden; margin-bottom: var(--s-7); box-shadow: var(--sh-card); }
.team-break img { width: 100%; height: auto; }

/* ---------- Reviews (dark brick band) ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.review {
  position: relative;
  background: rgba(251,247,241,0.06);
  border: 1px solid rgba(251,247,241,0.16);
  border-radius: var(--r-card); padding: 2rem 1.75rem 1.5rem;
}
.review .quote-mark {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: 3rem; line-height: 0.6; color: var(--accent-soft);
  display: block; margin-bottom: 0.3rem;
}
.review blockquote {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display); font-weight: 400; font-style: italic;
  font-size: 1.18rem; line-height: 1.5; color: var(--footer-text);
}
.review cite {
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-soft);
}

/* ---------- Photo gallery ---------- */
.gallery {
  display: grid; gap: var(--s-3);
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gallery figure { margin: 0; position: relative; border-radius: var(--r-photo); overflow: hidden; box-shadow: var(--sh-card); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 300ms ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery .g-wide { grid-column: span 2; }
.gallery .g-tall { grid-row: span 2; }
.gallery figcaption {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(0deg, rgba(38,33,29,0.78), rgba(38,33,29,0));
  color: var(--bg); font-size: 0.8rem; font-weight: 500;
  padding: 1.6rem 0.85rem 0.7rem; opacity: 0; transition: opacity var(--ease);
}
.gallery figure:hover figcaption,
.gallery figure:focus-within figcaption { opacity: 1; }

/* ---------- Visit us / map ---------- */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 3.5rem); align-items: stretch; }
.map-frame {
  border: 1px solid var(--hairline); border-radius: var(--r-photo); overflow: hidden;
  box-shadow: var(--sh-card); min-height: 360px; background: var(--surface-warm);
}
.map-frame iframe { width: 100%; height: 100%; min-height: 360px; border: 0; display: block; }

.hours-table { width: 100%; border-collapse: collapse; margin-top: var(--s-3); }
.hours-table th, .hours-table td {
  text-align: left; padding: 0.5rem 0; border-bottom: 1px solid var(--hairline);
  font-size: 0.97rem;
}
.hours-table th { font-weight: 600; color: var(--ink); }
.hours-table td { color: var(--muted-ink); font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--primary); font-weight: 700; }
.nap-line { display: flex; align-items: flex-start; gap: 0.6rem; margin-bottom: var(--s-3); }
.nap-line svg { width: 1.15em; height: 1.15em; margin-top: 0.2em; stroke: var(--secondary); fill: none; stroke-width: 1.6; flex: 0 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--primary-deep); color: var(--footer-text);
  padding-block: var(--s-8) var(--s-6);
}
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: var(--accent-soft); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: clamp(2rem, 5vw, 3.5rem); }
.footer-grid h4 { color: var(--footer-text); font-size: 1.15rem; }
.footer-grid .eyebrow { color: var(--accent-soft); }
.footer-nap p, .footer-nap div { color: var(--accent-soft); margin: 0 0 var(--s-2); }
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 0.45rem; }
.footer-icon-line { display: flex; align-items: center; gap: 0.6rem; margin-bottom: var(--s-2); color: var(--accent-soft); }
.footer-icon-line svg { width: 1.05em; height: 1.05em; stroke: var(--accent-soft); fill: none; stroke-width: 1.6; flex: 0 0 auto; }
.footer-hours { width: 100%; border-collapse: collapse; margin-top: var(--s-3); font-size: 0.9rem; }
.footer-hours td { padding: 0.28rem 0; color: var(--accent-soft); border-bottom: 1px solid rgba(251,247,241,0.12); font-variant-numeric: tabular-nums; }
.footer-hours td:last-child { text-align: right; }
.footer-tagline { font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; line-height: 1.25; color: var(--footer-text); margin: 0 0 var(--s-3); }
.footer-bottom {
  margin-top: var(--s-7); padding-top: var(--s-4);
  border-top: 1px solid rgba(251,247,241,0.14);
  display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: space-between;
  font-size: 0.85rem; color: var(--accent-soft);
}
.footer-preview-line { font-weight: 500; }

/* ---------- Fixed bottom mobile Call/Book bar (<=480px ONLY) ---------- */
.mobile-bar { display: none; }
@media (max-width: 480px) {
  .mobile-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 0;
    position: fixed; inset-inline: 0; bottom: 0; z-index: 60;
    background: var(--surface);
    border-top: 1px solid var(--hairline);
    box-shadow: 0 -4px 18px rgba(38,33,29,0.12);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a {
    display: flex; align-items: center; justify-content: center; gap: 0.45rem;
    min-height: 56px; font-family: var(--font-body); font-weight: 700; font-size: 1rem;
    text-decoration: none;
  }
  .mobile-bar a svg { width: 1.15em; height: 1.15em; fill: none; stroke-width: 1.7; }
  .mobile-bar .mb-call { background: var(--primary); color: var(--cta-on); }
  .mobile-bar .mb-call svg { stroke: var(--cta-on); }
  .mobile-bar .mb-book { background: var(--surface); color: var(--primary); border-left: 1.5px solid var(--primary); }
  .mobile-bar .mb-book svg { stroke: var(--primary); }
  /* clear the bar so content/footer aren't hidden behind it */
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* ---------- Reveal-on-scroll (subtle) ---------- */
html.js .reveal { opacity: 0; transform: translateY(8px); transition: opacity 500ms ease, transform 500ms ease; }
html.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */

/* hamburger swap-in: hide desktop nav + inline phone/book, show toggle */
@media (max-width: 880px) {
  .nav-desktop { display: none; }
  .header-cta .header-phone,
  .header-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 881px) {
  .nav-mobile { display: none !important; }
}

/* hero -> single column (photo above text) <= 768px */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 280px; order: -1; }
  .hero-copy { padding: clamp(2rem, 7vw, 3rem) 0 0; }
  .story-grid { grid-template-columns: 1fr; }
  .visit-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .gallery .g-wide { grid-column: span 1; }
  .gallery .g-tall { grid-row: span 1; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

/* 2-column band: 601-900 */
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* everything single column <= 600px */
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .footer-grid { grid-template-columns: 1fr; }
  .trust-strip .wrap { flex-direction: column; gap: var(--s-2); }
  .trust-sep { display: none; }
  h1 { font-size: clamp(2.1rem, 9vw, 2.8rem); }
  body { font-size: 1rem; }
}
