/* ===================================
   Responsive Design
   Mobile-First Approach
   =================================== */

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Typography */
    html { font-size: 15px; }

    /* Container */
    .container {
        padding: 0 1.5rem;
    }

    /* Section */
    :root {
        --section-padding: 4rem 1.5rem;
    }

    .section-header {
        margin-bottom: 3rem;
    }

    /* Navigation */
    .nav-container {
        padding: 0 1.5rem;
    }

    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(44, 24, 16, 0.98);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        gap: 2rem;
        transition: left 0.3s ease;
    }

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

    .nav-link {
        font-size: 1.2rem;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    /* Hero */
    .hero {
        min-height: 500px;
        background-attachment: scroll;
    }

    .hero-content {
        padding: 1.5rem;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    .scroll-indicator {
        display: none;
    }

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

    .about-features {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .about-image {
        order: -1;
    }

    /* Menu */
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .menu-category {
        padding: 2rem 1.5rem;
    }

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

    /* Gallery Modal */
    .modal-nav {
        width: 40px;
        height: 60px;
        font-size: 2.5rem;
    }

    .modal-prev {
        left: 0.5rem;
    }

    .modal-next {
        right: 0.5rem;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        font-size: 2.5rem;
        width: 40px;
        height: 40px;
    }

    #modalImage {
        max-width: 95%;
    }

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

    .location-map {
        min-height: 300px;
        order: 2;
    }

    .info-card:hover {
        transform: translateY(-3px);
    }

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

    .contact-item:hover {
        transform: translateY(-3px);
    }

    .contact-form-container {
        padding: 2rem 1.5rem;
    }

    /* Footer */
    .footer {
        padding: 3rem 1.5rem 2rem;
    }

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

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Typography */
    html { font-size: 14px; }

    /* Container */
    .container {
        padding: 0 1rem;
    }

    /* Section */
    :root {
        --section-padding: 3rem 1rem;
    }

    /* Navigation */
    .logo h1 {
        font-size: 1.5rem;
    }

    .logo-subtitle {
        font-size: 0.8rem;
    }

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

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

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

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

    /* Buttons */
    .btn {
        padding: 0.9rem 2rem;
        font-size: 0.95rem;
    }

    /* About */
    .about-text h3 {
        font-size: 1.5rem;
    }

    .about-text p {
        font-size: 1rem;
    }

    .feature-item {
        padding: 1.25rem;
    }

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

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

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

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

    .item-header h4 {
        font-size: 1rem;
    }

    .price {
        font-size: 1rem;
    }

    .menu-item p {
        font-size: 0.9rem;
    }

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

    /* Contact */
    .contact-item {
        flex-direction: column;
        gap: 1rem;
        padding: 1.25rem;
    }

    .contact-icon {
        font-size: 1.8rem;
    }

    .social-icon {
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }

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

    /* Footer */
    .footer {
        padding: 2.5rem 1rem 1.5rem;
    }

    .footer-section h3 {
        font-size: 1.3rem;
    }

    .footer-section h4 {
        font-size: 1rem;
    }
}

/* Large Desktop (1400px and above) */
@media (min-width: 1400px) {
    :root {
        --container-max: 1400px;
    }

    .hero {
        min-height: 100vh;
    }

    .section-header {
        margin-bottom: 5rem;
    }

    .about-features {
        gap: 2.5rem;
    }

    .menu-grid {
        gap: 4rem;
    }

    .gallery-grid {
        gap: 2rem;
    }

    .contact-content {
        gap: 5rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero-buttons,
    .scroll-indicator,
    .gallery-modal,
    .contact-form-container,
    .footer {
        display: none;
    }

    body {
        background: white;
        color: black;
    }

    .hero {
        background: none;
        height: auto;
        min-height: auto;
        padding: 2rem 0;
    }

    .hero-content {
        color: black;
    }

    section {
        page-break-inside: avoid;
    }

    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
}

/* Landscape Orientation for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        height: auto;
        padding: 1.5rem;
    }

    .nav-link {
        width: auto;
        padding: 0.5rem 1rem;
    }
}

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

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5D2E0F;
        --text-gray: #4a4a4a;
    }

    .btn {
        border-width: 3px;
    }

    .nav-link::after {
        height: 3px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Keep the design as-is since it already has a warm, cafe aesthetic
       that works well in all lighting conditions */
}
