@media (max-width: 768px) {
  body:has(.hp-mobile-actions) {
    padding-bottom: calc(64px + env(safe-area-inset-bottom));
  }

  .hp-mobile-actions {
    position: fixed;
    inset: auto 0 0;
    z-index: 45;
    display: grid !important;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
    gap: 8px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #d7ddda;
  }
  .hp-mobile-actions .btn { justify-content: center; min-width: 44px; min-height: 44px; padding: 8px; }
  body:has(.hp-mobile-actions) .wa-float { display: none; }
  body:has(#primary-nav.is-open) .hp-mobile-actions { visibility: hidden; }
  nav#primary-nav { max-height: calc(100dvh - 110px); overscroll-behavior-y: contain; }
  #primary-nav a, #primary-nav button, .menu-toggle { min-width: 44px; min-height: 44px; }
  #primary-nav a { align-content: center; }

  .hp-home-hero { min-height: 60vh; min-height: 60svh; display: grid; align-items: center; }
  .hp-home-hero .hero-inner { padding-block: 24px; }
  .hp-home-hero .eyebrow { margin-bottom: 12px; }
  .hp-home-hero h1 { font-size: clamp(32px, 9.3vw, 44px); line-height: 1.05; margin: 0 0 14px; }
  .hp-home-hero .hero-inner > p:not(.eyebrow) { margin-bottom: 16px; font-size: 15px; line-height: 1.5; }
  .hp-home-hero .button-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .hp-home-hero .btn { width: 100%; justify-content: center; min-height: 44px; }
  .hp-home-hero .hp-hero-contact, .hp-home-hero .hero-bottom { display: none; }

  .hp-proof .proof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding-block: 16px; }
  .hp-proof .proof-grid > div { padding: 0 8px; border: 0; }
  .hp-proof .proof-grid > div:nth-child(odd) { border-right: 1px solid #dce0df; }
  .hp-section { padding-block: 24px; }
  .hp-section .section-heading { gap: 8px; margin-bottom: 14px; }
  main p, main .hp-section > p, .hp-entry p, .hp-faq .faq p { font-size: 15px; }
  main .btn, main .text-link, main button, main summary { min-height: 44px; }
  main .text-link { display: inline-flex; align-items: center; }

  .hp-entry-grid, #featured-trucks .catalog-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding: 0 0 8px;
  }
  .hp-entry-grid > .hp-entry, .hp-entry-grid > .hp-entry:last-child,
  #featured-trucks .catalog-grid > * { grid-column: auto; scroll-snap-align: start; min-width: 0; }
  .hp-entry { padding: 16px; }
  .hp-entry .eyebrow { margin-bottom: 8px; }
  .hp-entry h2 { font-size: 21px; margin-bottom: 8px; }
  .hp-entry p { line-height: 1.45; margin-bottom: 8px; }
  #featured-trucks .catalog-card .btn { min-width: 44px; min-height: 44px; }
  #featured-trucks .catalog-actions { display: flex; flex-wrap: wrap; gap: 8px; }
  #featured-trucks .catalog-card img { object-fit: contain; background: #fff; }

  #truck-ranges .home-range-grid, #solutions .hp-solution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  #truck-ranges .home-range-card, #truck-ranges .home-range-card:nth-child(-n+3) { grid-column: auto; }
  #truck-ranges .home-range-content { padding: 0 8px; }
  #truck-ranges .home-range-content h3, #solutions .hp-solution h3 { font-size: 16px; line-height: 1.25; margin: 0; }
  #truck-ranges .home-range-content h3 a { display: flex; align-items: center; min-height: 44px; }
  #truck-ranges .home-range-content ul,
  #solutions .hp-solution p, #solutions .hp-card-cta { display: none; }
  #solutions .hp-solution { padding: 7px; }
  #solutions .hp-industry-photo { margin: 0 0 6px; }
  #solutions .hp-solution h3 { padding-bottom: 6px; }
  #truck-ranges .home-model-photo img, #solutions .hp-industry-photo {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
  }

  .hp-process-steps { grid-template-columns: 1fr; border: 0; gap: 0; }
  .hp-process-steps li, .hp-process-steps li:first-child {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 2px 10px;
    padding: 9px 0;
    border: 0;
    border-top: 1px solid #b8c5bd;
  }
  .hp-process-steps li::after { display: none; }
  .hp-process-steps svg { grid-row: span 2; width: 24px; height: 24px; margin: 0; }
  .hp-process-steps h3 { font-size: 17px; }
  .hp-process-steps p { margin: 0; line-height: 1.4; }
  .hp-faq { gap: 16px; }
  .hp-faq summary { align-content: center; }
  #home-enquiry { scroll-margin-top: 16px; }
  #home-enquiry form :is(input, select, textarea) { font-size: 16px; min-height: 44px; scroll-margin-block-end: 70px; }
  #home-enquiry form button { min-height: 44px; scroll-margin-block-end: 70px; }
}

@media (max-width: 768px) {
  body:has(.hp-mobile-actions), #buying-guide.hp-process, #home-enquiry.hp-contact { background: #F5F6F7; }
  .hp-mobile-actions .hp-mobile-whatsapp { gap: 7px; background: #128C7E; border-color: #128C7E; color: #fff; font-size: 19px; font-weight: 700; }
  .hp-mobile-actions .hp-mobile-whatsapp svg { flex: 0 0 20px; }
  .hp-mobile-actions .btn, main .btn { font-size: 13px; }
  .hp-mobile-actions .hp-mobile-whatsapp { font-size: 19px; }
  .hp-entry .eyebrow, .hp-factory-gallery figcaption { font-size: 12px; }
  .hp-entry-grid { align-items: start; }
  .hp-entry { padding: 12px 14px; min-height: 0; }
  .hp-entry .eyebrow { margin-bottom: 4px; }
  .hp-entry h2 { font-size: 19px; margin-bottom: 5px; line-height: 1.18; }
  .hp-entry p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; margin: 0; line-height: 1.32; }
  .hp-entry-arrow { display: none; }
  #truck-ranges .home-range-count { display: block; margin: 0 0 8px; font-size: 12px; line-height: 1.35; }
  #truck-ranges .home-range-desktop-price { display: none; }
  #truck-ranges .home-range-mobile-price { display: inline !important; }
  #featured-trucks .catalog-grid { align-items: start; }
  #featured-trucks .catalog-card, #featured-trucks .catalog-card-body { height: auto; min-height: 0; }
  #featured-trucks .catalog-actions { margin-top: 8px; }
  #featured-buying-guides .grid, #factory .hp-factory-gallery {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80%;
    align-items: start;
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
    min-width: 0;
  }
  #featured-buying-guides .home-guide-card, #factory .hp-factory-gallery figure {
    grid-column: auto;
    min-width: 0;
    scroll-snap-align: start;
  }
  #featured-buying-guides .home-guide-card { height: auto; min-height: 0; padding: 12px; }
  #featured-buying-guides .home-guide-card h3 { font-size: 17px; line-height: 1.3; }
  #featured-buying-guides .home-guide-card p { font-size: 14px; line-height: 1.45; margin-bottom: 0; }
  #home-enquiry form button { width: 100%; min-height: 48px; justify-content: center; }
  #home-enquiry form select { width: 100%; }
}
