/* ===== motion-base ===== */
:root {
  --motion-fast: 160ms;
  --motion-base: 240ms;
  --motion-slow: 520ms;
  --ease-out: cubic-bezier(.2, .7, .2, 1);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===== base ===== */
:root {
  --brand: #1f5a32;
  --brand-dark: #12351e;
  --brand-soft: #e8f1ea;
  --accent: #f4b63f;
  --accent-dark: #dd9d1f;
  --ink: #16241b;
  --muted: #4a5a4f;
  --line: #d3ddd5;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--brand); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: #fff; color: var(--ink); padding: 10px 14px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 8px; }
.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;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }

/* ===== buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 12px 22px;
  font: inherit; font-weight: 800; font-size: 1.02rem; text-align: center; text-decoration: none;
  border-radius: 12px; border: 2px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #17220f; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:disabled { background: #e3e7e4; color: #5c675f; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--brand); border-color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); }
.btn-call { background: var(--brand); color: #fff; }
.btn-call:hover { background: var(--brand-dark); }

/* ===== sample banner ===== */
.sample-banner {
  background: #2b2f33; color: #f4f4f4;
  padding: 5px 6px; text-align: center;
  font-size: .66rem; line-height: 1.3; font-weight: 500; letter-spacing: -.005em;
}
@media (min-width: 768px) {
  .sample-banner { font-size: .875rem; padding: 8px 16px; }
}

/* ===== header ===== */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 8px 12px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.brand {
  flex: 1 1 auto; min-width: 0;
  font-weight: 800; font-size: .86rem; line-height: 1.15; color: var(--brand-dark); text-decoration: none;
}
.header-call { min-height: 48px; padding: 8px 14px; font-size: .95rem; }
.header-call-full { display: none; }
.menu-toggle {
  min-height: 48px; min-width: 56px; padding: 8px 10px;
  font: inherit; font-weight: 700; font-size: .95rem;
  background: #fff; color: var(--ink); border: 2px solid var(--line); border-radius: 12px; cursor: pointer;
}
.site-nav { display: none; flex-basis: 100%; flex-direction: column; padding: 4px 0 8px; }
.site-nav.is-open { display: flex; }
.site-nav a {
  display: flex; align-items: center; min-height: 48px; padding: 0 8px;
  color: var(--ink); font-weight: 700; text-decoration: none; border-top: 1px solid var(--line);
}
@media (min-width: 900px) {
  .header-inner { padding: 12px 32px; flex-wrap: nowrap; gap: 20px; }
  .brand { flex: 0 0 auto; font-size: 1.25rem; }
  .menu-toggle { display: none; }
  .site-nav { display: flex; flex-direction: row; flex: 1 1 auto; justify-content: flex-end; flex-basis: auto; padding: 0; gap: 4px; order: 1; }
  .site-nav a { border: 0; padding: 0 12px; }
  .header-call { order: 2; }
  .header-call-full { display: inline; }
  .header-call-short { display: none; }
}

/* ===== photo hero ===== */
.photo-hero {
  --shade: var(--hero-shade-rgb, 12, 26, 40);
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center;
  min-height: min(82vh, 660px);
  padding: 32px 20px 36px;
  background: rgb(var(--shade));
  color: #fff;
}
.photo-hero-media {
  position: absolute; inset: -8% 0; z-index: -2;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}
.photo-hero-media picture, .photo-hero-media img { display: block; width: 100%; height: 100%; }
.photo-hero-media img {
  object-fit: cover; object-position: var(--hero-focus, 50% 50%);
  animation: photo-reveal 900ms var(--ease-out) both, photo-zoom 18s var(--ease-out) both;
  transform-origin: var(--hero-focus, 50% 50%);
}
@keyframes photo-reveal { from { opacity: 0; } to { opacity: 1; } }
@keyframes photo-zoom { from { transform: scale(1); } to { transform: scale(1.07); } }
.photo-hero-overlay {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(var(--shade), .72) 0%, rgba(var(--shade), .84) 100%);
}
.photo-hero-content { width: 100%; max-width: 1120px; margin: 0 auto; }
.photo-hero-content > * { max-width: 600px; }
.photo-hero-eyebrow {
  margin: 0 0 10px; white-space: nowrap;
  font-size: clamp(.72rem, 3.3vw, .9rem); font-weight: 700; letter-spacing: .01em;
  color: #ffd27a;
}
.photo-hero h1 {
  margin: 0 0 14px; font-size: clamp(2rem, 7vw, 3.4rem); line-height: 1.08;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.photo-hero-sub { margin: 0 0 22px; font-size: 1rem; line-height: 1.5; color: rgba(255, 255, 255, .95); }
.photo-hero-actions { display: flex; flex-direction: column; gap: 12px; }
.photo-hero .btn-on-photo {
  background: rgba(255, 255, 255, .12); color: #fff;
  border: 2px solid rgba(255, 255, 255, .85); backdrop-filter: blur(2px);
}
.photo-hero .btn-on-photo:hover { background: rgba(255, 255, 255, .22); }
@media (min-width: 640px) {
  .photo-hero-actions { flex-direction: row; flex-wrap: wrap; }
  .photo-hero-sub { font-size: 1.1rem; }
}
@media (min-width: 768px) {
  .photo-hero { padding: 96px 32px; }
  .photo-hero-overlay {
    background: linear-gradient(90deg, rgba(var(--shade), .88) 0%, rgba(var(--shade), .68) 48%, rgba(var(--shade), .25) 100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .photo-hero-media { transform: none; }
  .photo-hero-media img { animation: none; opacity: 1; transform: none; }
}

/* ===== trust bar ===== */
.trust-bar { background: var(--brand-dark); color: #fff; padding: 18px 0; }
.trust-inner { display: flex; flex-direction: column; gap: 16px; }
.trust-list {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px;
  font-weight: 700; font-size: .92rem; line-height: 1.3;
}
.trust-list li { padding-left: 14px; border-left: 4px solid var(--accent); }
.trust-btn { width: 100%; }
@media (min-width: 900px) {
  .trust-inner { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; }
  .trust-list { grid-template-columns: repeat(4, auto); gap: 24px; font-size: 1rem; }
  .trust-btn { width: auto; flex: 0 0 auto; }
}

/* ===== sections ===== */
.section { padding: 52px 0; }
.section-tint { background: var(--brand-soft); }
.section-lead { color: var(--muted); max-width: 640px; margin-bottom: 26px; font-size: 1.05rem; }
.section-cta { margin: 28px 0 0; }
@media (min-width: 900px) { .section { padding: 76px 0; } }
.micro { font-size: .95rem; color: var(--muted); }

/* ===== service cards ===== */
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  display: flex; flex-direction: column;
}
.card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--brand-soft); }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--muted); flex: 1; }
.card-link {
  display: inline-flex; align-items: center; min-height: 48px;
  font-weight: 800; color: var(--brand); text-decoration: underline; text-underline-offset: 3px;
}

/* ===== hover lift ===== */
.lift {
  transition: transform var(--motion-fast) var(--ease-out), box-shadow var(--motion-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .lift:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 30, 45, .14); }
}
.lift:focus-within { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(15, 30, 45, .14); }
@media (prefers-reduced-motion: reduce) {
  .lift, .lift:hover, .lift:focus-within { transform: none; }
}

/* ===== scroll fade ===== */
.js .fade-in {
  opacity: 0; transform: translateY(16px);
  transition: opacity var(--motion-slow) var(--ease-out), transform var(--motion-slow) var(--ease-out);
}
.js .fade-in.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .fade-in { opacity: 1; transform: none; transition: none; }
}

/* ===== service picker ===== */
.picker { max-width: 760px; }
.picker-lead { margin: 0 0 18px; color: var(--muted); font-size: 1.05rem; }
.picker-options { display: grid; gap: 10px; }
@media (min-width: 640px) { .picker-options { grid-template-columns: 1fr 1fr; } }
.picker-opt {
  font: inherit; font-weight: 500; text-align: left;
  padding: 16px 18px; min-height: 56px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: inherit; cursor: pointer;
  transition: border-color var(--motion-fast) var(--ease-out), background-color var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .picker-opt:hover { border-color: var(--brand); transform: translateY(-2px); }
}
.picker-opt:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
.picker-opt[aria-pressed="true"] { border-color: var(--brand); background: #fff; font-weight: 800; box-shadow: inset 6px 0 0 var(--brand); }
.picker-result {
  margin-top: 18px; padding: 20px 22px; border-radius: 16px;
  background: #fff; border-left: 6px solid var(--brand);
}
.picker-result h3 { margin: 0 0 6px; }
.picker-result p { margin: 0 0 14px; }
.picker-result .btn { width: 100%; }
@media (min-width: 640px) { .picker-result .btn { width: auto; } }
.picker-result.is-entering { animation: picker-in var(--motion-base) var(--ease-out); }
@keyframes picker-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.picker-fallback { margin: 16px 0 0; font-size: .95rem; }
@media (prefers-reduced-motion: reduce) {
  .picker-opt, .picker-opt:hover { transform: none; transition: none; }
  .picker-result.is-entering { animation: none; }
}

/* ===== review ===== */
.review {
  margin: 0; max-width: 720px; padding: 26px 24px;
  background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 16px;
  box-shadow: 0 6px 20px rgba(15, 30, 45, .06);
}
.review blockquote { margin: 0 0 14px; }
.review blockquote p { margin: 0; font-size: 1.35rem; line-height: 1.4; font-weight: 700; color: var(--brand-dark); }
.review figcaption { color: var(--muted); font-size: .98rem; }
.review figcaption a { font-weight: 700; }

/* ===== service area ===== */
.town-list { list-style: none; margin: 0 0 22px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.town-list li {
  padding: 10px 20px; border-radius: 999px; background: #fff; border: 2px solid var(--brand);
  font-weight: 800; color: var(--brand-dark);
}

/* ===== quote form ===== */
.quote-wrap { max-width: 720px; }
.quote-form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 800; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink);
  background: #fff; border: 2px solid #aab8ad; border-radius: 12px;
}
.field textarea { min-height: 120px; resize: vertical; }
.quote-form .btn { width: 100%; }
.quote-form .micro, .quote-form .preview-note { margin: 0; }
.preview-note {
  padding: 12px 14px; background: #fff7e0; border: 1px solid #ecd48a; border-radius: 10px; color: #4d3b05;
}
@media (min-width: 640px) { .quote-form .btn { width: auto; justify-self: start; min-width: 260px; } }

/* ===== footer ===== */
.site-footer { background: var(--brand-dark); color: #e8efe9; padding: 44px 0 28px; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 24px; }
.footer-name { font-size: 1.2rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.site-footer nav { display: flex; flex-direction: column; }
.site-footer nav a { display: flex; align-items: center; min-height: 44px; font-weight: 700; }
.footer-fine { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .2); font-size: .9rem; color: #cfdcd2; }
.footer-fine p { margin-bottom: 8px; }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr; }
}

/* ===== call bar (phones) ===== */
.call-bar { display: none; }
@media (max-width: 767.98px) {
  .call-bar {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 50;
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 56px; padding: 10px 18px; border-radius: 16px;
    background: var(--brand); color: #fff; text-decoration: none;
    box-shadow: 0 10px 30px rgba(10, 25, 40, .28);
    transform: translateY(calc(100% + 24px));
    transition: transform var(--motion-base) var(--ease-out);
  }
  .call-bar.is-shown { transform: none; }
  .call-bar:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
  .call-bar-text strong { font-size: 1.1rem; }
  body.has-call-bar { padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) { .call-bar { transition: none; } }
