/* =========================================================
   responsive.css — breakpoints (desktop-first)
   1199 / 1023 (nav collapse) / 767 (tablet→mobile) / 479
   ========================================================= */

/* ---------- ≤ 1199px : small desktop ---------- */
@media (max-width: 1199px) {
  .nav, .nav__list { gap: 1.25rem; }
  .nav__link { font-size: .8125rem; }
  .partner-logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- ≤ 1023px : tablet, collapsed nav ---------- */
@media (max-width: 1023px) {
  :root { --header-h: 64px; }

  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--header-h));
    overflow-y: auto;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--white);
    border-top: 1px solid var(--line);
    box-shadow: 0 16px 32px rgba(0, 0, 0, .08);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
  }
  .nav.is-open {
    opacity: 1; visibility: visible; transform: none;
    transition: opacity .2s var(--ease), transform .25s var(--ease), visibility 0s;
  }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link {
    display: block; padding: .875rem 0; font-size: 1rem;
    border-bottom: 1px solid var(--line);
  }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 1.25rem; min-height: 48px; font-size: .8125rem; }
  body.nav-open { overflow: hidden; }

  .hero__inner { grid-template-columns: minmax(0, 1fr) 320px; gap: 2rem; min-height: 0; padding-block: 3.5rem; }
  .apply-card { max-width: 320px; }

  .faculty-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .recruiter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .partner-names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- ≤ 767px : mobile ---------- */
@media (max-width: 767px) {
  .hero__inner { grid-template-columns: 1fr; padding-block: 3rem 2.5rem; gap: 2.5rem; }
  .hero__content { max-width: none; }
  .hero__title br { display: none; }
  .hero__stats { grid-template-columns: 1fr; row-gap: 1.25rem; }
  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 78, 75, .9), rgba(7, 86, 83, .96)),
      linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px,
      linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px) 0 0 / 24px 24px;
  }
  .apply-card { justify-self: stretch; max-width: none; }
  .apply-card__title { text-align: center; padding:.875rem; font-size: 1.125rem; }
  .input { height: 44px; font-size: 1rem; } /* 16px prevents iOS zoom */
  .captcha { height: 44px; }

  .split { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  #about .split__media, #approach .split__media { order: 0; }
  .eligibility-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .eligibility-media { aspect-ratio: 4 / 3; }
  .eligibility-media .media-img { height: 100%; }
  .approach-layout { grid-template-columns: 1fr; }
  #approach .h2 { font-size: 2rem; }
  #approach .media-img { min-height: 0; aspect-ratio: 3 / 2; }
  .pillar {
    grid-template-columns: 2.8rem minmax(0, 1fr); gap: 1rem;
    padding-block: 1.5rem; font-size: 1.5rem; line-height: 1.4;
  }
  .pillar:first-child { padding-top: .5rem; }

  .degree-grid, .aid-grid, .journey-grid, .stat-row { grid-template-columns: 1fr; }
  .degree { min-height: 0; }
  .career-outcomes { grid-template-columns: 1fr; }
  .journey-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .faculty-grid {
    display: flex; gap: .75rem; overflow-x: auto; overscroll-behavior-x: contain;
    margin-inline: 0; margin-bottom: .5rem; padding: 0 0 1rem;
    scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .faculty-grid::-webkit-scrollbar { display: none; }
  .faculty { flex: 0 0 82%; scroll-snap-align: start; }
  .faculty-toggle-wrap { display: none; }
  .faculty-slider-controls { display: flex; gap: .375rem; margin: 0 0 1.5rem; }
  .faculty-slider__button {
    display: inline-flex; width: 2.25rem; height: 2.25rem; align-items: center; justify-content: center;
    border-radius: var(--radius-sm); background: var(--teal-500); color: var(--white);
  }
  .faculty-slider__button::before {
    content: ""; width: .5rem; height: .5rem;
    border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    transform: rotate(45deg);
  }
  .faculty-slider__button[data-slider-direction="previous"]::before { transform: rotate(-135deg); }
  .faculty-slider__button:disabled { opacity: .45; cursor: default; }
  #students .quote-grid { gap: .75rem; margin: 2rem 0 .5rem; }
  #students .quote { flex-basis: 100%; }
  #students .quote blockquote p { font-size: .9375rem; line-height: 1.5; }
  #students .quote-slider-controls { margin: 0 0 1.5rem; }
  .recruiter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .625rem; }
  .partner-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
  .partner-names { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
  .partner-names li:last-child { grid-column: 1 / -1; justify-self: center; max-width: 180px; }

  .gallery { grid-template-columns: 1fr; grid-auto-rows: auto; grid-auto-flow: row; }
  .gallery img { height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: top; }
  .gallery__tall, .gallery__wide { grid-column: auto; grid-row: auto; }

  .tabs {
    display: flex; gap: .5rem; overflow-x: auto; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; min-height: 48px; padding: .75rem 1.125rem; scroll-snap-align: start; }
  .section--faq .tabs { display: none; }
  .faq-category { display: block; margin-bottom: 1.5rem; }
  .faq-category__select-wrap { display: block; position: relative; }
  .faq-category__select-wrap::after {
    content: ""; position: absolute; top: 50%; right: 1rem;
    width: .5rem; height: .5rem; border-right: 1.5px solid var(--white);
    border-bottom: 1.5px solid var(--white); transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
  }
  .faq-category__select {
    width: 100%; min-height: 48px; padding: .75rem 2.5rem .75rem 1rem;
    appearance: none; border: 0; border-radius: var(--radius-sm);
    background: #027272; color: var(--white);
    font-size: .875rem; font-weight: 600;
  }
  .faq-category.is-enhanced .faq-category__select { display: none; }
  .faq-category__custom[hidden], .faq-category__options[hidden] { display: none; }
  .faq-category__custom { display: block; position: relative; width: 100%; }
  .faq-category__trigger {
    width: 100%; min-height: 48px; padding: .75rem 2.5rem .75rem 1rem;
    border: 0; border-radius: var(--radius-sm);
    background: #027272; color: var(--white);
    font-size: .875rem; font-weight: 600; text-align: left;
  }
  .faq-category__options {
    position: absolute; top: 100%; left: 0; z-index: 5;
    display: flex; flex-direction: column;
    width: 100%; overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #027272;
  }
  .faq-category__option {
    width: 100%; min-width: 0; padding: .5rem 1rem;
    color: var(--white); text-align: left;
    overflow-wrap: anywhere;
  }
  .faq-category__option:hover,
  .faq-category__option[aria-selected="true"] { background: #006a66; }
  .faq-category__trigger:focus-visible,
  .faq-category__option:focus-visible { outline: 2px solid var(--white); outline-offset: -3px; }
  .faq-category__select:focus-visible { outline: none; box-shadow: var(--ring); }

  .acc__q { padding: 1rem; font-size: .875rem; }
  .acc__a { padding: 0 1rem 1rem; }
  .acc__a p { font-size: .875rem; }

  .footnote { text-align: right; }
	.footnote2 { text-align: left; }
  .cta { padding-block: 2.5rem; }
  .cta .h2 { max-width: 20ch; font-size: clamp(1.5rem, 1.25rem + 1vw, 2rem); }
  .cta .body { max-width: 42rem; }
  .cta .btn--white {
    max-width: 100%;
    min-height: 48px;
    padding: .75rem 1.75rem;
    border-radius: var(--radius-sm);
    color: #111;
    font-size: .875rem;
    letter-spacing: 0;
  }
  .cta .btn--white:hover { color: #111; }
  .footer__inner {
    flex-direction: column; align-items: center; justify-content: center;
    padding-block: 1.25rem 5.5rem; text-align: center;
  }
  .footer__meta { justify-content: center; }

  .mobile-apply {
    display: inline-flex;
    position: fixed; left: var(--gutter); right: var(--gutter); bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 90; min-height: 48px;
    box-shadow: 0 8px 24px rgba(0, 60, 56, .3);
    transform: translateY(150%);
    transition: transform .3s var(--ease), background-color .2s var(--ease);
  }
  .mobile-apply.is-visible { transform: none; }
}

@media (min-width: 768px) {
  .faculty-slider-controls { display: none; }
}

/* ---------- ≤ 479px : small mobile ---------- */
@media (max-width: 479px) {
  .brand img { width: 124px; }
  .hero__stats { column-gap: 1.5rem; }
  .hero__stat dt { font-size: 2rem; }
  .hero__stat dd { font-size: .75rem; }
  .journey-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: .75rem; }
  .field--split { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .section > .container > .btn { width: 100%; }
  .section.cta > .container > .btn { width: auto; }
}

/* ---------- ≥ 1440px : wide ---------- */
@media (min-width: 1440px) {
  .hero__inner { min-height: 760px; }
}
