:root {
    --dark: #061527;
    --blue: #10b9f5;
    --light-blue: #eef8ff;
    --text: #102033;
    --muted: #6d7885;
    --white: #ffffff;
}
  .restext{
    margin-bottom: 40px;
  }
  .restech{
    font-size: 40px;
  }
/* =====================================================
   RESIDENTIAL HERO — DESKTOP
===================================================== */

.res-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 690px;
    overflow: hidden;
    color: #071b33;

    background-color: #f7fcff;

    background-image:
        linear-gradient(
            90deg,
            rgba(247,252,255,.92) 0%,
            rgba(247,252,255,.84) 30%,
            rgba(247,252,255,.18) 54%,
            rgba(247,252,255,0) 74%
        ),
        url('/assets/img/waterall-machine10.png');

    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
}

.res-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;

    background:
        radial-gradient(
            circle at 17% 38%,
            rgba(255,255,255,.55),
            transparent 38%
        );
}

.res-hero .container {
    position: relative;
    z-index: 2;
}

.res-hero-content,
.res-hero-text {
    min-width: 0;
}

.res-hero-text {
    width: min(700px, 100%);
    max-width: 700px;
}

.res-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin-bottom: 20px;

    color: #0788cb;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.res-hero-eyebrow i {
    font-size: 14px;
}

.res-title {
    width: 100%;
    max-width: 700px;
    margin: 0;

    color: #071b33;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(52px, 4.2vw, 65px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -2px;
}

.res-title span {
    display: block;
    margin-top: 8px;
    color: #1186d9;
}

.res-hero p {
    width: 100%;
    max-width: 580px;

    margin: 44px 0 0;

    color: #31495f;

    font-size: 17px;
    line-height: 1.78;
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;

    gap: 13px;
    margin-top: 32px;
}

.btn-main,
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    min-height: 53px;
    padding: 0 24px;

    border-radius: 10px;

    font-size: 14px;
    font-weight: 750;
    text-decoration: none;

    transition: .25s ease;
}

.btn-main {
    min-height: 58px;
    padding: 0 30px;

    color: #fff;

    background:
        linear-gradient(
            135deg,
            #062043,
            #0b4f8c
        );

    border-radius: 12px;

    box-shadow:
        0 14px 32px rgba(6,32,67,.22);

    font-size: 15px;
    font-weight: 700;
}

.btn-main:hover {
    color: #fff;

    transform: translateY(-3px);

    box-shadow:
        0 20px 42px rgba(6,32,67,.30);
}

.btn-outline {
    color: #071b33;

    background: rgba(255,255,255,.88);

    border:
        1px solid rgba(20,59,91,.20);

    backdrop-filter: blur(7px);
}

.btn-outline:hover {
    color: #0788cb;
    background: #fff;
    transform: translateY(-3px);
}


/* Mobile image is hidden on desktop */
.res-hero-mobile-visual {
    display: none;
}


.res-hero-tablet-visual,
.res-hero-mobile-visual {
    display: none;
}

/* =====================================================
   TABLET
===================================================== */

/* =====================================================
   TABLET — IMAGE TOP / CONTENT BELOW
   Applies to landscape tablets and small laptops
===================================================== */

@media (min-width: 768px) and (max-width: 1199.98px) {

    .res-hero {
        display: block;
        min-height: 0;
        padding: 0;
        overflow: hidden;
        background: #ffffff !important;
    }

    .res-hero::before {
        display: none;
    }

    /* Desktop horizontal image for tablet */
    .res-hero-tablet-visual {
        display: block;
        width: 100%;
        height: 360px;
        overflow: hidden;
        background: #eef7fc;
    }

    .res-hero-tablet-visual img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* Keeps family and device visible */
        object-position: center center;
    }

    .res-hero-mobile-visual {
        display: none;
    }

    .res-hero .container {
        width: 100%;
        max-width: none;
        padding: 38px 42px 44px;
        background: #ffffff;
    }

    .res-hero-content,
    .res-hero-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .res-hero-eyebrow {
        margin-bottom: 15px;
        font-size: 11px;
        letter-spacing: 1.45px;
    }

    .res-title {
        width: 100%;
        max-width: 760px;
        font-size: clamp(44px, 5.2vw, 58px);
        line-height: 1.04;
        letter-spacing: -1.4px;
    }

    .res-title span {
        display: block;
        margin-top: 6px;
    }

    .res-hero p {
        width: 100%;
        max-width: 720px;
        margin-top: 24px;
        color: #31495f;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-buttons {
        display: flex;
        flex-wrap: nowrap;
        gap: 13px;
        width: 100%;
        max-width: 520px;
        margin-top: 27px;
    }

    .hero-buttons .btn-main,
    .hero-buttons .btn-outline {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        min-height: 54px;
        padding: 0 18px;
        text-align: center;
    }
}


/* =====================================================
   MOBILE — IMAGE TOP / CONTENT BELOW
===================================================== */

@media (max-width: 767px) {

    .res-hero {
        display: block;
        min-height: 0;

        padding: 0;

        overflow: hidden;

        background: #ffffff !important;
    }

    .res-hero::before {
        display: none;
    }

    .res-hero-mobile-visual {
        display: block;

        width: 100%;
        height: 320px;

        overflow: hidden;

        background: #eef7fc;
    }

    .res-hero-mobile-visual img {
        display: block;

        width: 100%;
        height: 100%;

        object-fit: cover;
        object-position: center 68%;
    }

    .res-hero .container {
        width: 100%;
        max-width: none;

        padding:
            26px
            17px
            38px;

        background: #ffffff;
    }

    .res-hero-content,
    .res-hero-text {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .res-hero-eyebrow {
        margin-bottom: 14px;

        font-size: 10px;
        letter-spacing: 1.35px;
    }

    .res-title {
        width: 100%;
        max-width: 100%;

        font-size:
            clamp(
                36px,
                9.7vw,
                46px
            );

        line-height: 1.04;
        letter-spacing: -1px;
    }

    .res-title span {
        margin-top: 5px;
    }

    .res-hero p {
        width: 100%;
        max-width: 100%;

        margin-top: 22px;

        color: #31495f;

        font-size: 14.5px;
        line-height: 1.62;
    }

    .hero-buttons {
        display: grid;
        grid-template-columns: 1fr;

        gap: 11px;

        width: 100%;

        margin-top: 25px;
    }

    .hero-buttons .btn-main,
    .hero-buttons .btn-outline {
        width: 100%;
        min-width: 0;
        min-height: 52px;

        padding: 0 14px;

        font-size: 13.5px;
        text-align: center;
    }
}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .res-hero-mobile-visual {
        height: 260px;
    }

    .res-hero-mobile-visual img {
       object-position: center 70%;
    }

    .res-hero .container {
        padding:
            30px
            14px
            34px;
    }

    .res-title {
        font-size:
            clamp(
                34px,
                10vw,
                42px
            );
    }

    .res-hero p {
        margin-top: 20px;
        font-size: 14px;
    }

    .hero-buttons .btn-main,
    .hero-buttons .btn-outline {
        min-height: 50px;
    }
}

/* =====================================================
   RESIDENTIAL PRODUCT CARDS — SCOPED
===================================================== */

.products-section .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.products-section .product-card {
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 25px;
    padding: 35px;

    background: #ffffff;
    border: 1px solid #dce8f0;
    border-radius: 14px;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.products-section .product-card.highlight {
    background: #f7fcff;
    border-color: var(--blue);
}

.products-section .product-card img {
    width: 100%;
    align-self: center;
}

.products-section .product-info h3 {
    color: var(--blue);
    font-size: 36px;
    font-weight: 900;
}

.products-section .product-info ul {
    padding-left: 18px;
    color: var(--text);
    line-height: 1.9;
}

.products-section .btn-product {
    margin-top: 15px;
    color: var(--blue);
    border: 1px solid var(--blue);
}

.products-section .btn-product.filled {
    color: #ffffff;
    background: var(--blue);
}

@media (max-width: 992px) {
    .products-section .product-grid {
        grid-template-columns: 1fr;
    }

    .products-section .product-card {
        grid-template-columns: 1fr;
    }
}

/* .product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
}

.product-card {
    background: white;
    border: 1px solid #dce8f0;
    border-radius: 14px;
    padding: 35px;
    display: grid;
    grid-template-columns: 45% 55%;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,.05);
}

.product-card.highlight {
    background: #f7fcff;
    border-color: var(--blue);
}

.product-card img {
    width: 100%;
    align-self: center;
}

.product-info h3 {
    color: var(--blue);
    font-size: 36px;
    font-weight: 900;
}

.product-info ul {
    padding-left: 18px;
    line-height: 1.9;
    color: var(--text);
}

.btn-product {
    border: 1px solid var(--blue);
    color: var(--blue);
    margin-top: 15px;
}

.btn-product.filled {
    background: var(--blue);
    color: white;
} */



/* =====================================================
   TECHNOLOGY SECTION — REFINED
===================================================== */

.technology-section {
    padding: 58px 0;
    background: var(--dark);
    color: #ffffff;
}

.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1.05fr 1fr;
    gap: 34px;
    align-items: center;
}

.technology-section .section-label {
    display: block;
    margin-bottom: 10px;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.technology-section h2 {
    margin: 0 0 18px;
    color: #10b9f5;
    font-size: clamp(34px, 3vw, 46px);
    line-height: 1.12;
    font-weight: 800;
}

.technology-section p {
    max-width: 470px;
    margin: 0 0 26px;
    color: rgba(255,255,255,.82);
    font-size: 16px;
    line-height: 1.65;
}

.tech-image {
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-image img {
    width: 100%;
    max-width: 390px;
    max-height: 440px;
    object-fit: contain;
    border-radius: 0;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.tech-list h4 {
    margin: 0 0 6px;
    color: var(--blue);
    font-size: 20px;
    line-height: 1.25;
    font-weight: 800;
}

.tech-list p {
    margin: 0;
    color: rgba(255,255,255,.84);
    font-size: 15px;
    line-height: 1.5;
}

.technology-section .btn-main {
    min-height: 54px;
    padding: 0 24px;
}

.design-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 50px;
    align-items: center;
}

.design-grid img {
    width: 100%;
    border-radius: 14px;
}

.design-grid p,
.design-grid li {
    color: var(--muted);
    line-height: 1.8;
}

.process-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
}

.process-grid div {
    padding: 30px;
    background: white;
    border: 1px solid #e0edf5;
    border-radius: 12px;
}

.process-grid strong {
    background: var(--blue);
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
}

.cta-section {
    background:
        linear-gradient(90deg, rgba(6,21,39,.95), rgba(6,21,39,.85)),
        url('/images/water-bg.jpg') center/cover no-repeat;
    padding: 60px 0;
    color: white;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cta-content h2 {
    max-width: 620px;
    font-weight: 800;
}

@media (max-width: 992px) {
    .feature-grid,
    .product-grid,
    .tech-grid,
    .design-grid,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        grid-template-columns: 1fr;
    }

    .res-hero h1 {
        font-size: 38px;
    }

    .cta-content {
        flex-direction: column;
        gap: 25px;
        text-align: center;
    }
}
/* =========================================
   INSTALLATION SECTION
========================================= */

.installation-section {
    padding: 75px 0;
    background: #ffffff;
}

.installation-layout {
    display: grid;
    grid-template-columns: 31% 1fr;
    gap: 55px;
    align-items: center;
}

.installation-image {
    height: 360px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(6, 21, 39, 0.13);
}

.installation-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.installation-heading {
    text-align: center;
    margin-bottom: 44px;
}

.installation-heading .section-label {
    display: block;
    color: #10b9f5;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.installation-heading h2 {
    color: #102033;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.15;
    font-weight: 800;
    margin: 0 0 11px;
}

.installation-heading p {
    max-width: 680px;
    margin: 0 auto;
    color: #6d7885;
    font-size: 15px;
    line-height: 1.75;
}

.installation-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    position: relative;
    gap: 20px;
}

/* Horizontal connecting line */
.installation-steps::before {
    content: "";
    position: absolute;
    top: 37px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: repeating-linear-gradient(
        to right,
        #10b9f5 0,
        #10b9f5 6px,
        transparent 6px,
        transparent 12px
    );
    opacity: 0.75;
    z-index: 0;
}

.installation-step {
    position: relative;
    text-align: center;
    z-index: 1;
}

.step-icon {
    position: relative;
    width: 74px;
    height: 74px;
    margin: 0 auto 15px;
    border: 2px solid #10b9f5;
    border-radius: 50%;
    background: #ffffff;
    color: #0a4e83;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 27px;
}

.step-number {
    position: absolute;
    top: 63px;
    left: 50%;
    transform: translateX(-50%);
    width: 21px;
    height: 21px;
    border-radius: 50%;
    background: #10b9f5;
    color: #ffffff;
    font-size: 11px;
    line-height: 21px;
    font-weight: 800;
}

.installation-step h3 {
    margin: 22px 0 8px;
    color: #102033;
    font-size: 16px;
    line-height: 1.35;
    font-weight: 800;
}

.installation-step p {
    margin: 0 auto;
    max-width: 185px;
    color: #6d7885;
    font-size: 13px;
    line-height: 1.55;
}




/* =========================================
   RESIDENTIAL CTA — FINAL VERSION
========================================= */

.residential-cta {
    position: relative;
    width: 100%;
    overflow: hidden;
    color: #ffffff;
    background: linear-gradient(
        100deg,
        #03101f 0%,
        #061a31 58%,
        #082541 100%
    );
        border-top: 1px solid rgba(255,255,255,.08);
}

.residential-cta .residential-cta-grid {
    display: grid;
    grid-template-columns: 32% 42% 26%;
    width: 100%;
    min-height: 320px;
    margin: 0;
    padding: 0;
    gap: 0;
    align-items: stretch;
}


/* LEFT IMAGE */

.residential-cta .cta-water-image {
    position: relative;
    width: 100%;
    min-height: 320px;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.residential-cta .cta-water-image img {
    position: absolute;
    inset: 0;

    display: block;
    width: 100%;
    height: 100%;

    margin: 0;
    padding: 0;

    object-fit: cover;
    object-position: left center;

    opacity: 1;
    transform: none;

    -webkit-mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 72%,
        rgba(0, 0, 0, 0.8) 86%,
        transparent 100%
    );

    mask-image: linear-gradient(
        to right,
        #000 0%,
        #000 72%,
        rgba(0, 0, 0, 0.8) 86%,
        transparent 100%
    );
}


/* MIDDLE MESSAGE */

.residential-cta .cta-message {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    min-width: 0;
    padding: 42px 45px;
}

.residential-cta .cta-message > span {
    display: block;
    margin: 0 0 10px;

    color: #10b9f5;

    font-size: 12px;
    font-weight: 800;
    line-height: 1.4;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.residential-cta .cta-message h2 {
    max-width: 540px;
    margin: 0 0 26px;

    color: #ffffff;

    font-size: clamp(28px, 2.6vw, 40px);
    font-weight: 800;
    line-height: 1.2;
}


/* BUTTON */

.residential-cta .cta-message .cta-primary-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    align-self: flex-start !important;

    gap: 12px !important;

    width: auto !important;
    min-width: 220px !important;
    max-width: max-content !important;

    margin: 0 !important;
    padding: 15px 25px !important;

    border: 0 !important;
    border-radius: 7px !important;

    background: linear-gradient(
        135deg,
        #14c9ef 0%,
        #009bd7 100%
    ) !important;

    color: #ffffff !important;
    text-decoration: none !important;

    font-size: 14px !important;
    font-weight: 800 !important;
    line-height: 1 !important;

    box-shadow: 0 10px 28px rgba(16, 185, 245, 0.28) !important;

    cursor: pointer;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.residential-cta .cta-message .cta-primary-button span {
    color: #ffffff !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    margin: 0 !important;
}

.residential-cta .cta-message .cta-primary-button i {
    color: #ffffff !important;
    font-size: 14px !important;
}

.residential-cta .cta-message .cta-primary-button:hover {
    color: #ffffff !important;
    text-decoration: none !important;

    background: linear-gradient(
        135deg,
        #20d2f4 0%,
        #008fc8 100%
    ) !important;

    transform: translateY(-2px);

    box-shadow: 0 14px 34px rgba(16, 185, 245, 0.38) !important;
}


/* RIGHT BENEFITS */

.residential-cta .cta-benefits {
    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 25px;

    min-width: 0;
    padding: 42px 30px 42px 10px;
}

.residential-cta .cta-benefit {
    display: flex;
    align-items: center;
    gap: 16px;
}

.residential-cta .cta-benefit > i {
    flex: 0 0 42px;

    width: 42px;

    color: #d5ae3d !important;

    font-size: 29px;
    line-height: 1;
    text-align: center;
}

.residential-cta .cta-benefit div {
    display: flex;
    flex-direction: column;

    min-width: 0;
    line-height: 1.35;
}

.residential-cta .cta-benefit strong {
    display: block;

    color: #d5ae3d !important;

    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
}

.residential-cta .cta-benefit span {
    display: block;
    margin-top: 2px;

    color: rgba(255, 255, 255, 0.84) !important;

    font-size: 13px;
    line-height: 1.35;
}


/* TABLET */

@media (max-width: 991px) {

    .residential-cta .residential-cta-grid {
        grid-template-columns: 40% 60%;
        min-height: auto;
    }

    .residential-cta .cta-water-image {
        min-height: 360px;
    }

    .residential-cta .cta-message {
        padding: 40px 32px;
    }

    .residential-cta .cta-benefits {
        grid-column: 1 / -1;

        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;

        gap: 25px 40px;
        padding: 28px 30px 38px;
    }

    .residential-cta .cta-benefit {
        min-width: 190px;
    }
}


/* MOBILE */

@media (max-width: 767px) {

    .residential-cta .residential-cta-grid {
        display: block;
    }

    .residential-cta .cta-water-image {
        width: 100%;
        min-height: 260px;
    }

    .residential-cta .cta-water-image img {
        position: absolute;
        width: 100%;
        height: 100%;

        object-position: 15% center;

        -webkit-mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 75%,
            transparent 100%
        );

        mask-image: linear-gradient(
            to bottom,
            #000 0%,
            #000 75%,
            transparent 100%
        );
    }

    .residential-cta .cta-message {
        align-items: center;

        padding: 20px 24px 35px;
        text-align: center;
    }

    .residential-cta .cta-message .cta-primary-button {
        align-self: center !important;
        min-width: 210px !important;
    }

    .residential-cta .cta-benefits {
        align-items: flex-start;
        flex-direction: column;

        width: fit-content;
        margin: 0 auto;
        padding: 0 24px 40px;
    }
}




























/* =====================================================
   WATERALL SMART INTELLIGENCE SECTION
===================================================== */

.smart-section {
    padding: 52px 0 38px;
    background: #f7fbff;
}

.smart-header {
    text-align: center;
    margin-bottom: 30px;
}

.smart-header > span {
    display: block;
    margin-bottom: 6px;

    color: #00a9e8;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.smart-header h2 {
    margin: 7px 0 12px;

    color: #12233f;
    font-size: clamp(34px, 3.5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
}

.smart-header h2 span {
    color: #9a7442;
}

.smart-header p {
    max-width: 760px;
    margin: 0 auto;

    color: #5f6772;
    font-size: 15px;
    line-height: 1.55;
}

.smart-wrapper {
    display: grid;
    grid-template-columns:
        minmax(255px, 290px)
        minmax(380px, 510px)
        minmax(255px, 290px);

    justify-content: center;
    align-items: center;

    gap: 22px;
}

.smart-column {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.smart-card {
    display: flex;
    align-items: center;

    min-height: 112px;

    padding: 16px 17px;
    gap: 14px;

    border: 1px solid rgba(18, 95, 145, 0.06);
    border-radius: 17px;

    background: #ffffff;

    box-shadow: 0 12px 30px rgba(14, 49, 82, 0.07);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.smart-card:hover {
    transform: translateY(-5px);

    box-shadow: 0 18px 38px rgba(0, 160, 255, 0.14);
}

.smart-card i {
    display: flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 49px;

    width: 49px;
    height: 49px;

    border-radius: 50%;

    background: #eaf7ff;
    color: #138dcc;

    font-size: 23px;
}

.smart-card h4 {
    margin: 0 0 5px;

    color: #172235;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
}

.smart-card p {
    margin: 0;

    color: #666f7b;
    font-size: 12.5px;
    line-height: 1.45;
}

.smart-center {
    display: flex;
    align-items: center;
    justify-content: center;

    min-width: 0;
}

.smart-center img {
    display: block;

    width: 100%;
    max-width: 510px;
    height: 465px;

    object-fit: cover;
    object-position: center;

    border-radius: 2px;
}


/* =====================================================
   MEDIUM DESKTOP
===================================================== */

@media (max-width: 1200px) {
    .smart-section {
        padding: 45px 20px 35px;
    }

    .smart-header {
        margin-bottom: 25px;
    }

    .smart-wrapper {
        grid-template-columns:
            minmax(225px, 260px)
            minmax(320px, 430px)
            minmax(225px, 260px);

        gap: 16px;
    }

    .smart-column {
        gap: 13px;
    }

    .smart-card {
        min-height: 102px;
        padding: 14px;
        gap: 12px;
    }

    .smart-card i {
        flex-basis: 44px;

        width: 44px;
        height: 44px;

        font-size: 21px;
    }

    .smart-card h4 {
        font-size: 15px;
    }

    .smart-card p {
        font-size: 11.5px;
    }

    .smart-center img {
        max-width: 430px;
        height: 420px;
    }
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {
    .smart-section {
        padding: 44px 22px 38px;
    }

    .smart-wrapper {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 16px;
    }

    .smart-center {
        grid-column: 1 / -1;
        grid-row: 1;

        margin-bottom: 4px;
    }

    .smart-center img {
        width: 100%;
        max-width: 520px;
        height: 430px;
    }

    .smart-column {
        width: 100%;
    }

    .smart-card {
        min-height: 108px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {
    .smart-section {
        padding: 38px 15px 34px;
    }

    .smart-header {
        margin-bottom: 22px;
    }

    .smart-header h2 {
        font-size: clamp(30px, 9vw, 38px);
    }

    .smart-header p {
        font-size: 14px;
    }

    .smart-wrapper {
        display: flex;
        flex-direction: column;
        gap: 13px;
    }

    .smart-center {
        order: 1;
        width: 100%;
        margin: 0 0 5px;
    }

    .smart-center img {
        width: 100%;
        max-width: 500px;
        height: auto;
        aspect-ratio: 1 / 1;

        object-fit: cover;
    }

    .smart-column {
        width: 100%;
    }

    .smart-column:first-of-type {
        order: 2;
    }

    .smart-column:last-of-type {
        order: 3;
    }

    .smart-card {
        min-height: 100px;
        padding: 14px 15px;
    }

    .smart-card h4 {
        font-size: 16px;
    }

    .smart-card p {
        font-size: 12.5px;
    }
}










/* =====================================================
   RESIDENTIAL PAGE — SECTION SPACING ONLY
   No changes to text, images, cards, grids or heights
===================================================== */

/* Remove accidental external margins */
.res-hero,
.smart-section,
.products-section,
.technology-section,
.design-section,
.installation-section,
.residential-cta {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}


/* Spacing between Hero and Smart section */
.res-hero + .smart-section {
    margin-top: 0 !important;
}


/* Smart section to Products section */
.smart-section {
    padding-bottom: 48px;
}

.products-section {
    padding-top: 48px;
}


/* Products section to Technology section */
.products-section {
    padding-bottom: 64px;
}

.technology-section {
    margin-top: 0 !important;
}


/* Technology section to Design section */
.technology-section {
    margin-bottom: 0 !important;
}

.design-section {
    padding-top: 64px;
    padding-bottom: 64px;
}


/* Design section to Installation section */
.installation-section {
    padding-top: 64px;
    padding-bottom: 64px;
}


/* Installation section to CTA */
.installation-section + .residential-cta {
    margin-top: 0 !important;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) {
    .smart-section {
        padding-bottom: 42px;
    }

    .products-section {
        padding-top: 42px;
        padding-bottom: 52px;
    }

    .design-section,
    .installation-section {
        padding-top: 52px;
        padding-bottom: 52px;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {
    .smart-section {
        padding-bottom: 36px;
    }

    .products-section {
        padding-top: 36px;
        padding-bottom: 44px;
    }

    .design-section,
    .installation-section {
        padding-top: 44px;
        padding-bottom: 44px;
    }
}

/* =====================================================
   RESIDENTIAL PAGE — GLOBAL SAFETY
===================================================== */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

main {
    min-width: 0;
    overflow: visible;
    transform: none;
}

.res-hero,
.smart-section,
.products-section,
.technology-section,
.design-section,
.installation-section,
.residential-cta {
    max-width: 100%;
}

img {
    max-width: 100%;
}











/* =====================================================
   INSTALLATION SECTION — RESPONSIVE FIX
===================================================== */

/* Tablet */
@media (max-width: 1199.98px) {

    .installation-section {
        padding: 60px 0;
    }

    .installation-layout {
        grid-template-columns: 1fr;
        gap: 38px;
    }

    .installation-image {
        width: 100%;
        height: 400px;
        max-width: 820px;
        margin: 0 auto;
    }

    .installation-content {
        width: 100%;
        min-width: 0;
    }

    .installation-heading {
        max-width: 780px;
        margin: 0 auto 38px;
        padding: 0 20px;
    }

    .installation-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 22px;
        max-width: 850px;
        margin: 0 auto;
    }

    /* Remove desktop horizontal line */
    .installation-steps::before {
        display: none;
    }

    .installation-step {
        padding: 22px 18px;
        background: #ffffff;
        border: 1px solid #e1edf5;
        border-radius: 16px;
        box-shadow: 0 12px 30px rgba(6, 21, 39, 0.06);
    }

    .installation-step h3 {
        margin-top: 24px;
        font-size: 17px;
    }

    .installation-step p {
        max-width: 260px;
        font-size: 14px;
        line-height: 1.6;
    }
}


/* Mobile */
@media (max-width: 767px) {

    .installation-section {
        padding: 44px 0;
    }

    .installation-section .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .installation-layout {
        display: flex;
        flex-direction: column;
        gap: 30px;
    }

    .installation-image {
        order: 1;
        width: 100%;
        height: 290px;
        max-width: none;
        border-radius: 14px;
    }

    .installation-image img {
        object-fit: cover;
        object-position: center;
    }

    .installation-content {
        order: 2;
        width: 100%;
    }

    .installation-heading {
        margin-bottom: 28px;
        padding: 0;
        text-align: center;
    }

    .installation-heading .section-label {
        max-width: 300px;
        margin-left: auto;
        margin-right: auto;
        font-size: 11px;
        line-height: 1.5;
    }

    .installation-heading h2 {
        font-size: 34px;
        line-height: 1.12;
    }

    .installation-heading p {
        max-width: 360px;
        font-size: 14px;
        line-height: 1.65;
    }

    .installation-steps {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
        width: 100%;
        max-width: 100%;
    }

    .installation-step {
        display: grid;
        grid-template-columns: 58px 1fr;
        grid-template-areas:
            "icon title"
            "icon text";
        column-gap: 15px;
        row-gap: 4px;

        min-height: 0;
        padding: 18px;
        text-align: left;
    }

    .step-icon {
        grid-area: icon;

        width: 58px;
        height: 58px;
        margin: 0;

        font-size: 22px;
    }

    .step-number {
        top: 47px;
        left: 47px;
        width: 20px;
        height: 20px;

        font-size: 10px;
        line-height: 20px;
        transform: none;
    }

    .installation-step h3 {
        grid-area: title;

        margin: 2px 0 3px;
        font-size: 16px;
        line-height: 1.3;
        text-align: left;
    }

    .installation-step p {
        grid-area: text;

        max-width: none;
        margin: 0;

        font-size: 13.5px;
        line-height: 1.55;
        text-align: left;
    }
}


/* Small phones */
@media (max-width: 480px) {

    .installation-image {
        height: 250px;
    }

    .installation-heading h2 {
        font-size: 31px;
    }

    .installation-step {
        grid-template-columns: 52px 1fr;
        column-gap: 13px;
        padding: 16px 14px;
    }

    .step-icon {
        width: 52px;
        height: 52px;
        font-size: 20px;
    }

    .step-number {
        top: 43px;
        left: 42px;
    }

    .installation-step h3 {
        font-size: 15px;
    }

    .installation-step p {
        font-size: 13px;
    }
}



@media (max-width: 767px) {
    .products-section .product-card {
        gap: 18px;
        padding: 22px 18px;
    }

    .products-section .product-card img {
        width: 100%;
        max-height: 300px;
        object-fit: contain;
    }

    .products-section .product-info h3 {
        font-size: 30px;
    }
}


@media (max-width: 767px) {
    .design-grid {
        gap: 28px;
    }

    .design-grid img {
        width: 100%;
        height: auto;
    }
}


@media (max-width: 767px) {
    .technology-section {
        padding: 44px 0;
    }

    .tech-grid {
        gap: 28px;
    }

    .tech-image img {
        width: 100%;
        height: auto;
    }

    .tech-list h4:first-child {
        margin-top: 0;
    }
}


@media (max-width: 1199.98px) {

    .technology-section {
        padding: 52px 0;
    }

    .tech-grid {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .tech-image {
        grid-row: 1 / span 2;
        grid-column: 2;
    }

    .tech-list {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 24px 30px;
    }

    .tech-image img {
        max-width: 340px;
        max-height: 380px;
    }
}

@media (max-width: 767px) {

    .technology-section {
        padding: 44px 0;
    }

    .technology-section .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .tech-grid {
        display: flex;
        flex-direction: column;
        gap: 28px;
    }

    .tech-image {
        order: 1;
        width: 100%;
    }

    .tech-image img {
        width: 100%;
        max-width: 290px;
        max-height: 330px;
    }

    .tech-grid > div:first-child {
        order: 2;
        text-align: center;
    }

    .tech-list {
        order: 3;
        display: grid;
        grid-template-columns: 1fr;
        width: 100%;
        gap: 20px;
    }

    .technology-section h2 {
        font-size: 32px;
    }

    .technology-section p {
        max-width: 100%;
        font-size: 14px;
    }

    .tech-list h4 {
        font-size: 18px;
    }

    .tech-list p {
        font-size: 14px;
    }
}