/* Responsive Styles for Cronox AAC Blocks */

@media (max-width: 1199px) {
    h1 { font-size: 3rem; }
}

@media (max-width: 991px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }

    .site-header {
        padding-top: 14px;
        padding-bottom: 10px;
    }

    .site-header .container {
        position: relative;
    }
    
    .hero-section {
        min-height: 100svh !important;
        height: auto !important;
        padding-top: 120px;
        padding-bottom: 64px;
        text-align: center;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    section {
        padding: 50px 0;
    }

    .launch-stats {
        flex-wrap: wrap;
        gap: 1.25rem !important;
    }

    .launch-stat {
        min-width: 180px;
    }

    .launch-stat-divider {
        border-left: none !important;
        padding-left: 0 !important;
    }

    /* Mobile Header Specifics */
    .site-header .navbar {
        position: relative;
        padding-left: 0.25rem;
        padding-right: 0.25rem;
        overflow: visible;
    }

    .header-home .navbar {
        padding: 0.72rem 0.9rem;
        border-radius: 999px;
        background: linear-gradient(180deg, rgba(7, 18, 12, 0.42) 0%, rgba(7, 18, 12, 0.22) 100%);
        border: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
    }

    .header-home.scrolled .navbar,
    .header-home.menu-open .navbar {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 251, 245, 0.97) 100%);
        border: 1px solid rgba(76, 175, 80, 0.18);
        box-shadow: 0 18px 40px rgba(16, 24, 40, 0.14);
    }

    .site-header.scrolled .navbar,
    .header-inner .navbar {
        border-radius: 28px;
        padding: 0.75rem 1rem;
    }

    .site-header .navbar-collapse {
        position: fixed;
        top: 84px;
        left: 16px;
        right: 16px;
        width: auto;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(245, 251, 245, 0.98) 100%);
        padding: 1rem;
        border-radius: 24px;
        box-shadow: 0 18px 40px rgba(16, 24, 40, 0.16);
        margin-top: 0;
        max-height: calc(100svh - 104px);
        overflow-y: auto;
        border: 1px solid rgba(76, 175, 80, 0.16);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-10px) scale(0.98);
        transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
        z-index: 1001;
    }

    .site-header .navbar-collapse.show,
    .site-header .navbar-collapse.collapsing {
        display: block !important;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0) scale(1);
    }

    .site-header .navbar-collapse.collapsing {
        height: auto !important;
        overflow: hidden;
    }

    .site-header .nav-links-wrap {
        width: 100%;
        align-items: stretch !important;
        gap: 0.45rem;
    }
    
    .site-header .nav-item {
        width: 100%;
    }

    .site-header .nav-link,
    .site-header .dropdown-toggle {
        color: var(--secondary) !important;
        width: 100%;
        padding: 0.9rem 1rem !important;
        border-bottom: none;
        text-align: left;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.7);
        box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.06);
    }
    
    .site-header .nav-link::after { display: none; }

    .site-header .dropdown {
        display: block;
    }

    .site-header .premium-dropdown {
        position: static !important;
        transform: none !important;
        width: 100%;
        margin-top: 0.4rem;
        min-width: 0;
        border-radius: 16px;
        padding: 0.55rem;
        box-shadow: inset 0 0 0 1px rgba(76, 175, 80, 0.04);
        border-color: rgba(76, 175, 80, 0.12);
        background: rgba(255, 255, 255, 0.72);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .site-header .premium-dropdown::before {
        display: none;
    }

    .site-header .dealer-option {
        gap: 0.75rem;
    }

    .site-header .dealer-option i {
        width: 32px;
        height: 32px;
    }
    
    .site-header .nav-link.active {
        color: var(--primary) !important;
        background: rgba(76, 175, 80, 0.1);
    }

    .site-header .nav-cta-item {
        margin-left: 0;
        padding-left: 0;
        margin-top: 0.35rem;
    }

    .site-header .nav-cta-item::before {
        display: none;
    }

    .site-header .btn-quote {
        width: 100%;
        margin-top: 0.35rem;
        min-height: 52px;
    }

    .site-header .navbar-brand {
        max-width: calc(100% - 70px);
    }

    .site-header .navbar-toggler {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.14);
        flex-shrink: 0;
    }

    .header-home .navbar-toggler {
        background: rgba(255, 255, 255, 0.18);
        border: 1px solid rgba(255, 255, 255, 0.16);
    }

    .site-header.scrolled .navbar-toggler,
    .header-inner .navbar-toggler,
    .site-header.menu-open .navbar-toggler {
        background: rgba(76, 175, 80, 0.1);
    }

    .cta-card {
        padding: 2.5rem !important;
    }
}

@media (max-width: 767px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.8rem; }
    
    .hero-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .hero-actions .btn {
        width: 100%;
        margin-right: 0 !important;
    }

    #launchOverlay {
        padding:
            max(0.85rem, env(safe-area-inset-top))
            max(0.85rem, env(safe-area-inset-right))
            max(0.85rem, env(safe-area-inset-bottom))
            max(0.85rem, env(safe-area-inset-left));
        align-items: center;
    }

    .launch-content {
        width: min(100%, 420px);
        max-height: calc(100svh - 1.7rem);
        padding: 2.6rem 0.6rem 0.6rem;
    }

    .launch-content img {
        max-height: calc(100svh - 5.4rem);
        border-radius: 16px;
    }

    .launch-close {
        top: 0.2rem;
        right: 0.2rem;
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }

    .launch-stats {
        flex-direction: column;
        align-items: stretch;
    }

    .launch-stat {
        min-width: 100%;
    }

    .compare-row {
        gap: 1rem;
        align-items: flex-start;
        font-size: 0.95rem;
    }

    .product-showcase-marquee {
        mask-image: none;
        -webkit-mask-image: none;
    }

    .product-showcase-track {
        gap: 0.9rem;
        animation-duration: 28s;
    }

    .product-showcase-item {
        width: 240px;
    }

    .card-premium {
        padding: 1.5rem;
    }
    
    .img-premium {
        height: 250px !important;
    }

    .main-inner {
        padding-top: 70px;
    }

    .site-header .navbar-collapse {
        top: 78px;
        left: 12px;
        right: 12px;
        padding: 0.9rem;
        border-radius: 20px;
        max-height: calc(100svh - 94px);
    }

    .header-home .navbar {
        padding: 0.7rem 0.85rem;
    }

    .contact-info-box {
        align-items: flex-start;
    }

    .footer-contact-item {
        align-items: flex-start;
    }
}

@media (max-width: 575px) {
    h1 { font-size: 2rem; }
    .eyebrow { font-size: 0.75rem; }
    .lead { font-size: 1rem; }

    .hero-section {
        padding-top: 110px;
        padding-bottom: 56px;
    }

    .site-header .navbar-brand {
        max-width: calc(100% - 62px);
    }

    .brand-logo {
        height: 52px;
        max-width: 150px;
    }

    .site-header .navbar-toggler {
        width: 44px;
        height: 44px;
    }

    .site-header .navbar-collapse {
        top: 74px;
        left: 10px;
        right: 10px;
        max-height: calc(100svh - 88px);
    }

    .header-home .navbar {
        padding: 0.65rem 0.8rem;
    }

    .eco-badge {
        font-size: 0.8rem;
        padding: 7px 12px;
    }

    .launch-content {
        width: min(100%, 300px);
        max-height: calc(100svh - 1rem);
        padding: 2.45rem 0.35rem 0.35rem;
    }

    .launch-close {
        top: 0.15rem;
        right: 0.15rem;
        width: 32px;
        height: 32px;
        font-size: 0.95rem;
    }

    .launch-content img {
        max-height: calc(100svh - 5rem);
        border-radius: 12px;
    }

    .product-showcase-item {
        width: 210px;
    }

    .product-showcase-track {
        gap: 0.75rem;
        animation-duration: 24s;
    }

    .compare-body {
        padding: 1.25rem;
    }

    .compare-header {
        padding: 1.1rem;
        font-size: 0.95rem;
    }

    .cta-card {
        padding: 1.5rem !important;
    }

    #scrollToTop {
        right: 16px;
        bottom: 16px;
    }

    .whatsapp-float {
        left: 16px;
        bottom: 16px;
    }
}

@media (max-width: 360px) {
    #launchOverlay {
        padding:
            max(0.5rem, env(safe-area-inset-top))
            max(0.5rem, env(safe-area-inset-right))
            max(0.5rem, env(safe-area-inset-bottom))
            max(0.5rem, env(safe-area-inset-left));
    }

    .launch-content {
        width: min(100%, 280px);
        max-height: calc(100svh - 0.75rem);
        padding: 2.3rem 0.2rem 0.2rem;
    }

    .launch-close {
        width: 30px;
        height: 30px;
    }

    .launch-content img {
        max-height: calc(100svh - 4.6rem);
    }
}
