/* mobile-responsive.css - Comprehensive Mobile View & Alignment Overhauls */

/* Global Mobile Fixes for Overflow & Sizing */
html, body {
    max-width: 100vw !important;
    overflow-x: hidden !important;
}

*, *::before, *::after {
    box-sizing: border-box !important;
}

@media (max-width: 1200px) {
    /* Interactive Demo Section Overrides */
    #demoContentCurtain,
    #demoContentHvac,
    #demoContentTheater,
    #demoContentSecurity,
    #demoContentLighting,
    div[style*="display: flex; flex-wrap: wrap; gap: 4rem;"],
    div[style*="display: flex; justify-content: center; gap: 4rem;"],
    div[style*="flex-wrap: wrap;"] {
        flex-direction: column !important;
        gap: 1.5rem !important;
    }

    /* Override inline flex sizing */
    div[style*="flex: 1 1 60%"],
    div[style*="flex: 1 1 30%"],
    div[style*="flex: 1 1 50%"],
    div[style*="flex: 1 1 40%"],
    .curtain-panel,
    .glass-panel,
    .hvac-panel,
    .theater-panel,
    .security-panel {
        flex: 1 1 100% !important;
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }

    /* Limit height of demo images on mobile to prevent them taking over the screen */
    /* Interactive demo screens sizing for ALL tablets, iPads & mobile */
    .scene-tabs__display,
    #sceneDisplay,
    #hvacDisplay {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 1.25rem !important;
        position: relative !important;
        overflow: hidden !important;
        background: transparent !important;
    }

    #theaterDisplay {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        aspect-ratio: 16 / 10.6 !important;
        border-radius: 1.25rem !important;
        position: relative !important;
        overflow: hidden !important;
        background: #060911 !important;
    }

    /* All demo display images MUST be absolutely positioned to fill 100% of the aspect-ratio container without letterboxing or black gaps */
    .scene-tabs__display img,
    .scene-panel__image,
    #theaterBaseImg,
    div[style*="flex: 1 1 60%"] img,
    div[style*="flex: 1 1 50%"] img,
    img[src*="living_room"],
    img[src*="theater"],
    img[src*="security"],
    img[src*="music"],
    img[src*="curtain"] {
        position: absolute !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    /* Floating contact bar: preserve layout without obscuring screen content */
    .quick-contact {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }

    /* Adjust padding for sections across mobile screens */
    section {
        padding: 3.5rem 1rem !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
    }

    /* Navbar: clean pill layout with proper space for logo and hamburger */
    .navbar {
        padding: 0.75rem 1rem !important;
    }

    .navbar__pill {
        flex-direction: row !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.6rem 1rem !important;
        width: 100% !important;
        max-width: 100% !important;
        border-radius: 2rem !important;
    }
    
    .navbar__logo-img {
        height: 40px !important;
        width: auto !important;
    }
    
    .navbar__links {
        display: none !important;
    }

    .navbar__hamburger {
        display: flex !important;
        margin-left: auto !important;
    }

    /* Mobile Menu Drawer / Dropdown */
    .mobile-menu {
        width: 95% !important;
        max-width: 450px !important;
        margin: 0.5rem auto 0 auto !important;
    }
    
    /* AC LED and overlay scaling on mobile */
    #acLedDisplay {
        font-size: 0.7rem !important;
    }
    
    /* Temperature overlays in interactive demo */
    div[id*="TempOverlay"],
    #hvacRoomTempOverlay {
        bottom: 1rem !important;
        left: 1rem !important;
        padding: 0.5rem 1rem !important;
        font-size: 0.8rem !important;
    }
    
    #hvacRoomTempText {
        font-size: 1.5rem !important;
    }

    /* Stats Section Stacking for Tablet/Mobile */
    #stats .stats__layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        align-items: center !important;
        width: 100% !important;
    }

    #stats .stats__header {
        text-align: center !important;
        width: 100% !important;
    }

    #stats .stats__header .section-title {
        text-align: center !important;
        white-space: normal !important;
        word-break: normal !important;
    }

    #stats .lighting-panel {
        width: 100% !important;
        max-width: 440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
        justify-self: center !important;
        align-self: center !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    .stats__wavy-line {
        display: none !important;
    }
}

@media (max-width: 768px) {
    /* Feature grids and other multi-column grids */
    .feature-grid,
    .features-container,
    .services-grid,
    .automation-grid,
    .blog__grid,
    .new-mockup-grid,
    div[style*="display: grid"] {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }
    
    /* Title and typography scaling */
    .section-title,
    h2.section-title {
        font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
        line-height: 1.25 !important;
        text-align: center !important;
        word-break: normal !important;
    }
    
    .hero-title,
    .hero__title {
        font-size: clamp(2rem, 7vw, 2.7rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
    
    .hero__title-line1,
    .hero__title-line2 {
        display: block !important;
        text-align: center !important;
    }

    .hero-subtitle,
    .hero__subtitle {
        font-size: 0.95rem !important;
        text-align: center !important;
        letter-spacing: 0.1em !important;
    }

    .hero__badge {
        margin: 0 auto 1.25rem auto !important;
    }

    .hero {
        min-height: 100vh !important;
        height: auto !important;
        padding-top: 6rem !important;
        padding-bottom: 4rem !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    .hero__container {
        transform: none !important;
        padding-bottom: 2rem !important;
        box-sizing: border-box !important;
    }

    .hero__cta-group {
        justify-content: center !important;
        display: flex !important;
        margin-top: 1.5rem !important;
        margin-bottom: 1rem !important;
        width: 100% !important;
    }

    .hero__cta-primary {
        margin: 0 auto !important;
    }

    /* Demo panels padding reduce */
    .curtain-panel,
    .glass-panel,
    div[style*="padding: 1.5rem"],
    div[style*="padding: 2rem"] {
        padding: 1.25rem 1rem !important;
    }

    /* Scene display aspect ratios for proper uncropped widescreen view */
    #sceneDisplay,
    #hvacDisplay,
    .scene-tabs__display {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        width: 100% !important;
    }
    #theaterDisplay {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 10.6 !important;
        width: 100% !important;
    }

    /* Blog Arc decoration clean adaptation */
    #blog .new-mockup-style .floating-arc {
        display: none !important;
    }

    /* Testimonials mobile adjustments */
    .testimonials__carousel {
        max-width: 100% !important;
    }

    .review-card {
        padding: 2.2rem 1.6rem !important;
        min-height: 280px !important;
    }

    /* Brands rail mobile sizing */
    .brand-rail__item {
        padding: 0.5rem 0.8rem !important;
        min-width: 90px !important;
    }

    .brands__compat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1rem !important;
    }

    /* Footer contact layout */
    .footer__contact-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }

    .footer__links {
        display: grid !important;
        grid-template-columns: repeat(2, max-content) !important;
        justify-content: center !important;
        column-gap: clamp(2rem, 8vw, 4rem) !important;
        row-gap: 2rem !important;
        align-items: start !important;
    }

    .footer__brand {
        grid-column: 1 / -1 !important;
        align-items: center !important;
        text-align: center !important;
    }

    .footer__brand-top {
        justify-content: center !important;
    }

    /* Residential & Commercial side by side in one row with proper start alignment */
    .footer__col--residential,
    .footer__col--commercial {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        width: 100% !important;
        min-width: 0 !important;
    }

    .footer__col--residential h4,
    .footer__col--commercial h4 {
        margin-bottom: 1.15rem !important;
        display: inline-block !important;
        text-align: left !important;
        font-size: 0.92rem !important;
        letter-spacing: 0.12em !important;
        position: relative !important;
    }

    .footer__col--residential h4::after,
    .footer__col--commercial h4::after {
        left: 0 !important;
        transform: none !important;
        transform-origin: left !important;
        width: 2rem !important;
        height: 2px !important;
        bottom: -0.45rem !important;
    }

    .footer__col--residential ul,
    .footer__col--commercial ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.75rem !important;
        width: 100% !important;
        list-style: none !important;
    }

    .footer__col--residential li,
    .footer__col--commercial li {
        width: 100% !important;
        text-align: left !important;
    }

    .footer__col--residential a,
    .footer__col--commercial a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: 0.88rem !important;
        line-height: 1.4 !important;
        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }

    .footer__col--residential a::before,
    .footer__col--commercial a::before {
        display: none !important;
    }

    /* Quick Links spans full width on next row */
    .footer__col--quick-links,
    .footer__links > .footer__col:last-child {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(27, 23, 18, 0.08) !important;
        width: 100% !important;
    }

    .footer__col--quick-links h4,
    .footer__links > .footer__col:last-child h4 {
        margin-bottom: 1rem !important;
        display: inline-block !important;
        text-align: center !important;
        font-size: 0.92rem !important;
        letter-spacing: 0.12em !important;
        position: relative !important;
    }

    .footer__col--quick-links h4::after,
    .footer__links > .footer__col:last-child h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        transform-origin: center !important;
        width: 2rem !important;
        height: 2px !important;
        bottom: -0.45rem !important;
    }

    .footer__col--quick-links ul,
    .footer__links > .footer__col:last-child ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem 1.5rem !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .footer__col--quick-links li,
    .footer__links > .footer__col:last-child li {
        width: auto !important;
        text-align: center !important;
    }

    .footer__col--quick-links a,
    .footer__links > .footer__col:last-child a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: 0.88rem !important;
        padding: 0.25rem 0.5rem !important;
        white-space: nowrap !important;
    }

    .footer__col--quick-links a::before,
    .footer__links > .footer__col:last-child a::before {
        display: none !important;
    }
}

@media (max-width: 480px) {
    div[style*="flex: 1 1 60%"] img,
    div[style*="flex: 1 1 50%"] img {
        height: 220px !important;
    }
    
    .section-title {
        font-size: 1.7rem !important;
    }

    /* Mobile Footer: Residential & Commercial centered 2-column block with perfect alignment */
    .footer__links {
        display: grid !important;
        grid-template-columns: repeat(2, max-content) !important;
        justify-content: center !important;
        column-gap: clamp(1.5rem, 6vw, 2.5rem) !important;
        row-gap: 1.5rem !important;
        text-align: left !important;
        max-width: 100% !important;
        margin: 0 auto !important;
        padding: 0 1rem 1.5rem !important;
        box-sizing: border-box !important;
    }

    .footer__brand {
        grid-column: 1 / -1 !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 0.25rem !important;
        width: 100% !important;
    }

    .footer__brand-top {
        justify-content: center !important;
    }

    .footer__brand p {
        font-size: 0.85rem !important;
        line-height: 1.55 !important;
        max-width: 320px !important;
        margin: 0 auto 0.5rem auto !important;
    }

    /* Residential and Commercial columns: equal vertical rhythm, clean left-alignment */
    .footer__col--residential,
    .footer__col--commercial,
    .footer__links > .footer__col:nth-child(2),
    .footer__links > .footer__col:nth-child(3) {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }

    .footer__col--residential h4,
    .footer__col--commercial h4,
    .footer__links > .footer__col:nth-child(2) h4,
    .footer__links > .footer__col:nth-child(3) h4 {
        margin-bottom: 1rem !important;
        display: inline-block !important;
        text-align: left !important;
        font-size: clamp(0.82rem, 3.2vw, 0.9rem) !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        position: relative !important;
        line-height: 1.2 !important;
    }

    .footer__col--residential h4::after,
    .footer__col--commercial h4::after,
    .footer__links > .footer__col:nth-child(2) h4::after,
    .footer__links > .footer__col:nth-child(3) h4::after {
        content: '' !important;
        position: absolute !important;
        left: 0 !important;
        transform: none !important;
        transform-origin: left !important;
        width: 1.85rem !important;
        height: 2px !important;
        bottom: -0.45rem !important;
        background: linear-gradient(to right, var(--gold), var(--teal)) !important;
        border-radius: var(--radius-pill) !important;
    }

    .footer__col--residential:hover h4::after,
    .footer__col--commercial:hover h4::after,
    .footer__links > .footer__col:nth-child(2):hover h4::after,
    .footer__links > .footer__col:nth-child(3):hover h4::after {
        transform: scaleX(1.1) !important;
        transform-origin: left !important;
    }

    .footer__col--residential ul,
    .footer__col--commercial ul,
    .footer__links > .footer__col:nth-child(2) ul,
    .footer__links > .footer__col:nth-child(3) ul {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: flex-start !important;
        padding: 0 !important;
        margin: 0 !important;
        gap: 0.65rem !important;
        width: 100% !important;
        list-style: none !important;
    }

    .footer__col--residential li,
    .footer__col--commercial li,
    .footer__links > .footer__col:nth-child(2) li,
    .footer__links > .footer__col:nth-child(3) li {
        width: 100% !important;
        text-align: left !important;
        min-height: 1.45rem !important;
        display: flex !important;
        align-items: center !important;
    }

    .footer__col--residential a,
    .footer__col--commercial a,
    .footer__links > .footer__col:nth-child(2) a,
    .footer__links > .footer__col:nth-child(3) a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        font-size: clamp(0.76rem, 2.7vw, 0.85rem) !important;
        line-height: 1.35 !important;
        white-space: nowrap !important;
        padding: 0.1rem 0 !important;
    }

    .footer__col--residential a::before,
    .footer__col--commercial a::before,
    .footer__links > .footer__col:nth-child(2) a::before,
    .footer__links > .footer__col:nth-child(3) a::before {
        display: none !important;
    }

    /* Quick Links: centered row below Residential & Commercial with balanced items */
    .footer__col--quick-links,
    .footer__links > .footer__col:last-child {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(27, 23, 18, 0.08) !important;
        width: 100% !important;
    }

    .footer__col--quick-links h4,
    .footer__links > .footer__col:last-child h4 {
        margin-bottom: 0.95rem !important;
        display: inline-block !important;
        text-align: center !important;
        font-size: clamp(0.82rem, 3.2vw, 0.9rem) !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        position: relative !important;
        line-height: 1.2 !important;
    }

    .footer__col--quick-links h4::after,
    .footer__links > .footer__col:last-child h4::after {
        content: '' !important;
        position: absolute !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        transform-origin: center !important;
        width: 1.85rem !important;
        height: 2px !important;
        bottom: -0.45rem !important;
        background: linear-gradient(to right, var(--gold), var(--teal)) !important;
        border-radius: var(--radius-pill) !important;
    }

    .footer__col--quick-links:hover h4::after,
    .footer__links > .footer__col:last-child:hover h4::after {
        transform: translateX(-50%) scaleX(1.1) !important;
    }

    .footer__col--quick-links ul,
    .footer__links > .footer__col:last-child ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.5rem 1.25rem !important;
        max-width: 245px !important;
        margin: 0 auto !important;
        padding: 0 !important;
        width: 100% !important;
        list-style: none !important;
    }

    .footer__col--quick-links li,
    .footer__links > .footer__col:last-child li {
        width: auto !important;
        text-align: center !important;
    }

    .footer__col--quick-links a,
    .footer__links > .footer__col:last-child a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        font-size: clamp(0.78rem, 2.7vw, 0.85rem) !important;
        padding: 0.2rem 0.4rem !important;
        white-space: nowrap !important;
    }

    .footer__col--quick-links a::before,
    .footer__links > .footer__col:last-child a::before {
        display: none !important;
    }

    /* Reclaim extra space in inputs and buttons */
    .new-ui-btn,
    .lighting-button {
        padding: 0.5rem 0.75rem !important;
        font-size: 0.8rem !important;
    }
}

/* Global Fixes for Contact Cards (Applies to all screen sizes) */
.footer__contact-card-label {
    color: #5e564b !important; /* Make the label readable on light backgrounds */
}

.footer__contact-card {
    display: flex !important;
    align-items: center !important;
    gap: 1.5rem !important;
}

.footer__contact-card-icon {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.footer__contact-card-icon svg {
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
}

.footer__contact-card-copy {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}

.footer__contact-card-emails-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 0.6rem !important;
    width: 100% !important;
    height: auto !important;
    min-height: unset !important;
}

.footer__email-subbox {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    padding: 0.55rem 0.75rem !important;
    border-radius: 0.75rem !important;
    background: rgba(255, 255, 255, 0.45) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
    width: 100% !important;
    flex: 0 0 auto !important;
    min-width: 0 !important;
    height: auto !important;
    min-height: unset !important;
    max-height: none !important;
    box-sizing: border-box !important;
    transition: all 0.2s ease !important;
}

.footer__email-subbox:hover {
    background: rgba(255, 255, 255, 0.7) !important;
    border-color: rgba(18, 186, 199, 0.35) !important;
}

.footer__email-line-sep {
    width: 100% !important;
    height: 1px !important;
    background: rgba(0, 0, 0, 0.06) !important;
    margin: 0.25rem 0 !important;
}

a.footer__contact-card-value {
    white-space: nowrap !important;
    word-break: normal !important;
    overflow-wrap: normal !important;
}

@media (min-width: 993px) {
    .footer__contact-card-emails-row {
        flex-direction: row !important;
        align-items: stretch !important;
        gap: 0.65rem !important;
    }
    .footer__email-subbox {
        flex: 1 1 0 !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }
}

@media (max-width: 992px) {
    .footer__contact-card-emails-row {
        flex-direction: column !important;
        gap: 0.6rem !important;
        height: auto !important;
        min-height: unset !important;
    }
    .footer__email-subbox {
        width: 100% !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
        padding: 0.55rem 0.75rem !important;
    }
}

a.footer__contact-card-value:hover,
a.footer__contact-card-value:focus-visible {
    color: #0b9ba8 !important;
    text-decoration: underline !important;
}

/* Fix Stats Section Layout & Lamp Overlaps */
#stats {
    padding-top: 7.5rem !important; /* Move everything down a bit more from the very top */
}

#stats .stats__badge {
    margin-top: 1rem !important; /* Give the title badge a little more breathing room at the top */
    margin-bottom: 2.5rem !important;
}

#stats .lamp {
    --wire-h: 75px !important;
    z-index: 4 !important;
    opacity: 1 !important;
    pointer-events: none !important;
}

#stats .lamp--left {
    left: clamp(1rem, 2.5vw, 3.5rem) !important;
}

#stats .lamp--right {
    right: clamp(1rem, 2.5vw, 3.5rem) !important;
}

/* Push the lighting control panel DOWN so it doesn't collide with the right hanging bulb */
#stats .lighting-panel {
    position: relative !important;
    z-index: 10 !important; 
}

#stats .section-title {
    position: relative !important;
    z-index: 10 !important; 
}

/* Move the Contact Us Footer Section up slightly as requested */
.footer {
    padding-top: 1.5rem !important; /* Decrease top padding further */
    margin-top: -2.5rem !important; /* Pull the entire section upwards */
    position: relative !important;
    z-index: 10 !important;
    padding-bottom: 0 !important; /* Remove bottom padding so the new bottom bar sits flush at the very end */
}

/* --- MODERN UNIQUE FOOTER BAR DESIGN --- */
.footer__gradient-bar {
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 4px !important;
    background: linear-gradient(90deg, 
        rgba(18, 186, 199, 0.08) 0%, 
        rgba(224, 172, 105, 0.15) 50%, 
        rgba(18, 186, 199, 0.08) 100%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 0 !important;
    overflow: hidden;
    z-index: 50;
    box-shadow: 0 -2px 14px rgba(18, 186, 199, 0.12);
}

/* Primary hyper-glow photon beam sweeping across */
.footer__gradient-bar::before {
    content: '';
    position: absolute;
    top: 0;
    left: -40%;
    width: 35%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(18, 186, 199, 0.3) 25%, 
        #12bac7 50%, 
        #e0ac69 75%, 
        #ffffff 85%, 
        #e0ac69 92%, 
        transparent 100%
    );
    filter: drop-shadow(0 0 8px rgba(18, 186, 199, 0.95)) drop-shadow(0 0 16px rgba(224, 172, 105, 0.8));
    animation: photonSweep 4.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    will-change: transform, opacity;
}

/* Counter-moving secondary ambient light wave for rich depth */
.footer__gradient-bar::after {
    content: '';
    position: absolute;
    top: 0;
    right: -30%;
    width: 25%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(224, 172, 105, 0.35) 30%, 
        #e0ac69 60%, 
        rgba(18, 186, 199, 0.8) 85%, 
        transparent 100%
    );
    filter: drop-shadow(0 0 10px rgba(224, 172, 105, 0.85));
    animation: counterPulseSweep 6s cubic-bezier(0.25, 1, 0.5, 1) infinite;
    animation-delay: 1.8s;
    will-change: transform, opacity;
}

@keyframes photonSweep {
    0% {
        transform: translateX(-100%);
        opacity: 0;
    }
    12% {
        opacity: 1;
    }
    85% {
        opacity: 1;
    }
    100% {
        transform: translateX(450%);
        opacity: 0;
    }
}

@keyframes counterPulseSweep {
    0% {
        transform: translateX(100%);
        opacity: 0;
    }
    15% {
        opacity: 0.85;
    }
    80% {
        opacity: 0.85;
    }
    100% {
        transform: translateX(-550%);
        opacity: 0;
    }
}

/* Align with Contact Form and remove white space gap */
.footer__links {
    margin: 0 auto !important;
    max-width: 1180px !important;
    padding-bottom: 2rem !important; 
    animation: slideUpFade 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Classic proper animation for the footer links */
.footer__links a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer__links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--teal);
    transition: width 0.3s ease;
}

.footer__links a:hover {
    color: var(--teal) !important;
}

.footer__links a:hover::after {
    width: 100%;
}

/* Hide the redundant h2 text since the logo image already contains the company name */
.footer__brand-name {
    display: none !important;
}

/* Widen the two-column layout as requested */
.footer__newsletter {
    max-width: 1180px !important;
    margin: 0 auto 8rem auto !important; /* Increase bottom margin to push links down more */
}

@media (min-width: 769px) {
    .footer__contact-layout {
        grid-template-columns: 1fr 1fr !important;
        gap: 2rem !important;
    }
}

@media (max-width: 768px) {
    .footer__contact-layout {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
}

.footer__contact-side, 
.footer__contact-form {
    padding: 1.5rem !important; /* Decrease padding inside the panels */
}

.footer__contact-title {
    font-size: 1.8rem !important; /* Make the main contact title smaller */
    margin-bottom: 0.5rem !important;
}

.footer__contact-side p {
    font-size: 0.85rem !important; /* Decrease description text size */
    margin-bottom: 1.25rem !important;
    line-height: 1.5 !important;
}

.footer__input, 
.footer__btn {
    padding: 0.65rem 1rem !important; /* Make form inputs smaller */
    font-size: 0.85rem !important;
}

/* Re-show the Map as a proper little small map view at the bottom */
.footer__newsletter {
    max-width: 1180px !important;
    margin: 0 auto 8rem auto !important; /* Increase bottom margin to push links down more */
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
}

.footer__map-panel {
    display: block !important;
    height: 140px !important; /* Make it a small, proper view inside the form */
    margin-top: 1rem !important;
    margin-bottom: 0.5rem !important; /* Spacing between map and captcha */
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 0.75rem !important; /* slightly smaller radius to fit inside the card cleanly */
}

.footer__map-frame iframe {
    height: 140px !important;
    min-height: 140px !important;
    border-radius: 0.75rem !important;
}

.footer__map-meta {
    display: none !important; /* Hide the text, keep just the map */
}

/* Arrange form actions: Captcha first, Send Button at the bottom */
.footer__form-support {
    display: flex !important;
    flex-direction: column !important;
}

.footer__captcha-wrap {
    order: 1 !important; /* Move the reCAPTCHA above the button */
    margin-bottom: 1rem !important; /* Space between captcha and button */
}

.footer__form-actions {
    order: 10 !important; /* Send Inquiry button moves to the very bottom */
}

.footer__captcha-box {
    transform: scale(0.7); /* Keep it nice and small */
    transform-origin: left top;
    margin-top: 0 !important;
    margin-bottom: -1rem !important; /* Reclaim empty space */
}

/* Remove the warning text below the reCAPTCHA */
.footer__captcha-note {
    display: none !important;
}

/* ==========================================================================
   Comprehensive Mobile & Tablet Overhauls for All Views & Devices
   ========================================================================== */

/* 1. Global Viewport & Container Safeguards */
@media (max-width: 1024px) {
    html, body {
        width: 100% !important;
        max-width: 100vw !important;
        overflow-x: hidden !important;
        position: relative !important;
    }

    /* Keep container padding clean and prevent horizontal blowout */
    .container,
    .why-choose__container,
    .journey-ladder__container,
    .solutions-page__container,
    .portfolio__container,
    .brands__container,
    .stats__container,
    .automation-features__container,
    .footer__container,
    .testimonials__container,
    .blog__container {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: clamp(1rem, 4vw, 1.5rem) !important;
        padding-right: clamp(1rem, 4vw, 1.5rem) !important;
        box-sizing: border-box !important;
    }

    /* Fixed ambient glows shouldn't trigger horizontal scroll */
    .ambient-glow,
    .cursor-glow,
    .hero__particles,
    .hero__cursor-glow {
        max-width: 100vw !important;
        overflow: hidden !important;
        pointer-events: none !important;
    }

    /* Navbar Mobile Refinements */
    .navbar {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        padding: 0.6rem 0.8rem !important;
        z-index: 9999 !important;
    }

    .navbar__pill {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        padding: 0.5rem 1rem !important;
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border: 1px solid rgba(255, 255, 255, 0.8) !important;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06) !important;
    }

    .navbar__logo-img {
        height: 38px !important;
        width: auto !important;
        max-width: 160px !important;
    }

    .navbar__hamburger {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 5px !important;
        width: 40px !important;
        height: 40px !important;
        background: rgba(15, 23, 41, 0.05) !important;
        border: 1px solid rgba(15, 23, 41, 0.08) !important;
        border-radius: 0.75rem !important;
        cursor: pointer !important;
        z-index: 10001 !important;
        padding: 0 !important;
    }

    .navbar__hamburger span {
        display: block !important;
        width: 20px !important;
        height: 2px !important;
        background-color: #0f1729 !important;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        transform-origin: center !important;
    }

    .navbar__hamburger.open span:nth-child(1) {
        transform: translateY(7px) rotate(45deg) !important;
    }
    .navbar__hamburger.open span:nth-child(2) {
        opacity: 0 !important;
        transform: scaleX(0) !important;
    }
    .navbar__hamburger.open span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg) !important;
    }

    /* Mobile menu drawer */
    .mobile-menu {
        position: absolute !important;
        top: calc(100% + 0.5rem) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: calc(100% - 1.6rem) !important;
        max-width: 440px !important;
        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(20px) !important;
        -webkit-backdrop-filter: blur(20px) !important;
        border: 1px solid rgba(15, 23, 41, 0.1) !important;
        border-radius: 1.25rem !important;
        box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15) !important;
        padding: 1.25rem !important;
        z-index: 10000 !important;
        max-height: calc(100vh - 5rem) !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }

    .mobile-menu__link,
    .mobile-menu__summary {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        padding: 0.75rem 1rem !important;
        border-radius: 0.75rem !important;
        color: #0f1729 !important;
        text-decoration: none !important;
        background: rgba(15, 23, 41, 0.03) !important;
        margin-bottom: 0.4rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    .mobile-menu__sublink {
        font-size: 0.85rem !important;
        padding: 0.55rem 0.85rem !important;
        color: #334155 !important;
        display: block !important;
        border-radius: 0.5rem !important;
        text-decoration: none !important;
    }

    .mobile-menu__subheading {
        font-size: 0.72rem !important;
        text-transform: uppercase !important;
        letter-spacing: 0.08em !important;
        color: #0ea5e9 !important;
        margin: 0.6rem 0 0.3rem 0.5rem !important;
        font-weight: 800 !important;
    }

    .mobile-menu__social {
        display: flex !important;
        justify-content: center !important;
        gap: 0.75rem !important;
        margin-top: 1rem !important;
        padding-top: 1rem !important;
        border-top: 1px solid rgba(15, 23, 41, 0.08) !important;
    }

    .mobile-menu__social .social-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: rgba(15, 23, 41, 0.04) !important;
    }
}

/* 2. Interactive Demos (Curtain, HVAC, Theater, Security, Lighting) Responsive Overrides */
@media (max-width: 900px) {
    #demoContainer {
        width: 100% !important;
        overflow: hidden !important;
    }

    #demoContentCurtain,
    #demoContentHvac,
    #demoContentTheater {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    #demoContentCurtain[style*="display: none"],
    #demoContentHvac[style*="display: none"],
    #demoContentTheater[style*="display: none"] {
        display: none !important;
    }

    /* Interactive demo screens sizing */
    #sceneDisplay,
    #hvacDisplay,
    .scene-tabs__display {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 1.25rem !important;
    }
    #theaterDisplay {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 10.6 !important;
        border-radius: 1.25rem !important;
    }

    .scene-tabs__display img,
    .scene-panel__image,
    #theaterBaseImg {
        position: absolute !important;
        inset: 0 !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        object-position: center !important;
        display: block !important;
    }

    /* Right hand interactive panels */
    .curtain-panel,
    .theater-panel,
    div[role="group"][aria-label="Curtain controls"],
    div[role="group"][aria-label="HVAC controls"],
    div[role="group"][aria-label="Home Theater controls"] {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        padding: 1.25rem 1rem !important;
        box-sizing: border-box !important;
        border-radius: 1.25rem !important;
    }

    /* Ensure AC Digital Display aligns neatly on smaller screens */
    #acLedDisplay {
        font-size: 0.75rem !important;
        top: 22% !important;
        left: 54% !important;
    }

    #acOutletFlap {
        top: 29.5% !important;
        height: 1.8% !important;
    }

    /* Theater screen in demo */
    #theaterScreenFrame {
        left: 18% !important;
        width: 64% !important;
        top: 28% !important;
        height: 38% !important;
    }

    #theaterScreenTitle {
        font-size: 0.65rem !important;
        letter-spacing: 0.1em !important;
    }

    #theaterScreenSubtitle {
        font-size: 0.5rem !important;
    }

    #theaterAudioBadge {
        top: 0.85rem !important;
        right: 0.85rem !important;
        padding: 0.35rem 0.75rem !important;
    }

    #theaterAudioText {
        font-size: 0.65rem !important;
    }
}

/* 3. Stats Section & Orbs Responsive Tuning */
@media (max-width: 900px) {
    #stats {
        padding-top: 5rem !important;
        padding-bottom: 3.5rem !important;
    }

    #stats .stats__badge {
        position: relative !important;
        top: 0 !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 1.5rem auto !important;
        display: flex !important;
        width: fit-content !important;
        max-width: fit-content !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
    }

    #stats .stats__container {
        margin-top: 0 !important;
        padding-top: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }
    }

    #stats .stats__layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    #stats .stats__header {
        width: 100% !important;
        text-align: center !important;
    }

    #stats .stats__header .section-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        white-space: normal !important;
        text-align: center !important;
        line-height: 1.25 !important;
    }

    #stats .lighting-panel {
        width: 100% !important;
        max-width: 440px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-top: 1.5rem !important;
        margin-bottom: 2rem !important;
        justify-self: center !important;
        align-self: center !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    /* Hanging Lamps on small mobile screens */
    #stats .lamp {
        opacity: 1 !important;
        display: block !important;
        visibility: visible !important;
    }

    #stats .lamp--left {
        left: 3vw !important;
    }

    #stats .lamp--right {
        right: 3vw !important;
    }
}

/* 4. Brands Marquee Ticker & Compatibility Grid */
@media (max-width: 768px) {
    .brands {
        padding: 3rem 1rem !important;
    }

    .brands__marquee-track {
        gap: 1rem !important;
        animation-duration: 22s !important;
    }

    .brand-rail__item {
        flex: 0 0 120px !important;
        min-width: 110px !important;
        min-height: 70px !important;
        padding: 0.6rem 0.8rem !important;
        border-radius: 1rem !important;
    }

    .brand-rail__logo {
        max-width: 85px !important;
        max-height: 32px !important;
    }

    .brands__compat-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
        width: 100% !important;
        max-width: 340px !important;
        margin: 1.5rem auto 0 auto !important;
    }

    .works-logo {
        padding: 0.75rem 1rem !important;
        border-radius: 0.85rem !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .works-logo__img {
        max-height: 24px !important;
    }
}

/* 5. Contact Form, ReCAPTCHA & Map inside Footer */
@media (max-width: 768px) {
    .footer {
        padding-top: 2rem !important;
        margin-top: 0 !important;
    }

    .footer__newsletter {
        padding: 1.25rem 1rem !important;
        margin-bottom: 3.5rem !important;
        width: 100% !important;
        border-radius: 1.25rem !important;
    }

    .footer__contact-side {
        padding: 0.5rem 0.25rem !important;
        margin-bottom: 2rem !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        width: 100% !important;
    }

    .footer__contact-side .section-badge--portfolio {
        margin: 0 auto 0.75rem auto !important;
        align-self: center !important;
    }

    .footer__contact-title {
        text-align: center !important;
        margin: 0 auto 0.75rem auto !important;
        font-size: 1.65rem !important;
        line-height: 1.25 !important;
        width: 100% !important;
    }

    .footer__contact-title .title-motion__part {
        display: block !important;
        text-align: center !important;
    }

    .footer__contact-side > p {
        text-align: center !important;
        margin: 0 auto 1.5rem auto !important;
        font-size: 0.88rem !important;
        line-height: 1.55 !important;
        max-width: 92% !important;
        color: #475569 !important;
    }

    .footer__contact-points {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer__contact-card {
        display: flex !important;
        align-items: center !important;
        gap: 1rem !important;
        padding: 0.85rem 1rem !important;
        border-radius: 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
        text-align: left !important;
    }

    .footer__contact-card-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        border-radius: 50% !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex-shrink: 0 !important;
    }

    .footer__contact-card-copy {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .footer__contact-card-label {
        font-size: 0.68rem !important;
        letter-spacing: 1.5px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        color: #64748b !important;
        margin-bottom: 0.2rem !important;
    }

    .footer__contact-card-value {
        font-size: 0.85rem !important;
        font-weight: 600 !important;
        color: #0f172a !important;
        word-break: break-word !important;
        line-height: 1.45 !important;
    }

    .footer__contact-card--location {
        align-items: flex-start !important;
    }

    .footer__contact-card--location .footer__contact-card-icon {
        margin-top: 0.2rem !important;
    }

    .footer__contact-form {
        padding: 1.5rem 1rem 0 1rem !important;
        border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__form-grid--contact {
        gap: 0.85rem !important;
        width: 100% !important;
    }

    .footer__input {
        width: 100% !important;
        font-size: 0.9rem !important;
        padding: 0.75rem 1rem !important;
        box-sizing: border-box !important;
    }

    /* Recaptcha container fit */
    .footer__captcha-wrap {
        width: 100% !important;
        overflow: hidden !important;
    }

    .footer__captcha-box {
        transform: scale(0.82) !important;
        transform-origin: left center !important;
        margin-bottom: 0 !important;
    }

    .footer__submit {
        width: 100% !important;
        padding: 0.85rem !important;
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        border-radius: 0.75rem !important;
    }
}

/* 6. Why Us (about.html) - Journey Ladder & Why Choose Grid */
@media (max-width: 768px) {
    .why-choose {
        padding: 6.5rem 0 3rem !important;
    }

    .why-choose__grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
        width: 100% !important;
    }

    .why-choose__card {
        padding: 1.25rem !important;
    }

    /* Timeline single-column clean stacking */
    .journey-ladder {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }

    .journey-ladder__timeline {
        position: relative !important;
        padding-left: 2rem !important;
        width: 100% !important;
    }

    .journey-ladder__axis {
        left: 0.75rem !important;
        transform: none !important;
        width: 2px !important;
    }

    .journey-ladder__step {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        width: 100% !important;
        margin-bottom: 1.5rem !important;
        position: relative !important;
    }

    .journey-ladder__step .journey-ladder__spacer {
        display: none !important;
    }

    .journey-ladder__node-shell {
        position: absolute !important;
        left: -2rem !important;
        top: 1rem !important;
        transform: none !important;
    }

    .journey-ladder__card {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        transform: none !important;
    }
}

/* 7. Projects Page (projects.html) - Video Grid & Carousel */
@media (max-width: 768px) {
    .portfolio__grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        padding: 0 1rem !important;
        margin-bottom: 3rem !important;
    }

    .portfolio__grid-card {
        padding: 0.5rem !important;
        border-radius: 1.25rem !important;
    }

    .portfolio__grid-card::after {
        width: 50px !important;
        height: 50px !important;
        background-size: 22px 22px !important;
    }

    .portfolio__video-copy {
        padding: 1.25rem 1rem 1rem !important;
    }

    .portfolio__video-title {
        font-size: 1.15rem !important;
    }

    .lightbox__dialog {
        width: 95vw !important;
        max-width: 95vw !important;
        padding: 0.5rem !important;
        border-radius: 1rem !important;
    }

    .lightbox__media-wrap {
        height: 250px !important;
    }

    .lightbox__close {
        top: -12px !important;
        right: -12px !important;
        width: 36px !important;
        height: 36px !important;
    }

    .lightbox__nav {
        width: 36px !important;
        height: 36px !important;
    }
}

/* 8. Solutions Page (services.html) - Solution Cards Grid */
@media (max-width: 768px) {
    .solutions-page__hero {
        padding: 7rem 1rem 2.5rem !important;
    }

    .solutions-page__grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .solution-card {
        border-radius: 1.25rem !important;
        overflow: hidden !important;
    }

    .solution-card__media {
        height: 200px !important;
    }

    .solution-card__content {
        padding: 1.25rem !important;
    }
}

/* 9. Extra Small Devices (iPhone SE, Galaxy A, etc. <= 390px) */
@media (max-width: 390px) {
    .navbar__pill {
        padding: 0.4rem 0.6rem !important;
    }

    .navbar__logo-img {
        height: 32px !important;
        max-width: 135px !important;
    }

    .hero__title {
        font-size: 1.85rem !important;
    }

    .hero__subtitle {
        font-size: 0.8rem !important;
    }

    #sceneDisplay,
    #hvacDisplay,
    .scene-tabs__display {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
    }
    #theaterDisplay {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 10.6 !important;
    }

    .section-title {
        font-size: 1.6rem !important;
    }
}

/* 10. Universal Responsive Enhancements & Overflow Guard across all devices */
html, body {
    overflow-x: hidden !important;
    position: relative !important;
    width: 100% !important;
    max-width: 100% !important;
    -webkit-text-size-adjust: 100% !important;
}

img, video, iframe, embed, object {
    max-width: 100% !important;
    height: auto;
}

/* Fluid Containers & Grid responsiveness */
.container,
.portfolio__container,
.section-container,
.hero__container,
.solutions-page__container,
.about-hero__container {
    width: 100% !important;
    max-width: 1280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box !important;
}

/* Portfolio video grid auto-fit layout */
.portfolio__grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)) !important;
    gap: 1.5rem !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.portfolio__grid-card {
    width: 100% !important;
    position: relative !important;
    overflow: hidden !important;
    border-radius: 1.25rem !important;
}

.portfolio__grid-media {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

/* Interactive elements tap targets and button wrapping */
button:not(.demo-tab-btn), .btn, .btn-gold, .btn-outline-gold {
    touch-action: manipulation;
    max-width: 100% !important;
    white-space: normal !important;
}

/* Smooth modal/lightbox sizing on mobile */
.lightbox__dialog {
    max-width: 92vw !important;
    max-height: 90vh !important;
    box-sizing: border-box !important;
}

.lightbox__img {
    max-width: 100% !important;
    max-height: 75vh !important;
    object-fit: contain !important;
}

/* 11. Climate Control (HVAC) Compact & Perfect Alignment on Small Viewports */
@media (max-width: 768px) {
    #demoContentHvac .curtain-panel {
        padding: 0.9rem 0.85rem !important;
        border-radius: 1.15rem !important;
        width: 100% !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Climate Control Card Header */
    #demoContentHvac .curtain-panel > div:first-child {
        margin-bottom: 0.65rem !important;
        gap: 0.6rem !important;
    }

    #demoContentHvac .curtain-panel > div:first-child > div:first-child {
        width: 34px !important;
        height: 34px !important;
    }

    #demoContentHvac .curtain-panel > div:first-child svg {
        width: 18px !important;
        height: 18px !important;
    }

    #demoContentHvac .curtain-panel > div:first-child span:first-child {
        font-size: 1.05rem !important;
    }

    #demoContentHvac .curtain-panel > div:first-child span:last-child {
        font-size: 0.65rem !important;
    }

    /* AC Power Row */
    #demoContentHvac .curtain-panel > div:nth-child(2) {
        margin-bottom: 0.65rem !important;
        align-items: center !important;
    }

    #demoContentHvac .curtain-panel > div:nth-child(2) span {
        font-size: 0.72rem !important;
    }

    #demoContentHvac .curtain-panel > div:nth-child(2) > div:last-child {
        max-width: 170px !important;
        padding: 0.2rem !important;
    }

    #btnHvacOff,
    #btnHvacOn {
        padding: 0.35rem 0.6rem !important;
        font-size: 0.72rem !important;
    }

    /* Set Temperature Label & Container */
    #demoContentHvac div[style*="Set Temperature"],
    #demoContentHvac span[style*="Set\n                    Temperature"] {
        font-size: 0.72rem !important;
    }

    #demoContentHvac div[style*="border-radius: 1.5rem; padding: 0.5rem 1rem"] {
        padding: 0.45rem 0.75rem !important;
        border-radius: 1rem !important;
        margin-bottom: 0.6rem !important;
        background: rgba(255, 255, 255, 0.9) !important;
    }

    #demoContentHvac div[style*="border-radius: 1.5rem; padding: 0.5rem 1rem"] > div {
        gap: 1.15rem !important;
    }

    #btnHvacTempDown,
    #btnHvacTempUp {
        width: 30px !important;
        height: 30px !important;
        font-size: 1.1rem !important;
    }

    #hvacSetTemp {
        font-size: 1.85rem !important;
    }

    /* HVAC Modes grid (Cool, Dry, Fan, Auto) */
    #demoContentHvac div[style*="gap: 0.5rem; margin-bottom: 1rem"] {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.25rem !important;
        margin-bottom: 0.65rem !important;
    }

    #hvacModeCool,
    #hvacModeDry,
    #hvacModeFan,
    #hvacModeAuto {
        padding: 0.35rem 0.15rem !important;
        font-size: 0.68rem !important;
        border-radius: 0.55rem !important;
        text-align: center !important;
    }

    /* Fan Speed Row */
    #demoContentHvac div[style*="Fan Speed"],
    #demoContentHvac div[style*="margin-bottom: 1rem;"] > div:first-child {
        font-size: 0.68rem !important;
        margin-bottom: 0.25rem !important;
    }

    #demoContentHvac div[style*="margin-bottom: 1rem;"] {
        margin-bottom: 0.65rem !important;
    }

    #demoContentHvac div[style*="display: flex; justify-content: space-between; gap: 0.25rem"] {
        display: grid !important;
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 0.2rem !important;
        padding: 0.15rem !important;
        border-radius: 0.75rem !important;
    }

    #hvacFanLow,
    #hvacFanMed,
    #hvacFanHigh,
    #hvacFanAuto {
        padding: 0.3rem 0.15rem !important;
        font-size: 0.68rem !important;
        border-radius: 0.6rem !important;
        text-align: center !important;
    }

    /* Swing Mode Row */
    #demoContentHvac div[style*="justify-content: space-between; align-items: center"] {
        margin-top: 0.45rem !important;
    }

    #demoContentHvac div[style*="justify-content: space-between; align-items: center"] span {
        font-size: 0.68rem !important;
    }

    #hvacSwingOff,
    #hvacSwingOn {
        padding: 0.2rem 0.55rem !important;
        font-size: 0.68rem !important;
    }

    /* Status Bar */
    #hvacStatus {
        margin-top: 0.55rem !important;
        padding: 0.45rem 0.65rem !important;
        font-size: 0.72rem !important;
        border-radius: 0.65rem !important;
    }

    /* Voice & input bar */
    #demoContentHvac div[style*="display:flex; gap:0.5rem; margin-top:0.75rem"] {
        margin-top: 0.55rem !important;
        gap: 0.35rem !important;
    }

    #hvacVoice {
        flex: 0 0 2.3rem !important;
        height: 2.3rem !important;
        font-size: 0.95rem !important;
        border-radius: 0.65rem !important;
    }

    #hvacCommand {
        padding: 0.45rem 0.65rem !important;
        font-size: 0.75rem !important;
        border-radius: 0.65rem !important;
    }

    /* Scroll to top clearance */
    .scroll-top {
        right: 0.75rem !important;
        bottom: 0.75rem !important;
        width: 2.3rem !important;
        height: 2.3rem !important;
        font-size: 0.9rem !important;
        z-index: 50 !important;
    }
}

/* 12. Home Theater Demo Compact & Perfect Alignment on Small Viewports */
@media (max-width: 768px) {
    #demoContentTheater .theater-panel {
        padding: 0.75rem 0.75rem !important;
        border-radius: 1rem !important;
        width: 100% !important;
        max-width: 330px !important;
        margin: 0 auto !important;
        box-sizing: border-box !important;
    }

    /* Home Theater Header */
    #demoContentTheater .theater-panel > div:first-child {
        margin-bottom: 0.5rem !important;
        gap: 0.5rem !important;
    }

    #demoContentTheater .theater-panel > div:first-child > div:first-child {
        width: 30px !important;
        height: 30px !important;
    }

    #demoContentTheater .theater-panel > div:first-child svg {
        width: 16px !important;
        height: 16px !important;
    }

    #demoContentTheater .theater-panel > div:first-child span:first-child {
        font-size: 0.95rem !important;
    }

    #demoContentTheater .theater-panel > div:first-child span:last-child {
        font-size: 0.62rem !important;
    }

    /* Toggle Rows: Theater Lights & Cinema Movie */
    #demoContentTheater .theater-panel > div:nth-child(2),
    #demoContentTheater .theater-panel > div:nth-child(3) {
        margin-bottom: 0.4rem !important;
        align-items: center !important;
    }

    #demoContentTheater .theater-panel > div:nth-child(2) span,
    #demoContentTheater .theater-panel > div:nth-child(3) span {
        font-size: 0.68rem !important;
    }

    #demoContentTheater .theater-panel > div:nth-child(2) > div:last-child,
    #demoContentTheater .theater-panel > div:nth-child(3) > div:last-child {
        max-width: 140px !important;
        padding: 0.15rem !important;
    }

    #btnTheaterOff, #btnTheaterOn,
    #btnMovieOff, #btnMovieOn {
        padding: 0.25rem 0.5rem !important;
        font-size: 0.68rem !important;
    }

    /* Lighting Presets Row */
    #demoContentTheater div[style*="margin-bottom: 0.95rem;"] {
        margin-bottom: 0.45rem !important;
    }

    #demoContentTheater div[style*="Lighting Presets"],
    #demoContentTheater span[style*="Lighting\n                    Presets"] {
        font-size: 0.65rem !important;
    }

    #theaterLightVal {
        font-size: 0.6rem !important;
        padding: 0.1rem 0.45rem !important;
    }

    #theaterLightPresetMovie,
    #theaterLightPresetRelax {
        padding: 0.28rem 0.35rem !important;
        font-size: 0.65rem !important;
        border-radius: 0.65rem !important;
    }

    /* Dimmer & Volume Card Containers */
    #demoContentTheater div[style*="padding: 0.75rem 0.9rem"] {
        padding: 0.45rem 0.65rem !important;
        border-radius: 0.75rem !important;
        margin-bottom: 0.45rem !important;
    }

    #demoContentTheater div[style*="padding: 0.75rem 0.9rem"] span[style*="font-size: 0.7rem"] {
        font-size: 0.65rem !important;
    }

    #theaterDimmerPercent,
    #theaterVolumePercent {
        font-size: 0.68rem !important;
    }

    #theaterLightSlider,
    #theaterVolumeSlider {
        height: 4px !important;
    }

    /* Volume Button Icons */
    #btnTheaterMute {
        padding: 0.2rem 0.4rem !important;
        font-size: 0.7rem !important;
    }

    #btnTheaterVolDown,
    #btnTheaterVolUp {
        width: 22px !important;
        height: 22px !important;
        font-size: 0.78rem !important;
    }

    /* Voice / Command Input Bar */
    #demoContentTheater div[style*="display:flex; gap:0.5rem; margin-top:0.75rem"] {
        margin-top: 0.45rem !important;
        gap: 0.3rem !important;
    }

    #theaterVoice {
        flex: 0 0 2.1rem !important;
        height: 2.1rem !important;
        font-size: 0.85rem !important;
        border-radius: 0.55rem !important;
    }

    #theaterCommand {
        padding: 0.38rem 0.55rem !important;
        font-size: 0.72rem !important;
        border-radius: 0.55rem !important;
    }
}

/* 13. scene-tabs__container Compact & Perfectly Aligned Mobile View */
@media (max-width: 768px) {
    .scene-tabs {
        padding: 3rem 0 !important;
    }

    .scene-tabs__container {
        padding: 0 0.85rem !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    .scene-tabs .section-header {
        margin-bottom: 1.5rem !important;
        text-align: center !important;
    }

    .scene-tabs .section-title {
        font-size: 1.85rem !important;
        line-height: 1.2 !important;
        margin-top: 0.5rem !important;
    }

    .scene-tabs .section-badge {
        font-size: 0.75rem !important;
        padding: 0.35rem 1.1rem !important;
    }

    /* Demo tab selector buttons pill */
    .demo-tabs {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.35rem !important;
        margin: 0 auto 1.5rem auto !important;
        max-width: 360px !important;
        width: 100% !important;
        background: rgba(255, 255, 255, 0.75) !important;
        padding: 0.25rem !important;
        border-radius: 2rem !important;
        border: 1px solid rgba(15, 23, 41, 0.08) !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
    }

    .demo-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.5rem 0.35rem !important;
        font-size: 0.78rem !important;
        font-weight: 600 !important;
        border-radius: 1.5rem !important;
        text-align: center !important;
        white-space: nowrap !important;
    }

    /* Scene display images */
    #sceneDisplay,
    #hvacDisplay,
    .scene-tabs__display {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 9 !important;
        border-radius: 1.15rem !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    }
    #theaterDisplay {
        height: auto !important;
        min-height: unset !important;
        aspect-ratio: 16 / 10.6 !important;
        border-radius: 1.15rem !important;
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12) !important;
    }

    /* Curtain Panel on mobile */
    #demoContentCurtain .curtain-panel {
        padding: 0.9rem 0.85rem !important;
        border-radius: 1.15rem !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* 14. Stats Section 3D Glass Orbs Center Alignment & Proportions */
@media (max-width: 768px) {
    #stats {
        overflow: hidden !important;
        padding-top: 4.5rem !important;
        padding-bottom: 3.5rem !important;
        position: relative !important;
    }

    #stats .stats__container {
        margin-top: 0 !important;
        padding-top: 1rem !important;
        position: relative !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
    }

    #stats .stats__badge {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        transform: none !important;
        margin: 0 auto 1.25rem auto !important;
        display: flex !important;
        width: fit-content !important;
        max-width: fit-content !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem !important;
        z-index: 10 !important;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05) !important;
        white-space: nowrap !important;
    }

    #stats .stats__badge::before,
    #stats .stats__badge::after {
        position: static !important;
        inset: auto !important;
        display: inline-block !important;
        margin: 0 !important;
    }

    #stats .stats__layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 100% !important;
        margin: 0 auto !important;
        gap: 2rem !important;
    }

    #stats .stats__header {
        margin-top: 0 !important;
        text-align: center !important;
        width: 100% !important;
    }

    #stats .stats__header .section-title {
        font-size: clamp(1.65rem, 6vw, 2.2rem) !important;
        line-height: 1.2 !important;
        text-align: center !important;
        margin: 0 auto !important;
        white-space: normal !important;
    }

    #stats .stats__orbs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: flex-end !important;
        gap: clamp(0.35rem, 2vw, 1.25rem) !important;
        width: 100% !important;
        max-width: 420px !important;
        margin: 1.5rem auto 0 auto !important;
        padding: 0 0.5rem !important;
        transform: none !important;
        box-sizing: border-box !important;
    }

    #stats .stat-orb-wrapper {
        flex: 1 1 0 !important;
        max-width: 120px !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 auto !important;
    }

    #stats .stat-orb {
        width: clamp(86px, 26vw, 114px) !important;
        height: auto !important;
        aspect-ratio: 1 / 1 !important;
        margin: 0 auto -12px auto !important;
    }

    #stats .stat-orb__content {
        padding: 6% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    #stats .stat-orb__icon {
        width: clamp(18px, 5vw, 24px) !important;
        height: clamp(18px, 5vw, 24px) !important;
        margin-bottom: 0.2rem !important;
    }

    #stats .stat-orb__label {
        font-size: clamp(0.52rem, 1.9vw, 0.68rem) !important;
        line-height: 1.15 !important;
        margin-bottom: 0.15rem !important;
        text-align: center !important;
        white-space: normal !important;
    }

    #stats .stat-card__number.teal-text {
        font-size: clamp(1rem, 3.4vw, 1.35rem) !important;
        line-height: 1 !important;
    }

    #stats .stat-pedestal {
        width: clamp(92px, 28vw, 126px) !important;
        margin: 0 auto !important;
    }

    #stats .stats__wavy-line {
        display: none !important;
    }
}

@media (max-width: 380px) {
    #stats .stats__orbs {
        gap: 0.25rem !important;
        padding: 0 0.25rem !important;
    }

    #stats .stat-orb {
        width: 82px !important;
    }

    #stats .stat-pedestal {
        width: 88px !important;
    }
}

/* 15. Scene Demo Tabs & Switcher Universal & Mobile Enhancements */
.demo-tabs {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3.5rem;
    flex-wrap: wrap;
}

.demo-tab-btn {
    padding: 0.85rem 2.5rem;
    border-radius: 2rem;
    border: 1px solid rgba(15, 23, 41, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: #0f1729;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    white-space: nowrap;
    text-align: center;
    user-select: none;
    -webkit-user-select: none;
}

.demo-tab-btn.active {
    background: linear-gradient(135deg, #3ea9c4, #2abfb0) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 8px 20px rgba(62, 169, 196, 0.35) !important;
}

@media (max-width: 900px) {
    .demo-tabs {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 0.35rem !important;
        margin: 0 auto 1.5rem auto !important;
        max-width: 380px !important;
        width: calc(100% - 1.5rem) !important;
        background: rgba(255, 255, 255, 0.85) !important;
        backdrop-filter: blur(10px) !important;
        -webkit-backdrop-filter: blur(10px) !important;
        padding: 0.3rem !important;
        border-radius: 2.5rem !important;
        border: 1px solid rgba(15, 23, 41, 0.08) !important;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
        box-sizing: border-box !important;
    }

    #tabCurtain, #tabHvac, #tabTheater, .demo-tab-btn {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        padding: 0.55rem 0.35rem !important;
        font-size: clamp(0.72rem, 2.2vw, 0.82rem) !important;
        font-weight: 600 !important;
        border-radius: 2rem !important;
        text-align: center !important;
        white-space: nowrap !important;
        letter-spacing: -0.01em !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
}

@media (max-width: 380px) {
    .demo-tabs {
        max-width: 100% !important;
        padding: 0.25rem !important;
        gap: 0.25rem !important;
    }

    #tabCurtain, #tabHvac, #tabTheater, .demo-tab-btn {
        padding: 0.5rem 0.25rem !important;
        font-size: 0.7rem !important;
    }
}

/* ==========================================================================
   16. Universal Responsive Hanging Lights / Lamps (Mobile, Foldable, Tablet)
   ========================================================================== */
#stats .lamp {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: none !important;
    z-index: 4 !important;
}

#stats .lamp__bulb {
    display: block !important;
    visibility: visible !important;
}

/* Tablet viewports (up to 1200px, including all iPad sizes) */
@media (max-width: 1200px) {
    #stats .lamp {
        --wire-h: 75px !important;
    }
    #stats .lamp--left {
        left: clamp(0.75rem, 2vw, 2.5rem) !important;
    }
    #stats .lamp--right {
        right: clamp(0.75rem, 2vw, 2.5rem) !important;
    }
    #stats .lamp__cap {
        width: 24px !important;
        height: 30px !important;
    }
    #stats .lamp__bulb {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Standard Mobile & Small Tablets (481px to 768px) */
@media (max-width: 768px) {
    #stats {
        padding-top: 5.5rem !important;
        overflow: hidden !important;
    }
    #stats .lamp {
        display: block !important;
        visibility: visible !important;
        --wire-h: 75px !important;
    }
    #stats .lamp--left {
        left: 3vw !important;
    }
    #stats .lamp--right {
        right: 3vw !important;
    }
    #stats .lamp__cap {
        width: 22px !important;
        height: 28px !important;
    }
    #stats .lamp__bulb {
        width: 54px !important;
        height: 54px !important;
    }
    #stats .stats__badge {
        position: relative !important;
        z-index: 10 !important;
        margin: 0 auto 1.5rem auto !important;
        display: flex !important;
        width: fit-content !important;
        max-width: fit-content !important;
    }
}

/* Compact Mobile Screens (381px to 480px) */
@media (max-width: 480px) {
    #stats {
        padding-top: 4.75rem !important;
    }
    #stats .lamp {
        display: block !important;
        visibility: visible !important;
        --wire-h: 60px !important;
    }
    #stats .lamp--left {
        left: 1.5vw !important;
    }
    #stats .lamp--right {
        right: 1.5vw !important;
    }
    #stats .lamp__cap {
        width: 18px !important;
        height: 24px !important;
    }
    #stats .lamp__bulb {
        width: 46px !important;
        height: 46px !important;
    }
}

/* Very Small Mobile / Foldable Outer Screens (<= 380px) */
@media (max-width: 380px) {
    #stats {
        padding-top: 4.25rem !important;
    }
    #stats .lamp {
        display: block !important;
        visibility: visible !important;
        --wire-h: 50px !important;
    }
    #stats .lamp--left {
        left: 0.75vw !important;
    }
    #stats .lamp--right {
        right: 0.75vw !important;
    }
    #stats .lamp__cap {
        width: 16px !important;
        height: 20px !important;
    }
    #stats .lamp__bulb {
        width: 40px !important;
        height: 40px !important;
    }
}

/* ==========================================================================
   17. Universal Responsive Contact Us Section (Mobile, Tablets, Small Screens)
   ========================================================================== */
.footer {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
}

.footer__contact-layout {
    width: 100% !important;
    box-sizing: border-box !important;
}

.footer__contact-side,
.footer__contact-form {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.footer__contact-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
}

.footer__contact-card-copy {
    width: 100% !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.footer__contact-card-value {
    white-space: normal !important;
    word-break: normal !important;
    overflow-wrap: break-word !important;
}

/* Tablet Layout (max-width: 1024px) - Balanced Footer Links for Realme Pad & iPads */
@media (max-width: 1024px) {
    .footer__links {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(160px, 1fr)) !important;
        justify-content: center !important;
        max-width: 680px !important;
        margin: 0 auto 2.5rem auto !important;
        padding: 0 1.75rem !important;
        column-gap: clamp(1.5rem, 5vw, 3.5rem) !important;
        row-gap: 2rem !important;
        box-sizing: border-box !important;
    }

    .footer__brand {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }

    .footer__brand-top {
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        width: 100% !important;
    }

    .footer__brand p {
        text-align: center !important;
        max-width: 480px !important;
        margin: 0.5rem auto 0 auto !important;
    }

    .footer__col--residential,
    .footer__col--commercial {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        text-align: left !important;
        padding-left: 0.5rem !important;
        box-sizing: border-box !important;
    }

    .footer__col--quick-links,
    .footer__links > .footer__col:last-child {
        grid-column: 1 / -1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        margin-top: 0.5rem !important;
        width: 100% !important;
    }

    .footer__col--quick-links h4,
    .footer__links > .footer__col:last-child h4 {
        text-align: center !important;
        display: inline-block !important;
        margin-bottom: 0.85rem !important;
    }

    .footer__col--quick-links h4::after,
    .footer__links > .footer__col:last-child h4::after {
        left: 50% !important;
        transform: translateX(-50%) !important;
        transform-origin: center !important;
    }

    .footer__col--quick-links ul,
    .footer__links > .footer__col:last-child ul {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0.6rem 1.25rem !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    .footer__col--quick-links li,
    .footer__links > .footer__col:last-child li {
        display: inline-block !important;
    }

    .footer__col--quick-links a,
    .footer__links > .footer__col:last-child a {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 0.2rem 0.4rem !important;
        font-size: 0.88rem !important;
    }

    .footer__col--quick-links a::before,
    .footer__links > .footer__col:last-child a::before {
        display: none !important;
    }
}

/* Tablet Layout (max-width: 992px) */
@media (max-width: 992px) {
    .footer__contact-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 2rem !important;
        width: 100% !important;
        max-width: 620px !important;
        margin: 0 auto !important;
    }

    .footer__newsletter {
        padding: 1.5rem !important;
        margin: 0 auto 3rem auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__contact-side,
    .footer__contact-form {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 1.5rem 1.25rem !important;
    }

    .footer__contact-points {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .footer__contact-card {
        padding: 0.85rem 1rem !important;
        gap: 0.85rem !important;
        align-items: flex-start !important;
        min-height: unset !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__contact-card-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        align-self: flex-start !important;
        margin-top: 0.25rem !important;
    }

    .footer__contact-card-copy {
        width: 100% !important;
        min-width: 0 !important;
        flex: 1 1 auto !important;
        height: auto !important;
        min-height: unset !important;
    }

    .footer__contact-card-emails-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }

    .footer__email-subbox {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.55rem 0.75rem !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
    }

    .footer__map-panel {
        width: 100% !important;
        height: 140px !important;
        box-sizing: border-box !important;
    }

    .footer__map-frame,
    .footer__map-frame iframe {
        width: 100% !important;
        height: 140px !important;
        min-height: 140px !important;
    }

    .footer__captcha-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .footer__captcha-box {
        transform: scale(0.85) !important;
        transform-origin: left center !important;
    }
}

/* Mobile & Phablet Screens (max-width: 768px) */
@media (max-width: 768px) {
    .footer__contact-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 1.5rem !important;
        width: 100% !important;
    }

    .footer__contact-side {
        padding: 0 !important;
        margin-bottom: 0.5rem !important;
        width: 100% !important;
    }

    .footer__contact-points {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.85rem !important;
        width: 100% !important;
    }

    .footer__contact-card {
        padding: 0.85rem 1rem !important;
        gap: 0.85rem !important;
        align-items: flex-start !important;
        min-height: unset !important;
        height: auto !important;
    }

    .footer__contact-card-icon {
        width: 38px !important;
        height: 38px !important;
        min-width: 38px !important;
        align-self: flex-start !important;
        margin-top: 0.25rem !important;
    }

    .footer__contact-card-emails-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.6rem !important;
        width: 100% !important;
        height: auto !important;
        min-height: unset !important;
    }

    .footer__email-subbox {
        width: 100% !important;
        box-sizing: border-box !important;
        padding: 0.55rem 0.75rem !important;
        flex: 0 0 auto !important;
        height: auto !important;
        min-height: unset !important;
        max-height: none !important;
    }

    .footer__contact-card-value {
        font-size: 0.82rem !important;
        line-height: 1.4 !important;
    }

    a.footer__contact-card-value {
        white-space: nowrap !important;
        word-break: normal !important;
    }

    .footer__contact-form {
        padding: 1.25rem 1rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__form-grid--contact {
        gap: 0.85rem !important;
        width: 100% !important;
    }

    .footer__field {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__input {
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .footer__map-panel {
        width: 100% !important;
        height: 140px !important;
        box-sizing: border-box !important;
    }

    .footer__map-frame,
    .footer__map-frame iframe {
        width: 100% !important;
        height: 140px !important;
        min-height: 140px !important;
    }

    .footer__captcha-wrap {
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }

    .footer__captcha-box {
        transform: scale(0.85) !important;
        transform-origin: left center !important;
    }
}

/* Compact Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .footer {
        padding-top: 1rem !important;
    }

    .footer__newsletter {
        padding: 1rem 0.75rem !important;
        margin: 0 auto 2.5rem auto !important;
        border-radius: 1rem !important;
    }

    .footer__contact-title {
        font-size: 1.5rem !important;
    }

    .footer__contact-card {
        padding: 0.75rem 0.85rem !important;
        gap: 0.75rem !important;
    }

    .footer__contact-card-icon {
        width: 34px !important;
        height: 34px !important;
        min-width: 34px !important;
    }

    .footer__contact-card-icon svg {
        width: 18px !important;
        height: 18px !important;
    }

    .footer__email-subbox {
        padding: 0.5rem 0.65rem !important;
    }

    .footer__contact-card-value {
        font-size: 0.78rem !important;
    }

    .footer__contact-card-label {
        font-size: 0.64rem !important;
    }

    .footer__contact-form {
        padding: 1rem 0.75rem !important;
    }

    .footer__captcha-box {
        transform: scale(0.78) !important;
        transform-origin: left center !important;
    }

    .footer__submit {
        padding: 0.75rem !important;
        font-size: 0.9rem !important;
    }
}

/* Extra Small Phones & Narrow Foldables (max-width: 360px) */
@media (max-width: 360px) {
    .footer__links {
        gap: 1.25rem 0.65rem !important;
        padding-left: 0.25rem !important;
        padding-right: 0.25rem !important;
    }

    .footer__col--residential a,
    .footer__col--commercial a,
    .footer__links > .footer__col:nth-child(2) a,
    .footer__links > .footer__col:nth-child(3) a {
        font-size: 0.74rem !important;
        line-height: 1.3 !important;
    }

    .footer__col--quick-links ul,
    .footer__links > .footer__col:last-child ul {
        gap: 0.35rem 0.75rem !important;
    }

    .footer__col--quick-links a,
    .footer__links > .footer__col:last-child a {
        font-size: 0.74rem !important;
        padding: 0.15rem 0.25rem !important;
    }
    .footer__contact-card {
        padding: 0.65rem 0.65rem !important;
        gap: 0.5rem !important;
    }

    .footer__contact-card-icon {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }

    .footer__contact-card-icon svg {
        width: 16px !important;
        height: 16px !important;
    }

    .footer__contact-card-value {
        font-size: 0.74rem !important;
    }

    .footer__captcha-box {
        transform: scale(0.70) !important;
        transform-origin: left center !important;
    }
}
