/* Trend modules: hero footage, proof strip, before/after, quote form, call bar */

/* Hero footage mode */
.hero-footage { position: absolute; inset: 0; display: none; }
.hero-footage image-slot { width: 100%; height: 100%; --is-radius: 0; }
body[data-hero="footage"] .hero-footage { display: block; }
body[data-hero="footage"] #terrain { display: none; }

/* Hero video mode */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: none; }
body[data-hero="video"] .hero-video { display: block; }
body[data-hero="video"] #terrain { display: none; }

/* Proof strip (approved equipment facts) */
.proof { border-bottom: 1px solid var(--line); }

/* Before / after slider */
.ba-section { background: var(--bg-2); }
.ba-wrap {
  --pos: 50%;
  position: relative; border: 1px solid var(--line); border-radius: 8px;
  overflow: hidden; height: clamp(320px, 52vw, 560px); touch-action: pan-y;
  cursor: ew-resize; user-select: none;
}
.ba-layer { position: absolute; inset: 0; }
.ba-layer image-slot { width: 100%; height: 100%; }
.ba-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); z-index: 2; }
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); z-index: 3;
  width: 2px; background: var(--gold); transform: translateX(-1px);
  pointer-events: none;
}
.ba-handle::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center; font-size: 19px; font-weight: 700;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}
.ba-tag {
  position: absolute; top: 16px; z-index: 4; pointer-events: none;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  background: rgba(19, 16, 9, 0.78); color: var(--cream);
  padding: 6px 12px; border-radius: 3px;
}
.ba-tag.before { left: 16px; }
.ba-tag.after { right: 16px; }
.ba-note { margin-top: 14px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Quote form */
.quote-form { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 48px; }
.quote-form h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 26px; color: var(--cream); margin-bottom: 24px; }
.qf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; align-items: start; }
.qf-grid .full { grid-column: 1 / -1; }
.qf-field { display: flex; flex-direction: column; gap: 7px; }
.qf-field label { font-size: 11.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.qf-field input, .qf-field select, .qf-field textarea {
  background: var(--panel); border: 1px solid var(--line); border-radius: 5px;
  color: var(--cream); font-family: var(--font-body); font-size: 15.5px;
  padding: 13px 14px; outline: none; width: 100%;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus {
  border-color: var(--gold); box-shadow: 0 0 0 3px rgba(233, 169, 31, 0.15);
}
.qf-field textarea { min-height: 96px; resize: vertical; }
.qf-file { border: 1.5px dashed var(--line); border-radius: 5px; padding: 14px; color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color 0.25s ease, color 0.25s ease; text-align: center; }
.qf-file:hover { border-color: var(--gold); color: var(--cream); }
.qf-file input { display: none; }
.qf-actions { display: flex; align-items: center; gap: 20px; margin-top: 6px; flex-wrap: wrap; }
.qf-done { display: none; font-size: 17px; color: var(--cream); }
.qf-done strong { color: var(--gold); }
form.sent .qf-actions .btn { display: none; }
form.sent .qf-done { display: block; }
.qf-error { display: none; font-size: 15px; color: var(--red); }
form.error .qf-error { display: block; }
form.sending .qf-actions .btn { opacity: 0.6; pointer-events: none; }
/* honeypot: visually gone, still in the DOM for bots */
.qf-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Sticky mobile call bar */

@media (max-width: 700px) {
  /* 9/2 meeting: the sticky call bar is gone; its reserved padding was the
     white strip at the bottom of every mobile page. */
  .qf-grid { grid-template-columns: 1fr; }
}

/* ============ Phone layout pass ============ */
@supports (min-height: 100svh) {
  .hero { min-height: 100svh; }
}
@media (max-width: 700px) {
  /* nav: logo + theme toggle; calls live in the sticky bar */
  .nav { padding: 12px 18px; gap: 12px; }
  .nav.scrolled { padding: 10px 18px; }
  .nav-logo img, .nav.scrolled .nav-logo img { height: 36px; }
  .theme-toggle { margin-left: auto; }
  .nav-cta { display: none; }

  /* 9/2: phone hero is a full-frame video band with text below it;
     the layout rules live in woods-styles.css. Sizing kept here. */
  .hero { min-height: auto; padding: 76px 0 36px; }  /* 9/3 Dylan: 63px nav + 13px, same as the nav's own top padding */
  .hero h1 { font-size: clamp(22px, 9.4vw, 40px); line-height: 0.98; overflow-wrap: normal; hyphens: none; }  /* 9/3: floor lowered so zoomed phones shrink instead of breaking words */
  /* 9/2 PM, Dylan: the phone text block is a centered poster. One-line lead,
     Aggregates & Prices first (the phone visitor's number-one ask), the other
     two paired beneath, machinery backdrop at the CTA-band opacity, pause
     control on the video band. Desktop keeps its own order and paragraph. */
  .hero-inner { position: relative; text-align: center; }
  .hero-inner::before {
    content: ""; position: absolute; inset: 0 -20px -36px; pointer-events: none;
    background: url(assets/work/woods-loader-deere.jpg) center 45% / cover;
    filter: grayscale(1); opacity: 0.14;
  }
  .hero-inner > * { position: relative; }
  .hero-sub { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero-sub-more { display: none; }
  .hero-sub-row { margin-top: 18px; justify-content: center; }
  .hero .hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 18px; width: 100%; margin-top: 6px; }
  .hero .hero-ctas .btn-chev { flex: 0 0 auto; white-space: nowrap; font-size: 12px; letter-spacing: 0.09em; padding: 10px 0; gap: 9px; }
  .hero .hero-ctas .btn-chev:nth-child(2) { order: -1; flex-basis: 100%; justify-content: center; font-size: 13.5px; padding: 12px 0; }
  .hero .hero-ctas .btn-chev .chev { width: 13px; height: 15px; }
  .hero .video-toggle { top: calc(76px + 56.25vw - 46px); bottom: auto; right: 12px; }
  .hero-inner { padding: 36px 20px 0; }
  .hero-sub { font-size: 15.5px; }
  .hero-sub-row { margin-top: 24px; gap: 20px; }
  .hero-ctas { width: 100%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; padding: 15px 18px; font-size: 13.5px; }
  .tod-chip { font-size: 11.5px; padding: 6px 12px 6px 10px; margin-bottom: 18px; }

  .section-pad { padding: 68px 20px; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: clamp(32px, 9.5vw, 44px); }
  .why-statement { font-size: clamp(30px, 8.8vw, 42px); }
  .why-body { font-size: 16.5px; margin-top: 26px; }
  .marquee { padding: 20px 0; }
  .marquee-track { font-size: 34px; }
  .stat { padding: 26px 20px; }
  .stat .stat-big { font-size: 38px; }
  .how-block { padding: 28px 22px 26px; }
  .quote-band { padding: 68px 20px; }
  .quote-band blockquote { font-size: 23px; }
  .cta-band h2 { font-size: clamp(36px, 10vw, 52px); }
  .cta-band .inner { gap: 36px; }
  .phone-xl { font-size: clamp(32px, 10vw, 44px); }
  .ba-wrap { height: 64vw; }
  .footer { padding-bottom: 22px; }
  .footer .foot-links { margin-left: 0; flex-direction: column; gap: 4px; }
}

/* Quote form as a machined steel plate: pinstripe marker on the heading,
   framed plate with the card bevel and tread, recessed input slots. */
.quote-form {
  position: relative; isolation: isolate;
  border: 1px solid var(--line); border-radius: 8px;
  background: var(--panel); padding: 40px 36px 36px;
  /* Lifted 9/1 (Dylan: make the forms pop). Three layers: hairline highlight on
     the top edge, a tight contact shadow, and a wider ambient cast so the plate
     reads as sitting above the photo backdrops now behind it. */
  box-shadow:
    inset 0 1px 0 rgba(242, 237, 225, 0.09),
    0 2px 4px rgba(0, 0, 0, 0.5),
    0 28px 60px -18px rgba(0, 0, 0, 0.62);
}
/* Light mode needs its own values: the dark cast reads muddy on cream, so it
   goes softer and wider instead of darker. */
html[data-theme="light"] .quote-form {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 2px 4px rgba(24, 20, 16, 0.10),
    0 26px 56px -20px rgba(24, 20, 16, 0.28);
}
.quote-form::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  border-radius: 8px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg stroke-width='7' stroke-linecap='round' fill='none'%3E%3Cg stroke='%23000000' stroke-opacity='0.55'%3E%3Cpath d='M10 25 L24 11'/%3E%3Cpath d='M42 57 L56 43'/%3E%3C/g%3E%3Cg stroke='%23ffffff' stroke-opacity='0.55'%3E%3Cpath d='M8 23 L22 9'/%3E%3Cpath d='M40 55 L54 41'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  background-size: 46px 46px;
  opacity: 0.04;
}
.quote-form h3::before {
  content: ""; display: block; width: 44px; height: 6px; margin-bottom: 14px;
  background: linear-gradient(to bottom,
    var(--red) 0, var(--red) 2px,
    #fcc724 2px, #fcc724 4px,
    var(--stripe-white) 4px, var(--stripe-white) 6px);
}
.qf-field input, .qf-field select, .qf-field textarea {
  background: rgba(0, 0, 0, 0.22);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(242, 237, 225, 0.04);
}
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus {
  border-color: var(--gold);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.28), inset 0 -1px 0 rgba(242, 237, 225, 0.04), 0 0 0 3px rgba(252, 199, 36, 0.16);
}
.qf-file { background: rgba(0, 0, 0, 0.14); }
@media (max-width: 700px) {
  .quote-form { padding: 28px 20px 26px; }
}

/* Quick message / project intake switcher */
.form-switch {
  display: inline-flex; gap: 2px; margin-top: 24px; padding: 3px;
  border: 1px solid var(--line); border-radius: 99px;
}
.form-switch button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-size: 12px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); border-radius: 99px; padding: 8px 16px;
  transition: background 0.2s ease, color 0.2s ease;
}
.form-switch button.on { background: var(--red); color: #ffffff; }
form.quote-form[hidden] { display: none; }

/* Contact page office map: same plate frame as the cards */
.map-embed {
  margin-top: 30px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  box-shadow:
    inset 0 1px 0 rgba(242, 237, 225, 0.07),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 12px 28px -10px rgba(0, 0, 0, 0.4);
}
.map-embed iframe { display: block; width: 100%; height: 400px; border: 0; }
html[data-theme="light"] .map-embed {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 1px 2px rgba(33, 27, 19, 0.07),
    0 10px 24px -10px rgba(33, 27, 19, 0.14);
}
.map-embed .map-open {
  display: block; padding: 12px 16px; font-size: 13px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  border-top: 1px solid var(--line); transition: color 0.2s ease;
}
.map-embed .map-open:hover { color: var(--cream); }

/* Intake form: official document sections + checkbox scope grid */
.qf-intro { margin: -8px 0 20px; max-width: 620px; font-size: 14.5px; color: var(--muted); }
.qf-legend {
  grid-column: 1 / -1;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); padding-top: 18px; margin-top: 6px;
  border-top: 1px solid var(--line);
}
.qf-grid .qf-legend:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.qf-checks {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 10px 20px;
}
.qf-check {
  display: flex; align-items: center; gap: 10px;
  color: var(--muted); font-size: 14.5px; cursor: pointer;
}
.qf-check input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; flex-shrink: 0; }
.qf-check:hover { color: var(--cream); }
/* required-field marker, stamped by woods-modules.js from [required] */
.req-star { color: var(--red); font-weight: 700; }

/* marketing opt-in: unchecked by default; the lead records the choice either way */
.qf-consent {
  grid-column: 1 / -1;
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--muted); font-size: 13.5px; line-height: 1.55; cursor: pointer;
  padding-top: 2px;
}
.qf-consent input { width: 16px; height: 16px; accent-color: var(--red); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.qf-consent strong { color: var(--cream); }

.qf-field input[type="date"] { color-scheme: dark; }
html[data-theme="light"] .qf-field input[type="date"] { color-scheme: light; }

/* Inline submission success: the confirmation animates in place of the fields */
.qf-success { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 24px 0 16px; width: 100%; }
.qf-success svg { width: 96px; height: 96px; display: block; }
.qf-success .tym-ring {
  fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transform: rotate(-90deg); transform-origin: 60px 60px;
  animation: tym-ring 0.7s cubic-bezier(0.3, 0.7, 0.2, 1) 0.1s forwards;
}
.qf-success .tym-check {
  fill: none; stroke: var(--cream); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 70; stroke-dashoffset: 70;
  animation: tym-check 0.4s cubic-bezier(0.3, 0.7, 0.3, 1) 0.7s forwards;
}
.qf-success svg { animation: tym-pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) 1.1s; }
.qf-success .tym-stripe {
  width: 0; height: 6px; margin-top: 18px;
  background: linear-gradient(to bottom, #cd142b 0 2px, #fcc724 2px 4px, #ffffff 4px 6px);
  animation: tym-stripe 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) 1.15s forwards;
}
.qf-success h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: 30px; color: var(--cream); margin-top: 22px; }
.qf-success p { color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 480px; margin-top: 8px; }
.qf-success p strong, .qf-success p a { color: var(--cream); }
@keyframes tym-ring { to { stroke-dashoffset: 0; } }
@keyframes tym-check { to { stroke-dashoffset: 0; } }
@keyframes tym-pop { 0% { transform: scale(1); } 40% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes tym-stripe { to { width: 96px; } }
@media (prefers-reduced-motion: reduce) {
  .qf-success .tym-ring, .qf-success .tym-check { animation: none; stroke-dashoffset: 0; }
  .qf-success svg { animation: none; }
  .qf-success .tym-stripe { animation: none; width: 96px; }
}
.qf-success h3::before { display: none; }

/* follow prompt under the inquiry/intake confirmations */
.qf-social {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center;
  margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line);
  opacity: 0; animation: qf-social-in 0.5s ease 1.5s forwards;
}
.qf-social span { font-size: 12.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.qf-social-links { display: flex; gap: 10px; }
.qf-social-links a {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: 6px; color: var(--muted);
  transition: color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}
.qf-success .qf-social-links svg { width: 15px; height: 15px; animation: none; }
.qf-social-links a:hover, .qf-social-links a:focus-visible {
  color: var(--gold); border-color: rgba(252, 199, 36, 0.8);
  box-shadow: 0 0 18px rgba(252, 199, 36, 0.35), inset 0 0 8px rgba(252, 199, 36, 0.12);
  transform: translateY(-2px);
}
body[data-motion="off"] .qf-social-links a:hover { transform: none; }
@keyframes qf-social-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .qf-social { animation: none; opacity: 1; }
}

/* security reassurance strip on sensitive forms */
.qf-secure {
  grid-column: 1 / -1;
  display: flex; gap: 12px; align-items: flex-start;
  border: 1px solid var(--line); border-radius: 6px; padding: 14px 16px;
  background: rgba(242, 237, 225, 0.04);
}
.qf-secure svg { width: 19px; height: 19px; color: var(--gold); flex-shrink: 0; margin-top: 1px; }
.qf-secure p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.qf-secure a { color: var(--cream); }
html[data-theme="light"] .qf-secure { background: #fbf8f1; }
html[data-theme="light"] .qf-secure svg { color: #b08502; }

/* ---------- 9/3 stress audit: nothing may be wider than the screen ----------
   Found at 320px and at 250/213px (a 375/320 phone with 150% page zoom). Grids
   and cards carried pixel minimums of 280-320px; below that they pushed off the
   right edge. Every multi-column grid here already collapses to one column on
   phones, so a zero minimum costs nothing wider up. */
img, video, svg, iframe { max-width: 100%; }
/* Icon SVGs sized by attributes (nav carets, theme toggle, chevrons, socials) must not
   inherit the percentage cap: Safari resolves it to 0 inside inline-flex buttons and the
   icon disappears (Dylan 9/3, theme toggle rendered as a bare red pill). */
svg[width][height] { max-width: none; flex: 0 0 auto; }
.theme-toggle button svg { width: 15px; height: 15px; }
@media (max-width: 420px) {
  .cap-grid, .svc-grid, .how-grid, .people-grid, .proj-list, .dir-list, .cap-map, .cap-map-5, .cap-map-6, .pit-grid,
  .quote-split, .vo-slide, .intro-split, .apply-grid, .contact-split, .vtheater, .qf-grid { grid-template-columns: minmax(0, 1fr); }
  .qf-grid .full, .qf-grid .qf-legend { grid-column: 1; }
  .cta-band .inner, .cta-simple .cta-col { grid-template-columns: minmax(0, 1fr); }
  .cta-band h2, .sec-title, .dir-item h3, .county-card h3, .cap-tile-head { overflow-wrap: anywhere; white-space: normal; }
  .sec-title { font-size: clamp(24px, 9.5vw, 44px); }
  .dir-item h3 { font-size: clamp(18px, 6.5vw, 24px); }
  .footer-brand p, .vt-desc, .about-lede, .lede { max-width: 100%; }
  .county-card, .cap-card, .svc-card, .bene-card, .quote-body, blockquote { min-width: 0; }
  .vo-slide blockquote, .quote-split blockquote { font-size: clamp(17px, 5.6vw, 24px); }
  .calc-drawer .calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 300px) {
  .nav-logo img { height: 36px; }           /* the header keeps logo, toggle and menu on screen at 150% zoom on a 320 phone */
  .footer-col h5 { letter-spacing: 0.1em; overflow-wrap: anywhere; }
  .footer-col a, .footer-col .f-item { overflow-wrap: anywhere; }
}
/* tap targets: the testimonial dots stay small to look at but get a 28px hit area; the Show-all link gets height */
.vo-dot { position: relative; }
.vo-dot::after { content: ""; position: absolute; inset: -9px; }
.wwd-panel .wwd-expand { padding: 6px 0; }

/* 9/3 stress audit, round two */
@media (max-width: 420px) {
  .btn, .btn-chev { white-space: normal; max-width: 100%; }
  .footer-col, .footer-brand { min-width: 0; }
  .footer-col p, .footer-col .f-item, .footer-brand p, .vt-info, .vt-t, .vt-m, .county-card li, .town-list li { overflow-wrap: anywhere; min-width: 0; }
  .county-card ul, .town-list { columns: 1 !important; grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 340px) {
  .cf-turnstile { transform: scale(0.78); transform-origin: left top; max-width: 100%; }
}

@media (max-width: 420px) {
  .cap-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .cap-grid > * { min-width: 0; max-width: 100%; }
  .cap-go { white-space: normal; flex-wrap: wrap; }
}
