/* ==========================================================================
   Shree Electricals — Responsive Breakpoints (375px, 768px, 1440px)
   ========================================================================== */

@media (max-width: 1024px) {
    .category-grid,
    .usp-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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

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

@media (max-width: 768px) {
    .header-inner {
        height: 66px;
        gap: 8px;
    }

    .brand-logo-svg {
        height: 36px;
    }

    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: flex;
        flex-shrink: 0;
        width: 40px;
        height: 40px;
        margin-left: auto;
        margin-right: 0;
        border-radius: 8px;
    }

    .pull-light-switch {
        top: 13px;
        right: 72px;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--border);
        border-radius: 8px;
        background: var(--bg-light);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transform: none;
    }

    .pull-cord,
    .pull-hint,
    .lamp-beam {
        display: none;
    }

    .pull-lamp svg {
        width: 22px;
        height: 28px;
    }

    .nowrap {
        white-space: normal;
    }

    .hero-light-copy h1 {
        font-size: clamp(1.75rem, 6.2vw, 2.2rem);
        line-height: 1.22;
        padding: 0 4px;
    }

    .main-nav {
        position: fixed;
        top: 66px;
        left: 0;
        right: 0;
        background: var(--bg-white);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 16px 24px 24px;
        display: none;
        max-height: calc(100vh - 68px);
        overflow-y: auto;
    }

    .main-nav.is-open {
        display: block;
    }

    .main-nav > ul {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }

    .main-nav a {
        padding: 10px 4px;
        justify-content: space-between;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-light);
        margin: 4px 0 8px;
        display: none;
    }

    .nav-has-dropdown.is-open .nav-dropdown {
        display: block;
    }

    .hero-section {
        min-height: calc(100vh - 68px);
        padding: 48px 0 88px;
    }

    .hero-section.hero-light-showcase {
        padding-top: 72px;
    }

    .hero-showcase-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .hero-light-copy {
        text-align: center;
    }

    .hero-light-copy .hero-subtext {
        margin: 0 auto 24px;
    }

    .hero-light-copy .hero-cta-group,
    .hero-light-copy .hero-trust-row {
        justify-content: center;
    }

    .site-footer {
        padding-bottom: 72px;
    }

    .split-grid,
    .contact-grid,
    .form-row-2 {
        grid-template-columns: 1fr;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }

    .search-box,
    .search-box input {
        width: 100%;
    }

    .filter-bar {
        flex-wrap: nowrap;
        overflow-x: auto;
        max-width: 100%;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .filter-bar::-webkit-scrollbar {
        display: none;
    }

    .quote-tray {
        padding: 10px 14px;
        gap: 10px;
    }

    .quote-tray-actions,
    #quoteProceedBtn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}

@media (max-width: 560px) {
    .container {
        padding: 0 18px;
    }

    .section {
        padding: 56px 0;
    }

    .category-grid,
    .usp-grid,
    .usp-grid-2,
    .stats-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .hero-cta-group .btn {
        width: 100%;
    }

    .floating-actions {
        right: 12px;
        bottom: 12px;
        flex-direction: row;
        gap: 10px;
    }

    .fab-btn {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 960px) {
    html,
    body {
        overflow-x: clip;
    }

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

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

@media (max-width: 560px) {
    .studio-panel {
        padding: 20px 16px;
    }

    .studio-panel-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .kelvin-controls,
    .anatomy-tabs,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .hero-bento {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .hero-bento-card {
        padding: 16px 12px 14px;
    }
}
