/* ===========================================
   Cafe Maya - Responsive Stylesheet
   Mobile-First Responsive Design
   Developed by Encrypted 🔐
   =========================================== */

/* ===========================================
   Large Tablets & Small Desktops (max: 1200px)
   =========================================== */
@media screen and (max-width: 1200px) {
    :root {
        --container-width: 960px;
    }
    
    .hero-title .title-line {
        font-size: 4rem;
    }
    
    .hero-title .title-line.cursive {
        font-size: 5.5rem;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .about-wrapper {
        gap: 50px;
    }
    
    .footer-links {
        gap: 50px;
    }
}

/* ===========================================
   Tablets (max: 992px)
   =========================================== */
@media screen and (max-width: 992px) {
    :root {
        --section-padding: 80px 0;
    }
    
    /* Navigation */
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 400px;
        height: 100vh;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: var(--transition);
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-link {
        color: var(--white);
        font-size: 1.2rem;
    }
    
    .nav-link.nav-cta {
        margin-top: 20px;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span {
        background: var(--white);
    }
    
    /* Hero */
    .hero-title .title-line {
        font-size: 3.5rem;
    }
    
    .hero-title .title-line.cursive {
        font-size: 5rem;
    }
    
    .hero-tagline {
        font-size: 1.1rem;
    }
    
    /* About */
    .about-wrapper {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .about-images {
        max-width: 500px;
        margin: 0 auto;
    }
    
    .about-img-secondary {
        right: 0;
        bottom: -30px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(3, 200px);
    }
    
    .gallery-item.large {
        grid-column: span 2;
    }
    
    .gallery-item.tall {
        grid-row: span 2;
    }
    
    /* Contact */
    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .map-wrapper {
        height: 350px;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-logo {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* ===========================================
   Small Tablets & Large Phones (max: 768px)
   =========================================== */
@media screen and (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
    }
    
    /* Hero */
    .hero-title .title-line {
        font-size: 2.8rem;
    }
    
    .hero-title .title-line.cursive {
        font-size: 4rem;
    }
    
    .hero-tagline {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    /* About */
    .about-features {
        grid-template-columns: 1fr;
    }
    
    .about-img-main img {
        height: 350px;
    }
    
    .about-floating-badge {
        top: -10px;
        left: -10px;
        padding: 15px;
    }
    
    .badge-number {
        font-size: 2rem;
    }
    
    /* Menu */
    .menu-categories {
        gap: 10px;
    }
    
    .menu-tab {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .menu-card-image {
        height: 200px;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(4, 180px);
    }
    
    .gallery-item.large {
        grid-column: span 2;
    }
    
    .gallery-item.tall {
        grid-row: span 1;
    }
    
    /* Reviews */
    .review-card {
        padding: 30px 25px;
    }
    
    .review-text {
        font-size: 1rem;
    }
    
    .star {
        font-size: 1.2rem;
    }
    
    /* Contact */
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .map-wrapper {
        height: 300px;
    }
    
    /* Footer */
    .footer-links {
        flex-direction: column;
        gap: 30px;
        text-align: center;
    }
    
    .footer-col a {
        padding: 6px 0;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
    }
}

/* ===========================================
   Mobile Phones (max: 576px)
   =========================================== */
@media screen and (max-width: 576px) {
    :root {
        --section-padding: 50px 0;
    }
    
    body {
        font-size: 15px;
    }
    
    .container {
        padding: 0 15px;
    }
    
    /* Preloader */
    .cup-body {
        font-size: 60px;
    }
    
    .preloader-text {
        font-size: 2rem;
    }
    
    /* Navigation */
    .nav-logo .logo-text {
        font-size: 1.3rem;
    }
    
    .nav-logo .logo-icon {
        font-size: 1.5rem;
    }
    
    .nav-menu {
        width: 100%;
        max-width: none;
    }
    
    /* Hero */
    .hero {
        min-height: 100svh;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 8px 18px;
    }
    
    .hero-title .title-line {
        font-size: 2.2rem;
    }
    
    .hero-title .title-line.cursive {
        font-size: 3.2rem;
    }
    
    .hero-tagline {
        font-size: 0.9rem;
    }
    
    .hero-location {
        font-size: 0.85rem;
    }
    
    /* Sections */
    .section-label {
        font-size: 0.8rem;
        padding-left: 40px;
        letter-spacing: 2px;
    }
    
    .section-label::before {
        width: 30px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-header {
        margin-bottom: 40px;
    }
    
    /* About */
    .about-img-main img {
        height: 280px;
    }
    
    .about-img-secondary {
        width: 150px;
        height: 150px;
        right: -10px;
        bottom: -20px;
    }
    
    .about-text {
        font-size: 0.95rem;
    }
    
    .feature-item {
        padding: 15px;
    }
    
    .feature-icon {
        font-size: 1.5rem;
    }
    
    .feature-info h4 {
        font-size: 1rem;
    }
    
    .feature-info p {
        font-size: 0.85rem;
    }
    
    /* Menu */
    .menu-categories {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding-bottom: 10px;
    }
    
    .menu-categories::-webkit-scrollbar {
        display: none;
    }
    
    .menu-tab {
        flex-shrink: 0;
        padding: 8px 16px;
        font-size: 0.8rem;
    }
    
    .menu-card-content {
        padding: 20px;
    }
    
    .menu-card-title {
        font-size: 1.1rem;
    }
    
    .menu-card-desc {
        font-size: 0.85rem;
    }
    
    .menu-price {
        font-size: 1.2rem;
    }
    
    /* Gallery */
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 15px;
    }
    
    .gallery-item,
    .gallery-item.large,
    .gallery-item.tall {
        grid-column: span 1;
        grid-row: span 1;
        height: 200px;
    }
    
    .gallery-item.large {
        height: 250px;
    }
    
    /* Reviews */
    .review-card {
        padding: 25px 20px;
    }
    
    .review-text {
        font-size: 0.95rem;
        line-height: 1.7;
    }
    
    .review-author {
        flex-direction: column;
        gap: 10px;
    }
    
    .author-info {
        text-align: center;
    }
    
    .author-avatar {
        width: 50px;
        height: 50px;
    }
    
    .review-btn {
        width: 40px;
        height: 40px;
        font-size: 1.1rem;
    }
    
    /* Contact */
    .contact-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .contact-item-info h4 {
        font-size: 1rem;
    }
    
    .contact-item-info p,
    .contact-item-info a {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.2rem;
    }
    
    .map-wrapper {
        height: 250px;
    }
    
    .map-overlay-card {
        position: relative;
        bottom: auto;
        left: auto;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    }
    
    /* Footer */
    .footer {
        padding: 60px 0 25px;
    }
    
    .footer-logo .logo-text {
        font-size: 1.3rem;
    }
    
    .footer-tagline {
        font-size: 0.9rem;
    }
    
    .footer-col h4 {
        font-size: 1rem;
    }
    
    .footer-col a {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.8rem;
    }
}

/* ===========================================
   Extra Small Phones (max: 360px)
   =========================================== */
@media screen and (max-width: 360px) {
    .hero-title .title-line {
        font-size: 1.9rem;
    }
    
    .hero-title .title-line.cursive {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .about-floating-badge {
        display: none;
    }
    
    .about-img-secondary {
        width: 120px;
        height: 120px;
    }
}

/* ===========================================
   Landscape Mode Fixes
   =========================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
        padding: 100px 0 50px;
    }
    
    .hero-content {
        padding-top: 20px;
    }
    
    .hero-title .title-line {
        font-size: 2.5rem;
    }
    
    .hero-title .title-line.cursive {
        font-size: 3.5rem;
    }
    
    .preloader-content {
        transform: scale(0.8);
    }
}

/* ===========================================
   Reduced Motion Preferences
   =========================================== */
@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;
    }
}

/* ===========================================
   High Contrast Mode
   =========================================== */
@media (prefers-contrast: high) {
    :root {
        --text: #000000;
        --text-light: #333333;
        --primary: #5C3317;
    }
    
    .hero-overlay {
        background: rgba(0, 0, 0, 0.7);
    }
}

/* ===========================================
   Print Styles
   =========================================== */
@media print {
    .navbar,
    .preloader,
    .back-to-top,
    .scroll-indicator,
    .floating-elements {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 50px 0;
    }
    
    .hero-bg {
        display: none;
    }
    
    .hero-content {
        color: #000;
    }
    
    .section {
        page-break-inside: avoid;
    }
    
    body {
        font-size: 12pt;
        color: #000;
        background: #fff;
    }
}
