/* ================================================
   Cafe Adam - Responsive Styles
   ================================================ */

/* Large Tablets & Small Desktops (1024px) */
@media (max-width: 1024px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }

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

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

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

    .contact-content,
    .location-content {
        gap: var(--spacing-md);
    }
}

/* Tablets (768px) */
@media (max-width: 768px) {
    :root {
        --spacing-md: 1.5rem;
        --spacing-lg: 2.5rem;
        --spacing-xl: 3rem;
    }

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

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        height: calc(100vh - 70px);
        background: rgba(26, 26, 26, 0.98);
        flex-direction: column;
        padding: 2rem;
        gap: 0;
        transition: right 0.3s ease;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
    }

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

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

    .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, -7px);
    }

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

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

    .hero-buttons {
        flex-direction: column;
        gap: var(--spacing-sm);
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
    }

    .btn {
        width: 100%;
    }

    /* Section Titles */
    .section-title {
        font-size: 2rem;
    }

    /* Features Grid */
    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .gallery-item {
        height: 250px;
    }

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

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

    .location-map iframe {
        min-height: 400px;
    }

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

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

/* Mobile Devices (480px) */
@media (max-width: 480px) {
    :root {
        --spacing-sm: 0.75rem;
        --spacing-md: 1rem;
        --spacing-lg: 2rem;
        --spacing-xl: 2.5rem;
    }

    html {
        font-size: 14px;
    }

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

    /* Navigation */
    .nav-container {
        padding: 0.75rem 1rem;
    }

    .nav-logo h2 {
        font-size: 1.5rem;
    }

    .nav-menu {
        max-width: 100%;
    }

    /* Hero */
    .hero {
        background-attachment: scroll;
    }

    .hero-title {
        font-size: 2.2rem;
        letter-spacing: 1px;
    }

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

    .scroll-indicator {
        display: none;
    }

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

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

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

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

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

    .feature-item {
        padding: var(--spacing-sm);
    }

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

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

    .category-title {
        font-size: 1.6rem;
        flex-direction: column;
        text-align: center;
    }

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

    .menu-item {
        padding: var(--spacing-sm);
    }

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

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

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

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

    .gallery-item {
        height: 300px;
    }

    /* Reviews */
    .stars {
        font-size: 1.5rem;
    }

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

    .review-text {
        font-size: 0.95rem;
    }

    /* Location */
    .location-info {
        gap: var(--spacing-sm);
    }

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

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

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

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

    .contact-item {
        padding: var(--spacing-sm);
        flex-direction: column;
        text-align: center;
    }

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

    .contact-form-wrapper {
        padding: var(--spacing-md);
    }

    .form-group input,
    .form-group textarea {
        padding: 0.75rem;
    }

    /* Footer */
    .footer {
        padding: var(--spacing-md) 0;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
        text-align: center;
    }

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

    /* Lightbox */
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        font-size: 2rem;
    }

    .lightbox-caption {
        font-size: 1rem;
        bottom: 1rem;
        padding: 0 1rem;
    }
}

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

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

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

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

/* Large Screens (1920px+) */
@media (min-width: 1920px) {
    .container {
        max-width: 1600px;
    }

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

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

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

    .gallery-item {
        height: 400px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .hero,
    .scroll-indicator,
    .lightbox {
        display: none;
    }

    body {
        font-size: 12pt;
        color: black;
    }

    section {
        page-break-inside: avoid;
    }

    .gallery-item,
    .review-card,
    .feature-item {
        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;
    }

    html {
        scroll-behavior: auto;
    }

    .hero {
        background-attachment: scroll;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode overrides if needed */
    /* Currently, the design uses a dark theme by default */
}

/* Landscape Orientation for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: var(--spacing-xl) 0;
    }

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

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

    .scroll-indicator {
        display: none;
    }
}

/* Hover Effects on Touch Devices */
@media (hover: none) and (pointer: coarse) {
    .gallery-item .gallery-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    }

    .feature-item:hover,
    .menu-item:hover,
    .contact-item:hover {
        transform: none;
    }
}
