/* ============================================================
   WOODOPIC DESIGN - style.css
   Light, minimal, photography-led (adamdesignstudio direction)
   ============================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Type families */
  --font-display: "Fraunces", Georgia, serif;        /* light optical serif, used sparingly */
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  /* Fluid type scale */
  --text-xs: clamp(0.72rem, 0.69rem + 0.15vw, 0.78rem);
  --text-sm: clamp(0.85rem, 0.82rem + 0.18vw, 0.94rem);
  --text-base: clamp(1rem, 0.96rem + 0.22vw, 1.1rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.45vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.15rem + 1.1vw, 1.9rem);
  --text-2xl: clamp(1.9rem, 1.4rem + 2.1vw, 3rem);
  --text-3xl: clamp(2.4rem, 1.6rem + 3.4vw, 4.2rem);
  --text-hero: clamp(2.9rem, 1.4rem + 7vw, 6.8rem);

  /* Spacing - 4px system */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
  --space-section: clamp(5rem, 3rem + 7vw, 10rem);

  --radius-sm: 4px;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1240px;

  --duration-fast: 180ms;
  --duration: 360ms;
  --duration-slow: 720ms;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* Grain texture */
  --grain-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* LIGHT (default) - warm paper */
[data-theme="light"] {
  --bg: #f4f1ea;
  --bg-elev: #faf8f2;
  --surface: #ffffff;
  --surface-2: #f0ece3;
  --text: #1c1916;
  --text-muted: #6f6557;
  --text-faint: #a89d8b;
  --border: rgba(28, 25, 22, 0.1);
  --border-strong: rgba(28, 25, 22, 0.16);
  --accent: #3f6b5c;          /* AP forest-teal green */
  --accent-strong: #345a4d;
  --ink: #25201b;             /* charcoal text / strong surfaces */
  --ink-text: #ffffff;
  --grey-card: #8d8d87;       /* month cards */
  --grey-card-dark: #7c7c76;
  --trust: #3f6b5c;
  --shadow: 0 20px 50px -28px rgba(40, 30, 18, 0.28);
  --shadow-lift: 0 34px 70px -30px rgba(40, 30, 18, 0.34);
  --grain-opacity: 0.03;
  --on-media: #ffffff;
}

/* DARK - minimal warm charcoal (secondary) */
[data-theme="dark"] {
  --bg: #16130f;
  --bg-elev: #1d1915;
  --surface: #221d18;
  --surface-2: #2a241d;
  --text: #f1eadd;
  --text-muted: #b1a594;
  --text-faint: #786c5b;
  --border: rgba(241, 234, 221, 0.1);
  --border-strong: rgba(241, 234, 221, 0.18);
  --accent: #6fa18f;
  --accent-strong: #5c8d7b;
  --ink: #6fa18f;
  --ink-text: #16130f;
  --grey-card: #3a352e;
  --grey-card-dark: #322d27;
  --trust: #6fa18f;
  --shadow: 0 20px 54px -24px rgba(0, 0, 0, 0.7);
  --shadow-lift: 0 34px 74px -28px rgba(0, 0, 0, 0.78);
  --grain-opacity: 0.04;
  --on-media: #ffffff;
}

/* ---------- 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; } }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

[hidden] { display: none !important; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

h1, h2, h3, h4 { line-height: 1.08; font-weight: 500; letter-spacing: -0.015em; }
/* Big display headings use the light optical serif */
.hero-heading, .section-head h2, .diff-left h2, .form-head h2 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: -0.02em;
}

::selection { background: var(--ink); color: var(--ink-text); }

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

.skip-link {
  position: fixed; top: -100px; left: var(--space-4); z-index: 200;
  background: var(--ink); color: var(--ink-text);
  padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 600; transition: top var(--duration) var(--ease);
}
.skip-link:focus { top: var(--space-4); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%; max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 4rem);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: var(--space-5);
}

.section-head { max-width: 38ch; margin-bottom: var(--space-16); }
.section-head h2 { font-size: var(--text-3xl); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: 100px; font-weight: 600; font-size: var(--text-sm);
  letter-spacing: 0.01em; min-height: 48px;
  transition: transform var(--duration-fast) var(--ease), background var(--duration) var(--ease),
              color var(--duration) var(--ease), box-shadow var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.btn-lg { padding: var(--space-4) var(--space-8); min-height: 56px; font-size: var(--text-base); }
.btn-block { width: 100%; }

.btn-primary { background: var(--accent); color: var(--ink-text); }
.btn-primary:hover { background: var(--accent-strong); transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: transparent; }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--text); }

@media (prefers-reduced-motion: reduce) { .btn:hover, .btn:active { transform: none; } }

/* ---------- HEADER / NAV (AP-style solid bar) ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.site-header.scrolled { box-shadow: 0 10px 30px -22px rgba(40,30,18,0.4); }
.site-header.nav-hidden { transform: translateY(-100%); }

.nav-inner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--space-10); height: 84px; }

.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 0; color: var(--text); justify-self: center; }
.brand-mark { width: 58px; height: 44px; object-fit: contain; mix-blend-mode: multiply; flex-shrink: 0; }
.brand-name { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; letter-spacing: 0.02em; text-transform: uppercase; margin-top: -2px; white-space: nowrap; }

.site-header .brand { flex-direction: row; justify-self: start; gap: var(--space-2); }
.site-header .brand-mark { width: 36px; height: 30px; }
.site-header .brand-name { font-size: 0.98rem; letter-spacing: 0.08em; margin-top: 0; }

.nav-links--left { justify-self: start; }
.nav-links { display: flex; gap: var(--space-6); }
.nav-links a {
  font-size: var(--text-sm); font-weight: 600; color: var(--text-muted); white-space: nowrap;
  position: relative; padding: var(--space-1) 0; letter-spacing: 0.04em; text-transform: uppercase;
  transition: color var(--duration-fast) var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -4px; width: 100%; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform var(--duration) var(--ease);
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); justify-self: end; }
.theme-toggle {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 100px;
  color: var(--text-muted); transition: color var(--duration-fast) var(--ease), background var(--duration-fast) var(--ease);
}
.theme-toggle:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.theme-toggle svg { grid-area: 1 / 1; transition: opacity var(--duration) var(--ease), transform var(--duration) var(--ease); }
[data-theme="dark"] .icon-sun { opacity: 1; }
[data-theme="dark"] .icon-moon { opacity: 0; transform: rotate(-40deg) scale(0.6); }
[data-theme="light"] .icon-sun { opacity: 0; transform: rotate(40deg) scale(0.6); }
[data-theme="light"] .icon-moon { opacity: 1; }

.nav-cta { min-height: 46px; padding: var(--space-3) var(--space-6); border-radius: 4px; letter-spacing: 0.06em; text-transform: uppercase; font-size: var(--text-xs); }

.hamburger { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; }
.hamburger span { width: 22px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease); }

/* Mobile menu */
.mobile-overlay { position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,0.45); opacity: 0; transition: opacity var(--duration) var(--ease); }
.mobile-overlay.open { opacity: 1; }
.mobile-menu {
  position: fixed; top: 0; right: 0; z-index: 120; height: 100dvh; width: min(82vw, 360px);
  background: var(--bg-elev); border-left: 1px solid var(--border);
  padding: var(--space-20) var(--space-8) var(--space-8);
  display: flex; flex-direction: column; gap: var(--space-6);
  transform: translateX(100%); transition: transform var(--duration-slow) var(--ease); box-shadow: var(--shadow-lift);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a { font-family: var(--font-display); font-weight: 400; font-size: var(--text-xl); color: var(--text); }
.mobile-menu a.btn { font-family: var(--font-body); font-size: var(--text-base); margin-top: var(--space-4); }
.mobile-menu a.btn-primary { color: var(--ink-text); }
.mobile-close { position: absolute; top: var(--space-6); right: var(--space-6); width: 44px; height: 44px; display: grid; place-items: center; color: var(--text-muted); }
.mobile-close:hover { color: var(--accent); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; background: var(--surface-2); }
.hero-video, .hero-photo { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18,14,9,0.85) 0%, rgba(18,14,9,0.6) 26%, rgba(18,14,9,0.25) 50%, rgba(18,14,9,0.1) 70%, rgba(18,14,9,0.28) 100%),
    linear-gradient(to right, rgba(18,14,9,0.55) 0%, rgba(18,14,9,0.15) 45%, transparent 70%);
}
.hero-inner { position: relative; z-index: 1; color: var(--on-media); padding-bottom: clamp(4rem, 8vh, 7rem); padding-top: 120px; }
.hero .eyebrow { color: rgba(255,255,255,0.9); text-shadow: 0 1px 14px rgba(0,0,0,0.6); }
.hero-heading { font-size: var(--text-hero); margin: var(--space-2) 0 var(--space-6); max-width: 16ch; color: var(--on-media); text-shadow: 0 2px 30px rgba(0,0,0,0.6), 0 1px 5px rgba(0,0,0,0.45); }
.hero-heading span { display: block; }
.hero-sub { font-size: var(--text-lg); color: rgba(255,255,255,0.95); max-width: 46ch; margin-bottom: var(--space-8); font-weight: 400; text-shadow: 0 1px 18px rgba(0,0,0,0.6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.hero .btn-primary { color: #fff; }
.hero .btn-ghost { border-color: rgba(255,255,255,0.6); color: var(--on-media); }
.hero .btn-ghost:hover { border-color: var(--on-media); background: rgba(255,255,255,0.08); }

.scroll-cue { position: absolute; bottom: var(--space-6); left: 50%; transform: translateX(-50%); z-index: 1; display: grid; place-items: center; height: 52px; width: 28px; }
.scroll-cue-line { width: 1.5px; height: 40px; background: linear-gradient(rgba(255,255,255,0.5), transparent); position: relative; overflow: hidden; }
.scroll-cue-line::after { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%; background: #fff; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%,100% { transform: translateY(250%); } }

/* ---------- TRUST BAR ---------- */
.trust { border-bottom: 1px solid var(--border); background: var(--bg); }
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.trust-item { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-16) var(--space-6); text-align: center; position: relative; }
.trust-item + .trust-item::before { content: ""; position: absolute; left: 0; top: 24%; height: 52%; width: 1px; background: var(--border); }
.trust-num { font-family: var(--font-display); font-weight: 300; font-size: var(--text-2xl); color: var(--text); line-height: 1; }
.trust-label { font-size: var(--text-sm); color: var(--text-muted); letter-spacing: 0.02em; }

/* ---------- SERVICES ---------- */
.services { padding-block: var(--space-section); }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.service-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 22px 54px -42px rgba(40, 30, 18, 0.35);
  transition: transform var(--duration-fast) var(--ease), box-shadow var(--duration) var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.service-card-link { display: flex; flex-direction: column; flex: 1; }
.service-img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.service-img img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--duration-slow) var(--ease); }
.service-card:hover .service-img img { transform: scale(1.045); }
@media (prefers-reduced-motion: reduce) {
  .service-card:hover { transform: none; }
  .service-card:hover .service-img img { transform: none; }
}
.service-body { display: flex; flex-direction: column; flex: 1; padding: var(--space-6); }
.service-body h3 { font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-2); }
.service-body p { color: var(--text-muted); font-size: var(--text-sm); margin-bottom: var(--space-5); }
.link-arrow { font-weight: 600; font-size: var(--text-sm); color: var(--accent); display: inline-flex; gap: var(--space-2); align-items: center; }
.service-body .link-arrow { margin-top: auto; }
.link-arrow span { transition: transform var(--duration) var(--ease); }
.link-arrow:hover span { transform: translateX(5px); }

/* ---------- SERVICE DETAIL PAGE ---------- */
.service-page-hero { position: relative; min-height: 62svh; display: flex; align-items: flex-end; overflow: hidden; }
.service-page-media { position: absolute; inset: 0; z-index: 0; background: var(--surface-2); }
.service-page-media img { width: 100%; height: 100%; object-fit: cover; }
.service-page-hero-inner { position: relative; z-index: 1; color: var(--on-media); padding-top: 96px; padding-bottom: clamp(1rem, 3vh, 2rem); }
.service-page-hero .eyebrow { color: rgba(255,255,255,0.9); text-shadow: 0 1px 14px rgba(0,0,0,0.55); }
.service-page-hero .btn-ghost { border-color: rgba(255,255,255,0.6); color: var(--on-media); }
.service-page-hero .btn-ghost:hover { border-color: var(--on-media); background: rgba(255,255,255,0.08); }
.service-hero-content { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: var(--space-8); align-items: end; }
.service-hero-copy { max-width: 620px; padding-bottom: var(--space-4); }
.hero-lead-card {
  background: rgba(255, 255, 255, 0.94);
  color: #10211d;
  border-radius: 14px;
  padding: clamp(1rem, 2vw, 1.35rem);
  box-shadow: 0 26px 70px -36px rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
}
.hero-lead-card h2 { font-family: var(--font-body); font-size: clamp(1.25rem, 1.8vw, 1.55rem); font-weight: 700; letter-spacing: 0; margin-bottom: var(--space-1); }
.hero-lead-card > p { color: #596660; font-size: 0.86rem; line-height: 1.35; margin-bottom: var(--space-3); }
.hero-quote-form { gap: var(--space-3); margin-top: 0; }
.hero-quote-form .field { gap: 0.35rem; }
.hero-quote-form .field label { color: #2d3f39; font-size: 0.78rem; font-weight: 800; }
.hero-quote-form .field input,
.hero-quote-form .field select,
.hero-quote-form .field textarea {
  min-height: 36px;
  border-radius: 6px;
  border-color: #cfdcd7;
  background-color: rgba(255, 255, 255, 0.84);
  font-size: 0.84rem;
  font-weight: 700;
  padding: 0.35rem var(--space-3);
}
.hero-quote-form .field input::placeholder { color: #9d9f9e; opacity: 1; }
.consent-row { display: grid; grid-template-columns: 20px 1fr; gap: var(--space-2); align-items: start; color: #5a6762; font-size: 0.72rem; font-weight: 700; line-height: 1.3; }
.consent-row input { width: 18px; height: 18px; margin-top: 1px; accent-color: var(--accent); }
.hero-quote-form .btn-primary {
  min-height: 42px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: none;
}
.hero-quote-form .btn-primary:hover { background: var(--accent-strong); }
.hero-form-note { color: #5e6b66; text-align: center; font-size: 0.72rem; font-weight: 600; line-height: 1.3; margin: var(--space-2) auto 0; max-width: 34ch; }
.hero-form-success { border: 0; box-shadow: none; padding: var(--space-10) var(--space-4); margin-top: var(--space-6); }
.lead-sidebar-card {
  position: sticky;
  top: 112px;
}
.service-writeup { padding-block: var(--space-section); }
.service-writeup-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: var(--space-16); align-items: start; }
.service-copy { max-width: 68ch; }
.service-copy p { color: var(--text-muted); font-size: var(--text-lg); margin-bottom: var(--space-6); }
.service-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); margin: var(--space-10) 0 var(--space-12); max-width: 100%; }
.service-gallery figure { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.service-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.service-gallery figcaption { padding: var(--space-4); color: var(--text-muted); font-size: var(--text-sm); line-height: 1.45; }
.service-section-stack { display: grid; gap: var(--space-10); margin-bottom: var(--space-12); }
.service-section-stack h2, .service-process h2 { font-size: var(--text-xl); margin-bottom: var(--space-4); }
.service-section-stack p { margin-bottom: 0; }
.service-process {
  border-top: 1px solid var(--border);
  padding-top: var(--space-10);
}
.service-process ol { display: grid; gap: var(--space-5); counter-reset: service-step; }
.service-process li { display: grid; grid-template-columns: 72px 1fr; gap: var(--space-5); align-items: start; }
.service-process li span {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: var(--text-sm);
}
.service-process li p { margin: 0; }
.service-includes {
  position: sticky;
  top: 112px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: var(--space-8);
  box-shadow: 0 22px 54px -42px rgba(40, 30, 18, 0.35);
}
.service-includes h2 { font-size: var(--text-xl); margin-bottom: var(--space-6); }
.service-includes ul { display: grid; gap: var(--space-4); }
.service-includes li { display: flex; gap: var(--space-3); color: var(--text-muted); align-items: center; }
.service-includes-hero {
  position: static;
  top: auto;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 10px;
  padding: clamp(1.5rem, 3vw, 2.35rem);
  box-shadow: 0 26px 70px -36px rgba(0, 0, 0, 0.6);
}
.service-includes-hero h2 {
  color: #151918;
  font-family: var(--font-body);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: var(--space-7);
}
.service-includes-hero ul { gap: var(--space-5); }
.service-includes-hero li {
  color: #6d675f;
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  gap: var(--space-4);
}
.service-includes-hero .check { width: 28px; height: 28px; }
.service-includes-hero .check::after { left: 9px; top: 5px; width: 7px; height: 12px; border-width: 0 3px 3px 0; }
/* ---------- DIFFERENTIATOR ---------- */
.diff { position: relative; padding-block: var(--space-section); background: var(--bg-elev); border-block: 1px solid var(--border); overflow: hidden; }
.diff-bg { display: none; }
.diff-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.diff-left h2 { font-size: var(--text-3xl); margin-bottom: var(--space-6); max-width: 15ch; }
.diff-body { color: var(--text-muted); font-size: var(--text-lg); max-width: 48ch; }
.diff-features { display: flex; flex-direction: column; gap: var(--space-8); }
.diff-features li { display: flex; gap: var(--space-5); align-items: flex-start; }
.feat-icon { flex-shrink: 0; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--accent); }
.diff-features h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-1); }
.diff-features p { color: var(--text-muted); font-size: var(--text-sm); }

/* ---------- PROCESS ---------- */
.process { padding-block: var(--space-section); }
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-12); }
.process-step { position: relative; padding-top: var(--space-8); border-top: 1px solid var(--border); }
.step-num { font-family: var(--font-display); font-weight: 300; font-size: var(--text-3xl); color: var(--accent); display: block; line-height: 1; margin-bottom: var(--space-5); }
.process-step h3 { font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-3); }
.process-step p { color: var(--text-muted); font-size: var(--text-sm); max-width: 34ch; }

/* ---------- TESTIMONIALS ---------- */
.testimonials { padding-block: var(--space-section); background: var(--bg-elev); border-block: 1px solid var(--border); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); }
.testi-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-8); display: flex; flex-direction: column; gap: var(--space-6); }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { fill: currentColor; }
.testi-card blockquote { font-family: var(--font-body); font-weight: 400; font-size: var(--text-base); line-height: 1.65; color: var(--text); }
.testi-card figcaption { display: flex; align-items: center; gap: var(--space-3); margin-top: auto; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--surface-2); color: var(--accent); font-weight: 600; font-size: var(--text-sm); }
.cite { display: flex; flex-direction: column; line-height: 1.3; }
.cite strong { font-weight: 600; }
.cite span { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- CONTACT ---------- */
.contact { padding-block: var(--space-section); }
.contact-grid { display: grid; grid-template-columns: 1.4fr 0.85fr; gap: var(--space-16); align-items: start; }
.contact-sub { color: var(--text-muted); font-size: var(--text-lg); margin-top: var(--space-3); }
.quote-form { display: flex; flex-direction: column; gap: var(--space-5); margin-top: var(--space-8); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label { font-size: var(--text-sm); font-weight: 600; color: var(--text); }
.optional { color: var(--text-faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: var(--space-3) var(--space-4); width: 100%;
  transition: border-color var(--duration-fast) var(--ease), box-shadow var(--duration-fast) var(--ease);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.field select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.field [aria-invalid="true"] { border-color: #b8462f; }
.btn-block { margin-top: var(--space-2); }

.form-success { text-align: center; padding: var(--space-16) var(--space-8); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); margin-top: var(--space-8); }
.form-success svg { color: var(--trust); margin: 0 auto var(--space-4); }
.form-success h3 { font-size: var(--text-xl); font-weight: 500; margin-bottom: var(--space-2); }
.form-success p { color: var(--text-muted); }

.contact-trust { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-10); position: sticky; top: 104px; }
.contact-trust h3 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-xl); margin-bottom: var(--space-6); }
.contact-trust ul { display: flex; flex-direction: column; gap: var(--space-4); }
.contact-trust li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-sm); color: var(--text-muted); }
.check { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--trust); position: relative; }
.check::after { content: ""; position: absolute; left: 6px; top: 3px; width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(42deg); }
.contact-note { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--border); font-size: var(--text-sm); color: var(--text-faint); }

/* ---------- FOOTER ---------- */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--border); padding-top: var(--space-20); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: var(--space-12); padding-bottom: var(--space-16); }
.footer-tag { color: var(--text-muted); font-family: var(--font-display); font-weight: 400; font-style: italic; font-size: var(--text-lg); margin-top: var(--space-4); max-width: 28ch; }
.footer-links, .footer-contact, .footer-social { display: flex; flex-direction: column; gap: var(--space-3); }
.site-footer h4 { font-family: var(--font-body); font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: var(--space-2); font-weight: 600; }
.footer-links a, .footer-contact p { color: var(--text-muted); font-size: var(--text-sm); transition: color var(--duration-fast) var(--ease); }
.footer-links a:hover { color: var(--accent); }
.social-row { display: flex; gap: var(--space-3); }
.social-row a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--text-muted); transition: color var(--duration-fast) var(--ease), border-color var(--duration-fast) var(--ease), transform var(--duration-fast) var(--ease); }
.social-row a:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-2px); }
.footer-base { padding-block: var(--space-8); border-top: 1px solid var(--border); }
.footer-base p { font-size: var(--text-xs); color: var(--text-faint); }

/* ---------- CENTERED SECTION HEADS (AP) ---------- */
.section-head--center { text-align: center; margin-inline: auto; max-width: 60ch; }
.section-head--center h2 { text-transform: uppercase; letter-spacing: 0.02em; font-weight: 400; }

section[id] { scroll-margin-top: 96px; }

/* ---------- NEW CONSTRUCTION ---------- */
.newcon { padding-block: var(--space-section); }
.newcon-copy {
  max-width: 72ch; margin: 0 auto var(--space-20); text-align: center;
  color: var(--text-muted); display: flex; flex-direction: column; gap: var(--space-5);
}
.newcon-copy p { font-size: var(--text-base); }

.timeline { display: grid; grid-template-columns: minmax(260px, 320px) 1fr; gap: clamp(4rem, 7vw, 7rem); align-items: start; }
.phase-label {
  font-family: var(--font-display); font-weight: 500; font-size: var(--text-2xl);
  text-transform: uppercase; letter-spacing: 0.02em; line-height: 1.04; margin-bottom: var(--space-8);
}
.phase-label--green { color: var(--accent); }
.phase-label--grey { color: var(--text); }
.timeline-job { padding-top: var(--space-4); }

.pre-cards { display: flex; flex-direction: column; gap: var(--space-5); position: relative; padding-left: var(--space-8); }
.pre-cards::before { content: ""; position: absolute; left: 4px; top: 26px; bottom: 26px; width: 2px; background: color-mix(in srgb, var(--accent) 45%, transparent); }
.pre-cards li {
  background: var(--accent); color: #fff; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; font-size: var(--text-sm); padding: var(--space-5);
  border-radius: 4px; text-align: center; position: relative; box-shadow: var(--shadow);
}
.pre-cards li::before { content: ""; position: absolute; left: calc(-1 * var(--space-8) + 0px); top: 50%; transform: translate(-1px,-50%); width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--accent); background: var(--bg); }
.pre-cards li::after { content: ""; position: absolute; left: calc(-1 * var(--space-8) + 9px); top: 50%; width: calc(var(--space-8) - 9px); height: 2px; background: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-50%); }

.month-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
.month-card { background: var(--surface); color: var(--text); padding: var(--space-6); border: 1px solid var(--border); border-top: 4px solid var(--accent); border-radius: 6px; box-shadow: 0 18px 44px -34px rgba(40, 30, 18, 0.34); }
.month-tag { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: var(--text-sm); color: var(--accent); margin-bottom: var(--space-5); }
.month-card ul { display: flex; flex-direction: column; gap: var(--space-2); }
.month-card li { color: var(--text-muted); font-size: var(--text-sm); position: relative; padding-left: var(--space-4); text-transform: uppercase; letter-spacing: 0.03em; }
.month-card li::before { content: "•"; position: absolute; left: 0; color: var(--accent); }

/* ---------- FULL-BLEED BAND ---------- */
.band { position: relative; min-height: 72vh; display: flex; align-items: center; overflow: hidden; }
.band-media { position: absolute; inset: 0; z-index: 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; }
.band-scrim { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(20,16,10,0.6) 0%, rgba(20,16,10,0.28) 45%, rgba(20,16,10,0.05) 100%); }
.band-inner { position: relative; z-index: 1; color: var(--on-media); }
.band .eyebrow { color: rgba(255,255,255,0.85); }
.band-inner h2 { font-family: var(--font-display); font-weight: 300; font-size: var(--text-3xl); color: #fff; margin: var(--space-2) 0 var(--space-8); }

/* ---------- FLOATING CONTACT DOCK ---------- */
.dock { position: fixed; right: var(--space-6); bottom: var(--space-6); z-index: 90; display: flex; align-items: stretch; gap: var(--space-2); }
.dock-projects {
  display: flex; align-items: center; padding: 0 var(--space-6); border-radius: 4px;
  background: var(--accent); color: #fff; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; font-size: var(--text-xs); box-shadow: var(--shadow-lift);
  transition: background var(--duration-fast) var(--ease);
}
.dock-projects:hover { background: var(--accent-strong); }
.dock-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  width: 62px; border-radius: 4px; background: #6f9c8d; color: #fff;
  font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em;
  box-shadow: var(--shadow-lift); transition: background var(--duration-fast) var(--ease);
}
.dock-btn:hover { background: var(--accent); }

/* ---------- REVEAL ANIMATION ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity var(--duration-slow) var(--ease), transform var(--duration-slow) var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue-line::after { animation: none; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1180px) {
  .timeline { grid-template-columns: 1fr; gap: var(--space-10); }
  .timeline-pre { max-width: 420px; }
  .timeline-job { padding-top: 0; }
  .month-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 980px) {
  .diff-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .service-page-hero { min-height: auto; }
  .service-hero-content { grid-template-columns: 1fr; padding-bottom: var(--space-6); }
  .service-hero-copy { padding-bottom: 0; }
  .hero-lead-card { max-width: 440px; }
  .lead-sidebar-card { position: static; max-width: 520px; }
  .service-writeup-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .service-includes { position: static; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .contact-trust { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--space-10); }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-inner { gap: var(--space-4); }
  .site-header .brand-mark { width: 32px; height: 26px; }
  .site-header .brand-name { font-size: 0.78rem; letter-spacing: 0.06em; }
  .hamburger { display: flex; }
  .services-grid { grid-template-columns: 1fr; }
  .testi-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr; gap: var(--space-10); }
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item::before { content: none; }
  .trust-item { padding: var(--space-10) var(--space-4); }
  .hero { align-items: flex-end; }
  .service-page-hero-inner { padding-top: 92px; }
  .hero-lead-card { border-radius: 12px; padding: var(--space-4); }
  .hero-lead-card h2 { font-size: 1.35rem; }
  .hero-lead-card > p { font-size: 0.86rem; margin-bottom: var(--space-3); }
  .dock { right: var(--space-3); bottom: var(--space-3); gap: 6px; }
  .dock-projects { padding: 0 var(--space-4); font-size: 10px; }
  .dock-btn { width: 54px; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; }
  .service-gallery { grid-template-columns: 1fr; }
  .service-process li { grid-template-columns: 1fr; gap: var(--space-3); }
  .hero-quote-form .field input,
  .hero-quote-form .field select,
  .hero-quote-form .field textarea { min-height: 38px; }
  .consent-row { font-size: 0.72rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { width: 100%; }
  .month-cards { grid-template-columns: 1fr; }
  .dock-projects { display: none; }
}

/* ---------- HERO ROTATOR + SCROLL-DRAWN PROCESS HOUSE ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.hero-rotator { display: inline-block; white-space: nowrap; color: var(--accent); transition: opacity 280ms var(--ease), transform 280ms var(--ease); }
.hero-rotator.is-out { opacity: 0; transform: translateY(0.35em); }

.process-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-16); align-items: start; }
.process-drawing { position: sticky; top: 130px; margin: 0; color: var(--text); }
.process-drawing svg { width: 100%; height: auto; display: block; }
.draw-fill { fill: var(--accent); opacity: 0.1; }
.draw-guide { stroke: var(--accent); stroke-width: 1.25; }
.draw-ready .draw [data-draw] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw-ready .draw-fill { opacity: 0; }
.process-layout .process-steps { grid-template-columns: 1fr; gap: 0; }
.process-layout .process-step { padding-block: var(--space-10); }
.draw-ready .process-step { min-height: 42vh; opacity: 0.4; transition: opacity var(--duration) var(--ease); }
.draw-ready .process-step.is-active { opacity: 1; }
@media (max-width: 860px) {
  .process-layout { grid-template-columns: 1fr; gap: var(--space-8); }
  .process-drawing { top: 80px; z-index: 1; background: var(--bg); padding-block: var(--space-3); }
  .process-drawing svg { max-height: 30vh; }
  .draw-ready .process-step { min-height: 0; }
}
