/* =========================================================
   Kyler's Lawn and Landscaping — site styles
   Brand: green + white. Built for easy reading (large text,
   big tap targets, strong contrast).
   ========================================================= */

:root {
  --green-900: #13321c;
  --green-800: #1c4a29;
  --green-700: #245f34;   /* primary brand green */
  --green-600: #2f7a42;
  --green-500: #3f9654;
  --green-100: #e5f1e7;
  --green-50:  #f3f8f3;
  --sand:      #f6f2ea;
  --sun:       #e8a838;   /* warm accent */
  --ink:       #1b211d;
  --ink-soft:  #4a554d;
  --line:      #d9e2da;
  --white:     #ffffff;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(19, 50, 28, .10);
  --shadow-lg: 0 20px 50px rgba(19, 50, 28, .18);
  --wrap: 1180px;

  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Fraunces", Georgia, serif;

  --base: 18px;
}


*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--base); scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--green-700); }
a:hover { color: var(--green-900); }

h1, h2, h3 {
  font-family: var(--font-head);
  line-height: 1.15;
  color: var(--green-900);
  margin: 0 0 .5em;
  font-weight: 600;
  letter-spacing: -.01em;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p  { margin: 0 0 1em; }

:focus-visible {
  outline: 4px solid var(--sun);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--green-900); color: #fff; padding: 12px 18px; z-index: 100;
}
.skip-link:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 1.5em;
  border-radius: 999px; border: 2px solid transparent;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }
.btn-primary { background: var(--green-700); color: #fff; box-shadow: 0 6px 18px rgba(36,95,52,.3); }
.btn-primary:hover { background: var(--green-800); color: #fff; }
.btn-sun { background: var(--sun); color: var(--green-900); }
.btn-sun:hover { background: #f0b850; color: var(--green-900); }
.btn-outline { background: #fff; color: var(--green-800); border-color: var(--green-700); }
.btn-outline:hover { background: var(--green-50); color: var(--green-900); }
.btn-ghost-light { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.7); }
.btn-ghost-light:hover { background: rgba(255,255,255,.22); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--green-900); color: #dfeee2;
  font-size: .85rem;
}
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 44px; flex-wrap: wrap;
}
.topbar a { color: #fff; font-weight: 700; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- Header / nav ---------- */
#site-header, #site-footer { display: contents; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo { height: 74px; width: auto; }
.brand-card { display: inline-flex; background: #fff; border-radius: var(--radius); padding: 10px 16px; }
.brand-card .brand-logo { height: 96px; }
@media (max-width: 920px) { .site-header .brand-logo { height: 68px; } }
.brand-mark { width: 50px; height: 50px; flex: none; }
.brand-name {
  font-family: var(--font-head); font-weight: 700; font-size: 1.35rem;
  color: var(--green-800); line-height: 1.05;
}
.brand-name small {
  display: block; font-family: var(--font-body); font-weight: 600;
  font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-weight: 700; font-size: 1rem; color: var(--ink);
  text-decoration: none; padding: 12px 16px; border-radius: 999px;
}
.nav a:hover { background: var(--green-50); color: var(--green-800); }
.nav a[aria-current="page"] { color: var(--green-700); background: var(--green-100); }
.nav .btn { margin-left: 8px; padding: 0 1.3em; min-height: 52px; }
.nav .btn-primary { color: #fff; }
.nav .btn-primary:hover { background: var(--green-800); color: #fff; }
.nav .btn[aria-current="page"] { background: var(--green-800); color: #fff; }

.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  min-height: 52px; padding: 0 18px;
  background: var(--green-700); color: #fff; border: 0; border-radius: 999px;
  font: 700 1rem var(--font-body); cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 920px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; padding: 12px 16px 20px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; padding: 16px 18px; }
  .nav .btn { margin: 8px 0 0; min-height: 60px; }
  .brand-name { font-size: 1.15rem; }
  .brand-mark { width: 44px; height: 44px; }
}
@media (max-width: 560px) {
  .site-header .brand-name small { display: none; }
  .topbar .wrap > span:first-child { display: none; }
  .topbar .wrap { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(232,168,56,.28), transparent 60%),
    linear-gradient(160deg, var(--green-800) 0%, var(--green-900) 70%);
  color: #fff;
}
.hero.has-photo {
  background:
    linear-gradient(100deg, rgba(19,50,28,.94) 0%, rgba(19,50,28,.82) 45%, rgba(19,50,28,.45) 100%),
    url("../images/backyard-stripes-wide.jpg") center 60% / cover no-repeat;
}
.hero.has-photo::before { display: none; }
@media (max-width: 920px) {
  .hero.has-photo { background: linear-gradient(rgba(19,50,28,.86), rgba(19,50,28,.92)), url("../images/backyard-stripes-wide.jpg") center / cover no-repeat; }
}
.hero::before {           /* subtle mowing stripes */
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 70px, transparent 70px 140px);
  pointer-events: none;
}
.hero .wrap {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
  padding: 88px 0 150px;
}
.hero h1 { color: #fff; }
.hero h1 em { font-style: italic; color: #bfe3c6; }
.hero .lead { font-size: 1.2rem; color: #d7eadb; max-width: 34em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-600); margin-bottom: 14px;
}
.hero .eyebrow { color: var(--sun); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.hero-note { margin-top: 18px; font-size: .9rem; color: #b8d3be; }

.hero-card {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg);
  padding: 30px; box-shadow: var(--shadow-lg);
}
.hero-card h2 { font-size: 1.5rem; margin-bottom: .3em; }
.hero-card p { color: var(--ink-soft); font-size: .95rem; }
.quick-list { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; gap: 10px; }
.quick-list li {
  display: flex; align-items: center; gap: 12px;
  font-weight: 700; padding: 12px 14px; background: var(--green-50); border-radius: 12px;
}
.quick-list svg { width: 26px; height: 26px; color: var(--green-700); flex: none; }

.hills { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; width: 100%; height: 130px; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; padding: 56px 0 120px; gap: 32px; }
}

/* ---------- Trust strip ---------- */
.trust {
  margin-top: -40px; position: relative; z-index: 3;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow);
  border: 1px solid var(--line);
}
.trust-item { display: flex; gap: 14px; align-items: center; padding: 24px; }
.trust-item + .trust-item { border-left: 1px solid var(--line); }
.trust-item svg { width: 38px; height: 38px; color: var(--green-700); flex: none; }
.trust-item strong { display: block; color: var(--green-900); }
.trust-item span { font-size: .85rem; color: var(--ink-soft); }
@media (max-width: 920px) {
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-item:nth-child(3) { border-left: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 540px) {
  .trust-grid { grid-template-columns: 1fr; }
  .trust-item + .trust-item { border-left: 0; border-top: 1px solid var(--line); }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sand { background: var(--sand); }
.section-green { background: var(--green-50); }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); font-size: 1.1rem; }
@media (max-width: 700px) { .section { padding: 64px 0; } }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.service {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 26px; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--green-500); }
.service .icon {
  width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; background: var(--green-100); color: var(--green-700);
  margin-bottom: 20px;
}
.service .icon svg { width: 34px; height: 34px; }
.service p { color: var(--ink-soft); font-size: .95rem; flex: 1; }
.service a { font-weight: 800; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.service a:hover { text-decoration: underline; }
@media (max-width: 1020px) { .services { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px)  { .services { grid-template-columns: 1fr; } }

.extra-note {
  margin-top: 34px; display: flex; gap: 14px; align-items: center; justify-content: center;
  text-align: center; color: var(--ink-soft); font-size: .95rem; flex-wrap: wrap;
}
.extra-note svg { width: 22px; height: 22px; color: var(--sun); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 28px 30px;
  border: 1px solid var(--line);
}
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%;
  background: var(--green-700); color: #fff; font: 700 1.4rem var(--font-head);
  margin-bottom: 18px;
}
.step p { color: var(--ink-soft); margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Split / feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; gap: 36px; }
  .split.reverse > :first-child { order: 0; }
}
.check-list { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 26px; height: 26px; color: var(--green-600); flex: none; margin-top: 2px; }

/* ---------- Before / After slider ---------- */
.ba {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); user-select: none; touch-action: pan-y; background: var(--green-100);
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer img { width: 100%; height: 100%; object-fit: cover; }
.ba-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-tag {
  position: absolute; top: 16px; padding: 6px 14px; border-radius: 999px;
  font-size: .8rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  background: rgba(0,0,0,.6); color: #fff;
}
.ba-before .ba-tag { left: 16px; }
.ba-after .ba-tag { right: 16px; background: var(--green-700); }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 4px; margin-left: -2px;
  background: #fff; pointer-events: none;
}
.ba-handle::after {
  content: "‹ ›"; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 58px; height: 58px; border-radius: 50%; background: #fff; color: var(--green-800);
  display: grid; place-items: center; font: 800 1.3rem/1 var(--font-body); box-shadow: var(--shadow);
}
.ba input[type="range"] {
  position: absolute; inset: 0; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize;
}
.ba input[type="range"]:focus-visible + .ba-handle::after { outline: 4px solid var(--sun); }
.ba-hint { text-align: center; color: var(--ink-soft); font-size: .9rem; margin-top: 12px; }

/* Illustrated placeholders (shown until real photos are added) */
.ph {
  width: 100%; height: 100%; display: grid; place-items: center; text-align: center;
  color: rgba(255,255,255,.92); font-weight: 700; font-size: .9rem; padding: 20px;
  position: relative;
}
.ph span { background: rgba(0,0,0,.28); padding: 8px 14px; border-radius: 999px; backdrop-filter: blur(2px); }
.ph-lawn  { background: repeating-linear-gradient(90deg, #4f9a3e 0 48px, #5fac4a 48px 96px); }
.ph-patchy {
  background:
    radial-gradient(circle at 20% 30%, #9b8a5a 0 12%, transparent 13%),
    radial-gradient(circle at 70% 60%, #8f7c4c 0 15%, transparent 16%),
    radial-gradient(circle at 40% 80%, #a89566 0 10%, transparent 11%),
    radial-gradient(circle at 85% 20%, #9d8d5d 0 9%, transparent 10%),
    linear-gradient(#7d8f4d, #6c7e42);
}
.ph-mulch {
  background:
    radial-gradient(ellipse at 50% 120%, #2f7a42 0 22%, transparent 23%),
    radial-gradient(circle at 25% 60%, #3f9654 0 9%, transparent 10%),
    radial-gradient(circle at 75% 55%, #3f9654 0 8%, transparent 9%),
    repeating-linear-gradient(35deg, #5a3a24 0 6px, #6b4529 6px 12px, #4e321f 12px 16px);
}
.ph-land {
  background:
    radial-gradient(circle at 30% 45%, #2f7a42 0 14%, transparent 15%),
    radial-gradient(circle at 62% 40%, #245f34 0 18%, transparent 19%),
    radial-gradient(circle at 82% 52%, #3f9654 0 10%, transparent 11%),
    linear-gradient(transparent 62%, #c9b79a 62% 70%, #5fac4a 70%),
    linear-gradient(#cfe6f1, #e9f3f6);
}
.ph-clean {
  background:
    radial-gradient(circle at 20% 70%, #c8742c 0 5%, transparent 6%),
    radial-gradient(circle at 35% 78%, #d99a37 0 4%, transparent 5%),
    radial-gradient(circle at 60% 72%, #b85f2a 0 5%, transparent 6%),
    radial-gradient(circle at 80% 80%, #d48a33 0 4%, transparent 5%),
    repeating-linear-gradient(90deg, #4f9a3e 0 40px, #5aa547 40px 80px);
}
.ph-hedge {
  background:
    linear-gradient(transparent 70%, #5fac4a 70%),
    radial-gradient(ellipse 60% 40% at 50% 55%, #245f34 0 98%, transparent 100%),
    linear-gradient(#dcebf2, #eef5f7);
}

/* ---------- FAQ accordion ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 14px; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 64px 22px 24px; position: relative;
  font-weight: 800; font-size: 1.05rem; color: var(--green-900);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green-100); color: var(--green-800); font-size: 1.4rem; font-weight: 700;
  transition: transform .2s ease;
}
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { background: var(--green-50); }
.faq .answer { padding: 4px 24px 22px; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--green-700), var(--green-900));
  color: #fff; border-radius: var(--radius-lg); padding: 56px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: rgba(255,255,255,.06);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d7eadb; margin: 0; font-size: 1.1rem; }
.cta-actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background:
    repeating-linear-gradient(115deg, rgba(255,255,255,.035) 0 70px, transparent 70px 140px),
    linear-gradient(160deg, var(--green-800), var(--green-900));
  color: #fff; padding: 72px 0 64px;
}
.page-hero h1 { color: #fff; margin-bottom: .25em; }
.page-hero p { color: #d7eadb; font-size: 1.15rem; max-width: 40em; margin: 0; }
.page-hero .eyebrow { color: var(--sun); }

/* ---------- Portfolio ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }
.filter {
  min-height: 52px; padding: 0 22px; border-radius: 999px;
  background: #fff; border: 2px solid var(--line); color: var(--ink);
  font: 700 1rem var(--font-body); cursor: pointer;
}
.filter:hover { border-color: var(--green-500); }
.filter[aria-pressed="true"] { background: var(--green-700); border-color: var(--green-700); color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gallery { grid-template-columns: 1fr; } }
.tile {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; text-align: left; padding: 0; font: inherit; color: inherit;
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex; flex-direction: column;
}
.tile:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.tile-media { aspect-ratio: 4 / 3; position: relative; overflow: hidden; }
.tile-media img { width: 100%; height: 100%; object-fit: cover; }
.tile-body { padding: 18px 20px 22px; }
.tile-cat {
  display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--green-700); background: var(--green-100); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px;
}
.tile h3 { font-size: 1.15rem; margin: 0 0 4px; }
.tile p { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.tile .view { margin-top: 10px; font-weight: 800; color: var(--green-700); font-size: .92rem; }
.tile.hide { display: none; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 22, 13, .92);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.lightbox.open { display: flex; }
.lb-inner { width: min(1000px, 100%); color: #fff; }
.lb-media { aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: #000; }
.lb-media img { width: 100%; height: 100%; object-fit: contain; }
.lb-caption { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-top: 16px; flex-wrap: wrap; }
.lb-caption h3 { color: #fff; margin: 0; }
.lb-caption p { margin: 0; color: #c9dccd; }
.lb-controls { display: flex; gap: 10px; }
.lb-btn {
  min-height: 56px; min-width: 56px; padding: 0 20px; border-radius: 999px; border: 2px solid rgba(255,255,255,.6);
  background: transparent; color: #fff; font: 700 1rem var(--font-body); cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.14); }
.lb-close { position: absolute; top: 18px; right: 18px; background: #fff; color: var(--green-900); border-color: #fff; }

/* ---------- About ---------- */
.portrait {
  aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  position: relative;
}
.portrait img { width: 100%; height: 100%; object-fit: cover; }
.portrait-badge {
  position: absolute; left: 20px; bottom: 20px; background: #fff; border-radius: var(--radius);
  padding: 14px 18px; box-shadow: var(--shadow); font-weight: 800; color: var(--green-900);
}
.portrait-badge span { display: block; font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.value { background: #fff; border-radius: var(--radius-lg); padding: 30px; border: 1px solid var(--line); }
.value svg { width: 40px; height: 40px; color: var(--green-700); margin-bottom: 14px; }
.value p { color: var(--ink-soft); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

/* ---------- Quote form ---------- */
.quote-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 36px; box-shadow: var(--shadow);
}
@media (max-width: 600px) { .form-card { padding: 24px 18px; } }

.progress { display: flex; gap: 8px; margin-bottom: 10px; }
.progress span { flex: 1; height: 8px; border-radius: 999px; background: var(--line); transition: background .3s; }
.progress span.done { background: var(--green-600); }
.progress-label { font-weight: 800; color: var(--green-700); font-size: .9rem; margin-bottom: 22px; }

#quote-form { scroll-margin-top: 120px; }
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp .35s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.form-step h2 { font-size: 1.6rem; }
.form-step .hint { color: var(--ink-soft); margin-top: -.4em; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 18px 0 8px; }
.choice-grid.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 600px) { .choice-grid, .choice-grid.three { grid-template-columns: 1fr; } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 14px 18px;
  border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer; background: #fff;
  font-weight: 700; transition: border-color .15s, background .15s;
}
.choice label small { display: block; font-weight: 500; color: var(--ink-soft); font-size: .82rem; }
.choice label:hover { border-color: var(--green-500); }
.choice .tick {
  width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); flex: none;
  display: grid; place-items: center; color: transparent; transition: all .15s;
}
.choice input[type="radio"] + label .tick { border-radius: 50%; }
.choice input:checked + label { border-color: var(--green-700); background: var(--green-50); }
.choice input:checked + label .tick { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.choice input:focus-visible + label { outline: 4px solid var(--sun); outline-offset: 2px; }

.field { margin-bottom: 20px; }
.field label, .field .label { display: block; font-weight: 800; margin-bottom: 8px; color: var(--green-900); }
.field .opt { font-weight: 500; color: var(--ink-soft); font-size: .85rem; }
.field input, .field textarea, .field select {
  width: 100%; min-height: 58px; padding: 14px 16px; border: 2px solid var(--line); border-radius: 12px;
  font: 500 1rem var(--font-body); color: var(--ink); background: #fff;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--green-600); outline: none; box-shadow: 0 0 0 4px rgba(63,150,84,.2); }
.field.invalid input { border-color: #c0392b; }
.error-msg { color: #b02a1c; font-weight: 700; font-size: .9rem; margin-top: 6px; display: none; }
.field.invalid .error-msg, .error-msg.show { display: block; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 600px) { .two-col { grid-template-columns: 1fr; } }

.form-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.form-nav .btn { min-width: 160px; }

.summary-box { background: var(--green-50); border-radius: var(--radius); padding: 20px 22px; margin: 10px 0 0; }
.summary-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.summary-box dt { font-weight: 800; color: var(--green-900); }
.summary-box dd { margin: 0; color: var(--ink-soft); }

.success { text-align: center; padding: 20px 0; }
.success .big-check {
  width: 90px; height: 90px; border-radius: 50%; background: var(--green-700); color: #fff;
  display: grid; place-items: center; margin: 0 auto 20px;
}
.success .big-check svg { width: 48px; height: 48px; }
.success-actions { display: grid; gap: 12px; max-width: 420px; margin: 24px auto 0; }

.side-card { background: var(--sand); border-radius: var(--radius-lg); padding: 30px; position: sticky; top: 110px; }
.side-card h3 { margin-bottom: .4em; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-card hr { border: 0; border-top: 1px solid #e3dccd; margin: 24px 0; }
.side-card ul { padding-left: 1.1em; margin: 0; color: var(--ink-soft); }
.side-card li { margin-bottom: 6px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: #c9dccd; padding: 72px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.6fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1rem; margin: 0 0 14px; letter-spacing: .04em; }
.site-footer a { color: #e7f2e9; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer li { display: flex; gap: .45em; align-items: baseline; }
.site-footer li a, .site-footer li span { min-width: 0; overflow-wrap: anywhere; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-name small { color: #9fbfa6; }
.footer-about { font-size: .95rem; margin-top: 16px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255,255,255,.1); color: #fff; transition: background .2s;
}
.socials a:hover { background: var(--green-600); }
.socials a.soon { opacity: .55; cursor: default; }
.socials svg { width: 22px; height: 22px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12); margin-top: 56px; padding: 22px 0 30px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #9fbfa6;
}

/* ---------- Mobile sticky action bar ---------- */
.action-bar { display: none; }
@media (max-width: 760px) {
  .action-bar {
    display: grid; grid-template-columns: repeat(3, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
    gap: 8px;
  }
  .action-bar a {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 60px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: .85rem;
    color: var(--green-800); background: var(--green-50);
  }
  .action-bar a.primary { background: var(--green-700); color: #fff; }
  .action-bar svg { width: 24px; height: 24px; }
  body { padding-bottom: 84px; }
  /* Netlify's "Powered by Netlify" badge sits bottom-right; lift it above
     the Call / Text / Free Quote bar so it doesn't cover the buttons. */
  #nl-badge-frame { bottom: calc(80px + env(safe-area-inset-bottom)) !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}
