/* --- Responsive CSS for Halal Kitchen --- */

:root {
    --transition-menu: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile Toggle - Hidden on Desktop */
.mobile-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition);
}

.mobile-toggle:hover {
    color: var(--secondary);
}

/* Tablet & Mobile View (max-width: 992px) */
@media (max-width: 992px) {

    /* Header & Navigation */
    header {
        padding: 15px 0;
    }

    .mobile-toggle {
        display: block;
    }

    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(18, 18, 18, 0.98);
        backdrop-filter: blur(15px);
        display: flex;
        justify-content: center;
        align-items: center;
        transition: var(--transition-menu);
        z-index: 1001;
    }

    #nav.active {
        right: 0;
    }

    #nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 25px;
        padding: 0;
    }

    #nav ul li a {
        font-size: 1.4rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
    }

    .nav-actions .btn {
        display: none;
        /* Hide order button on header for tablet/mobile to keep it clean */
    }

    /* Hero Section */
    .hero-content {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center;
        width: 90%;
        max-width: 600px;
    }

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

    .hero-content p {
        font-size: 1.1rem;
        margin: 0 auto 30px auto;
    }

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

    .slider-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    /* About Section */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .about-text h3 {
        font-size: 2.5rem;
    }

    .about-image {
        padding-right: 0;
        max-width: 500px;
        margin: 0 auto;
    }

    .about-image::after {
        display: none;
    }

    /* Menu Preview */
    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }

    /* Reviews */
    .review-card {
        min-width: 300px;
        padding: 20px;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    /* Find Us */
    .find-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .find-title {
        font-size: 3.5rem;
    }

    .contact-detail {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 25px;
    }

    .detail-icon {
        margin: 0 auto;
    }

    .map-wrapper {
        height: 350px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

/* Tablet Portrait (max-width: 768px) */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .about-text h3 {
        font-size: 2.2rem;
    }
}

/* Small Mobile View (max-width: 600px) */
@media (max-width: 600px) {
    section {
        padding: 40px 0;
    }

    .section-header {
        margin-bottom: 40px;
    }

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

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

    .hero-btns {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
    }

    .menu-tabs {
        flex-wrap: wrap;
        gap: 8px;
    }

    .menu-tab {
        font-size: 0.8rem;
        padding: 8px 12px;
    }

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

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

    .footer-col h4::after {
        content: '';
        display: block;
        width: 50px;
        height: 2px;
        background: var(--secondary);
        margin: 10px auto;
    }

    .social-links {
        justify-content: center;
    }

    .footer-col li {
        text-align: center;
    }

    .footer-bottom p {
        flex-direction: column;
        gap: 15px;
    }

    .logo img {
        height: 45px;
    }
}

/* Extra Small Mobile View (max-width: 480px) */
@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

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

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

    .about-text h3 {
        font-size: 1.8rem;
    }

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

    .find-title {
        font-size: 2.5rem;
    }

    .slider-btn {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    .app-buttons {
        display: flex;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
}

/* Utility to prevent body scroll when menu is open */
body.menu-open {
    overflow: hidden;
}