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

/* Tablet (768px and below) */
@media (max-width: 768px) {
    /* Typography */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }

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

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

    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--white);
        flex-direction: column;
        padding: var(--spacing-md);
        box-shadow: var(--shadow-lg);
        transition: left 0.3s ease;
        overflow-y: auto;
    }

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

    .nav-link {
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

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

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

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

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

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn {
        width: 100%;
    }

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

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

    .info-boxes {
        grid-template-columns: 1fr;
    }

    /* Menu */
    .menu-items {
        grid-template-columns: 1fr;
    }

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

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

    /* Location */
    .location-grid {
        grid-template-columns: 1fr;
    }

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

    /* Contact */
    .contact-grid {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    /* Spacing */
    .section {
        padding: var(--spacing-lg) 0;
    }

    .container {
        padding: 0 var(--spacing-sm);
    }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
    /* Typography */
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }

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

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

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

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

    .hero-tagline {
        font-size: 0.9rem;
    }

    /* Buttons */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

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

    /* About Badge */
    .about-badge {
        top: 10px;
        right: 10px;
        padding: 0.5rem;
    }

    .about-badge .rating {
        font-size: 1.5rem;
    }

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

    /* Back to Top */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
        font-size: 1.2rem;
    }

    /* Lightbox */
    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 1.5rem;
        padding: 0.5rem;
    }

    /* Spacing */
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
}

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

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

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

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Increase tap targets */
    .btn {
        min-height: 44px;
    }

    .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    /* Remove hover effects on touch */
    .gallery-item:hover img {
        transform: none;
    }

    .gallery-item:active img {
        transform: scale(1.05);
    }

    .feature-item:hover {
        transform: none;
    }

    .feature-item:active {
        transform: translateY(-5px);
    }
}

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

    .hero {
        height: auto;
        min-height: 0;
        padding: var(--spacing-md);
        background: none;
        color: var(--text-dark);
    }

    .section {
        page-break-inside: avoid;
    }
}

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

    .hero {
        background-attachment: scroll;
    }
}

/* Dark Mode Support (Optional) */
@media (prefers-color-scheme: dark) {
    /* Uncomment if dark mode is desired
    :root {
        --white: #1a1a1a;
        --light-bg: #2a2a2a;
        --text-dark: #e0e0e0;
        --text-light: #b0b0b0;
        --border-color: #404040;
    }
    */
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #000000;
        --border-color: #000000;
    }

    .btn {
        border-width: 3px;
    }
}

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

    .nav-menu {
        height: calc(100vh - 60px);
    }
}
