/* ===================================
   Responsive Design
   =================================== */

/* Tablet Landscape & Below (1024px) */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px 20px;
    }

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

    .location-content {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }
}

/* Tablet Portrait & Below (768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 50px 15px;
    }

    /* Navigation */
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        flex-direction: column;
        background: white;
        width: 100%;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.1);
        padding: 2rem 0;
        gap: 0;
    }

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

    .nav-menu li {
        padding: 1rem 0;
        border-bottom: 1px solid #f0f0f0;
    }

    .nav-link::after {
        display: none;
    }

    /* Hero */
    .hero {
        min-height: 500px;
        margin-top: 60px;
    }

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

    .hero-subtitle {
        font-size: 1.2rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn {
        width: 100%;
        max-width: 300px;
    }

    /* Section Headers */
    .section-header {
        margin-bottom: 2rem;
    }

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

    /* About */
    .about-features {
        grid-template-columns: 1fr;
    }

    /* Menu */
    .menu-grid {
        gap: 2rem;
    }

    .category-title {
        font-size: 1.5rem;
    }

    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .modal-nav {
        font-size: 2rem;
        padding: 0.5rem 1rem;
    }

    .modal-prev {
        left: 10px;
    }

    .modal-next {
        right: 10px;
    }

    /* Reviews */
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .rating-number {
        font-size: 3rem;
    }

    /* Location */
    .location-content {
        gap: 2rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px 15px;
        --card-padding: 20px;
    }

    html {
        font-size: 14px;
    }

    /* Navigation */
    .navbar .container {
        padding: 0.75rem 15px;
    }

    .nav-brand h2 {
        font-size: 1.2rem;
    }

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

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .scroll-indicator {
        bottom: 20px;
    }

    .scroll-indicator span {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn {
        padding: 12px 30px;
        font-size: 0.85rem;
    }

    /* Typography */
    .lead {
        font-size: 1.1rem;
    }

    /* About */
    .quote {
        font-size: 1.2rem;
        padding-left: 1rem;
    }

    .feature-card {
        padding: 1.5rem;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    /* Menu */
    .menu-category {
        padding: 1.5rem;
    }

    .category-title {
        font-size: 1.3rem;
    }

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .item-price {
        font-size: 1rem;
    }

    .menu-note {
        padding: 1.5rem;
    }

    .menu-note p {
        font-size: 0.95rem;
    }

    /* Gallery */
    .gallery {
        padding: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 0 10px;
    }

    .gallery-icon {
        font-size: 2rem;
    }

    .modal-close {
        font-size: 2rem;
        top: 10px;
        right: 15px;
    }

    .modal-nav {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .modal-counter {
        font-size: 1rem;
        bottom: 20px;
        padding: 8px 15px;
    }

    /* Reviews */
    .review-card {
        padding: 1.5rem;
    }

    .review-stars {
        font-size: 1.2rem;
    }

    .rating-badge {
        padding: 1.5rem 2rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .rating-stars {
        font-size: 1.5rem;
    }

    /* Location */
    .info-card {
        padding: 1.5rem;
    }

    .info-card h3 {
        font-size: 1.1rem;
    }

    .location-map iframe {
        height: 300px;
    }

    /* Contact */
    .contact-icon {
        font-size: 1.5rem;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }

    .form-group input,
    .form-group textarea {
        font-size: 0.9rem;
    }

    /* Footer */
    .footer {
        padding: 40px 15px 20px;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .footer-section {
        text-align: center;
    }

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

/* Small Mobile (320px) */
@media (max-width: 320px) {
    .hero-title {
        font-size: 1.75rem;
    }

    .btn {
        padding: 10px 25px;
        font-size: 0.8rem;
    }

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

    .rating-number {
        font-size: 2rem;
    }
}

/* High Resolution Displays */
@media (min-width: 1440px) {
    :root {
        --container-width: 1400px;
    }

    .hero-title {
        font-size: 5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-cta,
    .scroll-indicator,
    .gallery-overlay,
    .contact-form-wrapper,
    .nav-toggle {
        display: none !important;
    }

    .hero {
        height: auto;
        min-height: auto;
        padding: 2rem;
        page-break-after: always;
    }

    section {
        page-break-inside: avoid;
    }

    body {
        background: white;
    }

    * {
        color: #000 !important;
        background: white !important;
    }
}

/* Landscape Orientation */
@media (orientation: landscape) and (max-height: 500px) {
    .hero {
        min-height: 400px;
    }

    .scroll-indicator {
        display: none;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .scroll-indicator {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if desired */
    /* Currently the design uses a warm, light theme that works well without dark mode */
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn {
        padding: 15px 40px;
        min-height: 48px; /* Minimum touch target size */
    }

    .nav-link {
        padding: 1rem;
        min-height: 44px;
    }

    .gallery-overlay {
        opacity: 0.3; /* Always slightly visible on touch devices */
    }

    .gallery-item:active .gallery-overlay {
        opacity: 1;
    }
}
