/* Dynamiic base template (approved 2026-11-19).
   Change the look with the tokens in :root. For a dark site add data-theme="dark" to <html>. */

:root {
  --bg: #FFFFFF;
  --surface: #F6F4EE;        /* warm off-white */
  --text: #15171C;
  --muted: #5B6270;
  --accent: #2F7D32;        /* fresh grass green: buttons, icon tiles, big text (5.1:1 with white) */
  --accent-deep: #1E4D2B;   /* deep forest green surfaces carrying small white text (9.8:1) */
  --accent-ink: #FFFFFF;
  --accent-text: #2B6B2A;   /* green text on white, AA (6.5:1) */
  --accent-soft: #E6F2E1;
  --accent-title: var(--accent);   /* colored words in titles; needs 3:1 on --bg */
  --accent-hover: #7A5235;   /* soft earth brown hover (6.8:1 with white) */
  --dark: #15171C;
  --line: #E4E2DA;
  --card: #FFFFFF;                  /* cards, form card, panels */
  --header-bg: rgba(255, 255, 255, .92);
  --map-dot: #C9CDD4;
  --map-road: #DDE1E6;

  --radius: 22px;
  --radius-sm: 14px;
  --container: 1200px;
  --pad: clamp(20px, 4vw, 32px);
  --section-y: clamp(64px, 9vw, 112px);

  /* fonts:start (fraunces-jakarta, set by scripts/pick_fonts.py) */
  --font-display: "Fraunces", Georgia, serif;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --display-transform: none;
  --display-scale: 1;
  --display-measure: 12.5ch;
  /* fonts:end */

  /* spacing scale: use these for new gaps, margins and padding, not one-off pixel values */
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px; --space-5: 20px;
  --space-6: 24px; --space-7: 32px; --space-8: 40px; --space-9: 56px; --space-10: 80px;

  /* motion: animate transform and opacity only */
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.2, .7, .2, 1);

  /* grain texture (SVG noise) for gradients and photo overlays */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
  /* layered, color-tinted, low-opacity shadows (never one flat shadow) */
  --shadow-tint: color-mix(in srgb, var(--accent) 22%, #0B0D12);
  --shadow-sm: 0 1px 2px color-mix(in srgb, var(--shadow-tint) 10%, transparent), 0 6px 16px -6px color-mix(in srgb, var(--shadow-tint) 14%, transparent);
  --shadow-md: 0 1px 2px color-mix(in srgb, var(--shadow-tint) 8%, transparent), 0 12px 28px -12px color-mix(in srgb, var(--shadow-tint) 16%, transparent), 0 36px 70px -36px color-mix(in srgb, var(--shadow-tint) 24%, transparent);
  --shadow-lg: 0 2px 6px color-mix(in srgb, var(--shadow-tint) 12%, transparent), 0 24px 48px -18px color-mix(in srgb, var(--shadow-tint) 30%, transparent), 0 60px 110px -40px color-mix(in srgb, var(--shadow-tint) 42%, transparent);
  --shadow-float: 0 1px 2px color-mix(in srgb, var(--shadow-tint) 10%, transparent), 0 18px 44px -18px color-mix(in srgb, var(--shadow-tint) 32%, transparent);
  --shadow-accent: 0 1px 2px color-mix(in srgb, var(--accent) 30%, transparent), 0 10px 24px -10px color-mix(in srgb, var(--accent) 55%, transparent);
}

/* Dark sites: <html lang="en" data-theme="dark">. Keep --accent; everything else follows. */
[data-theme="dark"] {
  --bg: #0B0C0E;
  --surface: #131519;
  --card: #1B1E23;
  --text: #F2F3F5;
  --muted: #A5ABB6;
  --line: #2A2E35;
  --dark: #050506;
  --header-bg: rgba(24, 26, 31, .86);
  --accent-soft: color-mix(in srgb, var(--accent) 22%, #1B1E23);
  --accent-text: color-mix(in srgb, var(--accent) 55%, #fff);
  --map-dot: #353A42;
  --map-road: #23272D;
  --shadow-tint: #000;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: var(--display-tracking); }
/* headings use the display face; body text uses --font (never the same family) */
h1, h2, h3, .brand-name, .brand-mark, .cta-title, .estimate-title, .stats-band strong {
  font-family: var(--font-display); font-weight: var(--display-weight); text-transform: var(--display-transform);
}
p { margin: 0; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 26px;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 19px/1.2 var(--font); letter-spacing: -0.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .45s var(--ease-spring);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.97); transition-duration: .12s; }
.btn-lg { min-height: 60px; padding: 14px 30px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn-ghost:hover { background: rgba(255,255,255,.18); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #2A2E36; }
.btn-white { background: #fff; color: #15171C; }
.btn-white:hover { background: #F2F2F2; }

.arrow-chip {
  display: inline-grid; place-items: center; width: 30px; height: 30px; margin-right: -10px;
  border-radius: 50%; background: var(--accent-ink); color: var(--accent);
}

/* every clickable element: hover, focus-visible and active */
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-mark { transition: transform .45s var(--ease-spring); }
.brand:active .brand-mark { transform: scale(.92); }
.phone-chip-icon { transition: transform .45s var(--ease-spring); }
.phone-chip:hover .phone-chip-icon { transform: scale(1.08) rotate(-8deg); }
.phone-chip:hover .phone-chip-number { color: var(--accent-text); }
.phone-chip:active .phone-chip-icon { transform: scale(.94); }
.menu-toggle:hover { background: var(--line); }
.menu-toggle:active { transform: scale(.94); }
.mobile-menu a:not(.btn):active { background: var(--line); }
.contact-details a:active, .estimate-note a:active, .footer-col a:active, .cta-phone:active { opacity: .7; }
.cta-phone:focus-visible, .cta-band .btn:focus-visible, .btn-primary:focus-visible, .estimate-card .dm-submit:focus-visible, .float-call:focus-visible { outline-color: var(--text); }
.cta-band :focus-visible { outline-color: var(--accent-ink); }

/* ---------- Header ---------- */
.site-header { position: absolute; inset: 0 0 auto 0; z-index: 50; padding: 18px var(--pad) 0; }
.header-bar {
  max-width: var(--container); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 18px;
  background: var(--header-bg);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 20px; box-shadow: var(--shadow-float);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); flex: none; font-size: 21px; line-height: 1; }
.brand-text { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-name { font-size: 21px; letter-spacing: var(--display-tracking); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin-top: 4px; letter-spacing: .01em; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  display: block; padding: 10px 14px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; color: var(--text); white-space: nowrap;
}
.main-nav a:hover { background: var(--surface); }
.main-nav a:active { background: var(--line); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.phone-chip { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.phone-chip-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-text); flex: none; }
.phone-chip-text { display: flex; flex-direction: column; line-height: 1.15; }
.phone-chip-label { font-size: 13px; color: var(--muted); font-weight: 600; }
.phone-chip-number { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.btn-header { min-height: 50px; padding: 10px 22px; }
/* script.js adds .is-compact when the nav doesn't fit (long names, long labels) */
.header-bar.is-compact .main-nav { display: none; }
.header-bar.is-compact .menu-toggle { display: grid; }

.menu-toggle {
  display: none; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 14px;
  background: var(--surface); color: var(--text); cursor: pointer;
}
.mobile-menu {
  max-width: var(--container); margin: 10px auto 0; padding: 12px;
  background: var(--card); border-radius: 20px; box-shadow: var(--shadow-float);
  display: grid; gap: 4px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 14px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.mobile-menu a:not(.btn):hover { background: var(--surface); }
.mobile-menu .btn { margin-top: 6px; }

/* ---------- Hero (photo-overlay) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(92vh, 900px);
  display: flex; align-items: center;
  padding: 136px 0 72px;
  color: #fff; background: #0F1115;
}
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; }
.hero-media img { object-fit: cover; object-position: 72% 50%; }
.hero-shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(12,14,18,.92) 0%, rgba(12,14,18,.78) 34%, rgba(12,14,18,.25) 66%, rgba(12,14,18,.05) 100%),
    linear-gradient(0deg, rgba(12,14,18,.55) 0%, rgba(12,14,18,0) 40%),
    radial-gradient(ellipse 60% 70% at 0% 100%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 60% at 100% 0%, rgba(12,14,18,.35), transparent 70%);
}
.hero-shade::after { content: ""; position: absolute; inset: 0; background-image: var(--grain); opacity: .16; mix-blend-mode: overlay; }
/* photo color treatment: a multiply layer in the brand color */
.hero-media::after { content: ""; position: absolute; inset: 0; background: var(--accent); mix-blend-mode: multiply; opacity: .12; }
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: clamp(32px, 5vw, 64px); align-items: center;
}
.hero-estimate-btn { display: none; }
/* no phone in the SPEC: the hero actions row only holds the phone-width quote button */
.hero-actions--quote-only { display: none; }
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px;
  font-size: 15px; font-weight: 600; letter-spacing: .005em;
}
.eyebrow-pill::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); }
.hero-title {
  margin-top: 22px; max-width: var(--display-measure, 12.5ch); text-wrap: balance;
  font-size: calc(var(--display-scale) * clamp(42px, 5.4vw, 74px)); line-height: 1.02;
}
/* headlines over about 45 characters: add hero-title--long so the hero still fits one screen */
.hero-title--long { max-width: calc(var(--display-measure, 12.5ch) + 4.5ch); font-size: calc(var(--display-scale) * clamp(36px, 4.2vw, 56px)); line-height: 1.05; }
.hero-sub { margin-top: 22px; max-width: 34ch; font-size: clamp(18px, 1.6vw, 20px); color: rgba(255,255,255,.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); }
.area-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 30px;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-size: 15px; font-weight: 600;
}
.area-chip svg { flex: none; color: color-mix(in srgb, var(--accent) 65%, #fff); }

/* one orchestrated moment: hero text arrives in sequence */
.hero-anim { opacity: 0; transform: translateY(16px); animation: rise .7s var(--ease-out) forwards; }
.hero-anim:nth-child(1) { animation-delay: .05s; }
.hero-anim:nth-child(2) { animation-delay: .15s; }
.hero-anim:nth-child(3) { animation-delay: .28s; }
.hero-anim:nth-child(4) { animation-delay: .4s; }
.hero-anim:nth-child(5) { animation-delay: .52s; }
.hero-anim-card { opacity: 0; transform: translateY(24px); animation: rise .8s var(--ease-out) .45s forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.services { background: var(--surface); }
.hero + .services { padding-top: clamp(64px, 8vw, 104px); }
.why { background: var(--bg); }
.area { background: var(--surface); }
.contact { background: var(--surface); }

.section-head { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; max-width: 760px; margin-left: auto; margin-right: auto; }
.section-head.center .section-intro { margin-left: auto; margin-right: auto; }
.split-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

.eyebrow { font-size: 16px; font-weight: 700; color: var(--accent-text); margin-bottom: 14px; }
.section-title { font-size: calc(var(--display-scale) * clamp(32px, 4.2vw, 50px)); max-width: 18ch; }
.center .section-title { margin-left: auto; margin-right: auto; }
.accent-text { color: var(--accent-title); }
.section-intro { margin-top: 16px; max-width: 52ch; color: var(--muted); font-size: 18px; }

/* ---------- Services (icon cards) ---------- */
/* 6-column grid: 3 per row; 4 services become 2 x 2; 5 become 3 + 2; 2 sit side by side */
.service-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--space-5); }
.service-grid > .service-card { grid-column: span 2; }
.service-grid:has(> :nth-child(4):last-child) > .service-card,
.service-grid:has(> :nth-child(2):last-child) > .service-card { grid-column: span 3; }
.service-grid:has(> :nth-child(5):last-child) > .service-card:nth-child(n+4) { grid-column: span 3; }
.service-card {
  background: var(--card); border-radius: var(--radius); padding: 32px 30px 34px;
  position: relative; box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease-spring);
}
/* the hover shadow lives on a pseudo-element so only its opacity animates */
.service-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-md); opacity: 0; transition: opacity .35s var(--ease-out); pointer-events: none; }
.service-card:hover { transform: translateY(-4px); }
.service-card:hover::after { opacity: 1; }
.service-card h3 { margin-top: var(--space-6); font-size: calc(var(--display-scale) * 23px); }
.service-card p { margin-top: 10px; color: var(--muted); font-size: 16.5px; }

.icon-tile { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 16px; background: var(--accent); color: var(--accent-ink); flex: none; }
.icon-tile-light { background: var(--card); color: var(--accent-text); }
.icon-tile-sm { width: 46px; height: 46px; border-radius: 13px; }

/* ---------- Why us (bento) ---------- */
.bento {
  display: grid; gap: var(--space-5);
  grid-template-columns: 1fr 1.1fr 1fr;
  grid-template-areas:
    "b1 b3 b4"
    "b2 b3 b5";
}
.b1 { grid-area: b1; } .b2 { grid-area: b2; } .b3 { grid-area: b3; } .b4 { grid-area: b4; } .b5 { grid-area: b5; }
/* 3 reasons: the third card runs full height. 2 reasons: two columns */
.bento:not(:has(.b5)) { grid-template-areas: "b1 b3 b4" "b2 b3 b4"; }
.bento:not(:has(.b4)) { grid-template-columns: 1fr 1.1fr; grid-template-areas: "b1 b3" "b2 b3"; }
.bento-card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  min-height: 260px; padding: 30px; border-radius: var(--radius); background: var(--surface);
}
.bento-card .icon-tile { margin-bottom: auto; }
.bento-card h3 { margin-top: 28px; font-size: calc(var(--display-scale) * 25px); }
.bento-card p { color: var(--muted); font-size: 16.5px; }
.bento-accent { background: var(--accent-deep); color: #fff; }
.bento-accent p { color: #fff; }
.bento-photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; min-height: 540px; }
.bento-photo::before, .gallery-grid figure::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,0) 55%); pointer-events: none; }
.bento-photo::after, .gallery-grid figure::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--accent); mix-blend-mode: multiply; opacity: .12; pointer-events: none; }
.bento-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }

/* ---------- Service area ---------- */
.area-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.area-copy .btn { margin-top: 30px; }
.area-map {
  position: relative; aspect-ratio: 5 / 4; border-radius: var(--radius); overflow: hidden;
  background: var(--card); box-shadow: var(--shadow-md);
}
.area-rings { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); }
.area-rings .map-dot { fill: var(--map-dot); }
.area-rings .map-road { stroke: var(--map-road); }
.area-pin {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -60%);
  display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow-float);
}
.map-label {
  position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap;
  padding: 8px 16px; border-radius: 999px; font-weight: 700;
}
.map-label-main { top: calc(50% + 34px); background: var(--dark); color: #fff; font-size: 16px; }
.map-label-sub { top: calc(50% + 80px); background: var(--card); color: var(--text); font-size: 14px; border: 1px solid var(--line); }

/* Storefront businesses (salon, med spa, shop): replace .area-map with .visit-card. See template/README.md */
.visit-card { background: var(--card); border-radius: var(--radius); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.visit-address { display: flex; gap: 16px; align-items: flex-start; font-size: 19px; font-weight: 700; }
.visit-hours { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.visit-hours li { display: flex; justify-content: space-between; gap: 16px; font-size: 16.5px; }
.visit-hours li span:first-child { color: var(--muted); font-weight: 600; }
.visit-hours li span:last-child { font-weight: 700; text-align: right; }
.visit-card .btn { margin-top: 26px; }

/* ---------- CTA band ---------- */
.cta { padding: 0 0 var(--section-y); background: var(--surface); }
.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  padding: clamp(36px, 5vw, 56px) clamp(28px, 5vw, 64px);
  border-radius: 28px; background: var(--accent); color: var(--accent-ink);
  background-image: var(--grain),
                    radial-gradient(circle at 92% 10%, rgba(255,255,255,.18) 0 120px, transparent 121px),
                    radial-gradient(circle at 98% 0%, rgba(255,255,255,.1) 0 220px, transparent 221px),
                    radial-gradient(ellipse 70% 120% at 0% 100%, color-mix(in srgb, var(--accent) 70%, #000) 0%, transparent 60%);
  background-blend-mode: overlay, normal, normal, normal;
}
.cta-title { font-size: calc(var(--display-scale) * clamp(28px, 3.2vw, 40px)); max-width: 22ch; }
.cta-actions { display: flex; align-items: center; gap: var(--space-6); flex-wrap: wrap; }
.cta-phone { display: inline-flex; align-items: center; gap: 10px; color: var(--accent-ink); font-weight: 800; font-size: 22px; text-decoration: none; }
.cta-phone:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Estimate form card (in the hero) ---------- */
.estimate-card {
  position: relative; background: var(--card); color: var(--text);
  border-radius: 26px; padding: 30px 30px 24px;
  box-shadow: 0 2px 6px rgba(0,0,0,.18), 0 30px 60px -24px rgba(0,0,0,.45), 0 70px 120px -50px color-mix(in srgb, var(--shadow-tint) 55%, transparent);
}
.estimate-title { font-size: calc(var(--display-scale) * 26px); }
.estimate-sub { margin-top: 6px; color: var(--muted); font-size: 16px; }
.estimate-card .dm-contact { --dm-accent: var(--accent); --dm-radius: 14px; max-width: none; margin-top: 20px; }
/* name, then phone and email side by side, then the message */
.estimate-card #dm-contact-form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 12px; }
.estimate-card #dm-contact-form > * { grid-column: 1 / -1; order: 5; min-width: 0; }
.estimate-card #dm-contact-form > .dm-field:nth-child(1) { order: 1; }
.estimate-card #dm-contact-form > .dm-field:nth-child(3) { order: 2; grid-column: auto; }
.estimate-card #dm-contact-form > .dm-field:nth-child(2) { order: 3; grid-column: auto; }
.estimate-card #dm-contact-form > .dm-field:nth-child(4) { order: 4; }
.estimate-card .dm-field { margin-bottom: 12px; gap: 5px; }
.estimate-card .dm-field label { font-size: 14px; font-weight: 700; }
.estimate-card .dm-field input,
.estimate-card .dm-field textarea {
  padding: 13px 15px; border: 1.5px solid transparent; background: var(--surface); color: var(--text);
}
.estimate-card .dm-field input:hover,
.estimate-card .dm-field textarea:hover { border-color: var(--line); }
.estimate-card .dm-field input,
.estimate-card .dm-field textarea { width: 100%; min-width: 0; }
.estimate-card .dm-field textarea { height: 92px; min-height: 92px; resize: vertical; }
.estimate-card .dm-field input:focus,
.estimate-card .dm-field textarea:focus { background: var(--card); border-color: var(--accent); outline: 3px solid color-mix(in srgb, var(--accent) 25%, transparent); outline-offset: 0; }
/* Mock uses Cloudflare's invisible test key, so the widget needs no reserved space. Remove with a real visible key. */
.estimate-card .dm-turnstile { min-height: 0; margin: 0 0 6px; }
.estimate-card .dm-submit {
  width: 100%; min-height: 56px; border-radius: 999px; font-size: 19px; font-weight: 700; color: var(--accent-ink); box-shadow: var(--shadow-accent);
  transition: transform .45s var(--ease-spring);
}
.estimate-card .dm-submit:hover { background: var(--accent-hover); transform: translateY(-2px); }
.estimate-card .dm-submit:active { transform: scale(.98); transition-duration: .12s; }
.estimate-card .dm-status { margin-top: 8px; min-height: 0; font-size: 15px; }
.estimate-note { margin-top: 4px; text-align: center; font-size: 15px; color: var(--muted); }
.estimate-note a { color: var(--text); font-weight: 800; text-decoration: none; }
.estimate-note a:hover { color: var(--accent-text); }

/* ---------- Contact (details only; the form is in the hero) ---------- */
.contact { padding-top: 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; padding-top: var(--section-y); border-top: 1px solid var(--line); }
.contact-panel { background: var(--card); border-radius: 26px; padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-md); }
.contact-details { display: grid; gap: var(--space-4); }
.contact-details li { display: flex; align-items: center; gap: 16px; font-weight: 600; }
.contact-details a { text-decoration: none; font-weight: 800; font-size: 19px; }
.contact-details a:hover { color: var(--accent-text); }
.detail-label { display: block; font-size: 14px; font-weight: 600; color: var(--muted); }
.contact-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #C9CDD4; padding: clamp(56px, 7vw, 88px) 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; }
.brand-light { color: #fff; }
.brand-light .brand-sub { color: #AEB4BE; }
.footer-brand p { margin-top: 18px; max-width: 32ch; font-size: 16px; }
.footer-col h2 { font-family: var(--font); font-weight: 700; text-transform: none; font-size: 17px; color: #fff; margin-bottom: var(--space-4); letter-spacing: -0.01em; }
.footer-col li { margin-bottom: 10px; font-size: 16px; }
.footer-col a { text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-phone { color: #fff; font-weight: 800; font-size: 19px; }
.footer-btn { margin-top: 10px; min-height: 48px; padding: 10px 20px; font-size: 19px; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  margin-top: 56px; padding-top: 22px; padding-bottom: 26px; border-top: 1px solid #2B2F37;
  font-size: 14px; color: #9AA1AC;
}

/* ---------- Optional blocks (markup in README.md; only with real facts) ---------- */
/* Rating row in the hero, under the buttons */
.rating-row { margin-top: 26px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 16px; color: rgba(255,255,255,.92); }
.rating-row .stars { color: #FFC531; letter-spacing: 2px; font-size: 18px; }
.rating-row + .area-chip { margin-top: 14px; }

/* Stats band: 3 or 4 real numbers */
.stats { background: var(--bg); padding: var(--section-y) 0 0; }
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); border-radius: 28px; color: #fff; padding: var(--space-8) var(--space-6);
  background: var(--grain), radial-gradient(ellipse 60% 120% at 100% 0%, color-mix(in srgb, var(--accent) 35%, transparent), transparent 60%), var(--dark); background-blend-mode: overlay, normal, normal; }
.stats-band li { text-align: center; padding: 8px 12px; border-left: 1px solid rgba(255,255,255,.16); }
.stats-band li:first-child { border-left: 0; }
.stats-band strong { display: block; font-size: calc(var(--display-scale) * clamp(30px, 4vw, 52px)); line-height: 1.1; }
.stats-band span { color: rgba(255,255,255,.75); font-size: 16px; }

/* Gallery: 4 photos of the work (never stock "before/after" pairs) */
.gallery { background: var(--bg); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; gap: var(--space-4); }
.gallery-grid figure { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; }
.gallery-grid figure:nth-child(1) { grid-column: span 2; }
.gallery-grid figure:nth-child(2) { grid-row: span 2; }
.gallery-grid figure:nth-child(4) { grid-column: span 2; }

/* ---------- Floating call (phones) ---------- */
.float-call {
  position: fixed; right: 18px; bottom: 18px; z-index: 40;
  display: none; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-accent), 0 18px 36px -12px color-mix(in srgb, var(--shadow-tint) 40%, transparent);
  transition: transform .45s var(--ease-spring);
}
.float-call:hover { transform: translateY(-2px) scale(1.04); }
.float-call:active { transform: scale(.94); transition-duration: .12s; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .main-nav { display: none; }
  .menu-toggle { display: grid; }
  .bento { grid-template-columns: 1fr 1fr; grid-template-areas: "b1 b3" "b2 b3" "b4 b5"; }
  .bento:not(:has(.b5)) { grid-template-areas: "b1 b3" "b2 b3" "b4 b4"; }
  .bento:not(:has(.b4)) { grid-template-columns: 1fr 1fr; grid-template-areas: "b1 b3" "b2 b3"; }
  .bento-photo { min-height: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  .hero { background: var(--surface); padding-bottom: 8px; min-height: 0; }
  .hero-media, .hero-shade { bottom: auto; height: calc(100% - 300px); }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { padding-bottom: 8px; }
  .hero-estimate-btn { display: inline-flex; }
  .hero-actions--quote-only { display: flex; }
  .estimate-card { max-width: 560px; width: 100%; box-shadow: var(--shadow-lg); }
}

@media (max-width: 900px) {
  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-grid:has(> :nth-child(n):last-child) > .service-card:nth-child(n) { grid-column: auto; }
  .service-grid:has(> :nth-child(n):last-child) > .service-card:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .area-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 767px) {
  body { font-size: 16.5px; }
  .site-header { padding-top: 12px; }
  .header-bar { padding: 8px 8px 8px 12px; border-radius: 18px; gap: 10px; }
  .brand-mark { width: 36px; height: 36px; border-radius: 11px; }
  .brand-name { font-size: 19px; }
  .brand-sub { font-size: 11px; }
  .btn-header, .phone-chip-text { display: none; }
  .phone-chip-icon { width: 48px; height: 48px; background: var(--accent); color: var(--accent-ink); }
  .header-actions { gap: 8px; }

  .hero { padding: 112px 0 8px; align-items: flex-end; }
  .hero-media, .hero-shade { height: calc(100% - 330px); }
  .estimate-card { padding: 24px 20px 18px; border-radius: 22px; }
  .estimate-card #dm-contact-form { grid-template-columns: 1fr; }
  .estimate-card #dm-contact-form > .dm-field:nth-child(2),
  .estimate-card #dm-contact-form > .dm-field:nth-child(3) { grid-column: 1 / -1; }
  .estimate-title { font-size: 24px; }
  .hero-media img { object-position: 78% 50%; }
  .hero-shade {
    background: linear-gradient(0deg, rgba(12,14,18,.94) 0%, rgba(12,14,18,.82) 55%, rgba(12,14,18,.55) 100%);
  }
  .eyebrow-pill { font-size: 13.5px; padding: 7px 13px; }
  .hero-title { margin-top: var(--space-4); font-size: calc(var(--display-scale) * clamp(38px, 10.5vw, 46px)); }
  .hero-title--long { font-size: calc(var(--display-scale) * clamp(32px, 8.6vw, 38px)); }
  .brand-text { max-width: 52vw; }
  .hero-sub { margin-top: 14px; font-size: 17px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { width: 100%; min-height: 56px; }
  .area-chip { margin-top: 18px; font-size: 14px; }

  .service-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-grid:has(> :nth-child(n):last-child) > .service-card:last-child:nth-child(odd) { grid-column: auto; }
  .service-card { padding: 26px 24px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; }
  .service-card .icon-tile { grid-row: span 2; width: 54px; height: 54px; }
  .service-card h3 { margin-top: 4px; font-size: 21px; }
  .service-card p { margin-top: 6px; }

  .bento { grid-template-columns: 1fr; grid-template-areas: "b1" "b3" "b2" "b4" "b5"; gap: 14px; }
  .bento:not(:has(.b5)) { grid-template-areas: "b1" "b3" "b2" "b4"; }
  .bento:not(:has(.b4)) { grid-template-columns: 1fr; grid-template-areas: "b1" "b3" "b2"; }
  .bento-card { min-height: 0; padding: 26px; }
  .bento-card h3 { margin-top: 20px; font-size: 22px; }
  .bento-photo { aspect-ratio: 4 / 3; }
  .split-head .btn { display: none; }

  .cta-band { border-radius: 22px; }
  .cta-actions .btn { width: 100%; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .stats-band { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .stats-band li:nth-child(odd) { border-left: 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; }
  .gallery-grid figure:nth-child(2) { grid-row: span 1; }
  .footer-bottom { padding-bottom: 96px; }
  .float-call { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-anim, .hero-anim-card { opacity: 1; transform: none; animation: none; }
  .btn, .service-card, .service-card::after, .estimate-card .dm-submit, .float-call, .phone-chip-icon { transition: none; }
  .btn:hover, .service-card:hover { transform: none; }
}

