/* =========================================================================
   Riverdale Wallpapering Solutions — style.css
   Design system: warm-neutral base, charcoal ink, restrained slate-blue accent.
   All text/background pairs WCAG AA verified (contrast_check.py; lowest 5.27:1).
   Cross-browser by construction: Flexbox/Grid, clamp(), CSS-columns masonry,
   progressive-enhancement reveal (visible by default), reduced-motion + print.
   ========================================================================= */

:root {
  /* palette */
  --bg:         #F7F3EC;  /* warm ivory */
  --panel:      #EFE7DA;  /* soft beige */
  --sand:       #E2D6C2;  /* taupe */
  --line:       #D8CCB8;  /* hairline borders */
  --ink:        #262320;  /* charcoal body text */
  --muted:      #5B5349;  /* muted taupe-grey */
  --accent:     #2F4A5E;  /* deep slate blue */
  --accent-deep:#223948;  /* hover */
  --accent-lite:#8FB0C4;  /* accent on dark bands */
  --gold:       #C9A24B;  /* decorative hairline only (never body text) */
  --on-accent:  #FFFFFF;
  --dark-bg:    #1E1B17;  /* charcoal band */
  --dark-text:  #ECE6DB;
  --dark-muted: #B7AE9F;
  --white:      #FFFFFF;
  --danger:     #A3322F;

  /* type */
  --serif: "Marcellus", Georgia, "Times New Roman", serif;
  --sans:  "Mulish", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* rhythm */
  --maxw: 1200px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sect-y: clamp(3.75rem, 8vw, 7rem);
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(38,35,32,.06), 0 4px 14px rgba(38,35,32,.06);
  --shadow-md: 0 10px 30px rgba(38,35,32,.10), 0 2px 8px rgba(38,35,32,.06);
  --shadow-lg: 0 24px 60px rgba(38,35,32,.16);
  --ease: cubic-bezier(.22,.61,.36,1);
  --header-h: 76px;
}

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

body {
  font-family: var(--sans);
  font-size: clamp(1rem, .96rem + .2vw, 1.075rem);
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden; /* defensive; real overflow bugs still fixed at the root */
}

img, picture, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-deep); }
button { font: inherit; cursor: pointer; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; color: var(--ink); letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
h3 { font-size: clamp(1.25rem, 1.05rem + .8vw, 1.6rem); }
p { color: var(--muted); }
strong { color: var(--ink); font-weight: 700; }

/* ---------- helpers ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--sect-y); }
.eyebrow {
  font-family: var(--sans); font-weight: 700; font-size: .78rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--accent);
  display: inline-flex; align-items: center; gap: .6rem;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section-head h2 { margin-top: .9rem; }
.section-head p { margin-top: 1rem; font-size: 1.08rem; }
.lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.25rem); color: var(--muted); }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 8px;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color:#fff; }

:where(a, button, input, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans); font-weight: 700; font-size: .95rem; letter-spacing: .01em;
  padding: .95rem 1.6rem; border-radius: 999px; border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  text-align: center; line-height: 1.1;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-deep); color:#fff; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-ghost-light { background: rgba(255,255,255,.10); color:#fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(2px); }
.btn-ghost-light:hover { background:#fff; color: var(--accent-deep); border-color:#fff; transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247,243,236,.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.site-header.scrolled { background: rgba(247,243,236,.94); box-shadow: 0 1px 0 rgba(216,204,184,.9), var(--shadow-sm); border-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 38px; height: 38px; border-radius: 9px; flex: none; box-shadow: var(--shadow-sm); }
.brand__text { display: flex; flex-direction: column; line-height: 1.02; }
.brand__name { font-family: var(--serif); font-size: 1.16rem; letter-spacing: .01em; }
.brand__tag { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); font-weight: 700; }

.nav__links { display: flex; align-items: center; gap: clamp(.5rem, 1.4vw, 1.4rem); list-style: none; }
.nav__links a {
  color: var(--ink); font-weight: 600; font-size: .95rem; padding: .4rem .1rem; position: relative;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px;
  background: var(--accent); transition: right .3s var(--ease);
}
.nav__links a:hover::after, .nav__links a:focus-visible::after { right: 0; }

.nav__actions { display: flex; align-items: center; gap: .8rem; }
.nav__phone {
  display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink);
  font-size: .95rem; white-space: nowrap;
}
.nav__phone svg { width: 17px; height: 17px; color: var(--accent); }
.nav__phone:hover { color: var(--accent); }

.nav__toggle {
  display: none; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); align-items: center; justify-content: center; color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .icon-close { display: none; }
.nav__toggle[aria-expanded="true"] .icon-open { display: none; }
.nav__toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(20,18,15,.86) 0%, rgba(20,18,15,.62) 40%, rgba(20,18,15,.28) 72%, rgba(20,18,15,.14) 100%),
    linear-gradient(0deg, rgba(20,18,15,.45), rgba(20,18,15,.10) 45%);
}
.hero__inner { padding-block: clamp(4rem, 12vh, 8.5rem); min-height: min(84vh, 760px); display: flex; align-items: center; }
.hero__content { max-width: 46rem; }
.hero .eyebrow { color: #fff; }
.hero .eyebrow::before { background: var(--gold); }
.hero h1 {
  color: #fff; margin-top: 1.1rem;
  font-size: clamp(2.35rem, 1.5rem + 4.4vw, 4.35rem); line-height: 1.05;
  text-shadow: 0 2px 24px rgba(0,0,0,.28);
}
.hero__sub { color: #F2ECE2; font-size: clamp(1.05rem, 1rem + .6vw, 1.3rem); margin-top: 1.35rem; max-width: 40rem; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2.1rem; }
.hero__trust {
  margin-top: 2.2rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  color: #EFE7DA; font-size: .92rem; letter-spacing: .04em;
}
.hero__trust .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }

/* ---------- intro / split blocks ---------- */
.split { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); } .split.reverse .split__media { order: 2; } }
.split__media { position: relative; }
.split__media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); aspect-ratio: 4/3.4; object-fit: cover; }
.split__media.tall img { aspect-ratio: 4/4.5; }
.split__badge {
  position: absolute; bottom: -18px; left: -18px; background: var(--white); color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1.15rem; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: .7rem; max-width: 78%;
}
.split__badge svg { width: 26px; height: 26px; color: var(--accent); flex: none; }
.split__badge b { font-family: var(--serif); font-weight: 400; font-size: 1.05rem; display: block; }
.split__badge span { font-size: .8rem; color: var(--muted); }
.split__body h2 { margin-bottom: 1.1rem; }
.split__body p + p { margin-top: 1rem; }
.mini-list { list-style: none; margin-top: 1.6rem; display: grid; gap: .8rem; }
.mini-list li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink); }
.mini-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: .25rem; }

/* ---------- services ---------- */
.services { background: linear-gradient(180deg, var(--bg), var(--panel) 60%, var(--panel)); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: clamp(1rem, 2.2vw, 1.6rem); }
.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 2.4vw, 1.9rem); box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; left:0; top:0; height:3px; width:100%; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--sand); }
.card:hover::before { transform: scaleX(1); }
.card__icon {
  width: 54px; height: 54px; border-radius: 13px; display: grid; place-items: center;
  background: var(--panel); color: var(--accent); margin-bottom: 1.1rem; border: 1px solid var(--line);
}
.card__icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: .55rem; }
.card p { font-size: .98rem; }

/* ---------- why (dark band with photo) ---------- */
.why { position: relative; isolation: isolate; color: var(--dark-text); }
.why__media { position: absolute; inset: 0; z-index: -2; }
.why__media img { width: 100%; height: 100%; object-fit: cover; }
.why::after { content:""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(30,27,23,.93), rgba(30,27,23,.88)); }
.why h2 { color: var(--dark-text); }
.why .eyebrow { color: var(--accent-lite); }
.why .eyebrow::before { background: var(--accent-lite); }
.why__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%,240px),1fr)); gap: clamp(1.4rem,3vw,2.4rem); margin-top: clamp(2rem,4vw,3rem); }
.why__item { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.why__num { font-family: var(--serif); font-size: 1.4rem; color: var(--accent-lite); width: 46px; height: 46px; border: 1px solid rgba(143,176,196,.5); border-radius: 50%; display: grid; place-items: center; flex: none; }
.why__item h3 { color: #fff; font-size: 1.2rem; margin-bottom: .35rem; }
.why__item p { color: var(--dark-muted); font-size: .97rem; }

/* ---------- process timeline ---------- */
.process { background: var(--panel); }
.timeline { display: grid; gap: clamp(1.4rem, 3vw, 2rem); grid-template-columns: 1fr; position: relative; }
@media (min-width: 900px) { .timeline { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.4rem 1.5rem; box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--serif); font-size: 2.4rem; color: var(--sand); line-height: 1; display: block; }
.step__num b { color: var(--accent); font-weight: 400; }
.step h3 { font-size: 1.15rem; margin: .7rem 0 .5rem; }
.step p { font-size: .95rem; }
.step__dot { position: absolute; top: 50%; right: -20px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); display: none; }
@media (min-width: 900px) { .timeline::before { content:""; position:absolute; top: 82px; left: 6%; right: 6%; height: 2px; background: repeating-linear-gradient(90deg, var(--sand) 0 10px, transparent 10px 18px); z-index: 0; }
  .step { z-index: 1; } .step:not(:last-child) .step__dot { display: block; } }

/* ---------- gallery (CSS-columns masonry + lightbox) ---------- */
.gallery-grid { columns: 3 260px; column-gap: clamp(.8rem, 1.6vw, 1.2rem); }
.gallery-item { break-inside: avoid; margin-bottom: clamp(.8rem, 1.6vw, 1.2rem); border: 0; padding: 0; background: none; display: block; width: 100%; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; display: block; transition: transform .55s var(--ease); }
.gallery-item::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, transparent 55%, rgba(30,27,23,.42)); opacity: 0; transition: opacity .35s var(--ease); }
.gallery-item .g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem 1rem; color:#fff; font-size: .9rem; font-weight: 600; transform: translateY(8px); opacity: 0; transition: .35s var(--ease); z-index: 2; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:hover::after { opacity: 1; }
.gallery-item:hover .g-cap, .gallery-item:focus-visible .g-cap { transform: none; opacity: 1; }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(20,18,15,.92); display: none; align-items: center; justify-content: center; padding: clamp(1rem,4vw,3rem); }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(1100px, 94vw); max-height: 86vh; width: auto; border-radius: 10px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; background: rgba(255,255,255,.12); color:#fff; border: 1px solid rgba(255,255,255,.35); width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.lightbox__close:hover, .lightbox__nav:hover { background:#fff; color: var(--ink); }
.lightbox__close { top: clamp(1rem,3vw,2rem); right: clamp(1rem,3vw,2rem); }
.lightbox__close svg, .lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: clamp(.5rem,2vw,1.5rem); }
.lightbox__nav.next { right: clamp(.5rem,2vw,1.5rem); }
.lightbox__cap { position: absolute; bottom: clamp(1rem,3vw,2rem); left: 0; right: 0; text-align: center; color:#EFE7DA; font-size: .95rem; }

/* ---------- cta band ---------- */
.cta-band { background: var(--dark-bg); color: var(--dark-text); text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content:""; position:absolute; inset:0; background: radial-gradient(1200px 400px at 50% -20%, rgba(143,176,196,.18), transparent 70%); }
.cta-band .wrap { position: relative; }
.cta-band h2 { color:#fff; }
.cta-band p { color: var(--dark-muted); max-width: 52ch; margin: 1rem auto 2rem; font-size: 1.1rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.cta-band__phone { color:#fff; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; }
.cta-band__phone svg { width: 18px; height: 18px; color: var(--accent-lite); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr; gap: clamp(2rem,4vw,3.5rem); align-items: start; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); } }
.contact-info h2 { margin-bottom: 1rem; }
.contact-list { list-style: none; margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: .95rem; align-items: start; }
.contact-list .ci { width: 44px; height: 44px; border-radius: 11px; background: var(--panel); border: 1px solid var(--line); color: var(--accent); display: grid; place-items: center; flex: none; }
.contact-list .ci svg { width: 21px; height: 21px; }
.contact-list .lbl { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; display: block; margin-bottom: .1rem; }
.contact-list a, .contact-list address { color: var(--ink); font-style: normal; font-weight: 600; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.4rem); box-shadow: var(--shadow-md); }
.form-card h3 { margin-bottom: .3rem; }
.form-card > p { font-size: .95rem; margin-bottom: 1.4rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
.field .req { color: var(--danger); }
.field input, .field textarea {
  font: inherit; font-size: .98rem; color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: .8rem .9rem; width: 100%;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: #9a9081; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(47,74,94,.14); }
.field textarea { resize: vertical; min-height: 120px; }
/* honeypot */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 1.4rem; }
.form-actions .btn { width: 100%; }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .9rem; text-align: center; }
.error-message { color: var(--danger) !important; } /* override supplied inline #ff6b6b (fails AA on white) */

#form-success { display: none; text-align: center; padding: 1.5rem .5rem; }
#form-success .fs-icon { width: 62px; height: 62px; border-radius: 50%; background: rgba(47,74,94,.10); color: var(--accent); display: grid; place-items: center; margin: 0 auto 1.1rem; }
#form-success .fs-icon svg { width: 32px; height: 32px; }
#form-success h3 { margin-bottom: .5rem; }
#form-success p { max-width: 34ch; margin-inline: auto; }

/* ---------- map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-md); position: relative; background: var(--panel); }
.map-wrap iframe { width: 100%; height: clamp(320px, 42vw, 460px); border: 0; display: block; }
.map-fallback { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 2rem; background: var(--panel); z-index: 0; }
.map-fallback .inner { max-width: 30rem; }
.map-fallback svg { width: 40px; height: 40px; color: var(--accent); margin: 0 auto .8rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; margin-top: 1.4rem; }
.map-actions .addr { color: var(--muted); font-size: .95rem; }

/* ---------- faq ---------- */
.faq-list { max-width: 820px; margin-inline: auto; display: grid; gap: .8rem; }
.faq-item { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.15rem 1.3rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.faq-q:hover { color: var(--accent); }
.faq-q .chev { width: 22px; height: 22px; color: var(--accent); flex: none; transition: transform .3s var(--ease); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a__inner { padding: 0 1.3rem 1.25rem; color: var(--muted); }
.faq-q[aria-expanded="true"] + .faq-a { max-height: 340px; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark-bg); color: var(--dark-muted); padding-top: clamp(3rem,6vw,4.5rem); }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 2.4rem; padding-bottom: 2.5rem; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.2fr; } }
.footer-brand .brand__name { color:#fff; }
.footer-brand .brand__tag { color: var(--accent-lite); }
.footer-brand p { color: var(--dark-muted); margin-top: 1rem; font-size: .95rem; max-width: 34ch; }
.footer-brand .brand { color:#fff; }
.footer h4 { color:#fff; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 1.1rem; }
.footer-nav, .footer-contact { list-style: none; display: grid; gap: .7rem; }
.footer-nav a { color: var(--dark-muted); font-size: .96rem; }
.footer-nav a:hover { color:#fff; }
.footer-contact li { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-size: .95rem; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent-lite); margin-top: .28rem; flex: none; }
.footer-contact a, .footer-contact address { color: var(--dark-muted); font-style: normal; overflow-wrap: anywhere; }
.footer-contact a:hover { color:#fff; }
.footer-bottom { border-top: 1px solid rgba(183,174,159,.2); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; align-items: center; justify-content: space-between; }
.footer-bottom p { color: var(--dark-muted); font-size: .86rem; }
.footer-bottom a { color: var(--accent-lite); font-size: .86rem; }

/* ---------- mobile nav drawer ---------- */
@media (max-width: 940px) {
  .nav__links, .nav__phone.desktop-phone { display: none; }
  .nav__toggle { display: inline-flex; }
  .mobile-drawer {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 90;
    background: rgba(247,243,236,.98); backdrop-filter: blur(6px);
    padding: 1.6rem var(--gutter) 2.5rem; flex-direction: column;
    overflow-y: auto; display: none; /* fully out of layout when closed — no offscreen overflow */
  }
  .mobile-drawer.open { display: flex; }
  @media (prefers-reduced-motion: no-preference) {
    .mobile-drawer.open { animation: drawerIn .32s var(--ease); }
  }
  @keyframes drawerIn { from { transform: translateX(10%); opacity: 0; } to { transform: none; opacity: 1; } }
  .mobile-drawer ul { list-style: none; display: grid; gap: .3rem; }
  .mobile-drawer a.m-link { display: block; padding: .95rem .4rem; font-family: var(--serif); font-size: 1.35rem; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-drawer a.m-link:hover { color: var(--accent); }
  .mobile-drawer .m-actions { margin-top: 1.6rem; display: grid; gap: .8rem; }
  .mobile-drawer .m-actions .btn { width: 100%; }
  .mobile-drawer .m-phone { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 700; color: var(--ink); padding: .6rem; }
  .mobile-drawer .m-phone svg { width: 18px; height: 18px; color: var(--accent); }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 941px) { .mobile-drawer { display: none !important; } }

/* hide desktop CTA text on very small screens to protect the toggle row */
@media (max-width: 420px) { .nav__actions .btn.header-cta { display: none; } }

/* ---------- reveal animation (progressive enhancement) ----------
   Base state = visible. Only when JS confirms IntersectionObserver support
   AND motion is allowed does .js-reveal add the hidden/animated behaviour. */
.reveal { }
@media (prefers-reduced-motion: no-preference) {
  html.js-reveal .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
  html.js-reveal .reveal.is-in { opacity: 1; transform: none; }
  html.js-reveal .reveal.d1 { transition-delay: .08s; }
  html.js-reveal .reveal.d2 { transition-delay: .16s; }
  html.js-reveal .reveal.d3 { transition-delay: .24s; }
  html.js-reveal .reveal.d4 { transition-delay: .32s; }
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ---------- print: force everything visible ---------- */
@media print {
  .site-header, .nav__toggle, .mobile-drawer, .hero__cta, .lightbox, .cta-band__actions, .map-wrap iframe { display: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .hero, .why, .cta-band, .site-footer { color: #000 !important; }
  body { background: #fff; }
  a { color: #000; text-decoration: underline; }
}
