/* HESTER ASPHALT — ESTIMATE REQUEST PAGE */

/* Conversion fix: the nav's Request Estimate CTA lands here, but the
   generic .page-hero/.h-hero sizing (shared by every interior page) pushed
   Step 1 of the form well below the fold on normal desktop viewports.
   Scoped to this page only (.est-hero / .est-form-section), and only above
   the 900px breakpoint where .est-grid is still two columns — mobile keeps
   the original .page-hero spacing untouched, exactly as before. */
@media (min-width: 901px) {
  .est-hero { padding: clamp(96px, 10vh, 120px) 0 24px; }
  .est-hero .kicker { margin-bottom: 10px; }
  .est-hero .h-hero { font-size: clamp(34px, 3.2vw, 46px); }
  .est-form-section { padding-top: 28px; }
}

.est-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.est-form-wrap { padding: clamp(26px, 4vw, 46px); }
/* Target of #step1 anchor links (sticky/floating Request Estimate CTAs on
   every other page). scroll-margin-top clears the fixed .site-header
   (78px min-height) so the jump lands with the form card fully visible,
   not tucked half under the nav bar. */
#step1 { scroll-margin-top: 100px; }

/* progress */
.est-progress { position: relative; margin-bottom: 38px; }
.est-bar {
  position: absolute;
  top: 18px;
  left: 0;
  height: 3px;
  width: 0%;
  background: var(--orange);
  transition: width 0.5s var(--ease);
  z-index: 0;
}
.est-progress::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--coal-600);
}
.est-steps { display: flex; justify-content: space-between; position: relative; z-index: 1; }
.est-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--coal-700);
  border: 2px solid var(--coal-600);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--mute);
  justify-content: center;
  position: relative;
  transition: all 0.3s;
}
.est-step b {
  position: absolute;
  top: 44px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
  white-space: nowrap;
}
.est-step.is-on { background: var(--orange); border-color: var(--orange); color: #160e05; }
.est-step.is-on b { color: var(--orange); }
.est-step.is-done { border-color: var(--orange); color: var(--orange); background: var(--coal-800); }

/* panes */
.est-pane { display: none; border: 0; }
.est-pane.is-on { display: block; animation: paneIn 0.45s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
/* Neither .est-pane rule sets a static opacity/transform outside the
   animation, so disabling it below leaves the pane at the browser's
   unanimated default (opacity: 1, no transform) — the same fully-visible
   end state paneIn already finishes on, just without the slide-in. */
@media (prefers-reduced-motion: reduce) {
  .est-pane.is-on { animation: none; }
  /* .est-bar's width is set inline per step by js/estimate.js, so removing
     the transition doesn't change what width it lands on — it just stops
     animating the fill between steps and jumps straight to it. */
  .est-bar { transition: none; }
}
.est-pane legend { padding: 0; float: left; width: 100%; margin-top: 14px; }
.est-pane legend + * { clear: both; }

.est-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

/* success state */
.est-success { text-align: center; padding-block: 20px; }
.est-success-ic {
  width: 64px !important;
  height: 64px !important;
  color: var(--orange);
  margin: 0 auto 18px;
  display: block;
}
.est-next {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
  counter-reset: nx;
  display: grid;
  gap: 12px;
}
.est-next li {
  counter-increment: nx;
  display: flex;
  gap: 14px;
  color: var(--mute);
  font-size: 15px;
}
.est-next li > span { min-width: 0; }
.est-next li::before {
  content: counter(nx);
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--coal-700);
  border: 1.5px solid var(--orange);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 14px;
}
/* Title on its own line, guaranteed never to break mid-phrase (matters for
   the two-word titles — "Written estimate.", "Questions answered.") — the
   explanatory sentence still wraps normally beneath it on any width. */
.est-next strong { display: block; color: var(--paper); white-space: nowrap; margin-bottom: 2px; }

/* aside */
.est-aside { display: grid; gap: 20px; position: sticky; top: 100px; }
.est-aside-card { padding: 30px 26px; }
/* The whole "Rather talk?" card is now the tel: link (see estimate.html) —
   .panel already provides the hover lift/border, this just restores proper
   block stacking + centering now that the container is an <a>, not a <div>. */
.est-phone-card { display: flex; flex-direction: column; align-items: center; }

@media (max-width: 900px) {
  .est-grid { grid-template-columns: 1fr; }
  .est-aside { position: static; }
  .est-step b { display: none; }
  .est-nav { flex-wrap: wrap; }
  .est-nav .btn { flex: 1; }

  /* Mirrors the >900px Step-1-above-the-fold fix above, scoped to mobile:
     the generic .page-hero padding (clamp(150px,22vh,220px) top + var(--sec)
     bottom), stacked on top of .sec's own padding-top on .est-form-section,
     pushed Step 1 well past a full phone screen before this. Tightened, not
     deleted — hero copy and the step indicator are all still fully present,
     just no longer padded like a generic interior page. */
  .est-hero { padding: clamp(80px, 15vh, 116px) 0 16px; }
  .est-hero .crumbs { margin-bottom: 14px; }
  .est-hero .kicker { margin-bottom: 6px; }
  .est-hero .lede { margin-top: 8px; }
  .est-form-section { padding-top: 14px; }
  .est-form-wrap { padding: 20px; }
  .est-progress { margin-bottom: 24px; }

  /* No sticky action bar on this page (removed outright — estimate.html is
     the conversion destination itself, not a page that should hand you
     back to itself). The sitewide bottom padding reserving room for that
     bar would just be dead space here. */
  body:has(.est-hero) { padding-bottom: 0; }
}
