/* Enhanced Responsive Design for Full Mobile Support */

/* Global Box Sizing Fix */
* {
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Mobile Navigation Menu */
.mobile-menu {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 9999;
    padding: 80px 20px 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-menu.active {
    transform: translateX(0);
}

.mobile-nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mobile-nav-links li {
    margin-bottom: 20px;
}

.mobile-nav-links a {
    font-size: 1.5rem;
    color: #2c3e50;
    text-decoration: none;
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border-radius: 50%;
}

/* Tablets and Small Laptops */
@media (max-width: 1024px) {
    .nav-modern {
        padding: 15px 20px;
    }

    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex !important;
        flex-direction: column;
        gap: 4px;
        cursor: pointer;
        z-index: 10000;
    }

    .menu-toggle span {
        width: 25px;
        height: 3px;
        background: #2c3e50;
        transition: 0.3s;
    }

    .menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .menu-toggle.active span:nth-child(2) {
        transform: rotate(-45deg);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-right {
        margin-top: 40px;
    }

    .video-wrapper {
        margin: 0 auto;
    }

    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .workshop-grid {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        columns: 2;
    }
}

/* Mobile Phones */
@media (max-width: 768px) {
    /* Navigation */
    .nav-brand {
        font-size: 1.2rem;
    }

    .brand-icon img {
        height: 40px;
    }

    .nav-cta .cta-button {
        display: none;
    }

    /* Hero Section */
    .hero-split {
        padding: 120px 20px 40px;
        min-height: auto;
    }

    /* Video on top for mobile using column-reverse */
    .hero-container {
        display: flex;
        flex-direction: column-reverse;
        gap: 40px;
        align-items: center;
        padding: 0;
        margin: 0 auto;
        max-width: 100%;
    }

    .hero-right {
        margin-top: 40px;
        padding: 0;
        width: 100%;
        display: flex;
        justify-content: center;
    }

    .hero-left {
        text-align: center;
        padding: 20px;
        width: 100%;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 20px;
    }

    .text-gradient {
        font-size: 1.1em;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 30px;
    }

    .hero-features {
        flex-direction: column;
        gap: 15px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        text-align: center;
        padding: 15px 25px;
        font-size: 1rem;
    }

    .video-wrapper {
        max-width: 90%;
        width: 100%;
        aspect-ratio: 16/9;
        height: 300px;
        max-height: 400px;
        margin: 0 auto;
        position: relative;
        display: block;
        left: 0;
        right: 0;
    }

    .video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 20px;
    }

    .video-logo-badge {
        width: 60px;
        height: 60px;
        right: 10px !important;
        bottom: 10px !important;
    }

    /* Story Section */
    .story-content {
        padding: 60px 0;
    }

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

    .story-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .image-stack {
        height: 300px;
        max-width: 100%;
    }

    /* Flavors Section */
    .flavors-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .flavor-card {
        padding: 15px;
    }

    .flavor-image {
        height: 200px;
    }

    /* Workshop Cards */
    .workshop-card {
        padding: 20px;
    }

    .workshop-features {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Gallery */
    .gallery-grid {
        columns: 1;
        gap: 10px;
    }

    .gallery-item {
        margin-bottom: 10px;
    }

    /* Contact Section */
    .contact-section {
        padding: 60px 0;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-form {
        padding: 30px 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    /* Footer */
    .footer-links-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: left;
        padding: 30px 0;
    }

    .footer-column {
        padding: 20px 0;
        border-bottom: 1px solid rgba(253, 185, 51, 0.1);
    }

    .footer-column:last-child {
        border-bottom: none;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    /* Further optimize for very small screens */
    .hero-title {
        font-size: 1.75rem;
    }

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

    .hero-description {
        font-size: 0.95rem;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    .flavor-card h3 {
        font-size: 1.1rem;
    }

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

    .contact-form {
        padding: 20px 15px;
    }
}

/* Landscape Mode for Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero-split {
        min-height: auto;
        padding: 40px 0 0;
    }

    .hero-container {
        grid-template-columns: 1fr 1fr;
    }

    .video-wrapper {
        max-height: 300px;
    }

    .flavors-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* High Resolution Mobile Screens */
@media
  (-webkit-min-device-pixel-ratio: 2),
  (min-resolution: 192dpi) {
    /* Optimize for retina displays */
    .brand-icon img,
    .video-logo-badge img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    .nav-link,
    .cta-button,
    .btn-hero-primary,
    .btn-hero-secondary {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .flavor-card,
    .workshop-card {
        cursor: default;
    }

    /* Disable hover effects on touch devices */
    .flavor-card:hover,
    .workshop-card:hover {
        transform: none;
    }
}

/* Print Styles */
@media print {
    .nav-modern,
    .video-wrapper,
    .gallery-professional,
    .contact-form {
        display: none;
    }

    .hero-split,
    .story-content,
    .flavors-section,
    .workshops-enhanced {
        page-break-inside: avoid;
    }
}