/* ============================================
   MONTREAL EAD - RESPONSIVE STYLES
   Mobile-First Responsive Design
   ============================================ */

/* ============================================
   TABLET (768px and below)
   ============================================ */
@media (max-width: 768px) {

    /* Typography Adjustments */
    :root {
        --font-size-h1: 36px;
        --font-size-h2: 28px;
        --font-size-h3: 24px;
        --font-size-h4: 20px;
        --font-size-h5: 18px;
    }

    /* Header */
    .header-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        display: none;
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-md);
        gap: var(--spacing-sm);
    }

    .nav-menu.active {
        display: flex;
    }

    .menu-toggle {
        display: flex;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        margin-top: var(--spacing-sm);
    }

    /* Hero Section */
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 36px;
    }

    .hero-image {
        order: -1;
    }

    /* Institutional Section */
    .institutional-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .institutional-actions {
        flex-direction: column;
    }

    /* Courses Section */
    .courses-grid {
        grid-template-columns: 1fr;
    }

    /* Technology Section */
    .technology-content {
        grid-template-columns: 1fr;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    /* Grid Utilities */
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   MOBILE (480px and below)
   ============================================ */
@media (max-width: 480px) {

    /* Typography */
    :root {
        --font-size-h1: 28px;
        --font-size-h2: 24px;
        --font-size-h3: 20px;
        --font-size-base: 14px;
    }

    /* Spacing Adjustments */
    .section {
        padding: var(--spacing-xl) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }

    /* Buttons */
    .btn {
        width: 100%;
        padding: 14px 24px;
    }

    .btn-lg {
        padding: 16px 32px;
    }

    /* Header */
    .logo {
        height: 40px;
    }

    .header-actions .btn {
        width: auto;
        padding: 8px 16px;
        font-size: var(--font-size-small);
    }

    /* WhatsApp Float */
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   DESKTOP LARGE (1440px and above)
   ============================================ */
@media (min-width: 1440px) {

    :root {
        --font-size-h1: 56px;
        --font-size-h2: 42px;
    }

    .container {
        max-width: 1320px;
    }

    .container-wide {
        max-width: 1600px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {

    .header,
    .whatsapp-float,
    .carousel-dots,
    .btn {
        display: none;
    }

    body {
        color: #000;
        background: #fff;
    }

    a {
        text-decoration: underline;
    }
}