/* Handyman Friends — vanilla site. Structure follows the SOS Plumbing studio build; brand from the Handyman Friends kit. */

@font-face {
  font-family: Outfit;
  src: url(../assets/fonts/Outfit-Variable.ttf) format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --forest: #063B20;
  --forest-2: #0D4A2B;
  --lime: #70C900;
  --green-text: #3F7A00;   /* lime family, AA on white */
  --ivory: #F6F1E8;
  --ink: #27332C;
  --muted: #5B6C60;
  --line: #DCE3DA;
  --soft: #F3F6F1;
  --font: Outfit, Arial, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --pad-x: clamp(20px, 5vw, 96px);
  --nav-h: 84px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 400 16px/1.55 var(--font); color: var(--ink); background: #fff; }
body::before { content: ""; display: block; height: 72px; }
section[id], main[id] { scroll-margin-top: 96px; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
img, video { max-width: 100%; }
h1, h2, h3 { color: var(--forest); }
:is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; }

.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.12em; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 20; padding: 10px 16px; border-radius: 8px; background: var(--forest); color: #fff; }
.skip:focus { top: 16px; }

.eyebrow { display: flex; align-items: center; gap: 10px; font: 500 15px var(--font); color: var(--forest); }
.eyebrow::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--lime); }
.eyebrow.on-dark { color: #fff; }

/* ---------- Floating nav ---------- */
.floating-nav {
  position: fixed; z-index: 6; top: 16px; left: 50%; transform: translateX(-50%);
  width: min(1120px, calc(100% - 32px)); height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 0 10px 0 12px;
  border: 1px solid rgb(6 59 32 / 9%); border-radius: 999px;
  background: rgb(255 255 255 / 82%); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgb(6 59 32 / 9%);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; font-size: 18px; letter-spacing: -.02em; color: var(--forest); }
.brand img { width: 72px; height: 72px; object-fit: contain; }
.dot-accent { color: var(--lime); }
.primary-links { display: flex; gap: 2px; position: relative; isolation: isolate; }
.primary-links a { padding: 12px 16px; font: 500 16px/20px var(--font); color: var(--forest); }
.nav-indicator { position: absolute; inset: 0 auto 0 0; z-index: -1; border-radius: 999px; background: rgb(6 59 32 / 7%); pointer-events: none; }
.utility { display: inline-flex; align-items: center; gap: clamp(12px, 1.5vw, 22px); }
.nav-number { font-weight: 500; color: var(--forest); }
.nav-cta { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--forest); color: #fff; font-weight: 500; }
.nav-cta:hover { background: var(--forest-2); }

.menu-toggle, #mobile-menu { display: none; }

@media (width < 1024px) {
  .floating-nav { height: 68px; padding: 0 6px 0 8px; background: #fff; backdrop-filter: none; }
  .floating-nav .primary-links, .floating-nav .utility { display: none; }
  .brand img { width: 56px; height: 56px; }
  .menu-toggle { display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; color: var(--forest); cursor: pointer; }
  .menu-toggle span { display: block; width: 22px; height: 2px; background: currentColor; }
  #mobile-menu { position: fixed; inset: 0; margin: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; border: 0; padding: 0 24px max(40px, env(safe-area-inset-bottom)); background: #fff; color: var(--forest); }
  #mobile-menu[open] { display: flex; flex-direction: column; }
  #mobile-menu::backdrop { background: transparent; }
  .menu-top { display: flex; align-items: center; justify-content: space-between; height: 72px; flex: none; margin: 0 -8px; }
  .menu-top img { width: 44px; height: 44px; }
  #mobile-menu nav { display: flex; flex-direction: column; align-items: start; gap: 18px; margin: auto 0; }
  #mobile-menu nav a { font: 500 34px/1.2 var(--font); letter-spacing: -.02em; padding: 6px 0; }
  #mobile-menu nav .menu-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 20px; padding: 13px 24px; border-radius: 999px; background: var(--forest); color: #fff; }
  .menu-phone { display: flex; align-items: center; gap: 10px; font: 500 20px var(--font); min-height: 44px; }
  #mobile-menu[open] .menu-toggle span:first-child { transform: translateY(4px) rotate(45deg); }
  #mobile-menu[open] .menu-toggle span:last-child { transform: translateY(-4px) rotate(-45deg); }
  html.menu-locked, html.menu-locked body { overflow: hidden; overscroll-behavior: none; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - 72px); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.8svh, 24px); padding: 48px 0 32px;
  background: linear-gradient(#fff 62%, #fbfcfa 72%, var(--soft) 86%, #fff 100%);
}
.hero-eyebrow { margin: 0; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.hero-eyebrow::before { display: none; }
h1 { margin: 0; text-align: center; font: 650 clamp(46px, min(6.2vw, 9svh), 104px)/.98 var(--font); letter-spacing: -.05em; }
.line { display: block; }
h1 i { display: inline-block; font-style: normal; }
h1 .hand { color: var(--green-text); }

/* The film is 16:9 with empty wall up top; show a 2:1 crop sized so headline, film and CTAs share one screen. */
.film { position: relative; width: min(80vw, max(440px, calc((100svh - 520px) * 2))); aspect-ratio: 2 / 1; }
.film video {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 82%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 13%, #000 87%, transparent), linear-gradient(to bottom, transparent, #000 3%, #000 82%, transparent);
  mask-composite: intersect;
}
.film-controls { position: absolute; right: 9%; bottom: 4%; z-index: 1; display: flex; gap: 10px; }
.film-controls button { border: 1px solid var(--line); border-radius: 30px; background: rgb(255 255 255 / 92%); color: var(--forest); font: 400 13px var(--font); padding: 8px 14px; cursor: pointer; }
.film-controls button { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; }
.film-controls button svg { display: block; }

.details { text-align: center; padding: 0 18px; }
.service-line { margin: 0 auto 18px; color: var(--muted); font-size: clamp(15px, 1.15vw, 18px); white-space: nowrap; }
.rotator { display: inline-grid; vertical-align: bottom; overflow: hidden; white-space: nowrap; color: var(--forest); font-weight: 600; justify-items: start; grid-template-columns: minmax(0, 1fr); }
.rotator > span { grid-area: 1 / 1; width: max-content; opacity: 0; transform: translateY(55%); }
.rotator > span.is-active { opacity: 1; transform: none; }
.rotator:not([data-ready]) > span:not(.is-active) { display: none; }

.actions { display: flex; justify-content: center; align-items: center; gap: 26px; }
.actions a { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }
.primary { height: 56px; padding: 0 24px 0 12px; border-radius: 999px; background: var(--forest); color: #fff; }
.primary:hover { background: var(--forest-2); }
.disc { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: var(--forest); }
.secondary { color: var(--forest); padding: 0 2px; }
.secondary span { position: relative; padding-block: 4px; }
.secondary span::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; }
.secondary:is(:hover, :focus-visible) span::after { transform: scaleX(1); }

.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; list-style: none; margin: 16px 0 0; padding: 0; color: rgb(39 51 44 / 72%); font-size: 14px; }
.trust li { display: inline-flex; align-items: center; white-space: nowrap; }
.trust li::before { content: ""; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--lime); }
.trust li + li { margin-left: 18px; }

@media (max-width: 700px) {
  .hero { min-height: 0; justify-content: flex-start; gap: 14px; padding: 44px 0 40px; }
  h1 { font-size: clamp(40px, 11.5vw, 64px); }
  .film { width: 100vw; aspect-ratio: 16 / 10; }
  .film video { object-position: center 20%; }
  .film-controls { right: 16px; bottom: 2%; }
  .film-controls button { width: 38px; height: 38px; padding: 0; }
  .actions { flex-direction: column; gap: 6px; }
  .actions .primary { width: min(100%, 360px); justify-content: center; }
  .actions .secondary { min-height: 44px; }
  .trust { margin-top: 6px; font-size: 13px; }
  .trust li + li { margin-left: 12px; }
}
@media (max-width: 360px) { .service-line { font-size: 13px; } }

/* ---------- Services ---------- */
.services {
  display: grid; grid-template-columns: minmax(0, 52fr) minmax(0, 48fr); align-items: start;
  gap: clamp(36px, 5vw, 96px); max-width: 1920px; margin: auto;
  padding: clamp(72px, 8vw, 140px) var(--pad-x);
}
.services h2, .how h2 { font: 600 clamp(42px, 4.6vw, 76px)/1.02 var(--font); letter-spacing: -.045em; margin: 15px 0 18px; }
.services-intro { max-width: 520px; margin: 0 0 36px; color: var(--muted); font-size: 17px; }

.svc { border-top: 1px solid var(--line); }
.svc:last-child { border-bottom: 1px solid var(--line); }
.svc h3 { margin: 0; font: inherit; }
.svc-head {
  width: 100%; position: relative; display: grid; grid-template-columns: 44px 1fr 24px; align-items: baseline; column-gap: 8px;
  padding: 18px 0; border: 0; background: none; color: var(--forest); text-align: left; cursor: pointer;
}
.svc-num { grid-row: 1 / 3; font: 500 14px var(--font); color: var(--green-text); font-variant-numeric: tabular-nums; }
.svc-title { font: 500 clamp(22px, 1.8vw, 28px)/1.15 var(--font); letter-spacing: -.02em; }
.svc-tags { grid-column: 2; margin-top: 6px; font-size: 14px; color: rgb(39 51 44 / 62%); }
.svc .toggle { grid-column: 3; grid-row: 1; align-self: center; width: 18px; height: 18px; color: var(--forest); }
.svc-panel { display: grid; grid-template-rows: 0fr; opacity: 0; }
.svc.open .svc-panel { grid-template-rows: 1fr; opacity: 1; }
.svc.open .toggle { transform: rotate(45deg); }
.svc-clip { overflow: hidden; min-height: 0; padding-left: 52px; }
.svc-desc { margin: 0 0 14px; font-size: 16px; max-width: 560px; }
.svc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; max-width: 420px; padding-bottom: 20px; }
.svc-actions > *, .bottom-actions > * {
  min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--forest); border-radius: 999px; background: #fff; color: var(--forest);
  font: 500 16px var(--font); cursor: pointer;
}
.svc-actions > a, .bottom-actions > a { background: var(--forest); color: #fff; }

/* Desktop: rows select a spotlight card; panels stay closed. */
.spotlight { position: sticky; top: 110px; }
.spot-card { border-radius: 24px; overflow: hidden; background: var(--ivory); border: 1px solid #ECE5D8; }
.spot-scene, .svc-image { aspect-ratio: 3 / 1; background: #fff; }
.spot-scene img, .svc-image { display: block; width: 100%; object-fit: contain; }
.spot-scene img { height: 100%; }
.svc-image { height: auto; margin-bottom: 16px; border-radius: 12px; }
.spot-body { padding: clamp(28px, 3vw, 44px); }
.spot-num { display: block; font: 300 clamp(72px, 7vw, 120px)/.9 var(--font); letter-spacing: -.06em; color: var(--forest); font-variant-numeric: tabular-nums; }
.spot-title { margin: 18px 0 10px; font: 600 clamp(26px, 2.2vw, 34px)/1.12 var(--font); letter-spacing: -.03em; }
.spot-desc { margin: 0 0 26px; font-size: 18px; line-height: 1.6; min-height: 3.2em; }
.spot-cta { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 24px; border: 0; border-radius: 999px; background: var(--forest); color: #fff; font: 500 17px var(--font); cursor: pointer; }
.spot-cta:hover { background: var(--forest-2); }

@media (min-width: 900px) {
  .svc-panel { display: none; }
  .svc .toggle { display: none; }
  .svc-head { grid-template-columns: 44px 1fr; }
  .svc.is-current .svc-title { transform: translateX(6px); }
  .svc.is-current .svc-head::after { content: ""; position: absolute; left: -16px; top: 22px; bottom: 22px; width: 3px; border-radius: 2px; background: var(--lime); }
  .svc-head:hover .svc-title { transform: translateX(6px); }
}
@media (width < 900px) {
  .services { display: block; padding: 70px 20px 80px; }
  .spotlight { display: none; }
  .svc-clip { padding-left: 0; }
}
@media (width < 600px) {
  .svc-head { grid-template-columns: 34px 1fr 24px; padding: 14px 0; }
  .svc-tags { display: none; }
  .svc-title { font-size: 20px; }
}

/* ---------- Marquee ---------- */
.marquee { padding: 30px 0; border-block: 1px solid var(--line); background: #fff; }
.marquee-window { overflow: hidden; mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent); }
.marquee-track, .marquee-track ul { display: flex; align-items: center; }
.marquee-track { width: max-content; }
.marquee-track ul { --gap: 28px; gap: var(--gap); margin: 0; padding: 0 var(--gap) 0 0; list-style: none; flex: none; }
.marquee-track li { display: inline-flex; align-items: center; gap: var(--gap); white-space: nowrap; font: 500 clamp(22px, 2vw, 30px) var(--font); letter-spacing: -.02em; color: var(--forest); }
.marquee-track li::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); }

/* ---------- How it works ---------- */
.how { max-width: 1920px; margin: auto; padding: clamp(48px, 5vw, 80px) var(--pad-x); }
.how h2 { font-size: clamp(36px, 3.2vw, 58px); margin-bottom: 14px; }
.homepage > section.how { min-height: 0; padding-block: clamp(48px, 5vw, 80px); }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 3vw, 56px); }
.steps li { border-top: 1px solid var(--line); padding-top: 16px; }
.step-num { display: block; font: 300 clamp(52px, 4vw, 72px)/.9 var(--font); letter-spacing: -.06em; color: var(--forest); font-variant-numeric: tabular-nums; }
.steps li:nth-child(odd) .step-num { color: var(--green-text); }
.steps h3 { margin: 12px 0 6px; font: 600 22px/1.2 var(--font); letter-spacing: -.02em; }
.steps p { margin: 0; color: var(--muted); }
@media (width < 900px) {
  .how { padding: 48px 20px; }
  .homepage > section.how { padding: 48px 20px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 24px 20px; margin-top: 22px; }
}
@media (width < 520px) { .steps { grid-template-columns: 1fr; } .steps li { padding-top: 12px; } .step-num { font-size: 52px; } .steps h3 { margin-top: 8px; } }

/* ---------- Why us and reviews ---------- */
.why { padding-inline: var(--pad-x); }
.why-inner { max-width: 1180px; margin-inline: auto; }
.why-intro {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 24px;
  padding: clamp(18px, 2.5vw, 30px);
  border-radius: 18px;
  background: var(--forest);
}
.why-intro h2 { color: #fff; margin: 8px 0 0; font: 600 clamp(26px, 3vw, 40px)/1.08 var(--font); letter-spacing: -.04em; }
.why-intro h2 span { color: var(--lime); }
.why-cta { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 18px; border-radius: 999px; background: var(--lime); color: var(--forest); font-weight: 600; }
.why-cta:hover { background: #82DA10; }
.why-intro :focus-visible { outline-color: var(--lime); }

.reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: center;
  margin-top: clamp(18px, 3dvh, 30px);
}
.why .reviews { scroll-margin-top: var(--top-clearance, 112px); }
.reviews-copy h3 { margin: 6px 0 0; font: 600 clamp(24px, 2.7vw, 36px)/1.1 var(--font); letter-spacing: -.04em; }
.reviews-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.reviews .widget { justify-self: start; min-width: 0; max-width: 100%; border: 1px solid var(--line); border-radius: 16px; }
.review-cards { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.review-card { display: flex; flex-direction: column; justify-content: space-between; gap: 10px; margin: 0; padding: clamp(14px, 1.6vw, 22px); border: 1px solid var(--line); border-radius: 16px; background: var(--soft); }
.review-card blockquote, .review-card p { margin: 0; }
.review-card blockquote { flex: 1; color: var(--forest); font-size: clamp(16px, 1.35vw, 19px); line-height: 1.4; }
.review-card figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; color: var(--muted); font-size: 15px; font-weight: 600; }
.review-card figcaption time { font-weight: 400; }
.review-card .stars { color: #E8A100; font-size: 20px; letter-spacing: 2px; line-height: 1; }
.profile-facts { grid-column: 1 / -1; display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
.facts-box { padding: clamp(14px, 1.6vw, 20px); border: 1px solid var(--line); border-radius: 16px; }
.facts-box h4 { margin: 0 0 8px; color: var(--forest); font: 600 17px/1.2 var(--font); }
.facts-box p { margin: 0; color: var(--ink); }
.facts-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 12px; }
.facts-list li { display: flex; align-items: center; gap: 7px; }
.facts-list .icon { width: 18px; height: 18px; color: var(--green-text); }
@media (min-width: 900px) and (max-height: 860px) {
  .why-intro { padding-block: 18px; }
  .why-intro h2 { font-size: clamp(26px, 2.7vw, 35px); }
  .reviews { margin-top: 16px; gap: 9px 24px; }
  .reviews-copy h3 { font-size: clamp(23px, 2.4vw, 32px); }
  .review-card { padding: 14px; gap: 8px; }
  .review-card blockquote { font-size: 16px; line-height: 1.35; }
  .facts-box { padding: 14px; font-size: 15px; line-height: 1.4; }
}
@media (width < 760px) {
  .reviews, .review-cards, .profile-facts, .facts-list { grid-template-columns: minmax(0, 1fr); }
  .reviews { gap: 12px; }
}

/* ---------- Estimate form ---------- */
.estimate { background: var(--ivory); padding: clamp(72px, 7vw, 112px) 20px; }
.estimate h2 { margin: 0; text-align: center; font: 600 clamp(38px, 4.2vw, 58px)/1.06 var(--font); letter-spacing: -.045em; }
.estimate h2 em { font-style: normal; color: var(--green-text); }
.estimate-intro { max-width: 640px; margin: 18px auto 32px; text-align: center; color: var(--muted); font-size: 17px; }
.estimate-intro a { color: var(--forest); text-decoration: underline; text-underline-offset: 3px; }
#estimate-form {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px;
  max-width: 600px; margin: auto; padding: 32px; background: #fff;
  border: 1px solid #ECE5D8; border-radius: 22px; box-shadow: 0 12px 36px rgb(6 59 32 / 7%);
}
.field { display: grid; gap: 7px; font: 500 14px/1.4 var(--font); color: var(--forest); }
.field small { font-weight: 400; color: var(--muted); }
.wide, .submit, .form-status { grid-column: 1 / -1; }
.control { position: relative; display: block; }
.control :is(input, select, textarea) {
  display: block; width: 100%; height: 48px; padding: 0 12px;
  font: 400 16px/1.45 var(--font); color: var(--ink);
  background: var(--soft); border: 1px solid rgb(6 59 32 / 12%); border-radius: 10px;
}
.control :is(input, select, textarea):focus { outline: 0; border-color: var(--forest); box-shadow: 0 0 0 3px rgb(112 201 0 / 35%); }
.control select { appearance: none; padding-right: 36px; text-overflow: ellipsis; }
.control textarea { height: 120px; padding: 12px; resize: vertical; }
.control .icon { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; pointer-events: none; }
[aria-invalid="true"] { border-color: #B3261E !important; }

.dropzone {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 72px; padding: 14px; border: 1.5px dashed rgb(6 59 32 / 28%); border-radius: 12px;
  background: var(--soft); color: var(--forest); font-weight: 500; cursor: pointer; text-align: center;
}
.dropzone:hover, .dropzone.drag { border-color: var(--forest); background: #EAF4DF; }
.dropzone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.dropzone:focus-within { outline: 3px solid var(--green-text); outline-offset: 3px; }
.dropzone .icon { width: 20px; height: 20px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.thumbs:empty { display: none; }
.thumbs li { position: relative; }
.thumbs img { display: block; width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }
.thumbs button { position: absolute; top: -8px; right: -8px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: var(--forest); color: #fff; font-size: 14px; line-height: 1; cursor: pointer; }

.submit {
  display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 54px;
  border: 0; border-radius: 999px; background: var(--forest); color: #fff; font: 500 18px var(--font); cursor: pointer;
}
.submit:hover { background: var(--forest-2); }
.submit span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--forest); }
.submit[disabled] { opacity: .6; cursor: progress; }
.form-status { margin: 0; text-align: center; font-size: 15px; color: var(--muted); }
.form-status:empty { display: none; }
.form-status.ok { color: var(--forest); font-weight: 500; }
.form-status.err { color: #B3261E; }
@media (max-width: 767px) { #estimate-form { grid-template-columns: minmax(0, 1fr); padding: 20px; } }

/* ---------- Footer ---------- */
.footer-top { background: #042A17; color: #fff; padding: 72px var(--pad-x); }
.footer-columns { display: grid; grid-template-columns: 1fr 1.3fr 1fr; gap: clamp(40px, 6vw, 100px); max-width: 1728px; margin: auto; }
.footer-group { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.footer-group h2 { margin: 0 0 10px; font: 500 12px/1.5 var(--font); letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / 58%); }
.footer-group a { font: 500 22px/1.3 var(--font); min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; }
.footer-group p { margin: 0; font-size: 17px; color: rgb(255 255 255 / 78%); }
.footer-group a:focus-visible { outline-color: var(--lime); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: 1920px; margin: auto; padding: 32px var(--pad-x); }
.footer-bottom .brand img { width: 56px; height: 56px; }
.footer-bottom p { margin: 0; font-size: 13px; color: var(--muted); text-align: right; }
@media (hover: hover) and (pointer: fine) { .footer-group a:hover { opacity: .6; } }
@media (max-width: 767px) {
  .footer-top { padding: 48px 24px; }
  .footer-columns { grid-template-columns: 1fr; gap: 28px; }
  .footer-group a { font-size: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; padding: 28px 24px; }
  .footer-bottom p { text-align: left; }
}

/* ---------- Mobile action bar ---------- */
.bottom-actions { display: none; }
@media (width < 900px) {
  .bottom-actions {
    display: grid; grid-template-columns: 1fr 1fr; gap: 9px;
    position: fixed; z-index: 5; inset: auto 0 0; background: #fff; border-top: 1px solid var(--line);
    padding: 9px 16px calc(9px + env(safe-area-inset-bottom));
  }
  .bottom-actions .icon { color: var(--lime); }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: 80px; }
}

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .line i { animation: rise .55s calc(.15s + var(--i, 0) * 80ms) var(--ease) both; }
  .line i:nth-child(2) { --i: 1; } .line i:nth-child(3) { --i: 2; } .line i:nth-child(4) { --i: 3; }
  .line + .line i { --i: 4; } .line + .line i:nth-child(2) { --i: 5; } .line + .line i:nth-child(3) { --i: 6; }
  .hero-eyebrow { animation: rise .5s both; }
  .film { animation: fade .8s .55s both; }
  .details > * { animation: rise .45s 1s var(--ease) backwards; }
  .details .actions { animation-delay: 1.08s; }
  .details .trust { animation-delay: 1.16s; }
  .rotator[data-ready] { transition: width .44s var(--ease); }
  .rotator > span { transition: opacity .3s, transform .44s var(--ease); }
  .nav-indicator { transition: transform .25s ease-out, width .25s ease-out; }
  .secondary span::after, .svc-title, .spot-cta .icon, .why-cta .icon, .nav-cta .icon { transition: transform .22s var(--ease); }
  .spot-cta:hover .icon, .why-cta:hover .icon, .nav-cta:hover .icon { transform: translateX(4px); }
  .primary:active, .submit:active { transform: scale(.97); }
  .svc-panel { transition: grid-template-rows .3s ease, opacity .3s ease; }
  .svc .toggle { transition: transform .3s ease; }
  #mobile-menu[open] { animation: rise .25s ease-out; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-window { mask: none; }
  .marquee-track { width: 100%; justify-content: center; }
  .marquee-track ul { flex: 0 1 auto; flex-wrap: wrap; justify-content: center; padding: 0 20px; gap: 12px 28px; }
  .marquee-track ul[aria-hidden] { display: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }


/* Homepage footer */
.home-footer {
  background: radial-gradient(ellipse at 0 0, #0d4227, transparent 52%), #042a17;
  border-top: 3px solid var(--lime);
  color: #fff;
}
.home-footer-inner {
  max-width: 1312px;
  margin-inline: auto;
  padding-inline: var(--pad-x);
}
.home-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(100px, .65fr) minmax(0, 1fr);
  gap: 16px clamp(20px, 4vw, 56px);
  padding-block: clamp(20px, 3vw, 34px);
}
.home-footer-logo { place-self: start; max-width: 100%; }
.home-footer-logo img { display: block; height: auto; }
.home-footer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--lime);
  color: #042a17;
  font-weight: 650;
}
.home-footer-contact .home-footer-cta { margin-top: 12px; }
.home-footer-cta:hover { background: #a0e532; }
.home-footer-group { min-width: 0; }
.home-footer-group h2 {
  margin: 0 0 2px;
  color: #bde88b;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.home-footer-group a:not(.home-footer-cta) {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 32px;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.home-footer-contact a:first-of-type { font-weight: 650; }
.home-footer a:focus-visible { outline-color: #bde88b; }
.home-footer-group a:not(.home-footer-cta):hover,
.home-footer .footer-legal a:hover,
.home-footer .footer-credit a:hover { color: #bde88b; }
.home-footer-meta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 4px 24px;
  border-top: 1px solid rgb(255 255 255 / 20%);
  padding-block: 10px 16px;
  color: #c9ddcf;
  font-size: 13px;
}
.home-footer-meta p { margin: 0; }
.home-footer .footer-legal { grid-column: 1 / -1; justify-content: flex-start; gap: 0 14px; margin: 0; }
.home-footer .footer-legal a, .home-footer .footer-credit a {
  color: inherit;
  text-decoration-color: rgb(255 255 255 / 45%);
}
.home-footer .footer-legal a { min-height: 32px; }
@media (max-width: 760px) {
  .home-footer-main { grid-template-columns: minmax(92px, .55fr) minmax(0, 1fr); column-gap: 16px; }
  .home-footer-logo { grid-column: 1 / -1; }
  .home-footer-logo img { width: 120px; }
  .home-footer-cta { gap: 8px; padding-inline: 10px; font-size: 14px; }
  .home-footer-group a:not(.home-footer-cta) { min-height: 40px; }
  .home-footer-contact a[href^="mailto:"] { font-size: 15px; }
  .home-footer-meta { grid-template-columns: 1fr; }
  .home-footer .footer-legal { column-gap: 8px; }
}

/* Phone numbers never break across lines */
a[href^="tel:"] { white-space: nowrap; }
