/* ===================================================
   SUNSHINE FOODS - FULL RESPONSIVE DESIGN SYSTEM
   Breakpoints:
   - 1200px (Laptops / Small Desktops)
   - 992px  (Tablets Landscape / Mobile Menu Trigger)
   - 768px  (Tablets Portrait)
   - 600px  (Mobile Landscape & Phablets)
   - 480px  (Standard Mobile)
   - 360px  (Small Mobile)
   =================================================== */

:root {
    --transition-menu: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   1. LAPTOPS & SMALL DESKTOPS (max-width: 1200px)
   ============================================= */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    .hero-content h1 {
        font-size: 3.8rem;
    }

    .about-grid {
        gap: 50px;
    }

    .footer-grid {
        gap: 32px;
    }
}

/* =============================================
   2. TABLETS LANDSCAPE (max-width: 992px)
   Mobile Navigation Trigger
   ============================================= */
@media (max-width: 992px) {

    /* --- Header & Navigation --- */
    header {
        padding: 14px 0;
        background: var(--bg-deep) !important;
        border-bottom: 1px solid rgba(255, 193, 0, 0.15);
    }

    header.scrolled {
        padding: 10px 0;
    }

    .mobile-toggle {
        display: flex;
        background: transparent;
        border: 1.5px solid rgba(255, 193, 0, 0.4);
        color: var(--gold);
        font-size: 1.15rem;
        cursor: pointer;
        z-index: 1002;
        width: 44px;
        height: 44px;
        justify-content: center;
        align-items: center;
        transition: var(--transition);
        border-radius: 0;
    }

    .mobile-toggle:hover {
        border-color: var(--gold);
        background: rgba(255, 193, 0, 0.12);
    }

    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: rgba(14, 5, 0, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        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: 24px;
        padding: 0;
    }

    #nav ul li a {
        font-size: 1.25rem;
        text-transform: uppercase;
        letter-spacing: 3px;
        font-weight: 700;
        color: rgba(255, 255, 255, 0.9);
        font-family: 'Playfair Display', Georgia, serif;
        padding: 6px 12px;
    }

    #nav ul li a:hover,
    #nav ul li a.active {
        color: var(--gold);
    }

    .nav-actions .btn {
        display: none;
    }

    /* --- Hero Section --- */
    .hero {
        height: 80vh;
        min-height: 540px;
    }

    .hero-content {
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        text-align: center;
        width: 90%;
        max-width: 620px;
    }

    .slide-subtitle {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 3.2rem;
    }

    .hero-content p {
        font-size: 1.05rem;
        margin: 0 auto 28px;
    }

    .hero-btns {
        justify-content: center;
    }

    .slider-btn {
        width: 44px;
        height: 44px;
        font-size: 0.9rem;
    }

    .prev-btn {
        left: 14px;
    }

    .next-btn {
        right: 14px;
    }

    /* --- Sections Global --- */
    section {
        padding: 72px 0;
    }

    .section-header {
        margin-bottom: 44px;
    }

    .section-header h2 {
        font-size: 2.3rem;
    }

    /* --- About Section --- */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 44px;
        text-align: center;
    }

    .about-image {
        max-width: 500px;
        margin: 0 auto;
    }

    .about-image::before,
    .about-image::after {
        display: none;
    }

    .about-text h3 {
        font-size: 2.3rem;
    }

    .about-text .ornament-divider {
        justify-content: center;
    }

    /* --- Menu Section --- */
    .classic-menu-board {
        padding: 36px 28px 32px;
        outline-offset: -6px;
    }

    .classic-menu-columns {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .classic-menu-divider {
        display: none;
    }

    .menu-cat-header h3 {
        font-size: 1.2rem;
    }

    /* --- Gallery --- */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }

    /* --- Reviews --- */
    .review-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }

    /* --- Find Us --- */
    .find-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .find-title {
        font-size: 2.8rem;
    }

    .find-info .ornament-divider {
        justify-content: center;
    }

    .contact-detail {
        flex-direction: column;
        gap: 10px;
        margin-bottom: 24px;
        align-items: center;
    }

    .detail-text {
        text-align: center;
    }

    .map-wrapper {
        height: 380px;
    }

    /* --- Footer --- */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 32px;
    }

    /* --- Lightbox --- */
    .lightbox-dialog {
        max-width: 92vw;
    }

    .lightbox-btn-prev {
        left: 10px;
    }

    .lightbox-btn-next {
        right: 10px;
    }

    .lightbox-btn-close {
        top: 10px;
        right: 10px;
    }
}

/* =============================================
   3. TABLETS PORTRAIT (max-width: 768px)
   ============================================= */
@media (max-width: 768px) {

    .hero-content h1 {
        font-size: 2.6rem;
    }

    .hero-content p {
        font-size: 0.98rem;
    }

    .about-text h3 {
        font-size: 2.1rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 200px;
    }

    .review-card {
        flex: 0 0 calc((100% - 22px) / 2);
    }

    .find-title {
        font-size: 2.4rem;
    }

    /* Lightbox */
    .lightbox-modal {
        padding: 12px 8px;
    }

    .lightbox-card {
        outline: none;
    }

    .lightbox-frame {
        height: min(52vh, 380px);
    }

    .lightbox-btn-prev,
    .lightbox-btn-next {
        width: 40px;
        height: 40px;
        font-size: 0.95rem;
    }

    .lightbox-btn-close {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }

    .lightbox-meta {
        padding: 8px 14px;
    }

    .lightbox-thumb {
        width: 50px;
        height: 36px;
    }
}

/* =============================================
   4. MOBILE LANDSCAPE & PHABLETS (max-width: 600px)
   ============================================= */
@media (max-width: 600px) {

    section {
        padding: 56px 0;
    }

    .section-header {
        margin-bottom: 34px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .logo img {
        width: 48px;
        height: 48px;
        padding: 5px;
    }

    /* Hero */
    .hero {
        height: 72vh;
        min-height: 480px;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

    .hero-btns .btn {
        width: 100%;
        max-width: 280px;
        padding: 12px 24px;
        text-align: center;
    }

    .slider-btn {
        width: 38px;
        height: 38px;
        font-size: 0.82rem;
    }

    .prev-btn {
        left: 8px;
    }

    .next-btn {
        right: 8px;
    }

    /* Menu Board */
    .classic-menu-board {
        padding: 28px 18px 24px;
        outline-offset: -4px;
    }

    .classic-menu-board::before,
    .classic-menu-board::after {
        display: none;
    }

    .menu-board-header {
        gap: 8px;
        padding-bottom: 18px;
        margin-bottom: 20px;
    }

    .menu-ornament-left,
    .menu-ornament-right {
        display: none;
    }

    .menu-board-badge {
        font-size: 0.72rem;
        letter-spacing: 2px;
    }

    .classic-menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .classic-menu-item {
        padding: 12px 14px;
    }

    .menu-item-name {
        font-size: 1.05rem;
    }

    .menu-item-price {
        font-size: 1.2rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .gallery-item {
        height: 170px;
    }

    /* Reviews Carousel (1 card per slide on mobile) */
    .reviews-container {
        overflow: hidden;
        padding: 10px 0 20px;
    }

    .review-card {
        flex: 0 0 100%;
        min-width: 100%;
        max-width: 100%;
    }

    .review-card-inner {
        padding: 20px 16px;
    }

    /* Find Us */
    .find-title {
        font-size: 2.1rem;
    }

    .map-wrapper {
        height: 320px;
    }

    /* Footer (Single column centered) */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-logo-col {
        align-items: center;
        text-align: center;
    }

    .footer-about-text {
        max-width: 320px;
        margin: 0 auto 16px;
    }

    .footer-col h4::after {
        margin: 10px auto 0;
        left: 50%;
        transform: translateX(-50%);
    }

    .opening-hours {
        max-width: 300px;
        margin: 0 auto;
    }

    .app-buttons {
        align-items: center;
        justify-content: center;
    }

    .footer-bottom p {
        flex-direction: column;
        gap: 10px;
    }

    /* QR Page */
    .qr-page-section {
        padding: 110px 0 60px;
    }

    .qr-page-section .section-header h2 {
        font-size: 2.2rem;
    }

    .qr-cards-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .qr-card {
        padding: 32px 20px;
    }

    /* Scroll to top button */
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
        font-size: 0.9rem;
    }
}

/* =============================================
   5. STANDARD MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {

    .container {
        padding: 0 14px;
    }

    .section-header h2 {
        font-size: 1.8rem;
    }

    /* Hero */
    .hero {
        height: 68vh;
        min-height: 450px;
    }

    .hero-content h1 {
        font-size: 1.9rem;
        line-height: 1.2;
    }

    .hero-content p {
        font-size: 0.9rem;
        margin-bottom: 22px;
    }

    .slide-subtitle {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }

    .about-text h3 {
        font-size: 1.85rem;
    }

    .about-desc {
        font-size: 0.95rem;
    }

    /* Menu item card */
    .classic-menu-board {
        padding: 20px 12px 18px;
    }

    .classic-menu-item {
        padding: 10px 12px;
    }

    .menu-item-name {
        font-size: 0.98rem;
    }

    .menu-item-price {
        font-size: 1.15rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        height: 150px;
    }

    /* Find Us */
    .find-title {
        font-size: 1.85rem;
    }

    .find-desc {
        font-size: 0.92rem;
    }

    .map-wrapper {
        height: 290px;
    }

    /* Lightbox */
    .lightbox-frame {
        height: min(44vh, 280px);
    }

    .lightbox-meta {
        padding: 6px 10px;
    }

    .lightbox-counter {
        font-size: 0.75rem;
        padding: 4px 8px;
    }

    /* QR Page */
    .qr-page-section {
        padding: 95px 0 50px;
    }

    .qr-page-section .section-header h2 {
        font-size: 1.85rem;
    }

    .qr-card {
        padding: 24px 14px;
    }

    .qr-codes-container {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .qr-code-frame img {
        width: 130px;
        height: 130px;
    }

    .qr-logo-box {
        padding: 18px 20px;
    }

    .qr-logo-box img {
        max-width: 190px;
    }
}

/* =============================================
   6. EXTRA SMALL MOBILE (max-width: 360px)
   ============================================= */
@media (max-width: 360px) {

    .hero-content h1 {
        font-size: 1.65rem;
    }

    .section-header h2 {
        font-size: 1.6rem;
    }

    .about-text h3 {
        font-size: 1.65rem;
    }

    .gallery-item {
        height: 135px;
    }

    .find-title {
        font-size: 1.65rem;
    }
}

/* =============================================
   7. UTILITIES
   ============================================= */
body.menu-open {
    overflow: hidden !important;
    touch-action: none;
}