/* Used Engines Inc. layout refinement — 28 November 2026. */

/* A wider, complete desktop quote form alongside the hero copy. */
@media (min-width: 901px) {
  .warehouse-hero .hero-grid {
    width: min(1460px, calc(100% - 56px));
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    align-items: stretch;
    gap: clamp(24px, 2.2vw, 38px);
    min-height: 0;
    padding-block: 22px;
  }

  .warehouse-hero .hero-copy {
    align-self: stretch;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0;
    min-height: 0;
  }

  .warehouse-hero .hero-copy > .eyebrow {
    font-size: .75rem;
    line-height: 1.5;
    letter-spacing: .15em;
    margin: 0;
  }

  .warehouse-hero h1 {
    font-size: clamp(2.4rem, 3.6vw, 3.65rem);
    line-height: 1.045;
    letter-spacing: -.052em;
    margin: 0;
    max-width: 100%;
  }

  .warehouse-hero .hero-desc {
    font-size: 1rem;
    line-height: 1.55;
    max-width: 590px;
    margin: 0;
  }

  .warehouse-hero .hero-points {
    font-size: .875rem;
    line-height: 1.4;
    gap: 8px 18px;
    margin: 0;
  }

  .warehouse-hero .hero-actions {
    gap: 10px;
    flex-wrap: wrap;
    margin: 0;
  }

  .warehouse-hero .hero-actions .btn {
    min-height: 44px;
    padding: 12px 16px;
    font-size: .875rem;
    gap: 8px;
  }

  .warehouse-hero .hero-service-note {
    font-size: .875rem;
    line-height: 1.5;
    margin: 0;
  }

  .warehouse-hero .quote-panel {
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 17px 19px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
  }

  .warehouse-hero .form-kicker {
    font-size: .75rem;
    line-height: 1.4;
    letter-spacing: .12em;
  }

  .warehouse-hero .quote-panel h2 {
    font-size: clamp(1.5rem, 1.9vw, 1.85rem);
    line-height: 1.15;
    letter-spacing: -.04em;
    margin: 6px 0 4px;
  }

  .warehouse-hero .quote-panel > p {
    font-size: .9375rem;
    line-height: 1.4;
    margin: 0 0 13px;
  }

  /* All fields are visible together on desktop, so the step track is redundant. */
  .warehouse-hero .step-label,
  .warehouse-hero .step-track,
  .warehouse-hero .step-next,
  .warehouse-hero .back-step {
    display: none;
  }

  .warehouse-hero .form-grid {
    gap: 9px;
  }

  .warehouse-hero .vehicle-fields {
    grid-template-columns: minmax(148px, .95fr) minmax(124px, .85fr) repeat(2, minmax(0, 1.1fr));
  }

  .warehouse-hero .contact-fields {
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr);
    margin-top: 10px;
  }

  .warehouse-hero .contact-fields > .wide {
    grid-column: auto;
  }

  .warehouse-hero .form-grid label {
    min-width: 0;
    font-size: .875rem;
    line-height: 1.4;
    gap: 4px;
  }

  .warehouse-hero .form-grid input,
  .warehouse-hero .form-grid select {
    height: 42px;
    min-height: 42px;
    font-size: 1rem;
    line-height: 1.3;
    padding: 8px 10px;
  }

  .warehouse-hero .form-grid select {
    padding-right: 30px;
    background-position: right 11px center;
  }

  .warehouse-hero .submit-row {
    margin-top: 11px;
  }

  .warehouse-hero .submit {
    min-height: 44px;
    padding: 10px 16px;
    font-size: .9375rem;
  }

  .warehouse-hero .form-message:empty {
    display: none;
  }

  .warehouse-hero .privacy {
    font-size: .75rem;
    line-height: 1.4;
    gap: 3px 5px;
    margin-top: 8px;
  }

  .warehouse-hero .privacy .icon {
    width: 13px;
    height: 13px;
  }

  .warehouse-hero .ue-form-reviews {
    margin-top: 12px;
    padding-top: 10px;
  }

  .warehouse-hero .ue-review-mini-top {
    gap: 8px;
    margin: 0 0 8px;
  }

  .warehouse-hero .ue-review-mini-top > div {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 12px;
  }

  .warehouse-hero .ue-form-reviews h3 {
    font-size: .875rem !important;
    line-height: 1.3;
    margin: 0 !important;
  }

  .warehouse-hero .ue-mini-rating {
    gap: 6px;
    line-height: 1.15;
  }

  .warehouse-hero .ue-mini-score {
    font-size: 1.3rem;
  }

  .warehouse-hero .ue-mini-score span,
  .warehouse-hero .ue-review-source,
  .warehouse-hero .ue-mini-link {
    font-size: .75rem;
  }

  .warehouse-hero .ue-mini-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    align-items: stretch;
  }

  .warehouse-hero .ue-mini-review {
    padding: 9px 10px;
    min-width: 0;
  }

  .warehouse-hero .ue-mini-review-head {
    font-size: .8125rem;
    line-height: 1.35;
    margin-bottom: 4px;
  }

  .warehouse-hero .ue-mini-review p {
    font-size: .875rem;
    line-height: 1.4;
    margin: 0;
    overflow: visible;
  }

  .warehouse-hero .ue-mini-caption {
    font-size: .75rem;
    line-height: 1.3;
    margin-top: 6px;
  }
}

/* A narrower desktop retains comfortable input widths. */
@media (min-width: 901px) and (max-width: 1199px) {
  .warehouse-hero .hero-grid {
    width: calc(100% - 40px);
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    gap: 22px;
    padding-block: 18px;
  }
  .warehouse-hero .vehicle-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .warehouse-hero .hero-copy { gap: 13px; }
  .warehouse-hero h1 { font-size: clamp(2.15rem, 3.4vw, 2.55rem); }
  .warehouse-hero .hero-actions .btn { padding: 11px 13px; }
  .warehouse-hero .quote-panel { padding: 16px; }
}

/* Short laptop windows retain the full form without clipping or tiny controls. */
@media (min-width: 901px) and (max-height: 800px) {
  .warehouse-hero .hero-grid { padding-block: 12px; }
  .warehouse-hero .quote-panel { padding-block: 14px; }
  .warehouse-hero .quote-panel > p { margin-bottom: 10px; }
  .warehouse-hero .contact-fields { margin-top: 8px; }
  .warehouse-hero .submit-row { margin-top: 9px; }
  .warehouse-hero .ue-form-reviews { margin-top: 10px; padding-top: 8px; }
  .warehouse-hero .ue-mini-review { padding-block: 8px; }
}

/* Keep the existing mobile flow spacious and free of a fixed-height container. */
@media (max-width: 900px) {
  .warehouse-hero .hero-grid { min-height: 0; }
  .warehouse-hero .quote-panel { max-width: 100%; }
}


/* Keep the six repair-confidence cards aligned regardless of copy length. */
.benefit-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  grid-auto-rows: 1fr;
}

.benefit-grid > .benefit {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: stretch;
  min-width: 0;
  height: 100%;
}

.benefit-grid > .benefit > .icon {
  flex: 0 0 auto;
}

.benefit-grid > .benefit > h3 {
  margin: 15px 0 7px;
  min-height: 1.25em;
}

.benefit-grid > .benefit > p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

/* Animate the icon, border and shadow without lifting one card out of its row. */
.benefit-grid > .benefit:hover {
  transform: none;
}

@media (max-width: 900px) {
  .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .benefit-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
    gap: 12px;
  }

  .benefit-grid > .benefit {
    padding: 18px;
  }
}


/* Current page and section state is present in the server-rendered header. */
#mainnav > a.is-current-page,
#mainnav > a.is-current-section,
#mainnav > details.nav-current-section > summary {
  color: var(--blue);
  font-weight: 850;
  text-decoration: none;
}
#mainnav > a.is-current-page::after,
#mainnav > a.is-current-section::after {
  height: 3px;
  transform: scaleX(1);
}
#mainnav > details > summary { position: relative; }
#mainnav > details.nav-current-section > summary::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 3px;
  border-radius: 2px;
  background: var(--orange);
}
#mainnav .mega-panel a.is-current-page,
#mainnav .policy-menu-panel a.is-current-page {
  color: var(--blue);
  font-weight: 850;
  background: #edf3ff;
  border-radius: 6px;
  box-shadow: inset 3px 0 0 var(--orange);
  padding-left: 12px;
}
@media (max-width: 1000px) {
  #mainnav > a.is-current-page,
  #mainnav > a.is-current-section,
  #mainnav > details.nav-current-section > summary {
    padding: 10px 12px;
    border-radius: 6px;
    background: #edf3ff;
    box-shadow: inset 3px 0 0 var(--orange);
  }
  #mainnav > a.is-current-page::after,
  #mainnav > a.is-current-section::after,
  #mainnav > details.nav-current-section > summary::after { display: none; }
}
