/* ================================================
   HOMEPAGE HERO FIXES (index.php #hero)
   Loaded from index.php with a ?v=<file time> link, so browsers always
   pick up changes to this file without a hard refresh.
================================================ */

/* minmax(0, …) lets each column shrink below its content's min width,
   so the 3-column grid never grows wider than the hero and gets clipped. */
.hero .container.hero-container-3col {
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr) minmax(0, 0.9fr);
  min-width: 0;
  box-sizing: border-box;
}
.hero .container.hero-container-3col > * { min-width: 0; }
.hero-container-3col .hero-card-header { flex-wrap: wrap; gap: 0.5rem; }

@media (max-width: 1250px) {
  .hero .container.hero-container-3col { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .hero .container.hero-container-3col { grid-template-columns: minmax(0, 1fr); }
}

/* Short laptop screens (e.g. 1366x768, 1440x900): tighten the 3-column
   hero so the whole banner fits in one screen instead of being cut off. */
@media (min-width: 1251px) and (max-height: 880px) {
  #hero { padding: calc(var(--header-height) + 1.75rem) 0 2rem; }
  #hero .hero-badge { margin-bottom: 0.9rem; }
  #hero .hero-content h1 { font-size: clamp(2rem, 3.1vw, 2.6rem); margin-bottom: 0.85rem; }
  #hero .hero-content > p { font-size: 0.95rem; line-height: 1.55; margin-bottom: 1.25rem; }
  #hero #hero-primary-cta, #hero #hero-secondary-cta { padding: 0.7rem 1.4rem; }
  #hero .hero-trust-indicators { margin-top: 1.25rem; padding-top: 1rem; gap: 0.6rem 1.25rem; }
  #hero .showcase-podium-wrap { max-width: 360px; }
  #hero .hero-card { padding: 1.1rem 1.2rem; }
  #hero .hero-card-header { margin-bottom: 0.75rem; padding-bottom: 0.6rem; }
  #hero .visual-element { padding: 0.5rem 0.75rem; margin-bottom: 0.4rem; gap: 0.75rem; }
  #hero .visual-icon { width: 32px; height: 32px; font-size: 0.85rem; }
  #hero .visual-info .title { font-size: 0.84rem; }
  #hero .visual-info .desc { font-size: 0.72rem; }
}
