/* =========================================================
   Nashville BHS LLC — styles.css
   Vanilla, no build step. Design tokens first.
   ========================================================= */

:root {
  /* --- Brand palette (sampled from screenshots) --- */
  --navy:        #1f3a5f;   /* deep navy accent */
  --navy-deep:   #13294a;
  --steel:       #3a6ea5;   /* nav bar steel blue */
  --steel-600:   #335f8e;
  --steel-200:   #d6e3ee;
  --gold:        #d4a738;   /* crisp amber accent (CTAs, rules, underlines) */
  --gold-600:    #b88f34;   /* hover/darker accent */
  --gold-text:   #8a6d1f;   /* AA-safe gold for small text on light backgrounds */

  --ink:         #1c2733;   /* body text */
  --ink-soft:    #4a5763;
  --ink-faint:   #76828d;

  --paper:       #ffffff;
  --paper-2:     #f6f9fb;   /* light section */
  --tint:        #eef4f8;   /* tint section */
  --line:        #e2e9ef;

  /* --- Typography --- */
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* --- Spacing scale --- */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* --- Radii --- */
  --r-sm: 6px; --r-md: 12px; --r-lg: 18px; --r-pill: 999px;

  /* --- Layered soft shadows --- */
  --sh-1: 0 1px 2px rgba(20,40,70,.06), 0 2px 4px rgba(20,40,70,.05);
  --sh-2: 0 2px 4px rgba(20,40,70,.06), 0 8px 20px rgba(20,40,70,.08);
  --sh-3: 0 4px 8px rgba(20,40,70,.07), 0 16px 40px rgba(20,40,70,.13);
  --sh-gold: 0 4px 14px rgba(205,163,73,.35);
  /* Shadow tuned for raised elements sitting on dark/navy surfaces: a deeper
     cast-black drop plus a subtle light top-edge inset so cards read as lifted
     off the band instead of flat. */
  --sh-dark:
    0 2px 6px rgba(0,0,0,.30),
    0 14px 38px rgba(0,0,0,.40),
    inset 0 1px 0 rgba(255,255,255,.10);

  /* --- Refined easing (never browser-default ease) --- */
  --ease:      cubic-bezier(.22, .61, .36, 1);   /* smooth out */
  --ease-out:  cubic-bezier(.16, 1, .3, 1);      /* expressive settle */
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);   /* calm symmetric glide (carousel, nav drawer) */

  --container: 1180px;
  --header-h: 132px;
}

/* =========================================================
   Reset / base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: clamp(15px, 1.05vw, 16.5px);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

h1, h2, h3 { font-family: var(--serif); line-height: 1.15; color: var(--navy); font-weight: 700; }
/* Differentiate the tiers: h2 is the section voice (heavier, larger leading),
   h3 is a quieter sub-voice (lighter weight, tighter). */
h2 { font-weight: 700; }
h3 { font-weight: 600; line-height: 1.2; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(18px, 4vw, 32px); }

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

/* Visible focus everywhere. No forced border-radius so the ring follows each
   element's own shape (pill / round controls keep their corners). */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}
/* Round/pill controls: trace their actual shape with an offset ring. */
.carousel__btn:focus-visible,
.social a:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* Skip link */
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; text-decoration: none; }

/* =========================================================
   Buttons
   ========================================================= */
.btn {
  --btn-bg: var(--steel);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 11px 22px;
  font-family: var(--sans); font-weight: 600; font-size: .82rem;
  letter-spacing: .06em; text-transform: uppercase;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid transparent; border-radius: var(--r-sm);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  box-shadow: var(--sh-1);
  transition: transform .18s var(--ease-out), box-shadow .25s var(--ease), background-color .2s var(--ease);
}
/* Solid buttons darken via their background-color hover token; the translateY +
   shadow carry the state. No brightness filter (it milks saturated navy/steel). */
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--sh-2); }
.btn:hover { background: var(--steel-600); } /* default (steel) darker state */
.btn:active { transform: translateY(0) scale(.98); box-shadow: var(--sh-1); transition-duration: .06s; }

.btn--gold { --btn-bg: var(--gold); --btn-fg: #2a2105; box-shadow: var(--sh-gold); }
.btn--gold:hover { background: var(--gold-600); }
/* Crisp tactile press for the gold CTA: depress into the surface, no muddy dim */
.btn--gold:active { background: var(--gold-600); filter: none; box-shadow: inset 0 2px 4px rgba(0,0,0,.22); }
.btn--navy { --btn-bg: var(--navy); }
.btn--navy:hover { background: var(--navy-deep); }
.btn--ghost {
  --btn-bg: transparent; --btn-fg: #fff; border-color: rgba(255,255,255,.6);
  box-shadow: none; backdrop-filter: blur(2px);
}
.btn--ghost:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { min-height: 52px; padding: 15px 30px; font-size: .85rem; }
.btn--block { width: 100%; }

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20,40,70,.05);
}

.header-top__inner {
  display: flex; align-items: center; gap: var(--sp-5);
  padding-block: 12px; min-height: 84px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand__mark { display: grid; place-items: center; filter: drop-shadow(0 2px 4px rgba(20,40,70,.18)); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.7rem; color: var(--navy); letter-spacing: .01em; }
.brand__tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }

.header-info { display: flex; align-items: center; gap: var(--sp-6); margin-left: auto; }
.info-block { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-soft); }
.info-block--link { color: var(--ink-soft); }
.info-block--link:hover { text-decoration: none; color: var(--navy); }
.info-ico { width: 20px; height: 20px; fill: var(--steel); flex: 0 0 auto; }
.info-text { display: flex; flex-direction: column; font-size: .8rem; line-height: 1.3; }
.info-strong { font-weight: 700; color: var(--navy); font-size: .92rem; }

.header-cta { margin-left: var(--sp-2); }

/* nav toggle (mobile) */
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; justify-content: center;
  width: 44px; height: 44px; padding: 0; margin-left: auto;
  background: transparent; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer;
}
.nav-toggle__bar {
  width: 22px; height: 2px; background: var(--navy); margin-inline: auto; border-radius: 2px;
  transition: transform .3s var(--ease-out), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* navbar */
.navbar { background: var(--steel); background-image: linear-gradient(180deg, var(--steel), var(--steel-600)); }
.navlist {
  list-style: none; display: flex; flex-wrap: wrap; padding: 0;
  gap: clamp(2px, 1.4vw, 18px);
}
.navlist a, .navlist .navlink--soon {
  display: inline-flex; align-items: center; min-height: 46px;
  padding: 0 12px; color: #eaf2fa; font-size: .82rem; font-weight: 500;
  letter-spacing: .03em; position: relative;
  transition: color .25s var(--ease-out), background-color .25s var(--ease-out);
}
.navlist a:hover { color: #fff; text-decoration: none; background: rgba(255,255,255,.08); }
.navlist a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 8px; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease-out);
}
.navlist a:hover::after, .navlist a[aria-current="true"]::after { transform: scaleX(1); }
.navlink--soon { color: #e6eef8 !important; cursor: default; }
.navlink--soon:hover { background: transparent !important; color: #e6eef8 !important; }
.navlink--soon::after { display: none; }
.soon-tag {
  margin-left: 6px; font-size: .58rem; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(255,255,255,.16); color: #fff; padding: 2px 6px; border-radius: var(--r-pill);
}

/* =========================================================
   Reveal animations (blur-in)
   ========================================================= */
.reveal {
  opacity: 0; transform: translateY(22px); filter: blur(8px);
  transition:
    opacity .7s var(--ease-out),
    transform .8s var(--ease-out),
    filter .7s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }

/* =========================================================
   Generic sections
   ========================================================= */
.section { padding-block: clamp(54px, 7vw, 92px); }
.section--light { background: var(--paper-2); }
.section--tint  { background: var(--tint); }

.section-head { text-align: center; max-width: 860px; margin-inline: auto; margin-bottom: var(--sp-8); }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
.rule { display: block; width: 64px; height: 3px; background: var(--gold); border-radius: 2px; margin: 18px auto 22px; }
.section-intro { color: var(--ink-soft); font-size: 1.02rem; }
.section-intro--wide { max-width: 820px; margin-inline: auto; font-size: .98rem; }
.section-intro a { color: var(--steel-600); font-weight: 600; }

/* Uppercase kicker / eyebrow tier — small, letter-spaced, gold accent, sits
   above the major heading to add a clear typographic step above the h2. */
.kicker {
  display: block;
  font-family: var(--sans);
  font-size: .74rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold-text);
  margin-bottom: 10px;
}
.kicker--on-dark { color: var(--gold); }

/* Left-aligned section head (Team, Commercial Properties) — breaks the
   centered-head + centered-rule symmetry to read as a deliberate human hand. */
.section-head--left { text-align: left; max-width: 760px; margin-inline: 0; }
.rule--left { margin-left: 0; margin-right: 0; }

/* =========================================================
   Hero
   ========================================================= */
.hero {
  position: relative; color: var(--ink);
  background: linear-gradient(180deg, #fbfdfe, var(--paper) 38%);
  border-bottom: 1px solid var(--line);
}
.hero__inner {
  padding-block: clamp(48px, 7vw, 88px);
  max-width: 880px; margin-inline: auto; text-align: center;
}
.hero h1 { margin-bottom: 4px; }
.hero h1 {
  color: var(--navy); font-size: clamp(2.2rem, 5.6vw, 3.8rem);
  line-height: 1.05; letter-spacing: -.01em; font-weight: 700;
}
.hero__copy { margin-top: var(--sp-5); max-width: 760px; margin-inline: auto; }
.hero__copy p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.02rem; }

/* =========================================================
   Service-area cards (3)
   ========================================================= */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); margin-bottom: var(--sp-8); }
.area-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  overflow: hidden; box-shadow: var(--sh-1);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease);
}
.area-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--steel-200); }
.area-card__photo {
  aspect-ratio: 4 / 3; background-color: var(--steel-200);
  background-size: cover; background-position: center;
  transition: transform .6s var(--ease-out);
}
.area-card:hover .area-card__photo { transform: scale(1.05); }
/* Distinct location-representative photo per locale, separate from the prop-strip
   set so the page never shows the same three images twice. Backgrounds are gated
   behind .is-bg-loaded so the IntersectionObserver in main.js defers these
   below-the-fold fetches (CSS backgrounds can't use loading="lazy"). A plain
   url() fallback precedes image-set() for older Safari (<14). */
/* Distinct location photo per locale (area-1 Brentwood, area-2 Spring Hill,
   area-3 Nolensville). No reuse of the band/values backgrounds. */
.area-card.is-bg-loaded.area-card--a .area-card__photo {
  background-image: url("assets/area-1.jpg");
}
.area-card.is-bg-loaded.area-card--b .area-card__photo {
  background-image: url("assets/area-2.jpg");
}
.area-card.is-bg-loaded.area-card--c .area-card__photo {
  background-image: url("assets/area-3.jpg");
}
.area-card__body { padding: var(--sp-5); text-align: center; }
.area-card__body h3 { font-size: 1.32rem; margin-bottom: 14px; }

/* Service cards (2) */
.cards-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.service-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: var(--sp-7) var(--sp-6); text-align: center; box-shadow: var(--sh-1);
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--steel-200); }
.service-card__icon {
  width: 96px; height: 96px; margin: 0 auto var(--sp-4);
  display: grid; place-items: center;
}
.service-card__icon svg { width: 84px; height: 84px; }
.service-card h3 { font-size: 1.4rem; margin-bottom: 12px; }
.service-card p { color: var(--ink-soft); margin-bottom: var(--sp-5); }

/* =========================================================
   Commercial properties strip
   ========================================================= */
.prop-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); }
.prop-strip__item {
  border-radius: var(--r-md); overflow: hidden; box-shadow: var(--sh-2);
  aspect-ratio: 16 / 10;
}
.prop-strip__item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease-out), filter .4s var(--ease);
  filter: saturate(1.02);
}
.prop-strip__item:hover img { transform: scale(1.06); }

/* =========================================================
   Stats band
   ========================================================= */
.stats-band { position: relative; isolation: isolate; color: #fff; padding-block: clamp(56px, 8vw, 100px); }
.stats-band__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--navy);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
/* Photographic skyline ships once the band scrolls near view (see lazyBackgrounds). */
.stats-band.is-bg-loaded .stats-band__bg {
  background-image: image-set(url("assets/band-cityscape.webp") type("image/webp"), url("assets/band-cityscape.jpg") type("image/jpeg"));
}
.stats-band__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(31,58,95,.78), rgba(19,41,74,.86));
}
.stats-band__inner { text-align: center; max-width: 920px; margin-inline: auto; }
.stats-band__inner h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.stats-band__sub { font-style: italic; color: var(--gold); margin: 8px 0 18px; letter-spacing: .02em; }
.stats-band__body { color: rgba(255,255,255,.9); max-width: 760px; margin: 0 auto var(--sp-7); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-5); margin-top: var(--sp-6); }
/* Raised glass panels so the figures lift off the dark band instead of reading
   as flat text on a photo (uses the dark-surface shadow token). */
.stat {
  display: flex; flex-direction: column; gap: 4px;
  padding: var(--sp-5) var(--sp-4);
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-md);
  box-shadow: var(--sh-dark);
  backdrop-filter: blur(2px);
}
.stat__num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.3rem, 5vw, 3.4rem); color: #fff; line-height: 1; }
.stat__label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; color: #d8c596; }

/* =========================================================
   Avatars (initials monograms)
   ========================================================= */
.avatar {
  width: 100%; aspect-ratio: 1; border-radius: var(--r-md);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: clamp(2rem, 5vw, 3rem);
  color: #fff; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), var(--sh-2);
}
.avatar--sm { width: 56px; height: 56px; aspect-ratio: 1; border-radius: 50%; font-size: 1.1rem; flex: 0 0 auto; }
/* One restrained brand treatment — navy/steel gradient with a thin gold ring —
   so the row reads as a deliberate device, not multi-hued placeholder confetti.
   When real headshots ship, swap each .avatar for <img class="team-tile__photo">.
   --a..--e all map to the same treatment; the classes remain so the markup and
   future per-person overrides keep working. */
.avatar--a, .avatar--b, .avatar--c, .avatar--d, .avatar--e {
  background: linear-gradient(140deg, var(--steel), var(--navy));
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0 0 1.5px var(--gold) inset, var(--sh-2);
}
/* Circular reviewer monogram thumbnail for the muted-gray testimonial cards —
   reads as a face-stand-in on a slate card without the gold ring fighting it. */
.avatar--gray {
  background: linear-gradient(145deg, #8a93a1, #5b6573);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), 0 2px 6px rgba(0,0,0,.18);
}

/* =========================================================
   Team band (full-bleed, edge-to-edge 5 tiles)
   ========================================================= */
/* Full viewport width regardless of container; tiles butt together with no gap
   so the row reads as one continuous, intentional team band. */
.team-band {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: var(--sp-7);
  border-top: 1px solid var(--line);
}
.team-tile {
  display: flex; flex-direction: column;
  background: var(--paper);
  border-right: 1px solid rgba(255,255,255,.04);
}
.team-tile:last-child { border-right: none; }

/* Premium brand-blue gradient monogram panel, full tile width, big initials.
   This is the honest placeholder; a real <img class="team-tile__photo"> drops
   straight in here at the same aspect ratio. */
.team-tile__mono,
.team-tile__photo {
  position: relative;
  width: 100%; aspect-ratio: 4 / 5;
  display: grid; place-items: center;
}
.team-tile__photo { object-fit: cover; }
.team-tile__mono {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: .04em; color: #fff;
  background: linear-gradient(150deg, var(--steel) 0%, var(--navy) 70%, var(--navy-deep) 100%);
  text-shadow: 0 2px 14px rgba(0,0,0,.35);
}
/* Subtle per-tile shift so the five panels read as a varied band, not a flat fill. */
.team-tile--a .team-tile__mono { background: linear-gradient(150deg, #4781b8, var(--navy) 72%, var(--navy-deep)); }
.team-tile--b .team-tile__mono { background: linear-gradient(150deg, var(--steel), #234063 72%, var(--navy-deep)); }
.team-tile--c .team-tile__mono { background: linear-gradient(150deg, #3f76a8, var(--navy) 70%, #102139); }
.team-tile--d .team-tile__mono { background: linear-gradient(150deg, #3d6fa0, #21385a 72%, var(--navy-deep)); }
.team-tile--e .team-tile__mono { background: linear-gradient(150deg, #4781b8, var(--navy) 68%, var(--navy-deep)); }
/* Hairline gold edge at the base of the panel ties it to the brand. */
.team-tile__mono::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: var(--gold);
}

.team-tile__body { padding: var(--sp-5) clamp(14px, 1.4vw, 22px) var(--sp-6); }
.team-tile__name { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.team-tile__title { margin-top: 3px; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-text); font-weight: 700; }
.team-tile__bio { margin-top: 12px; font-size: .8rem; color: var(--ink-soft); line-height: 1.55; }

/* Wrap to fewer columns on smaller screens; keep tiles butted. */
@media (max-width: 1080px) {
  .team-band { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .team-band { grid-template-columns: repeat(2, 1fr); }
  .team-tile__bio { font-size: .82rem; }
}
@media (max-width: 520px) {
  .team-band { grid-template-columns: 1fr; }
}

/* =========================================================
   Testimonials carousel
   ========================================================= */
.testimonials__sub { font-family: var(--serif); font-weight: 700; color: var(--navy); font-size: 1.2rem; margin-top: var(--sp-5); }

/* Carousel shows TWO muted-gray cards per view; circular prev/next flank the
   pair on the left and right edges. Padding makes room for the edge buttons. */
.carousel { position: relative; max-width: 920px; margin: var(--sp-7) auto 0; padding-inline: 64px; }
.carousel:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }
.carousel__viewport { overflow: hidden; border-radius: var(--r-lg); touch-action: pan-y; }
.carousel__track.is-dragging { transition: none; cursor: grabbing; }
.carousel__track { list-style: none; padding: 0; display: flex; transition: transform .45s var(--ease-in-out); }

/* Two-up: each card takes half the viewport (minus the inter-card gutter). */
.t-card {
  flex: 0 0 calc(50% - var(--sp-3)); min-width: calc(50% - var(--sp-3));
  margin-right: var(--sp-5);
  background: linear-gradient(160deg, #74808f, #5b6573); /* muted slate gray */
  color: #fff; padding: var(--sp-6); border-radius: var(--r-md);
  box-shadow: var(--sh-dark);
}
.t-card__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.t-card__id { display: flex; flex-direction: column; }
.t-card__name { font-family: var(--serif); font-weight: 700; font-size: 1.05rem; }
.t-card__role { font-size: .76rem; color: rgba(255,255,255,.82); }
.t-card__quote { color: rgba(255,255,255,.95); font-size: .92rem; line-height: 1.6; }
.t-card__quote::before { content: "\201C"; }
.t-card__quote::after { content: "\201D"; }

.carousel__controls { display: flex; align-items: center; justify-content: center; gap: var(--sp-5); margin-top: var(--sp-5); }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--steel); color: #fff; border: none; box-shadow: var(--sh-2);
  transition: transform .18s var(--ease-out), background-color .2s var(--ease), box-shadow .25s var(--ease);
}
.carousel__btn:hover { background: var(--navy); transform: translateY(-2px); }
.carousel__btn:active { transform: scale(.94); transition-duration: .06s; }
.carousel__btn svg { width: 22px; height: 22px; }
/* Edge-flanking arrows, vertically centered on the card pair. */
.carousel__btn--edge {
  position: absolute; top: calc(50% - var(--sp-5)); transform: translateY(-50%);
  z-index: 2;
}
.carousel__btn--edge:hover { transform: translateY(-50%) translateY(-2px); }
.carousel__btn--edge:active { transform: translateY(-50%) scale(.94); }
.carousel__btn--prev { left: 0; }
.carousel__btn--next { right: 0; }
.carousel__dots { display: flex; gap: 2px; }
/* 44x44 transparent hit area (WCAG 2.5.5/2.5.8) with the dot drawn via ::before. */
.carousel__dots button {
  width: 44px; height: 44px; padding: 0; cursor: pointer;
  border: none; background: transparent; border-radius: 50%;
  display: grid; place-items: center;
}
.carousel__dots button::before {
  content: ""; width: 11px; height: 11px; border-radius: 50%;
  background: var(--steel-200);
  transition: background-color .25s var(--ease), transform .25s var(--ease-out);
}
.carousel__dots button[aria-selected="true"]::before { background: var(--gold); transform: scale(1.25); }
.carousel__dots button:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }

.testimonials__cta { text-align: center; margin-top: var(--sp-7); }

/* =========================================================
   Quote section
   ========================================================= */
.quote-grid { display: grid; grid-template-columns: 1.35fr .85fr; gap: var(--sp-7); align-items: start; }

.quote-form-wrap {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 38px); box-shadow: var(--sh-2);
}
.quote-form { display: flex; flex-direction: column; gap: var(--sp-4); }
.fieldset { border: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-4); }
.fieldset legend {
  font-family: var(--sans); font-weight: 700; font-size: .78rem; letter-spacing: .1em;
  text-transform: uppercase; color: var(--navy); padding: 0; margin-bottom: 4px;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.req { color: #8a6d1f; }

.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .95rem; color: var(--ink);
  padding: 11px 13px; min-height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--paper-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), background-color .2s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--steel); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--steel); background-color: #fff;
  box-shadow: 0 0 0 3px rgba(58,110,165,.16);
}
/* Custom select chevron so it matches the field language, not OS chrome */
.field select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a5763' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.field.is-invalid input, .field.is-invalid select { border-color: #c0392b; background: #fdf3f2; }
.field-err { font-size: .76rem; color: #c0392b; min-height: 0; }
.field.is-invalid .field-err { min-height: 1em; }

/* Honeypot — visually hidden but present */
.hp-field { position: absolute; left: -9999px; opacity: 0; width: 1px; height: 1px; }

.form-status { margin-top: 6px; padding: 12px 14px; border-radius: var(--r-sm); font-size: .9rem; font-weight: 600; }
.form-status.is-success { background: #e7f5ec; color: #1c6b3c; border: 1px solid #b6e0c4; }
.form-status.is-error   { background: #fdecea; color: #a32417; border: 1px solid #f2bcb5; }

.quote-aside { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px dashed var(--line); text-align: center; }
.quote-aside__txt { font-size: .9rem; color: var(--ink-soft); margin-bottom: 12px; }

/* Map + review side */
.quote-side { display: flex; flex-direction: column; gap: var(--sp-5); }
.map-card { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-2); border: 1px solid var(--line); }
.map-card__link { position: relative; display: block; }
.map-card__link:hover { text-decoration: none; }
.map-card__img { width: 100%; height: auto; display: block; }
.map-card__pill {
  position: absolute; right: 12px; bottom: 12px;
  background: var(--paper); color: var(--navy); font-size: .78rem; font-weight: 700;
  padding: 8px 14px; border-radius: var(--r-pill); box-shadow: var(--sh-2);
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .2s var(--ease-out), box-shadow .25s var(--ease);
}
.map-card__pill::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.map-card__link:hover .map-card__pill { transform: translateY(-2px); box-shadow: var(--sh-3); }

.review-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: var(--sp-5); box-shadow: var(--sh-1);
}
.review-card__head { font-size: 1.2rem; margin-bottom: var(--sp-4); }
.t-card--static { padding: var(--sp-5); box-shadow: none; }

/* =========================================================
   Values band
   ========================================================= */
.values-band { position: relative; isolation: isolate; color: #fff; padding-block: clamp(56px, 8vw, 100px); }
.values-band__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--steel);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.values-band.is-bg-loaded .values-band__bg {
  background-image: image-set(url("assets/values-bg.webp") type("image/webp"), url("assets/values-bg.jpg") type("image/jpeg"));
}
.values-band__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(74,124,176,.6), rgba(45,86,138,.7));
}
.values-band__inner { text-align: center; max-width: 920px; margin-inline: auto; }
.values-band__inner h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: var(--sp-4); }
.values-band__body { color: rgba(255,255,255,.92); max-width: 800px; margin: 0 auto var(--sp-7); }
.values { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-5); }
.value-item { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.value-item__ico {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.12); border: 1.5px solid rgba(255,255,255,.4);
  box-shadow: var(--sh-dark);
  transition: transform .3s var(--ease-out), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.value-item:hover .value-item__ico { transform: translateY(-4px); background: rgba(255,255,255,.2); }
.value-item__ico svg { width: 32px; height: 32px; fill: #fff; }
.value-item__label { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { position: relative; isolation: isolate; color: #fff; }
.site-footer__bg {
  position: absolute; inset: 0; z-index: -2;
  background-color: var(--navy-deep);
  background-size: cover; background-position: center; background-repeat: no-repeat;
}
.site-footer.is-bg-loaded .site-footer__bg {
  background-image: image-set(url("assets/band-cityscape.webp") type("image/webp"), url("assets/band-cityscape.jpg") type("image/jpeg"));
}
.site-footer__overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(13,25,45,.92), rgba(8,16,30,.96));
}
.site-footer__inner {
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: var(--sp-6);
  padding-block: clamp(40px, 6vw, 70px); align-items: start;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand__text { display: flex; flex-direction: column; }
.footer-brand__name { font-family: var(--serif); font-weight: 700; font-size: 1.5rem; }
.footer-brand__tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.footer-col { display: flex; flex-direction: column; gap: 6px; font-style: normal; font-size: .92rem; color: rgba(255,255,255,.86); }
.footer-col a { color: rgba(255,255,255,.86); }
.footer-col a:hover { color: #fff; }
.footer-col__muted { color: rgba(255,255,255,.55); font-size: .82rem; }
.footer-social { gap: 12px; }
.social { display: flex; gap: 10px; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18);
  box-shadow: var(--sh-dark);
  transition: transform .2s var(--ease-out), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.social a:hover { background: var(--gold); transform: translateY(-3px); }
.social svg { width: 18px; height: 18px; fill: #fff; }

.site-footer__legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 18px; font-size: .8rem; }
.site-footer__legal p { color: rgba(255,255,255,.7); text-align: center; }
.site-footer__legal a { color: rgba(255,255,255,.8); }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1080px) {
  .prop-strip { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 920px) {
  :root { --header-h: 76px; }
  .header-info { display: none; }
  .nav-toggle { display: flex; }
  .header-top__inner { min-height: 64px; }

  .navbar {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 99;
    max-height: 0; overflow: hidden; padding: 0;
    background: var(--steel-600);
    /* visibility:hidden removes the collapsed drawer from the a11y/focus tree;
       it's delayed until the collapse transition finishes so the close animation
       is still visible. The inert attribute (set in JS) is the belt-and-braces
       guarantee for browsers without the visibility-after-transition path. */
    visibility: hidden;
    transition: max-height .4s var(--ease-in-out), visibility 0s linear .4s;
  }
  .navbar.is-open {
    max-height: 70vh; overflow-y: auto; box-shadow: var(--sh-3);
    visibility: visible;
    transition: max-height .4s var(--ease-in-out), visibility 0s linear 0s;
  }
  .navlist { flex-direction: column; gap: 0; padding: 8px 0; }
  .navlist li { border-bottom: 1px solid rgba(255,255,255,.08); }
  .navlist a { min-height: 52px; padding: 0 24px; width: 100%; font-size: .95rem; }
  .navlist a::after { display: none; }

  .quote-grid { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  /* Testimonials: 1-up on mobile, arrows hug the single card. */
  .carousel { padding-inline: 52px; }
  .t-card { flex: 0 0 100%; min-width: 100%; margin-right: 0; }
}

@media (max-width: 720px) {
  .cards-3 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; gap: var(--sp-6); }
  .values { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--sp-6); text-align: left; }
  .field-row { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
  /* Single-column property photos stay legible on the narrowest phones. */
  .prop-strip { grid-template-columns: 1fr; }
}

/* =========================================================
   Reduced motion + screenshot/test mode
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}

/* Screenshot/test mode: ?screenshot=1 sets body.screenshot in JS */
body.screenshot *, body.screenshot *::before, body.screenshot *::after {
  transition: none !important; animation: none !important;
}
body.screenshot .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
