/* ==========================================================================
   Taylor's Eco-Friendly Landscape Management — site styles
   Layered on top of organic.css (the Organic design system). Every color,
   font, radius and shadow here comes from a DS token; the only new values
   are marketing-page scale extensions, declared once in :root below.
   ========================================================================== */

:root {
  /* The DS spacing scale is 4.4px × n and stops at --space-8 (35.2px), which is
     tuned for UI density. A marketing page needs section-scale rhythm, so the
     same 4.4px step is continued rather than inventing a second scale. */
  --space-10: 44px;
  --space-12: 52.8px;
  --space-16: 70.4px;
  --space-20: 88px;
  --space-24: 105.6px;

  /* Display type — fluid, above the DS's fixed h1 (42px), for hero/section heads.
     Capped at 68px: the hero's left column tops out near 565px, and Caprasimo
     sets "A greener yard," wider than that above ~72px. */
  --text-display: clamp(2.75rem, 1.5rem + 3.9vw, 4.25rem);
  --text-h2: clamp(2rem, 1.35rem + 2.6vw, 3.25rem);
  --text-h3: clamp(1.375rem, 1.2rem + 0.6vw, 1.5rem);
  --text-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);

  --container: 1200px;
  --gutter: var(--space-6);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* — base overrides ————————————————————————————————————————————————— */

html {
  scroll-behavior: smooth;
  /* Anchored sections must clear the sticky header. */
  scroll-padding-top: calc(var(--header-h) + var(--space-4));
}

body {
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 { line-height: 1.05; }
p:last-child { margin-bottom: 0; }

img, svg { max-width: 100%; height: auto; }

/* Screen-reader-only, and the skip link that becomes visible on focus. */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: var(--space-2); left: var(--space-2); z-index: 100;
  transform: translateY(-200%);
  padding: var(--space-2) var(--space-4); border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg);
  font-family: var(--font-heading); text-decoration: none;
}
.skip-link:focus-visible { transform: translateY(0); }

/* — layout primitives ——————————————————————————————————————————————— */

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: var(--space-20); }
.section--tight { padding-block: var(--space-16); }

.section-head { max-width: 34em; }
.kicker {
  display: block;
  font-size: 0.8125rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  /* Paragraph-size accent text needs the deep ramp step for contrast — see DS readme. */
  color: var(--color-accent-700);
}
.section-head h2 { font-size: var(--text-h2); margin-top: var(--space-3); }
.section-head .lead { margin-top: var(--space-4); }

.lead {
  font-size: var(--text-lead); line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* Every content photograph goes through the design system's .washed wrapper
   (desaturate, lower contrast, lift) so it sits back into the warm ground
   rather than on top of it — see the DS readme. */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }

/* — buttons ————————————————————————————————————————————————————————— */
/* The DS .btn is a 14px UI control; marketing CTAs need a larger variant. */

.btn-lg { font-size: 1.125rem; padding: var(--space-4) var(--space-6); gap: var(--space-2); }
.btn-primary { box-shadow: var(--shadow-md); }
.btn-primary.btn-lg { box-shadow: var(--shadow-lg); }
.btn, .btn-primary, .btn-secondary { transition: background-color 0.18s var(--ease-out), transform 0.18s var(--ease-out); }
.btn:active { transform: translateY(1px); }
.motion-enabled .btn { transition-property: background-color; }
.motion-enabled .btn:active { transform: none; }

/* Lenis owns smoothing when loaded; native CSS remains the fallback. */
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
.lenis.lenis-smooth iframe { pointer-events: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }

/* — header / navigation ————————————————————————————————————————————— */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--color-bg) 88%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: box-shadow 0.2s var(--ease-out);
}
.site-header[data-scrolled='true'] { box-shadow: var(--shadow-sm); }

.site-nav {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-6);
  min-height: var(--header-h);
  padding: var(--space-3) var(--gutter);
}

.brand {
  display: flex; align-items: center; gap: var(--space-2);
  margin-right: auto; text-decoration: none; color: var(--color-text);
}
.brand-mark {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 999px;
  background: var(--color-accent-2); color: var(--color-bg);
}
.brand-name {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 1.25rem; line-height: 1;
}
.brand-name span { display: block; font-family: var(--font-body); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; margin-top: 3px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent); }

.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a {
  color: var(--color-text); text-decoration: none;
  font-size: 0.9375rem; font-weight: 600;
  transition: color 0.15s var(--ease-out);
}
.nav-links a:hover { color: var(--color-accent-700); }
.nav-links a[aria-current='true'] { color: var(--color-accent-700); }
.nav-drawer-cta { display: none; }

.nav-actions { display: flex; align-items: center; gap: var(--space-4); }
.nav-phone {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--color-text); text-decoration: none;
  font-size: 0.9375rem; font-weight: 700; white-space: nowrap;
}
.nav-phone:hover { color: var(--color-accent-700); }

.nav-toggle { display: none; }

/* — hero ———————————————————————————————————————————————————————————— */

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16); align-items: center;
  padding-block: var(--space-16) var(--space-10);
}
.hero h1 { font-size: var(--text-display); margin-top: var(--space-6); }
.hero .lead { max-width: 30em; margin-top: var(--space-6); }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 7px 15px; border-radius: 999px;
  background: var(--color-accent-2-200); color: var(--color-accent-2-800);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.02em;
}

.trust-row {
  display: flex; flex-wrap: wrap; gap: var(--space-4) var(--space-6);
  margin-top: var(--space-8);
  font-size: 0.875rem; font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 65%, transparent);
}
.trust-row li { display: inline-flex; align-items: center; gap: 7px; }
.trust-row svg { color: var(--color-accent-2-600); flex: none; }

.hero-figure { position: relative; }
.hero-frame {
  aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 220px 220px var(--radius-lg) var(--radius-lg);
  background: var(--color-neutral-200);
}
.hero-frame img { width: 100%; height: 100%; object-fit: cover; }

.stat-card {
  position: absolute; left: calc(var(--space-6) * -1); bottom: var(--space-6);
  width: 230px; padding: var(--space-4) var(--space-4);
  border-radius: var(--radius-lg);
  background: var(--color-neutral-900); color: var(--color-bg);
  box-shadow: var(--shadow-lg);
  animation: floaty 6s ease-in-out infinite;
}
.stat-card b {
  display: block;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 2.125rem; line-height: 1; color: var(--color-accent-400);
}
.stat-card p {
  margin: var(--space-2) 0 0; font-size: 0.8125rem; line-height: 1.4;
  color: color-mix(in srgb, var(--color-bg) 80%, transparent);
}
.stat-card strong { color: var(--color-bg); }

.pill-badge {
  position: absolute; top: var(--space-4); right: calc(var(--space-2) * -1);
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--color-accent-2); color: var(--color-bg);
  font-size: 0.875rem; font-weight: 700;
  box-shadow: var(--shadow-md);
}

@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* — eco stats band —————————————————————————————————————————————————— */

.stats-band { background: var(--color-accent-2); color: var(--color-bg); }
.stats-band .container {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6);
  padding-block: var(--space-8);
}
.stats-band dt {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: clamp(2rem, 1.4rem + 1.9vw, 2.75rem); line-height: 1;
}
.stats-band dd {
  margin: var(--space-1) 0 0; font-size: 0.875rem;
  color: color-mix(in srgb, var(--color-bg) 84%, transparent);
}

/* — service cards ——————————————————————————————————————————————————— */

.services-grid { margin-top: var(--space-12); }

.service-card { padding: var(--space-8); gap: var(--space-3); height: 100%; }
.service-card .icon-badge { margin-bottom: var(--space-1); }
.service-card h3 { font-size: 1.5rem; margin: 0; }
.service-card > p { font-size: 0.9375rem; margin: 0; opacity: 1;
  color: color-mix(in srgb, var(--color-text) 78%, transparent); }
/* Bottom-aligned so the three cards' footers line up. The value sits on its
   own line above the qualifier, which keeps every card's footer exactly two
   lines tall regardless of how long the qualifier is. */
.service-card .price {
  margin-top: auto; padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
  font-size: 0.8125rem; font-weight: 600;
  color: color-mix(in srgb, var(--color-text) 62%, transparent);
}
.service-card .price b {
  display: block; margin-bottom: 2px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 1.125rem; color: var(--color-accent-700);
}

.icon-badge {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 999px;
  background: var(--color-accent-100); color: var(--color-accent-700);
}
.icon-badge--sage { background: var(--color-accent-2-100); color: var(--color-accent-2-700); }
.icon-badge--sm { width: 44px; height: 44px; }

.check-list {
  list-style: none; padding: 0; margin: var(--space-1) 0 0;
  display: flex; flex-direction: column; gap: var(--space-2);
  font-size: 0.875rem; font-weight: 600;
}
.check-list li { display: flex; align-items: flex-start; gap: 9px; }
.check-list svg { flex: none; margin-top: 2px; color: var(--color-accent-2-600); }

/* — why us —————————————————————————————————————————————————————————— */

.why {
  display: grid; grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-16); align-items: center;
}
.why-figure { position: relative; }
.why-frame {
  aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--color-neutral-200);
}
.why-frame img { width: 100%; height: 100%; object-fit: cover; }

.rating-card {
  position: absolute; right: calc(var(--space-3) * -1); bottom: calc(var(--space-6) * -1);
  width: 210px; padding: var(--space-4);
  border-radius: var(--radius-lg); background: var(--color-bg);
  box-shadow: var(--shadow-lg);
}
.rating-card p { margin: var(--space-2) 0 0; font-size: 0.8125rem; font-weight: 600; line-height: 1.4; }

.stars { display: flex; gap: 2px; color: var(--color-accent); }

.feature-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: var(--space-6) var(--space-8); margin-top: var(--space-8);
}
.feature { display: flex; gap: var(--space-3); }
.feature h3 { font-size: 1.1875rem; margin: 0; }
.feature p {
  margin: 5px 0 0; font-size: 0.875rem; line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 74%, transparent);
}

/* — process ————————————————————————————————————————————————————————— */

.process { background: var(--color-surface); }
.process-steps {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8); margin-top: var(--space-12);
  counter-reset: step;
}
.process-step { position: relative; }
.process-step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 64px; height: 64px; border-radius: 999px;
  background: var(--color-bg); color: var(--color-accent-700);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 1.75rem;
  box-shadow: var(--shadow-sm);
}
/* The connecting thread between steps — decorative, hidden when they stack. */
.process-step:not(:last-child)::after {
  content: ''; position: absolute; top: 32px; left: 76px; right: calc(var(--space-8) * -1 + 12px);
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--color-accent-2-400) 0 8px, transparent 8px 16px);
}
.process-step h3 { font-size: var(--text-h3); margin: var(--space-4) 0 var(--space-2); }
.process-step p {
  font-size: 0.9375rem; margin: 0;
  color: color-mix(in srgb, var(--color-text) 78%, transparent);
}

/* — work gallery ———————————————————————————————————————————————————— */

/* A four-across teaser strip: three portrait tiles and a card through to the
   full gallery. Portrait because the photography is — landscape tiles crop
   the top and bottom out of every shot. */
.work-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4); margin-top: var(--space-12);
}
.work-item {
  position: relative; overflow: hidden; aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg); background: var(--color-neutral-200);
}
.work-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.work-cta {
  display: flex; flex-direction: column; aspect-ratio: 4 / 5;
  padding: var(--space-6); border-radius: var(--radius-lg);
  background: var(--color-accent-2); color: var(--color-bg); text-decoration: none;
  transition: background-color 0.2s var(--ease-out);
}
.work-cta:hover { background: var(--color-accent-2-600); color: var(--color-bg); }
.work-cta-label {
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 1.5rem; line-height: 1.1;
}
.work-cta-meta {
  margin-top: var(--space-2); font-size: 0.8125rem; font-weight: 600;
  color: color-mix(in srgb, var(--color-bg) 78%, transparent);
}
.work-cta-arrow {
  display: grid; place-items: center; margin-top: auto;
  width: 46px; height: 46px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-bg) 18%, transparent);
}
.work-cta-arrow svg { fill: none; stroke: currentColor; }
.work-cta:hover .work-cta-arrow { background: color-mix(in srgb, var(--color-bg) 28%, transparent); }
.work-item:hover img { transform: scale(1.04); }
.work-item figcaption {
  position: absolute; left: var(--space-3); bottom: var(--space-3);
  margin: 0; padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--color-bg) 92%, transparent);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  font-size: 0.8125rem; font-weight: 600; color: var(--color-text);
}

/* — gallery page ———————————————————————————————————————————————————— */

.gallery-intro { padding-block: var(--space-16) var(--space-10); max-width: 62rem; }
.gallery-intro h1 { font-size: var(--text-display); margin-top: var(--space-6); }
.gallery-intro .lead { max-width: 42em; margin-top: var(--space-6); }

.gallery-section--alt { background: var(--color-surface); }
.gallery-head { max-width: 38em; }
.gallery-head h2 { font-size: var(--text-h2); margin-top: var(--space-3); }
.gallery-head .lead { margin-top: var(--space-4); }

/* Columns rather than a grid: the photographs are a mix of 2:3, 3:4 and 4:5,
   and flowing them keeps every one at its own aspect instead of cropping. */
.gallery-grid {
  columns: 3; column-gap: var(--space-4);
  margin-top: var(--space-12);
}
.gallery-grid--2 { columns: 2; }
.gallery-item {
  break-inside: avoid; margin: 0 0 var(--space-6);
  /* Chromium still splits an unwrapped column child under some reflows. */
  display: inline-block; width: 100%;
}
.gallery-item img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg); background: var(--color-neutral-200);
}
.gallery-item figcaption {
  margin-top: var(--space-3); font-size: 0.875rem; line-height: 1.5;
  color: color-mix(in srgb, var(--color-text) 68%, transparent);
}
.gallery-item figcaption b {
  display: block; margin-bottom: 3px;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 1.125rem; color: var(--color-text);
}

.kit-row {
  display: grid; grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-16); align-items: center;
}
.kit-figure { margin: 0; }
.kit-row h2 { font-size: var(--text-h2); margin-top: var(--space-3); }
.kit-row .lead { margin-top: var(--space-4); }

.gallery-cta {
  background: var(--color-neutral-900); color: var(--color-bg);
  padding-block: var(--space-20); text-align: center;
}
.gallery-cta h2 { font-size: var(--text-h2); }
.gallery-cta p {
  max-width: 34em; margin: var(--space-4) auto 0;
  font-size: var(--text-lead); line-height: 1.55;
  color: color-mix(in srgb, var(--color-bg) 78%, transparent);
}
.gallery-cta .btn-row { justify-content: center; }
/* The ghost button sits on ink here, not on cream. */
.gallery-cta .gallery-cta-alt {
  color: var(--color-bg);
  border-color: color-mix(in srgb, var(--color-bg) 30%, transparent);
}
.gallery-cta .gallery-cta-alt:hover { background: color-mix(in srgb, var(--color-bg) 12%, transparent); }

/* — reviews ————————————————————————————————————————————————————————— */

.reviews { background: var(--color-surface); }
.reviews-head {
  display: flex; flex-wrap: wrap; align-items: flex-end;
  justify-content: space-between; gap: var(--space-4);
}
.reviews-head h2 { max-width: 16em; }
.rating-summary { display: flex; align-items: center; gap: var(--space-2); font-weight: 700; font-size: 0.9375rem; }

.reviews-grid { margin-top: var(--space-12); }
.review {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-8); margin: 0;
  border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-bg);
}
.review blockquote { margin: 0; font-size: 1rem; line-height: 1.55; }
.review figcaption {
  display: flex; align-items: center; gap: var(--space-3);
  margin-top: auto; padding-top: var(--space-2); font-size: 0.875rem;
}
.avatar {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--color-accent-2); color: var(--color-bg);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 1rem;
}
.avatar--accent { background: var(--color-accent); }
.review-name { font-weight: 700; }
.review-name span {
  display: block; font-weight: 500;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}

/* — service area ———————————————————————————————————————————————————— */

.areas { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: var(--space-16); align-items: center; }
.area-list {
  display: flex; flex-wrap: wrap; gap: var(--space-2);
  list-style: none; padding: 0; margin: var(--space-8) 0 0;
}
.area-list .tag { font-size: 0.875rem; padding: 9px 16px; }
.area-note {
  margin-top: var(--space-6); font-size: 0.9375rem;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}

/* — FAQ ————————————————————————————————————————————————————————————— */

.faq-list { margin-top: var(--space-10); display: flex; flex-direction: column; gap: var(--space-3); }
.faq-item {
  border-radius: var(--radius-lg); background: var(--color-surface);
  padding: var(--space-4) var(--space-6);
  transition: background-color 0.2s var(--ease-out);
}
.faq-item[open] { background: var(--color-accent-2-100); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 1.1875rem; line-height: 1.3;
  padding-block: var(--space-2);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex: none; width: 14px; height: 14px;
  border-right: 2.75px solid var(--color-accent-700);
  border-bottom: 2.75px solid var(--color-accent-700);
  border-radius: 2px;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq-item summary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 4px; border-radius: var(--radius-sm); }
.faq-answer {
  margin: 0; padding-block: var(--space-2) var(--space-3);
  max-width: 62ch; font-size: 0.9375rem; line-height: 1.6;
  color: color-mix(in srgb, var(--color-text) 80%, transparent);
}

/* — quote form —————————————————————————————————————————————————————— */

.quote { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-16); align-items: center; }
.quote h2 { font-size: clamp(2.25rem, 1.5rem + 3vw, 3.625rem); margin-top: var(--space-3); }
.quote .lead { max-width: 26em; margin-top: var(--space-4); }

.promise-list {
  list-style: none; padding: 0; margin: var(--space-8) 0 0;
  display: flex; flex-direction: column; gap: var(--space-3);
  font-size: 1rem; font-weight: 600;
}
.promise-list li { display: flex; align-items: center; gap: var(--space-3); }
.promise-list .icon-badge { width: 34px; height: 34px; }

.call-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3);
  margin-top: var(--space-8); padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.call-strip span { font-weight: 600; color: color-mix(in srgb, var(--color-text) 70%, transparent); }
.call-strip a {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 1.375rem; color: var(--color-accent-700); text-decoration: none;
}
.call-strip a:hover { color: var(--color-accent-600); }

.quote-card {
  padding: var(--space-8);
  border-radius: calc(var(--radius-lg) * 1.15);
  background: var(--color-surface); box-shadow: var(--shadow-lg);
}
.quote-form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); }

.field label { font-size: 0.8125rem; font-weight: 600; }
.field .input { min-height: 46px; font-size: 0.9375rem; background: var(--color-bg); }
.field textarea.input { min-height: 84px; border-radius: var(--radius-lg); padding-block: var(--space-3); }
.field .input:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 0; }

.field-error {
  display: none; margin: 5px 0 0; padding-left: 14px;
  font-size: 0.75rem; font-weight: 600; color: var(--color-accent-700);
}
.field[data-invalid='true'] .field-error { display: block; }
.field[data-invalid='true'] .input { border-color: var(--color-accent-700); }

.choice-legend {
  display: block; font-size: 0.8125rem; font-weight: 600; margin-bottom: var(--space-2);
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.choice-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.choice {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  font-size: 0.875rem; font-weight: 600;
  background: var(--color-bg); border: 1px solid var(--color-divider);
  transition: background-color 0.15s var(--ease-out), border-color 0.15s var(--ease-out);
}
.choice:hover { border-color: var(--color-accent); }
.choice:has(input:checked) { background: var(--color-accent-100); border-color: var(--color-accent); }
.choice:has(input:focus-visible) { outline: 2px solid var(--color-accent); outline-offset: 2px; }
.choice input { accent-color: var(--color-accent); width: 15px; height: 15px; margin: 0; }

.form-note {
  margin: 0; font-size: 0.75rem; text-align: center;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.form-note a { color: var(--color-accent-700); }

/* Honeypot — a real field to bots, invisible and unfocusable to people. */
.hp-field {
  position: absolute; left: -9999px; width: 1px; height: 1px;
  overflow: hidden; opacity: 0;
}

.form-success { text-align: center; padding: var(--space-8) var(--space-3); }
.form-success .icon-badge { width: 72px; height: 72px; margin: 0 auto var(--space-4); }
.form-success h3 { font-size: 1.875rem; }
.form-success p {
  margin: var(--space-3) 0 0; font-size: 1rem; line-height: 1.55;
  color: color-mix(in srgb, var(--color-text) 76%, transparent);
}
.form-success a { color: var(--color-accent-700); font-weight: 700; }
[hidden] { display: none !important; }

/* — footer —————————————————————————————————————————————————————————— */

.site-footer { background: var(--color-neutral-900); color: var(--color-bg); }
.footer-top {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--space-8);
  padding-block: var(--space-12) var(--space-8);
}
.site-footer .brand { color: var(--color-bg); margin-right: 0; }
.site-footer .brand-name span { color: color-mix(in srgb, var(--color-bg) 60%, transparent); }
.footer-about {
  margin-top: var(--space-4); max-width: 26em; font-size: 0.9375rem; line-height: 1.55;
  color: color-mix(in srgb, var(--color-bg) 72%, transparent);
}
.footer-col h2 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 var(--space-3);
  color: color-mix(in srgb, var(--color-bg) 60%, transparent);
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--space-2); font-size: 0.9375rem;
}
.footer-col a { color: var(--color-bg); text-decoration: none; }
.footer-col a:hover { color: var(--color-accent-400); }
.footer-col li:not(:has(a)) { color: color-mix(in srgb, var(--color-bg) 72%, transparent); }

.footer-bottom { border-top: 1px solid color-mix(in srgb, var(--color-bg) 14%, transparent); }
.footer-bottom .container {
  display: flex; flex-wrap: wrap; gap: var(--space-3);
  justify-content: space-between;
  padding-block: var(--space-4);
  font-size: 0.8125rem; color: color-mix(in srgb, var(--color-bg) 60%, transparent);
}

/* — sticky mobile CTA ——————————————————————————————————————————————— */

.sticky-cta {
  position: fixed; z-index: 60; right: var(--space-6); bottom: var(--space-6);
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: var(--space-4) var(--space-6); border-radius: 999px;
  background: var(--color-accent); color: var(--color-bg); text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight); font-size: 1rem;
  box-shadow: var(--shadow-lg);
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), background-color 0.18s var(--ease-out);
}
.sticky-cta:hover { background: var(--color-accent-600); }
/* Hidden until the hero CTA has scrolled away, and again over the quote form. */
.sticky-cta[data-hidden='true'] {
  opacity: 0; transform: translateY(140%); pointer-events: none;
}

/* — scroll reveal ——————————————————————————————————————————————————— */

.reveal { opacity: 0; transform: translateY(22px); }
.js .reveal { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.motion-enabled .reveal { transition: none; }
.reveal.is-visible { opacity: 1; transform: none; }
/* Without JS nothing observes these, so they must not stay invisible. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* — responsive —————————————————————————————————————————————————————— */

@media (max-width: 1080px) {
  .hero, .why, .quote, .areas, .kit-row { gap: var(--space-10); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --gutter: var(--space-4); }
  .section { padding-block: var(--space-16); }

  /* The link cluster becomes a drawer; the phone number and CTA stay in the bar. */
  .nav-links {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: var(--space-3) var(--gutter) var(--space-6);
    background: var(--color-bg); box-shadow: var(--shadow-lg);
    transform: translateY(-120%); transition: transform 0.3s var(--ease-out);
    visibility: hidden;
  }
  .nav-links[data-open='true'] { transform: translateY(0); visibility: visible; }
  .nav-links a {
    padding-block: var(--space-3); font-size: 1.0625rem;
    border-bottom: 1px solid var(--color-divider);
  }
  /* Qualified with the ancestor so it outranks `.nav-links a`, which would
     otherwise repaint the button's label in the body text color. */
  .nav-links a.nav-drawer-cta {
    display: flex; margin-top: var(--space-4);
    color: var(--color-bg); border-bottom: 0;
  }
  .nav-links a.nav-drawer-cta:hover { color: var(--color-bg); background: var(--color-accent-600); }
  .nav-toggle {
    display: inline-grid; place-items: center;
    width: 42px; height: 42px; padding: 0;
    background: transparent; border: 1px solid var(--color-divider);
    border-radius: 999px; color: var(--color-text); cursor: pointer;
  }
  .nav-toggle:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
  .nav-toggle .icon-close, .nav-toggle[aria-expanded='true'] .icon-open { display: none; }
  .nav-toggle[aria-expanded='true'] .icon-close { display: block; }
  .nav-actions .btn { display: none; }

  .hero, .why, .quote, .areas, .kit-row { grid-template-columns: 1fr; }
  .gallery-grid, .gallery-grid--2 { columns: 2; }
  .gallery-intro { padding-block: var(--space-10) var(--space-8); }
  .hero { padding-block: var(--space-10) var(--space-8); }
  .hero-figure { max-width: 460px; margin-inline: auto; width: 100%; }
  .why-figure { max-width: 520px; }

  .stats-band .container { grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); }
  .grid-3, .process-steps { grid-template-columns: 1fr; }
  .process-step:not(:last-child)::after { display: none; }
  .rating-card { right: 0; }
}

@media (max-width: 620px) {
  .brand-name { font-size: 1.125rem; }
  .brand-name span { display: none; }
  .nav-phone span { display: none; }
  .nav-actions { gap: var(--space-2); }

  .btn-row .btn { width: 100%; }
  .feature-grid, .form-row { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  /* Full-width at 4:5 the gallery card would be a tall slab of empty sage. */
  .work-cta { aspect-ratio: auto; flex-direction: row; align-items: center; gap: var(--space-4); }
  .work-cta-label { font-size: 1.25rem; }
  .work-cta-label br { display: none; }
  .work-cta-meta { display: none; }
  .work-cta-arrow { margin: 0 0 0 auto; }
  .gallery-grid, .gallery-grid--2 { columns: 1; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-6); }

  .stat-card { left: 0; width: 200px; }
  .quote-card { padding: var(--space-6); }
  .service-card { padding: var(--space-6); }
  .review { padding: var(--space-6); }

  .sticky-cta { right: var(--space-3); bottom: var(--space-3); }
}

/* — motion and print ————————————————————————————————————————————————— */

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .sticky-cta, .quote-card, .work-grid { display: none; }
  body { background: #fff; color: #000; }
  .section { padding-block: 1rem; }
  a::after { content: ' (' attr(href) ')'; font-size: 0.8em; }
}
