/* ============================================================
   Roku's Lighting — main.css
   Palette: midnight base, warm-white text, soft-gold glow accent
   Type: Space Grotesk (display) + Manrope (body)
   ============================================================ */

:root {
  /* Color tokens */
  --midnight: #0a0e18;
  --midnight-2: #0d1220;
  --surface: #111827;
  --surface-2: #16202f;
  --line: rgba(244, 239, 230, 0.09);
  --ink: #f4efe6;          /* warm white — 2700K, not sterile */
  --ink-dim: #b8b2a6;
  --ink-faint: #7d7a72;
  --gold: #e6b15c;         /* warm LED glow — primary accent + CTA */
  --gold-bright: #f2c87e;
  --blue: #5ba8ff;         /* electric blue — sparing secondary */
  --glow-color: var(--gold);       /* driven by hero toggle */
  --glow-color-2: var(--gold-bright);

  /* Type */
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Manrope", sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.25rem, 1.17rem + 0.4vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.45rem + 0.75vw, 2.1rem);
  --step-3: clamp(2.1rem, 1.8rem + 1.5vw, 3.1rem);
  --step-4: clamp(2.8rem, 2.2rem + 3vw, 4.8rem);

  --space-s: clamp(1rem, 2vw, 1.5rem);
  --space-m: clamp(2rem, 4vw, 3rem);
  --space-l: clamp(4rem, 8vw, 7rem);
  --radius: 18px;
  --radius-lg: 28px;

  --shadow-card: 0 10px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 24px rgba(230, 177, 92, 0.28);
  --wrap: 1160px;
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html:focus-within { scroll-behavior: smooth; }
body {
  background: var(--midnight);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul[role="list"] { list-style: none; }

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); }

.wrap { width: min(var(--wrap), 92vw); margin-inline: auto; }
.section { padding-block: var(--space-l); position: relative; }
.section--tight { padding-block: var(--space-m); }

.eyebrow {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold));
  border-radius: 2px;
}
.lede { color: var(--ink-dim); max-width: 58ch; font-size: var(--step-1); line-height: 1.55; }
.section-head { max-width: 46rem; margin-bottom: var(--space-m); }
.section-head p { color: var(--ink-dim); margin-top: 0.9rem; }

::selection { background: rgba(230, 177, 92, 0.35); }

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

/* ---------- Signature: the eave line ---------- */
.eave-line {
  height: 6px;
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  overflow: hidden;
  padding-block: 6px;
}
.eave-line i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--glow-color);
  box-shadow: 0 0 8px 2px color-mix(in srgb, var(--glow-color) 55%, transparent);
  opacity: 0.85;
  animation: eave-breathe 4.5s ease-in-out infinite;
}
.eave-line i:nth-child(2n) { animation-delay: 0.7s; }
.eave-line i:nth-child(3n) { animation-delay: 1.5s; }
.eave-line i:nth-child(5n) { animation-delay: 2.2s; }
@keyframes eave-breathe {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 60;
  background: rgba(10, 14, 24, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 72px;
}
.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand-mark {
  width: 30px; height: 30px;
  border-radius: 9px;
  background: linear-gradient(140deg, var(--surface-2), var(--midnight-2));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  position: relative;
}
.brand-mark::after {
  content: "";
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 3px rgba(230, 177, 92, 0.5);
}
.brand span em { color: var(--gold); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  list-style: none;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-dim);
  transition: color 0.25s ease;
  padding-block: 0.4rem;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"] {
  position: relative;
}
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
  box-shadow: 0 0 8px rgba(230, 177, 92, 0.6);
}

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 0.95rem 1.7rem;
  border-radius: 999px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary {
  background: linear-gradient(140deg, var(--gold-bright), var(--gold));
  color: #191104;
  box-shadow: 0 4px 18px rgba(230, 177, 92, 0.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(230, 177, 92, 0.5);
}
.btn-ghost {
  border: 1px solid var(--line);
  color: var(--ink);
  background: rgba(244, 239, 230, 0.03);
}
.btn-ghost:hover {
  border-color: rgba(230, 177, 92, 0.5);
  background: rgba(230, 177, 92, 0.07);
  transform: translateY(-2px);
}
.btn-lg { padding: 1.15rem 2.2rem; font-size: 1.05rem; }

/* ---------- Hero (home) ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 110px;
  padding-bottom: var(--space-m);
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero-sky {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 45% at 50% 108%, color-mix(in srgb, var(--glow-color) 16%, transparent), transparent 70%),
    linear-gradient(180deg, #070a12 0%, var(--midnight) 55%, #0c1017 100%);
  transition: background 0.8s ease;
}
.hero-stars {
  position: absolute; inset: 0; z-index: -1; opacity: 0.7;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-block: 0.4rem 1.2rem; }
.hero h1 .glow-word {
  color: var(--glow-color-2);
  text-shadow: 0 0 26px color-mix(in srgb, var(--glow-color) 55%, transparent);
  transition: color 0.6s ease, text-shadow 0.6s ease;
}
.hero .lede { margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.hero-note {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.4rem;
  color: var(--ink-faint);
  font-size: 0.88rem;
  font-weight: 600;
}
.hero-note span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-note svg { width: 15px; height: 15px; color: var(--gold); }

/* Hero house visual */
.hero-visual { position: relative; }
.hero-house { width: 100%; height: auto; }
.hero-house .roof-dot {
  fill: var(--glow-color-2);
  opacity: 0;
  animation: dot-on 0.5s ease forwards;
  filter: drop-shadow(0 0 6px var(--glow-color));
  transition: fill 0.6s ease, filter 0.6s ease;
}
.hero-house .wall-wash {
  fill: var(--glow-color);
  opacity: 0;
  animation: wash-on 1.4s ease forwards;
  animation-delay: 1.6s;
  transition: fill 0.6s ease;
}
.hero-house .window-lit { fill: #f6d9a0; opacity: 0.9; }
@keyframes dot-on { to { opacity: 1; } }
@keyframes wash-on { to { opacity: 0.16; } }

/* Color-mode toggle */
.glow-toggle {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.85);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-card);
}
.glow-toggle button {
  padding: 0.5rem 1.05rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink-dim);
  transition: background 0.3s ease, color 0.3s ease;
}
.glow-toggle button[aria-pressed="true"] {
  background: rgba(230, 177, 92, 0.16);
  color: var(--ink);
}
body.mode-color .glow-toggle button[aria-pressed="true"] {
  background: rgba(91, 168, 255, 0.16);
}

/* Color mode: hero glow shifts to RGB feel */
body.mode-color {
  --glow-color: #b06cff;
  --glow-color-2: #7fd0ff;
}
body.mode-color .hero-house .roof-dot:nth-of-type(4n+1) { fill: #ff6ea9; filter: drop-shadow(0 0 6px #ff6ea9); }
body.mode-color .hero-house .roof-dot:nth-of-type(4n+2) { fill: #7fd0ff; filter: drop-shadow(0 0 6px #7fd0ff); }
body.mode-color .hero-house .roof-dot:nth-of-type(4n+3) { fill: #8dff9e; filter: drop-shadow(0 0 6px #8dff9e); }
body.mode-color .hero-house .roof-dot:nth-of-type(4n+4) { fill: #b06cff; filter: drop-shadow(0 0 6px #b06cff); }

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(165deg, var(--surface), var(--midnight-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(230, 177, 92, 0.35);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink-dim); font-size: 0.97rem; }
.card-icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  background: rgba(230, 177, 92, 0.1);
  border: 1px solid rgba(230, 177, 92, 0.22);
  color: var(--gold);
}
.card-icon svg { width: 22px; height: 22px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.3rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.3rem; }

/* ---------- Benefit split ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.split .visual-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.check-list { list-style: none; display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.check-list li { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--ink-dim); }
.check-list svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold); margin-top: 0.2rem; }
.check-list strong { color: var(--ink); font-weight: 700; }

/* ---------- Before / After ---------- */
.ba-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
  user-select: none;
  aspect-ratio: 16 / 9;
}
.ba-slider > .ba-before,
.ba-slider > .ba-after { position: absolute; inset: 0; }
.ba-slider .ba-after { clip-path: inset(0 0 0 var(--ba-pos, 50%)); }
.ba-slider svg { width: 100%; height: 100%; }
.ba-handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--ba-pos, 50%);
  width: 2px;
  background: var(--gold);
  box-shadow: 0 0 14px rgba(230, 177, 92, 0.8);
  transform: translateX(-50%);
}
.ba-handle::after {
  content: "⇔";
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold);
  color: #191104;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}
.ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
}
.ba-label {
  position: absolute;
  top: 14px;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 14, 24, 0.75);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  pointer-events: none;
}
.ba-label--before { left: 14px; }
.ba-label--after { right: 14px; color: var(--gold); }

/* ---------- Process timeline ---------- */
.process {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  counter-reset: step;
  position: relative;
}
.process::before {
  content: "";
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line) 15%, var(--line) 85%, transparent);
}
.process li {
  list-style: none;
  text-align: center;
  position: relative;
}
.process .step-dot {
  width: 54px; height: 54px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid rgba(230, 177, 92, 0.35);
  color: var(--gold);
  position: relative;
  z-index: 1;
  transition: box-shadow 0.4s ease, transform 0.4s ease;
}
.process li:hover .step-dot {
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}
.process .step-dot svg { width: 24px; height: 24px; }
.process h3 { font-size: 1.02rem; margin-bottom: 0.3rem; }
.process p { color: var(--ink-faint); font-size: 0.88rem; line-height: 1.5; }

/* ---------- Trust band ---------- */
.trust-band {
  border-block: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(230, 177, 92, 0.04), transparent);
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.trust-grid .num {
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 700;
  color: var(--gold-bright);
  line-height: 1.1;
}
.trust-grid .label { color: var(--ink-faint); font-size: 0.9rem; font-weight: 600; margin-top: 0.3rem; }

/* ---------- Testimonials ---------- */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.testimonial {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.stars { color: var(--gold); letter-spacing: 0.15em; font-size: 0.95rem; }
.testimonial blockquote { color: var(--ink-dim); font-size: 0.98rem; flex: 1; }
.testimonial footer { display: flex; align-items: center; gap: 0.8rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--surface-2), var(--midnight-2));
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--gold);
  font-size: 0.95rem;
}
.testimonial cite { font-style: normal; font-weight: 700; font-size: 0.92rem; display: block; }
.testimonial small { color: var(--ink-faint); font-size: 0.8rem; }

/* ---------- Gallery ---------- */
.masonry {
  columns: 3;
  column-gap: 1.2rem;
}
.masonry > * { break-inside: avoid; margin-bottom: 1.2rem; }
.g-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  cursor: zoom-in;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.3, 1), box-shadow 0.35s ease;
  display: block;
  width: 100%;
  text-align: left;
}
.g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card), var(--shadow-glow); }
.g-item svg { width: 100%; height: auto; display: block; }
.g-item .g-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  padding: 2rem 1.1rem 0.9rem;
  background: linear-gradient(180deg, transparent, rgba(7, 10, 18, 0.9));
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.g-item:hover .g-caption, .g-item:focus-visible .g-caption { opacity: 1; transform: none; }

.filter-bar { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: var(--space-m); }
.filter-bar button {
  padding: 0.55rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.88rem;
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--ink-dim);
  transition: all 0.25s ease;
}
.filter-bar button:hover { color: var(--ink); border-color: rgba(230, 177, 92, 0.4); }
.filter-bar button[aria-pressed="true"] {
  background: rgba(230, 177, 92, 0.14);
  border-color: rgba(230, 177, 92, 0.5);
  color: var(--gold-bright);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(7, 10, 18, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: none;
  place-items: center;
  padding: 5vmin;
}
.lightbox.open { display: grid; }
.lightbox-content {
  max-width: min(920px, 92vw);
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-card);
}
.lightbox-content svg { width: 100%; height: auto; }
.lightbox-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(17, 24, 39, 0.8);
  display: grid;
  place-items: center;
  font-size: 1.3rem;
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin-inline: auto; display: grid; gap: 0.8rem; }
.faq details {
  background: linear-gradient(165deg, var(--surface), var(--midnight-2));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq details[open] { border-color: rgba(230, 177, 92, 0.35); }
.faq summary {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 1.4rem 1.3rem; color: var(--ink-dim); font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.cta-final {
  text-align: center;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(230, 177, 92, 0.25);
  background:
    radial-gradient(70% 90% at 50% 120%, rgba(230, 177, 92, 0.14), transparent 70%),
    linear-gradient(165deg, var(--surface), var(--midnight-2));
  padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow-card);
}
.cta-final h2 { margin-bottom: 0.9rem; }
.cta-final p { color: var(--ink-dim); max-width: 46ch; margin: 0 auto 1.8rem; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: grid; gap: 0.45rem; }
.field label { font-weight: 700; font-size: 0.9rem; }
.field .hint { color: var(--ink-faint); font-size: 0.8rem; font-weight: 500; }
.field input, .field select, .field textarea {
  background: var(--midnight-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  color: var(--ink);
  font: inherit;
  font-size: 0.97rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(230, 177, 92, 0.18);
}
.field input:user-invalid, .field select:user-invalid {
  border-color: #ef6a6a;
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23b8b2a6' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
}
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-pill span {
  display: inline-block;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-dim);
  transition: all 0.25s ease;
}
.radio-pill input:checked + span {
  background: rgba(230, 177, 92, 0.14);
  border-color: rgba(230, 177, 92, 0.55);
  color: var(--gold-bright);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }

.file-drop {
  border: 1.5px dashed var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
  text-align: center;
  color: var(--ink-faint);
  font-size: 0.92rem;
  transition: border-color 0.25s ease, background 0.25s ease;
  position: relative;
}
.file-drop:hover { border-color: rgba(230, 177, 92, 0.5); background: rgba(230, 177, 92, 0.04); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.form-status { margin-top: 1rem; font-weight: 700; color: var(--gold-bright); min-height: 1.4em; }

/* ---------- Contact page ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.contact-cards a.card { display: block; }
.map-embed {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.map-embed svg { width: 100%; height: auto; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--midnight-2);
  padding-block: var(--space-m) 5.6rem; /* clears the mobile sticky bar */
  margin-top: var(--space-l);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
.site-footer h3 { font-size: 0.85rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--ink-dim); font-size: 0.94rem; transition: color 0.25s ease; }
.site-footer a:hover { color: var(--gold-bright); }
.footer-about p { color: var(--ink-faint); font-size: 0.92rem; margin-top: 0.9rem; max-width: 34ch; }
.footer-bottom {
  margin-top: var(--space-m);
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: space-between;
  color: var(--ink-faint);
  font-size: 0.84rem;
}

/* ---------- Mobile sticky CTA ---------- */
.mobile-cta {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  gap: 0.7rem;
  padding: 0.7rem max(0.9rem, env(safe-area-inset-left)) max(0.7rem, env(safe-area-inset-bottom));
  background: rgba(10, 14, 24, 0.88);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
}
.mobile-cta .btn { flex: 1; padding: 0.85rem 1rem; font-size: 0.93rem; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  padding-top: calc(72px + var(--space-l));
  padding-bottom: var(--space-m);
  background:
    radial-gradient(55% 60% at 50% -10%, rgba(230, 177, 92, 0.08), transparent 70%),
    var(--midnight);
}
.page-hero .lede { margin-top: 1rem; }

/* ---------- Service detail blocks ---------- */
.service-block {
  scroll-margin-top: 96px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: var(--space-m);
  border-top: 1px solid var(--line);
}
.service-block:first-of-type { border-top: 0; }
.service-block:nth-of-type(even) .service-visual { order: -1; }
.service-visual {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.service-visual svg { width: 100%; height: auto; display: block; }
.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
}
.chip {
  font-size: 0.8rem;
  font-weight: 700;
  font-family: var(--font-display);
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--ink-dim);
}

/* ---------- Values / about ---------- */
.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
  .masonry { columns: 2; }
  .process { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .process::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .hero-grid, .split, .service-block { grid-template-columns: 1fr; }
  .service-block:nth-of-type(even) .service-visual { order: 0; }
  .grid-3, .testimonial-grid, .value-row, .contact-cards { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 104px; }
  .glow-toggle { position: static; transform: none; margin: 1.2rem auto 0; display: flex; width: fit-content; }

  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    top: 72px;
    inset-inline: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(10, 14, 24, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 0.6rem 4vw 1rem;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.9rem 0.4rem; font-size: 1.05rem; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child a { border-bottom: 0; }
  .nav-cta-desktop { display: none; }

  .mobile-cta { display: flex; }
}
@media (max-width: 560px) {
  .masonry { columns: 1; }
  .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .process { grid-template-columns: 1fr; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero-house .roof-dot { opacity: 1; }
  .hero-house .wall-wash { opacity: 0.16; }
}

/* ---------- Real photography ---------- */
.g-item img, .service-visual img, .visual-panel img {
  width: 100%;
  height: auto;
  display: block;
}
.g-item img { transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.3, 1); }
.g-item:hover img { transform: scale(1.03); }
.lightbox-content img { width: 100%; height: auto; display: block; }

/* ---------- Solo blocks (no visual column) ---------- */
.service-block--solo { grid-template-columns: 1fr; max-width: 820px; }
.split--solo { grid-template-columns: 1fr; max-width: 820px; }
