/* ============================================================
   Vidyamrit — responsive.css
   Breakpoints (load LAST):
     ≤1024px  tablet  → 4-col becomes 2-col
     ≤860px   phone   → hamburger drawer, hero stacks
     ≤620px   small   → everything single column
   ============================================================ */

/* ============================================================
   TABLET  ≤ 1024px
   ============================================================ */
@media (max-width: 1024px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }

  .why__grid { grid-template-columns: 1fr; }
  .why__intro { position: static; }

  .program-layout { grid-template-columns: 1fr; }
  .enrol-card { position: static; }

  .contact-grid { grid-template-columns: 1fr; }

  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .selection-strip { grid-template-columns: repeat(2, 1fr); }

  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery .moment-tile.is-tall { grid-row: auto; }
}

/* ============================================================
   PHONE  ≤ 860px  (navigation collapses)
   ============================================================ */
@media (max-width: 860px) {
  /* --- hamburger + slide-in drawer --- */
  .nav-toggle { display: flex; }

  .nav-menu {
    position: fixed;
    top: 0; right: 0; bottom: 0;
    width: min(86vw, 350px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 5.5rem 1.4rem 2rem;
    background: #fff;
    box-shadow: -24px 0 60px rgba(13, 31, 82, 0.22);
    transform: translateX(105%);
    transition: transform var(--t-med) var(--ease);
    overflow-y: auto;
    z-index: 995;
  }
  .nav-menu.is-open { transform: translateX(0); }

  .nav-list { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
  .nav-link {
    width: 100%;
    padding: 0.95rem 0.4rem;
    border-bottom: 1px solid var(--line);
    justify-content: space-between;
  }
  .nav-link::after { display: none; }

  .has-dropdown { flex-direction: column; align-items: stretch; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    min-width: 0;
    padding: 0;
    border: none;
    box-shadow: none;
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--t-med) var(--ease);
  }
  .has-dropdown.is-open .dropdown { max-height: 420px; }
  .has-dropdown.is-open .nav-link--drop svg { transform: rotate(180deg); }
  .dropdown a { padding: 0.7rem 0.9rem; }
  .dropdown a:not(:last-child) { border-bottom: 1px solid var(--line); }

  .nav-cta { width: 100%; margin-top: 1.2rem; }

  /* --- hero stacks --- */
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__content { max-width: 620px; margin-inline: auto; }
  .hero .eyebrow, .hero__actions { justify-content: center; }
  .hero__shloka { border-left: none; border-top: 2px solid rgba(224,189,94,0.5); padding-left: 0; padding-top: 1rem; display: inline-block; }
  .hero__stats { justify-content: center; }
  .hero__art { order: -1; margin-bottom: 1rem; }
  .hero__art img { width: min(78%, 360px); }
  .hero__badge { left: 2%; }

  /* --- content blocks stack --- */
  .split { grid-template-columns: 1fr; }
  .split.is-reverse .split__media { order: 0; }
  .cta-band__actions { flex-direction: column; align-items: center; }

  /* faq / prose comfortable */
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

/* ============================================================
   SMALL  ≤ 620px  (single column)
   ============================================================ */
@media (max-width: 620px) {
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .stat-row { grid-template-columns: repeat(2, 1fr); gap: 0.8rem; }
  .selection-strip { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 0.7rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bar { flex-direction: column; align-items: flex-start; }

  /* full-width primary actions read better on small screens */
  .hero__actions .btn,
  .cta-band__actions .btn { width: 100%; }

  .breadcrumb { font-size: 0.8rem; }
  .lightbox__nav { width: 40px; height: 40px; }
  .lightbox__nav.prev { left: 0.6rem; }
  .lightbox__nav.next { right: 0.6rem; }
}

/* ============================================================
   TINY  ≤ 400px
   ============================================================ */
@media (max-width: 400px) {
  .stat-row { grid-template-columns: 1fr; }
  .brand__sub { display: none; }
}
