/* css/responsive.css — site-wide responsive rules for all public pages
   Load AFTER style.css / nav.css / slider.css so these win. */

/* ---------- Universal safety ---------- */
*{box-sizing:border-box;}
img{max-width:100%;height:auto;}
html{-webkit-text-size-adjust:100%;}
section,.section{overflow-x:clip;}

/* ================= TABLET (<=1024px) ================= */
@media (max-width:1024px){
  .section{padding-left:5%;padding-right:5%;}
  .footer-grid{grid-template-columns:1fr 1fr;gap:32px;}
  .hero-slide-title{font-size:clamp(1.8rem,5vw,2.8rem);}
  .stats-grid{gap:24px;}
}

/* ================= LANDSCAPE / SMALL TABLET (<=900px) ================= */
@media (max-width:900px){
  /* hero slider */
  .hero-slider{min-height:520px;height:auto;}
  .hero-slide{position:relative;}
  .hero-slide-actions{margin-top:8px;}
  .hero-slide:not(.active){display:none;}
  .hero-slide.active{display:block;}
  .hero-arrow{width:42px;height:42px;}
  .hero-dots{left:5%;}
  /* generic grids fall to 2 or 1 col if not already auto */
  .features-grid,.stats-grid{grid-template-columns:repeat(2,1fr)!important;}
  /* gallery handled by slider.css */
}

/* ================= PHONE (<=640px) ================= */
@media (max-width:640px){
  :root{--section-pad:44px;}
  .section{padding-top:44px;padding-bottom:44px;}
  .section-title{font-size:clamp(1.5rem,7vw,2rem);}
  .section-desc{font-size:.95rem;}

  /* stack all multi-column grids */
  .features-grid,.stats-grid,.footer-grid,
  .contact-grid,.fee-grid,.ad-cols,.level-grid,
  .approach-grid,.staff-grid,.news-grid,.subj-grid,.steps{
    grid-template-columns:1fr!important;
  }
  .footer-grid{text-align:left;gap:28px;}

  /* hero text */
  .hero-slide-title{font-size:clamp(1.6rem,8vw,2.2rem);line-height:1.12;}
  .hero-slide-sub{font-size:.95rem;}
  .hero-slide-actions{flex-direction:column;}
  .hero-slide-actions .btn{width:100%;justify-content:center;}
  .hero-slider{min-height:460px;}

  /* buttons full-width where they wrap */
  .cta-actions{flex-direction:column;}
  .cta-actions .btn{width:100%;justify-content:center;}
  .btn-lg{padding:13px 20px;font-size:.95rem;}

  /* stat numbers */
  .stat-card-num,.stat-num{font-size:1.8rem;}

  /* notices: date badge + text stack nicely */
  .notice-card{flex-direction:row;}

  /* tables/wide blocks scroll instead of overflow */
  table{display:block;overflow-x:auto;white-space:nowrap;}

  /* reduce big vertical hero paddings on page banners */
  .pg-banner{padding:44px 5% 40px;}
  .pg-banner h1{font-size:clamp(1.6rem,7vw,2.1rem);}
}

/* ================= SMALL PHONE (<=380px) ================= */
@media (max-width:380px){
  .logo-tagline{display:none;}
  .hero-slide-eyebrow{font-size:.68rem;}
  .section-title{font-size:1.4rem;}
  .btn{font-size:.9rem;}
}

/* reduce motion */
@media (prefers-reduced-motion:reduce){
  *{animation-duration:.001ms!important;transition-duration:.001ms!important;}
}
