/* ======================================================================
   Coastal Build Group — Design System
   Shared tokens + components used across all pages.
   ====================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

/* ── PALETTE A (default) ──────────────────────────────────────────── */
:root {
  --bg: #F5F1EB;
  --bg-alt: #ECE5DC;
  --bg-deep: #E2D9CC;
  --text: #1F1B17;
  --text-muted: #4B4742;
  --accent: #43594A;          /* deep sage */
  --accent-soft: rgba(67, 89, 74, 0.08);
  --cta: #B28C57;             /* muted bronze */
  --cta-hover: #9d7a48;
  --border: #D7CEC2;
  --border-soft: rgba(31, 27, 23, 0.08);

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;

  --container: 1280px;
  --container-narrow: 880px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* ── PALETTE B ────────────────────────────────────────────────────── */
[data-palette="b"] {
  --bg: #F7F4EE;
  --bg-alt: #EDE7DF;
  --bg-deep: #DDD5C7;
  --text: #222226;
  --text-muted: #55565C;
  --accent: #243746;          /* deep navy */
  --accent-soft: rgba(36, 55, 70, 0.08);
  --cta: #A6845E;             /* softened taupe-bronze */
  --cta-hover: #8d6f4d;
  --border: #D8D1C8;
  --border-soft: rgba(34, 34, 38, 0.1);
}

/* ── Reset + base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-wrap: pretty;
  font-feature-settings: "liga" 0, "dlig" 0;
  transition: background 0.3s ease, color 0.3s ease;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--bg-alt); }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }

::selection { background: var(--accent); color: var(--bg); }

/* ── Typography ───────────────────────────────────────────────────── */
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.eyebrow.muted { color: var(--text-muted); }

.display-1 {
  font-family: var(--font-display);
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 1.04;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-feature-settings: "liga" 0, "dlig" 0;
}
.display-2 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.08;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-feature-settings: "liga" 0, "dlig" 0;
}
.display-3 {
  font-family: var(--font-display);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.18;
  font-weight: 500;
  font-feature-settings: "liga" 0, "dlig" 0;
  letter-spacing: 0.018em;
}
.display-italic { font-style: italic; font-weight: 400; }

.lead {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 60ch;
}
.muted { color: var(--text-muted); }

/* ── Container ────────────────────────────────────────────────────── */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }

/* ── Sections ─────────────────────────────────────────────────────── */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--bg-alt); }
.section.deep { background: var(--accent); color: var(--bg); }
.section.deep h2, .section.deep h3 { color: var(--bg); }
.section.deep .lead { color: rgba(255,255,255,0.85); }

.section-head { margin-bottom: clamp(40px, 5vw, 72px); max-width: 720px; }
.section-head .eyebrow { margin-bottom: 14px; }
.section-head .lead { margin-top: 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin-left: auto; margin-right: auto; }

/* ── Buttons ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  border-radius: 2px;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.01em;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cta); color: #fff; }
.btn-primary:hover { background: var(--cta-hover); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid currentColor; }
.btn-ghost:hover { background: var(--text); color: var(--bg); }
.btn-ghost-light { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,0.7); }
.btn-ghost-light:hover { background: #fff; color: var(--text); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-bottom: 4px;
  border-bottom: 1px solid currentColor;
  color: var(--text);
}
.btn-link:hover { color: var(--cta); }
.btn .arrow { display: inline-block; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ── Nav Mega-Menu Dropdown ───────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  transition: color 0.15s;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger { color: var(--text); }
.nav.nav-overlay .nav-dropdown-trigger { color: #fff; }
.nav.nav-overlay .nav-dropdown-trigger:hover { color: rgba(255,255,255,0.7); }
.nav.nav-overlay.is-scrolled .nav-dropdown-trigger { color: var(--text-muted); }
.nav.nav-overlay.is-scrolled .nav-dropdown-trigger:hover,
.nav.nav-overlay.is-scrolled .nav-dropdown.is-open .nav-dropdown-trigger { color: var(--text); }

.dropdown-chevron { transition: transform 0.22s ease; flex-shrink: 0; }
.nav-dropdown.is-open .dropdown-chevron { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 22px);
  left: 0;
  transform: translateY(-6px);
  width: 680px;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: 0 24px 64px -12px rgba(0,0,0,0.16), 0 0 0 1px var(--border-soft);
  padding: 32px 36px 28px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0.2s;
  z-index: 200;
}
/* Notch arrow */
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 28px;
  transform: none;
  width: 11px; height: 11px;
  background: var(--bg);
  border-left: 1px solid var(--border);
  border-top: 1px solid var(--border);
  rotate: 45deg;
}

.nav-dropdown.is-open .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0s linear 0s;
}

.dropdown-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.dropdown-col-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.dropdown-col ul { display: flex; flex-direction: column; }
.dropdown-col ul a {
  display: block;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.35;
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.14s ease, padding-left 0.14s ease;
}
.dropdown-col ul li:last-child a { border-bottom: 0; }
.dropdown-col ul a:hover { color: var(--text); padding-left: 5px; }

/* Single-column dropdown variant (residential-only with quiet commercial trailing link) */
.nav-dropdown-panel.is-single { width: 380px; padding: 28px 32px 24px; }
.nav-dropdown-panel.is-single .dropdown-inner { grid-template-columns: 1fr; gap: 0; }

/* Commercial section label — same style as Residential but with top separator */
.dropdown-commercial-label {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  margin-bottom: 0;
}

/* Commercial link row — matches residential ul a style */
.dropdown-commercial-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 0;
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.35;
  transition: color 0.14s ease, padding-left 0.14s ease;
}
.dropdown-commercial-link:hover { color: var(--text); padding-left: 5px; }
.dropdown-commercial-link .arrow { display: inline-block; transition: transform 0.15s ease; }
.dropdown-commercial-link:hover .arrow { transform: translateX(3px); }

/* Force dark text in all nav overlay states */
.nav-dropdown-panel .dropdown-commercial-label,
.nav.nav-overlay .nav-dropdown-panel .dropdown-commercial-label { color: var(--accent); }
.nav-dropdown-panel .dropdown-commercial-link,
.nav.nav-overlay .nav-dropdown-panel .dropdown-commercial-link,
.nav.nav-overlay.is-scrolled .nav-dropdown-panel .dropdown-commercial-link { color: var(--text-muted); }
.nav-dropdown-panel .dropdown-commercial-link:hover,
.nav.nav-overlay .nav-dropdown-panel .dropdown-commercial-link:hover,
.nav.nav-overlay.is-scrolled .nav-dropdown-panel .dropdown-commercial-link:hover { color: var(--text); }

/* Force dark text inside dropdown panel regardless of nav overlay state */
.nav-dropdown-panel,
.nav.nav-overlay .nav-dropdown-panel,
.nav.nav-overlay.is-scrolled .nav-dropdown-panel {
  color: var(--text);
}
.nav-dropdown-panel .dropdown-col-label,
.nav.nav-overlay .nav-dropdown-panel .dropdown-col-label { color: var(--accent); }
.nav-dropdown-panel .dropdown-col ul a,
.nav.nav-overlay .nav-dropdown-panel .dropdown-col ul a { color: var(--text-muted); }
.nav-dropdown-panel .dropdown-col ul a:hover,
.nav.nav-overlay .nav-dropdown-panel .dropdown-col ul a:hover { color: var(--text); }
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cta);
  border-bottom: 1px solid var(--cta);
  padding-bottom: 2px;
  transition: opacity 0.15s ease;
}
.dropdown-all-link:hover { opacity: 0.75; }
.dropdown-all-link .arrow { display: inline-block; transition: transform 0.15s ease; }
.dropdown-all-link:hover .arrow { transform: translateX(3px); }


.nav {
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 22px 0;
  backdrop-filter: saturate(180%) blur(8px);
  transition: background 0.3s ease, border-color 0.3s ease, padding 0.25s ease, color 0.3s ease;
}

/* Transparent over hero, opaque on scroll */
.nav.nav-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  color: #fff;
}
.nav.nav-overlay .nav-logo,
.nav.nav-overlay .nav-links a,
.nav.nav-overlay .nav-phone { color: #fff; }
.nav.nav-overlay .nav-logo .mark { color: #fff; border-color: rgba(255,255,255,0.7); }
.nav.nav-overlay .nav-links a:hover { color: rgba(255,255,255,0.7); }

/* Once scrolled past hero — solid */
.nav.nav-overlay.is-scrolled {
  background: var(--bg);
  border-bottom-color: var(--border);
  backdrop-filter: saturate(180%) blur(8px);
  color: var(--text);
  padding: 16px 0;
  box-shadow: 0 1px 24px rgba(0,0,0,0.04);
}
.nav.nav-overlay.is-scrolled .nav-logo { color: var(--text); }
.nav.nav-overlay.is-scrolled .nav-logo .mark { color: var(--text); border-color: var(--text); }
.nav.nav-overlay.is-scrolled .nav-links a { color: var(--text-muted); }
.nav.nav-overlay.is-scrolled .nav-links a:hover, .nav.nav-overlay.is-scrolled .nav-links a.active { color: var(--text); }
.nav.nav-overlay.is-scrolled .nav-phone { color: var(--text); }

.nav-phone {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.9;
}
.nav-phone:hover { opacity: 1; }
.nav .container { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nav-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
}
.nav-logo .mark {
  width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text);
  align-self: center;
  flex-shrink: 0;
}
.nav-logo .mark svg { width: 100%; height: 100%; display: block; }

/* ─── Logo as interactive mark ──────────────────────────────
   Hover: the C-square stamps in (fills with accent, glyph + wave
   invert to bg), and a thin rule draws in beneath the wordmark. */
.nav-logo { cursor: pointer; transition: color 0.28s ease; }
.nav-logo .mark svg rect,
.nav-logo .mark svg text,
.nav-logo .mark svg path {
  transition: fill 0.28s cubic-bezier(0.7, 0, 0.2, 1),
              stroke 0.28s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-logo:hover .mark svg rect { stroke: var(--cta); }
.nav-logo:hover .mark svg text { fill: var(--cta); }
.nav-logo:hover .mark svg path { stroke: var(--cta); }

/* Wordmark: thin accent rule draws in beneath, left → right */
.nav-logo > span:not(.mark) {
  position: relative;
  display: inline-block;
  padding-bottom: 4px;
}
.nav-logo > span:not(.mark)::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: var(--cta);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s cubic-bezier(0.7, 0, 0.2, 1);
}
.nav-logo:hover > span:not(.mark)::after { transform: scaleX(1); }

/* Overlay (white-on-hero) variant: hover keeps gold tone */
.nav.nav-overlay:not(.is-scrolled) .nav-logo > span:not(.mark)::after { background: var(--cta); }
.nav.nav-overlay:not(.is-scrolled) .nav-logo:hover .mark svg rect { stroke: var(--cta); }
.nav.nav-overlay:not(.is-scrolled) .nav-logo:hover .mark svg text { fill: var(--cta); }
.nav.nav-overlay:not(.is-scrolled) .nav-logo:hover .mark svg path { stroke: var(--cta); }

/* Footer logo (dark band): wordmark gets gold underline */
.footer .nav-logo > span:not(.mark)::after { background: var(--cta); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.15s;
  letter-spacing: 0.01em;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 16px; }
.nav-mobile-toggle { display: none; padding: 8px; }

/* ════════════════════════════════════════════════════════════
   iOS SAFE-AREA (notch / home indicator) HANDLING
   Live pages set viewport-fit=cover so the hero + nav background
   fill the screen edge-to-edge (no white band under the notch).
   These rules keep interactive chrome clear of the notch and the
   home indicator. env() resolves to 0 on desktop / non-notched
   devices, so desktop layout is unchanged.
   ════════════════════════════════════════════════════════════ */
.nav .container { padding-top: env(safe-area-inset-top, 0px); }
.mnav-header { padding-top: calc(14px + env(safe-area-inset-top, 0px)); }
.mobile-nav { padding-bottom: env(safe-area-inset-bottom, 0px); }
.sticky-call { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }

/* ── Hero ─────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-img { position: absolute; inset: 0; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-img::after,
.hero-carousel::after {
  content: '';
  position: absolute; inset: 0;
  background:
    /* top scrim for nav legibility */
    linear-gradient(180deg, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.12) 14%, rgba(0,0,0,0) 32%, rgba(0,0,0,0.04) 55%, rgba(0,0,0,0.42) 100%),
    /* left-side scrim for hero text + buttons */
    linear-gradient(90deg, rgba(0,0,0,0.36) 0%, rgba(0,0,0,0.15) 38%, rgba(0,0,0,0) 62%);
  pointer-events: none;
  z-index: 2;
}
.hero-carousel { isolation: isolate; }
.hero-slides { position: absolute; inset: 0; z-index: 0; }
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.hero-slide img.img-house-fit { object-position: center 28%; transform: scale(1.02); }
.hero-slide.is-active img.img-house-fit { animation: heroKenBurnsHouse 8s ease-out forwards; }
.hero-slide.is-active img { animation: heroKenBurns 8s ease-out forwards; }
@keyframes heroKenBurns {
  from { transform: scale(1.04); }
  to { transform: scale(1.10); }
}
@keyframes heroKenBurnsHouse {
  from { transform: scale(1.02); }
  to   { transform: scale(1.06); }
}

/* hero chrome (caption + dots + counter) */
.hero-chrome {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 3;
  padding: 14px 32px 32px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.28) 100%);
}
.hero-chrome-inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: clamp(8px, 1.5vw, 20px);
  padding-right: clamp(8px, 1.5vw, 20px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: #fff;
}
.hero-caption {
  margin-left: clamp(-24px, -2vw, -8px);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
}
.hero-controls {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 16px;
}
.hero-arrow {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.3);
  color: rgba(255,255,255,0.8);
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.hero-arrow svg { width: 17px; height: 17px; }
.hero-arrow:hover { background: #fff; color: var(--text); border-color: #fff; }
.hero-dots { display: flex; gap: 9px; align-items: center; }
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.32);
  transition: background 0.25s, transform 0.25s;
}
.hero-dot.is-active { background: var(--cta); transform: scale(1.3); }
.hero-counter {
  margin-right: clamp(-24px, -2vw, -8px);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 0.04em;
  font-feature-settings: "tnum";
  font-weight: 500;
}
.hero-counter .muted-w { color: rgba(255,255,255,0.5); }

/* ── Gallery strip ────────────────────────────────────────────────── */
.gallery-strip {
  background: var(--text);
  padding: 0;
  overflow: hidden;
  margin: clamp(48px,6vw,80px) 0;
}
.strip-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
}
.strip-track figure {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.strip-track img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.strip-track figure:hover img { transform: scale(1.06); }
.strip-track figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(31,27,23,0.78);
  color: var(--bg);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 6px 10px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

/* ── Full-bleed feature ──────────────────────────────────────────── */
.full-bleed-feature {
  position: relative;
  height: clamp(520px, 70vh, 820px);
  overflow: hidden;
  background: var(--text);
}
.full-bleed-feature > img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.full-bleed-feature::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.55) 100%),
              linear-gradient(90deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 60%);
}
.full-bleed-overlay {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(48px, 8vw, 96px);
  color: #fff;
}
.full-bleed-overlay h2 { color: #fff; max-width: 18ch; }
.full-bleed-overlay .lead { color: rgba(255,255,255,0.82); margin-top: 20px; }
.hero-inner {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: clamp(80px, 11vw, 120px);
  padding-top: 64px;
  padding-left: clamp(48px, 9vw, 160px);
  padding-right: clamp(20px, 4vw, 56px);
  max-width: min(1180px, 100%);
  margin-left: 0;
  margin-right: auto;
  color: #fff;
}
.hero-chrome { z-index: 4; }
.hero h1, .hero h2 { color: #ffffff !important; max-width: 18ch; font-size: clamp(42px, 6vw, 78px); font-style: normal; text-shadow: 0 1px 3px rgba(0,0,0,0.55), 0 3px 14px rgba(0,0,0,0.55), 0 8px 40px rgba(0,0,0,0.55); }
.hero .hero-sub { color: rgba(255,255,255,0.94) !important; max-width: 44ch; margin-top: 18px; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.6; text-shadow: 0 1px 3px rgba(0,0,0,0.65), 0 2px 18px rgba(0,0,0,0.7); }
.btn-sm { padding: 14px 22px; font-size: 14px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 40px;
}
.hero-tag {
  position: absolute;
  top: 32px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cta); }

/* ── Trust strip ──────────────────────────────────────────────────── */
.trust-strip {
  background: var(--bg-alt);
  padding: 36px 0;
  border-bottom: 1px solid var(--border);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.trust-item { display: flex; flex-direction: column; gap: 4px; padding-left: 16px; border-left: 1px solid var(--border); }
.trust-item:first-child { border-left: 0; padding-left: 0; }
.trust-item strong {
  font-family: var(--font-display);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.005em;
  font-variant-numeric: lining-nums;
  font-feature-settings: "lnum" 1;
}
.trust-item span { font-size: 13.5px; color: var(--text-muted); }

/* ── Service chips (homepage option 4) ────────────────────────────── */
.service-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.service-chip {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 16px 22px;
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 500;
  letter-spacing: -0.005em;
  background: var(--bg);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.service-chip:hover {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  transform: translateY(-2px);
}
.chip-arrow {
  font-size: 16px;
  opacity: 0.45;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.service-chip:hover .chip-arrow { opacity: 1; transform: translateX(3px); }

/* ── Service list — display / architectural rows (homepage) ──────── */
.service-display { border-top: 1px solid var(--border); }
.sdisplay-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  align-items: center;
  gap: 24px;
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: padding-left 0.22s ease;
}
.sdisplay-row:hover { padding-left: 14px; }
.sdisplay-num {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.16em;
  align-self: start;
  padding-top: 8px;
}
.sdisplay-body { display: flex; flex-direction: column; gap: 8px; }
.sdisplay-body h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.05;
  transition: color 0.2s ease;
}
.sdisplay-row:hover .sdisplay-body h3 { color: var(--accent); }
.sdisplay-body p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 58ch;
}
.sdisplay-arrow {
  font-size: 24px;
  color: var(--text-muted);
  justify-self: end;
  transition: transform 0.22s ease, color 0.22s ease;
}
.sdisplay-row:hover .sdisplay-arrow { transform: translateX(6px); color: var(--accent); }

/* ── Service list — two-column TOC (homepage) ─────────────────────── */
.service-toc {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 48px;
}
.toc-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: padding-left 0.2s ease;
}
.toc-row:hover { padding-left: 8px; }
.toc-body { display: flex; flex-direction: column; gap: 5px; }
.toc-body h4 {
  font-family: var(--font-display);
  font-size: clamp(18px, 1.5vw, 21px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
  transition: color 0.2s ease;
}
.toc-row:hover .toc-body h4 { color: var(--accent); }
.toc-body p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 38ch;
}
.toc-arrow {
  font-size: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  padding-top: 2px;
}
.toc-row:hover .toc-arrow { transform: translateX(4px); color: var(--accent); }

/* Full-width section break inside service-toc grid */
.toc-section-break {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 48px 0 10px;
}
.toc-section-break-label {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.toc-section-break-rule {
  flex: 1;
  height: 1px;
  background: var(--text-muted);
  opacity: 0.35;
}
/* Commercial row spans full width */
.toc-row.toc-span-full {
  grid-column: 1 / -1;
  max-width: calc(50% - 24px);
}

/* ── Service list — slim editorial rows (homepage) ────────────────── */
.service-list-slim { border-top: 1px solid var(--border); }
.slim-row {
  display: grid;
  grid-template-columns: 56px 1fr 40px;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
  color: var(--text);
  transition: padding-left 0.22s ease;
}
.slim-row:hover { padding-left: 12px; }
.slim-num {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  padding-top: 6px;
}
.slim-body { display: flex; flex-direction: column; gap: 6px; }
.slim-body h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}
.slim-body p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 64ch;
}
.slim-arrow {
  font-size: 20px;
  color: var(--text-muted);
  padding-top: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
  justify-self: end;
}
.slim-row:hover .slim-arrow { transform: translateX(5px); color: var(--accent); }

/* ── Who we are (homepage trust block) ────────────────────────────── */
.who-we-are { padding-top: clamp(80px, 11vw, 140px); padding-bottom: clamp(80px, 11vw, 140px); }
.who-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr; /* was: 0.95fr 1.05fr — revert here if needed */
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
}
.who-image {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--bg-alt);
}
.who-image img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.who-image figcaption {
  position: absolute;
  bottom: 16px; left: 16px;
  background: rgba(31,27,23,0.78);
  color: var(--bg);
  padding: 6px 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  backdrop-filter: blur(8px);
}
.who-copy { display: flex; flex-direction: column; gap: 24px; max-width: 56ch; }
.who-copy .eyebrow { margin-bottom: 0; }
.who-copy h2 { margin-top: -4px; max-width: 22ch; }
.who-copy .lead { margin-top: 0; }
.who-cta {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 24px;
}
.who-meta {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 500;
}

/* ── Section foot (centered "see all" link) ───────────────────────── */
.section-foot { margin-top: clamp(48px, 6vw, 72px); text-align: center; }

/* ── Services 3-up (homepage snapshot) ────────────────────────────── */
.services-3up { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.service-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
  color: var(--text);
  transition: transform 0.25s ease;
}
.service-card .img-wrap {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-alt);
}
.service-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.service-card:hover .img-wrap img { transform: scale(1.05); }
.service-card .meta { display: flex; flex-direction: column; gap: 8px; }
.service-card h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.55;
}
.service-card .card-link {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.service-card:hover .card-link .arrow { transform: translateX(4px); }
.service-card .card-link .arrow { transition: transform 0.2s ease; display: inline-block; }

/* ── Process strip (compact 4-tile) ───────────────────────────────── */
.process-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-tile {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-left: 1px solid var(--border);
}
.process-tile:first-child { border-left: 0; }
.process-tile .step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-weight: 500;
}
.process-tile h4 {
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.process-tile p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Why choose us ────────────────────────────────────────────────── */
.why-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 32px; }
.why-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid var(--text);
}
.why-item .why-num {
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.04em;
  color: var(--accent);
  font-weight: 500;
}
.why-item h4 {
  font-family: var(--font-display);
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.why-item p {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Testimonial grid: 2-up variant ───────────────────────────────── */
.testimonial-grid.two { grid-template-columns: 1fr 1fr; gap: 32px; }

/* ── Service area one-liner (in final CTA) ────────────────────────── */
.service-area-line {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.18);
  font-size: 13.5px;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.02em;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
}
.service-area-line a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.4);
  padding-bottom: 1px;
  transition: border-color 0.2s ease;
}
.service-area-line a:hover { border-color: var(--cta); }
.service-area-line .arrow { display: inline-block; transition: transform 0.2s ease; }
.service-area-line a:hover .arrow { transform: translateX(3px); }

/* ── Featured projects ────────────────────────────────────────────── */
.featured-projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 64px 56px; }
.project-card { display: flex; flex-direction: column; gap: 20px; }
.project-card .img-wrap {
  aspect-ratio: 4/3;
  background: var(--bg-alt);
  overflow: hidden;
  position: relative;
}
.project-card .img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.project-card:hover .img-wrap img { transform: scale(1.04); }
.project-card .meta { display: flex; flex-direction: column; gap: 8px; padding-right: 24px; }
.project-card .city {
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.project-card h3 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.project-card .desc { color: var(--text-muted); font-size: 16px; line-height: 1.55; }
.project-card .stats {
  display: flex;
  gap: 24px;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 12px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
}
.project-card .stats span strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 16px;
  color: var(--text);
}

/* ── Services list ────────────────────────────────────────────────── */
.service-list { border-top: 1px solid var(--border); }
.service-row {
  display: grid;
  grid-template-columns: 80px 1fr 240px 56px;
  gap: 32px;
  padding: 32px 0;
  align-items: start;
  border-bottom: 1px solid var(--border);
  transition: padding 0.25s ease;
  cursor: pointer;
}
.service-row:hover { padding-left: 16px; }
.service-row .num {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding-top: 8px;
}
.service-row h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.service-row .tags { font-size: 13px; color: var(--text-muted); }
.service-row .desc { font-size: 14.5px; color: var(--text-muted); padding-top: 10px; line-height: 1.55; }
.service-row .arrow { color: var(--text-muted); padding-top: 12px; transition: transform 0.2s ease; font-size: 22px; }
.service-row:hover .arrow { transform: translateX(6px); color: var(--accent); }

/* ── Process ──────────────────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process-step { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--text); }
.process-step .step-num {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.process-step h4 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2vw, 26px);
  font-weight: 500;
}
.process-step p { font-size: 14.5px; color: var(--text-muted); line-height: 1.6; }

/* ── Testimonials ─────────────────────────────────────────────────── */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  padding: 36px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}
.testimonial .quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.4;
  color: var(--accent);
  height: 36px;
  font-style: italic;
}
.testimonial blockquote {
  font-family: var(--font-display);
  font-size: 19px;
  font-style: italic;
  line-height: 1.5;
  flex: 1;
  letter-spacing: -0.005em;
}
.testimonial .author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.testimonial .author strong { font-size: 14.5px; font-weight: 500; }
.testimonial .author span { font-size: 12.5px; color: var(--text-muted); }
.placeholder-tag {
  display: inline-block;
  font-size: 10px;
  padding: 3px 8px;
  background: var(--cta);
  color: #fff;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-family: var(--font-body);
  font-weight: 500;
  font-style: normal;
  align-self: flex-start;
  border-radius: 1px;
  margin-bottom: 6px;
}

/* ── Service area ─────────────────────────────────────────────────── */
.cities { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 48px; }
.cities li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: padding 0.2s ease;
}
.cities li:hover { padding-left: 8px; color: var(--accent); }
.cities li::after { content: '→'; color: var(--text-muted); font-size: 14px; opacity: 0.4; transition: opacity 0.2s ease; }
.cities li:hover::after { opacity: 1; color: var(--accent); }

/* ── Before / After ───────────────────────────────────────────────── */
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ba-figure { position: relative; aspect-ratio: 4/3; background: var(--bg-alt); overflow: hidden; }
.ba-figure img { width: 100%; height: 100%; object-fit: cover; }
.ba-figure figcaption {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--text);
  color: var(--bg);
  padding: 6px 12px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.ba-figure.after figcaption { background: var(--accent); }
.ba-meta { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; gap: 48px; flex-wrap: wrap; }
.ba-meta div strong { display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.ba-meta div span { font-size: 12.5px; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }

/* ── Lead magnet ──────────────────────────────────────────────────── */
.lead-magnet { background: var(--text); color: var(--bg); padding: clamp(72px, 10vw, 120px) 0; }
.lead-magnet .grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(48px, 8vw, 96px); align-items: center; }
.lead-magnet h2 { color: var(--bg); max-width: 14ch; }
.lead-magnet .lead { color: rgba(245,241,235,0.78); margin-top: 20px; }
.lead-magnet .form { display: flex; gap: 8px; margin-top: 32px; max-width: 480px; }
.lead-magnet input {
  flex: 1;
  padding: 16px 18px;
  background: transparent;
  border: 1px solid rgba(245,241,235,0.25);
  color: var(--bg);
  font: inherit;
  font-size: 14.5px;
  outline: none;
  transition: border-color 0.2s ease;
}
.lead-magnet input::placeholder { color: rgba(245,241,235,0.4); }
.lead-magnet input:focus { border-color: var(--cta); }
.lead-magnet .form-note { font-size: 12px; color: rgba(245,241,235,0.5); margin-top: 14px; letter-spacing: 0.02em; }

.guide-mockup {
  background: var(--bg);
  color: var(--text);
  padding: clamp(36px, 4vw, 56px) clamp(28px, 3vw, 40px);
  aspect-ratio: 3/4;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 40px 80px -24px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  transform: rotate(-1.5deg);
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.guide-mockup .top { display: flex; flex-direction: column; gap: 24px; }
.guide-mockup .label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.guide-mockup h3 {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.guide-mockup .specs { font-size: 12px; color: var(--text-muted); display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.guide-mockup .pages {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 24px;
}
.guide-mockup .page-line { height: 4px; background: var(--bg-deep); border-radius: 2px; }
.guide-mockup .page-line.short { width: 60%; }
.guide-mockup .page-line.medium { width: 80%; }
.guide-mockup .accent-bar { height: 6px; width: 48px; background: var(--cta); margin-bottom: 8px; }

/* ── Final CTA ────────────────────────────────────────────────────── */
.final-cta {
  padding: clamp(96px, 14vw, 160px) 0;
  text-align: center;
  background: var(--accent);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}
.final-cta .eyebrow { color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.final-cta h2 { color: var(--bg); margin-bottom: 24px; max-width: 18ch; margin-left: auto; margin-right: auto; }
.final-cta .lead { color: rgba(255,255,255,0.85); margin: 0 auto 48px; max-width: 72ch; }
.final-cta .cta-row { display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center; }

/* ── Footer ───────────────────────────────────────────────────────── */
.footer { padding: 80px 0 32px; background: var(--text); color: rgba(245,241,235,0.7); }
[data-palette="b"] .footer { color: rgba(247,244,238,0.7); }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
}
.footer .nav-logo { color: var(--bg); margin-bottom: 16px; font-size: 28px; }
.footer .nav-logo .mark { color: var(--cta); border-color: var(--cta); }
.footer .footer-tag { font-size: 14.5px; line-height: 1.6; max-width: 32ch; }
.footer h5 {
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--bg);
  margin-bottom: 20px;
}
.footer ul { display: flex; flex-direction: column; gap: 10px; font-size: 14.5px; }
.footer a:hover { color: var(--cta); }
.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(245,241,235,0.12);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 12.5px;
}

/* Footer Commercial — quiet italic sub-line under Get-in-touch column */
.footer-commercial-subline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(245,241,235,0.1);
  font-size: 12.5px;
  font-style: italic;
  color: rgba(245,241,235,0.5);
  letter-spacing: 0.01em;
  line-height: 1.5;
  transition: color 0.15s ease;
}
.footer-commercial-subline:hover { color: var(--cta); }
.footer-commercial-subline .arrow {
  display: inline-block;
  transition: transform 0.15s ease;
  font-style: normal;
}
.footer-commercial-subline:hover .arrow { transform: translateX(3px); }
[data-palette="b"] .footer-commercial-subline { color: rgba(247,244,238,0.5); }

/* ── AI Concierge ─────────────────────────────────────────────────── */
.concierge-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  background: var(--text);
  color: var(--bg);
  padding: 14px 20px 14px 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  box-shadow: 0 12px 32px rgba(0,0,0,0.18), 0 0 0 1px rgba(255,255,255,0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 0;
}
.concierge-fab:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,0,0,0.22); }
.concierge-fab .pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cta);
  box-shadow: 0 0 0 0 var(--cta);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(178, 140, 87, 0.6); }
  70% { box-shadow: 0 0 0 10px rgba(178, 140, 87, 0); }
  100% { box-shadow: 0 0 0 0 rgba(178, 140, 87, 0); }
}

.concierge-panel {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 400px;
  max-width: calc(100vw - 32px);
  max-height: 600px;
  height: calc(100vh - 100px);
  max-height: 640px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 40px 80px -16px rgba(0,0,0,0.4), 0 0 0 1px var(--border-soft);
  z-index: 95;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-size: 14.5px;
}
.concierge-header {
  background: var(--accent);
  color: var(--bg);
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.concierge-header h4 { font-family: var(--font-display); font-size: 18px; font-weight: 500; color: var(--bg); }
.concierge-header p { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 4px; }
.concierge-close {
  color: rgba(255,255,255,0.7);
  font-size: 20px;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.concierge-close:hover { color: var(--bg); }
.concierge-body { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; }
.concierge-msg {
  padding: 12px 16px;
  background: var(--bg-alt);
  border-radius: 4px 14px 14px 14px;
  max-width: 86%;
  align-self: flex-start;
  line-height: 1.5;
  font-size: 14.5px;
}
.concierge-msg.user {
  background: var(--accent);
  color: var(--bg);
  align-self: flex-end;
  border-radius: 14px 4px 14px 14px;
}
.concierge-options { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 24px 16px; border-top: 1px solid var(--border); background: var(--bg-alt); }
.concierge-option {
  padding: 9px 14px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  transition: all 0.15s ease;
  letter-spacing: 0.01em;
}
.concierge-option:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.concierge-final {
  padding: 24px;
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.concierge-final .summary { font-size: 13px; color: var(--text-muted); line-height: 1.6; }
.concierge-final .summary strong { color: var(--text); font-weight: 500; }

/* ── Sticky mobile call ───────────────────────────────────────────── */
.sticky-call { display: none; }

/* ──────────────────────────────────────────────────────────────────
   SHARED SERVICE-PAGE COMPONENTS
   Promoted from inline styles in services/full-home.html so they can
   be reused on commercial.html, kitchens.html, bathrooms.html.
   ────────────────────────────────────────────────────────────────── */

/* Alternating image + text blocks */
.alt-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(460px, 58vh, 680px);
}
.alt-block.reverse { direction: rtl; }
.alt-block.reverse > * { direction: ltr; }
.alt-block-img {
  position: relative; overflow: hidden;
  background: var(--bg-deep);
}
.alt-block-img img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s ease;
}
.alt-block:hover .alt-block-img img { transform: scale(1.03); }
.alt-block-copy {
  padding: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 80px);
  display: flex; flex-direction: column; justify-content: center;
  gap: 22px; background: var(--bg);
}
.alt-block.alt-dark .alt-block-copy { background: var(--bg-alt); }
.alt-block-copy .eyebrow { margin-bottom: 0; }
.alt-block-copy h2 { max-width: 22ch; }
.alt-block-copy .lead { max-width: 46ch; }
.alt-block-copy p {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46ch;
}

/* Service-page FAQ accordion */
.svc-faq { padding: clamp(80px, 10vw, 128px) 0; }
.faq-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(48px, 7vw, 96px);
  align-items: start;
}
.faq-label { position: sticky; top: 120px; }
.faq-list { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left; padding: 22px 0;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display);
  font-size: clamp(16px, 1.35vw, 19px);
  font-weight: 500; letter-spacing: -0.005em;
  cursor: pointer; transition: color 0.15s ease;
  background: none; border: none; color: var(--text);
}
.faq-q:hover { color: var(--accent); }
.faq-icon {
  width: 28px; height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 18px; color: var(--text-muted);
  transition: transform 0.22s ease, background 0.2s, color 0.2s, border-color 0.2s;
  font-weight: 300; line-height: 1;
}
.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent); color: var(--bg);
  border-color: var(--accent);
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.42s ease;
  font-size: 15px; color: var(--text-muted);
  line-height: 1.7; padding-right: 48px;
}
.faq-item.is-open .faq-a {
  max-height: 480px;
  padding-bottom: 24px;
}

/* Service-page responsive — shared */
@media (max-width: 760px) {
  .alt-block { grid-template-columns: 1fr; min-height: unset; }
  .alt-block.reverse { direction: ltr; }
  .alt-block-img { aspect-ratio: 16/9; position: relative; }
  .alt-block-img img { position: absolute; }
  .alt-block-copy { padding: 48px 24px; }
  .faq-layout { grid-template-columns: 1fr; }
  .faq-label { position: static; }
  .faq-a { padding-right: 0; }
}

/* ── Nav: hamburger on tablet & below ──────────────────────────────
   The full desktop nav (logo + links + dropdown + phone + CTA) needs
   ~1130px to fit. Below that it overflowed and clipped the CTA, so we
   switch to the hamburger drawer for the whole tablet range, and gently
   tighten gaps for narrow laptops (1081–1279) where it still fits. */
@media (min-width: 1081px) and (max-width: 1279px) {
  .nav-links { gap: 18px; }
  .nav .container { gap: 20px; }
}
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .nav-phone { display: none; }
  .nav-cta .btn { display: none; }
  .nav-mobile-toggle { display: flex !important; }
  /* Legibility: soft dark scrim behind the floating white nav over the hero,
     so the logo + hamburger stay visible on bright photos (and any fallback bg). */
  .nav.nav-overlay:not(.is-scrolled) {
    background: linear-gradient(180deg, rgba(0,0,0,0.50) 0%, rgba(0,0,0,0.18) 55%, rgba(0,0,0,0) 100%);
  }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .featured-projects { gap: 48px 32px; }
  .service-row { grid-template-columns: 60px 1fr 56px; }
  .service-row .tags { display: none; }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}

/* ── Tablet portrait — step dense shared grids to 2-up ─────────────── */
@media (max-width: 768px) {
  .services-3up { grid-template-columns: 1fr 1fr; gap: 28px; }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .testimonial-grid { grid-template-columns: 1fr 1fr; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .process-tile { border-left: 0; border-top: 1px solid var(--border); padding: 28px 20px; }
  .process-tile:nth-child(2) { border-left: 1px solid var(--border); }
  .process-tile:first-child, .process-tile:nth-child(2) { border-top: 0; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  html { overflow-x: clip; }
  .container, .container-narrow { padding-left: 20px; padding-right: 20px; }
  .nav { padding: 16px 0; }
  .nav-phone { display: none; }
  .nav-logo { font-size: 20px; }
  .nav-logo .mark { width: 34px; height: 34px; font-size: 12px; }
  .nav-links { display: none; }
  .nav-cta .btn { padding: 12px 18px; font-size: 13.5px; }

  .hero { height: 84vh; min-height: 580px; }
  .hero-meta { width: 100%; }
  .hero-meta .btn { flex: 1; justify-content: center; min-width: 0; }
  .hero-tag { top: 24px; left: 20px; }
  .hero-chrome { padding: 16px 20px; }
  .hero-chrome-inner { gap: 12px; }
  .hero-caption { display: none; }
  .hero-counter { font-size: 13px; }
  .hero-arrow { width: 36px; height: 36px; }
  .strip-track { grid-template-columns: repeat(3, 1fr); }
  .strip-track figure:nth-child(n+7) { display: none; }
  .full-bleed-feature { height: clamp(440px, 70vh, 600px); }

  .trust-strip { padding: 28px 0; }
  .trust-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .trust-item { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--border); }
  .trust-item:nth-child(-n+2) { padding-top: 0; border-top: 0; }

  .featured-projects { grid-template-columns: 1fr; gap: 48px; }
  .project-card .meta { padding-right: 0; }

  .service-toc { grid-template-columns: 1fr; gap: 0; }
  .who-grid { grid-template-columns: 1fr; gap: 32px; }
  .who-image { aspect-ratio: 4/3; }
  .who-cta { gap: 16px; }
  .services-3up { grid-template-columns: 1fr; gap: 36px; }
  .process-strip { grid-template-columns: 1fr 1fr; }
  .process-tile { border-left: 0; border-top: 1px solid var(--border); padding: 28px 20px; }
  .process-tile:nth-child(2) { border-left: 1px solid var(--border); }
  .process-tile:first-child, .process-tile:nth-child(2) { border-top: 0; }
  .why-layout { grid-template-columns: 1fr; gap: 48px; }
  .why-grid { grid-template-columns: 1fr; gap: 28px; }
  .testimonial-grid.two { grid-template-columns: 1fr; }
  .service-area-line { margin-top: 40px; padding-top: 24px; flex-direction: column; gap: 10px; }

  .process-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .cities { grid-template-columns: repeat(2, 1fr); gap: 0 24px; }
  .ba-grid { grid-template-columns: 1fr; }
  .lead-magnet .grid { grid-template-columns: 1fr; }
  .guide-mockup { max-width: 280px; transform: rotate(-1.5deg); }
  .lead-magnet .form { flex-direction: column; }
  .lead-magnet .form .btn { width: 100%; justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-bottom { font-size: 11.5px; }

  .sticky-call {
    display: flex;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--cta);
    color: #fff;
    padding: 16px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    font-weight: 500;
    z-index: 80;
    box-shadow: 0 -2px 16px rgba(0,0,0,0.12);
    font-size: 15px;
    letter-spacing: 0.01em;
  }
  .concierge-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 16px; padding: 12px 16px 12px 14px; font-size: 13.5px; }
  .concierge-panel { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); right: 16px; left: 16px; width: auto; max-width: none; }

  .final-cta .cta-row { flex-direction: column; width: 100%; }
  .final-cta .cta-row .btn { width: 100%; justify-content: center; }

  /* ── Show hamburger; hide desktop CTA btn ─────────────────── */
  .nav-mobile-toggle { display: flex !important; }
  .nav-cta .btn { display: none; }

  /* ── Touch targets: minimum 44px ─────────────────────────── */
  .hero-arrow { width: 44px; height: 44px; }
  .faq-q { padding: 18px 0; min-height: 44px; }
  .faq-icon { width: 36px; height: 36px; min-width: 36px; font-size: 20px; }
  .chip .c-label { padding: 12px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; }
  .form-back { padding: 12px 4px; min-height: 44px; }
  .concierge-option { padding: 12px 16px; min-height: 44px; }
  .lightbox-close { width: 44px; height: 44px; }
  .radio-card .rc-inner { padding: 18px 16px; min-height: 52px; }

  /* ── PM section (homepage one-point-of-contact) ──────────── */
  .pm-section { grid-template-columns: 1fr !important; min-height: unset !important; }
  .pm-section-image { height: 280px !important; padding: 0 !important; }
  .pm-section-image img { position: absolute; inset: 0 !important; width: 100% !important; height: 100% !important; }
  .pm-section-copy { padding: 40px 20px !important; height: auto !important; }

  /* ── Testimonials container fix ──────────────────────────── */
  .testimonial-grid.two { padding: 0 !important; }

  /* ── Contact hero stats ──────────────────────────────────── */
  .contact-hero-stats { flex-wrap: wrap; }
  .contact-hero-stats .hstat { flex: 1 1 auto; padding: 14px 20px; min-width: 140px; }

  /* ── Services scope list ─────────────────────────────────── */
  .scope-list { grid-template-columns: 1fr !important; }
}

/* ── Small phones — stack hero CTA pair full-width ────────────────── */
@media (max-width: 600px) {
  .hero-meta { flex-direction: column; align-items: stretch; }
  .hero-meta .btn { flex: none; width: 100%; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE NAV DRAWER
   Styles for the slide-in navigation panel injected by
   js/mobile-nav.js — always in DOM; visible only on mobile.
   ══════════════════════════════════════════════════════════════ */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.2, 1),
              visibility 0s linear 0.3s;
}
.mobile-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.65, 0, 0.2, 1),
              visibility 0s linear 0s;
}

/* Header row */
.mnav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  min-height: 64px;
}
.mnav-logo { pointer-events: none; font-size: 18px !important; }
.mnav-logo .mark { width: 34px !important; height: 34px !important; }
.mnav-close {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.mnav-close:hover { background: var(--text); color: var(--bg); }

/* Nav body */
.mnav-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  border-bottom: 1px solid var(--border);
}

/* Services toggle */
.mnav-services-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 20px;
  min-height: 56px;
  width: 100%;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.mnav-services-toggle:hover { color: var(--accent); }
.mnav-services-toggle.is-open {
  color: var(--accent);
  background: var(--accent-soft);
  border-bottom-color: var(--border);
}
.mnav-chevron {
  flex-shrink: 0;
  transition: transform 0.22s ease;
  color: var(--text-muted);
}
.mnav-services-toggle.is-open .mnav-chevron { transform: rotate(180deg); }

/* Services sub panel */
.mnav-sub {
  display: none;
  flex-direction: column;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.mnav-sub.is-open { display: flex; }
.mnav-sub-label {
  padding: 14px 20px 6px 24px;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  font-family: var(--font-body);
}
.mnav-sub-label--sep {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.mnav-sub-a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 12px 20px 12px 24px;
  font-size: 14.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.15s, padding-left 0.15s;
}
.mnav-sub-a:last-child { border-bottom: 0; }
.mnav-sub-a:hover { color: var(--text); padding-left: 30px; }

/* Direct links */
.mnav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 20px;
  min-height: 56px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--text);
  border-bottom: 1px solid var(--border-soft);
  transition: color 0.15s, background 0.15s;
}
.mnav-link:hover { color: var(--accent); background: var(--accent-soft); }
.mnav-link--active { color: var(--accent); }
.mnav-link-arrow { color: var(--text-muted); flex-shrink: 0; transition: transform 0.15s; }
.mnav-link:hover .mnav-link-arrow { transform: translateX(3px); color: var(--accent); }

/* CTA section */
.mnav-cta {
  padding: 24px 20px 36px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex-shrink: 0;
}
.mnav-cta-btn { width: 100%; justify-content: center; min-height: 52px; font-size: 15px; }
.mnav-phone-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.01em;
  transition: color 0.15s;
}
.mnav-phone-row:hover { color: var(--accent); }

/* On ≥ 1081px, keep drawer invisible + non-interactive */
@media (min-width: 1081px) {
  .mobile-nav { display: none !important; }
}
