/* Responsive Styles for Asha Boutique Hotel & Bistro */

/* Large Devices (Desktop, 1200px and up) */
@media (min-width: 1200px) {
    /* Adjust container max-width if needed */
    .container {
        max-width: 1300px;
    }
}

/* Medium Devices (Tablets, 992px to 1199px) */
@media (max-width: 1199.98px) {
    /* General adjustments */
    .hero-content h1 {
        font-size: 3.5rem;
    }
    
    .section-header h2 {
        font-size: 2.2rem;
    }
    
    /* About section */
    .about-section .container {
        gap: 30px;
    }
    
    /* Room items */
    .room-item {
        min-width: 280px;
    }
}

/* Small Devices (Landscape Phones, 768px to 991px) */
@media (max-width: 991.98px) {
    /* Navigation */
.main-nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    padding: 20px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, transform 0.4s ease;
}
    
.main-nav.active {
    max-height: 100vh;
    transform: translateY(0);
}
    
.main-nav ul {
    flex-direction: column;
    gap: 15px;
}
    
    .main-nav li {
        margin: 0 0 15px 0;
    }

    .no-scroll {
    overflow: hidden;
}
    
    .main-nav a {
        font-size: 1.1rem;
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    /* Hero section */
    .hero {
        min-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .hero-content p {
        font-size: 1.1rem;
    }
    
    /* About section */
    .about-section .container {
        flex-direction: column;
    }
    
    .about-content, .about-image {
        flex: none;
        width: 100%;
    }
    
    .about-image {
        margin-top: 30px;
    }
    
    /* Dining section */
    .dining-section .container {
        flex-direction: column;
    }
    
    .dining-image {
        margin-bottom: 30px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .footer-bottom ul {
        justify-content: center;
    }
}

/* Extra Small Devices (Portrait Phones, 576px to 767px) */
@media (max-width: 767.98px) {
    /* General adjustments */
    .section-padding {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    /* About highlights */
    .about-highlights {
        grid-template-columns: 1fr;
    }
    
    /* CTA section */
    .cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    
    /* Testimonials */
    .testimonial-item {
        padding: 30px 20px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-col {
        margin-bottom: 30px;
    }
    
    .footer-col:last-child {
        margin-bottom: 0;
    }
    
    /* Cookie consent */
    .cookie-consent {
        flex-direction: column;
        text-align: center;
    }
    
    .cookie-consent p {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

/* Extra Extra Small Devices (Phones, less than 576px) */
@media (max-width: 575.98px) {
    /* General adjustments */
    .container {
        padding: 0 15px;
    }
    
    /* Hero section */
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    /* Section headers */
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    /* Buttons */
    .btn-primary, .btn-secondary {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
    
    /* Room slider */
    .room-item {
        min-width: 260px;
    }
    
    /* Testimonials */
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    .testimonial-author img {
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    /* Back to top button */
    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}

/* Special Cases for Very Small Heights */
@media (max-height: 600px) and (orientation: landscape) {
    .hero {
        min-height: 100vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 20px;
    }
    
    .scroll-indicator {
        display: none;
    }
}



/* Print Styles */
@media print {
    * {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.3;
    }
    
    .sticky-nav, .mobile-menu-toggle, .back-to-top, .cookie-consent, .loading-spinner {
        display: none !important;
    }
    
    a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        font-weight: normal;
    }
    
    .hero-video, .hero-video video {
        display: none;
    }
    
    .hero-content {
        position: static;
        color: #000 !important;
        padding: 20px 0;
    }
    
    .no-print {
        display: none !important;
    }
    
    .page-break {
        page-break-before: always;
    }
    
    img {
        max-width: 300px !important;
    }
    
    @page {
        margin: 2cm;
    }
}

/* Device-specific fixes */
/* iPhone 5/SE landscape */
@media only screen 
    and (min-device-width: 320px) 
    and (max-device-width: 568px)
    and (orientation: landscape) {
    
    .hero-content h1 {
        font-size: 1.8rem;
    }
    
    .mobile-menu-toggle {
        width: 25px;
        height: 18px;
    }
}

/* iPad Pro portrait */
@media only screen 
    and (min-device-width: 1024px) 
    and (max-device-width: 1024px) 
    and (orientation: portrait) {
    
    .hero-content h1 {
        font-size: 3.2rem;
    }
}

/* High-resolution displays */
@media 
    (-webkit-min-device-pixel-ratio: 2), 
    (min-resolution: 192dpi) { 
    
    /* You can add high-resolution specific styles here */
    .logo img {
        /* Provide higher resolution logo */
        
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .hero-video video {
        display: none;
    }
    
    .hero-video {
        background-image: url('images/hero-fallback.jpg');
        background-size: cover;
        background-position: center;
    }
}

/* Dark mode preference */
@media (prefers-color-scheme: dark) {
    /* You can add dark mode styles here if needed */
    /* Note: Our design is light by default, but this is for future-proofing */
}