/* ===================================
   BONNET ROUGE - RESPONSIVE STYLES
   Mobile-First Approach
   =================================== */

/* ===================================
   TABLET STYLES (max-width: 1024px)
   =================================== */
@media screen and (max-width: 1024px) {
    /* Typography Adjustments */
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }
    h3 { font-size: 1.75rem; }
    
    .section-title {
        font-size: 2rem;
    }
    
    .slide-title {
        font-size: 2.8rem;
    }
    
    /* Navigation */
    .nav-menu {
        gap: 20px;
    }
    
    .nav-item > a {
        font-size: 0.9rem;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 500px;
    }
    
    .product-showcase {
        max-width: 300px;
    }
    
    /* Sections */
    :root {
        --section-padding: 60px;
    }
    
    /* Products Grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Recipe Grid */
    .recipe-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
}

/* ===================================
   MOBILE STYLES (max-width: 768px)
   =================================== */
@media screen and (max-width: 768px) {
    /* Container */
    .container {
        padding: 0 15px;
    }
    
    /* Typography */
    html {
        font-size: 15px;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.5rem; }
    h4 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
    
    /* Buttons */
    .btn {
        padding: 12px 28px;
        font-size: 0.9rem;
    }
    
    /* Header Top */
    .header-top {
        display: none;
    }
    
    /* Navigation */
    .main-nav {
        padding: 15px 0;
    }
    
    .logo img {
        height: 50px;
    }
    
    .mobile-menu-toggle {
        display: flex;
        z-index: 1001;
        margin-left: auto;
        margin-right: 20px;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(8px, 8px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -7px);
    }
    
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: var(--white);
        flex-direction: column;
        align-items: flex-start;
        padding: 80px 30px 30px;
        gap: 0;
        box-shadow: -5px 0 20px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        overflow-y: auto;
        z-index: 1000;
    }
    
    .nav-menu.active {
        right: 0;
    }
    
    .nav-item {
        width: 100%;
        border-bottom: 1px solid var(--border-gray);
    }
    
    .nav-item > a {
        padding: 15px 0;
        font-size: 1rem;
    }
    
    /* Dropdown Menu Mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border-top: none;
        padding: 0 0 10px 20px;
        min-width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }
    
    .has-dropdown.active .dropdown-menu {
        max-height: 500px;
    }
    
    .has-dropdown > a::after {
        content: '\f078';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        float: right;
        transition: transform 0.3s ease;
    }
    
    .has-dropdown.active > a::after {
        transform: rotate(180deg);
    }
    
    .dropdown-menu li a {
        padding: 10px 0;
        font-size: 0.9rem;
    }
    
    .dropdown-menu li a:hover {
        padding-left: 0;
        background-color: transparent;
    }
    
    /* Search */
    .search-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-form input {
        width: 100%;
    }
    
    .search-form button {
        position: static;
        width: 100%;
        height: 50px;
        border-radius: 50px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 450px;
    }
    
    .slide-content .container {
        flex-direction: column;
        justify-content: center;
        text-align: center;
    }
    
    .content-wrapper {
        max-width: 100%;
    }
    
    .slide-title {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .product-showcase {
        display: none;
    }
    
    .slider-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .slider-control.prev { left: 15px; }
    .slider-control.next { right: 15px; }
    
    .slider-dots {
        bottom: 20px;
        gap: 10px;
    }
    
    .dot {
        width: 10px;
        height: 10px;
    }
    
    .dot.active {
        width: 30px;
    }
    
    /* Sections */
    :root {
        --section-padding: 50px;
    }
    
    .section-padding {
        padding: var(--section-padding-mobile) 0;
    }
    
    /* Reach Peak */
    .reach-peak .section-title {
        font-size: 2rem;
    }
    
    /* Recipe Section */
    .recipe-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .recipe-image {
        height: 220px;
    }
    
    /* Brand Profile */
    .profile-box {
        padding: 30px 20px;
    }
    
    .profile-title {
        font-size: 1.5rem;
    }
    
    .profile-text {
        font-size: 1rem;
        text-align: left;
    }
    
    /* Products Section */
    .products-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .product-card {
        padding: 30px 20px;
    }
    
    /* Newsletter */
    .newsletter-title {
        font-size: 2rem;
    }
    
    .newsletter-text {
        font-size: 1rem;
    }
    
    .newsletter-form {
        flex-direction: column;
        gap: 15px;
    }
    
    .newsletter-form input,
    .newsletter-form button {
        width: 100%;
    }
    
    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-top {
        padding: 40px 0 30px;
    }
    
    .footer-column {
        text-align: center;
    }
    
    .footer-links {
        text-align: center;
    }
    
    .footer-social {
        justify-content: center;margin: 0 auto;max-width: inherit;
    }
    
    .footer-bottom-content {
        gap: 10px;
    }
    
    .footer-logo img {
        height: 40px;
    }
    
    .footer-tagline {
        font-size: 1rem;
    }
    
    .copyright {
        font-size: 0.85rem;
    }
    
    /* Back to Top */
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}

/* ===================================
   SMALL MOBILE (max-width: 480px)
   =================================== */
@media screen and (max-width: 480px) {
    /* Typography */
    h1 { font-size: 1.75rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .slide-title {
        font-size: 1.75rem;
        line-height: 1.2;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 24px;
        font-size: 0.85rem;
    }
    
    /* Navigation */
    .logo img {
        height: 45px;
    }
    
    .nav-menu {
        width: 100%;
        right: -100%;
        padding: 70px 20px 20px;
    }
    
    /* Hero Slider */
    .hero-slider {
        height: 400px;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
    
    .slider-control {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .slider-control.prev { left: 10px; }
    .slider-control.next { right: 10px; }
    
    /* Recipe Section */
    .recipe-content {
        padding: 20px;
    }
    
    .recipe-title {
        font-size: 1.25rem;
    }
    
    .recipe-description {
        font-size: 0.95rem;
    }
    
    /* Brand Profile */
    .profile-box {
        padding: 25px 15px;
    }
    
    .profile-title {
        font-size: 1.25rem;
    }
    
    .profile-text {
        font-size: 0.95rem;
    }
    
    /* Products */
    .product-card {
        padding: 25px 15px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-name {
        font-size: 1.2rem;
    }
    
    /* Newsletter */
    .newsletter-title {
        font-size: 1.75rem;
    }
    
    .newsletter-text {
        font-size: 0.95rem;
    }
    
    .newsletter-form input {
        padding: 12px 20px;
        font-size: 0.95rem;
    }
    
    .newsletter-form button {
        padding: 12px 30px;
    }
    
    /* Footer */
    .footer-title {
        font-size: 1rem;
    }
    
    .footer-links a {
        font-size: 0.9rem;
    }
}

/* ===================================
   LANDSCAPE MOBILE (max-height: 500px)
   =================================== */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
    }
    
    .slide-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .slider-dots {
        bottom: 15px;
    }
}

/* ===================================
   PRINT STYLES
   =================================== */
@media print {
    .main-header,
    .hero-slider,
    .slider-control,
    .slider-dots,
    .newsletter-section,
    .main-footer,
    .back-to-top,
    .mobile-menu-toggle,
    .search-bar {
        display: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
        color: #000;
        background: #fff;
    }
    
    .container {
        max-width: 100%;
        padding: 0;
    }
    
    a {
        text-decoration: underline;
    }
    
    a[href]:after {
        content: " (" attr(href) ")";
    }
    
    img {
        max-width: 100%;
        page-break-inside: avoid;
    }
    
    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
    }
}

/* ===================================
   ACCESSIBILITY ENHANCEMENTS
   =================================== */

/* Focus Styles */
*:focus {
    outline: 3px solid var(--bonnet-red);
    outline-offset: 2px;
}

button:focus,
a:focus {
    outline: 3px solid var(--bonnet-red);
    outline-offset: 3px;
}

/* Reduced Motion */
@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;
    }
}

/* High Contrast Mode */
@media (prefers-contrast: high) {
    :root {
        --bonnet-red: #C70000;
        --bonnet-blue: #003D7A;
        --dark-gray: #000000;
    }
    
    .btn-primary,
    .btn-secondary,
    .btn-outline {
        border: 2px solid currentColor;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    /* Optional: Add dark mode styles if needed in future */
}