/**
 * Technoplast Premium - Responsive Breakpoints Stylesheet
 * Complete mobile-first responsive design with full menu support
 */

/* ===== TABLET LANDSCAPE: 1024px ===== */
@media (max-width: 1024px) {
    .container {
        max-width: 720px;
    }
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }
    
    .site-header {
        padding: 0.8rem 0;
    }
    .header-container {
        padding: 0 1rem;
    }
    .main-navigation ul {
        gap: 1.5rem;
    }
    .main-navigation a {
        font-size: 0.85rem;
    }
    .header-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
}

/* ===== TABLET PORTRAIT & MOBILE LARGE: 768px ===== */
@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 1rem;
    }
    h1 { font-size: 2.15rem; }
    h2 { font-size: 1.65rem; }
    h3 { font-size: 1.45rem; }
    
    .section-padding {
        padding: 4rem 0;
    }
    
    /* Grid Transforms */
    .products-grid-3col,
    .blog-columns-grid,
    .cert-cards-grid,
    .industries-cards-grid,
    .trust-indicators-grid,
    .inner-split-layout,
    .single-product-grid,
    .blog-dual-container {
        grid-template-columns: 1fr !important;
        gap: 2rem !important;
    }
    
    .related-products-section .products-grid-3col {
        grid-template-columns: 1fr !important;
    }
    
    /* Table Scroll & Mobile Layout */
    .blueprint-spec-wrap {
        overflow-x: hidden;
        padding: 1.25rem;
    }
    .blueprint-table {
        min-width: 100%;
    }
    .blueprint-table th, 
    .blueprint-table td {
        padding: 10px 0;
        display: block;
        width: 100%;
        border: none;
    }
    .blueprint-table th {
        padding-bottom: 2px;
        font-size: 0.75rem;
        opacity: 0.8;
    }
    .blueprint-table td {
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(0, 103, 178, 0.1);
    }
    .blueprint-table tr:last-child td {
        border-bottom: none;
    }
    
    /* Touch Targets */
    .inner-btn,
    .btn-primary,
    .btn-accent,
    .btn-outline,
    .btn-whatsapp,
    .quote-submit-btn,
    .product-card-btn {
        min-height: 46px;
        padding: 0.75rem 1.75rem;
    }
    
    /* ===== HEADER MOBILE ===== */
    .site-header {
        padding: 0.6rem 0;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: 1000;
        background: var(--dark-bg);
        border-bottom: 1px solid var(--border-glass);
    }
    
    .header-container {
        display: flex;
        align-items: center;
        justify-content: space-between;
        max-width: 100%;
        margin: 0 auto;
        padding: 0 1rem;
        gap: 1rem;
        height: 60px;
    }
    
    .brand-logo {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .brand-logo a {
        display: flex;
        align-items: center;
        height: 100%;
    }
    
    .brand-logo img {
        max-height: 52px;
        width: auto;
        display: block;
    }
    
    .mobile-nav-toggle {
        color: #ffffff !important;
    }
    
    .fallback-brand-text {
        font-size: 1.2rem;
        font-weight: 800;
        white-space: nowrap;
    }
    
    /* Hide Desktop Navigation */
    .main-navigation {
        position: fixed;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100vh;
        background: #0a0f18;
        border-left: 1px solid var(--border-glass);
        z-index: 999;
        padding: 80px 2rem 2rem;
        transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.8);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex;
        flex-direction: column;
    }
    
    .main-navigation.open {
        right: 0;
    }
    
    .main-navigation ul {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        list-style: none;
        margin: 0;
        padding: 0;
        width: 100%;
    }
    
    .main-navigation li {
        width: 100%;
        position: relative;
    }
    
    .main-navigation a {
        display: block;
        padding: 1rem 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #ffffff !important;
        opacity: 1 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
        text-transform: uppercase;
        -webkit-text-fill-color: #ffffff !important;
    }
    
    .main-navigation a:hover,
    .main-navigation a:focus {
        color: var(--primary-blue) !important;
        -webkit-text-fill-color: var(--primary-blue) !important;
    }
    
    /* Dropdown Menus Mobile */
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        border: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.02);
        padding-left: 1.5rem;
        margin: 0;
        display: block;
        width: 100%;
        gap: 0;
    }
    
    .main-navigation ul ul a {
        padding: 0.75rem 0;
        font-size: 0.95rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .main-navigation ul ul a:last-child {
        border-bottom: none;
    }
    
    /* Mobile Menu Toggle */
    .mobile-nav-toggle {
        display: flex !important;
        order: 3;
        flex-shrink: 0;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
    }
    
    /* Hide CTA Buttons */
    .header-ctas {
        display: none !important;
    }
    
    .header-btn {
        display: none !important;
    }
    
    /* Floating Widgets */
    .whatsapp-floating-pulse {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.65rem;
    }
    
    #scroll-to-top {
        bottom: 20px;
        left: 20px;
        width: 44px;
        height: 44px;
        font-size: 1.1rem;
    }
    
    /* ===== FOOTER MOBILE ===== */
    .site-footer {
        padding: 3rem 0 2rem !important;
    }
    
    .footer-container {
        max-width: 100% !important;
        padding: 0 1.5rem !important;
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }
    
    .footer-col {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .footer-col h3,
    .footer-col h4 {
        font-size: 1.15rem !important;
        margin-bottom: 0.5rem !important;
    }
    
    .footer-col p {
        font-size: 0.95rem !important;
        line-height: 1.6 !important;
    }
    
    .social-icons-row {
        display: flex !important;
        gap: 1rem !important;
        justify-content: center !important;
    }
    
    .social-icons-row a {
        width: 40px !important;
        height: 40px !important;
    }
    
    .footer-bottom-bar {
        padding: 2rem 0 !important;
        border-top: 1px solid rgba(255,255,255,0.05) !important;
    }
    
    .footer-bottom-bar .container {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.25rem !important;
        text-align: center !important;
        align-items: center !important;
    }
    
    .policy-links {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        flex-wrap: wrap !important;
        gap: 1rem !important;
        width: 100% !important;
    }
    
    /* ===== PAGE CONTENT ===== */
    main.section-wrapper {
        padding-top: 120px !important;
    }
    
    .inner-hero-banner {
        padding: 100px 0 50px !important;
        margin-top: 50px !important;
    }
    
    .inner-hero-title {
        font-size: 2.25rem !important;
    }
    
    .inner-form-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .inner-form-group {
        grid-column: 1 / -1 !important;
    }
    
    .gallery-masonry-grid {
        column-count: 1 !important;
    }
    
    .google-maps-box iframe {
        height: 300px !important;
    }
    
    /* Global Touch Targets */
    .btn-primary, .btn-accent, .inner-btn, .header-btn {
        min-height: 48px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    
    html {
        scroll-padding-top: 70px;
    }
}

/* ===== MOBILE PORTRAIT: 576px ===== */
@media (max-width: 576px) {
    .container {
        padding: 0 1rem;
    }
    
    h1 { font-size: 1.85rem; }
    h2 { font-size: 1.45rem; }
    h3 { font-size: 1.25rem; }
    
    .inner-hero-banner {
        padding: 90px 0 40px;
        margin-top: 45px;
    }
    
    .inner-hero-title {
        font-size: 2rem;
    }
    
    .site-header {
        padding: 0.5rem 0;
    }
    
    .header-container {
        padding: 0 0.75rem;
        gap: 0.75rem;
        height: 56px;
    }
    
    .brand-logo img {
        max-height: 48px;
    }
    
    .fallback-brand-text {
        font-size: 1rem;
        letter-spacing: 0.5px;
    }
    
    .mobile-nav-toggle {
        width: 40px;
        height: 40px;
    }
    
    .mobile-nav-toggle span {
        width: 22px;
    }
    
    .main-navigation {
        max-width: 100%;
        padding: 70px 1.5rem 2rem;
    }
    
    .main-navigation a {
        font-size: 0.95rem;
        padding: 0.6rem 0;
    }
    
    .main-navigation ul ul {
        padding-left: 1rem;
    }
    
    .main-navigation ul ul a {
        font-size: 0.85rem;
        padding: 0.4rem 0;
    }
    
    .footer-container {
        gap: 1.5rem !important;
    }
    
    .footer-col h3 {
        font-size: 1rem !important;
    }
    
    .footer-col h4 {
        font-size: 0.95rem !important;
    }
    
    .footer-col p {
        font-size: 0.85rem !important;
    }
    
    .social-icons-row a {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.9rem !important;
    }
    
    html {
        scroll-padding-top: 56px;
    }
}

/* ===== COMPACT MOBILE: 375px ===== */
@media (max-width: 375px) {
    h1 { font-size: 1.65rem; }
    
    .inner-hero-title {
        font-size: 1.85rem;
    }
    
    .header-container {
        padding: 0 0.75rem;
        gap: 0.5rem;
        height: 54px;
    }
    
    .brand-logo img {
        max-height: 36px;
    }
    
    .fallback-brand-text {
        font-size: 0.95rem;
    }
    
    .mobile-nav-toggle {
        width: 38px;
        height: 38px;
    }
    
    .mobile-nav-toggle span {
        width: 20px;
    }
    
    .main-navigation {
        max-width: 100%;
        padding: 65px 1.25rem 2rem;
    }
}
