/* ============================================================
   SAGE UNIVERSITY — Responsive Styles
   responsive.css

   Breakpoints:
   - 1200px: Large tablets / small desktops
   -  992px: Tablets (hamburger kicks in)
   -  768px: Small tablets / large phones
   -  576px: Phones
   ============================================================ */

/* ── 1200px ────────────────────────────────────────────── */
@media (max-width: 1200px) {
    :root {
        --space-section: 5rem;
    }

    .hero-title {
        font-size: var(--text-4xl);
    }

    .hero-grid {
        grid-template-columns: 1fr 380px;
        gap: var(--space-2xl);
    }

    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
        gap: var(--space-xl);
    }

    .program-layout {
        grid-template-columns: 1fr 340px;
        gap: var(--space-2xl);
    }

    .section-title {
        font-size: var(--text-3xl);
    }
}

/* ── 992px — Tablet / Hamburger ────────────────────────── */
@media (max-width: 992px) {
    :root {
        --space-section: 4rem;
    }

    /* Navigation → Hamburger */
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        max-width: 85vw;
        height: 100vh;
        background-color: var(--color-white);
        flex-direction: column;
        align-items: stretch;
        padding: 80px var(--space-xl) var(--space-xl);
        gap: 0;
        transition: right var(--transition-smooth);
        z-index: var(--z-overlay);
        overflow-y: auto;
        border-left: 1px solid var(--color-gray-100);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-item>a {
        padding: var(--space-md) var(--space-sm);
        font-size: var(--text-base);
        border-bottom: 1px solid var(--color-gray-100);
        border-radius: 0;
    }

    /* Dropdown on mobile */
    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        min-width: 100%;
        background: var(--color-off-white);
        border: none;
        border-radius: 0;
        box-shadow: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height var(--transition-slow);
        padding: 0;
    }

    .nav-item.dropdown-open .nav-dropdown {
        max-height: 500px;
        padding: var(--space-sm) 0;
    }

    .nav-dropdown a {
        padding: var(--space-sm) var(--space-xl);
        font-size: var(--text-sm);
    }

    .nav-item.has-dropdown:hover .nav-dropdown {
        /* Disable hover on mobile; rely on click */
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .nav-cta {
        margin-left: 0;
        margin-top: var(--space-md);
    }

    .nav-cta .btn {
        width: 100%;
        justify-content: center;
    }

    /* Hero */
    .hero {
        min-height: auto;
        padding: var(--space-3xl) 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    .hero-content {
        max-width: 100%;
        text-align: center;
    }

    .hero-description {
        max-width: 100%;
    }

    .hero .btn-group {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .browser-frame {
        max-width: 480px;
        margin: 0 auto;
    }

    /* Split layouts */
    .split-grid,
    .split-grid--reverse {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
        direction: ltr;
    }

    .split-image {
        height: 300px;
    }

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--space-2xl);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }

    /* Program layout */
    .program-layout {
        grid-template-columns: 1fr;
    }

    .sticky-enquiry {
        position: static;
    }

    /* Utility bar */
    .utility-bar__contact {
        display: none;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Trust signals */
    .trust-strip__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Journey timeline → vertical */
    .journey-timeline.new-journey-timeline {
        flex-direction: column;
        gap: var(--space-xl);
    }

    .journey-timeline.new-journey-timeline::before {
        top: 0;
        bottom: 0;
        left: 50%;
        right: auto;
        width: 0;
        height: 100%;
        border-top: none;
        border-left: 2px dashed #e5e7eb;
        transform: translateX(-50%);
    }

    .journey-step.new-journey-step {
        text-align: center;
        padding: 40px 20px;
    }

    .journey-step.new-journey-step .journey-step__icon {
        position: relative;
        left: 0;
        top: 0;
        margin: 0 auto 24px;
    }
}

/* ── 768px — Small Tablets ─────────────────────────────── */
@media (max-width: 768px) {
    :root {
        --space-section: 3.5rem;
    }

    .container {
        padding: 0 var(--space-md);
    }

    .section-title {
        font-size: var(--text-2xl);
    }

    .hero-title {
        font-size: var(--text-3xl);
    }

    .hero-subtitle {
        font-size: var(--text-lg);
    }

    .page-hero {
        padding: var(--space-3xl) 0 var(--space-2xl);
    }

    .page-hero .section-title {
        font-size: var(--text-2xl);
    }

    /* Program cards responsive */
    .program-grid {
        grid-template-columns: 1fr;
    }

    /* USP grid */
    .usp-grid {
        grid-template-columns: 1fr;
    }

    /* Highlight list */
    .highlight-list {
        grid-template-columns: 1fr;
    }

    /* Semester grid */
    .semester-grid {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }

    /* Career grid */
    .career-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Step cards */
    .step-cards {
        grid-template-columns: 1fr 1fr;
    }

    /* Comparison table scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 560px;
    }
}

/* ── 576px — Phones ────────────────────────────────────── */
@media (max-width: 576px) {
    :root {
        --space-section: 3rem;
    }

    html {
        font-size: 15px;
    }

    .hero-title {
        font-size: var(--text-2xl);
    }

    .hero-subtitle {
        font-size: var(--text-base);
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: var(--space-lg);
    }

    .hero-stat__number {
        font-size: var(--text-xl);
    }

    .btn {
        padding: 12px 24px;
        font-size: var(--text-sm);
    }

    .btn--lg {
        padding: 14px 28px;
        font-size: var(--text-base);
    }

    .btn-group {
        flex-direction: column;
        width: 100%;
    }

    .btn-group .btn {
        width: 100%;
        justify-content: center;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-md);
    }

    .stat-item__number {
        font-size: var(--text-2xl);
    }

    /* Trust signals */
    .trust-strip__grid {
        grid-template-columns: 1fr;
    }

    /* Info grid */
    .info-grid {
        grid-template-columns: 1fr;
    }

    /* Audience grid */
    .audience-grid {
        grid-template-columns: 1fr;
    }

    /* Career grid */
    .career-grid {
        grid-template-columns: 1fr;
    }

    /* Step cards */
    .step-cards {
        grid-template-columns: 1fr;
    }

    /* Logo adjustments */
    .logo img {
        height: 36px;
    }

    .logo-text {
        font-size: var(--text-base);
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item {
        height: 180px;
    }

    /* FAQ */
    .faq-question {
        padding: var(--space-md);
        font-size: var(--text-sm);
    }

    .faq-answer__inner {
        padding: 0 var(--space-md) var(--space-md);
    }

    /* Browser frame */
    .browser-frame__bar {
        padding: 8px 12px;
    }

    .browser-frame__content {
        padding: var(--space-md);
    }

    .hero-form-card {
        padding: var(--space-lg);
    }

    /* Contact info cards */
    .contact-info-card {
        flex-direction: column;
        text-align: center;
    }

    .contact-info-card__icon {
        margin: 0 auto;
    }
}