/* =========================
   RESPONSIVE CSS - CHINMAYA SCHOOL
   Modern Unified Device Support
========================= */

@import url('variables.css');

/* =========================
   TABLET & BELOW (max-width: 1024px)
========================= */

@media(max-width: 1024px) {
    .navbar {
        padding: 0 20px;
    }

    .nav-links {
        gap: 20px;
    }

    .about {
        padding: var(--space-lg) 5%;
        gap: 40px;
    }
}

/* =========================
   MOBILE MENU BREAKPOINT (max-width: 991px)
========================= */

@media(max-width: 991px) {
    .navbar {
        min-height: 70px;
        padding: 10px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-white);
        padding: 40px 20px;
        transition: var(--transition);
        z-index: 999;
        overflow-y: auto;
        box-shadow: var(--shadow-lg);
    }

    .navbar.active nav {
        left: 0;
    }

    .nav-links {
        flex-direction: column;
        align-items: center;
        gap: 30px;
    }

    .nav-links a {
        font-size: 20px;
        font-weight: 600;
    }

    .navbar.active .menu-toggle span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .navbar.active .menu-toggle span:nth-child(2) {
        opacity: 0;
    }

    .navbar.active .menu-toggle span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .hero-overlay h1 {
        font-size: 40px;
    }

    .about {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .about-image {
        order: -1;
    }

    .section-title h2 {
        font-size: 32px;
    }

    .stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================
   SMALL MOBILE (max-width: 576px)
========================= */

@media(max-width: 576px) {
    .logo img {
        width: 50px;
        height: 50px;
    }

    .logo-text h2 {
        font-size: 1.4rem;
    }

    .logo-text span {
        font-size: 10px;
    }

    .hero-overlay h1 {
        font-size: 32px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }

    .stats {
        grid-template-columns: 1fr;
    }

    .contact-form {
        padding: 30px 20px;
    }
}

/* =========================
   LARGE DESKTOPS
========================= */

@media(min-width: 1440px) {

    .about,
    .facilities,
    .gallery-preview,
    .contact-section {
        padding-left: 12%;
        padding-right: 12%;
    }
}