/* ==========================================
   Cafè Nook Berlin - Responsive Styles
   Mobile-First Approach
   ========================================== */

/* ========== Tablet Styles (Max-width: 1024px) ========== */
@media screen and (max-width: 1024px) {
    /* Typography Adjustments */
    h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; }
    h3 { font-size: 1.75rem; }

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

    /* Navigation */
    .nav-menu {
        gap: 1.5rem;
    }

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

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

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

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

/* ========== Mobile Styles (Max-width: 768px) ========== */
@media screen and (max-width: 768px) {
    /* Typography */
    html {
        font-size: 15px;
    }

    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }

    .hero-title { font-size: 2.75rem; }
    .hero-subtitle { font-size: 1.35rem; }
    .hero-description { font-size: 1rem; }
    .section-title { font-size: 2rem; }

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

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

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

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

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    /* Hero Section */
    .hero {
        min-height: 500px;
        height: 70vh;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        padding: 0.875rem 2rem;
        font-size: 0.95rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Menu Section */
    .menu-category {
        padding: var(--spacing-sm);
    }

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

    .item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--spacing-xs);
    }

    /* Gallery Grid */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }

    /* Lightbox Controls */
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        padding: 0.75rem;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    /* Reviews Section */
    .reviews-grid {
        gap: var(--spacing-sm);
    }

    .review-card {
        padding: var(--spacing-sm);
    }

    /* Contact Section */
    .contact-info {
        gap: var(--spacing-sm);
    }

    .contact-item {
        flex-direction: column;
        text-align: center;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

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

/* ========== Small Mobile Styles (Max-width: 480px) ========== */
@media screen and (max-width: 480px) {
    /* Typography */
    html {
        font-size: 14px;
    }

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

    /* Container Padding */
    .container {
        padding: 0 var(--spacing-sm);
    }

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

    .nav-container {
        padding: 0.75rem var(--spacing-sm);
    }

    /* Hero Section */
    .hero-content {
        padding: var(--spacing-sm);
    }

    .scroll-indicator {
        bottom: 20px;
    }

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

    /* Menu Items */
    .menu-item {
        padding: var(--spacing-xs) 0;
    }

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

    .price {
        font-size: 1.1rem;
    }

    /* Gallery */
    .gallery-item {
        aspect-ratio: 1;
    }

    /* Review Cards */
    .review-text {
        font-size: 1rem;
    }

    .stars {
        font-size: 1.5rem;
    }

    /* Contact Form */
    .contact-form-container {
        padding: var(--spacing-sm);
    }

    /* Location Map */
    .location-map iframe {
        min-height: 350px;
    }
}

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

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

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

    .scroll-indicator {
        display: none;
    }
}

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

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

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

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

/* ========== Extra Large Desktop (Min-width: 1920px) ========== */
@media screen and (min-width: 1920px) {
    html {
        font-size: 18px;
    }

    .container {
        max-width: 1600px;
    }

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

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

    body {
        background: white;
    }

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

/* ========== Accessibility - 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;
    }
}

/* ========== High Contrast Mode Support ========== */
@media (prefers-contrast: high) {
    :root {
        --primary-color: #5a2a0a;
        --text-light: #444;
        --border-color: #999;
    }

    .btn-primary {
        border: 2px solid currentColor;
    }
}
