/* Mawecars · visual refinement, 7 October 2026. */
.home-hero,
.page-hero {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  border-radius: 0;
}

/* The same content has a clear reading order on both screen sizes. */
.detail-layout {
  grid-template-areas: "gallery purchase" "information purchase";
  row-gap: 20px;
}
.detail-gallery { grid-area: gallery; min-width: 0; }
.detail-info { grid-area: information; min-width: 0; }
.purchase-panel { grid-area: purchase; min-width: 0; }
.purchase-intro > p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.gallery-thumbs.single-photo { display: none; }
.detail-gallery .sample-notice { margin-bottom: 0; }
.detail-info > .detail-section:first-child { margin-top: 0; }

@media (max-width: 950px) {
  .header-inner {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) 46px;
    gap: 0;
  }
  .header-inner > .brand {
    grid-column: 2;
    grid-row: 1;
    justify-self: center;
    width: 190px;
    max-width: 100%;
  }
  .header-inner .brand img { width: 100%; height: 64px; }
  .header-inner > .nav-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "purchase" "information";
    gap: 24px;
  }
  .detail-heading { justify-content: center; align-items: center; flex-direction: column; text-align: center; gap: 12px; }
  .detail-heading h1 { overflow-wrap: anywhere; }
  .purchase-panel { text-align: center; }
  .panel-location { justify-content: center; }
  .purchase-panel .share-vehicle { justify-content: center; }
  .gallery-thumbs { justify-content: flex-start; }
  .detail-info .technical-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
  .header-inner { min-height: 72px; grid-template-columns: 44px minmax(0, 1fr) 44px; }
  .header-inner > .brand { width: 180px; }
  .header-inner .brand img { height: 60px; }
  .nav-toggle { width: 43px; height: 43px; }
  .main-nav { padding: 14px 18px 20px; }
  .main-nav > a { text-align: center; padding: 12px; }

  .home-hero { min-height: 620px; }
  .hero-content { padding-top: 35px; padding-bottom: 224px; }
  .hero-content .eyebrow { margin-bottom: 18px; }
  .hero-content h1 { font-size: clamp(30px, 9vw, 36px) !important; margin-bottom: 18px; }
  .hero-content > p { line-height: 1.7; margin-bottom: 18px; }
  .hero-actions { margin-top: 20px; }
  .hero-location { margin-top: 18px; flex-wrap: wrap; row-gap: 4px; }
  .page-hero { padding: 38px 0 40px; }
  .page-hero h1 {
    font-size: clamp(30px, 8.5vw, 37px) !important;
    line-height: 1.16;
    margin-inline: auto;
    margin-bottom: 16px !important;
    text-wrap: balance;
  }
  .page-hero .eyebrow { margin-bottom: 16px; }
  .page-hero p { line-height: 1.7; }

  .section-heading { text-align: center; }
  .section-heading h2, .section-heading p { margin-inline: auto; }
  .section-heading .text-link { justify-content: center; }
  .about-copy > .eyebrow, .about-copy > h2 { text-align: center; margin-inline: auto; }
  .contact-info > .eyebrow, .contact-info > h2, .contact-info > p { text-align: center; }
  .contact-cta .cta-inner { text-align: center; align-items: center; padding-block: 42px; gap: 24px; }
  .contact-cta p { margin-inline: auto; }
  .footer-brand { display: flex; flex-direction: column; text-align: center; gap: 15px; }
  .footer-brand > a:first-child { margin: 0; }
  .footer-brand .social-link { margin-top: 0; }
  .footer-bottom { text-align: center; }
  .footer-bottom > div { justify-content: center; }

  .single-mw_vehicle .breadcrumbs { display: none; }
  .vehicle-detail { padding-top: 14px; padding-bottom: 40px; }
  .back-link { display: inline-flex; align-items: center; min-height: 32px; font-size: 11px; }
  .detail-heading { margin: 12px 0 22px; gap: 10px; }
  .detail-heading .eyebrow { font-size: 10px; margin-bottom: 7px; }
  .detail-heading h1 { font-size: 32px !important; line-height: 1.15; margin-bottom: 7px !important; }
  .detail-heading p { font-size: 12px; line-height: 1.5; }
  .detail-heading .stock-pill { margin-top: 0; font-size: 10px; padding: 5px 12px; }
  .detail-layout { gap: 20px; }
  .gallery-main { aspect-ratio: 1.45; border-radius: 10px; }
  .gallery-main .favorite { width: 42px; height: 42px; top: 12px; right: 12px; }
  .gallery-hint { right: 12px; bottom: 12px; padding: 6px 10px; }
  .gallery-thumbs { margin: 9px 0 0; gap: 8px; padding-bottom: 3px; }
  .gallery-thumb { width: 70px; }
  .detail-gallery .sample-notice { margin: 12px 0 0; padding: 10px 12px; font-size: 10px; line-height: 1.6; }
  .detail-gallery .sample-notice strong { font-size: 10px; margin-bottom: 3px; }

  .purchase-panel { padding: 20px; background: #fafafb; box-shadow: none; border-radius: 10px; }
  .purchase-panel > .eyebrow { display: none; }
  .price-label { font-size: 11px; color: var(--muted); }
  .purchase-panel .detail-price { font-size: 37px; margin: 3px 0 6px; }
  .purchase-panel > .price-footnote { font-size: 10px; margin-bottom: 0; }
  .purchase-panel hr { margin: 16px 0; }
  .purchase-panel[data-status="available"] .purchase-intro { display: none; }
  .purchase-intro h2 { font-size: 19px !important; margin-bottom: 8px !important; }
  .purchase-intro > p { font-size: 12px; line-height: 1.65; margin-bottom: 16px; }
  .purchase-panel .btn { min-height: 46px; margin-bottom: 9px; padding-block: 12px; font-size: 12px; }
  .panel-phone { font-size: 16px; padding: 7px 0 13px; min-height: 44px; }
  .panel-location { padding-top: 13px; gap: 8px; }
  .panel-location > .icon { width: 18px; }
  .purchase-panel .share-vehicle { min-height: 44px; width: 100%; margin-top: 8px; font-size: 11px; }

  .detail-section { padding-top: 24px; margin-top: 24px; }
  .detail-section h2 { text-align: center; font-size: 23px !important; line-height: 1.25; margin-bottom: 20px; }
  .detail-section p { font-size: 13px; line-height: 1.75; }
  .technical-grid { gap: 10px; }
  .technical-grid > div { padding: 12px 8px; background: var(--soft); border: 1px solid #eceef1; border-radius: 7px; text-align: center; }
  .technical-grid dt { font-size: 10px; }
  .technical-grid dd { font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
  .equipment-list { gap: 11px; }
  .equipment-list > li { align-items: flex-start; line-height: 1.6; }
  .equipment-list .icon { margin-top: 3px; }
  .related { padding-block: 40px; }
  .mobile-vehicle-cta { gap: 16px; padding-top: 9px; }
  .mobile-vehicle-cta strong { font-size: 22px; white-space: nowrap; }
  .mobile-vehicle-cta .btn { min-height: 44px; flex: 1; max-width: 180px; }
}
