/* Tablet Devices */
@media (max-width: 1024px) {
    h1 {
        font-size: 2.8rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .hero-title {
        font-size: 3rem;
    }
    
    .hero-stats {
        bottom: -80px;
        padding: var(--space-sm);
    }
    
    .stat-item {
        flex: 1;
        min-width: 150px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .container {
        padding: 0 20px;
    }
    
    h1 {
        font-size: 2.2rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    h3 {
        font-size: 1.5rem;
    }
    
    /* Navigation */
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-menu {
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 30px 20px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        z-index: 999;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }
    
    .nav-link {
        padding: 15px 0;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(0,0,0,0.05);
        width: 100%;
        text-align: center;
    }
    
    .nav-link:last-child {
        border-bottom: none;
    }
    
    /* Hero */
    .hero {
        height: auto;
        min-height: 500px;
        padding: 100px 20px 60px;
        margin-top: 70px;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .hero-stats {
        position: static;
        transform: none;
        margin-top: 50px;
        width: 100%;
        box-shadow: none;
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .stat-item {
        min-width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 0;
        border-bottom: 1px solid rgba(0,0,0,0.05);
    }
    
    .stat-item:last-child {
        border-bottom: none;
    }
    
    .stat-tags {
        justify-content: center;
        padding-top: 15px;
        border-top: 1px solid rgba(0,0,0,0.05);
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .feature-card {
        padding: 25px 20px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .gallery-item {
        aspect-ratio: 4/3;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-col {
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .delivery-links {
        align-items: center;
    }
    
    .delivery-btn {
        text-align: center;
        justify-content: center;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
        margin: 5px 0;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    /* Sections */
    .features,
    .gallery-preview,
    .story-section,
    .contact-section,
    .faq-section {
        padding: 60px 0;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .logo h1 {
        font-size: 1.5rem;
    }
    
    .logo .subtitle {
        font-size: 0.8rem;
    }
    
    .stat-item i {
        font-size: 1.5rem;
    }
    
    .tag {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

/* Large Desktop */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
}

/* Print Styles */
@media print {
    .main-nav,
    .hero-cta,
    .hero-stats,
    .social-links,
    .delivery-links,
    .cta,
    .mobile-menu-btn,
    .reservation-form,
    .lightbox-close {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: #000;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: none;
        color: #000;
    }
    
    .footer {
        background: none;
        color: #000;
        padding: 0;
    }
    
    .hero,
    .ambience-hero,
    .about-hero,
    .contact-hero,
    .menu-hero {
        background: none !important;
        color: #000 !important;
        padding: 20px 0 !important;
        margin-top: 0 !important;
    }
    
    .hero h1,
    .hero h2,
    .hero p,
    .ambience-hero h1,
    .about-hero h1,
    .contact-hero h1,
    .menu-hero h1 {
        color: #000 !important;
    }
    
    .gallery-card,
    .gallery-item,
    .menu-item-image {
        display: none !important;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    :root {
        --light: #1A1A1A;
        --dark: #F5F1EA;
        --text: #E0E0E0;
        --text-light: #AAAAAA;
        --white: #2C2C2C;
    }
    
    .hero {
        background-blend-mode: multiply;
    }
    
    .feature-icon {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .tag {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .gallery-preview,
    .menu-categories,
    .faq-section {
        background-color: #222;
    }
    
    .gallery-card,
    .menu-item,
    .feature-item,
    .faq-item,
    .hour-item,
    .info-card {
        background-color: #2C2C2C;
    }
    
    .gallery-overlay {
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .gallery-item:hover img,
    .gallery-card:hover,
    .menu-item:hover,
    .feature-card:hover,
    .philosophy-card:hover {
        transform: none;
    }
    
    .gallery-caption,
    .gallery-overlay {
        transform: translateY(0);
        position: relative;
        background: var(--dark);
        color: var(--white);
        padding: var(--space-sm);
    }
    
    .lightbox-img {
        transition: none;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #000000;
        --secondary: #000000;
        --text: #000000;
        --light: #FFFFFF;
        --white: #FFFFFF;
    }
    
    .hero {
        background: #000000 !important;
        color: #FFFFFF !important;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 3px solid #000;
    }
    
    .nav-link {
        font-weight: 700;
    }
}