/* ==========================================================================
   CLASSIC LUXURY RESPONSIVE ENGINE - DINING ROOM
   Comprehensive optimization across all screen sizes
   ========================================================================== */

:root {
    --transition-menu: 0.45s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   LAPTOPS & MEDIUM DESKTOPS (max-width: 1200px)
   ========================================================================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 20px;
    }

    nav ul {
        gap: 22px;
    }

    nav ul li a {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
    }

    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .footer-grid {
        gap: 32px;
    }
}

/* ==========================================================================
   TABLET LANDSCAPE & PORTRAIT (max-width: 992px)
   ========================================================================== */
@media (max-width: 992px) {
    header {
        padding: 14px 0;
    }

    header.scrolled {
        padding: 10px 0;
    }

    .logo img {
        height: 52px;
    }

    header.scrolled .logo img {
        height: 44px;
    }

    /* Hide desktop nav, reveal mobile toggle */
    .mobile-toggle {
        display: flex;
    }

    .nav-actions .btn-secondary {
        display: none;
    }

    /* Mobile Drawer */
    #nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        max-width: 420px;
        height: 100vh;
        height: 100dvh;
        background: rgba(7, 33, 60, 0.98);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        transition: var(--transition-menu);
        z-index: 1001;
        border-left: 1px solid rgba(246, 192, 83, 0.25);
        box-shadow: -15px 0 40px rgba(0, 0, 0, 0.6);
        overflow-y: auto;
        padding: 90px 24px 40px;
    }

    #nav.active {
        right: 0;
    }

    #nav ul {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 22px;
        width: 100%;
        padding: 0;
        margin-bottom: 30px;
    }

    #nav ul li {
        width: 100%;
        text-align: center;
    }

    #nav ul li a {
        display: block;
        font-size: 1.15rem;
        text-transform: uppercase;
        letter-spacing: 2px;
        font-weight: 700;
        color: #ffffff;
        padding: 10px 16px;
        border-radius: 8px;
        transition: var(--transition);
    }

    #nav ul li a:hover,
    #nav ul li a.active {
        background: rgba(246, 192, 83, 0.1);
        color: var(--gold-primary);
    }

    #nav ul li a::after {
        display: none;
    }

    .mobile-nav-cta {
        display: block;
        width: 100%;
        max-width: 260px;
        margin-top: 10px;
    }

    .mobile-nav-cta .btn {
        width: 100%;
    }

    /* Hero Section */
    .hero {
        min-height: 580px;
    }

    .slide {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .slide::after {
        background: 
            radial-gradient(circle at center, rgba(7, 33, 60, 0.6) 0%, rgba(3, 19, 34, 0.92) 100%),
            linear-gradient(180deg, rgba(7, 33, 60, 0.8) 0%, rgba(7, 33, 60, 0.7) 50%, rgba(7, 33, 60, 0.9) 100%);
    }

    .hero-content {
        margin: 0 auto;
        text-align: center;
        width: 100%;
        max-width: 680px;
        padding: 70px 16px 20px;
        position: relative;
    }

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

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

    .prev-btn {
        left: 16px;
    }

    .next-btn {
        right: 16px;
    }

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

    .about-image {
        max-width: 520px;
        margin: 0 auto;
        order: 1;
    }

    .about-text {
        order: 2;
        max-width: 720px;
        margin: 0 auto;
    }

    .about-text h3::after {
        margin: 16px auto 0;
    }

    /* Menu Grid */
    .menu-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

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

    /* Reviews */
    .reviews .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .reviews .section-header h2::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .reviews .section-header h2::after {
        margin: 12px auto 0;
    }

    .review-card {
        flex: 0 0 calc((100% - 24px) / 2);
    }

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

    .find-info {
        max-width: 680px;
        margin: 0 auto;
    }

    .contact-detail {
        text-align: left;
    }

    .map-wrapper {
        height: 380px;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }
}

/* ==========================================================================
   TABLET PORTRAIT & LARGE PHONES (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
    #nav {
        max-width: 100%;
        border-left: none;
    }

    .hero-content h1 {
        line-height: 1.15;
    }

    /* Menu: 1 clean column on portrait tablet */
    .menu-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }

    .qr-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .gallery-item {
        height: 190px;
    }

    .review-card {
        flex: 0 0 100%;
    }

    .about-image {
        padding: 12px;
    }

    .about-image::before,
    .about-image::after {
        width: 45px;
        height: 45px;
    }
}

/* ==========================================================================
   STANDARD PHONES (max-width: 600px)
   ========================================================================== */
@media (max-width: 600px) {
    .container {
        padding: 0 16px;
    }

    header {
        padding: 12px 0;
    }

    .logo img {
        height: 46px;
    }

    header.scrolled .logo img {
        height: 40px;
    }

    /* Hero Buttons stacked for easy touch */
    .hero-btns {
        flex-direction: column;
        gap: 12px;
        align-items: center;
        width: 100%;
    }

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

    .slider-btn {
        width: 42px;
        height: 42px;
        font-size: 0.95rem;
    }

    .prev-btn {
        left: 10px;
    }

    .next-btn {
        right: 10px;
    }

    .slider-dots {
        bottom: 22px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 35px;
    }

    /* Menu Card adjustments */
    .menu-item-img {
        height: 190px;
    }

    .menu-item-body {
        padding: 18px 16px;
    }

    .menu-order-btn {
        width: 100%;
        justify-content: center;
    }

    /* Contact Details */
    .contact-detail {
        padding: 14px 16px;
        gap: 14px;
    }

    .detail-icon {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }

    .map-wrapper {
        height: 330px;
    }

    .map-button-overlay {
        bottom: 12px;
        right: 12px;
        left: 12px;
        padding: 12px 16px;
    }

    .map-button-overlay h3 {
        font-size: 1.1rem;
        margin-bottom: 8px;
    }

    /* Footer: 1 Column cleanly aligned */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
    }

    .footer-col h4::after {
        margin: 8px auto 0;
    }

    .footer-col .footer-logo-wrap {
        display: flex;
        justify-content: center;
    }

    .footer-col p {
        max-width: 380px;
        margin-left: auto;
        margin-right: auto;
    }

    .opening-hours {
        max-width: 320px;
        margin: 0 auto;
    }

    .opening-hours li {
        padding: 7px 0;
    }

    .app-buttons {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .app-btn {
        max-width: 140px;
    }

    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   COMPACT & SMALL PHONES (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .logo img {
        height: 42px;
    }

    .mobile-toggle {
        width: 40px;
        height: 40px;
        font-size: 1.05rem;
    }

    .hero-content {
        padding: 60px 10px 20px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .gallery-item {
        height: 150px;
        border-radius: 8px;
    }

    .review-buttons button {
        padding: 9px 18px;
        font-size: 0.75rem;
        letter-spacing: 1.2px;
    }

    .review-card-inner {
        padding: 20px 16px;
    }

    .contact-detail {
        flex-direction: row;
        align-items: center;
        text-align: left;
    }

    .contact-detail .detail-text h4 {
        font-size: 0.95rem;
    }

    .contact-detail .detail-text p {
        font-size: 0.88rem;
    }

    .footer-bottom p {
        font-size: 0.72rem;
        letter-spacing: 1px;
    }

    .qr-card {
        padding: 24px 16px;
    }

    .qr-logo-img {
        height: 90px;
    }

    .qr-app-box {
        max-width: 135px;
        padding: 12px 10px;
    }

    .qr-app-box img {
        max-width: 105px;
    }
}

/* ==========================================================================
   ULTRA-COMPACT PHONES (max-width: 360px - e.g. iPhone SE, Fold)
   ========================================================================== */
@media (max-width: 360px) {
    .hero-content h1 {
        font-size: 2.2rem;
    }

    .btn {
        padding: 11px 22px;
        font-size: 0.76rem;
        letter-spacing: 1.2px;
    }

    .menu-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }

    .menu-item .price {
        font-size: 1.1rem;
    }

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

    .gallery-item {
        height: 180px;
    }

    .app-btn {
        max-width: 125px;
    }

    .qr-app-grid {
        flex-direction: column;
        align-items: center;
    }

    .qr-app-box {
        max-width: 150px;
    }
}

/* Landscape mode on small devices (e.g. phones turned sideways) */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 480px;
        padding: 100px 0 60px;
    }

    #nav {
        padding-top: 70px;
        justify-content: flex-start;
    }

    #nav ul {
        gap: 14px;
        margin-bottom: 20px;
    }

    #nav ul li a {
        font-size: 0.95rem;
        padding: 6px 12px;
    }
}

/* Prevent scrolling when mobile drawer is open */
body.menu-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
}
