/* Orbit Education — responsive layer. Loaded last. All breakpoint overrides live here. */

/* --- Large desktop down to laptop --------------------------------------- */
@media (max-width: 1240px) {
  .c-topbar__info { gap: var(--s-5); }
  .c-topbar__item--hours { display: none; }
}

@media (max-width: 1180px) {
  .c-nav__link { padding: var(--s-2) 0.4rem; font-size: var(--fs-2xs); }
  .c-uni-list { columns: 2; }
  .c-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .c-footer__grid > :nth-child(4) { grid-column: 1 / -1; }
}

/* --- Laptop down to tablet ---------------------------------------------- */
@media (max-width: 1024px) {
  .c-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-stats--float { margin-top: calc(var(--s-10) * -1); }
  .c-stat { border-right: 0; border-bottom: 1px solid var(--c-line); }
  .c-stat:nth-child(odd) { border-right: 1px solid var(--c-line); }
  .c-stat:nth-last-child(-n+2) { border-bottom: 0; }
  .c-nav__panel--wide { min-width: 420px; }
}

/* --- Tablet: swap desktop nav for the drawer ---------------------------- */
@media (max-width: 1024px) {
  .c-topbar__info { display: none; }
}

@media (max-width: 960px) {
  .c-nav { display: none; }
  .c-burger { display: inline-flex; position: relative; }
  .c-header__actions .c-btn--ghost { display: none; }
  .c-topbar { display: none; }
  .c-header__brand { display: flex; }
  .c-header__inner { justify-content: space-between; }
  .c-hero__points { grid-template-columns: minmax(0, 1fr); }
  .c-steps { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 860px) {
  .c-cta-band { flex-direction: column; align-items: flex-start; }
  .c-uni-list { columns: 2; }
  .c-article__hero { margin-bottom: var(--s-8); }
  .c-hero__ring { width: 96vw; right: -34%; opacity: 0.7; }
  .c-hero__slide { background-position: 62% 26%; }
  .c-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-8); }
  .c-footer__grid > :nth-child(4) { grid-column: auto; }
}

/* --- Phone --------------------------------------------------------------- */
@media (max-width: 620px) {
  .c-form__row { grid-template-columns: minmax(0, 1fr); }
  .c-uni-list { columns: 1; }
  .c-stats { grid-template-columns: minmax(0, 1fr); }
  .c-stat { border-right: 0 !important; border-bottom: 1px solid var(--c-line); padding: var(--s-6); }
  .c-stat:last-child { border-bottom: 0; }
  .c-stats--float { margin-top: var(--s-8); }
  .c-hero__actions .c-btn { width: 100%; }
  .c-cta-band__actions { width: 100%; }
  .c-cta-band__actions .c-btn { flex: 1 1 100%; }
  .c-story__media { aspect-ratio: 3 / 4; }
  .c-gallery { grid-template-columns: minmax(0, 1fr); }
  .c-header__actions .c-btn { padding: 0.5rem var(--s-4); }
  .c-stat { padding: var(--s-5) var(--s-6); }
  .c-footer__grid { grid-template-columns: minmax(0, 1fr); gap: var(--s-8); }
  .c-footer__bar { flex-direction: column; gap: var(--s-2); }
  .c-dock { right: var(--s-4); bottom: var(--s-4); }
  .c-dock__btn { width: 48px; height: 48px; }
  .c-chat { right: var(--s-3); left: var(--s-3); width: auto; bottom: calc(var(--s-4) + 60px); }
  .c-uni-group__head { flex-direction: column; gap: var(--s-1); }
  .c-filter-bar { gap: var(--s-2); }
  .c-filter-bar__btn { padding: var(--s-2) var(--s-4); font-size: var(--fs-xs); }
  .l-page-head::after { display: none; }
}

@media (max-width: 400px) {
  .c-header__brand img { height: 34px; }
  .c-hero__point { font-size: var(--fs-xs); }
}

/* --- Print --------------------------------------------------------------- */
@media print {
  .c-header, .c-dock, .c-chat, .c-footer, .c-cta-band, .c-drawer { display: none !important; }
  .l-page-head__media, .c-hero__media { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .l-section { padding-block: 1rem; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
