/* Homepage only. Reduce vertical whitespace while keeping text and tap targets. */
@media (max-width:640px) {
  body:has(.hp-hero) .hp-section { padding-block:28px; }
  body:has(.hp-hero) .hp-section-title { margin-bottom:20px; }
  body:has(.hp-hero) .hp-section-subtitle { font-size:16px; margin-bottom:12px; }
  body:has(.hp-hero) .hp-services-grid article { padding:16px 10px; }
  body:has(.hp-hero) .hp-services-grid p { line-height:1.5; }
  body:has(.hp-hero) .hp-pricing-note { margin-top:14px; }
  body:has(.hp-hero) .hp-scope .serviceTagline { margin-top:22px; }

  body:has(.hp-hero) .hp-about.hp-scope .hp-about-grid { gap:18px; }
  body:has(.hp-hero) .hp-about.hp-scope .hp-owner-photo { width:180px; max-width:180px; }
  body:has(.hp-hero) .hp-about.hp-scope .hp-owner-photo img { max-height:210px; }
  body:has(.hp-hero) .hp-about-copy .hp-person-label { margin-bottom:8px; font-size:13px; }
  body:has(.hp-hero) .hp-about-copy h3 { font-size:23px; margin-bottom:12px; }
  body:has(.hp-hero) .hp-about-copy>p:not(.hp-person-label) {
    font-size:16px; line-height:1.5; margin-block:12px;
  }

  body:has(.hp-hero) #campaign.promoSection { padding-block:32px; }
  body:has(.hp-hero) #campaign .promoBand { gap:14px; }
  body:has(.hp-hero) #campaign .promoTitle { font-size:28px; line-height:1.16; margin-block:10px; }
  body:has(.hp-hero) #campaign .promoMeta {
    display:flex; flex-direction:row; flex-wrap:wrap; justify-content:center; gap:6px;
  }
  body:has(.hp-hero) #campaign .promoMeta>span { width:auto; padding:6px 10px; font-size:12px; }
  body:has(.hp-hero) #campaign .promoAction { gap:8px; }
  body:has(.hp-hero) #campaign .promoAction .btn { min-height:44px; }

  body:has(.hp-hero) #process.vonsaProcessPro { padding:32px 0 36px; }
  body:has(.hp-hero) #process.vonsaProcessPro .title {
    font-size:32px; line-height:1.15; letter-spacing:-.8px; margin-block:10px 14px;
  }
  body:has(.hp-hero) #process.vonsaProcessPro .sub { font-size:15px; line-height:1.5; }
  body:has(.hp-hero) #process.vonsaProcessPro .processGrid { margin-top:22px; }
  body:has(.hp-hero) #process.vonsaProcessPro .step { padding-bottom:22px; }
  body:has(.hp-hero) #process.vonsaProcessPro .step:last-child { padding-bottom:0; }
  body:has(.hp-hero) #process.vonsaProcessPro .step:not(:last-child)::after { height:12px; bottom:5px; }
  body:has(.hp-hero) #process.vonsaProcessPro .step h4 { font-size:16px; }
  body:has(.hp-hero) #process.vonsaProcessPro .step p { margin-top:7px; }
  body:has(.hp-hero) #process.vonsaProcessPro .processNote { margin-top:18px; }
}

/* Let the cards determine height instead of reserving a large empty image area.
   The presenter's proportions and the admin's complete-banner mode are preserved. */
@media (max-width:640px) {
  .hp-hero.hp-scope:not(.vonsa-banner-complete) .hp-hero-copy {
    padding-top:26px; padding-bottom:24px;
  }
  .hp-hero.hp-scope:not(.vonsa-banner-complete) .hp-hero-card-group {
    position:relative; inset:auto; width:48%; max-width:360px;
    margin-top:22px; margin-bottom:0; gap:10px;
  }
  .hp-hero.hp-scope:not(.vonsa-banner-complete) .hp-hero-services .hp-service-photo-card {
    height:clamp(76px,18vw,86px);
  }
  .hp-hero.hp-scope:not(.vonsa-banner-complete) .hp-presenter {
    max-height:calc(100% - 240px); object-fit:contain; object-position:right bottom;
  }
}

/* 01.11.2026: compact the lower homepage without hiding its content. */
@media(max-width:640px){
  body:has(.hp-hero) #services.hp-section{padding:28px 0 30px}
  body:has(.hp-hero) #services .serviceTagline{margin-top:24px}
  body:has(.hp-hero) #campaign.promoSection{padding:24px 0}
  body:has(.hp-hero) #campaign .promoBand{gap:12px}
  body:has(.hp-hero) #campaign .vonsaPromoPhoto img{height:160px;aspect-ratio:auto;object-fit:cover;object-position:center}
  body:has(.hp-hero) #campaign .promoTitle{margin-block:8px}
  body:has(.hp-hero) #campaign .promoMeta{margin-top:10px}
  body:has(.hp-hero) #process.vonsaProcessPro{padding:24px 0 28px}
  body:has(.hp-hero) #process.vonsaProcessPro .processGrid{margin-top:18px}
  body:has(.hp-hero) #process.vonsaProcessPro .step:not(:last-child){padding-bottom:16px}
  body:has(.hp-hero) #process.vonsaProcessPro .step:not(:last-child)::after{height:8px;bottom:4px}
  body:has(.hp-hero) #process.vonsaProcessPro .processNote{margin-top:14px}
  body:has(.hp-hero).vonsa-utility-active>footer{padding-bottom:calc(84px + env(safe-area-inset-bottom))!important}
  body:has(.hp-hero)>footer .footerLinks{max-width:calc(100vw - 132px);flex-wrap:wrap;justify-content:center}
}
