/* ==========================================================================
   Canopy & Crown Tree Co. — landing page styles
   Register: brand · Theme: old-growth PNW, deep forest + honey amber
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Forest ramp */
  --forest-950: oklch(0.185 0.028 158);
  --forest-900: oklch(0.235 0.035 157);
  --forest-800: oklch(0.31 0.045 156);
  --forest-700: oklch(0.40 0.055 153);
  --forest-600: oklch(0.50 0.070 150);
  --moss-500:   oklch(0.60 0.085 148);

  /* Warm wood / accent */
  --amber-400: oklch(0.83 0.115 76);
  --amber-500: oklch(0.755 0.130 70);
  --amber-600: oklch(0.66 0.130 64);
  --bark-500:  oklch(0.44 0.055 55);

  /* Surfaces & ink */
  --paper:      oklch(0.985 0.005 150);
  --surface:    oklch(1 0 0);
  --stone:      oklch(0.94 0.008 150);
  --ink:        oklch(0.255 0.020 155);
  --ink-soft:   oklch(0.42 0.020 152);
  --cream:      oklch(0.955 0.012 130);
  --cream-soft: oklch(0.80 0.020 130);

  /* Semantic */
  --bg: var(--paper);
  --text: var(--ink);
  --accent: var(--amber-500);
  --line: oklch(0.255 0.02 155 / 0.12);
  --line-dark: oklch(0.955 0.012 130 / 0.14);

  /* Type */
  --font-display: "Young Serif", ui-serif, Georgia, serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Fluid type scale (ratio ~1.28) */
  --step--1: clamp(0.83rem, 0.79rem + 0.18vw, 0.94rem);
  --step-0:  clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.55rem);
  --step-2:  clamp(1.5rem, 1.32rem + 0.9vw, 2.1rem);
  --step-3:  clamp(1.9rem, 1.6rem + 1.5vw, 2.9rem);
  --step-4:  clamp(2.4rem, 1.9rem + 2.5vw, 3.9rem);
  --step-5:  clamp(2.9rem, 2.1rem + 4vw, 5.2rem);

  /* Spacing rhythm */
  --space-xs: clamp(0.5rem, 0.45rem + 0.25vw, 0.75rem);
  --space-s:  clamp(0.85rem, 0.75rem + 0.5vw, 1.15rem);
  --space-m:  clamp(1.35rem, 1.1rem + 1.1vw, 2rem);
  --space-l:  clamp(2.2rem, 1.7rem + 2.4vw, 3.5rem);
  --space-xl: clamp(3.5rem, 2.6rem + 4.4vw, 6.5rem);
  --space-2xl: clamp(5rem, 3.6rem + 7vw, 9rem);

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px oklch(0.185 0.028 158 / 0.08), 0 2px 6px oklch(0.185 0.028 158 / 0.06);
  --shadow-md: 0 6px 16px oklch(0.185 0.028 158 / 0.12), 0 2px 6px oklch(0.185 0.028 158 / 0.08);
  --shadow-lg: 0 18px 40px oklch(0.185 0.028 158 / 0.22), 0 6px 14px oklch(0.185 0.028 158 / 0.12);
  --shadow-amber: 0 10px 26px oklch(0.66 0.13 64 / 0.35);

  --measure: 68ch;
  --wrap: 1200px;
  --wrap-narrow: 860px;

  /* z-index scale */
  --z-base: 1;
  --z-raised: 10;
  --z-sticky: 100;
  --z-header: 200;
  --z-overlay: 300;
  --z-modal: 400;

  --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

img, picture, svg, video { display: block; max-width: 100%; height: auto; }
img { background: var(--stone); }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--amber-500);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--ink);
}
p { text-wrap: pretty; }

/* ---- Layout helpers ----------------------------------------------------- */
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.5rem, var(--wrap-narrow)); margin-inline: auto; }
.section { padding-block: var(--space-2xl); }
.section-tight { padding-block: var(--space-xl); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--bark-500);
}
.eyebrow::before {
  content: "";
  width: 1.75rem; height: 2px;
  background: var(--amber-600);
  display: inline-block;
}
.on-dark .eyebrow { color: var(--amber-400); }
.on-dark .eyebrow::before { background: var(--amber-500); }

.lead {
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.on-dark { color: var(--cream); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--cream); }
.on-dark .lead { color: var(--cream-soft); }

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.95rem 1.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--step-0);
  line-height: 1;
  letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-out-quint),
              box-shadow 0.35s var(--ease-out-quint),
              background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  will-change: transform;
}
.btn svg { width: 1.15em; height: 1.15em; }
.btn-primary {
  background: var(--amber-500);
  color: var(--forest-950);
  box-shadow: var(--shadow-amber);
}
.btn-primary:hover {
  background: var(--amber-400);
  transform: translateY(-3px);
  box-shadow: 0 16px 34px oklch(0.66 0.13 64 / 0.45);
}
.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: var(--line-dark);
}
.btn-ghost:hover { background: oklch(1 0 0 / 0.08); transform: translateY(-2px); }
.on-light .btn-ghost { color: var(--ink); border-color: var(--line); }
.on-light .btn-ghost:hover { background: oklch(0.255 0.02 155 / 0.05); }
.btn-lg { padding: 1.1rem 2rem; font-size: var(--step-1); }
.btn-block { width: 100%; }

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

/* ---- Header ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: oklch(0.185 0.028 158 / 0.72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid oklch(1 0 0 / 0);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  color: var(--cream);
}
.site-header.is-stuck {
  background: oklch(0.185 0.028 158 / 0.92);
  border-bottom-color: var(--line-dark);
  box-shadow: 0 6px 24px oklch(0.185 0.028 158 / 0.28);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-m);
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.brand > span { white-space: nowrap; }
.brand .mark { width: 34px; height: 34px; flex: none; color: var(--amber-400); }
.brand small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-soft);
  margin-top: 2px;
}
.nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 2rem);
}
.nav-links {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.9rem);
  list-style: none;
  padding: 0;
}
.nav-links a {
  font-size: var(--step--1);
  font-weight: 500;
  color: var(--cream-soft);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 2px;
  background: var(--amber-400);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-quint);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--cream);
  white-space: nowrap;
}
.phone-link svg { width: 1.1em; height: 1.1em; color: var(--amber-400); }
.phone-link .phone-sub {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-400);
  line-height: 1;
}
.phone-link b { font-size: var(--step-0); letter-spacing: -0.01em; }

.nav-toggle { display: none; }

/* ---- Hero --------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: min(92svh, 900px);
  display: grid;
  align-items: end;
  color: var(--cream);
  isolation: isolate;
  padding-block: clamp(3rem, 6vw, 6rem);
  overflow: hidden;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 32%;
  z-index: 0;
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      oklch(0.185 0.028 158 / 0.5) 0%,
      oklch(0.185 0.028 158 / 0.28) 28%,
      oklch(0.185 0.028 158 / 0.55) 58%,
      oklch(0.185 0.028 158 / 0.86) 82%,
      oklch(0.185 0.028 158 / 0.96) 100%),
    linear-gradient(75deg,
      oklch(0.185 0.028 158 / 0.82) 0%,
      oklch(0.185 0.028 158 / 0.35) 42%,
      oklch(0.185 0.028 158 / 0.05) 72%,
      transparent 100%);
  z-index: 1;
}
.hero-inner { display: grid; gap: var(--space-l); min-width: 0; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  align-self: start;
  padding: 0.5rem 1rem 0.5rem 0.7rem;
  border-radius: var(--radius-pill);
  background: oklch(0.185 0.028 158 / 0.5);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(6px);
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cream);
}
.hero-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--amber-400);
  box-shadow: 0 0 0 4px oklch(0.83 0.115 76 / 0.25);
}
.hero h1 {
  font-size: var(--step-5);
  max-width: 16ch;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 30px oklch(0.185 0.028 158 / 0.65), 0 1px 3px oklch(0.185 0.028 158 / 0.4);
}
.hero h1 em {
  font-style: normal;
  color: var(--amber-400);
}
.hero-lead {
  font-size: var(--step-1);
  color: var(--cream);
  max-width: 46ch;
  line-height: 1.5;
  text-shadow: 0 1px 2px oklch(0.185 0.028 158 / 0.8), 0 2px 22px oklch(0.185 0.028 158 / 0.85);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-actions .reassure {
  font-size: var(--step--1);
  color: var(--cream-soft);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-actions .reassure svg { width: 1.1em; height: 1.1em; color: var(--amber-400); }

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-top: var(--space-s);
  border-top: 1px solid var(--line-dark);
}
.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: var(--step--1);
  color: var(--cream);
}
.trust-badge svg { width: 1.6rem; height: 1.6rem; color: var(--amber-400); flex: none; }
.trust-badge b { display: block; font-weight: 600; letter-spacing: -0.01em; }
.trust-badge span { color: var(--cream-soft); font-size: 0.8em; }

/* ---- Marquee credential strip ------------------------------------------ */
.credstrip {
  background: var(--forest-900);
  color: var(--cream-soft);
  border-block: 1px solid var(--line-dark);
  overflow: hidden;
}
.credstrip-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  white-space: nowrap;
  padding-block: 1.1rem;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.credstrip-item {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0.01em;
}
.credstrip-item svg { width: 1.2rem; height: 1.2rem; color: var(--amber-400); }
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.credstrip:hover .credstrip-track { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .credstrip-track { animation: none; flex-wrap: wrap; white-space: normal; width: 100%; justify-content: center; gap: 1.5rem 2.5rem; }
}

/* ---- Section heading block --------------------------------------------- */
.section-head {
  display: grid;
  gap: var(--space-s);
  max-width: 62ch;
  margin-bottom: var(--space-l);
}
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: var(--step-4); }
.section-head p { color: var(--ink-soft); font-size: var(--step-1); line-height: 1.5; }
.on-dark .section-head p { color: var(--cream-soft); }

/* ---- Services ----------------------------------------------------------- */
.services { background: var(--paper); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
.service {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 340px;
  padding: var(--space-m);
  border-radius: var(--radius-l);
  overflow: hidden;
  color: var(--cream);
  isolation: isolate;
  border: 1px solid var(--line);
  transition: transform 0.5s var(--ease-out-quint), box-shadow 0.5s var(--ease-out-quint);
}
.service::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    oklch(0.185 0.028 158 / 0.15) 0%,
    oklch(0.185 0.028 158 / 0.55) 55%,
    oklch(0.185 0.028 158 / 0.92) 100%);
  transition: opacity 0.5s ease;
}
.service img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease-out-quint);
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.service:hover img { transform: scale(1.06); }
.service-num {
  font-family: var(--font-display);
  font-size: var(--step-1);
  color: var(--amber-400);
  opacity: 0.9;
}
.service-body { margin-top: auto; }
.service h3 { font-size: var(--step-2); color: var(--cream); margin-bottom: 0.35rem; }
.service p { font-size: var(--step--1); color: var(--cream-soft); line-height: 1.5; }
.service .service-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.85rem;
  font-weight: 600; font-size: var(--step--1);
  color: var(--amber-400);
}
.service .service-link svg { width: 1em; height: 1em; transition: transform 0.3s var(--ease-out-quint); }
.service:hover .service-link svg { transform: translateX(4px); }
/* Feature the first service across two columns on wide screens */
.service.is-feature { min-height: 420px; }
@media (min-width: 900px) {
  .service.is-feature { grid-column: span 2; }
}

/* ---- Why us (split) ----------------------------------------------------- */
.whyus { background: var(--stone); }
.whyus-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 900px) {
  .whyus-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--space-xl); }
}
.whyus-media {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 5;
}
.whyus-media img { width: 100%; height: 100%; object-fit: cover; }
.whyus-badge {
  position: absolute;
  left: var(--space-m); bottom: var(--space-m);
  right: var(--space-m);
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-m);
  background: oklch(0.185 0.028 158 / 0.62);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line-dark);
  color: var(--cream);
}
.whyus-badge .rating-num { font-family: var(--font-display); font-size: 2rem; line-height: 1; color: var(--amber-400); }
.whyus-badge .stars { color: var(--amber-400); font-size: 0.9rem; letter-spacing: 2px; }
.whyus-badge small { color: var(--cream-soft); font-size: 0.78rem; }

.feature-list { display: grid; gap: var(--space-m); margin-top: var(--space-m); }
.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
}
.feature-ico {
  width: 3rem; height: 3rem; flex: none;
  display: grid; place-items: center;
  border-radius: var(--radius-m);
  background: oklch(0.755 0.13 70 / 0.16);
  color: var(--bark-500);
}
.feature-ico svg { width: 1.5rem; height: 1.5rem; }
.feature h3 { font-family: var(--font-body); font-weight: 700; font-size: var(--step-1); color: var(--ink); letter-spacing: -0.01em; margin-bottom: 0.2rem; }
.feature p { color: var(--ink-soft); font-size: var(--step--1); }

/* ---- Process ------------------------------------------------------------ */
.process { background: var(--forest-950); color: var(--cream); }
.process-steps {
  display: grid;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  counter-reset: step;
}
.step { position: relative; padding-top: var(--space-m); }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-display);
  font-size: var(--step-3);
  color: var(--amber-400);
  display: block;
  margin-bottom: 0.6rem;
}
.step::after {
  content: "";
  position: absolute; top: var(--space-m); left: 0;
  width: 44px; height: 3px;
  background: var(--forest-700);
  transform: translateY(-1.4em);
}
.step h3 { color: var(--cream); font-size: var(--step-2); margin-bottom: 0.4rem; }
.step p { color: var(--cream-soft); font-size: var(--step--1); line-height: 1.55; }

/* ---- Gallery ------------------------------------------------------------ */
.gallery { background: var(--paper); }
.gallery-grid {
  display: grid;
  gap: clamp(0.6rem, 1vw, 1rem);
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: minmax(140px, auto);
}
@media (min-width: 720px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; }
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-m);
  background: var(--stone);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease-out-quint); }
.gallery-item:hover img { transform: scale(1.07); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.4rem 1rem 0.85rem;
  font-size: 0.8rem; font-weight: 500;
  color: var(--cream);
  background: linear-gradient(transparent, oklch(0.185 0.028 158 / 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s var(--ease-out-quint);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }
.gallery-tall { grid-row: span 2; }
@media (min-width: 720px) {
  .gallery-wide { grid-column: span 2; }
}

/* ---- Testimonials ------------------------------------------------------- */
.testimonials { background: var(--stone); }
.testi-grid {
  display: grid;
  gap: clamp(1rem, 1.6vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.testi {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: var(--space-m);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-sm);
}
.testi .stars { color: var(--amber-500); letter-spacing: 2px; font-size: 0.95rem; }
.testi blockquote { font-size: var(--step-0); line-height: 1.6; color: var(--ink); }
.testi-author { display: flex; align-items: center; gap: 0.8rem; margin-top: auto; }
.testi-avatar {
  width: 2.7rem; height: 2.7rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--forest-700); color: var(--cream);
  font-family: var(--font-display); font-size: 1.1rem;
  flex: none;
}
.testi-author b { font-weight: 600; font-size: var(--step--1); color: var(--ink); display: block; }
.testi-author span { font-size: 0.8rem; color: var(--ink-soft); }

/* ---- Service area ------------------------------------------------------- */
.area { background: var(--forest-900); color: var(--cream); }
.area-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
}
@media (min-width: 860px) {
  .area-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: var(--space-xl); }
}
.area-towns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.5rem 1.5rem;
  margin-top: var(--space-m);
}
.area-towns li {
  list-style: none;
  display: flex; align-items: center; gap: 0.55rem;
  font-size: var(--step--1);
  color: var(--cream);
  padding: 0.35rem 0;
}
.area-towns svg { width: 1rem; height: 1rem; color: var(--amber-400); flex: none; }
.area-map {
  position: relative;
  border-radius: var(--radius-l);
  overflow: hidden;
  aspect-ratio: 5 / 4;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-dark);
}
.area-map img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.9) brightness(0.92); }
.area-pin {
  position: absolute;
  display: grid; place-items: center;
  width: 2.4rem; height: 2.4rem;
  color: var(--amber-400);
}
.area-pin::after {
  content: ""; position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 oklch(0.83 0.115 76 / 0.5);
  animation: ping 2.6s var(--ease-out-expo) infinite;
}
@keyframes ping {
  0% { box-shadow: 0 0 0 0 oklch(0.83 0.115 76 / 0.5); }
  70%, 100% { box-shadow: 0 0 0 22px oklch(0.83 0.115 76 / 0); }
}
@media (prefers-reduced-motion: reduce) { .area-pin::after { animation: none; } }

/* ---- Quote / CTA form --------------------------------------------------- */
.quote {
  position: relative;
  color: var(--cream);
  isolation: isolate;
  overflow: hidden;
}
.quote-media { position: absolute; inset: 0; z-index: -2; }
.quote-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.quote-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, oklch(0.185 0.028 158 / 0.96) 0%, oklch(0.185 0.028 158 / 0.82) 55%, oklch(0.235 0.035 157 / 0.7) 100%);
}
.quote-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .quote-grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-xl); align-items: center; }
}
.quote-copy h2 { font-size: var(--step-4); }
.quote-points { display: grid; gap: 0.85rem; margin-top: var(--space-m); }
.quote-points li {
  list-style: none;
  display: flex; align-items: center; gap: 0.75rem;
  font-size: var(--step-0); color: var(--cream);
}
.quote-points svg { width: 1.4rem; height: 1.4rem; color: var(--amber-400); flex: none; }

.form-card {
  background: oklch(1 0 0 / 0.06);
  border: 1px solid var(--line-dark);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-l);
  padding: clamp(1.4rem, 3vw, 2.4rem);
  box-shadow: var(--shadow-lg);
}
.form-row { display: grid; gap: 1rem; }
@media (min-width: 560px) { .form-row.two { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 0.4rem; margin-bottom: 1rem; }
.field label {
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--cream);
}
.field label .req { color: var(--amber-400); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: var(--step-0);
  color: var(--cream);
  background: oklch(0.185 0.028 158 / 0.55);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-s);
  padding: 0.8rem 0.95rem;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.field textarea { resize: vertical; min-height: 92px; }
.field input::placeholder, .field textarea::placeholder { color: oklch(0.80 0.02 130 / 0.75); }
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e6dfc9' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.85rem center; background-size: 1.1rem; padding-right: 2.6rem; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--amber-400);
  background: oklch(0.185 0.028 158 / 0.75);
  box-shadow: 0 0 0 3px oklch(0.83 0.115 76 / 0.25);
}
.form-foot {
  display: flex; align-items: center; gap: 0.6rem;
  margin-top: 0.4rem;
  font-size: 0.78rem; color: var(--cream-soft);
}
.form-foot svg { width: 1rem; height: 1rem; color: var(--amber-400); flex: none; }
.form-success {
  display: none;
  text-align: center;
  padding: var(--space-m) 0;
}
.form-success.show { display: block; }
.form-success svg { width: 3.5rem; height: 3.5rem; color: var(--amber-400); margin: 0 auto var(--space-s); }
.form-success h3 { color: var(--cream); font-size: var(--step-2); margin-bottom: 0.5rem; }
.form-success p { color: var(--cream-soft); }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--forest-950);
  color: var(--cream-soft);
  padding-block: var(--space-xl) var(--space-l);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  gap: var(--space-l);
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--space-xl); }
}
.footer-brand .brand { color: var(--cream); margin-bottom: var(--space-s); }
.footer-brand p { font-size: var(--step--1); max-width: 40ch; color: var(--cream-soft); }
.footer-emergency {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-top: var(--space-m);
  padding: 0.8rem 1.15rem;
  border-radius: var(--radius-m);
  background: oklch(0.66 0.13 64 / 0.16);
  border: 1px solid oklch(0.755 0.13 70 / 0.3);
  color: var(--cream);
  font-size: var(--step--1);
}
.footer-emergency svg { width: 1.4rem; height: 1.4rem; color: var(--amber-400); }
.footer-emergency b { display: block; font-size: var(--step-0); }
.footer-col h4 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--step--1);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: var(--space-s);
}
.footer-col ul { list-style: none; padding: 0; display: grid; gap: 0.55rem; }
.footer-col a, .footer-col li { font-size: var(--step--1); color: var(--cream-soft); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--amber-400); }
.footer-bottom {
  margin-top: var(--space-xl);
  padding-top: var(--space-m);
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--cream-soft);
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.footer-badges span { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-badges svg { width: 1rem; height: 1rem; color: var(--moss-500); }

/* ---- Sticky mobile call bar -------------------------------------------- */
.mobile-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: var(--z-sticky);
  display: none;
  gap: 0.6rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: oklch(0.185 0.028 158 / 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line-dark);
}
.mobile-bar .btn { flex: 1; padding: 0.85rem 1rem; }
.mobile-bar .btn-call {
  background: oklch(1 0 0 / 0.08);
  color: var(--cream);
  border: 1px solid var(--line-dark);
}

/* ---- Reveal animation ---------------------------------------------------
   Content is ALWAYS visible by default. JS applies `.r-hidden` to arm the
   entrance, then swaps to `.r-in` on scroll. A failsafe timer + the no-JS
   default guarantee content is never permanently hidden (crawlers, headless
   renderers, backgrounded tabs). */
.reveal, .reveal-stagger > * {
  transition: opacity 0.7s var(--ease-out-expo), transform 0.7s var(--ease-out-expo);
}
.reveal.r-hidden { opacity: 0; transform: translateY(28px); }
.reveal-stagger.r-hidden > * {
  opacity: 0;
  transform: translateY(24px);
  transition-delay: calc(var(--i, 0) * 85ms);
}
.reveal.r-in, .reveal-stagger.r-in > * { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; transition: none; }
}

/* Hero load orchestration */
.js .hero [data-load] {
  opacity: 0;
  transform: translateY(26px);
}
.js .hero.loaded [data-load] {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease-out-expo), transform 0.9s var(--ease-out-expo);
  transition-delay: calc(var(--d, 0) * 120ms);
}
.js .hero-media img { transform: scale(1.12); transition: transform 1.8s var(--ease-out-quint); }
.js .hero.loaded .hero-media img { transform: scale(1); }
@media (prefers-reduced-motion: reduce) {
  .js .hero [data-load] { opacity: 1; transform: none; }
  .js .hero-media img { transform: none; }
}

/* ---- Responsive: nav / mobile ------------------------------------------ */
@media (max-width: 960px) {
  .nav-links, .header-cta .phone-sub-wrap { display: none; }
  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 44px; height: 44px;
    border-radius: var(--radius-s);
    background: oklch(1 0 0 / 0.08);
    border: 1px solid var(--line-dark);
    color: var(--cream);
  }
  .nav-toggle svg { width: 1.5rem; height: 1.5rem; }
  .mobile-bar { display: flex; }
  body { padding-bottom: 4.6rem; }

  /* Mobile nav drawer */
  .nav-links {
    position: fixed;
    inset: 74px 0 auto 0;
    flex-direction: column;
    gap: 0;
    background: oklch(0.185 0.028 158 / 0.98);
    backdrop-filter: blur(16px);
    padding: 1rem 1.25rem 1.75rem;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s var(--ease-out-quint);
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a {
    padding: 0.95rem 0;
    font-size: var(--step-1);
    border-bottom: 1px solid var(--line-dark);
    color: var(--cream);
  }
  .nav-links a::after { display: none; }
}

@media (max-width: 640px) {
  /* On phones the text block covers more of a busier frame; deepen the scrim
     so the lower half reliably carries light text over bright foliage. */
  .hero-media::after {
    background:
      linear-gradient(180deg,
        oklch(0.185 0.028 158 / 0.42) 0%,
        oklch(0.185 0.028 158 / 0.34) 20%,
        oklch(0.185 0.028 158 / 0.66) 40%,
        oklch(0.185 0.028 158 / 0.9) 56%,
        oklch(0.185 0.028 158 / 0.98) 74%,
        oklch(0.15 0.026 158 / 1) 100%);
  }
}

@media (max-width: 520px) {
  .hero { min-height: 86svh; }
  .trust-badges { gap: 1rem 1.5rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .brand { font-size: 1.15rem; gap: 0.55rem; }
  .brand .mark { width: 30px; height: 30px; }
  .brand small { font-size: 0.56rem; letter-spacing: 0.16em; }
  .header-inner { gap: 0.75rem; }
  .header-cta { gap: 0.5rem; }
  /* Bottom sticky bar already carries the CTAs on phones; keep the top clean. */
  .header-cta .btn-primary { display: none; }
}
