/* ============================================
   realestate-static template
   Residential real-estate vertical (personal-brand agents + teams). A warm,
   editorial, ASPIRATIONAL light theme: a cream/ivory base + a warm-charcoal ink
   + the agent's real brand as a DARKENED brand-strong for AA text/CTAs + a
   confident warm brass/terracotta accent. Re-hued per prospect via
   deriveEstatePalette (template.json paletteMode="estate"). Type is HARD-LOCKED
   to Plus Jakarta Sans (display) + Inter (body). Generous whitespace, hairline
   rules and tracked eyebrows read editorial/aspirational — NOT the corporate
   navy of proservices-static, nor the clinical rounded look of dental-static.
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Brand (real, verbatim) + derived AA-safe strong + confident warm accent */
  --color-brand:        #7E7E7E;        /* real brand: eyebrows, icons, headings, accents */
  --color-brand-strong: #564E4E;  /* darkened brand (AA on cream): button fills, links, small text */
  --color-accent:       #E88000;       /* warm brass/terracotta, DECORATIVE: rules, stars, hero CTA, underlines */
  --color-brand-fg:     #FFFFFF;       /* text on brand/brand-strong fills (white) */
  --color-accent-soft:  rgba(232, 128, 0, 0.1);    /* faint accent tint for icon chips + hovers */

  /* Warm cream surfaces (editorial, aspirational) */
  --color-bg:        #FBF9F7;        /* page base, warm cream */
  --color-surface:   #F8F6F2;   /* alt bands, cards */
  --color-surface-2: #F4F0EB;  /* monogram bg, nested cards */
  --color-muted:     #EFEAE3;     /* subtle fills */
  --color-border:    #E7E1DA;    /* hairline borders */

  /* Text */
  --color-ink:     #28231D;     /* warm charcoal ink */
  --color-ink-dim: #766D60;  /* secondary / captions (AA on the cream base) */

  /* Deep warm-charcoal for hero panels, the book CTA band + footer */
  --color-hero-ink:   #322C24;
  --color-hero-ink-2: #1F1A14;
  --color-hero-overlay: rgba(45, 39, 31, 0.72); /* warm-charcoal wash over a hero photo */
  --color-hero-scrim:   rgba(22, 18, 14, 0.6);   /* bottom-up scrim for legibility */
  --color-footer:       #221D16;      /* deep warm-charcoal footer */

  /* Shadows: soft, warm */
  --shadow-sm: 0 1px 2px rgba(38,26,12,0.06);
  --shadow-md: 0 16px 38px -22px rgba(38,26,12,0.30);
  --shadow-lg: 0 34px 72px -32px rgba(38,26,12,0.40);

  /* Typography: Plus Jakarta Sans display, Inter body. No Fraunces/Lora, ever. */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5.5rem;

  /* Layout — softer, more editorial than the corporate template */
  --max-width: 1200px;
  --radius: 0.6rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-brand-strong); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--color-brand); }
button { cursor: pointer; font-family: var(--font-body); }

:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
  border-radius: 3px;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}

/* --- Typography --- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.14; color: var(--color-ink); letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.8vw, 4.75rem); font-weight: 800; line-height: 1.03; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; line-height: 1.25; }

.section-label {
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-brand-strong);
  margin-bottom: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.section-label::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--color-accent);
}

.section-title {
  color: var(--color-ink);
  margin-bottom: var(--space-md);
}

.section-desc {
  color: var(--color-ink-dim);
  font-size: 1.08rem;
  max-width: 660px;
  line-height: 1.75;
}

.section-head-center {
  text-align: center;
  max-width: 740px;
  margin: 0 auto var(--space-lg);
}
.section-head-center .section-label { justify-content: center; }
.section-head-center .section-desc { margin-left: auto; margin-right: auto; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-brand-strong);
  color: var(--color-brand-fg);
}
.btn-primary:hover {
  filter: brightness(1.1);
  color: var(--color-brand-fg);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Warm accent CTA — the marquee action (hero + book band) */
.btn-accent {
  background: var(--color-accent);
  color: var(--color-hero-ink-2);
  border-color: var(--color-accent);
  font-weight: 800;
}
.btn-accent:hover {
  filter: brightness(1.06);
  color: var(--color-hero-ink-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--color-brand-strong);
  border-color: var(--color-border);
}
.btn-outline:hover {
  background: var(--color-surface);
  border-color: var(--color-brand);
  color: var(--color-brand-strong);
  transform: translateY(-2px);
}

/* Hero/band outline: white on the deep warm-charcoal */
.btn-hero-outline {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(4px);
  color: #fff;
  border-color: rgba(255,255,255,0.55);
}
.btn-hero-outline:hover {
  background: rgba(255,255,255,0.16);
  border-color: #fff;
  color: #fff;
  transform: translateY(-2px);
}

/* --- Navigation --- */
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md, 1.5rem);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
}
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1.1rem 0;
  background: transparent;
  transition: background 0.25s ease, box-shadow 0.25s ease, padding 0.25s ease;
}
.nav.scrolled {
  padding: 0.65rem 0;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

/* Real logo lockup, or a clean wordmark when no logo asset exists. Over the
   warm-charcoal hero the mark reads white; once scrolled it takes brand ink. */
.nav-logo { display: inline-flex; align-items: center; }
.nav-logo img { height: 46px; width: auto; display: block; }
.nav.scrolled .nav-logo img { height: 40px; }
.nav-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink);
  line-height: 1;
}
.nav:not(.scrolled) .nav-wordmark { color: #fff; text-shadow: 0 1px 8px rgba(20,12,4,0.4); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.9rem;
  list-style: none;
}
.nav-links a {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  position: relative;
  padding: 0.25rem 0;
}
.nav:not(.scrolled) .nav-links a { color: #fff; text-shadow: 0 1px 6px rgba(20,12,4,0.4); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.3s;
}
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-phone {
  color: var(--color-ink);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
}
.nav:not(.scrolled) .nav-phone { color: #fff; text-shadow: 0 1px 6px rgba(20,12,4,0.4); }
.nav-phone:hover { color: var(--color-brand); }
.nav:not(.scrolled) .nav-phone:hover { color: #fff; }

.nav-cta {
  padding: 0.62rem 1.4rem;
  background: var(--color-accent);
  color: var(--color-hero-ink-2) !important;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: filter 0.2s, transform 0.2s;
}
.nav-cta:hover { filter: brightness(1.06); transform: translateY(-1px); color: var(--color-hero-ink-2) !important; }
.nav-cta::after { display: none !important; }

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  border-radius: 1px;
  background: var(--color-ink);
  transition: all 0.3s;
}
.nav:not(.scrolled) .nav-toggle span { background: #fff; }
.nav-toggle.open span { background: var(--color-ink); }
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Deep warm-charcoal gradient fallback when no hero photo is staged: a low
     warm horizon glow (evokes golden-hour light) over the base charcoal wash,
     so an image-less hero still reads cinematic rather than flat. */
  background:
    radial-gradient(ellipse 90% 55% at 50% 108%, color-mix(in srgb, var(--color-accent) 40%, transparent) 0%, transparent 62%),
    linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
}

/* No real photo staged: a soft rooftop-silhouette horizon along the base of the
   hero stands in for property photography, tying the fallback to "homes" rather
   than a generic gradient. Abstract line-art only, never a fabricated photo. */
.hero-no-photo::before {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 26%;
  background-color: var(--color-accent);
  opacity: 0.15;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='0' y='55' width='70' height='45' fill='%23fff'/%3E%3Cpolygon points='0,55 35,25 70,55' fill='%23fff'/%3E%3Crect x='90' y='40' width='55' height='60' fill='%23fff'/%3E%3Cpolygon points='90,40 117,15 145,40' fill='%23fff'/%3E%3Crect x='160' y='65' width='90' height='35' fill='%23fff'/%3E%3Cpolygon points='160,65 205,38 250,65' fill='%23fff'/%3E%3Crect x='265' y='48' width='60' height='52' fill='%23fff'/%3E%3Cpolygon points='265,48 295,20 325,48' fill='%23fff'/%3E%3Crect x='340' y='58' width='60' height='42' fill='%23fff'/%3E%3Cpolygon points='340,58 370,32 400,58' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='0' y='55' width='70' height='45' fill='%23fff'/%3E%3Cpolygon points='0,55 35,25 70,55' fill='%23fff'/%3E%3Crect x='90' y='40' width='55' height='60' fill='%23fff'/%3E%3Cpolygon points='90,40 117,15 145,40' fill='%23fff'/%3E%3Crect x='160' y='65' width='90' height='35' fill='%23fff'/%3E%3Cpolygon points='160,65 205,38 250,65' fill='%23fff'/%3E%3Crect x='265' y='48' width='60' height='52' fill='%23fff'/%3E%3Cpolygon points='265,48 295,20 325,48' fill='%23fff'/%3E%3Crect x='340' y='58' width='60' height='42' fill='%23fff'/%3E%3Cpolygon points='340,58 370,32 400,58' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-position: bottom left; mask-position: bottom left;
  -webkit-mask-size: 400px 100%; mask-size: 400px 100%;
  z-index: 2; /* above .hero-overlay's charcoal wash so the motif actually reads */
  pointer-events: none;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg, var(--color-hero-scrim) 0%, transparent 55%),
    var(--color-hero-overlay);
}
.hero-inner { position: relative; z-index: 2; width: 100%; }
.hero-content { max-width: 760px; padding: 9.5rem 0 4.5rem; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}
.hero-badge::before { content: ''; width: 32px; height: 2px; background: var(--color-accent); }

.hero h1 { color: #fff; margin-bottom: var(--space-sm); }
.hero h1 em {
  font-style: normal;
  color: #fff;
  position: relative;
  white-space: nowrap;
}
.hero h1 em::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.16em;
  background: var(--color-accent);
  opacity: 0.92;
  border-radius: 1px;
}

.hero-sub {
  font-size: 1.18rem;
  color: rgba(255,255,255,0.92);
  margin-bottom: var(--space-lg);
  max-width: 600px;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
/* In the hero, the primary action reads as the warm accent marquee CTA */
.hero .btn-primary {
  background: var(--color-accent);
  color: var(--color-hero-ink-2);
  border-color: var(--color-accent);
  font-weight: 800;
}
.hero .btn-primary:hover { filter: brightness(1.06); color: var(--color-hero-ink-2); }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.hero-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
}
.hero-rating strong { font-family: var(--font-display); font-size: 1.15rem; }
.hero-stars { color: var(--color-accent); letter-spacing: 0.06em; }
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--radius);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}
.hero-chip svg { width: 18px; height: 18px; color: var(--color-accent); flex-shrink: 0; }

/* --- Hero archetypes: split + bandoverlay (fullbleed = the base above) --- */
/* Split: full-bleed two-column — warm-charcoal content panel beside a real photo
   (headshot / listing), or a bold charcoal->accent gradient panel with no photo. */
.hero-split { min-height: auto; }
.hero-split .hero-inner {
  max-width: 100%;
  padding: 0;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: stretch;
  min-height: 90vh;
}
.hero-split .hero-content {
  max-width: none;
  padding: clamp(7.5rem, 9vw, 9rem) clamp(1.5rem, 5vw, 4.5rem) clamp(3rem, 6vw, 4.5rem);
  background: linear-gradient(160deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-figure {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 100% 65% at 28% 105%, color-mix(in srgb, var(--color-accent) 45%, transparent) 0%, transparent 60%),
    linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-accent) 165%);
}
.hero-figure::after {
  /* subtle hairline seam of accent between panel + figure */
  content: '';
  position: absolute; top: 0; bottom: 0; left: 0;
  width: 3px; background: var(--color-accent); opacity: 0.85;
}
.hero-no-photo .hero-figure::before {
  /* same rooftop-silhouette motif as the fullbleed fallback, kept subtle */
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 30%;
  background-color: #fff;
  opacity: 0.12;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='0' y='55' width='70' height='45' fill='%23fff'/%3E%3Cpolygon points='0,55 35,25 70,55' fill='%23fff'/%3E%3Crect x='90' y='40' width='55' height='60' fill='%23fff'/%3E%3Cpolygon points='90,40 117,15 145,40' fill='%23fff'/%3E%3Crect x='160' y='65' width='90' height='35' fill='%23fff'/%3E%3Cpolygon points='160,65 205,38 250,65' fill='%23fff'/%3E%3Crect x='265' y='48' width='60' height='52' fill='%23fff'/%3E%3Cpolygon points='265,48 295,20 325,48' fill='%23fff'/%3E%3Crect x='340' y='58' width='60' height='42' fill='%23fff'/%3E%3Cpolygon points='340,58 370,32 400,58' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='0' y='55' width='70' height='45' fill='%23fff'/%3E%3Cpolygon points='0,55 35,25 70,55' fill='%23fff'/%3E%3Crect x='90' y='40' width='55' height='60' fill='%23fff'/%3E%3Cpolygon points='90,40 117,15 145,40' fill='%23fff'/%3E%3Crect x='160' y='65' width='90' height='35' fill='%23fff'/%3E%3Cpolygon points='160,65 205,38 250,65' fill='%23fff'/%3E%3Crect x='265' y='48' width='60' height='52' fill='%23fff'/%3E%3Cpolygon points='265,48 295,20 325,48' fill='%23fff'/%3E%3Crect x='340' y='58' width='60' height='42' fill='%23fff'/%3E%3Cpolygon points='340,58 370,32 400,58' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-repeat: repeat-x; mask-repeat: repeat-x;
  -webkit-mask-position: bottom left; mask-position: bottom left;
  -webkit-mask-size: 260px 100%; mask-size: 260px 100%;
}
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }

/* Bandoverlay: full-bleed photo + a solid warm-charcoal CTA band low on the hero. */
.hero-bandoverlay .hero-inner {
  display: flex;
  align-items: flex-end;
  min-height: 92vh;
  padding: 7rem 0 clamp(2rem, 5vw, 3.5rem);
}
.hero-bandoverlay .hero-overlay { background: linear-gradient(0deg, var(--color-hero-scrim) 0%, transparent 68%); }
.hero-bandoverlay .hero-content {
  max-width: 940px;
  padding: clamp(2rem, 3.5vw, 3rem) clamp(2rem, 4vw, 3.2rem);
  background: linear-gradient(140deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* --- Trust strip --- */
.trust-bar {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.trust-bar-inner {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 2.25rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 2.5rem);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--color-ink);
  font-size: 0.9rem;
  font-weight: 500;
}
.trust-item svg { width: 20px; height: 20px; color: var(--color-brand); flex-shrink: 0; }

/* --- Sections --- */
section {
  padding: clamp(4rem, 8.5vw, 7.5rem) 0;
  position: relative;
  scroll-margin-top: 72px;
}
.about-section { background: var(--color-bg); }
.services-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
/* A deep warm-charcoal full-bleed band, not another light card grid — the
   light/dark rhythm (light about -> dark results -> light areas -> dark book)
   reads as a curated editorial sequence rather than one long scroll of surfaces. */
.results-section {
  background: linear-gradient(155deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  color: #fff;
}
.results-section .section-label { color: var(--color-accent); }
.results-section .section-title { color: #fff; }
.results-section .section-desc { color: rgba(255,255,255,0.78); }
.areas-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.team-section { background: var(--color-bg); }
.reviews-section { background: var(--color-surface); border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); }
.contact-section { background: var(--color-bg); }

/* --- About / agent bio --- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.about-grid.no-media { grid-template-columns: 1.15fr 1fr; }
.about-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
}
.about-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 4.6; }
.about-media-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1.25rem 0.9rem;
  background: linear-gradient(0deg, rgba(20,12,4,0.72) 0%, transparent 100%);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.about-text p { color: var(--color-ink-dim); margin-bottom: var(--space-sm); line-height: 1.82; }

/* No agent photo staged: an oversized editorial quotation mark fills the visual
   weight a portrait would carry, so the bio doesn't read as a flat text block. */
.about-grid.no-media .about-text { padding-top: 0.75rem; }
.about-grid.no-media .about-text p:first-of-type { position: relative; }
.about-grid.no-media .about-text p:first-of-type::before {
  content: '\201C';
  position: absolute;
  top: -0.62em; left: -0.06em;
  font-family: var(--font-display);
  font-size: 6.5rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.28;
  line-height: 1;
  z-index: 0;
  pointer-events: none;
}

.proof-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: var(--space-md);
}
.proof-point {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius);
}
.proof-icon {
  width: 38px; height: 38px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.proof-icon svg { width: 20px; height: 20px; color: var(--color-brand); }
.proof-point strong { display: block; color: var(--color-ink); font-family: var(--font-display); font-size: 0.92rem; margin-bottom: 0.1rem; }
.proof-point span { color: var(--color-ink-dim); font-size: 0.84rem; line-height: 1.5; }

.about-signature {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--color-border);
}
.about-signature-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--color-brand-strong);
  letter-spacing: -0.01em;
}
.about-signature-role {
  color: var(--color-ink-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-top: 0.15rem;
}

/* --- Services (Buy / Sell / Invest — NO prices, commission-based) --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
/* Open editorial columns rather than boxed SaaS-style cards: a slim top rule
   (like a masthead colonnade) carries the separation, not a border+shadow box
   around every single item — reads closer to a magazine feature spread. */
.service-card {
  position: relative;
  padding: 2rem 0.4rem 0 0;
  background: transparent;
  border: none;
  border-top: 2px solid var(--color-border);
  border-radius: 0;
  box-shadow: none;
  transition: border-color 0.25s ease, transform 0.2s;
  overflow: visible;
}
.service-card::after {
  content: '';
  position: absolute;
  left: 0; top: -2px;
  width: 0; height: 2px;
  background: var(--color-accent);
  transition: width 0.35s ease;
}
.service-card:hover { transform: translateY(-2px); }
.service-card:hover::after { width: 100%; }
.service-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.service-icon svg { width: 26px; height: 26px; color: var(--color-brand); }
.service-card h3 { margin-bottom: 0.5rem; }
.service-card > p { color: var(--color-ink-dim); font-size: 0.95rem; line-height: 1.65; }
.service-points {
  list-style: none;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.service-points li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--color-ink-dim);
  font-size: 0.88rem;
  line-height: 1.5;
}
.service-points li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.5em;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.services-cta {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: var(--space-lg);
}

/* --- Results / stats (REAL published career numbers only) --- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
}
.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.5rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-lg);
  position: relative;
}
.stat-card::before {
  /* thin accent hairline crowning each figure, echoing an award plaque */
  content: '';
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 32px; height: 2px;
  background: var(--color-accent);
}
.stat-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.stat-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
}
.stat-detail {
  color: rgba(255,255,255,0.68);
  font-size: 0.82rem;
  margin-top: 0.3rem;
  line-height: 1.45;
}
.stats-note {
  text-align: center;
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  margin-top: var(--space-md);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Areas served (inline) --- */
.areas-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.areas-intro { position: relative; padding-bottom: 2.5rem; }
.areas-intro .btn { margin-top: var(--space-md); }
.areas-intro::after {
  /* the rooftop-silhouette motif recurs here (brand-toned, very faint) so the
     "areas served" block reads as homes/neighbourhoods, not just a text list */
  content: '';
  position: absolute;
  left: 0; bottom: 0; width: 260px; height: 46px;
  background-color: var(--color-brand);
  opacity: 0.16;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='0' y='55' width='70' height='45' fill='%23fff'/%3E%3Cpolygon points='0,55 35,25 70,55' fill='%23fff'/%3E%3Crect x='90' y='40' width='55' height='60' fill='%23fff'/%3E%3Cpolygon points='90,40 117,15 145,40' fill='%23fff'/%3E%3Crect x='160' y='65' width='90' height='35' fill='%23fff'/%3E%3Cpolygon points='160,65 205,38 250,65' fill='%23fff'/%3E%3Crect x='265' y='48' width='60' height='52' fill='%23fff'/%3E%3Cpolygon points='265,48 295,20 325,48' fill='%23fff'/%3E%3Crect x='340' y='58' width='60' height='42' fill='%23fff'/%3E%3Cpolygon points='340,58 370,32 400,58' fill='%23fff'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 100'%3E%3Crect x='0' y='55' width='70' height='45' fill='%23fff'/%3E%3Cpolygon points='0,55 35,25 70,55' fill='%23fff'/%3E%3Crect x='90' y='40' width='55' height='60' fill='%23fff'/%3E%3Cpolygon points='90,40 117,15 145,40' fill='%23fff'/%3E%3Crect x='160' y='65' width='90' height='35' fill='%23fff'/%3E%3Cpolygon points='160,65 205,38 250,65' fill='%23fff'/%3E%3Crect x='265' y='48' width='60' height='52' fill='%23fff'/%3E%3Cpolygon points='265,48 295,20 325,48' fill='%23fff'/%3E%3Crect x='340' y='58' width='60' height='42' fill='%23fff'/%3E%3Cpolygon points='340,58 370,32 400,58' fill='%23fff'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: contain; mask-size: contain;
  -webkit-mask-position: bottom left; mask-position: bottom left;
  pointer-events: none;
}
.areas-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md) var(--space-lg);
}
.areas-group h3 {
  font-size: 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-accent);
  display: inline-block;
}
.areas-list { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.areas-list li {
  color: var(--color-ink-dim);
  font-size: 0.92rem;
  position: relative;
  padding-left: 1.1rem;
}
.areas-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 0.55em;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-brand);
  opacity: 0.6;
}

/* --- Team --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  max-width: 1000px;
  margin: 0 auto;
}
.team-card {
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
  align-items: center;
}
.team-photo { margin-bottom: 1rem; }
.team-photo img {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--color-bg);
  box-shadow: 0 0 0 1px var(--color-border);
}
.team-monogram {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  color: var(--color-brand-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.2rem;
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  box-shadow: 0 0 0 1px var(--color-border);
}
.team-body h3 { margin-bottom: 0.15rem; }
.team-credentials {
  color: var(--color-brand-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.2rem;
}
.team-role {
  color: var(--color-ink-dim);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin-bottom: 0.7rem;
}
.team-body p { color: var(--color-ink-dim); font-size: 0.9rem; line-height: 1.65; }

/* Stock-team placeholder: honest, always-visible "this can be your team" demo card,
   shown ONLY when the agent/brokerage has no real headshots. Never passed off as
   real staff (no name, no title) — a permanent ribbon + label mark it as a demo. */
.team-card--placeholder .team-photo { position: relative; }
.team-card--placeholder .team-photo img { filter: saturate(0.9) contrast(0.98); }
.team-ph-ribbon {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  background: var(--color-accent);
  color: var(--color-brand-fg);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.34rem 0.66rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.22);
}
.team-card--placeholder .team-ph-title { color: var(--color-brand-strong); margin-bottom: 0.3rem; }
.team-card--placeholder .team-ph-note { color: var(--color-ink-dim); font-size: 0.9rem; line-height: 1.65; }

/* --- Reviews / testimonials --- */
.reviews-section .section-head-center { margin-bottom: var(--space-md); }
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--space-sm);
  padding: 0.5rem 1.1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--color-ink-dim);
}
.rating-score { font-family: var(--font-display); font-weight: 800; color: var(--color-ink); font-size: 1.15rem; }
.rating-stars { color: var(--color-accent); letter-spacing: 0.05em; }

.review-lead {
  position: relative;
  max-width: 860px;
  margin: 0 auto var(--space-lg);
  padding: 2.4rem 2.6rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.review-lead::before {
  /* the same oversized-quotation motif used in the About section, so the
     editorial identity feels designed rather than templated per-section */
  content: '\201C';
  position: absolute;
  top: -0.55em; right: 0.35em;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 800;
  color: var(--color-accent);
  opacity: 0.1;
  line-height: 1;
  pointer-events: none;
}
.review-lead p {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-ink);
  margin: 0.5rem 0 0.9rem;
}
.review-lead footer { font-size: 0.9rem; }
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.review-card {
  padding: 1.9rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: left;
}
.review-stars { color: var(--color-accent); font-size: 0.9rem; letter-spacing: 0.1em; margin-bottom: 0.75rem; }
.review-card blockquote { color: var(--color-ink); font-size: 0.95rem; line-height: 1.7; margin-bottom: var(--space-sm); }
.review-author { font-family: var(--font-display); font-weight: 700; color: var(--color-ink); font-size: 0.9rem; }
.review-source { color: var(--color-ink-dim); font-size: 0.8rem; }

/* --- Book / CTA band --- */
.book-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  color: #fff;
}
/* Optional illustrative stock photo (book.image): same brand gradient as a
   semi-opaque wash over a real photo, so the band's color identity and text
   legibility are identical with or without a staged image. */
.book-media { position: absolute; inset: 0; z-index: 0; }
.book-media img { width: 100%; height: 100%; object-fit: cover; }
.book-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  opacity: 0.86;
}
.book-section .container { position: relative; z-index: 2; }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.book-intro .section-label { color: var(--color-accent); }
.book-intro .section-title { color: #fff; }
.book-intro .section-desc { color: rgba(255,255,255,0.9); }
.book-call {
  margin-top: var(--space-md);
  padding: 1.5rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-lg);
}
.book-call p { color: rgba(255,255,255,0.9); margin-bottom: 1rem; font-size: 0.95rem; }

.book-form {
  padding: 2.1rem;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}
.book-form .btn-primary { background: var(--color-accent); color: var(--color-hero-ink-2); border-color: var(--color-accent); font-weight: 800; }
.book-form .btn-primary:hover { filter: brightness(1.06); color: var(--color-hero-ink-2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-sm); }
.form-group { margin-bottom: var(--space-sm); }
.form-group label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-ink-dim);
  margin-bottom: 0.35rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.78rem 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  outline: none;
}
.form-group textarea { resize: vertical; min-height: 96px; }
.form-group select { cursor: pointer; }
.book-submit { width: 100%; margin-top: 0.25rem; }
.book-privacy { color: var(--color-ink-dim); font-size: 0.78rem; margin-top: 0.75rem; text-align: center; }

/* --- Contact / Map --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: stretch;
}
.contact-details { display: flex; flex-direction: column; gap: 0.75rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.contact-detail svg { width: 22px; height: 22px; color: var(--color-brand); flex-shrink: 0; margin-top: 0.1rem; }
.contact-detail strong { display: block; color: var(--color-ink); font-family: var(--font-display); font-size: 0.95rem; margin-bottom: 0.15rem; }
.contact-detail span { color: var(--color-ink-dim); font-size: 0.9rem; line-height: 1.55; }
.contact-detail a { color: var(--color-brand-strong); font-weight: 600; }
.contact-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: var(--space-md); }
.contact-note { color: var(--color-ink-dim); font-size: 0.88rem; margin-top: var(--space-sm); }
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  min-height: 380px;
}
.map-container iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* --- Page hero (areas.html) --- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(5rem + var(--space-md)) 0 var(--space-lg);
  text-align: center;
  background: linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
}
/* Optional illustrative stock photo (pageHero.image): a real image sits behind
   the SAME brand gradient, now used as a semi-opaque wash so the band's color
   identity and text legibility stay identical whether or not a photo is staged. */
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(150deg, var(--color-hero-ink) 0%, var(--color-hero-ink-2) 100%);
  opacity: 0.86;
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero .section-label { color: var(--color-accent); justify-content: center; }
.page-hero .section-title,
.page-hero h1 { color: #fff; font-size: clamp(2.1rem, 4vw, 3.4rem); }
.page-hero .section-desc { color: rgba(255,255,255,0.9); margin: 0 auto; max-width: 660px; }

/* --- Full areas page --- */
.full-areas-section { padding: var(--space-xl) 0; }
.full-areas-group { margin-bottom: var(--space-xl); }
.category-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.category-header h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); white-space: nowrap; }
.category-header .line { flex: 1; height: 1px; background: var(--color-border); }
.areas-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}
.area-card {
  padding: 1.6rem 1.75rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.area-card h3 { margin-bottom: 0.4rem; }
.area-card p { color: var(--color-ink-dim); font-size: 0.92rem; line-height: 1.62; }
.areas-page-cta { text-align: center; }
.areas-page-cta .section-desc { margin: 0 auto 0.5rem; }
.areas-cta-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: var(--space-sm); }

/* --- Footer --- */
.footer {
  background: var(--color-footer);
  padding: var(--space-xl) 0 var(--space-md);
  color: rgba(255,255,255,0.75);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1.4fr 1.4fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}
.footer-logo { height: 48px; width: auto; margin-bottom: var(--space-sm); }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  display: inline-block;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid var(--color-accent);
}
.footer-brand p { color: rgba(255,255,255,0.72); font-size: 0.88rem; max-width: 320px; line-height: 1.65; }
.footer-tag { margin-top: 0.75rem; color: var(--color-accent) !important; font-weight: 600; font-size: 0.85rem !important; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-sm);
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.5rem; font-size: 0.88rem; color: rgba(255,255,255,0.72); }
.footer-col a { color: rgba(255,255,255,0.72); font-size: 0.88rem; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: flex-start; gap: 0.5rem; }
.footer-contact li svg { width: 15px; height: 15px; flex: none; margin-top: 0.2rem; color: rgba(255,255,255,0.85); }
.footer-hours { display: flex; flex-direction: column; gap: 0.4rem; }
.footer-hours-row { display: flex; justify-content: space-between; gap: var(--space-sm); font-size: 0.85rem; color: rgba(255,255,255,0.72); }
.footer-hours-row span:first-child { color: #fff; font-weight: 600; }
.footer-hours-row span:last-child { text-align: right; white-space: nowrap; }
.footer-bottom {
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255,255,255,0.14);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
}
.footer-disclosure { color: rgba(255,255,255,0.55); }

/* --- Modal --- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(20,12,4,0.55);
  z-index: 250;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
  padding: var(--space-md);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95);
  transition: transform 0.3s;
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto var(--space-sm);
}
.modal-icon svg { width: 28px; height: 28px; color: var(--color-brand); }
.modal h3 { margin-bottom: var(--space-xs); }
.modal p { color: var(--color-ink-dim); margin-bottom: var(--space-md); font-size: 0.92rem; line-height: 1.6; }

/* --- Back to top --- */
.back-to-top {
  position: fixed;
  bottom: 2rem; right: 2rem;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--color-brand-strong);
  color: #fff;
  border: none;
  display: flex; align-items: center; justify-content: center;
  z-index: 90;
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-md);
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { filter: brightness(1.1); transform: translateY(-2px); }
.back-to-top svg { width: 20px; height: 20px; }

/* --- Animations --- */
html.js-anim .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
html.js-anim .fade-up.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .fade-up { opacity: 1; transform: none; transition: none; }
  .btn:hover, .back-to-top:hover, .service-card:hover, .team-card:hover { transform: none; }
}

/* --- Preview disclosure badge (required on every preview) --- */
.preview-badge {
  position: fixed;
  left: 12px; bottom: 12px;
  z-index: 2000;
  display: inline-flex;
  align-items: stretch;
  background: rgba(20, 12, 4, 0.86);
  font-size: 0.72rem;
  line-height: 1;
  border-radius: var(--radius);
  overflow: hidden;
  opacity: 0.92;
}
.preview-badge:hover, .preview-badge:focus-within { opacity: 1; }
.preview-badge a { display: inline-flex; align-items: center; padding: 7px 10px; text-decoration: none; white-space: nowrap; }
.preview-badge a:focus-visible { outline: 2px solid var(--color-accent); outline-offset: -2px; }
.preview-badge-info, .preview-badge-info:hover { color: #fff; }
.preview-badge-cta { background: var(--color-accent); color: var(--color-hero-ink-2); font-weight: 700; }
.preview-badge-cta:hover { background: var(--color-accent); filter: brightness(1.06); color: var(--color-hero-ink-2); }

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 280px; height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem var(--space-lg) var(--space-lg);
    gap: 1.5rem;
    transition: right 0.3s ease;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { right: 0; }
  .nav:not(.scrolled) .nav-links a { color: var(--color-ink); text-shadow: none; }
  .nav-phone { display: none; }
}

@media (max-width: 900px) {
  .about-grid, .about-grid.no-media { grid-template-columns: 1fr; }
  .services-grid,
  .reviews-grid,
  .team-grid,
  .areas-card-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .areas-layout,
  .book-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .areas-groups { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-md); }
  /* Split + bandoverlay collapse to a single column on smaller screens. */
  .hero-split .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-split .hero-content { padding: 7rem clamp(1.5rem, 6vw, 2.5rem) 3rem; }
  .hero-split .hero-figure { order: 2; min-height: 46vh; }
  .hero-split .hero-figure::after { display: none; }
  .hero-bandoverlay .hero-content { max-width: none; }
}

@media (max-width: 620px) {
  .hero { min-height: 100svh; }
  .hero-content { padding-top: 6rem; }
  .hero-split .hero-content { padding-top: 6.5rem; }
  .hero-bandoverlay .hero-inner { min-height: 100svh; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .services-grid,
  .reviews-grid,
  .team-grid,
  .areas-card-grid,
  .stats-grid,
  .areas-groups,
  .proof-points { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
  .contact-detail span br { display: none; }
}


/* sw-trust widget skin (frameworks/_base/widgets/trust-bar.css, pack-tinted).
   Shared STRUCTURE across packs; this pack's palette supplies the look. */
.sw-trust { background: var(--color-brand-strong, var(--color-brand)); border-bottom: 1px solid rgba(255,255,255,0.08); }
.sw-trust-inner { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; flex-wrap: wrap; gap: 10px 40px; justify-content: center; }
.sw-trust-item { display: flex; align-items: baseline; gap: 8px; }
.sw-trust-value { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: #fff; }
.sw-trust-label { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); }
@media (max-width: 640px) { .sw-trust-inner { gap: 8px 22px; padding: 12px 16px; } .sw-trust-value { font-size: 1rem; } }

/* sw-booking action row (widget contract). */
.sw-booking-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.sw-btn-ghost { color: var(--color-brand-strong, var(--color-brand)); text-decoration: underline; text-underline-offset: 3px; font-size: 0.95rem; }
.sw-btn-ghost:hover { opacity: 0.8; }
