/*==========================================
    GIHOC Distilleries - Responsive Styles
============================================*/

/*------------------------------------------
    Media Queries
-------------------------------------------*/

/* Extra Small devices (phones, 576px and down) */
@media (max-width: 576px) {
    html {
        font-size: 55%;
    }
    
    .container {
        padding: 0 2rem;
    }
    
    .section-padding {
        padding: 6rem 0;
    }
    
    /* Navigation */
    .top-nav {
        display: none;
    }
    
    .desktop-nav-links {
        display: none;
    }
    
    .main-menu {
        justify-content: center;
    }
    
    .logo {
        margin-right: auto;
    }
    
    .logo img {
        height: 4.5rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .btn {
        width: 100%;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        left: 0 !important;
    }
    
    .timeline-item::after {
        left: 0 !important;
        right: auto !important;
    }
    
    .timeline-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Gallery */
    .heritage-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 25rem);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    /* Products */
    .category-tabs {
        flex-wrap: wrap;
    }
    
    .spotlight-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    .spotlight-features {
        grid-template-columns: 1fr;
    }
    
    /* Distillery */
    .distillery-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 20rem);
    }
    
    /* Newsletter */
    .newsletter-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    /* Contact */
    .contact-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-column h3::after {
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) and (max-width: 767.98px) {
    html {
        font-size: 58%;
    }
    
    .container {
        padding: 0 3rem;
    }
    
    /* Hero Section */
    .hero-title {
        font-size: 5.6rem;
    }
    
    /* Timeline */
    .timeline::before {
        left: 20px;
    }
    
    .timeline-item {
        width: 100%;
        padding-left: 5rem;
        left: 0 !important;
    }
    
    .timeline-item::after {
        left: 0 !important;
        right: auto !important;
    }
    
    .timeline-content {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    /* Gallery */
    .heritage-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(3, 30rem);
    }
    
    /* Stats */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    /* Products */
    .spotlight-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    /* Distillery */
    .distillery-gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 20rem);
    }
    
    /* Newsletter & Contact */
    .newsletter-content,
    .contact-content {
        flex-direction: column;
        gap: 4rem;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        text-align: center;
        margin-bottom: 4rem;
    }
    
    .footer-links {
        justify-content: space-between;
        gap: 2rem;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) and (max-width: 991.98px) {
    html {
        font-size: 60%;
    }
    
    /* Navigation */
    .contact-info a:not(:first-child) {
        display: none;
    }
    
    .desktop-nav-links {
        gap: 2rem;
    }
    
    /* Timeline */
    .timeline-item {
        width: 50%;
    }
    
    /* Gallery */
    .heritage-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 25rem;
    }
    
    /* Products */
    .products-showcase {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .spotlight-content {
        gap: 4rem;
    }
    
    /* Newsletter */
    .newsletter-content {
        gap: 3rem;
    }
    
    /* Contact */
    .contact-content {
        gap: 3rem;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Container */
    .container {
        max-width: 960px;
    }
    
    /* Products */
    .products-showcase {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .container {
        max-width: 1140px;
    }
    
    .hero-title {
        font-size: 7.2rem;
    }
    
    .hero-section {
        min-height: 1100px;
        padding-top: 18rem; /* Increase top padding for larger screens */
    }
    
    #hero-video {
        width: 100%;
        height: 100%;
    }
    
    .video-background {
        height: 100vh;
    }
}

/* XXL devices (larger desktops, 1400px and up) */
@media (min-width: 1400px) {
    .container {
        max-width: 1320px;
    }
    
    .hero-section {
        min-height: 1200px;
        padding-top: 20rem; /* Even more padding for XXL screens */
    }
    
    .hero-title {
        font-size: 8rem;
    }
    
    .video-background {
        height: 120vh; /* Make video even bigger on XXL screens */
    }
    
    #hero-video {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

/* Height-based Media Queries */
@media (max-height: 700px) {
    .hero-section {
        min-height: auto;
        height: auto;
        padding: 12rem 0;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* Landscape Mode for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        height: auto;
        min-height: 100vh;
        padding: 4rem 0;
    }
    
    .hero-content {
        margin-top: 6rem;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .nav-overlay .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 2rem;
    }
    
    .nav-link {
        font-size: 2.4rem;
        margin: 0.5rem;
    }
}

/* Retina and High DPI Displays */
@media 
(-webkit-min-device-pixel-ratio: 2), 
(min-resolution: 192dpi) {
    .parallax-bg,
    .video-overlay {
        background-size: cover;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Only apply if the site doesn't already have a dark theme */
    .age-verification-content {
        background-color: #1a1a1a;
        color: #ffffff;
    }
    
    .age-verification-content h2 {
        color: var(--secondary-color);
    }
}

/* Print Styles */
@media print {
    body {
        background-color: #fff;
        color: #000;
        margin: 0;
        padding: 0;
    }
    
    .hero-section,
    .video-container,
    .nav-overlay,
    .menu-toggle,
    .back-top-btn,
    .scroll-progress,
    .scroll-indicator,
    .newsletter-section,
    .footer {
        display: none;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
        margin: 0;
    }
    
    .main-nav {
        position: relative;
        background: none;
        padding: 1rem 0;
        border-bottom: 1px solid #000;
    }
    
    .section-title,
    h2, h3 {
        color: #000;
        font-size: 1.8rem;
    }
    
    p {
        font-size: 1.2rem;
    }
    
    a {
        color: #000;
        text-decoration: underline;
    }
    
    .product-item,
    .timeline-item,
    .process-step,
    .contact-item {
        page-break-inside: avoid;
    }
    
    .product-image,
    .gallery-image {
        display: none;
    }
    
    .timeline::before {
        display: none;
    }
    
    .timeline-item {
        width: 100%;
        left: 0 !important;
        padding: 1rem 0;
    }
    
    .timeline-content {
        margin: 0 !important;
        padding: 1rem;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .footer-content {
        display: block;
        text-align: center;
        border-top: 1px solid #000;
        padding-top: 1rem;
    }
    
    .copyright,
    .disclaimer {
        font-size: 1rem;
        color: #333;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    
    .scroll-line::after,
    .liquid,
    .cursor,
    .cursor-follower {
        animation: none !important;
    }
    
    .product-item:hover .liquid,
    .product-item:hover .placeholder-bottle,
    .spotlight-image:hover .featured-product-image,
    .gallery-item:hover img {
        transform: none;
    }
}