/* ============================================
   Isamu Foundation School - Responsive Styles
   FIXED (COLUMN MENU PRESERVED)
   ============================================ */


/* ================= LARGE TABLET ================= */
@media (max-width: 1024px) {

    .hero-content h1 {
        font-size: 3rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    body:not(.home) .hero {
        min-height: 180px;
        max-height: 280px;
    }
}


/* ================= MOBILE ================= */
@media (max-width: 768px) {

    .top-bar {
        display: none;
    }

    .navbar {
        padding: 10px 0;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .logo img {
        height: 50px;
    }

    .school-name {
        font-size: 1rem;
    }

    .motto {
        font-size: 0.7rem;
    }

    /* HAMBURGER */
    .menu-toggle {
        display: block;
        cursor: pointer;
        margin-left: auto;
    }

    .menu-toggle .bar {
        display: block;
        width: 25px;
        height: 3px;
        margin: 4px 0;
        background-color: var(--dark-color);
        transition: var(--transition);
    }

    /* ================= MENU ================= */

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        width: 100%;
        background-color: #E31E24;
        display: flex;              /* ✅ KEEP COLUMN */
        flex-direction: column;     /* ✅ PRESERVED */
        align-items: stretch;       /* 🔥 FIX spacing */
        text-align: center;
        transition: 0.3s ease;
        z-index: 1000;
        padding: 0;
    }

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

    .nav-item {
        margin: 0;                 /* 🔥 REMOVE BIG SPACE */
        padding: 0;
    }

    /* LINKS */
    .nav-link {
        display: block;
        padding: 8px 12px;         /* 🔥 COMPACT */
        font-size: 14px;
        color: #ffffff !important;
        line-height: 1.2;          /* 🔥 FIX HEIGHT */
        border-bottom: 1px solid rgba(255,255,255,0.5);
        text-align: center;
        transition: all 0.25s ease;
    }

    .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    /* 🔥 HOVER (FIXED) */
    .nav-link:hover {
        background-color: #f3dcae;
        color: #231F20 !important;
    }

    /* ================= HERO ================= */

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title h2 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    body:not(.home) .hero {
        min-height: 160px;
        max-height: 260px;
    }

    body:not(.home) .hero .hero-content {
        padding: 1rem 0;
        text-align: center;
    }

    body:not(.home) .hero h1 {
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
    }

    body:not(.home) .hero p {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    body:not(.home) .hero .btn {
        padding: 8px 18px;
        font-size: 0.85rem;
    }
}


/* ================= SMALL MOBILE ================= */
@media (max-width: 480px) {

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    body:not(.home) .hero {
        min-height: 140px;
        max-height: 240px;
    }

    body:not(.home) .hero h1 {
        font-size: 1.5rem;
    }

    body:not(.home) .hero p {
        font-size: 0.85rem;
    }

    body:not(.home) .hero .btn {
        padding: 6px 15px;
        font-size: 0.8rem;
    }
}


/* ================= PRINT ================= */
@media print {

    .top-bar,
    .main-header,
    .back-to-top,
    .footer-social,
    .map-placeholder {
        display: none;
    }

    body {
        color: black;
        background: white;
    }

    a {
        text-decoration: underline;
    }
}