/* ============================================================
   VESTA PLUMBING & HEATING — "We look after the warm heart of your home." (v7)
   Camden / Kentish Town Gas Safe heating engineers & bathrooms.
   Premium boutique-agency build. Pure CSS/SVG, offline-ready.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* brand palette */
  --teal: #0f5257;          /* ocean-teal, primary brand */
  --teal-deep: #0a3a3e;
  --teal-soft: #1a6e74;
  --bone: #f4f0e7;          /* warm background */
  --sun: #f6c544;           /* sunburst-yellow, signature accent */
  --sun-deep: #e0ab1f;
  --charcoal: #232826;
  --sky: #bcd8d6;           /* soft sky */

  /* semantic — LIGHT theme default */
  --bg: var(--bone);
  --bg-alt: #ece6d9;
  --surface: #ffffff;
  --surface-2: #faf7ef;
  --fg: var(--charcoal);
  --fg-soft: #4a524e;
  --fg-faint: #7f867f;
  --line: #e1dacb;
  --line-strong: #cdc4ae;
  --accent: var(--sun);
  --accent-strong: var(--sun-deep);
  --accent-ink: #3a2c05;
  --accent-tint: rgba(246, 197, 68, 0.16);
  --teal-tint: rgba(15, 82, 87, 0.08);
  --hero-bg: #0f5257;          /* dark teal hero even in light mode */
  --hero-fg: #f4f0e7;
  --hero-faint: #b6cecb;
  --shadow-sm: 0 1px 2px rgba(35, 40, 38, 0.06), 0 2px 8px rgba(35, 40, 38, 0.05);
  --shadow-md: 0 8px 30px rgba(35, 40, 38, 0.10), 0 2px 8px rgba(35, 40, 38, 0.06);
  --shadow-lg: 0 24px 64px rgba(15, 82, 87, 0.18);
  --glow: 0 0 0 1px rgba(246, 197, 68, 0.38), 0 10px 40px rgba(246, 197, 68, 0.24);
  --header-bg: rgba(244, 240, 231, 0.76);
  --grid-line: rgba(35, 40, 38, 0.05);

  /* type */
  --display: "Sora", "Sora Fallback", system-ui, -apple-system, sans-serif;
  --body: "Figtree", "Figtree Fallback", system-ui, -apple-system, sans-serif;

  /* rhythm — 8px */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
  --space-7: 96px;
  --space-8: 128px;
  --container: 1180px;
  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-xl: 34px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
}

/* DARK theme */
html.dark {
  --bg: #11201f;
  --bg-alt: #16292a;
  --surface: #18302f;
  --surface-2: #1d3837;
  --fg: #eef2ec;
  --fg-soft: #c3ccc6;
  --fg-faint: #899690;
  --line: #25403e;
  --line-strong: #335150;
  --accent: var(--sun);
  --accent-strong: #ffd55e;
  --accent-ink: #3a2c05;
  --accent-tint: rgba(246, 197, 68, 0.16);
  --teal-tint: rgba(26, 110, 116, 0.20);
  --hero-bg: #0a2c2f;
  --hero-fg: #eef2ec;
  --hero-faint: #9fbab7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.45);
  --shadow-md: 0 10px 34px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 28px 72px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(246, 197, 68, 0.4), 0 10px 40px rgba(246, 197, 68, 0.18);
  --header-bg: rgba(17, 32, 31, 0.76);
  --grid-line: rgba(238, 242, 236, 0.045);
}

/* ---------- Font fallback metrics (reduce layout shift) ---------- */
@font-face {
  font-family: "Sora Fallback";
  src: local("Arial");
  ascent-override: 96%;
  descent-override: 28%;
  line-gap-override: 0%;
  size-adjust: 104%;
}
@font-face {
  font-family: "Figtree Fallback";
  src: local("Arial");
  ascent-override: 95%;
  descent-override: 24%;
  line-gap-override: 0%;
  size-adjust: 101%;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.45s var(--ease), color 0.45s var(--ease);
}
svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
::selection { background: var(--sun); color: var(--accent-ink); }
:focus-visible {
  outline: 2.5px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.display {
  font-size: clamp(3rem, 9vw, 6.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
}
h2.section-title { font-size: clamp(2.1rem, 4.8vw, 3.6rem); font-weight: 700; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
p { color: var(--fg-soft); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.3rem); color: var(--fg-soft); line-height: 1.6; }
em, .ital { font-style: italic; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.container-wide { max-width: 1340px; }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 11vw, 128px); }
.section-pad-sm { padding-block: clamp(48px, 7vw, 80px); }
.center { text-align: center; }
.muted { color: var(--fg-faint); }

/* ---------- Kicker / eyebrow ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.kicker .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--sun);
  box-shadow: 0 0 0 4px var(--accent-tint);
}
.kicker.on-dark { color: var(--hero-faint); }

/* ---------- Pipe-route connector ---------- */
.pipe-route {
  width: 100%;
  height: 26px;
  overflow: visible;
}
.pipe-route .pipe { stroke: var(--line-strong); stroke-width: 3; fill: none; stroke-linecap: round; }
.pipe-route .flow { fill: var(--sun); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--fg);
  --btn-fg: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: 0.005em;
  border: 1px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  --btn-bg: var(--sun);
  --btn-fg: var(--accent-ink);
  box-shadow: 0 6px 22px rgba(246, 197, 68, 0.34);
}
.btn-primary:hover { box-shadow: var(--glow); background: var(--accent-strong); }
.btn-dark {
  --btn-bg: var(--teal);
  --btn-fg: #ffffff;
}
.btn-dark:hover { box-shadow: var(--shadow-md); background: var(--teal-soft); }
html.dark .btn-dark { --btn-bg: var(--teal-soft); }
.btn-ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  border-color: var(--line-strong);
}
.btn-ghost:hover { border-color: var(--fg); background: var(--surface-2); }
.btn-ghost.on-dark {
  --btn-fg: var(--hero-fg);
  border-color: rgba(244, 240, 231, 0.32);
}
.btn-ghost.on-dark:hover { border-color: var(--sun); background: rgba(246, 197, 68, 0.12); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 700; color: var(--fg);
  border-bottom: 1.5px solid var(--sun);
  padding-bottom: 2px;
  transition: gap 0.25s var(--ease), color 0.2s;
}
.btn-link:hover { gap: 12px; color: var(--accent-strong); }
.btn-link svg { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s, background-color 0.45s var(--ease);
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(35, 40, 38, 0.07);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: var(--space-3);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.36rem;
  letter-spacing: -0.02em;
  color: var(--fg);
  flex-shrink: 0;
}
.brand .mark { width: 38px; height: 38px; flex-shrink: 0; }
.brand b { font-weight: 800; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.nav-links a {
  padding: 8px 13px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--fg-soft);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--fg); background: var(--surface-2); }
.nav-links a.active { color: var(--fg); }
.nav-links a.active::after {
  content: "";
  display: block;
  width: 18px; height: 2px;
  background: var(--sun);
  border-radius: 2px;
  margin: 3px auto -2px;
}
.nav-right { display: flex; align-items: center; gap: var(--space-2); }

/* Theme toggle */
.theme-toggle {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s;
  color: var(--fg);
}
.theme-toggle:hover { border-color: var(--accent); transform: rotate(12deg); }
.theme-toggle svg { width: 19px; height: 19px; position: absolute; transition: opacity 0.3s, transform 0.3s; }
.theme-toggle .sun { opacity: 0; transform: scale(0.5) rotate(-45deg); }
.theme-toggle .moon { opacity: 1; transform: scale(1); }
html.dark .theme-toggle .sun { opacity: 1; transform: scale(1) rotate(0); color: var(--sun); }
html.dark .theme-toggle .moon { opacity: 0; transform: scale(0.5) rotate(45deg); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  padding: 0 11px;
}
.hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--fg); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 74px 0 auto 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-3) clamp(20px, 5vw, 40px) var(--space-5);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease);
  z-index: 99;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { transform: translateY(0); }
.mobile-menu a {
  padding: 14px 8px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.4rem;
  border-bottom: 1px solid var(--line);
  color: var(--fg);
}
.mobile-menu a.btn { font-family: var(--body); font-size: 1rem; border: none; margin-top: var(--space-2); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-fg);
  overflow: hidden;
  padding-block: clamp(72px, 13vw, 150px) clamp(56px, 9vw, 110px);
  isolation: isolate;
}
.hero .glow-field {
  position: absolute;
  inset: -20% -10%;
  background:
    radial-gradient(58% 70% at 22% 18%, rgba(246, 197, 68, 0.20), transparent 60%),
    radial-gradient(54% 70% at 82% 78%, rgba(188, 216, 214, 0.18), transparent 62%);
  z-index: -3;
  pointer-events: none;
}
.hero .grain {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}
.hero .hero-grid {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(rgba(244,240,231,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244,240,231,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 40%, transparent 85%);
}
/* animated pipe-route with flowing dots */
.hero .pipe-svg {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: 0.55;
}
.hero .pipe-svg .pipe-line {
  fill: none; stroke: rgba(188, 216, 214, 0.35); stroke-width: 2.5; stroke-linecap: round;
}
.hero .pipe-svg .pipe-line.accent { stroke: rgba(246, 197, 68, 0.3); }
.hero .pipe-svg .flow-dot {
  fill: var(--sun);
  offset-rotate: 0deg;
}
.hero .pipe-svg .flow-dot.d1 { offset-path: path("M -40 140 C 200 60, 360 220, 620 120 S 1000 60, 1280 180"); animation: flow1 7s linear infinite; }
.hero .pipe-svg .flow-dot.d2 { offset-path: path("M -40 140 C 200 60, 360 220, 620 120 S 1000 60, 1280 180"); animation: flow1 7s linear infinite; animation-delay: 2.3s; }
.hero .pipe-svg .flow-dot.d3 { offset-path: path("M -40 140 C 200 60, 360 220, 620 120 S 1000 60, 1280 180"); animation: flow1 7s linear infinite; animation-delay: 4.6s; }
.hero .pipe-svg .flow-dot.e1 { offset-path: path("M -40 360 C 260 460, 480 300, 760 400 S 1080 460, 1320 340"); animation: flow2 9s linear infinite; }
.hero .pipe-svg .flow-dot.e2 { offset-path: path("M -40 360 C 260 460, 480 300, 760 400 S 1080 460, 1320 340"); animation: flow2 9s linear infinite; animation-delay: 3s; }
@keyframes flow1 { from { offset-distance: 0%; } to { offset-distance: 100%; } }
@keyframes flow2 { from { offset-distance: 0%; } to { offset-distance: 100%; } }

.hero .container { position: relative; }
.hero-inner { max-width: 940px; }
.hero .kicker { color: var(--hero-faint); margin-bottom: var(--space-3); }
.hero h1 {
  color: var(--hero-fg);
  font-size: clamp(3rem, 8.8vw, 6.6rem);
  line-height: 0.98;
  margin-bottom: var(--space-3);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.hero h1 .accent-word {
  position: relative;
  color: var(--sun);
}
.hero h1 .accent-word::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0.08em;
  width: 100%; height: 0.42em;
  background: rgba(246, 197, 68, 0.16);
  z-index: -1;
  border-radius: 3px;
}
.hero .lead { color: var(--hero-faint); max-width: 580px; margin-bottom: var(--space-5); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(244, 240, 231, 0.12);
  align-items: center;
}
.hero-strip .item {
  display: flex; align-items: center; gap: 9px;
  font-size: 0.86rem; font-weight: 600;
  color: var(--hero-faint);
}
.hero-strip .item svg { width: 18px; height: 18px; color: var(--sun); flex-shrink: 0; }

/* droplet ripple rings in hero */
.hero .ripple {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(246, 197, 68, 0.4);
  z-index: -1;
  pointer-events: none;
  animation: ripple-out 5s var(--ease) infinite;
}
.hero .ripple.r1 { width: 16px; height: 16px; top: 26%; right: 16%; animation-delay: 0s; }
.hero .ripple.r2 { width: 16px; height: 16px; top: 62%; right: 28%; animation-delay: 1.6s; border-color: rgba(188,216,214,0.4); }
.hero .ripple.r3 { width: 16px; height: 16px; top: 44%; right: 8%; animation-delay: 3.2s; }
@keyframes ripple-out {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(6); opacity: 0; }
}

/* ---------- Trust strip (under hero) ---------- */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--space-3) var(--space-6);
  padding-block: var(--space-3);
}
.trust-strip .t-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.82rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--fg-faint);
}
.trust-strip .t-item svg { width: 20px; height: 20px; color: var(--teal); }
html.dark .trust-strip .t-item svg { color: var(--sky); }

/* ---------- Section heading block ---------- */
.sec-head { max-width: 660px; margin-bottom: var(--space-6); }
.sec-head.center { margin-inline: auto; }
.sec-head .kicker { margin-bottom: var(--space-2); }
.sec-head p { margin-top: var(--space-2); }
.sec-head-row {
  display: flex; justify-content: space-between; align-items: flex-end;
  flex-wrap: wrap; gap: var(--space-3); margin-bottom: var(--space-6);
}
.sec-head-row .sec-head { margin-bottom: 0; }

/* ---------- Service preview cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
}
.svc-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.svc-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sun), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.45s var(--ease);
}
.svc-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--line-strong);
}
.svc-card:hover::before { transform: scaleX(1); }
.svc-icon {
  width: 54px; height: 54px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--teal-tint);
  color: var(--teal);
  margin-bottom: var(--space-3);
}
html.dark .svc-icon { color: var(--sky); }
.svc-icon svg { width: 27px; height: 27px; }
.svc-card h3 { margin-bottom: var(--space-1); }
.svc-card p { font-size: 0.95rem; margin-bottom: var(--space-3); }
.svc-card .meta-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}
.svc-card .price {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.45rem;
  color: var(--fg);
}
.svc-card .price small { font-size: 0.78rem; color: var(--fg-faint); font-family: var(--body); font-weight: 600; }
.svc-card .dur {
  font-size: 0.8rem; font-weight: 600; color: var(--fg-faint);
  display: inline-flex; align-items: center; gap: 6px;
}
.svc-card .dur svg { width: 15px; height: 15px; }

/* ---------- Feature / why-us split ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.split.reverse > :first-child { order: 2; }

/* Stat numbers */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}
.stat {
  padding: var(--space-3);
  border-left: 2px solid var(--sun);
  background: var(--surface-2);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
}
.stat .num {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 4.3vw, 3.2rem);
  line-height: 1;
  color: var(--fg);
}
.stat .lbl { font-size: 0.86rem; color: var(--fg-soft); margin-top: 6px; font-weight: 600; }

/* warm/cool split scene panel */
.scene-panel {
  position: relative;
  aspect-ratio: 4 / 4.4;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #16292a, #0a2c2f);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.scene-panel .scene { position: absolute; inset: 0; }

/* radiator heat-wave bars */
.heat-bars { position: absolute; display: flex; gap: 7px; align-items: flex-end; }
.heat-bars .bar {
  width: 7px; border-radius: 4px;
  background: linear-gradient(to top, var(--sun), rgba(246,197,68,0.2));
  transform-origin: bottom;
  animation: heat-rise 2.6s var(--ease-soft) infinite;
}
@keyframes heat-rise {
  0%, 100% { transform: scaleY(0.45); opacity: 0.55; }
  50% { transform: scaleY(1); opacity: 1; }
}

/* ---------- Testimonials ---------- */
.tst-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: var(--space-3);
}
.tst {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.tst:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tst .stars { display: flex; gap: 3px; color: var(--sun); }
.tst .stars svg { width: 17px; height: 17px; }
.tst p { color: var(--fg); font-size: 1.02rem; line-height: 1.55; flex-grow: 1; }
.tst .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal-deep));
  flex-shrink: 0;
}
.tst .who .nm { font-weight: 700; font-size: 0.95rem; color: var(--fg); }
.tst .who .area { font-size: 0.82rem; color: var(--fg-faint); }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background: var(--hero-bg);
  color: var(--hero-fg);
  border-radius: var(--radius-xl);
  padding: clamp(40px, 7vw, 80px);
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.cta-band .glow-field {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(50% 80% at 20% 30%, rgba(246,197,68,0.2), transparent 60%),
    radial-gradient(50% 80% at 85% 70%, rgba(188,216,214,0.18), transparent 62%);
}
.cta-band h2 { color: var(--hero-fg); font-size: clamp(2.1rem, 4.8vw, 3.4rem); margin-bottom: var(--space-2); }
.cta-band p { color: var(--hero-faint); max-width: 520px; margin: 0 auto var(--space-4); }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding-block: clamp(48px, 7vw, 88px) var(--space-4);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--space-5) var(--space-4);
  margin-bottom: var(--space-6);
}
.footer-grid h4 {
  font-family: var(--body);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-faint);
  margin-bottom: var(--space-2);
}
.footer-brand .brand { margin-bottom: var(--space-2); }
.footer-brand p { font-size: 0.95rem; max-width: 290px; }
.footer-col a, .footer-col p, .footer-col address {
  display: block;
  font-size: 0.95rem;
  color: var(--fg-soft);
  font-style: normal;
  padding: 5px 0;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--accent-strong); }
.footer-hours { display: flex; justify-content: space-between; font-size: 0.9rem; padding: 4px 0; color: var(--fg-soft); }
.footer-hours span:last-child { color: var(--fg-faint); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--fg-faint);
}
.footer-bottom .links { display: flex; gap: var(--space-3); }
.footer-bottom .links a:hover { color: var(--accent-strong); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  position: relative;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--line);
  padding-block: clamp(56px, 9vw, 104px) clamp(40px, 6vw, 64px);
  overflow: hidden;
}
.page-hero .glow-accent {
  position: absolute;
  top: -30%; right: -5%;
  width: 420px; height: 420px;
  background: radial-gradient(circle, var(--accent-tint), transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.6rem);
  margin-block: var(--space-2);
  max-width: 17ch;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-hero .lead { max-width: 620px; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.84rem; color: var(--fg-faint);
  margin-bottom: var(--space-2);
}
.breadcrumb a { color: var(--fg-faint); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-strong); }
.breadcrumb .sep { opacity: 0.5; }

/* ---------- Services page list ---------- */
.svc-list { display: flex; flex-direction: column; gap: var(--space-3); }
.svc-row {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: var(--space-3);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-3) var(--space-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
.svc-row:hover { transform: translateX(4px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.svc-row.popular { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun), var(--shadow-md); }
.svc-row .badge-pop {
  position: absolute;
  top: -11px; left: 80px;
  background: var(--sun);
  color: var(--accent-ink);
  font-size: 0.66rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.svc-row .ico {
  width: 56px; height: 56px;
  border-radius: 15px;
  display: grid; place-items: center;
  background: var(--teal-tint); color: var(--teal);
}
html.dark .svc-row .ico { color: var(--sky); }
.svc-row .ico svg { width: 28px; height: 28px; }
.svc-row .info h3 { font-size: 1.3rem; margin-bottom: 4px; }
.svc-row .info p { font-size: 0.92rem; margin-bottom: 6px; }
.svc-row .info .dur {
  font-size: 0.78rem; font-weight: 700; color: var(--fg-faint);
  display: inline-flex; align-items: center; gap: 6px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.svc-row .info .dur svg { width: 14px; height: 14px; }
.svc-row .act { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.svc-row .act .price { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1; color: var(--fg); }
.svc-row .act .price small { font-family: var(--body); font-size: 0.72rem; color: var(--fg-faint); display: block; font-weight: 600; }
.svc-row .act .price .free { color: var(--teal); }
html.dark .svc-row .act .price .free { color: var(--sky); }

/* ---------- About page ---------- */
.about-lead-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: start;
}
.about-figure {
  position: relative;
  aspect-ratio: 1 / 1.15;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(160deg, #16292a, #0a2c2f);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-3);
}
.value {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.value:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.value .v-ico { width: 46px; height: 46px; border-radius: 13px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; margin-bottom: var(--space-2); }
html.dark .value .v-ico { color: var(--sky); }
.value .v-ico svg { width: 24px; height: 24px; }
.value h3 { font-size: 1.25rem; margin-bottom: 6px; }
.value p { font-size: 0.94rem; }

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-3);
}
.member {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  text-align: center;
  transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.member:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.member .m-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  margin: 0 auto var(--space-3);
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 700; font-size: 1.9rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--teal-soft), var(--teal-deep));
  box-shadow: 0 10px 30px rgba(15,82,87,0.3);
}
.member.sun .m-avatar { background: linear-gradient(135deg, var(--sun), var(--sun-deep)); color: var(--accent-ink); box-shadow: var(--glow); }
.member h3 { font-size: 1.25rem; margin-bottom: 2px; }
.member .role { font-size: 0.85rem; font-weight: 700; color: var(--accent-strong); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: var(--space-2); }
.member p { font-size: 0.9rem; }

.cert-row {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  justify-content: center;
}
.cert-chip {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700; font-size: 0.88rem;
  color: var(--fg-soft);
}
.cert-chip svg { width: 19px; height: 19px; color: var(--teal); }
html.dark .cert-chip svg { color: var(--sky); }

/* ---------- Care plans page (tiers, adapted from case cards) ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-3);
  align-items: stretch;
}
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4) var(--space-4);
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan.featured { border-color: var(--sun); box-shadow: 0 0 0 1px var(--sun), var(--shadow-md); }
.plan.featured::before {
  content: "";
  position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--sun), var(--teal));
}
.plan .badge-pop {
  position: absolute; top: 16px; right: 16px;
  background: var(--sun); color: var(--accent-ink);
  font-size: 0.64rem; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px;
}
.plan .plan-name { font-size: 1.4rem; margin-bottom: 6px; }
.plan .plan-tagline { font-size: 0.92rem; color: var(--fg-soft); margin-bottom: var(--space-3); min-height: 2.4em; }
.plan .plan-price {
  font-family: var(--display); font-weight: 800;
  font-size: 2.6rem; line-height: 1; color: var(--fg);
  display: flex; align-items: baseline; gap: 6px;
}
.plan .plan-price small { font-family: var(--body); font-size: 0.82rem; font-weight: 600; color: var(--fg-faint); }
.plan .plan-sub { font-size: 0.82rem; color: var(--fg-faint); margin-top: 4px; margin-bottom: var(--space-3); }
.plan .plan-feats { display: flex; flex-direction: column; gap: 11px; padding-top: var(--space-3); border-top: 1px solid var(--line); margin-bottom: var(--space-4); flex-grow: 1; }
.plan .plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; color: var(--fg-soft); }
.plan .plan-feats li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 2px; }
html.dark .plan .plan-feats li svg { color: var(--sun); }
.plan .plan-feats li.off { color: var(--fg-faint); opacity: 0.6; }
.plan .plan-feats li.off svg { color: var(--fg-faint); }

/* comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-l); overflow: hidden; }
.compare-table th, .compare-table td { padding: 14px var(--space-3); text-align: center; font-size: 0.92rem; border-bottom: 1px solid var(--line); }
.compare-table th { background: var(--surface-2); font-family: var(--display); font-weight: 700; font-size: 0.98rem; color: var(--fg); }
.compare-table td:first-child, .compare-table th:first-child { text-align: left; font-weight: 600; color: var(--fg); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--teal); }
html.dark .compare-table .yes { color: var(--sun); }
.compare-table .no { color: var(--fg-faint); opacity: 0.5; }
.compare-table svg { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--space-2);
}
.tile {
  position: relative;
  border-radius: var(--radius-m);
  overflow: hidden;
  min-height: 200px;
  border: 1px solid var(--line);
  cursor: pointer;
  isolation: isolate;
}
.tile .scene { position: absolute; inset: 0; transition: transform 0.6s var(--ease); }
.tile:hover .scene { transform: scale(1.06); }
.tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--space-3);
  background: linear-gradient(transparent, rgba(10,44,47,0.88));
  color: #fff;
  transform: translateY(8px);
  opacity: 0;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
  z-index: 2;
}
.tile:hover .cap, .tile:focus-within .cap { transform: translateY(0); opacity: 1; }
.tile .cap .t { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.1; }
.tile .cap .s { font-size: 0.82rem; color: rgba(244,240,231,0.82); margin-top: 3px; }
.tile .cap-static {
  position: absolute; top: var(--space-2); left: var(--space-2);
  z-index: 2;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(10,44,47,0.45); backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px;
}
.tile.w6 { grid-column: span 6; }
.tile.w4 { grid-column: span 4; }
.tile.w8 { grid-column: span 8; }
.tile.w12 { grid-column: span 12; }
.tile.tall { min-height: 320px; }

/* before/after slider */
.ba-wrap { margin-bottom: var(--space-5); }
.ba-stage {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg { width: 100%; height: 100%; }
.ba-after { z-index: 2; }
.ba-tag {
  position: absolute; top: var(--space-2); z-index: 4;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: #fff; background: rgba(10,44,47,0.55); backdrop-filter: blur(6px);
  padding: 5px 11px; border-radius: 999px;
}
.ba-tag.before { left: var(--space-2); }
.ba-tag.after { right: var(--space-2); }
.ba-divider {
  position: absolute; top: 0; bottom: 0; z-index: 3;
  width: 3px; background: var(--sun);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(35,40,38,0.1);
}
.ba-divider .knob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--sun); color: var(--accent-ink);
  display: grid; place-items: center;
  box-shadow: var(--shadow-md);
}
.ba-divider .knob svg { width: 22px; height: 22px; }
.ba-range {
  position: absolute; inset: 0; z-index: 5;
  width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba-range:focus-visible + .ba-divider .knob { outline: 2.5px solid var(--accent); outline-offset: 3px; }
.ba-hint { text-align: center; font-size: 0.84rem; color: var(--fg-faint); margin-top: var(--space-2); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}
.contact-methods { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-4); }
.c-method {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: var(--space-3);
  transition: border-color 0.25s, transform 0.25s;
}
.c-method:hover { border-color: var(--line-strong); transform: translateX(3px); }
.c-method .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; flex-shrink: 0; }
html.dark .c-method .ico { color: var(--sky); }
.c-method .ico svg { width: 22px; height: 22px; }
.c-method .lbl { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-faint); }
.c-method .val { font-size: 1.05rem; font-weight: 700; color: var(--fg); }

.hours-table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); overflow: hidden; }
.hours-table th, .hours-table td { text-align: left; padding: 13px var(--space-3); font-size: 0.94rem; }
.hours-table th { background: var(--surface-2); font-family: var(--body); font-weight: 700; font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-faint); }
.hours-table tr:not(:last-child) td { border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; color: var(--fg-soft); font-weight: 600; }
.hours-table tr.today td { background: var(--accent-tint); }
.hours-table tr.today td:first-child { font-weight: 800; }

/* Map placeholder */
.map-box {
  position: relative;
  aspect-ratio: 16 / 11;
  border-radius: var(--radius-l);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-2);
  margin-top: var(--space-3);
}
.map-box .roads { position: absolute; inset: 0; }
.map-pin {
  position: absolute;
  top: 44%; left: 50%;
  transform: translate(-50%, -100%);
  z-index: 3;
}
.map-pin svg { width: 44px; height: 44px; filter: drop-shadow(0 8px 12px rgba(35,40,38,0.3)); }
.map-pin .ping {
  position: absolute;
  bottom: -4px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--sun); opacity: 0.4;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: translateX(-50%) scale(0.4); opacity: 0.6; } 100% { transform: translateX(-50%) scale(2.4); opacity: 0; } }
.map-label {
  position: absolute; left: var(--space-3); bottom: var(--space-3); z-index: 3;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 14px;
  font-size: 0.84rem; font-weight: 700; box-shadow: var(--shadow-sm);
  display: flex; align-items: center; gap: 8px;
}
.map-label svg { width: 16px; height: 16px; color: var(--teal); }
html.dark .map-label svg { color: var(--sun); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow-sm);
}
.field { margin-bottom: var(--space-3); position: relative; }
.field label { display: block; font-size: 0.86rem; font-weight: 700; margin-bottom: 8px; color: var(--fg); }
.field .req { color: var(--teal); }
html.dark .field .req { color: var(--sun); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--fg);
  transition: border-color 0.2s, box-shadow 0.2s;
  font-size: 0.98rem;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input::placeholder, .field textarea::placeholder { color: var(--fg-faint); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3.5px var(--accent-tint);
}
.field .err { display: none; color: #d4453f; font-size: 0.8rem; margin-top: 6px; font-weight: 600; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #d4453f; }
.field.invalid .err { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.form-success {
  display: none;
  background: var(--accent-tint);
  border: 1px solid var(--sun);
  border-radius: var(--radius-l);
  padding: var(--space-5);
  text-align: center;
}
.form-success.show { display: block; animation: pop 0.5s var(--ease); }
.form-success .check {
  width: 60px; height: 60px; margin: 0 auto var(--space-3);
  border-radius: 50%; background: var(--sun);
  display: grid; place-items: center;
}
.form-success .check svg { width: 30px; height: 30px; color: var(--accent-ink); }
.form-success h3 { margin-bottom: var(--space-1); }
@keyframes pop { from { transform: scale(0.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: var(--space-4);
  align-items: start;
}
.checkout-main { display: flex; flex-direction: column; gap: var(--space-3); }
.co-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: clamp(20px, 3vw, 32px);
}
.co-head { display: flex; align-items: center; gap: 13px; margin-bottom: var(--space-3); }
.co-head h2 { font-size: 1.45rem; }
.step-n {
  width: 30px; height: 30px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal); color: #fff;
  display: grid; place-items: center;
  font-family: var(--body); font-weight: 800; font-size: 0.9rem;
}

/* slot grid */
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.slot {
  padding: 12px 8px; text-align: center;
  border: 1.5px solid var(--line-strong); border-radius: var(--radius-s);
  font-weight: 700; font-size: 0.9rem; cursor: pointer;
  background: var(--bg);
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.15s;
}
.slot:hover:not(.sold) { border-color: var(--accent); transform: translateY(-2px); }
.slot.selected { background: var(--sun); color: var(--accent-ink); border-color: var(--sun); }
.slot.sold { opacity: 0.4; cursor: not-allowed; text-decoration: line-through; }

/* availability legend */
.avail-legend { display: flex; gap: var(--space-3); margin-bottom: var(--space-2); font-size: 0.78rem; color: var(--fg-faint); font-weight: 600; }
.avail-legend span { display: inline-flex; align-items: center; gap: 6px; }
.avail-legend .swatch { width: 12px; height: 12px; border-radius: 4px; border: 1.5px solid var(--line-strong); }
.avail-legend .swatch.open { background: var(--sun); border-color: var(--sun); }

/* payment tabs */
.pay-tabs { display: flex; gap: 8px; margin-bottom: var(--space-3); flex-wrap: wrap; }
.pay-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--bg);
  font-weight: 700; font-size: 0.88rem; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.pay-tab svg { width: 18px; height: 18px; }
.pay-tab:hover { border-color: var(--accent); }
.pay-tab.active { background: var(--teal); color: #fff; border-color: var(--teal); }
.pay-panel { display: none; animation: fade-up 0.4s var(--ease); }
.pay-panel.active { display: block; }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.redirect-note {
  display: flex; align-items: center; gap: var(--space-3);
  background: var(--surface-2); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-m); padding: var(--space-3);
}
.redirect-note .ico { width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
html.dark .redirect-note .ico { color: var(--sky); }
.redirect-note .ico svg { width: 22px; height: 22px; }
.redirect-note p { font-size: 0.92rem; }

/* card visual */
.card-visual {
  position: relative;
  aspect-ratio: 16 / 9.5;
  max-width: 340px;
  border-radius: var(--radius-m);
  padding: var(--space-3);
  background: linear-gradient(135deg, #16292a, #0a3a3e);
  color: #fff;
  margin-bottom: var(--space-3);
  overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: var(--shadow-md);
}
.card-visual .brand-glow {
  position: absolute; top: -40%; right: -20%;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(246,197,68,0.45), transparent 70%);
}
.card-visual .chip { width: 42px; height: 30px; border-radius: 6px; background: linear-gradient(135deg, #f6dc8e, #d2a23a); position: relative; z-index: 1; }
.card-visual .cv-num { font-size: 1.18rem; letter-spacing: 0.12em; font-family: var(--body); font-weight: 600; position: relative; z-index: 1; }
.card-visual .cv-row { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.card-visual .lbl { font-size: 0.6rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; }
.card-visual .cv-row > div > div:last-child { font-weight: 700; font-size: 0.9rem; }

/* order summary */
.order-summary {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: var(--space-4);
  position: sticky;
  top: 94px;
}
.order-summary h2 { font-size: 1.35rem; margin-bottom: var(--space-3); }
.os-item { display: flex; gap: var(--space-2); align-items: center; padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); margin-bottom: var(--space-3); }
.os-item .ico { width: 50px; height: 50px; flex-shrink: 0; border-radius: 13px; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; }
html.dark .os-item .ico { color: var(--sky); }
.os-item .ico svg { width: 26px; height: 26px; }
.os-item .nm { font-weight: 700; font-size: 1.02rem; color: var(--fg); line-height: 1.2; }
.os-item .meta { font-size: 0.82rem; color: var(--fg-faint); margin-top: 3px; }
.os-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.94rem; color: var(--fg-soft); }
.os-line.discount { color: var(--teal); font-weight: 700; }
html.dark .os-line.discount { color: var(--sun); }
.os-line.balance { color: var(--fg-faint); }
.os-total { display: flex; justify-content: space-between; align-items: baseline; padding-top: var(--space-3); margin-top: var(--space-2); border-top: 2px solid var(--line); }
.os-total .lbl { font-weight: 700; }
.os-total .amt { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: var(--fg); }

/* toggle pills (member / deposit) */
.opt-block { margin-bottom: var(--space-3); }
.opt-label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--fg-faint); margin-bottom: 8px; }
.opt-toggle { display: flex; gap: 6px; background: var(--surface-2); padding: 5px; border-radius: 999px; border: 1px solid var(--line); }
.opt-toggle button {
  flex: 1; padding: 9px 12px; border-radius: 999px; border: none; background: transparent;
  font-weight: 700; font-size: 0.82rem; cursor: pointer; color: var(--fg-soft);
  transition: background-color 0.2s, color 0.2s;
}
.opt-toggle button.active { background: var(--teal); color: #fff; }

.promo-row { display: flex; gap: 8px; margin: var(--space-2) 0 6px; }
.promo-row input { flex: 1; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--bg); color: var(--fg); font-size: 0.92rem; }
.promo-row input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-tint); }
.promo-row button { padding: 11px 18px; border-radius: var(--radius-s); border: none; background: var(--teal); color: #fff; font-weight: 700; cursor: pointer; font-size: 0.88rem; }
.promo-msg { font-size: 0.8rem; color: var(--fg-faint); font-weight: 600; }
.promo-msg.ok { color: #1c8a4e; }
.promo-msg.no { color: #d4453f; }

.secure-row { display: flex; align-items: center; gap: 9px; font-size: 0.82rem; font-weight: 700; color: var(--fg-soft); margin-top: var(--space-3); }
.secure-row svg { width: 18px; height: 18px; color: #1c8a4e; }
.gateways { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-2); }
.gw-chip { font-size: 0.66rem; font-weight: 800; letter-spacing: 0.04em; padding: 5px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--fg-faint); }
.demo-note { font-size: 0.76rem; color: var(--fg-faint); margin-top: var(--space-2); text-align: center; font-style: italic; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.35); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; }
.btn-primary .spinner { border-color: rgba(58,44,5,0.3); border-top-color: var(--accent-ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* sticky mobile book bar */
.mobile-book-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  display: none;
  align-items: center; justify-content: space-between;
  gap: var(--space-2);
  padding: 12px clamp(16px, 5vw, 24px);
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(35,40,38,0.1);
}
.mobile-book-bar .mb-txt { font-size: 0.8rem; font-weight: 700; color: var(--fg); line-height: 1.2; }
.mobile-book-bar .mb-txt small { display: block; font-weight: 600; color: var(--fg-faint); font-size: 0.72rem; }
.mobile-book-bar .btn { padding: 11px 20px; }

/* ---------- Success page ---------- */
.success-wrap { max-width: 640px; margin: 0 auto; text-align: center; }
.success-check {
  width: 96px; height: 96px; margin: 0 auto var(--space-4);
  border-radius: 50%;
  background: var(--accent-tint);
  display: grid; place-items: center;
  position: relative;
}
.success-check::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--sun); opacity: 0;
  animation: ring-out 1.6s var(--ease) infinite;
}
@keyframes ring-out { 0% { transform: scale(0.8); opacity: 0.7; } 100% { transform: scale(1.5); opacity: 0; } }
.success-check svg { width: 48px; height: 48px; }
.success-check .draw { stroke: var(--accent-strong); stroke-width: 3; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: draw 0.7s var(--ease) 0.2s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.success-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-l); padding: var(--space-4);
  text-align: left; margin: var(--space-4) 0;
}
.success-card .row { display: flex; justify-content: space-between; padding: 11px 0; font-size: 0.96rem; }
.success-card .row:not(:last-child) { border-bottom: 1px solid var(--line); }
.success-card .row .k { color: var(--fg-faint); font-weight: 600; }
.success-card .row .v { font-weight: 700; color: var(--fg); }
.success-card .row .v.ref { font-family: var(--display); font-weight: 800; font-size: 1.15rem; color: var(--accent-strong); }
.steps-list { display: flex; flex-direction: column; gap: var(--space-2); text-align: left; margin: var(--space-4) 0; }
.step-item { display: flex; gap: var(--space-2); align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-m); padding: var(--space-3); }
.step-item .n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--teal-tint); color: var(--teal); display: grid; place-items: center; font-weight: 800; font-size: 0.82rem; }
html.dark .step-item .n { color: var(--sky); }
.step-item .tx strong { display: block; color: var(--fg); font-size: 0.98rem; }
.step-item .tx span { font-size: 0.88rem; color: var(--fg-soft); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
.reveal[data-d="4"] { transition-delay: 0.32s; }
.reveal[data-d="5"] { transition-delay: 0.40s; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .split, .about-lead-grid, .contact-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .tile.w8, .tile.w6 { grid-column: span 6; }
  .compare-table { font-size: 0.84rem; }
  .compare-table th, .compare-table td { padding: 11px 10px; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .btn-book-desktop { display: none; }
  .gallery-grid { grid-template-columns: repeat(6, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .tile.w6, .tile.w4, .tile.w8, .tile.w12 { grid-column: span 1; }
  .svc-row { grid-template-columns: 48px 1fr; }
  .svc-row .act { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; padding-top: var(--space-2); border-top: 1px solid var(--line); }
  .svc-row .badge-pop { left: 64px; }
  .hero-strip { gap: var(--space-2) var(--space-3); }
  .cta-band { padding: var(--space-5) var(--space-3); }
  .ba-stage { aspect-ratio: 4 / 3; }
}
