/* =============================================
   FIREWORLD FIBER GLASS — Responsive Styles
   ============================================= */

/* ===== Large Desktop (max 1200px) ===== */
@media (max-width: 1200px) {
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; }
    .industries-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ===== Tablet (max 1024px) ===== */
@media (max-width: 1024px) {
    .services-grid { grid-template-columns: repeat(2, 1fr); }
    .why-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .industries-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .about-preview { grid-template-columns: 1fr; gap: 40px; }
    .about-img-accent { display: none; }
    .about-experience-badge { left: 20px; }
    .industries-dark-grid { grid-template-columns: repeat(2, 1fr); }
    .product-detail-layout { grid-template-columns: 1fr; gap: 40px; }
    .product-gallery { position: static; }
    .product-content-grid { grid-template-columns: 1fr; gap: 40px; }
    .product-specs-sidebar { position: static; }
    .related-products-grid { grid-template-columns: repeat(2, 1fr); }
    .home-products-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-content-grid { grid-template-columns: 1fr; gap: 40px; }
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-grid { grid-template-columns: repeat(2, 1fr); }
    .advantages-stat-row { gap: 40px; }
    .products-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Mobile Nav Breakpoint (max 991px) ===== */
@media (max-width: 991px) {
    .mobile-toggle { display: flex; }
    .hidden-mobile { display: none !important; }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        background: var(--white);
        flex-direction: column;
        padding: 100px 30px 40px;
        gap: 5px;
        transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
        box-shadow: -5px 0 30px rgba(0,0,0,0.1);
        z-index: 9998;
        overflow-y: auto;
    }

    .nav-menu.active { right: 0; }

    .nav-link {
        padding: 12px 16px;
        font-size: 1rem;
        border-bottom: 1px solid var(--border-color);
    }

    .nav-link::after { display: none; }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown > .nav-link {
        display: flex;
        justify-content: space-between;
        width: 100%;
    }

    .dropdown-menu {
        position: static;
        transform: none;
        min-width: 100%;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        opacity: 1;
        visibility: visible;
        transition: max-height 0.4s ease;
        background: var(--bg-light);
    }

    .dropdown-menu::before,
    .dropdown-menu::after {
        display: none;
    }

    .dropdown-menu.mobile-open {
        max-height: 600px;
        padding: 8px 0;
    }

    .dropdown-item {
        padding: 10px 16px 10px 24px;
        font-size: 0.88rem;
        border-left: none;
    }

    .dropdown-item:hover {
        padding-left: 28px;
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 9997;
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }

    .header-cta { display: none; }

    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .vmv-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }

    .top-bar-left { flex-wrap: wrap; gap: 15px; }
    .top-bar-right { display: none; }

    .whatsapp-chat { width: 340px; right: -10px; }
}

/* ===== Small Tablet / Large Phone (max 768px) ===== */
@media (max-width: 768px) {
    .container { padding: 0 20px; }
    .section-padding { padding: 70px 0; }

    .hero { height: 85vh; min-height: 500px; }
    .hero-title { font-size: clamp(1.8rem, 5vw, 2.8rem); }
    .hero-desc { font-size: 1rem; max-width: 100%; }
    .hero-btns { flex-direction: column; }
    .hero-btns .btn { width: 100%; text-align: center; }
    .hero-nav { display: none; }
    .hero-scroll-indicator { display: none; }
    .hero-text { max-width: 100%; }

    .section-header { margin-bottom: 40px; }

    .services-grid { grid-template-columns: 1fr; }
    .why-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .industries-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .products-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .about-features { grid-template-columns: 1fr; }
    .about-full-section { grid-template-columns: 1fr; gap: 30px; }
    .industries-dark-grid { grid-template-columns: 1fr; }
    .home-products-grid { grid-template-columns: repeat(2, 1fr); }
    .seo-content-grid { grid-template-columns: 1fr; gap: 30px; }
    .seo-highlights { grid-template-columns: 1fr; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .dashboard-actions { flex-direction: column; }
    .advantages-grid { grid-template-columns: 1fr; }
    .advantages-section { padding: 70px 0; }
    .advantages-stat-row { gap: 30px; flex-wrap: wrap; justify-content: center; }
    .advantages-stat-value { font-size: 2rem; }
    .gallery-preview-grid { grid-template-columns: repeat(2, 1fr); }
    .gallery-grid { grid-template-columns: 1fr; }

    .page-header { padding: 120px 0 60px; }
    .page-header h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); }
    .product-detail-hero { padding: 130px 0 60px; }

    .stat-number { font-size: 2.5rem; }
    .stat-item { padding: 20px 10px; }

    .product-highlights { grid-template-columns: 1fr; }
    .product-gallery-main { height: 300px; }
    .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
    .product-detail-section { padding: 60px 0; }
    .product-content-section { padding: 60px 0; }
    .related-products-grid { grid-template-columns: 1fr; }

    .about-img-wrapper img { height: 350px; }
    .about-full-img img { height: 300px; }

    .cta-section { text-align: center; }
    .cta-section p { font-size: 1rem; }

    .lightbox-close { top: 16px; right: 16px; width: 40px; height: 40px; font-size: 1.2rem; }
    .lightbox-prev { left: 10px; width: 40px; height: 40px; }
    .lightbox-next { right: 10px; width: 40px; height: 40px; }
    .lightbox img { max-width: 95%; max-height: 75vh; }

    .whatsapp-widget { bottom: 20px; right: 20px; }
    .whatsapp-btn { width: 56px; height: 56px; font-size: 26px; }
    .whatsapp-chat {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 85vh;
        overflow-y: auto;
        z-index: 9999;
    }

    .back-to-top { bottom: 88px; right: 22px; width: 40px; height: 40px; font-size: 0.9rem; }

    .footer-inner { padding: 60px 0 0; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
    .footer-bottom-links { justify-content: center; }
    .footer-social-links { justify-content: flex-start; }

    .legal-container { padding: 0; }

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

    .service-card { padding: 30px 24px; }
    .why-card { padding: 30px 20px; }
    .vmv-card { padding: 30px 20px; }

    .breadcrumb { flex-wrap: wrap; font-size: 0.8rem; }

    .seo-content-image img { height: 300px; }

    .advantage-card { padding: 32px 24px; }
    .advantage-number { font-size: 2.5rem; }

    .dashboard-stat-card { padding: 24px 20px; }
    .dashboard-log-card h3 { padding: 16px 20px; font-size: 1rem; }
    .dashboard-log-item { padding: 12px 20px; }

    .preloader-title { font-size: 1.6rem; letter-spacing: 6px; }
    .preloader-subtitle { font-size: 0.8rem; letter-spacing: 10px; }
}

/* ===== Phone (max 480px) ===== */
@media (max-width: 480px) {
    .container { padding: 0 16px; }
    .section-padding { padding: 60px 0; }

    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.2rem; }

    .hero { height: 80vh; min-height: 450px; }
    .hero-tag { font-size: 0.65rem; letter-spacing: 2px; padding: 4px 12px; }
    .hero-title { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 16px; }
    .hero-desc { font-size: 0.9rem; margin-bottom: 24px; line-height: 1.6; }
    .hero-btns .btn { padding: 12px 24px; font-size: 0.9rem; }

    .section-header { margin-bottom: 30px; }
    .section-header p { font-size: 0.95rem; }
    .section-tag { font-size: 0.7rem; letter-spacing: 2px; }

    .gallery-preview-grid { grid-template-columns: 1fr; }
    .gallery-preview-item { height: 220px; }
    .home-products-grid { grid-template-columns: 1fr; }
    .home-product-card-img { height: 180px; }
    .industries-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .stat-item { padding: 16px 8px; }
    .stat-number { font-size: 2rem; }
    .stat-label { font-size: 0.75rem; letter-spacing: 1px; }

    .seo-content-section { padding: 60px 0; }
    .seo-content-image img { height: 240px; }
    .seo-badge { padding: 10px 14px; }
    .seo-badge .seo-badge-number { font-size: 1.6rem; }

    .advantages-section { padding: 60px 0; }
    .advantages-stat-row {
        gap: 0;
        flex-direction: column;
        align-items: center;
    }
    .advantages-stat {
        padding: 12px 0;
        width: 100%;
    }
    .advantages-stat::after {
        display: none;
    }
    .advantages-stat-value { font-size: 1.8rem; }
    .advantage-card { padding: 28px 20px; }
    .advantage-icon { width: 60px; height: 60px; font-size: 1.3rem; }
    .advantage-number { font-size: 2rem; top: 12px; right: 14px; }

    .btn { padding: 12px 24px; font-size: 0.85rem; }
    .btn-sm { padding: 8px 18px; font-size: 0.8rem; }

    .top-bar { display: none; }

    .logo img { height: 180px; }
    .logo-text { font-size: 1.1rem; }

    .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
    .footer-bottom-links { flex-direction: column; gap: 8px; align-items: center; }
    .footer-inner { padding: 50px 0 0; }
    .footer h4 { margin-bottom: 16px; }
    .footer-about p { font-size: 0.88rem; }
    .footer-links a { font-size: 0.88rem; }
    .footer-powered p { font-size: 0.75rem; }

    .contact-form-wrapper { padding: 24px 16px; }
    .contact-info-card { padding: 18px; gap: 14px; }
    .contact-info-icon { width: 44px; height: 44px; min-width: 44px; font-size: 1rem; }

    .about-img-wrapper img { height: 280px; }
    .about-experience-badge { left: 10px; top: 10px; padding: 14px; }
    .about-experience-badge .number { font-size: 2rem; }
    .about-full-img img { height: 250px; }

    .whatsapp-widget { bottom: 16px; right: 16px; }
    .whatsapp-btn { width: 52px; height: 52px; font-size: 24px; }
    .whatsapp-chat {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 16px 16px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 9999;
    }
    .whatsapp-chat-header { padding: 16px 18px; gap: 12px; }
    .wa-avatar { width: 38px; height: 38px; font-size: 16px; }
    .wa-header-info h4 { font-size: 0.9rem; }
    .wa-header-info p { font-size: 0.72rem; }
    .whatsapp-chat-body { padding: 18px; }
    .wa-message { padding: 12px 14px; font-size: 0.85rem; }
    .whatsapp-chat-options { padding: 14px 18px; }
    .whatsapp-chat-options p { font-size: 0.75rem; margin-bottom: 10px; }
    .wa-option { padding: 10px 14px; font-size: 0.82rem; }

    .back-to-top { bottom: 80px; right: 18px; width: 38px; height: 38px; font-size: 0.85rem; }

    .product-gallery-main { height: 250px; }
    .product-gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 6px; }
    .product-thumb { height: 65px; }
    .product-detail-cta-row { flex-direction: column; }
    .product-detail-cta-row .btn { width: 100%; }
    .product-body { padding: 20px; }
    .product-body h3 { font-size: 1.15rem; }

    .preloader-fire { width: 100px; height: 120px; margin-bottom: 24px; }
    .preloader-title { font-size: 1.4rem; letter-spacing: 5px; }
    .preloader-subtitle { font-size: 0.7rem; letter-spacing: 8px; }
    .preloader-bar { width: 150px; margin-top: 24px; }

    .dashboard-stat-card .stat-value { font-size: 2rem; }
    .dashboard-stat-card { padding: 20px 16px; }

    .lightbox-close { top: 12px; right: 12px; width: 36px; height: 36px; font-size: 1rem; }
    .lightbox-prev { left: 6px; width: 36px; height: 36px; font-size: 1rem; }
    .lightbox-next { right: 6px; width: 36px; height: 36px; font-size: 1rem; }
    .lightbox img { max-width: 96%; max-height: 70vh; }

    .legal-container h2 { font-size: 1.3rem; margin-top: 30px; }
    .legal-container p { font-size: 0.9rem; }
    .legal-updated { font-size: 0.8rem; padding: 6px 12px; }
    .legal-contact-box { padding: 20px; }

    .industry-card { padding: 20px 16px; }
    .industry-card i { font-size: 1.6rem; margin-bottom: 12px; }
    .industry-card h4 { font-size: 0.88rem; }

    .service-card { padding: 28px 20px; }
    .service-icon { width: 50px; height: 50px; margin-bottom: 18px; }

    .gallery-card { height: 240px; }

    .map-section { height: 280px; }
}

/* ===== Very Small Phone (max 360px) ===== */
@media (max-width: 360px) {
    .container { padding: 0 12px; }

    .hero { height: 75vh; min-height: 400px; }
    .hero-title { font-size: 1.4rem; }
    .hero-desc { font-size: 0.85rem; }

    h1 { font-size: 1.5rem; }
    h2 { font-size: 1.3rem; }

    .logo-text { font-size: 1rem; }
    .logo img { height: 44px; }

    .nav-menu { width: 260px; padding: 90px 20px 30px; }

    .stat-number { font-size: 1.8rem; }
    .stat-label { font-size: 0.7rem; }

    .advantages-stat-value { font-size: 1.6rem; }
    .advantage-card h3 { font-size: 1rem; }
    .advantage-card p { font-size: 0.82rem; }

    .preloader-title { font-size: 1.2rem; letter-spacing: 4px; }
    .preloader-subtitle { font-size: 0.6rem; letter-spacing: 6px; }

    .footer-social-links { gap: 8px; }
    .footer-social-link { width: 36px; height: 36px; font-size: 0.85rem; }
}
