/* Haven of Hope - responsive layer. Loaded last on every page.
   Breakpoints: <=1099 hamburger menu (tablets, phones in "desktop site" mode), >=1100 full menu. */

/* ---- header: never wrap or push the Donate button off-screen ---- */
.header-container { flex-wrap: nowrap; }
.nav-menu { flex-wrap: nowrap; }
.nav-link, .donate-btn { white-space: nowrap; }
@media (min-width: 1100px) and (max-width: 1239px) {
  .nav-menu { gap: 2px; }
  .nav-menu li { margin-left: 6px; }
  .nav-link { padding: 8px 8px; }
}
@media (min-width: 1240px) {
  .nav-menu li { margin-left: 4px; }
}

/* ---- hero text lines up with the logo and page grid at every width ---- */
.neo-hero .neo-slide-inner.container { width: 90%; max-width: 1200px; margin-left: auto; margin-right: auto; }

/* ---- tablets and small laptops (769 to 1099) ---- */
@media (min-width: 769px) and (max-width: 1099px) {
  .container { width: 92%; }
  .neo-copy { max-width: 540px; }
  .h-projects-grid, .hv-grid-3 { gap: 20px; }
  .h-band > div { padding: 60px 5%; }
  .h-card-img { height: 160px; }
  .whatsapp-float { bottom: 24px; }
}

/* ---- large monitors: keep the hero from stretching and content from feeling lost ---- */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  .hero.neo-hero { height: clamp(620px, 80vh, 860px); }
}
@media (min-width: 2200px) {
  html { font-size: 19px; }
}

/* ---- short landscape screens: hero should not overflow the viewport ---- */
@media (max-height: 560px) and (orientation: landscape) {
  .hero.neo-hero { height: auto; min-height: 520px; }
  .neo-slide-inner { padding-top: 96px; padding-bottom: 90px; }
}

/* ---- tiny phones ---- */
@media (max-width: 359px) {
  .container { width: 94%; padding: 0 10px; }
  .h-stat strong { font-size: 1.5rem; }
}

/* ---- notched phones ---- */
@supports (padding: max(0px)) {
  header .container { padding-left: max(15px, env(safe-area-inset-left)); padding-right: max(15px, env(safe-area-inset-right)); }
}

/* ---- mobile menu: let long submenus (6 items) open fully ---- */
@media (max-width: 1099px) {
  .nav-menu .dropdown.active { max-height: 440px; }
  .nav-menu { width: min(80%, 340px); }
}
