/* Fidelity and responsive refinements layered over the primary design. */
html {
  scroll-padding-top: 88px;
}

.site-header {
  transition: box-shadow .24s ease, border-color .24s ease;
}

.site-header.is-scrolled,
.site-header.menu-open {
  box-shadow: 0 10px 28px rgba(20, 12, 8, .2);
}

.site-nav a {
  position: relative;
}

.site-nav a:not(.nav-order):not(.nav-social)::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1);
}

.site-nav a:not(.nav-order):not(.nav-social):hover::after,
.site-nav a[aria-current='location']::after {
  transform: scaleX(1);
}

.site-nav a[aria-current='location'] {
  color: var(--gold);
}

.hero-copy {
  animation: lift .8s both ease-out;
}

.button,
.menu-toggle,
.site-nav a,
.phone-link {
  min-height: 44px;
}

.service-map {
  width: min(100%, 520px);
  height: auto;
  aspect-ratio: 520 / 361;
  max-height: none;
  object-fit: initial;
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 64px;
  }

  .site-header {
    padding: 0 16px;
  }

  .menu-toggle {
    width: 48px;
    height: 48px;
    padding: 10px;
  }

  .menu-toggle > span:not(.sr-only) {
    margin: 6px 0;
  }

  .site-nav {
    padding: 12px 20px 22px;
    box-shadow: 0 16px 28px rgba(0, 0, 0, .28);
  }

  .site-nav a {
    display: flex;
    align-items: center;
    padding: 10px 0;
  }

  .site-nav a:not(.nav-order):not(.nav-social)::after {
    bottom: 4px;
  }

  .site-nav .nav-order {
    justify-content: center;
  }

  .hero h1 {
    font-size: clamp(26px, 7.7vw, 33px);
    line-height: .95;
    letter-spacing: -1px;
  }

  .section-pad h2 {
    font-size: clamp(40px, 13vw, 52px);
  }

  .about-copy {
    line-height: 1.5;
  }

  .pricing-note {
    font-size: 21px;
    line-height: 1.3;
  }

  .pricing-note strong {
    display: inline-block;
  }

  .pricing-note span {
    height: 18px;
    margin: 0 6px -3px;
  }

  .pricing-note small {
    line-height: 1.5;
  }

  .faq-item p,
  .order-intro > p {
    line-height: 1.5;
  }

  .faq-item {
    padding: 22px 0;
  }

  .service-map {
    width: 100%;
    max-height: none;
    margin-top: 10px;
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 44px;
    margin-top: 44px;
  }

  .order-form input,
  .order-form select {
    min-height: 44px;
    font-size: 17px;
  }

  .form-step {
    padding-bottom: 38px;
  }

  .form-step + .form-step {
    padding-top: 34px;
  }

  .form-step legend {
    font-size: clamp(21px, 6vw, 27px);
  }

  .wood-row {
    grid-template-columns: minmax(0, 1fr) minmax(112px, 140px) minmax(112px, 140px);
    gap: 10px;
    min-height: 60px;
  }

  .wood-row input {
    min-height: 44px;
    padding: 5px;
  }

  .submit-step {
    align-items: stretch;
  }

  .order-form .button-fire {
    width: 100%;
    justify-content: space-between;
  }

  .order-summary {
    position: static;
    top: auto;
    box-shadow: 8px 8px 0 var(--gold);
  }

  .site-footer {
    padding: 40px 20px;
  }

  .site-footer > img {
    width: 190px;
    height: auto;
  }

  .site-footer p {
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 360px) {
  .hero h1 {
    font-size: 26px;
  }

  .section-pad {
    padding-left: 16px;
    padding-right: 16px;
  }

  .photo-ribbon {
    margin-left: -16px;
    margin-right: -16px;
  }

  .wood-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .fulfillment-choices,
  .schedule-fields,
  .customer-fields {
    grid-template-columns: minmax(0, 1fr);
  }

  .customer-fields label:last-child {
    grid-column: auto;
  }

  .wood-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
  }

  .wood-name {
    grid-column: 1 / -1;
  }

  .wood-row label span {
    display: grid;
    justify-content: start;
    gap: 3px;
    font-size: 11px;
  }

  .fulfillment-details {
    padding: 18px;
  }

  .confirmation-order {
    margin-top: 20px;
    padding: 18px;
  }

  .confirmation-items li {
    align-items: baseline;
    gap: 12px;
  }

  .confirmation-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .confirmation-facts .confirmation-total {
    grid-column: auto;
  }

  .address-field + .schedule-fields {
    margin-top: 16px;
  }

  .submit-step {
    display: grid;
  }

  .mobile-order-total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid rgba(33, 29, 30, .24);
    border-bottom: 1px solid rgba(33, 29, 30, .24);
  }

  .mobile-order-total span {
    font: 600 12px/1.2 var(--mono);
    text-transform: uppercase;
  }

  .mobile-order-total strong {
    color: var(--fire);
    font: 600 28px/1 var(--sans);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
