/* Site Factory template design system.
   Theme tokens (--primary, --accent, --ink, --paper, --radius) are injected
   per client in the page head. Everything else derives from them here.
   Radius rule: surfaces use var(--radius); interactive pills are fully round. */

/* ---------- fonts ---------- */
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-600.woff2") format("woff2");
  font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Clash Display";
  src: url("../fonts/clash-display-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-500.woff2") format("woff2");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Satoshi";
  src: url("../fonts/satoshi-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

/* ---------- derived tokens ---------- */
:root {
  --font-display: "Clash Display", "Satoshi", system-ui, sans-serif;
  --font-body: "Satoshi", system-ui, sans-serif;

  --primary-950: color-mix(in oklab, var(--primary), black 62%);
  --primary-900: color-mix(in oklab, var(--primary), black 45%);
  --primary-700: color-mix(in oklab, var(--primary), black 18%);
  --primary-100: color-mix(in oklab, var(--primary), white 82%);
  --primary-050: color-mix(in oklab, var(--primary), white 93%);

  /* CTA surfaces darken the accent enough that WHITE button text clears WCAG
     4.5:1, not just the 3:1 large-text floor. A vibrant client accent still
     reads as itself, just deep enough to be legible. --accent-text is for
     accent-colored small text on paper. */
  /* build.mjs overrides these three inline per client: it picks the vividest
     accessible CTA (dark text on a bright accent when that passes, else a
     darkened accent with white text). These are only fallbacks. */
  --accent-cta: color-mix(in oklab, var(--accent), black 36%);
  --accent-cta-hover: color-mix(in oklab, var(--accent), black 47%);
  --accent-cta-text: #fff;
  --accent-strong: color-mix(in oklab, var(--accent), black 14%);
  --accent-text: color-mix(in oklab, var(--accent), black 38%);
  --accent-soft: color-mix(in oklab, var(--accent), white 88%);

  --ink-60: color-mix(in oklab, var(--ink), transparent 24%);
  --ink-40: color-mix(in oklab, var(--ink), transparent 30%);
  --line: color-mix(in oklab, var(--ink), transparent 86%);
  --surface: color-mix(in oklab, var(--paper), white 55%);
  --band-bg: color-mix(in oklab, var(--primary), var(--paper) 93%);
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);

  --shadow-soft: 0 24px 70px -28px color-mix(in oklab, var(--primary-950), transparent 72%);
  --shadow-lift: 0 10px 34px -14px color-mix(in oklab, var(--primary-950), transparent 76%);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --section-pad: clamp(5.5rem, 9vw, 9rem);
}

/* ---------- reset-lite ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
/* <picture> is a layout-neutral wrapper: let the inner <img> keep its own box
   and positioning (hero images are absolutely positioned, cards use grid). */
picture { display: contents; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.05; margin: 0 0 0.6em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.6rem, 5.4vw, 4.3rem); }
h2 { font-size: clamp(2rem, 3.6vw, 3rem); }
h3 { font-size: 1.25rem; line-height: 1.25; }
p { margin: 0 0 1em; }
a { color: inherit; }
button { font: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: var(--container-pad); }
.section { padding-block: var(--section-pad); }
.section-sub { color: var(--ink-60); max-width: 46ch; margin: 0 0 2.5rem; }
.band { background: var(--band-bg); border-block: 1px solid var(--line); }

.skip-link {
  position: fixed; top: -100%; left: 1rem; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 0.6rem 1.2rem; border-radius: 999px; text-decoration: none;
  transition: top 0.3s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 0.6rem 0.55rem 1.5rem;
  border: 0; border-radius: 999px; text-decoration: none; cursor: pointer;
  font-weight: 700; font-size: 1.17rem; letter-spacing: 0.01em;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-accent {
  background: var(--accent-cta); color: var(--accent-cta-text);
  box-shadow: 0 14px 30px -14px color-mix(in oklab, var(--accent), black 30%);
}
.btn-accent:hover { background: var(--accent-cta-hover); transform: translateY(-2px); }
.btn-glass {
  padding: 0.8rem 1.6rem;
  background: rgb(255 255 255 / 0.14); color: #fff;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55);
}
.btn-glass:hover { background: rgb(255 255 255 / 0.22); transform: translateY(-2px); }
.btn-orb {
  width: 2.2rem; height: 2.2rem; border-radius: 999px;
  background: rgb(255 255 255 / 0.22);
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease);
}
.btn-orb svg { width: 1.05rem; height: 1.05rem; }
.btn:hover .btn-orb { transform: translate(3px, -1px) scale(1.06); }
.btn-ghost {
  padding: 0.8rem 1.6rem;
  background: transparent; color: var(--primary-700);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--primary), transparent 60%);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); transform: translateY(-2px); }
.btn-wide { width: 100%; justify-content: space-between; }

.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.45rem 1rem; border-radius: 999px;
  background: var(--primary-050); color: var(--primary-700);
  font-size: 0.9rem; font-weight: 500;
}
.chip svg { width: 1rem; height: 1rem; }

.text-link { color: var(--primary-700); text-decoration-color: color-mix(in oklab, var(--primary), transparent 60%); text-underline-offset: 3px; }

/* ---------- booking embed (iframe mounted lazily by main.js) ---------- */
.booking-embed {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lift);
  min-height: 640px;
}
.booking-embed iframe { display: block; width: 100%; min-height: 640px; border: 0; }
.booking-fallback { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-60); }

/* ---------- nav ---------- */
.nav { position: fixed; inset-inline: 0; top: 0; z-index: 50; display: flex; justify-content: center; padding: 1rem 1rem 0; pointer-events: none; }
.nav-pill {
  pointer-events: auto;
  display: flex; align-items: center; gap: 1.75rem;
  padding: 0.55rem 0.55rem 0.55rem 1.1rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--paper), transparent 22%);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid color-mix(in oklab, var(--ink), transparent 92%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.5), var(--shadow-lift);
  transition: box-shadow 0.5s var(--ease), background-color 0.5s var(--ease);
  max-width: calc(100vw - 2rem);
}
.nav-brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.nav-brand img { border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; gap: 1.4rem; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: 0.95rem; color: var(--ink-60); transition: color 0.3s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.15rem; border-radius: 999px; text-decoration: none;
  /* deep enough that small WHITE text on a bright-blue client brand still
     clears 4.5:1 (raw --primary is too light for white at this size) */
  background: var(--primary-900); color: #fff; font-weight: 700; font-size: 0.95rem;
  transition: background-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.nav-phone:hover { background: var(--primary-950); transform: translateY(-1px); }

/* nav over the dark closing section: swap the frosted-light pill for a dark
   glass so links stay legible (toggled by main.js IntersectionObserver) */
.nav.on-dark .nav-pill {
  background: color-mix(in oklab, var(--primary-950), transparent 16%);
  border-color: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), var(--shadow-lift);
}
.nav.on-dark .nav-brand { color: #fff; }
.nav.on-dark .nav-links a { color: rgb(255 255 255 / 0.74); }
.nav.on-dark .nav-links a:hover { color: #fff; }
.nav-phone-icon svg { width: 1rem; height: 1rem; display: block; }
.nav-burger {
  display: none; position: relative; width: 2.6rem; height: 2.6rem;
  border: 0; border-radius: 999px; background: var(--primary); cursor: pointer;
}
.nav-burger span {
  position: absolute; left: 50%; top: 50%; width: 1.1rem; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform 0.45s var(--ease);
}
.nav-burger span:first-child { transform: translate(-50%, calc(-50% - 3.5px)); }
.nav-burger span:last-child { transform: translate(-50%, calc(-50% + 3.5px)); }
.nav-burger[aria-expanded="true"] span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.nav-overlay {
  position: fixed; inset: 0; z-index: 40;
  background: color-mix(in oklab, var(--primary-950), transparent 8%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.45s var(--ease);
}
.nav-overlay.open { opacity: 1; }
/* author display:flex would otherwise override the hidden attribute and the
   invisible overlay would swallow every click on the page */
.nav-overlay[hidden] { display: none; }
.nav-overlay nav { display: flex; flex-direction: column; gap: 0.4rem; text-align: center; }
.nav-overlay a {
  color: #fff; text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
}
.nav-overlay.open a { opacity: 1; transform: none; }
.nav-overlay-phone { font-size: 1.15rem !important; margin-top: 1.5rem; color: color-mix(in oklab, #fff, transparent 25%) !important; }
.nav-overlay-lang { font-size: 1.05rem !important; margin-top: 1.25rem; color: color-mix(in oklab, #fff, transparent 30%) !important; letter-spacing: 0.04em; }

/* language toggle pill (desktop nav; the mobile overlay carries its own link) */
.lang-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.45rem 0.85rem; border-radius: 999px; text-decoration: none;
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.06em;
  color: var(--ink-60);
  box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink), transparent 82%);
  transition: color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.lang-toggle:hover { color: var(--ink); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--ink), transparent 55%); }
.nav.on-dark .lang-toggle { color: rgb(255 255 255 / 0.74); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.28); }
.nav.on-dark .lang-toggle:hover { color: #fff; }

/* ---------- hero: full-bleed cinematic ---------- */
.hero { height: 195vh; }
.hero-sticky { position: sticky; top: 0; min-height: 100dvh; overflow: clip; display: flex; }
.hero-stage { position: absolute; inset: 0; background: var(--primary-100); }
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-after { opacity: var(--scrub, 0); }
.hero-before.is-simulated { filter: saturate(0.55) sepia(0.5) hue-rotate(52deg) brightness(0.82) contrast(0.94); }
.hero-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(70rem 40rem at 85% 0%, color-mix(in oklab, var(--primary), transparent 78%), transparent 62%),
    linear-gradient(to top,
      color-mix(in oklab, var(--ink), transparent 8%) 0%,
      color-mix(in oklab, var(--ink), transparent 42%) 26%,
      color-mix(in oklab, var(--ink), transparent 100%) 62%);
}
.hero-content {
  position: relative; z-index: 1; width: 100%;
  align-self: flex-end;
  padding-bottom: clamp(3rem, 9vh, 5.5rem);
  color: #fff;
}
.hero-content h1 { color: #fff; max-width: 14ch; margin-bottom: 0.4em; }
.hero-sub { color: rgb(255 255 255 / 0.86); font-size: 1.15rem; max-width: 40ch; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ---------- trust bar ---------- */
.trustbar { padding-block: 2.5rem; border-block: 1px solid var(--line); background: var(--band-bg); }
.trustbar-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 2.5rem; align-items: center; }
.trust-rating p { margin: 0.35rem 0 0; color: var(--ink-60); font-size: 0.95rem; }
.trust-rating strong { color: var(--ink); font-size: 1.05rem; }
.stars { display: inline-flex; gap: 0.15rem; color: var(--accent); }
.stars svg { width: 1.15rem; height: 1.15rem; }
.star-off { opacity: 0.25; }
.trust-stats { list-style: none; display: flex; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); margin: 0; padding: 0; }
.trust-stats li { display: flex; flex-direction: column; align-items: center; text-align: center; }
.stat-value { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--primary-700); }
.stat-label { font-size: 0.85rem; color: var(--ink-60); }
.trust-cred { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-start; }

/* ---------- services: hover-reveal transformation cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; margin-top: 3rem; }
/* first service is the featured tile: a 2x2 block that anchors the bento */
.svc-grid > .svc-card:first-child { grid-column: span 2; grid-row: span 2; height: auto; }
.svc-card {
  position: relative; display: block; height: clamp(280px, 30vw, 340px);
  border-radius: var(--radius); overflow: hidden;
  text-decoration: none; color: #fff; cursor: pointer;
  box-shadow: var(--shadow-lift);
  background: var(--primary-100);
}
/* dirty state rests slightly muted; clean state fades in on hover/focus/in-view */
.svc-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.svc-before { filter: saturate(0.72); }
.svc-after { opacity: 0; }
.svc-card:hover .svc-img, .svc-card:focus-visible .svc-img, .svc-card.is-on .svc-img { transform: scale(1.07); }
.svc-card:hover .svc-after, .svc-card:focus-visible .svc-after, .svc-card.is-on .svc-after { opacity: 1; }
.svc-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top,
    color-mix(in oklab, var(--ink), transparent 12%) 0%,
    color-mix(in oklab, var(--ink), transparent 55%) 34%,
    color-mix(in oklab, var(--ink), transparent 100%) 62%);
}
.svc-body {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 1.25rem 1.3rem 1.3rem;
}
.svc-body p { margin: 0.35rem 0 0; font-size: 0.92rem; color: rgb(255 255 255 / 0.88); max-width: 34ch; }
.svc-top { display: flex; justify-content: space-between; align-items: center; }
.svc-icon {
  display: inline-flex; width: 2.4rem; height: 2.4rem;
  align-items: center; justify-content: center; border-radius: 999px;
  background: rgb(255 255 255 / 0.16);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35);
}
.svc-icon svg { width: 1.25rem; height: 1.25rem; }
.svc-arrow { display: inline-flex; transition: transform 0.5s var(--ease); }
.svc-arrow svg { width: 1.5rem; height: 1.5rem; }
.svc-card:hover .svc-arrow, .svc-card:focus-visible .svc-arrow, .svc-card.is-on .svc-arrow { transform: rotate(-45deg); }
.svc-title { margin: 0; font-size: 1.35rem; line-height: 1.2; }
/* letter flip: JS wraps each letter in .fl > span(x2); hover slides to 2nd copy */
.svc-title .fl { display: inline-block; overflow: hidden; height: 1.2em; vertical-align: bottom; }
.svc-title .fl > span {
  display: flex; flex-direction: column; min-width: 4px;
  transition: transform 0.5s var(--ease);
  transition-delay: calc(var(--li, 0) * 30ms);
}
.svc-card:hover .fl > span, .svc-card:focus-visible .fl > span, .svc-card.is-on .fl > span { transform: translateY(-50%); }

/* ---------- pricing / plans ---------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; align-items: stretch; }
.plan-card {
  position: relative; display: flex; flex-direction: column;
  padding: 2rem 1.8rem; border-radius: var(--radius);
  background: var(--paper); border: 1px solid var(--line);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.plan-featured {
  border: 1.5px solid color-mix(in oklab, var(--accent), transparent 45%);
  box-shadow: 0 24px 60px -30px color-mix(in oklab, var(--accent), black 20%);
}
.plan-badge {
  position: absolute; top: -0.75rem; left: 50%; transform: translateX(-50%);
  padding: 0.35rem 1rem; border-radius: 999px; white-space: nowrap;
  background: var(--accent-cta); color: var(--accent-cta-text);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.plan-name { font-family: var(--font-display); font-size: 1.35rem; margin: 0.4rem 0 0.6rem; }
.plan-price { display: flex; align-items: baseline; gap: 0.3rem; margin: 0 0 0.4rem; }
.plan-from { font-size: 0.85rem; color: var(--ink-40); }
.plan-price strong { font-family: var(--font-display); font-size: 2.4rem; color: var(--primary-700); line-height: 1; }
.plan-unit { color: var(--ink-40); font-size: 0.95rem; }
.plan-blurb { color: var(--ink-60); font-size: 0.98rem; margin: 0 0 1.3rem; }
.plan-features { list-style: none; margin: 0 0 1.8rem; padding: 0; display: grid; gap: 0.65rem; flex: 1 1 auto; }
.plan-features li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.97rem; }
.plan-features svg { width: 1.2rem; height: 1.2rem; color: var(--primary-700); flex: 0 0 auto; margin-top: 0.1rem; }
.plan-cta { width: 100%; justify-content: center; }
.plan-featured .plan-cta { justify-content: space-between; }
.plan-note { text-align: center; margin-top: 2rem; color: var(--ink-40); font-size: 0.9rem; }

/* ---------- owner ---------- */
.owner-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: center; }
.owner-photo-shell {
  padding: 0.5rem; border-radius: calc(var(--radius) + 0.5rem);
  background: color-mix(in oklab, var(--primary), transparent 92%);
  border: 1px solid color-mix(in oklab, var(--primary), transparent 82%);
  box-shadow: var(--shadow-soft);
  transform: rotate(-1.5deg);
  max-width: 400px;
  justify-self: center;
}
.owner-photo-shell img { border-radius: var(--radius); aspect-ratio: 3 / 4; height: auto; object-fit: cover; width: 100%; }
.owner-points { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem 1.5rem; }
.owner-points li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; font-size: 0.98rem; }
.owner-points svg { width: 1.25rem; height: 1.25rem; color: var(--primary-700); flex: 0 0 auto; }
.owner-copy h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 600; }
.owner-copy > p { color: var(--ink-60); max-width: 52ch; }
.owner-sig { display: flex; flex-direction: column; margin: 1.6rem 0; }
.owner-sig strong { font-family: var(--font-display); font-size: 1.15rem; }
.owner-sig span { color: var(--ink-40); font-size: 0.92rem; }
.owner-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; }

/* ---------- reviews ---------- */
.reviews-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem;
}
.review-card {
  display: flex; flex-direction: column;
  margin: 0; padding: 1.8rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
}
.review-card p { flex: 1 1 auto; }
.review-card p {
  margin: 0.9rem 0 1.2rem; font-size: 1rem;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.review-card footer { display: flex; flex-direction: column; }
.review-card footer span { color: var(--ink-40); font-size: 0.88rem; }

/* ---------- areas ---------- */
.areas-grid { display: grid; grid-template-columns: 7fr 4fr; gap: clamp(2.5rem, 6vw, 5rem); }
.area-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 0; }
.area-chips li {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.55rem 1.1rem; border-radius: 999px;
  background: var(--primary-050); border: 1px solid color-mix(in oklab, var(--primary), transparent 78%);
  font-weight: 500; font-size: 0.95rem; cursor: default;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.area-chips li:hover { background: var(--primary); color: #fff; border-color: var(--primary); transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.area-chips li:nth-child(3n+2):hover { background: var(--accent-cta); border-color: var(--accent-cta); }
.area-chips li:nth-child(3n):hover { background: var(--primary-700); border-color: var(--primary-700); }
.area-chips li:hover svg { color: #fff; }
.area-chips svg { width: 0.95rem; height: 0.95rem; color: var(--primary-700); }
.areas-side {
  padding: 2rem; border-radius: var(--radius);
  background: var(--band-bg); border: 1px solid var(--line);
  align-self: start;
}
.areas-side h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-40); margin: 0 0 0.5rem; font-family: var(--font-body); font-weight: 700; }
.areas-side h3 + p { margin-bottom: 1.6rem; }
.hours { list-style: none; margin: 0; padding: 0; }
.hours li { display: flex; justify-content: space-between; gap: 1rem; padding-block: 0.3rem; }
.hours span:last-child { color: var(--ink-60); }
.areas-map { margin-bottom: 1.75rem; border-radius: calc(var(--radius) - 4px); overflow: hidden; border: 1px solid var(--line); }
.areas-map iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ---------- faq ---------- */
.faq-grid { display: grid; grid-template-columns: 4fr 7fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.faq-head { position: sticky; top: 6rem; }
.faq-head .section-sub { margin-bottom: 0; }
.faq-list { margin-top: 0.4rem; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 0.2rem; cursor: pointer; list-style: none;
  font-family: var(--font-display); font-weight: 600; font-size: 1.15rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-marker { position: relative; width: 1.1rem; height: 1.1rem; flex: 0 0 auto; }
.faq-marker::before, .faq-marker::after {
  content: ""; position: absolute; inset: 50% auto auto 50%;
  width: 1.1rem; height: 2px; background: var(--primary-700);
  transform: translate(-50%, -50%);
  transition: transform 0.45s var(--ease);
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
details[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-list details p { margin: 0 0 1.4rem; color: var(--ink-60); max-width: 62ch; }

/* ---------- contact: the one deliberate theme flip ---------- */
.contact {
  background:
    radial-gradient(90rem 40rem at 85% -10%, color-mix(in oklab, var(--primary), transparent 72%), transparent 60%),
    var(--primary-950);
  color: color-mix(in oklab, #fff, var(--primary-050) 30%);
  padding-bottom: 0;
}
.contact h2 { color: #fff; }
.contact-grid { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; padding-bottom: var(--section-pad); }
.contact-copy > p { color: color-mix(in oklab, #fff, transparent 30%); max-width: 44ch; }
.contact-phone {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: 0.35rem; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: #fff;
  transition: color 0.4s var(--ease);
}
.contact-phone:hover { color: var(--accent); }
.contact-phone svg { width: 1.6rem; height: 1.6rem; }
.contact-label { display: block; margin-top: 1.6rem; color: color-mix(in oklab, #fff, transparent 42%); font-size: 0.95rem; }
/* Call + Text buttons. text (sms:) only works on a phone, so desktop shows the
   tappable number; on mobile the number is hidden and these two buttons show. */
.contact-actions { display: none; gap: 0.8rem; margin-top: 1rem; }
.contact-btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 50px; padding: 0.7rem 1.2rem; border-radius: 999px; text-decoration: none;
  color: #fff; font-weight: 600; font-size: 1rem;
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.42);
  transition: background-color 0.3s var(--ease), transform 0.2s var(--ease);
}
.contact-btn:active { transform: scale(0.98); }
.contact-btn:first-child { background: var(--accent-cta); box-shadow: none; }
.contact-btn:first-child:hover { background: var(--accent-cta-hover); }
.contact-btn:not(:first-child):hover { background: rgb(255 255 255 / 0.14); }
.contact-btn svg { width: 1.1rem; height: 1.1rem; }

/* what happens next: grounds the ask at the decision moment */
.contact-steps {
  list-style: none; margin: 2.4rem 0 0; padding: 1.6rem 0 0;
  border-top: 1px solid rgb(255 255 255 / 0.14);
  display: flex; flex-direction: column; gap: 1rem;
}
.contact-steps li { display: flex; align-items: center; gap: 0.85rem; color: color-mix(in oklab, #fff, transparent 22%); }
.contact-steps svg { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; color: var(--accent); }

.quote-form {
  background: var(--paper); color: var(--ink);
  border-radius: var(--radius); padding: 2rem;
  box-shadow: 0 40px 90px -30px rgb(0 0 0 / 0.5);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.1rem; }
.form-field label { font-weight: 700; font-size: 0.92rem; }
.form-field input, .form-field textarea {
  font: inherit; color: var(--ink);
  padding: 0.75rem 0.95rem;
  border: 1.5px solid color-mix(in oklab, var(--ink), transparent 78%);
  border-radius: calc(var(--radius) - 8px);
  background: #fff;
  transition: border-color 0.3s var(--ease);
}
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--primary); }
.form-field.invalid input { border-color: var(--accent-strong); }
.form-error { color: var(--accent-text); font-size: 0.85rem; }
.form-status { margin-top: 1rem; font-weight: 500; }
.form-status.ok { color: var(--primary-700); }
.form-status.err { color: var(--accent-text); }

/* ---------- footer (inside dark block) ---------- */
.footer { margin-top: var(--section-pad); border-top: 1px solid rgb(255 255 255 / 0.14); padding-block: 2.5rem; }
.footer-grid {
  display: grid; grid-template-columns: auto minmax(22ch, 1fr) auto auto; gap: 1.2rem 2.5rem; align-items: center;
}
.footer-brand { display: flex; align-items: center; gap: 0.6rem; font-family: var(--font-display); font-weight: 600; color: #fff; }
.footer-brand img { border-radius: 7px; object-fit: cover; }
.footer-tag { margin: 0; color: rgb(255 255 255 / 0.78); font-size: 0.95rem; }
.footer-nap { grid-column: 1 / -1; margin: 0; color: rgb(255 255 255 / 0.75); font-size: 0.9rem; }
.footer-nap a { color: rgb(255 255 255 / 0.85); text-decoration: none; }
.footer-nap a:hover { color: #fff; }
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a, .footer-social a { color: rgb(255 255 255 / 0.85); text-decoration: none; font-size: 0.95rem; }
.footer-links a:hover, .footer-social a:hover { color: #fff; }
.footer-social { display: flex; gap: 1.1rem; align-items: center; }
.footer-social a { display: inline-flex; transition: color 0.3s var(--ease), transform 0.3s var(--ease); }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social svg { width: 1.35rem; height: 1.35rem; }
.footer-legal { grid-column: 1 / -1; margin: 0.5rem 0 0; color: rgb(255 255 255 / 0.75); font-size: 0.85rem; }

/* ---------- reveal on scroll ---------- */
/* Hidden state only when JS is running (main.js adds .js-anim to <html>);
   no-JS, crawlers, and headless renderers get visible content. */
.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js-anim .reveal.in { opacity: 1; transform: none; }
.trust-stats li, .area-chips li { transition-delay: calc(var(--i, 0) * 45ms); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .hero { height: 175vh; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc-grid > .svc-card:first-child { grid-column: auto; grid-row: auto; height: clamp(280px, 30vw, 340px); }
  .plan-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .ba-grid { grid-template-columns: 1fr 1fr; }
  .owner-grid, .contact-grid, .areas-grid, .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: auto 1fr; }
  .faq-head { position: static; }
  .faq-head .section-sub { margin-bottom: 1.5rem; }
  .owner-grid { justify-items: center; text-align: center; }
  .owner-photo-shell { justify-self: center; }
  .owner-copy > p { margin-inline: auto; }
  .owner-points { justify-items: center; }
  .owner-sig { align-items: center; }
  .owner-chips { justify-content: center; }
  .trustbar-grid { grid-template-columns: 1fr; gap: 1.5rem; justify-items: start; }
  .trust-stats { justify-content: flex-start; }
  .trust-cred { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 768px) {
  .nav-links, .lang-toggle, .nav-phone span:last-child { display: none; }
  .nav-phone { padding: 0.55rem 0.7rem; }
  .nav-burger { display: block; }
  .svc-grid { grid-template-columns: 1fr; }
  /* no hover on touch: show the finished clean pool, not the before/after flip */
  .svc-after { opacity: 1; }
  .ba-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; justify-items: start; gap: 1rem; }
  .form-row { grid-template-columns: 1fr; }
  /* on touch, the sms button becomes the tappable second action and replaces the hint */
  .has-sms .contact-phone { display: none; }
  .has-sms .contact-actions { display: flex; }
  .hero { height: 165vh; }
  .hero-content { padding-bottom: max(2.5rem, env(safe-area-inset-bottom, 0px) + 2.5rem); }
  .owner-points { grid-template-columns: 1fr; }
}

/* ---------- small phones (<=480px): tighten type + 44px tap targets ---------- */
@media (max-width: 480px) {
  :root { --section-pad: clamp(3.5rem, 12vw, 5rem); }
  h1 { font-size: clamp(2.1rem, 9.5vw, 2.7rem); }
  h2 { font-size: clamp(1.55rem, 7vw, 2rem); }
  .container { padding-inline: 1.1rem; }
  .hero { height: 150vh; }
  .hero-sub { font-size: 1.05rem; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  /* WCAG 44px minimum touch targets */
  .nav-phone, .nav-burger, .btn, .contact-btn, .faq-list summary, .area-chips li { min-height: 44px; }
  .area-chips li { align-items: center; }
  .nav-pill { gap: 0.5rem; padding: 0.45rem 0.45rem 0.45rem 0.9rem; }
  .svc-card { height: clamp(240px, 62vw, 300px); }
  .ba-half img { height: 190px; }
  .review-card { padding: 1.4rem; }
  .trust-stats { flex-wrap: wrap; gap: 1.2rem 1.6rem; }
  .contact-phone { font-size: 1.5rem; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-anim .reveal { opacity: 1; transform: none; transition: none; }
  .hero { height: auto; }
  .hero-sticky { position: static; }
  .hero-after { opacity: 1; }
  .nav-overlay, .nav-overlay a, .btn, .btn-orb, .svc-img, .svc-arrow { transition: none; }
  .svc-after { opacity: 1; }
  .svc-before { filter: none; }
}
