/* ===============================================
   POMEGRANATE B&B - RESPONSIVE STYLES
   Mobile-First Approach
   =============================================== */

/* ===============================================
   MOBILE STYLES (DEFAULT - up to 768px)
   =============================================== */

/* Mobile Navigation */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: var(--cream);
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
        transition: var(--transition-smooth);
        z-index: 1001;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-hamburger {
        display: flex;
        z-index: 1002;
    }
    
    .nav-hamburger.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-hamburger.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-hamburger.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-link {
        font-size: 1.25rem;
        padding: 1rem;
    }
    
    .booking-btn {
        margin-top: 1rem;
        padding: 12px 30px;
    }
}

/* Mobile Hero */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.75rem;
    }
    
    .hero-description {
        font-size: 1.125rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: 250px;
        text-align: center;
    }
}

/* Mobile About */
@media (max-width: 768px) {
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .about-image {
        order: -1;
    }
    
    .about-features {
        justify-content: center;
    }
}

/* Mobile Rooms */
@media (max-width: 768px) {
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .room-card {
        margin: 0 1rem;
    }
}

/* Mobile Amenities */
@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .amenity-item {
        margin: 0 1rem;
    }
}

/* Mobile Gallery */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        margin: 0 1rem;
    }
}

/* Mobile Location */
@media (max-width: 768px) {
    .location-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contact-item {
        text-align: left;
    }
}

/* Mobile Booking */
@media (max-width: 768px) {
    .booking-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-methods {
        flex-direction: column;
    }
}

/* Mobile Footer */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .footer-bottom-links {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile Utility Adjustments */
@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    :root {
        --section-padding: 3rem 0;
    }
}

/* ===============================================
   SMALL MOBILE STYLES (up to 480px)
   =============================================== */

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-header h2 {
        font-size: 1.75rem;
    }
    
    .about-text h3 {
        font-size: 1.5rem;
    }
    
    .room-content h3 {
        font-size: 1.25rem;
    }
    
    .amenity-item h4 {
        font-size: 1.125rem;
    }
    
    .room-features {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-buttons .btn {
        width: 200px;
        padding: 10px 20px;
    }
    
    .booking-form {
        padding: 1.5rem;
    }
    
    .booking-card {
        padding: 1.5rem;
    }
    
    .contact-methods {
        gap: 0.5rem;
    }
    
    .contact-method {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* ===============================================
   TABLET STYLES (769px to 1024px)
   =============================================== */

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 2rem;
    }
    
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.25rem;
    }
    
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        margin: 0 auto;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===============================================
   LARGE DESKTOP STYLES (1025px to 1440px)
   =============================================== */

@media (min-width: 1025px) and (max-width: 1440px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 800px;
        margin: 0 auto;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ===============================================
   EXTRA LARGE DESKTOP STYLES (1441px+)
   =============================================== */

@media (min-width: 1441px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 3rem;
    }
    
    .hero-description {
        font-size: 1.375rem;
    }
    
    .section-header h2 {
        font-size: 3rem;
    }
    
    .about-text h3 {
        font-size: 2.25rem;
    }
}

/* ===============================================
   LANDSCAPE MOBILE STYLES
   =============================================== */

@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: 100vh;
        padding: 1rem 0;
    }
    
    .hero-title {
        font-size: 2.25rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-buttons {
        gap: 1rem;
        margin-bottom: 1rem;
    }
    
    .hero-scroll-indicator {
        bottom: 1rem;
    }
}

/* ===============================================
   PRINT STYLES
   =============================================== */

@media print {
    .navbar,
    .hero-scroll-indicator,
    .booking-form,
    .social-links,
    .newsletter-form {
        display: none;
    }
    
    .hero {
        height: auto;
        padding: 2rem 0;
    }
    
    .hero-background {
        background: white;
    }
    
    .hero-content {
        color: black;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.4;
        color: black;
        background: white;
    }
    
    .section-header h2 {
        color: black;
        border-bottom: 2px solid black;
        padding-bottom: 0.5rem;
    }
    
    .room-card,
    .amenity-item,
    .booking-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
    
    a {
        color: black;
        text-decoration: underline;
    }
    
    .btn {
        background: none;
        border: 2px solid black;
        color: black;
    }
}

/* ===============================================
   ACCESSIBILITY & MOTION PREFERENCES
   =============================================== */

/* Reduced Motion for Users Who Prefer It */
@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-title,
    .hero-subtitle,
    .hero-description,
    .hero-buttons,
    .hero-scroll-indicator {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    :root {
        --primary-red: #000000;
        --primary-orange: #000000;
        --accent-red: #000000;
        --dark-brown: #000000;
        --gray-600: #000000;
        --cream: #ffffff;
        --warm-white: #ffffff;
    }
    
    .btn-outline,
    .nav-link::after,
    .room-card,
    .amenity-item,
    .booking-card {
        border-color: #000000;
    }
}

/* Focus Styles for Better Accessibility */
@media (any-hover: hover) {
    .nav-link:focus,
    .btn:focus,
    .form-group input:focus,
    .form-group select:focus,
    .form-group textarea:focus,
    .contact-method:focus,
    .social-link:focus {
        outline: 3px solid var(--primary-orange);
        outline-offset: 2px;
    }
}

/* Touch Device Optimizations */
@media (any-hover: none) {
    .btn {
        min-height: 44px;
        min-width: 44px;
    }
    
    .nav-link {
        padding: 12px;
        min-height: 44px;
        display: flex;
        align-items: center;
    }
    
    .contact-method {
        min-height: 44px;
        min-width: 44px;
    }
    
    .social-link {
        min-height: 44px;
        min-width: 44px;
    }
}

/* ===============================================
   ADVANCED RESPONSIVE UTILITIES
   =============================================== */

/* Container Queries Support (Future Enhancement) */
@supports (container-type: inline-size) {
    .room-card {
        container-type: inline-size;
    }
    
    @container (max-width: 300px) {
        .room-content {
            padding: 1rem;
        }
        
        .room-features {
            flex-direction: column;
        }
    }
}

/* Grid Gap Adjustments for Different Screen Sizes */
@media (max-width: 480px) {
    .rooms-grid,
    .amenities-grid,
    .gallery-grid {
        gap: 1rem;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .rooms-grid,
    .amenities-grid,
    .gallery-grid {
        gap: 1.5rem;
    }
}

@media (min-width: 769px) {
    .rooms-grid,
    .amenities-grid,
    .gallery-grid {
        gap: 2rem;
    }
}

/* Dynamic Spacing for Better Mobile Experience */
@media (max-width: 768px) {
    .room-card:not(:last-child),
    .amenity-item:not(:last-child) {
        margin-bottom: 1rem;
    }
}

/* Improved Typography Scaling */
@media (max-width: 480px) {
    html {
        font-size: 14px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    html {
        font-size: 15px;
    }
}

@media (min-width: 1441px) {
    html {
        font-size: 18px;
    }
}

/* Enhanced Button Responsiveness */
@media (max-width: 768px) {
    .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Form Improvements for Mobile */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 15px 12px;
    }
}

/* Enhanced Gallery for Touch Devices */
@media (max-width: 768px) {
    .gallery-item {
        margin-bottom: 0.5rem;
    }
    
    .gallery-item:hover {
        transform: none; /* Disable hover effects on touch */
    }
}

/* Optimized Contact Methods for Mobile */
@media (max-width: 480px) {
    .contact-methods .contact-method {
        flex: 1;
        justify-content: center;
        text-align: center;
    }
}