/* J&J South Range Disposal — styles
   Palette from the business card: mesquite dark, parchment, flag red, navy. */

@font-face { font-family: "Bebas Neue"; src: url("fonts/bebas-neue-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Freshman"; src: url("fonts/freshman-sub.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Metric-matched fallbacks so the swap doesn't shift the layout */
@font-face { font-family: "Bebas Fallback"; src: local("Arial Narrow"), local("ArialNarrow"), local("Roboto Condensed"), local("Arial"); size-adjust: 82%; ascent-override: 110%; descent-override: 30%; }
@font-face { font-family: "Barlow Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 94%; ascent-override: 104%; descent-override: 22%; }

:root {
  --bg: #17110D;
  --bg-2: #211812;
  --bg-3: #2B2019;
  --line: #3E2E24;
  --parch: #EADCC2;
  --parch-2: #BCAB8E;
  --red: #B8252F;
  --red-dark: #961C25;
  --red-hi: #DE3A44;
  --navy: #1E2A47;
  --navy-2: #2C3C63;

  --f-display: "Bebas Neue", "Bebas Fallback", Impact, sans-serif;
  --f-body: "Barlow", "Barlow Fallback", system-ui, sans-serif;
  --f-num: "Freshman", "Bebas Neue", Impact, sans-serif;

  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1320px;
  --header-h: 68px;

  --ease-out: cubic-bezier(.16, .84, .24, 1);
  --ease-in: cubic-bezier(.55, 0, .75, .2);
  --ease-drop: cubic-bezier(.34, 1.36, .5, 1);
  --ease-spring: cubic-bezier(.3, 1.15, .5, 1);
  --t-fast: 160ms;
  --t-med: 280ms;
}
/* A damped spring (about 2% overshoot, settled by 75%) where the browser can draw one */
@supports (transition-timing-function: linear(0, 1)) {
  :root { --ease-spring: linear(0, 0.049, 0.164, 0.307, 0.454, 0.589, 0.705, 0.8, 0.873, 0.928, 0.966, 0.992, 1.007, 1.016, 1.019, 1.02, 1.018, 1.016, 1.013, 1.01, 1.007, 1.005, 1.003, 1.002, 1.001, 1, 1, 1, 1, 1, 1, 1, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--parch);
  font: 400 1.0625rem/1.6 var(--f-body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 400; line-height: .92; letter-spacing: .005em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.icon { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }

:focus-visible { outline: 2px solid var(--parch); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--parch); color: var(--bg); padding: 10px 14px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px; padding: 0 1.4em;
  font: 600 1.0625rem/1 var(--f-body); letter-spacing: .01em;
  text-decoration: none; border: 1px solid transparent; border-radius: 4px; cursor: pointer;
  transition: background-color var(--t-fast) linear, border-color var(--t-fast) linear, color var(--t-fast) linear,
              transform 140ms var(--ease-out), box-shadow 140ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
/* Pressed: the button sinks a pixel and its top light goes out, like a real key */
.btn--red { background: var(--red); color: var(--parch); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13); }
.btn--red:hover { background: var(--red-dark); }
.btn:active { transform: translateY(1px); transition-duration: 60ms; }
.btn--red:active { background: #7E161E; box-shadow: inset 0 2px 5px rgba(0, 0, 0, .32); }
.btn--ghost { border-color: rgba(234, 220, 194, .45); color: var(--parch); background: transparent; }
.btn--ghost:hover { border-color: var(--parch); background: rgba(234, 220, 194, .06); }
.btn--ghost:active { background: rgba(234, 220, 194, .11); }
.btn--sm { min-height: 44px; padding: 0 1em; font-size: 1rem; }
.btn--block { width: 100%; }

.link-btn {
  background: none; border: 0; padding: 10px 0; min-height: 44px; cursor: pointer;
  font-weight: 600; color: var(--parch); -webkit-tap-highlight-color: transparent;
}

/* ---------- Lockup (rebuilt from the card's lettering) ---------- */
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--parch); }
.lockup__jj { height: 30px; width: auto; aspect-ratio: 2166 / 842; fill: currentColor; }
.lockup__words { display: flex; flex-direction: column; gap: 3px; }
.lockup__sr { height: 11px; width: auto; aspect-ratio: 7958 / 842; fill: var(--red-hi); }
.lockup__disposal { font: 600 .625rem/1 var(--f-body); letter-spacing: .42em; text-transform: uppercase; color: var(--parch-2); }
.lockup--lg .lockup__jj { height: 52px; }
.lockup--lg .lockup__sr { height: 18px; }
.lockup--lg .lockup__disposal { font-size: .8rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) {
  @media (min-width: 900px) { .site-header { background: rgba(23, 17, 13, .82); backdrop-filter: blur(10px); } }
}
.site-header__inner { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 24px; }
.site-nav { display: none; gap: 4px; margin-left: 24px; }
.site-nav a { padding: 10px 12px; text-decoration: none; font-weight: 500; color: var(--parch-2); transition: color var(--t-fast) linear; }
.site-nav a:hover { color: var(--parch); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.header-call { display: none; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 4px; padding: 2px; }
.lang button {
  min-width: 44px; min-height: 44px; border: 0; background: transparent; cursor: pointer;
  font: 600 .875rem/1 var(--f-body); letter-spacing: .06em; color: var(--parch-2); border-radius: 2px;
  transition: background-color var(--t-fast) linear, color var(--t-fast) linear;
}
.lang button[aria-pressed="true"] { background: var(--navy-2); color: var(--parch); }
@media (min-width: 900px) { .site-nav { display: flex; } .header-call { display: inline-flex; } }

/* ---------- Hero: four quadrants split by a red cross, star at the crossing ---------- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 100%;
  grid-template-areas: "brand" "photo" "copy" "prices";
  --row1: auto;
  isolation: isolate;
}
/* The Texas artwork is the hero's backmost layer: never above the photo, type or red rules.
   Clip and fade only this layer so the crossing star and its glow can still overflow. */
.hero__backdrop {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 62%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 22%, transparent 62%);
}
.hero__texas {
  position: absolute; top: -24vw; left: -18%;
  width: 140%; max-width: none; height: auto; opacity: .27;
  transform: translate3d(0, var(--texas-drift, 0px), 0);
}
@media (max-width: 899px) {
  .hero__backdrop { grid-area: brand; -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); }
  .hero__texas { top: -45vw; }
}
@media (min-width: 900px) {
  .hero__texas { top: -180px; left: -10%; width: clamp(680px, 64vw, 1150px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__texas { transform: none; }
}
@media (forced-colors: active) {
  .hero__backdrop { display: none; }
}
.hero__brand { grid-area: brand; display: flex; align-items: flex-end; padding: 28px var(--gutter) 0; }
.hero__jj-clip { overflow: hidden; width: 100%; }
.hero__jj { width: calc(100% - 52px); height: auto; aspect-ratio: 2166 / 842; fill: var(--parch); margin-bottom: -1px; }

.hero__photo { grid-area: photo; margin: 0; position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #3a2418; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
@media (min-width: 900px) { .hero__photo img { object-position: 40% 60%; } }
.hero__photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,17,13,0) 45%, rgba(23,17,13,.72) 100%); pointer-events: none; }
.hero__pin { position: absolute; z-index: 1; right: var(--gutter); bottom: 18px; display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.35; }
.hero__pin strong { display: block; font-weight: 600; }
.hero__pin span span { color: var(--parch); opacity: .86; }
.hero__pin-star { width: 22px; height: 22px; fill: var(--red-hi); margin-top: 1px; }

.hero__hline { position: relative; grid-column: 1 / -1; grid-row: 2; align-self: start; height: 2px; margin-top: -1px; background: var(--red-hi); box-shadow: 0 0 14px rgba(222, 58, 68, .55); z-index: 2; }
.hero__vline { display: none; }
.hero__node {
  display: grid; place-items: center; position: relative; z-index: 3;
  grid-row: 2; grid-column: 1; justify-self: end; align-self: start; margin-right: var(--gutter);
  width: 40px; height: 40px; translate: 0 -50%;
  border: 2px solid var(--red-hi); border-radius: 50%; background: var(--bg);
  box-shadow: 0 0 0 5px rgba(23, 17, 13, .9), 0 0 22px rgba(222, 58, 68, .6);
}
.hero__node svg { width: 19px; height: 19px; fill: var(--red-hi); }

.hero__copy { grid-area: copy; padding: 40px var(--gutter) 8px; }
.hero__title { font-size: clamp(3rem, 0.6rem + 4.7vw, 5.5rem); }
.hero__title span { display: block; }
.hero__lede { margin-top: 20px; max-width: 42ch; font-size: 1.1875rem; color: var(--parch-2); }
.hero__ctas { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.nowrap { white-space: nowrap; }
@media (max-width: 559px) { .hero__ctas .btn { width: 100%; } .hero__ctas .btn--ghost { flex-wrap: wrap; column-gap: .4em; row-gap: 2px; padding-block: 10px; } }

.hero__prices { grid-area: prices; padding: 36px var(--gutter) 56px; }
.hero__prices-label { color: var(--parch-2); font-size: .9375rem; margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tile {
  display: flex; flex-direction: column; gap: 6px; padding: 20px 18px 18px; min-height: 168px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 4px; text-decoration: none;
  transition: border-color var(--t-med) linear, background-color var(--t-med) linear;
}
.tile:hover { border-color: rgba(222, 58, 68, .7); background: var(--bg-3); }
.price-currency { display: inline-block; font-size: .6em; line-height: 1; vertical-align: .45em; margin-right: .08em; }
.price-table .price-currency { font-size: .75em; vertical-align: .2em; }
.tile__num { font: 400 clamp(2.5rem, 1.6rem + 2.6vw, 3.75rem)/1 var(--f-num); color: var(--parch); margin-bottom: auto; padding-bottom: 14px; }
.tile__name { font-weight: 600; }
.tile__desc { font-size: .9375rem; color: var(--parch-2); line-height: 1.4; }


@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: clamp(320px, calc(100svh - var(--header-h) - 420px), 540px) auto;
    grid-template-areas: "brand photo" "copy prices";
  }
  .hero__brand { padding: 40px clamp(24px, 4vw, 64px) 0 max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .hero__photo { aspect-ratio: auto; }
  .hero__jj { width: 100%; }
  .hero__photo::after { background: linear-gradient(200deg, rgba(23,17,13,0) 40%, rgba(23,17,13,.7) 100%); }
  .hero__pin { right: clamp(24px, 3vw, 48px); bottom: 26px; }
  .hero__vline { display: block; position: relative; grid-column: 2; justify-self: start; width: 2px; margin-left: -1px; background: var(--red-hi); box-shadow: 0 0 14px rgba(222, 58, 68, .55); z-index: 2; }
  .hero__vline--top { grid-row: 1; }
  .hero__vline--bottom { grid-row: 2; }
  .hero__node { grid-column: 2; justify-self: start; margin-right: 0; width: 46px; height: 46px; translate: -50% -50%; box-shadow: 0 0 0 6px rgba(23, 17, 13, .9), 0 0 22px rgba(222, 58, 68, .6); }
  .hero__node svg { width: 22px; height: 22px; }
  .hero__copy { padding: 52px clamp(24px, 4vw, 64px) 72px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); }
  .hero__prices { padding: 52px max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))) 72px clamp(40px, 5vw, 80px); display: flex; flex-direction: column; justify-content: flex-start; }
  .tiles { max-width: 520px; gap: 16px; }
  .tile { min-height: 200px; padding: 24px 22px 22px; }
}

/* Hero entrance: one orchestrated sequence. Headline and buttons are never hidden. */
@media (prefers-reduced-motion: no-preference) {
  .hero__hline { animation: draw-x 900ms var(--ease-out) 80ms both; }
  .hero__vline--top { transform-origin: 50% 100%; animation: draw-y 700ms var(--ease-out) 380ms both; }
  .hero__vline--bottom { transform-origin: 50% 0; animation: draw-y 700ms var(--ease-out) 380ms both; }
  .hero__node { animation: node-in 700ms var(--ease-drop) 300ms both; }
  .hero__jj { animation: rise 1000ms var(--ease-out) 260ms both; }
  .hero__photo picture { display: block; height: 100%; animation: unveil 1100ms var(--ease-out) 420ms both; }
  .hero__photo img { animation: settle 1800ms var(--ease-out) 420ms both; }
  .hero__pin { animation: fade-up 600ms var(--ease-out) 1100ms both; }
  .tile { animation: fade-up 600ms var(--ease-out) both; }
  .tile:nth-child(1) { animation-delay: 950ms; }
  .tile:nth-child(2) { animation-delay: 1050ms; }
}
@keyframes draw-x { from { transform: scaleX(0); } }
@keyframes draw-y { from { transform: scaleY(0); } }
@keyframes node-in { from { transform: scale(0) rotate(-144deg); opacity: 0; } }
@keyframes rise { from { transform: translateY(104%); } }
@keyframes unveil { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.12); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections & the drawn rule ---------- */
.section { position: relative; padding-block: clamp(64px, 8vw, 120px); }
.rule { position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.rule__line { position: absolute; inset: 0; background: var(--line); }
.rule__star { position: absolute; top: 50%; left: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); width: 22px; height: 22px; translate: 0 -50%; fill: var(--red-hi); }
.js .rule[data-draw] .rule__line { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1100ms var(--ease-out); }
.js .rule[data-draw] .rule__star { transform: scale(0) rotate(-72deg); transition: transform 600ms var(--ease-drop) 150ms; }
.js .rule[data-draw].is-in .rule__line { transform: none; }
.js .rule[data-draw].is-in .rule__star { transform: none; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(40px, 5vw, 72px); }
.section-head h2 { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.25rem); max-width: 14ch; }
.section-head p { font-size: 1.1875rem; color: var(--parch-2); max-width: 46ch; }
@media (min-width: 900px) {
  .section-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 48px; }
  .section-head p { padding-left: clamp(40px, 5vw, 80px); }
}

/* ---------- Services: a 2×2 split by the same cross ---------- */
.svc-grid { display: grid; grid-template-columns: 1fr; border-top: 1px solid var(--line); }
.svc { position: relative; padding: 36px 0 32px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-content: start; }
/* The icon spans just the heading and description, not the price/actions below. */
.svc__icon { grid-column: 1; grid-row: 1 / span 2; align-self: center; width: 40px; height: 40px; fill: var(--red-hi); }
.svc h3 { grid-column: 2 / -1; grid-row: 1; font-size: clamp(2.25rem, 1.8rem + 1.6vw, 3.25rem); }
.svc p { color: var(--parch-2); margin-top: 10px; max-width: 38ch; }
.svc > p:not(.svc__from) { grid-column: 2 / -1; grid-row: 2; margin-top: 4px; }
.svc .svc__from { grid-column: 2; grid-row: 3; color: var(--parch); margin-top: 16px; display: flex; align-items: baseline; gap: .4em; font-weight: 500; }
.svc__from .num { font: 400 1.75rem/1 var(--f-num); }
.svc .link-btn { grid-column: 2; grid-row: 4; justify-self: start; margin-top: 6px; }
@media (min-width: 760px) {
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .svc { padding: 48px clamp(24px, 4vw, 64px) 44px 0; }
  .svc:nth-child(even) { padding-left: clamp(40px, 5vw, 80px); padding-right: 0; border-left: 1px solid var(--line); }
  .svc:nth-child(1)::after {
    content: ""; position: absolute; right: -6px; bottom: -6px; width: 11px; height: 11px; z-index: 2;
    background: var(--red-hi); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    transform: scale(1.6) rotate(var(--spin, 0deg));
    transition: transform 760ms var(--ease-drop);
  }
}

/* ---------- Estimator ---------- */
.estimator { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }
.est { display: grid; gap: 28px; grid-template-areas: "stage" "controls" "after"; }
.est__stage { grid-area: stage; display: grid; gap: 20px; }
.est__controls { grid-area: controls; }
.est__after { grid-area: after; display: grid; gap: 14px; justify-items: start; }
.trailer { width: 100%; height: auto; overflow: visible; }

/* Phones: the trailer and price ride along at the top while you pick, so every tap shows its result */
@media (max-width: 899px) {
  .est__stage {
    position: sticky; top: var(--header-h); z-index: 5;
    grid-template-columns: 1fr auto; align-items: end; gap: 16px;
    margin-inline: calc(var(--gutter) * -1); padding: 14px var(--gutter) 12px;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
  }
  .est__stage .t-ground { display: none; }
  .est__stage .est__price { font-size: clamp(2.75rem, 1.5rem + 6vw, 4rem); padding-bottom: 6px; }
  .seg input { scroll-margin-top: calc(var(--header-h) + 170px); }
  .est__after .btn { width: 100%; }
}
.t-ground { stroke: var(--line); stroke-width: 2; }
.frame .t-rail, .frame .t-tongue { fill: none; stroke: var(--parch); stroke-width: 5; stroke-linecap: square; }
.frame .t-floor { fill: var(--parch); }
.frame .t-hitch { fill: none; stroke: var(--parch); stroke-width: 4; }
.frame .t-wheel { fill: var(--bg); stroke: var(--parch); stroke-width: 6; }
.frame .t-hub { fill: var(--parch); }
.frame .t-reflector { fill: var(--red-hi); }
.junk > * { stroke: var(--bg); stroke-width: 3; stroke-linejoin: round; }
.junk .j1 { fill: #6E4F3C; }
.junk .j2 { fill: #8E6E52; }
.junk .j3 { fill: #B39A76; }
.junk .j4 { fill: #3A2A20; stroke: none; }
.junk .j-red { fill: var(--red); }
.junk .j-navy { fill: var(--navy-2); }
.junk .j-line { fill: none; stroke: var(--bg); stroke-width: 3; stroke-linecap: round; }
.junk .j-branch { fill: none; stroke: #A08F6E; stroke-width: 5; stroke-linecap: round; }
.junk .j-tire { fill: #2a201a; stroke: #4a3a2e; stroke-width: 10; }
.junk { transition: transform 560ms var(--ease-drop) var(--d), opacity 200ms linear var(--d); }
.junk.is-out { transform: translateY(-90px); opacity: 0; transition: transform 260ms ease-in, opacity 180ms linear; }

.est__price { font: 400 clamp(4.5rem, 3rem + 7vw, 8.5rem)/1 var(--f-num); color: var(--parch); }
.est__price-num { display: inline-block; }
.est__sentence { color: var(--parch-2); max-width: 44ch; }

.seg { border: 0; margin: 0 0 28px; padding: 0; min-width: 0; }
.seg legend { font-weight: 600; padding: 0; margin-bottom: 12px; }
.seg__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg label > span {
  display: flex; flex-direction: column; justify-content: center; gap: 4px;
  min-height: 52px; padding: 12px 14px; border: 1px solid #8A7259; border-radius: 4px; background: var(--bg);
  font-weight: 500; line-height: 1.25;
  transition: border-color var(--t-fast) linear, background-color 360ms var(--ease-out);
}
.seg small { font-size: .875rem; color: var(--parch-2); font-weight: 400; }
.seg b { font-weight: 600; }
.seg label:hover > span { border-color: var(--parch-2); }
.seg input:checked + span { border-color: var(--red-hi); background: rgba(184, 37, 47, .16); box-shadow: inset 0 0 0 1px var(--red-hi); }
.seg input:focus-visible + span { outline: 2px solid var(--parch); outline-offset: 3px; }
.seg--sizes label > span { min-height: 84px; }

@media (min-width: 900px) {
  .est { grid-template-columns: minmax(300px, .8fr) 1.2fr; grid-template-areas: "controls stage" "controls after"; column-gap: clamp(40px, 6vw, 96px); row-gap: 14px; align-items: start; }
}

.price-table { margin-top: clamp(56px, 7vw, 96px); }
.price-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.price-table > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding-block: 10px; border-bottom: 1px solid var(--line);
  font: 400 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--f-display);
}
.price-table > summary::-webkit-details-marker { display: none; }
.price-table table { margin-top: 4px; }
.price-note { margin-top: 16px; }
.price-table th, .price-table td { padding: 14px 10px; border-bottom: 1px solid var(--line); text-align: right; }
.price-table thead th { font-weight: 600; color: var(--parch-2); font-size: .9375rem; }
.price-table tbody th { text-align: left; font-weight: 600; }
.price-table td { position: relative; font: 400 1.375rem/1 var(--f-num); transition: background-color var(--t-med) linear, color var(--t-med) linear; }
.price-table td.is-on { background: rgba(184, 37, 47, .18); color: var(--parch); }
@media (max-width: 560px) {
  .price-table th, .price-table td { padding: 12px 6px; }
  .price-table td { font-size: 1.125rem; }
  .price-table thead th { font-size: .875rem; }
  .price-table tbody th { font-size: .9375rem; }
}
.fine { font-size: .9375rem; color: var(--parch-2); max-width: 70ch; }

/* ---------- Navy band with the badge ---------- */
.band { background: var(--navy); padding-block: clamp(64px, 8vw, 120px); overflow: hidden; }
.band__inner { display: grid; gap: 40px; justify-items: center; text-align: center; }
.band__badge { width: min(78vw, 440px); }
.band__badge img { width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .45)); }
.band__copy h2 { font-size: clamp(3rem, 1.6rem + 5vw, 6rem); }
.band__copy h2 span { display: block; }
.band__tag { margin-top: 18px; font: 400 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1 var(--f-num); color: var(--parch-2); }
html[lang="es"] .band__tag { display: none; }
.stars-list { margin-top: 28px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 0; font-weight: 600; }
.stars-list li { display: inline-flex; align-items: center; }
.stars-list li + li::before {
  content: ""; width: 12px; height: 12px; margin: 0 14px; background: var(--red-hi);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@media (min-width: 900px) {
  .band__inner { grid-template-columns: auto 1fr; text-align: left; justify-items: start; align-items: center; gap: clamp(48px, 7vw, 112px); }
  .stars-list { justify-content: flex-start; }
}
@media (prefers-reduced-motion: no-preference) {
  .js .band__badge[data-reveal] img { transform: rotate(-14deg) scale(.9); opacity: 0; transition: transform 1200ms var(--ease-out), opacity 500ms linear; }
  .js .band__badge[data-reveal].is-in img { transform: none; opacity: 1; }
}

/* ---------- Quote ---------- */
.quote__inner { display: grid; gap: 48px; }
.quote__intro h2 { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.25rem); }
.quote__intro > p { margin-top: 18px; font-size: 1.1875rem; color: var(--parch-2); max-width: 44ch; }
.steps { margin-top: 36px; display: grid; gap: 0; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps__n { font: 400 2rem/1 var(--f-num); color: var(--red-hi); }
.steps p { padding-top: 4px; max-width: 46ch; }
/* Wider screens: a step that wraps to two lines centres its number on the whole step.
   Phones keep the number on the first line; beside three lines a centred number drifts. */
@media (min-width: 600px) {
  .steps li { align-items: center; }
  .steps li p { padding-top: 0; }
}
.quote__alt { margin-top: 28px; color: var(--parch-2); }
.quote__alt a { display: inline-block; padding-block: 10px; color: var(--parch); font-weight: 600; text-decoration: none; }
@media (min-width: 980px) { .quote__inner { grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 112px); align-items: start; } }

.qform { background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: clamp(20px, 3.5vw, 40px); display: grid; gap: 20px; }
.qform__row { display: grid; gap: 20px; }
@media (min-width: 560px) { .qform__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 8px; align-content: start; }
.field label { font-weight: 600; font-size: 1rem; }
.req { color: var(--red-hi); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 4px;
  background: linear-gradient(var(--red-hi), var(--red-hi)) 0 100% / 0% 2px no-repeat var(--bg);
  border: 1px solid #8A7259; color: var(--parch);
  font-size: 1.0625rem; line-height: 1.4;
  transition: border-color var(--t-fast) linear, box-shadow var(--t-fast) linear, background-size 480ms var(--ease-out);
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #8D7E67; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--parch-2); }
/* The field you're in gets a red rule drawn along its bottom edge */
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--parch); box-shadow: 0 0 0 3px rgba(234, 220, 194, .16); background-size: 100% 2px; }
.field [aria-invalid="true"] { border-color: var(--red-hi); box-shadow: 0 0 0 1px var(--red-hi); }
.field [aria-invalid="true"]:focus { border-color: var(--red-hi); box-shadow: 0 0 0 1px var(--red-hi), 0 0 0 4px rgba(222, 58, 68, .24); }
.field__err { color: #FF8A8F; font-size: .9375rem; font-weight: 500; }
.field input[type="date"] { color-scheme: dark; }
.select { position: relative; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 44px; cursor: pointer; }
.select .icon { position: absolute; right: 14px; top: 50%; translate: 0 -50%; pointer-events: none; color: var(--parch-2); }
.qform__est { font-weight: 500; color: var(--parch); padding: 12px 14px; border-left: 3px solid var(--red-hi); background: rgba(184, 37, 47, .1); }
.qform .fine { font-size: .875rem; }

.qdone { border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 12px; }
.qdone:focus { outline: none; }
.qdone__title { display: flex; align-items: center; gap: 10px; font: 400 2rem/1 var(--f-display); }
.qdone__title .icon { color: var(--parch); width: 28px; height: 28px; }
.qdone > p { color: var(--parch-2); }
.qdone__desk { display: none; }
@media (hover: hover) and (pointer: fine) { .qdone__desk { display: block; } }
.qdone__msg { margin: 0; padding: 14px 16px; background: var(--bg); border: 1px dashed #5A4536; border-radius: 4px; white-space: pre-wrap; font: 400 .9375rem/1.5 var(--f-body); color: var(--parch); max-height: 260px; overflow: auto; }
.qdone__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq__inner { display: grid; gap: 40px; }
.faq__inner h2 { font-size: clamp(2.75rem, 1.5rem + 4.4vw, 5.25rem); }
@media (min-width: 900px) { .faq__inner { grid-template-columns: 1fr 1fr; gap: 48px; } .faq__list { margin-left: clamp(40px, 5vw, 80px); } }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 64px; padding: 18px 0; font-weight: 600; font-size: 1.1875rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__a { padding: 0 0 22px; color: var(--parch-2); max-width: 56ch; }
@media (prefers-reduced-motion: no-preference) {
  .faq details::details-content, .price-table::details-content { block-size: 0; overflow: hidden; transition: block-size 320ms var(--ease-out), content-visibility 320ms allow-discrete; }
  .faq details[open]::details-content, .price-table[open]::details-content { block-size: auto; }
  @supports (interpolate-size: allow-keywords) { :root { interpolate-size: allow-keywords; } }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 2px solid var(--red-hi); padding: clamp(56px, 8vw, 112px) 0 calc(40px + env(safe-area-inset-bottom)); background: var(--bg); }
.footer__kicker { color: var(--parch-2); font-weight: 600; }
.footer__phone {
  display: block; margin-top: 8px; padding-block: 4px; text-decoration: none; color: var(--parch); white-space: nowrap;
  font: 400 clamp(2rem, 12.4vw, 10.5rem)/1 var(--f-num); letter-spacing: -.01em;
  transition: color var(--t-med) linear;
}
.footer__phone:hover { color: var(--red-hi); }
.footer__grid { margin-top: clamp(40px, 6vw, 80px); padding-top: 32px; border-top: 1px solid var(--line); display: grid; gap: 32px; }
.footer__list { display: grid; gap: 6px; align-content: start; color: var(--parch-2); }
.footer__copy { margin-top: 48px; font-size: .875rem; color: #9C8D74; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr; } }

/* ---------- Mobile contact dock ---------- */
.dock {
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--bg); border-top: 1px solid var(--line); box-shadow: 0 -12px 24px rgba(23, 17, 13, .85);
  transform: translateY(110%); visibility: hidden; transition: transform 360ms var(--ease-out), visibility 0s linear 360ms;
}
.dock.is-shown { transform: none; visibility: visible; transition: transform 360ms var(--ease-out), visibility 0s; }
.dock__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 4px;
  text-decoration: none; font-weight: 600; border: 1px solid rgba(234, 220, 194, .45); color: var(--parch);
}
.dock__btn--red { background: var(--red); border-color: var(--red); }
@media (max-width: 899px) { body { padding-bottom: 72px; } }
@media (min-width: 900px) { .dock { display: none; } }


/* ==========================================================
   Phone pass — layout decisions for small screens, not a shrunk desktop
   ========================================================== */

/* Header: at the top of the page the giant J&J is the logo, so the header shows only
   "South Range Disposal"; the small J&J slides in once the giant one scrolls away. */
@media (max-width: 899px) {
  .js .site-header .lockup__jj { transition: opacity 240ms linear, transform 420ms var(--ease-out); }
  .js .site-header .lockup__words { transition: transform 420ms var(--ease-out); }
  .js .site-header:not(.is-compact) .lockup__jj { opacity: 0; transform: scale(.8); }
  .js .site-header:not(.is-compact) .lockup__words { transform: translateX(calc(-30px * 2166 / 842 - 10px)); }
}

@media (max-width: 899px) {
  .section { padding-block: 56px; }
  .section-head { gap: 12px; margin-bottom: 28px; }
  .section-head h2, .quote__intro h2, .faq__inner h2, .band__copy h2 { max-width: none; font-size: clamp(2.5rem, 1.5rem + 4vw, 3.25rem); }
  .section-head p { font-size: 1.0625rem; }

  /* Hero: wordmark, photo, promise, prices. The dock carries the buttons. */
  .hero__brand { padding-top: 20px; }
  .hero__pin { display: none; }
  .hero__copy { padding-top: 28px; padding-bottom: 0; }
  .hero__lede { margin-top: 14px; font-size: 1.0625rem; line-height: 1.55; }
  .hero__ctas { display: none; }
  .hero__prices { padding: 28px var(--gutter) 44px; }
  .hero__prices-label { margin-bottom: 10px; }
  .tiles { gap: 10px; }
  .tile { min-height: 0; gap: 2px; padding: 14px 16px; }
  .tile__num { font-size: 2.5rem; padding-bottom: 6px; }
  .tile__desc { display: none; }

  /* Estimator: the price sentence below already says the final price is confirmed later */
  .estimator .section-head p { display: none; }
  .est { gap: 24px; }
  .seg { margin-bottom: 22px; }
  .seg--sizes label > span { min-height: 76px; }

  /* Band: the badge itself reads "Residential ★ Commercial ★ Texas Proud" */
  .band { padding-block: 56px; }
  .band__inner { gap: 28px; }
  .band__badge { width: min(64vw, 280px); }
  .stars-list { display: none; }

  /* Quote: the three steps say what the intro paragraph said; the form loses its box */
  .quote__inner { gap: 28px; }
  .quote__intro > p { display: none; }
  .steps { margin-top: 20px; }
  .steps li { grid-template-columns: 28px 1fr; gap: 12px; padding: 14px 0; }
  .steps__n { font-size: 1.625rem; }
  .steps p { padding-top: 2px; }
  .quote__alt { margin-top: 12px; }
  .qform { background: none; border: 0; border-radius: 0; padding: 0; gap: 18px; }
  .qform__row { gap: 18px; }
  .field textarea { min-height: 104px; }

  .faq__inner { gap: 16px; }

  /* Footer: lists side by side */
  .site-footer { padding-top: 48px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; margin-top: 28px; padding-top: 28px; }
  .footer__grid .lockup { grid-column: 1 / -1; }
  .footer__copy { margin-top: 32px; }
}

/* Services: aligned heading/description, centered icon, price and link on one line */
@media (max-width: 759px) {
  .svc { grid-template-columns: 30px 1fr auto; column-gap: 14px; align-items: center; padding: 26px 0 18px; }
  .svc__icon { grid-row: 1 / span 2; grid-column: 1; width: 30px; height: 30px; }
  .svc h3 { grid-row: 1; grid-column: 2 / -1; font-size: 2.25rem; }
  .svc p { margin-top: 8px; max-width: none; }
  .svc .svc__from { grid-column: 1 / 3; margin-top: 10px; }
  .svc .link-btn { grid-row: 3; grid-column: 3; margin-top: 10px; justify-self: end; }
}

/* Narrowest phones */
@media (max-width: 359px) {
  .dock__btn .icon { display: none; }
  .dock__btn { font-size: .9375rem; padding-inline: 6px; text-align: center; }
  .lockup__sr { height: 10px; }
  .site-header__inner { gap: 12px; }
}

/* Price table on the narrowest phones: five columns in 280px */
@media (max-width: 419px) {
  .price-table table { table-layout: fixed; }
  .price-table th, .price-table td { padding: 10px 2px; }
  .price-table thead td { width: 27%; }
  .price-table thead th { font-size: .8125rem; line-height: 1.2; vertical-align: bottom; }
  .price-table tbody th { font-size: .875rem; line-height: 1.25; }
  .price-table td { font-size: 1rem; }
}

/* Phones turned sideways: give the short screen back to content */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .est__stage { position: relative; top: auto; }
  .hero__jj { width: auto; height: 40svh; max-width: 100%; }
  .hero__photo { aspect-ratio: 21 / 9; }
  .dock { padding-block: 6px calc(6px + env(safe-area-inset-bottom)); }
  .dock__btn { min-height: 44px; }
  body { padding-bottom: 58px; }
}

/* ==========================================================
   Micro-interactions — motion that answers the visitor
   Nothing below moves on its own. Every effect replies to a hover, tap, choice or submit, and shows
   what changed. One vocabulary: red rules that draw in (like the section rules), the star, and weight.
   ========================================================== */

/* Focus: the ring closes in on the control instead of blinking on */
@media (prefers-reduced-motion: no-preference) {
  :focus-visible:not(.tile), .seg input:focus-visible + span { animation: ring-in 260ms var(--ease-out); }
}
@keyframes ring-in { from { outline-offset: 8px; outline-color: rgba(234, 220, 194, 0); } }

/* Underlined links: the red rule runs out to the right, then draws back in from the left */
.u { background: linear-gradient(var(--red-hi), var(--red-hi)) 0 100% / 100% 2px no-repeat; padding-bottom: 4px; }
@keyframes wipe {
  0% { background-size: 100% 2px; background-position: 100% 100%; animation-timing-function: cubic-bezier(.55, 0, .75, .2); }
  42% { background-size: 0% 2px; background-position: 100% 100%; }
  42.01% { background-size: 0% 2px; background-position: 0 100%; animation-timing-function: cubic-bezier(.16, .84, .24, 1); }
  100% { background-size: 100% 2px; background-position: 0 100%; }
}
@media (prefers-reduced-motion: no-preference) {
  .link-btn:focus-visible .u, .quote__alt a:focus-visible .u { animation: wipe 700ms both; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .link-btn:hover .u, .quote__alt a:hover .u { animation: wipe 700ms both; }
}

/* Services: the quadrant you're on lights the two arms of the cross around it, drawn out from the star.
   The star turns one point (72°) per quadrant, in the direction you moved, like a spur rowel. */
.svc__beam { display: none; }
@media (min-width: 760px) {
  .svc__beam { display: block; position: absolute; inset: 0; z-index: 1; pointer-events: none; }
  .svc__beam::before, .svc__beam::after {
    content: ""; position: absolute; background: var(--red-hi); box-shadow: 0 0 10px rgba(222, 58, 68, .55);
    transition: transform 300ms var(--ease-in);
  }
  .svc__beam::before { height: 1px; transform: scaleX(0); }
  .svc__beam::after { width: 1px; transform: scaleY(0); }
  .svc:nth-child(1) .svc__beam::before { right: 0; bottom: -1px; width: 100%; transform-origin: 100% 50%; }
  .svc:nth-child(1) .svc__beam::after { right: -1px; top: 0; bottom: -1px; transform-origin: 50% 100%; }
  .svc:nth-child(2) .svc__beam::before { left: -1px; right: 0; bottom: -1px; transform-origin: 0 50%; }
  .svc:nth-child(2) .svc__beam::after { left: -1px; top: 0; bottom: -1px; transform-origin: 50% 100%; }
  .svc:nth-child(3) .svc__beam::before { left: 0; right: 0; top: -1px; transform-origin: 100% 50%; }
  .svc:nth-child(3) .svc__beam::after { right: -1px; top: -1px; bottom: -1px; transform-origin: 50% 0; }
  .svc:nth-child(4) .svc__beam::before { left: -1px; right: 0; top: -1px; transform-origin: 0 50%; }
  .svc:nth-child(4) .svc__beam::after { left: -1px; top: -1px; bottom: -1px; transform-origin: 50% 0; }
  .svc:focus-within .svc__beam::before, .svc:focus-within .svc__beam::after { transform: none; transition: transform 640ms var(--ease-out); }
}
@media (min-width: 760px) and (hover: hover) {
  .svc:hover .svc__beam::before, .svc:hover .svc__beam::after { transform: none; transition: transform 640ms var(--ease-out); }
}

/* Estimator options: one red ring marks the choice and glides to each new pick; the card warms as it lands */
.js .seg__opts { position: relative; }
.seg__thumb {
  position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none;
  border: 2px solid var(--red-hi); border-radius: 4px;
  box-shadow: 0 12px 26px -16px rgba(222, 58, 68, .95);
  transition: transform 620ms var(--ease-spring), width 620ms var(--ease-spring), height 620ms var(--ease-spring), opacity 200ms linear;
}
.seg__thumb.is-instant { transition: none; }
.seg.has-thumb input:checked + span { border-color: #8A7259; box-shadow: none; }
.seg label:active > span { background-color: rgba(234, 220, 194, .07); }

/* Price: every digit rolls on its own drum, ones first, the way a truck odometer carries. The $ stays put. */
.est__price-num.odo { display: inline-flex; vertical-align: top; }
.odo__cur, .odo__col { display: block; height: 1em; }
.odo__col {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 .08em, #000 .92em, transparent);
          mask-image: linear-gradient(transparent, #000 .08em, #000 .92em, transparent);
  transition: width 560ms var(--ease-out), opacity 260ms linear;
}
.odo__strip { display: block; transition: transform 920ms var(--ease-spring); }
.odo__strip > span, .odo__cur { display: block; height: 1em; line-height: 1; padding-top: .067em; text-align: center; }
.odo__cur { flex: none; font-size: .6em; height: auto; padding-top: .12em; margin-right: .08em; }
.odo.is-instant .odo__col, .odo.is-instant .odo__strip { transition: none !important; }

/* Trailer: the body squats on its springs when a load lands and rises when one leaves. It pivots on the hitch; the wheels stay planted. */
.t-body { transform-origin: 16px 215px; }
@media (prefers-reduced-motion: no-preference) {
  .t-body.is-squat { animation: squat 900ms 240ms; }
  .t-body.is-lift { animation: lift 760ms 60ms; }
}
@keyframes squat {
  0% { transform: none; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  22% { transform: rotate(calc(var(--amp, .4) * 1deg)); animation-timing-function: ease-in-out; }
  48% { transform: rotate(calc(var(--amp, .4) * -.32deg)); animation-timing-function: ease-in-out; }
  72% { transform: rotate(calc(var(--amp, .4) * .1deg)); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}
@keyframes lift {
  0% { transform: none; animation-timing-function: cubic-bezier(.2, .7, .3, 1); }
  30% { transform: rotate(calc(var(--amp, .3) * -1deg)); animation-timing-function: ease-in-out; }
  64% { transform: rotate(calc(var(--amp, .3) * .28deg)); animation-timing-function: ease-in-out; }
  100% { transform: none; }
}

/* Price table: the chosen cell's red rule draws in under it */
.price-table td::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red-hi);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 260ms var(--ease-in);
}
.price-table td.is-on::after { transform: none; transition: transform 560ms var(--ease-out) 90ms; }

/* Disclosure toggles: the plus turns half a turn and its upright folds away into a minus */
.pm { position: relative; flex: none; width: 18px; height: 18px; color: var(--red-hi); transition: transform 560ms var(--ease-spring); }
.pm::before, .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: currentColor; border-radius: 1px; }
.pm::after { transform: rotate(90deg); transition: transform 460ms var(--ease-out); }
details[open] > summary .pm { transform: rotate(180deg); }
details[open] > summary .pm::after { transform: rotate(90deg) scaleX(0); }
.price-table .pm { width: 22px; height: 22px; }

/* FAQ: hovering a question shows a short red tab on its rule; opening it draws the rule across */
.faq summary { position: relative; }
.faq summary::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--red-hi);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 320ms var(--ease-in);
}
.faq details[open] > summary::before { transform: none; transition: transform 720ms var(--ease-out); }
@media (hover: hover) {
  .faq details:not([open]) > summary:hover::before { transform: scaleX(.07); transition: transform 420ms var(--ease-out); }
}
@media (prefers-reduced-motion: no-preference) {
  .faq details[open] .faq__a { animation: rise-sm 460ms var(--ease-out) 90ms both; }
}
@keyframes rise-sm { from { opacity: 0; transform: translateY(8px); } }

/* Quote steps follow the visitor: the current step's rule draws in red, finished steps get a drawn check */
.steps li { position: relative; }
.steps li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: var(--red-hi);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 760ms var(--ease-out);
}
.steps li.is-now::before { transform: none; }
.steps__n { position: relative; display: block; }
.steps__d { display: block; transition: opacity 180ms linear, transform 320ms var(--ease-out); }
.steps__ok { position: absolute; left: -2px; top: 1px; width: 28px; height: 28px; fill: none; stroke: var(--red-hi); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.steps__ok path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 560ms var(--ease-out) 140ms; }
.steps li.is-done .steps__d { opacity: 0; transform: scale(.4); }
.steps li.is-done .steps__ok path { stroke-dashoffset: 0; }
.steps li p { transition: color 400ms linear; }
.steps li.is-done p { color: var(--parch-2); }
@media (max-width: 899px) { .steps__ok { width: 24px; height: 24px; top: 0; } }

/* Required fields: a check draws in once the entry is good; a failed send nudges the field */
.control { position: relative; }
.control input { padding-right: 46px; }
.field__ok {
  position: absolute; right: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; pointer-events: none;
  fill: none; stroke: var(--parch); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
}
.field__ok path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 220ms var(--ease-in); }
.field.is-ok .field__ok path { stroke-dashoffset: 0; transition: stroke-dashoffset 560ms var(--ease-out) 60ms; }
@keyframes nudge { 0%, 100% { transform: none; } 18% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 62% { transform: translateX(-3px); } 82% { transform: translateX(1px); } }
@keyframes err-in { from { opacity: 0; transform: translateY(-4px); } }
/* Fields the estimator filled in for you glow red, then cool */
@keyframes ink { from { border-color: var(--red-hi); box-shadow: 0 0 0 4px rgba(222, 58, 68, .32); background-size: 100% 2px; } }
@media (prefers-reduced-motion: no-preference) {
  .field.is-nudge .control { animation: nudge 420ms var(--ease-out); }
  .field__err:not([hidden]) { animation: err-in 280ms var(--ease-out); }
  .field.is-inked select { animation: ink 1500ms cubic-bezier(.6, 0, .8, .4); }
  .qform__est.is-fresh { animation: rise-sm 460ms var(--ease-out); }
}

/* Request ready: the panel's lines arrive in order and its check draws itself */
.qdone__check { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.qdone__check path { stroke-dasharray: 1; }
@keyframes draw { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: no-preference) {
  .qdone:not([hidden]) > * { animation: rise-sm 520ms var(--ease-out) both; }
  .qdone:not([hidden]) > :nth-child(2) { animation-delay: 70ms; }
  .qdone:not([hidden]) > :nth-child(3) { animation-delay: 140ms; }
  .qdone:not([hidden]) > :nth-child(4) { animation-delay: 210ms; }
  .qdone:not([hidden]) > :nth-child(5) { animation-delay: 280ms; }
  .qdone:not([hidden]) .qdone__check path { animation: draw 640ms var(--ease-out) 180ms both; }
}

/* Copy request: the copy icon tips away and a check draws in its place */
.swap { display: inline-grid; flex: none; width: 1.25em; height: 1.25em; }
.swap > svg { grid-area: 1 / 1; width: 100%; height: 100%; transition: opacity 160ms linear, transform 320ms var(--ease-out); }
.swap__b { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.swap__b path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 200ms linear; }
.is-copied .swap__a { opacity: 0; transform: scale(.5) rotate(-14deg); }
.is-copied .swap__b path { stroke-dashoffset: 0; transition: stroke-dashoffset 460ms var(--ease-out) 80ms; }

/* Footer number: red sweeps across the digits under the pointer; a tap turns it red */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  @media (hover: hover) and (pointer: fine) {
    .footer__phone {
      background: linear-gradient(90deg, var(--red-hi) 50%, var(--parch) 50%) 100% 0 / 200% 100% no-repeat;
      -webkit-background-clip: text; background-clip: text; color: transparent;
      transition: background-position 820ms var(--ease-out);
    }
    .footer__phone:hover, .footer__phone:focus-visible { color: transparent; background-position: 0 0; }
  }
}
@media (hover: none) { .footer__phone:active { color: var(--red-hi); } }
@media (forced-colors: active) { .footer__phone { background: none; color: LinkText; } }

/* Mobile dock: same pressed feel as the buttons */
.dock__btn { -webkit-tap-highlight-color: transparent; transition: transform 140ms var(--ease-out), background-color 160ms linear; }
.dock__btn:active { transform: translateY(1px); background-color: rgba(234, 220, 194, .09); }
.dock__btn--red:active { background-color: #7E161E; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
