/* ==========================================================================
   Evergreen Tree Care — styles
   Structure: fonts · tokens · base · utilities · buttons · header · hero ·
   sections · services · why · cta band · gallery · area · testimonials ·
   faq · contact/form · footer · mobile bar · motion · responsive
   ========================================================================== */

/* ---------- Fonts (self-hosted, SIL OFL) ---------- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 500;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
}

/* ---------- Design tokens ---------- */
:root {
  --forest: #1f3a2c;
  --forest-deep: #142820;
  --forest-mid: #2b4a39;
  --off-white: #f7f4ee;
  --beige: #e8dfcf;
  --sand: #d9cbb2;
  --sage: #8a9a7b;
  --moss: #4e6247;          /* eyebrow/label text: AA on off-white and beige */
  --text: #1f3a2c;
  --text-muted: #4a5d4f;
  --accent: #9a5f2a;        /* bark: AA with white text */
  --accent-hover: #824e20;
  --accent-soft: #f0c99a;   /* accent on dark backgrounds */
  --error: #a3412c;
  --white: #ffffff;

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --section-y: clamp(72px, 10vw, 128px);
  --radius: 4px;
  --radius-lg: 6px;
  --shadow-soft: 0 24px 60px -24px rgba(20, 40, 32, 0.28);
  --header-h: 80px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
  font-variation-settings: "SOFT" 50;
  text-wrap: balance;
}
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }

/* ---------- Utilities ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden {
  position: absolute !important; 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; left: 16px; top: -60px; z-index: 200;
  background: var(--forest); color: var(--off-white); padding: 12px 18px; border-radius: var(--radius);
  text-decoration: none; font-weight: 600; transition: top 0.2s;
}
.skip-link:focus { top: 16px; }
.eyebrow {
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 18px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1.5px; background: currentColor; opacity: 0.7; }
.section { padding-block: var(--section-y); }
.section-head {
  display: grid; grid-template-columns: 1fr; gap: 20px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head h2, .why h2, .area h2, .testimonials h2, .faq h2, .contact h2 { font-size: clamp(2.1rem, 4.2vw, 3.25rem); }
.section-intro { color: var(--text-muted); max-width: 46ch; }
.icon { width: 18px; height: 18px; flex: none; }
.placeholder-tag, .placeholder-note {
  display: inline-block; font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--sand); color: var(--forest); padding: 2px 7px; border-radius: 2px; vertical-align: middle;
}
.placeholder-note { background: transparent; color: #b9c7b0; padding: 0; text-align: center; display: block; margin-top: 8px; }
.fine-print { margin-top: 24px; font-size: 0.875rem; color: var(--text-muted); font-style: italic; }
.fine-print a, .area-note a, .contact-urgent a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 24px;
  border: 1.5px solid transparent; border-radius: var(--radius);
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: var(--white); box-shadow: 0 10px 24px -12px rgba(130, 78, 32, 0.7); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--forest); color: var(--forest); background: transparent; }
.btn-outline:hover { background: var(--forest); color: var(--off-white); }
.btn-outline-light { border-color: rgba(247, 244, 238, 0.7); color: var(--off-white); background: transparent; }
.btn-outline-light:hover { background: var(--off-white); color: var(--forest); border-color: var(--off-white); }
.btn-sm { min-height: 42px; padding: 9px 18px; font-size: 0.875rem; }
.btn-lg { min-height: 56px; padding: 15px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 244, 238, 0.94);
  backdrop-filter: saturate(1.2) blur(10px); -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.is-scrolled { border-color: var(--sand); box-shadow: 0 8px 30px -20px rgba(20, 40, 32, 0.35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--forest); }
.brand-mark { width: 28px; height: 32px; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 1.375rem; letter-spacing: -0.01em; line-height: 1; }
.brand-name span { font-weight: 400; font-style: italic; }
.primary-nav { display: none; }
.primary-nav ul { display: flex; gap: clamp(18px, 2.4vw, 34px); }
.primary-nav a, .footer-col a {
  text-decoration: none; font-weight: 500; font-size: 0.9375rem;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size 0.25s var(--ease); padding-bottom: 2px;
}
.primary-nav a:hover, .footer-col a:hover { background-size: 100% 1.5px; }
.header-actions { display: flex; align-items: center; gap: 18px; }
.header-phone { display: none; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; font-size: 0.9375rem; }
.header-phone:hover span { text-decoration: underline; text-underline-offset: 3px; }
.header-actions .btn { display: none; }
.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border: 1.5px solid var(--sand); border-radius: var(--radius);
  background: transparent; cursor: pointer;
}
.menu-toggle-bars { display: grid; gap: 5px; width: 20px; }
.menu-toggle-bars i { display: block; height: 2px; background: var(--forest); border-radius: 2px; transition: transform 0.25s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars i:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--forest); color: var(--off-white); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-inner { padding: 28px var(--gutter) 48px; display: grid; gap: 16px; }
.mobile-menu ul { margin-bottom: 20px; }
.mobile-menu li a {
  display: block; padding: 14px 0; border-bottom: 1px solid rgba(247, 244, 238, 0.14);
  font-family: var(--font-display); font-size: 1.875rem; text-decoration: none;
}
.mobile-menu-phone { text-align: center; font-weight: 600; font-size: 1.125rem; padding: 10px; }
body.menu-open { overflow: hidden; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1fr; background: var(--off-white); }
.hero-copy { padding: clamp(40px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 88px); max-width: 720px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.75rem); line-height: 1.02; margin-bottom: 26px; font-variation-settings: "SOFT" 80, "opsz" 144; }
.hero h1 em { font-style: italic; color: var(--moss); font-weight: 400; }
.hero-lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--text-muted); max-width: 34em; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero-points {
  display: flex; flex-wrap: wrap; gap: 12px 28px; padding-top: 22px; border-top: 1px solid var(--sand);
  font-size: 0.875rem; font-weight: 600; color: var(--moss);
}
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points li::before {
  content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%;
  background: var(--forest) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23F7F4EE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}
.hero-media { position: relative; min-height: 380px; }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 30%; position: absolute; inset: 0; }
.hero-urgent { margin-top: 18px; font-size: 0.875rem; color: var(--text-muted); }
.hero-urgent a { color: var(--forest); font-weight: 600; text-underline-offset: 3px; }
.hero-urgent a:hover { color: var(--accent); }

/* ---------- Services ---------- */
.services-grid { display: grid; gap: 32px; }
.service-feature {
  background: var(--forest); color: var(--off-white); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow-soft);
}
.service-feature-media { aspect-ratio: 16 / 10; overflow: hidden; }
.service-feature-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.service-feature:hover .service-feature-media img { transform: scale(1.03); }
.service-feature-body { padding: clamp(28px, 4vw, 44px); display: grid; gap: 16px; align-content: start; }
.service-feature h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.service-feature p { color: rgba(247, 244, 238, 0.85); }
.tag {
  justify-self: start; background: var(--accent); color: var(--white);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 2px;
}
.service-feature p.tag { color: var(--white); }
.checklist { display: grid; gap: 8px; font-size: 0.9375rem; }
.checklist li { display: flex; gap: 10px; align-items: baseline; }
.checklist li::before { content: ""; width: 10px; height: 1.5px; background: var(--accent-soft); flex: none; transform: translateY(-4px); }
.feature-call {
  margin-top: 6px; font-weight: 600; color: var(--accent-soft); text-decoration: none; font-size: 1.0625rem;
  display: inline-flex; gap: 8px; justify-self: start;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px;
}
.feature-call span { transition: transform 0.2s var(--ease); }
.feature-call:hover span { transform: translateX(4px); }
.service-list { display: grid; align-content: start; }
.service-item {
  display: grid; grid-template-columns: minmax(96px, 34%) 1fr; gap: 20px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--sand);
}
.service-item:first-child { padding-top: 0; }
.service-item-media { aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); }
.service-item-media img { width: 100%; height: 100%; object-fit: cover; }
.service-item h3 { font-size: 1.4375rem; margin-bottom: 6px; }
.service-item p { color: var(--text-muted); font-size: 0.9375rem; }

/* ---------- Why choose us ---------- */
.why { background: var(--beige); position: relative; }
.why-grid { display: grid; gap: 48px; align-items: center; }
.why-media { position: relative; }
.why-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.why-media::after {
  content: ""; position: absolute; inset: auto -14px -14px auto; width: 55%; height: 55%;
  border: 1.5px solid var(--sage); border-radius: var(--radius-lg); z-index: -1;
}
.why-copy h2 { margin-bottom: 20px; }
.why-points { display: grid; gap: 30px 44px; margin-top: 40px; }
.why-points h3 { font-size: 1.25rem; display: flex; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.why-points h3::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); flex: none; transform: translateY(-5px); }
.why-points p { color: var(--text-muted); font-size: 0.9375rem; padding-left: 34px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--forest); color: var(--off-white); padding-block: clamp(56px, 7vw, 84px); position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; right: -80px; top: -120px; width: 420px; height: 420px; border-radius: 50%;
  border: 1.5px solid rgba(138, 154, 123, 0.35); box-shadow: 0 0 0 60px rgba(138, 154, 123, 0.06);
}
.cta-band-inner { position: relative; display: grid; gap: 28px; align-items: center; }
.cta-band h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); max-width: 22ch; }
.cta-band-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* ---------- Service finder (inside the green band) ---------- */
.finder { padding-block: clamp(64px, 8vw, 112px); }
.finder .eyebrow { color: var(--sage); }
.finder-inner { position: relative; display: grid; gap: 40px; align-items: start; }
.finder h2 { font-size: clamp(2rem, 3.6vw, 2.875rem); margin-bottom: 18px; }
.finder-lead { color: #d3dbcc; max-width: 40ch; margin-bottom: 30px; font-size: 1.0625rem; }
.finder-call { color: var(--accent-soft); font-weight: 600; text-underline-offset: 3px; }
.finder-card {
  background: var(--off-white); color: var(--forest); border-radius: var(--radius-lg);
  padding: clamp(24px, 3.4vw, 40px); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.55);
}
.finder-fallback { color: var(--text-muted); }
.finder-fallback a { color: var(--accent); font-weight: 600; }
.finder-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; min-height: 32px; }
.finder-step { font-size: 0.8125rem; font-weight: 600; color: var(--moss); }
.finder-progress { flex: 1; max-width: 160px; height: 4px; background: var(--beige); border-radius: 4px; overflow: hidden; }
.finder-progress span { display: block; height: 100%; background: var(--forest); border-radius: 4px; transition: width 0.4s var(--ease); }
.finder-q { font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.2; margin-bottom: 22px; }
.finder-q:focus { outline: none; }
.finder-options { display: grid; gap: 10px; }
.finder-option {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 56px;
  padding: 14px 18px; text-align: left; font: inherit; font-weight: 500; font-size: 1rem; color: var(--forest);
  background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius); cursor: pointer;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.finder-option::after {
  content: ""; width: 8px; height: 8px; flex: none; border-right: 2px solid var(--sage); border-top: 2px solid var(--sage);
  transform: rotate(45deg); transition: border-color 0.2s, transform 0.2s var(--ease);
}
.finder-option:hover { border-color: var(--forest); background: #fbfaf6; }
.finder-option:hover::after { border-color: var(--forest); transform: translateX(3px) rotate(45deg); }
.finder-option:active { transform: scale(0.99); }
.finder-option.has-thumb { padding: 8px 18px 8px 8px; gap: 14px; }
.finder-option-label { flex: 1; }
.finder-thumb { width: 72px; height: 54px; flex: none; object-fit: cover; border-radius: 3px; background: var(--beige); }
.finder-scene { margin: 0 0 20px; border-radius: var(--radius); overflow: hidden; background: var(--beige); }
.finder-scene img { width: 100%; aspect-ratio: 2.6 / 1; object-fit: cover; }
.finder-scene figcaption { padding: 12px 16px 14px; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.finder-scene strong { display: block; color: var(--forest); font-size: 0.9375rem; margin-bottom: 2px; }
.finder-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; }
.finder-link {
  background: none; border: 0; padding: 8px 0; min-height: 40px; font: inherit; font-size: 0.875rem; font-weight: 600;
  color: var(--accent); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-align: left;
}
.finder-link:hover { color: var(--accent-hover); }
.faq-list details.is-highlighted { background: #fbf1e6; box-shadow: -12px 0 0 #fbf1e6, 12px 0 0 #fbf1e6; transition: background-color 0.4s, box-shadow 0.4s; }
.finder-back, .finder-restart {
  background: none; border: 0; padding: 8px 0; font: inherit; font-size: 0.875rem; font-weight: 600;
  color: var(--moss); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 40px;
}
.finder-back:hover, .finder-restart:hover { color: var(--forest); }
.finder-result .finder-why { color: var(--text-muted); margin-bottom: 18px; }
.finder-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.finder-actions .btn { white-space: normal; text-align: center; }
.finder-alert { margin-bottom: 18px; padding: 12px 14px; border-left: 3px solid var(--accent); background: #fbf1e6; font-size: 0.9375rem; border-radius: 0 var(--radius) var(--radius) 0; }
.finder-anim { animation: finder-in 0.35s var(--ease); }
@keyframes finder-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.prefill-note {
  margin: -6px 0 22px; padding: 12px 14px; background: #e9efe3; border-left: 3px solid var(--moss);
  border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.875rem; color: var(--forest);
}

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; grid-auto-flow: dense; gap: 12px; }
.gallery-item { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--beige); }
.gallery-item.g-wide { grid-column: span 2; }
.gallery-item.g-tall { grid-row: span 2; }
.gallery-item figure { margin: 0; height: 100%; }
.gallery-item picture, .gallery-item img { width: 100%; height: 100%; }
.gallery-item img { object-fit: cover; transition: transform 0.8s var(--ease); }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 16px 14px;
  background: linear-gradient(to top, rgba(20, 40, 32, 0.85), transparent);
  color: var(--off-white); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.02em;
}

.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.gallery-filter {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 18px;
  font: inherit; font-size: 0.875rem; font-weight: 600; color: var(--forest); cursor: pointer;
  background: transparent; border: 1.5px solid var(--sand); border-radius: 999px;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.gallery-filter span { font-size: 0.75rem; font-weight: 600; color: var(--moss); font-variant-numeric: tabular-nums; }
.gallery-filter:hover { border-color: var(--forest); }
.gallery-filter[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--off-white); }
.gallery-filter[aria-pressed="true"] span { color: var(--accent-soft); }
.gallery.is-filtered { grid-template-columns: 1fr; grid-auto-rows: 240px; }
.gallery.is-filtered > li.gallery-item { grid-column: auto; grid-row: auto; }
.gallery-item.is-entering { animation: gallery-in 0.45s var(--ease); }
@keyframes gallery-in { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: none; } }
.gallery-open {
  position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in;
}
.gallery-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.gallery-open .zoom {
  position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(247, 244, 238, 0.92); color: var(--forest); opacity: 0; transform: scale(0.85);
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.gallery-open .zoom svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.gallery-item:hover .zoom, .gallery-open:focus-visible .zoom { opacity: 1; transform: none; }
@media (hover: none) { .gallery-open .zoom { opacity: 0.9; transform: none; width: 34px; height: 34px; } }

/* Photo viewer */
.lightbox {
  width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: #0c1812; color: var(--off-white);
}
.lightbox::backdrop { background: rgba(12, 24, 18, 0.6); }
.lightbox[open] { animation: lightbox-in 0.3s var(--ease); }
@keyframes lightbox-in { from { opacity: 0; } to { opacity: 1; } }
.lightbox-inner {
  height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto auto; gap: 14px;
  padding: 12px var(--gutter) 18px; max-width: 1280px; margin-inline: auto;
}
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; }
.lightbox-count { font-size: 0.875rem; color: var(--sage); font-variant-numeric: tabular-nums; }
.lightbox-close {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(247, 244, 238, 0.4); color: var(--off-white);
}
.lightbox-close:hover { background: var(--off-white); color: var(--forest-deep); }
.lightbox-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.lightbox-stage { position: relative; min-height: 0; touch-action: pan-y; }
.lightbox-img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  transition: opacity 0.25s var(--ease);
}
.lightbox-img.is-loading { opacity: 0.35; }
.lightbox .lightbox-nav { position: absolute; top: 50%; margin-top: -24px; background: rgba(12, 24, 18, 0.82); border-color: rgba(247, 244, 238, 0.85); }
.lightbox-prev { left: 4px; }
.lightbox-next { right: 4px; }
.lightbox-info { max-width: 720px; width: 100%; margin-inline: auto; }
.lightbox-tag { font-size: 0.75rem; font-weight: 600; color: var(--accent-soft); margin-bottom: 4px; }
.lightbox-info h3 { font-size: clamp(1.25rem, 2vw, 1.625rem); margin-bottom: 6px; color: var(--off-white); }
.lightbox-detail { color: #d3dbcc; font-size: 0.9375rem; line-height: 1.55; }
.lightbox-note { margin-top: 8px; font-size: 0.8125rem; color: var(--sage); }
.lightbox-note a { color: var(--accent-soft); text-underline-offset: 3px; }
.lightbox-thumbs { display: flex; justify-content: center; gap: 8px; overflow-x: auto; padding: 4px; scrollbar-width: none; }
.lightbox-thumb {
  flex: none; width: 64px; height: 46px; padding: 0; border: 2px solid transparent; border-radius: 3px; overflow: hidden;
  background: none; cursor: pointer; opacity: 0.45; transition: opacity 0.2s, border-color 0.2s;
}
.lightbox-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-thumb:hover { opacity: 0.8; }
.lightbox-thumb[aria-current="true"] { opacity: 1; border-color: var(--accent-soft); }
.lightbox .lightbox-nav[hidden], .lightbox-thumbs[hidden] { display: none; }
body.lightbox-open { overflow: hidden; }
body.lightbox-open .mobile-cta { transform: translateY(110%); }
@media (min-width: 640px) {
  .gallery.is-filtered { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .gallery.is-filtered { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 300px; }
  .lightbox-img { inset: 0 72px; width: calc(100% - 144px); }
  .lightbox .lightbox-nav { background: transparent; border-color: rgba(247, 244, 238, 0.5); }
  .lightbox-thumb { width: 84px; height: 58px; }
}
@media (max-height: 560px) { .lightbox-thumbs, .lightbox-note { display: none; } }

/* ---------- Service area ---------- */
.area { border-top: 1px solid var(--sand); }
.area-grid { display: grid; gap: 56px; align-items: center; }
.area-copy h2 { margin-bottom: 20px; }
.area-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 36px 0 28px; }
.area-lists h3 {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--moss); margin-bottom: 10px;
}
.area-lists li { padding: 9px 0; border-bottom: 1px solid var(--beige); font-size: 0.9375rem; display: flex; gap: 10px; align-items: center; }
.area-lists li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--sage); flex: none; }
.area-note { color: var(--text-muted); }
.area-map { max-width: 520px; width: 100%; margin-inline: auto; }
.area-map svg { width: 100%; height: auto; overflow: visible; }
.map-disc { fill: var(--beige); }
.map-ring { fill: none; stroke: var(--sage); stroke-width: 1.5; stroke-dasharray: 4 6; }
.map-river { fill: none; stroke: #b9c7b0; stroke-width: 6; stroke-linecap: round; }
.map-town circle { fill: var(--moss); }
.map-town text { font-family: var(--font-body); font-size: 13px; font-weight: 600; fill: var(--moss); }
.map-center rect { fill: var(--forest); }
.map-center text { font-family: var(--font-display); font-size: 19px; fill: var(--off-white); text-anchor: middle; }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--forest-deep); color: var(--off-white); }
.testimonials .eyebrow { color: var(--sage); }
.sample-label {
  display: inline-block; margin-top: 22px; border: 1px solid rgba(240, 201, 154, 0.6); color: var(--accent-soft);
  font-size: 0.875rem; padding: 7px 14px; border-radius: 2px;
}
.carousel { margin-top: 48px; border-top: 1px solid rgba(247, 244, 238, 0.2); }
.carousel-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 100%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline: 2px solid var(--accent-soft); outline-offset: 4px; }
.testimonial { margin: 0; padding-top: 32px; display: flex; flex-direction: column; gap: 26px; min-width: 0; scroll-snap-align: start; }
.testimonial blockquote { margin: 0; max-width: 760px; }
.testimonial blockquote p { font-family: var(--font-display); font-size: clamp(1.125rem, 1.7vw, 1.4375rem); line-height: 1.55; font-weight: 400; }
.carousel-controls { display: none; align-items: center; gap: 18px; margin-top: 36px; }
.js .carousel-controls { display: flex; }
.carousel-btn {
  width: 48px; height: 48px; flex: none; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  background: transparent; border: 1.5px solid rgba(247, 244, 238, 0.5); color: var(--off-white);
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.carousel-btn:hover { background: var(--off-white); color: var(--forest-deep); border-color: var(--off-white); }
.carousel-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.carousel-dots { display: flex; gap: 2px; }
.carousel-dot { width: 28px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.carousel-dot::before { content: ""; width: 20px; height: 3px; border-radius: 3px; background: rgba(247, 244, 238, 0.3); transition: background-color 0.3s, width 0.3s var(--ease); }
.carousel-dot:hover::before { background: rgba(247, 244, 238, 0.6); }
.carousel-dot[aria-current="true"]::before { background: var(--accent-soft); width: 26px; }
.carousel-count { font-size: 0.875rem; color: var(--sage); margin-left: auto; font-variant-numeric: tabular-nums; }
@media (max-width: 480px) { .carousel-dots { display: none; } .carousel-count { margin-left: 0; } .carousel-controls { justify-content: space-between; } }
.testimonial figcaption { font-size: 0.875rem; color: var(--sage); font-weight: 500; }
.testimonial figcaption span { opacity: 0.8; }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 48px; }
.faq-aside h2 { margin-bottom: 18px; }
.faq-aside .section-intro { margin-bottom: 28px; }
.faq-media { display: none; margin-top: 48px; }
.faq-media img { border-radius: var(--radius-lg); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.faq-list details { border-bottom: 1px solid var(--sand); }
.faq-list details:first-child { border-top: 1px solid var(--sand); }
.faq-list summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-family: var(--font-display); font-size: clamp(1.125rem, 1.8vw, 1.3125rem); font-weight: 500; line-height: 1.3;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  background:
    linear-gradient(var(--accent), var(--accent)) center / 14px 2px no-repeat,
    linear-gradient(var(--accent), var(--accent)) center / 2px 14px no-repeat;
  transition: transform 0.3s var(--ease);
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list summary:hover { color: var(--forest-mid); }
.faq-answer { padding: 0 48px 26px 0; color: var(--text-muted); max-width: 64ch; }

/* ---------- Contact & form ---------- */
.contact { background: var(--beige); }
.contact-grid { display: grid; gap: 48px; align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-details { margin: 32px 0 0; }
.contact-details div { padding: 16px 0; border-bottom: 1px solid var(--sand); }
.contact-details dt { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--moss); margin-bottom: 4px; }
.contact-details dd { margin: 0; font-size: 1.125rem; font-weight: 500; }
.contact-details dd a { text-decoration: none; }
.contact-details dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.contact-urgent { margin-top: 28px; padding: 18px 20px; background: var(--off-white); border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; font-size: 0.9375rem; }
.form-card { background: var(--off-white); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-soft); }
.form-intro { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 22px; }
.form-row { display: grid; gap: 0 20px; }
.field { margin: 0 0 20px; }
.field label:not(.choice), .field legend { display: block; font-size: 0.875rem; font-weight: 600; margin-bottom: 7px; }
.req { color: var(--accent); }
.optional { font-weight: 400; color: var(--text-muted); }
.field input[type="text"], .field input[type="tel"], .field input[type="email"], .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--white); border: 1.5px solid var(--sand); border-radius: var(--radius);
  font-size: 1rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #8b8f86; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--sage); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px rgba(31, 58, 44, 0.15); }
.field [aria-invalid="true"] { border-color: var(--error) !important; background: #fdf6f3; }
.field-error { color: var(--error); font-size: 0.8125rem; font-weight: 500; margin-top: 6px; min-height: 0; }
.field-error:empty { display: none; }
.select-wrap { position: relative; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 2px solid var(--forest); border-bottom: 2px solid var(--forest); transform: rotate(45deg); pointer-events: none;
}
.field select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.field-inline { border: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.field-inline legend { width: 100%; float: left; }
.choice { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9375rem; cursor: pointer; }
.choice input { width: 20px; height: 20px; accent-color: var(--forest); margin: 0; flex: none; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-disclaimer { margin-top: 14px; font-size: 0.8125rem; color: var(--text-muted); text-align: center; }
.estimate-form { position: relative; }
.form-success { text-align: center; padding: 24px 8px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.75rem; margin: 18px 0 14px; }
.form-success p { color: var(--text-muted); margin-bottom: 14px; }
.form-success p a { color: var(--accent); font-weight: 600; }
.form-success .btn { margin-top: 10px; }
.success-mark { width: 64px; height: 64px; margin-inline: auto; }
.success-mark circle { fill: var(--forest); }
.success-mark path { fill: none; stroke: var(--off-white); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Footer ---------- */
.site-footer { background: var(--forest-deep); color: #c9d1c1; padding: clamp(64px, 8vw, 96px) 0 calc(32px + env(safe-area-inset-bottom)); font-size: 0.9375rem; }
.footer-grid { display: grid; gap: 40px; margin-bottom: 56px; }
.brand-light { color: var(--off-white); margin-bottom: 18px; }
.footer-brand p { max-width: 32ch; margin-bottom: 24px; }
.footer-col h2 { font-family: var(--font-body); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--off-white); margin-bottom: 16px; }
.footer-col li { padding: 5px 0; }
.footer-note { font-size: 0.8125rem; color: var(--sage); margin-top: 12px; }
.footer-bottom {
  border-top: 1px solid rgba(247, 244, 238, 0.12); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 0.8125rem; color: #a9b5a3;
}
.footer-bottom a { color: var(--off-white); text-underline-offset: 3px; }

/* ---------- Mobile quick-action bar ---------- */
.mobile-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: grid; grid-template-columns: 1fr 1.4fr;
  padding-bottom: env(safe-area-inset-bottom); background: var(--forest);
  transform: translateY(110%); transition: transform 0.35s var(--ease);
  box-shadow: 0 -10px 30px -12px rgba(20, 40, 32, 0.45);
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta a {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 58px;
  font-weight: 600; text-decoration: none; font-size: 1rem;
}
.mobile-cta-call { color: var(--off-white); }
.mobile-cta-estimate { background: var(--accent); color: var(--white); }
body.menu-open .mobile-cta { transform: translateY(110%); }

/* ---------- Reveal motion ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (min-width: 640px) {
  .form-row { grid-template-columns: 1fr 1fr; }
  .gallery { grid-auto-rows: 240px; }
  .why-points { grid-template-columns: 1fr 1fr; }
  .service-item { grid-template-columns: 180px 1fr; gap: 26px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  .header-phone { display: inline-flex; }
  .header-actions .btn { display: inline-flex; }
  .mobile-cta { display: none; }
}

@media (min-width: 960px) {
  .site-header { --header-h: 84px; }
  .primary-nav { display: block; }
  .menu-toggle, .mobile-menu { display: none !important; }

  .hero { grid-template-columns: 1.04fr 0.96fr; min-height: min(calc(100vh - var(--header-h)), 780px); }
  .hero-copy {
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
    padding-right: clamp(32px, 4vw, 64px);
    align-self: center; max-width: none;
  }
  .hero-media { min-height: 0; }

  .section-head { grid-template-columns: 1.3fr 1fr; }
  .section-head .section-intro { justify-self: end; }

  .services-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .service-item { grid-template-columns: 150px 1fr; }

  .why { padding-top: calc(var(--section-y) - 20px); }
  .why-grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(56px, 7vw, 104px); }
  .why-grid { align-items: start; }
  .why-media { margin-top: calc((var(--section-y) - 20px) * -1 - 72px); }
  .why-copy { padding-top: 24px; }

  .cta-band-inner { grid-template-columns: 1fr auto; gap: 48px; }
  .finder-inner { grid-template-columns: 0.9fr 1.1fr; gap: clamp(48px, 6vw, 96px); }
  .finder-copy { padding-top: 48px; position: sticky; top: calc(var(--header-h) + 8px); }

  .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 230px; gap: 16px; }
  .gallery-item.g-wide { grid-row: span 2; }
  .gallery-item.g-wide:last-child { grid-row: span 1; }

  .area-grid { grid-template-columns: 1.1fr 0.9fr; gap: clamp(56px, 7vw, 112px); }


  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: clamp(56px, 7vw, 112px); }
  .faq-aside { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .faq-media { display: block; }

  .contact-grid { grid-template-columns: 0.85fr 1.15fr; gap: clamp(48px, 6vw, 96px); }

  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; }
}

@media (min-width: 1280px) {
  .hero-copy { padding-right: 80px; }
}

/* Print: keep it simple and readable */
@media print {
  .site-header, .mobile-cta, .hero-media, .form-card, .cta-band { display: none !important; }
  body { background: #fff; }
}
