/* =========================================================
   SCORPION SOLAR SYSTEM
   RESIDENTIAL SOLAR PAGE
   Premium Responsive Styles
========================================================= */

:root {
    --res-charcoal: #131418;
    --res-orange: #E28B1A;
    --res-gold: #F3A928;
    --res-blue: #16495D;
    --res-cream: #F8F7F2;
    --res-white: #FFFFFF;
    --res-text: #17191C;
    --res-muted: #62676B;
    --res-border: rgba(19, 20, 24, 0.10);
    --res-soft: #F1F2EE;
    --res-shadow: 0 20px 55px rgba(19, 20, 24, 0.09);
    --res-radius: 22px;
}


/* =========================================================
   PAGE BASE
========================================================= */

.residential-page {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    background: var(--res-white);
    color: var(--res-text);
}

.residential-page img {
    display: block;
    max-width: 100%;
}

.residential-page a {
    text-decoration: none;
}

.residential-page h1,
.residential-page h2,
.residential-page h3,
.residential-page p {
    margin-top: 0;
}

.residential-page h1,
.residential-page h2,
.residential-page h3 {
    color: var(--res-charcoal);
}

.residential-page p {
    color: var(--res-muted);
    line-height: 1.75;
}

.residential-page .section-padding {
    padding-top: 105px;
    padding-bottom: 105px;
}

.residential-page .section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 16px;
    color: var(--res-orange);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.residential-page .section-heading-center {
    max-width: 760px;
    margin: 0 auto 52px;
    text-align: center;
}

.residential-page .section-heading-center h2 {
    margin-bottom: 17px;
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.residential-page .section-heading-center p {
    max-width: 680px;
    margin: 0 auto;
    font-size: 16px;
}


/* =========================================================
   HERO
========================================================= */

.residential-hero {
    position: relative;
    min-height: 690px;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: var(--res-charcoal);
    overflow: hidden;
}

.residential-hero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        linear-gradient(
            90deg,
            rgba(19, 20, 24, 0.98) 0%,
            rgba(19, 20, 24, 0.91) 42%,
            rgba(19, 20, 24, 0.45) 70%,
            rgba(19, 20, 24, 0.20) 100%
        );
}

.residential-hero-bg::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    right: -170px;
    top: -190px;
    border-radius: 50%;
    background: rgba(243, 169, 40, 0.11);
    filter: blur(10px);
}

.residential-hero-container {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.03fr) minmax(420px, 0.97fr);
    align-items: center;
    gap: 70px;
    padding-top: 90px;
    padding-bottom: 90px;
}

.residential-hero-content {
    max-width: 670px;
}

.residential-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 9px 14px;
    border: 1px solid rgba(243, 169, 40, 0.35);
    border-radius: 999px;
    background: rgba(243, 169, 40, 0.08);
    color: #F3A928;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.residential-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--res-gold);
    box-shadow: 0 0 0 5px rgba(243, 169, 40, 0.12);
}

.residential-hero h1 {
    margin-bottom: 24px;
    color: var(--res-white);
    font-size: clamp(46px, 5.2vw, 76px);
    font-weight: 800;
    line-height: 0.99;
    letter-spacing: -0.045em;
}

.residential-hero-description {
    max-width: 610px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.74) !important;
    font-size: 17px;
    line-height: 1.8;
}

.residential-hero-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 13px;
    margin-bottom: 31px;
}

.residential-page .btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background-color 0.25s ease,
        border-color 0.25s ease;
}

.residential-page .btn:hover {
    transform: translateY(-2px);
}

.residential-page .btn-primary {
    border: 1px solid var(--res-orange);
    background: var(--res-orange);
    color: var(--res-white);
    box-shadow: 0 10px 28px rgba(226, 139, 26, 0.22);
}

.residential-page .btn-primary:hover {
    background: #d27e12;
    border-color: #d27e12;
    color: var(--res-white);
}

.residential-page .btn-outline {
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: var(--res-white);
}

.residential-page .btn-outline:hover {
    border-color: rgba(243, 169, 40, 0.60);
    background: rgba(243, 169, 40, 0.10);
    color: var(--res-white);
}

.residential-hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
}

.residential-hero-trust span {
    position: relative;
    padding-left: 17px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12px;
    font-weight: 600;
}

.residential-hero-trust span::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--res-gold);
    font-weight: 800;
}

.residential-hero-visual {
    position: relative;
    min-width: 0;
}

.residential-hero-image {
    position: relative;
    min-height: 500px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 28px;
    background: #22252A;
    box-shadow: 0 28px 75px rgba(0, 0, 0, 0.28);
}

.residential-hero-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(19, 20, 24, 0.02) 35%,
            rgba(19, 20, 24, 0.32) 100%
        );
    pointer-events: none;
}

.residential-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
}

.residential-hero-badge {
    position: absolute;
    left: -28px;
    bottom: 32px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    min-width: 185px;
    padding: 17px 20px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 15px;
    background: rgba(19, 20, 24, 0.90);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

.residential-hero-badge strong {
    margin-bottom: 4px;
    color: var(--res-gold);
    font-size: 20px;
    font-weight: 800;
}

.residential-hero-badge span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 11px;
    line-height: 1.4;
}


/* =========================================================
   INTRO
========================================================= */

.residential-intro {
    background: var(--res-white);
}

.residential-intro-grid {
    display: grid;
    grid-template-columns: minmax(380px, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 85px;
}

.residential-intro-image {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    border-radius: 25px;
    background: var(--res-soft);
    box-shadow: var(--res-shadow);
}

.residential-intro-image::before {
    content: "";
    position: absolute;
    left: -16px;
    top: -16px;
    width: 105px;
    height: 105px;
    border-top: 4px solid var(--res-orange);
    border-left: 4px solid var(--res-orange);
    border-radius: 16px 0 0 0;
    z-index: 2;
    pointer-events: none;
}

.residential-intro-image img {
    width: 100%;
    height: 100%;
    min-height: 570px;
    object-fit: cover;
}

.residential-intro-content h2 {
    max-width: 680px;
    margin-bottom: 20px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.residential-intro-content > p {
    max-width: 700px;
    margin-bottom: 13px;
    font-size: 15px;
}

.residential-benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 34px;
}

.residential-benefit {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 13px;
    padding: 19px;
    border: 1px solid var(--res-border);
    border-radius: 16px;
    background: #FBFBF9;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}

.residential-benefit:hover {
    transform: translateY(-3px);
    border-color: rgba(226, 139, 26, 0.25);
    box-shadow: 0 14px 30px rgba(19, 20, 24, 0.06);
}

.residential-benefit-icon {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(226, 139, 26, 0.10);
    color: var(--res-orange);
    font-size: 11px;
    font-weight: 800;
}

.residential-benefit h3 {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 800;
}

.residential-benefit p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}


/* =========================================================
   SOLUTIONS
========================================================= */

.residential-solutions {
    background: var(--res-cream);
}

.residential-solution-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.residential-solution-card {
    overflow: hidden;
    border: 1px solid var(--res-border);
    border-radius: var(--res-radius);
    background: var(--res-white);
    box-shadow: 0 12px 35px rgba(19, 20, 24, 0.045);
    transition:
        transform 0.28s ease,
        box-shadow 0.28s ease;
}

.residential-solution-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 50px rgba(19, 20, 24, 0.10);
}

.residential-solution-image {
    position: relative;
    height: 315px;
    overflow: hidden;
    background: var(--res-soft);
}

.residential-solution-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 55%,
        rgba(19, 20, 24, 0.20) 100%
    );
}

.residential-solution-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}

.residential-solution-card:hover .residential-solution-image img {
    transform: scale(1.035);
}

.residential-solution-content {
    padding: 30px 31px 33px;
}

.residential-solution-content .solution-tag {
    display: inline-flex;
    margin-bottom: 13px;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(226, 139, 26, 0.10);
    color: var(--res-orange);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.residential-solution-content h3 {
    margin-bottom: 11px;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.residential-solution-content > p {
    margin-bottom: 20px;
    font-size: 14px;
}

.residential-solution-content ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.residential-solution-content li {
    position: relative;
    padding-left: 22px;
    color: var(--res-text);
    font-size: 13px;
    line-height: 1.55;
}

.residential-solution-content li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--res-orange);
    font-weight: 800;
}


/* =========================================================
   PROCESS
========================================================= */

.residential-process {
    background: var(--res-white);
}

.residential-process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border-top: 1px solid var(--res-border);
    border-bottom: 1px solid var(--res-border);
}

.residential-process-step {
    position: relative;
    min-height: 215px;
    display: flex;
    flex-direction: column;
    padding: 32px 28px;
    border-right: 1px solid var(--res-border);
}

.residential-process-step:last-child {
    border-right: 0;
}

.residential-process-step::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 55px;
    height: 3px;
    background: var(--res-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.residential-process-step:hover::after {
    transform: scaleX(1);
}

.residential-process-step .process-number {
    margin-bottom: 34px;
    color: rgba(226, 139, 26, 0.38);
    font-size: 34px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.residential-process-step h3 {
    margin-bottom: 9px;
    font-size: 17px;
    font-weight: 800;
}

.residential-process-step p {
    margin: 0;
    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   SUBSIDY
========================================================= */

.residential-subsidy {
    background: var(--res-charcoal);
}

.residential-subsidy-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
    overflow: hidden;
    border-radius: 27px;
    background:
        linear-gradient(
            120deg,
            #1A1C21 0%,
            #20252A 100%
        );
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.18);
}

.residential-subsidy-content {
    position: relative;
    z-index: 2;
    padding: 60px 62px;
}

.residential-subsidy-content h2 {
    max-width: 690px;
    margin-bottom: 19px;
    color: var(--res-white);
    font-size: clamp(31px, 3.8vw, 49px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.residential-subsidy-content > p {
    max-width: 730px;
    margin-bottom: 30px;
    color: rgba(255, 255, 255, 0.67);
    font-size: 14px;
}

.residential-subsidy-points {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 29px;
}

.residential-subsidy-points .subsidy-point {
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.035);
}

.residential-subsidy-points .subsidy-point strong {
    display: block;
    margin-bottom: 7px;
    color: var(--res-gold);
    font-size: 13px;
}

.residential-subsidy-points .subsidy-point span {
    display: block;
    color: rgba(255, 255, 255, 0.63);
    font-size: 12px;
    line-height: 1.6;
}

.residential-subsidy-content .text-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--res-gold);
    font-size: 13px;
    font-weight: 800;
}

.residential-subsidy-content .text-link span {
    transition: transform 0.2s ease;
}

.residential-subsidy-content .text-link:hover span {
    transform: translateX(4px);
}

.residential-subsidy-visual {
    position: relative;
    min-height: 390px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px;
    background:
        radial-gradient(
            circle at 50% 50%,
            rgba(243, 169, 40, 0.17),
            transparent 65%
        );
}

.residential-subsidy-visual::before {
    content: "";
    position: absolute;
    width: 230px;
    height: 230px;
    border: 1px solid rgba(243, 169, 40, 0.18);
    border-radius: 50%;
}

.residential-subsidy-visual::after {
    content: "";
    position: absolute;
    width: 310px;
    height: 310px;
    border: 1px solid rgba(243, 169, 40, 0.08);
    border-radius: 50%;
}

.subsidy-highlight {
    position: relative;
    z-index: 2;
    width: min(100%, 285px);
    padding: 31px 25px;
    border: 1px solid rgba(243, 169, 40, 0.23);
    border-radius: 21px;
    background: rgba(19, 20, 24, 0.67);
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.20);
    backdrop-filter: blur(10px);
}

.subsidy-highlight span {
    display: block;
    margin-bottom: 9px;
    color: rgba(255, 255, 255, 0.57);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
}

.subsidy-highlight strong {
    display: block;
    margin-bottom: 10px;
    color: var(--res-gold);
    font-size: 45px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: -0.04em;
}

.subsidy-highlight small {
    display: block;
    color: rgba(255, 255, 255, 0.50);
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   WHY SCORPION
========================================================= */

.residential-why {
    background: var(--res-white);
}

.residential-why-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(400px, 1.05fr);
    align-items: center;
    gap: 85px;
}

.residential-why-content h2 {
    max-width: 650px;
    margin-bottom: 18px;
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.residential-why-content > p {
    max-width: 640px;
    margin-bottom: 31px;
    font-size: 15px;
}

.residential-why-list {
    display: grid;
    gap: 0;
}

.residential-why-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 19px 0;
    border-bottom: 1px solid var(--res-border);
}

.residential-why-item:first-child {
    border-top: 1px solid var(--res-border);
}

.residential-why-item > span {
    width: 29px;
    height: 29px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(226, 139, 26, 0.10);
    color: var(--res-orange);
    font-size: 13px;
    font-weight: 800;
}

.residential-why-item h3 {
    margin-bottom: 5px;
    font-size: 15px;
    font-weight: 800;
}

.residential-why-item p {
    margin: 0;
    font-size: 12px;
    line-height: 1.6;
}

.residential-why-image {
    position: relative;
    min-height: 600px;
    overflow: hidden;
    border-radius: 27px;
    background: var(--res-soft);
    box-shadow: var(--res-shadow);
}

.residential-why-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    object-fit: cover;
}

.residential-why-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 45%,
        rgba(19, 20, 24, 0.62) 100%
    );
    pointer-events: none;
}

.residential-why-overlay {
    position: absolute;
    z-index: 2;
    left: 27px;
    right: 27px;
    bottom: 25px;
    display: flex;
    flex-direction: column;
}

.residential-why-overlay strong {
    margin-bottom: 4px;
    color: var(--res-white);
    font-size: 19px;
    font-weight: 800;
}

.residential-why-overlay span {
    color: rgba(255, 255, 255, 0.70);
    font-size: 12px;
}


/* =========================================================
   FAQ
========================================================= */

.residential-faq {
    background: var(--res-cream);
}

.residential-faq-list {
    max-width: 900px;
    margin: 0 auto;
    border-top: 1px solid var(--res-border);
}

.residential-faq-item {
    border-bottom: 1px solid var(--res-border);
}

.residential-faq-item summary {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    padding: 23px 3px;
    cursor: pointer;
    list-style: none;
    color: var(--res-charcoal);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.5;
}

.residential-faq-item summary::-webkit-details-marker {
    display: none;
}

.residential-faq-item summary span {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(19, 20, 24, 0.12);
    border-radius: 50%;
    color: var(--res-orange);
    font-size: 19px;
    font-weight: 400;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.residential-faq-item[open] summary span {
    transform: rotate(45deg);
    background: rgba(226, 139, 26, 0.08);
}

.residential-faq-item .faq-answer {
    padding: 0 50px 24px 3px;
}

.residential-faq-item .faq-answer p {
    max-width: 790px;
    margin: 0;
    font-size: 13px;
    line-height: 1.75;
}


/* =========================================================
   FINAL CTA
========================================================= */

.residential-final-cta {
    padding: 85px 0;
    background: var(--res-white);
}

.residential-final-cta-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    overflow: hidden;
    padding: 54px 60px;
    border-radius: 25px;
    background:
        linear-gradient(
            115deg,
            #F6F4ED 0%,
            #F1EEE3 100%
        );
    border: 1px solid rgba(19, 20, 24, 0.07);
}

.residential-final-cta-inner::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    top: -170px;
    border-radius: 50%;
    background: rgba(226, 139, 26, 0.11);
}

.residential-final-cta-content {
    position: relative;
    z-index: 2;
    max-width: 670px;
}

.residential-final-cta-content h2 {
    margin-bottom: 13px;
    font-size: clamp(30px, 3.6vw, 47px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.residential-final-cta-content p {
    max-width: 590px;
    margin: 0;
    font-size: 14px;
}

.residential-final-cta-actions {
    position: relative;
    z-index: 3;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.residential-final-cta-actions .btn-outline {
    border-color: rgba(19, 20, 24, 0.14);
    background: rgba(255, 255, 255, 0.55);
    color: var(--res-charcoal);
}

.residential-final-cta-actions .btn-outline:hover {
    border-color: rgba(226, 139, 26, 0.40);
    background: var(--res-white);
    color: var(--res-charcoal);
}


/* =========================================================
   RESPONSIVE - 1199px
========================================================= */

@media (max-width: 1199px) {

    .residential-page .section-padding {
        padding-top: 90px;
        padding-bottom: 90px;
    }

    .residential-hero-container {
        grid-template-columns: minmax(0, 1fr) minmax(370px, 0.85fr);
        gap: 48px;
    }

    .residential-hero {
        min-height: 640px;
    }

    .residential-hero-image,
    .residential-hero-image img {
        min-height: 450px;
    }

    .residential-intro-grid,
    .residential-why-grid {
        gap: 55px;
    }

    .residential-intro-image,
    .residential-intro-image img {
        min-height: 520px;
    }

    .residential-why-image,
    .residential-why-image img {
        min-height: 540px;
    }

    .residential-subsidy-content {
        padding: 52px;
    }

}


/* =========================================================
   RESPONSIVE - 1024px
========================================================= */

@media (max-width: 1024px) {

    .residential-page .section-padding {
        padding-top: 78px;
        padding-bottom: 78px;
    }

    .residential-hero {
        min-height: auto;
    }

    .residential-hero-container {
        grid-template-columns: 1fr;
        gap: 42px;
        padding-top: 75px;
        padding-bottom: 75px;
    }

    .residential-hero-content {
        max-width: 800px;
    }

    .residential-hero h1 {
        max-width: 720px;
        font-size: clamp(44px, 7vw, 66px);
    }

    .residential-hero-description {
        max-width: 720px;
    }

    .residential-hero-visual {
        max-width: 760px;
    }

    .residential-hero-image,
    .residential-hero-image img {
        min-height: 420px;
    }

    .residential-hero-badge {
        left: 22px;
        bottom: 22px;
    }

    .residential-intro-grid,
    .residential-why-grid {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .residential-intro-image {
        max-width: 760px;
        min-height: 460px;
    }

    .residential-intro-image img {
        min-height: 460px;
    }

    .residential-intro-content {
        max-width: 850px;
    }

    .residential-why-image {
        order: -1;
        max-width: 760px;
        min-height: 460px;
    }

    .residential-why-image img {
        min-height: 460px;
    }

    .residential-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .residential-process-step:nth-child(2) {
        border-right: 0;
    }

    .residential-process-step:nth-child(-n + 2) {
        border-bottom: 1px solid var(--res-border);
    }

    .residential-subsidy-card {
        grid-template-columns: 1fr;
    }

    .residential-subsidy-visual {
        min-height: 330px;
    }

    .residential-final-cta-inner {
        padding: 45px;
    }

}


/* =========================================================
   RESPONSIVE - 786px
========================================================= */

@media (max-width: 786px) {

    .residential-page .section-padding {
        padding-top: 64px;
        padding-bottom: 64px;
    }

    .residential-page .section-heading-center {
        margin-bottom: 38px;
    }

    .residential-page .section-heading-center h2 {
        font-size: 34px;
    }

    .residential-hero-container {
        padding-top: 58px;
        padding-bottom: 62px;
    }

    .residential-hero h1 {
        font-size: clamp(40px, 9vw, 56px);
    }

    .residential-hero-description {
        font-size: 15px;
    }

    .residential-hero-image,
    .residential-hero-image img {
        min-height: 360px;
    }

    .residential-intro-image,
    .residential-intro-image img {
        min-height: 390px;
    }

    .residential-intro-content h2,
    .residential-why-content h2 {
        font-size: 37px;
    }

    .residential-benefit-grid {
        grid-template-columns: 1fr;
    }

    .residential-solution-grid {
        grid-template-columns: 1fr;
    }

    .residential-solution-image {
        height: 285px;
    }

    .residential-process-step {
        min-height: 195px;
        padding: 27px 23px;
    }

    .residential-subsidy-content {
        padding: 42px 32px;
    }

    .residential-subsidy-content h2 {
        font-size: 36px;
    }

    .residential-subsidy-points {
        grid-template-columns: 1fr;
    }

    .residential-subsidy-visual {
        min-height: 290px;
        padding: 35px;
    }

    .residential-why-image,
    .residential-why-image img {
        min-height: 390px;
    }

    .residential-final-cta-inner {
        flex-direction: column;
        align-items: flex-start;
        padding: 38px 30px;
    }

    .residential-final-cta-actions {
        justify-content: flex-start;
    }

}


/* =========================================================
   RESPONSIVE - 450px
========================================================= */

@media (max-width: 450px) {

    .residential-page .section-padding {
        padding-top: 52px;
        padding-bottom: 52px;
    }

    .residential-page .section-heading-center {
        margin-bottom: 31px;
    }

    .residential-page .section-heading-center h2 {
        font-size: 29px;
    }

    .residential-page .section-heading-center p {
        font-size: 13px;
        line-height: 1.65;
    }

    .residential-hero-container {
        padding-top: 48px;
        padding-bottom: 50px;
    }

    .residential-eyebrow {
        margin-bottom: 17px;
        padding: 8px 11px;
        font-size: 9px;
    }

    .residential-hero h1 {
        margin-bottom: 18px;
        font-size: 39px;
        line-height: 1.02;
    }

    .residential-hero-description {
        margin-bottom: 25px;
        font-size: 13px;
        line-height: 1.7;
    }

    .residential-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .residential-page .btn {
        width: 100%;
        min-height: 49px;
        padding: 13px 16px;
        font-size: 13px;
    }

    .residential-hero-trust {
        flex-direction: column;
        gap: 8px;
    }

    .residential-hero-trust span {
        font-size: 10px;
    }

    .residential-hero-image,
    .residential-hero-image img {
        min-height: 285px;
    }

    .residential-hero-image {
        border-radius: 20px;
    }

    .residential-hero-badge {
        left: 13px;
        bottom: 13px;
        min-width: 145px;
        padding: 12px 14px;
        border-radius: 12px;
    }

    .residential-hero-badge strong {
        font-size: 16px;
    }

    .residential-hero-badge span {
        font-size: 9px;
    }

    .residential-intro-grid,
    .residential-why-grid {
        gap: 32px;
    }

    .residential-intro-image,
    .residential-intro-image img {
        min-height: 300px;
    }

    .residential-intro-image {
        border-radius: 20px;
    }

    .residential-intro-content h2,
    .residential-why-content h2 {
        font-size: 30px;
    }

    .residential-intro-content > p,
    .residential-why-content > p {
        font-size: 13px;
    }

    .residential-benefit {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 15px;
    }

    .residential-benefit-icon {
        width: 34px;
        height: 34px;
        font-size: 9px;
    }

    .residential-benefit h3 {
        font-size: 13px;
    }

    .residential-benefit p {
        font-size: 11px;
    }

    .residential-solution-grid {
        gap: 17px;
    }

    .residential-solution-card {
        border-radius: 18px;
    }

    .residential-solution-image {
        height: 235px;
    }

    .residential-solution-content {
        padding: 23px 20px 25px;
    }

    .residential-solution-content h3 {
        font-size: 21px;
    }

    .residential-solution-content > p {
        font-size: 12px;
    }

    .residential-solution-content li {
        font-size: 11px;
    }

    .residential-process-grid {
        grid-template-columns: 1fr;
    }

    .residential-process-step {
        min-height: auto;
        padding: 24px 19px;
        border-right: 0;
        border-bottom: 1px solid var(--res-border);
    }

    .residential-process-step:last-child {
        border-bottom: 0;
    }

    .residential-process-step .process-number {
        margin-bottom: 23px;
        font-size: 29px;
    }

    .residential-process-step h3 {
        font-size: 15px;
    }

    .residential-process-step p {
        font-size: 11px;
    }

    .residential-subsidy-card {
        border-radius: 20px;
    }

    .residential-subsidy-content {
        padding: 31px 20px;
    }

    .residential-subsidy-content h2 {
        font-size: 29px;
    }

    .residential-subsidy-content > p {
        font-size: 12px;
    }

    .residential-subsidy-points {
        gap: 9px;
    }

    .residential-subsidy-points .subsidy-point {
        padding: 14px;
    }

    .residential-subsidy-points .subsidy-point strong {
        font-size: 12px;
    }

    .residential-subsidy-points .subsidy-point span {
        font-size: 10px;
    }

    .residential-subsidy-visual {
        min-height: 255px;
        padding: 25px;
    }

    .subsidy-highlight {
        width: 240px;
        padding: 23px 18px;
    }

    .subsidy-highlight strong {
        font-size: 37px;
    }

    .residential-why-image,
    .residential-why-image img {
        min-height: 300px;
    }

    .residential-why-image {
        border-radius: 20px;
    }

    .residential-why-overlay {
        left: 18px;
        right: 18px;
        bottom: 17px;
    }

    .residential-why-overlay strong {
        font-size: 16px;
    }

    .residential-why-overlay span {
        font-size: 10px;
    }

    .residential-why-item {
        grid-template-columns: 29px minmax(0, 1fr);
        gap: 10px;
        padding: 15px 0;
    }

    .residential-why-item > span {
        width: 26px;
        height: 26px;
        font-size: 11px;
    }

    .residential-why-item h3 {
        font-size: 13px;
    }

    .residential-why-item p {
        font-size: 10px;
    }

    .residential-faq-item summary {
        padding: 19px 0;
        font-size: 13px;
        gap: 13px;
    }

    .residential-faq-item summary span {
        width: 25px;
        height: 25px;
        font-size: 17px;
    }

    .residential-faq-item .faq-answer {
        padding: 0 34px 20px 0;
    }

    .residential-faq-item .faq-answer p {
        font-size: 11px;
    }

    .residential-final-cta {
        padding: 52px 0;
    }

    .residential-final-cta-inner {
        gap: 28px;
        padding: 29px 20px;
        border-radius: 19px;
    }

    .residential-final-cta-content h2 {
        font-size: 29px;
    }

    .residential-final-cta-content p {
        font-size: 12px;
    }

    .residential-final-cta-actions {
        width: 100%;
        flex-direction: column;
    }

    .residential-final-cta-actions .btn {
        width: 100%;
    }

}


/* =========================================================
   RESPONSIVE - 359px
========================================================= */

@media (max-width: 359px) {

    .residential-page .section-padding {
        padding-top: 44px;
        padding-bottom: 44px;
    }

    .residential-hero-container {
        padding-top: 40px;
        padding-bottom: 43px;
    }

    .residential-hero h1 {
        font-size: 34px;
    }

    .residential-hero-description {
        font-size: 12px;
    }

    .residential-hero-image,
    .residential-hero-image img {
        min-height: 245px;
    }

    .residential-intro-image,
    .residential-intro-image img {
        min-height: 260px;
    }

    .residential-intro-content h2,
    .residential-why-content h2 {
        font-size: 27px;
    }

    .residential-solution-image {
        height: 205px;
    }

    .residential-subsidy-content h2 {
        font-size: 26px;
    }

    .subsidy-highlight {
        width: 210px;
    }

    .subsidy-highlight strong {
        font-size: 32px;
    }

    .residential-why-image,
    .residential-why-image img {
        min-height: 260px;
    }

    .residential-final-cta-content h2 {
        font-size: 26px;
    }

}


/* =========================================================
   ACCESSIBILITY / REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .residential-page *,
    .residential-page *::before,
    .residential-page *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }

}


/* =========================================================
   GLOBAL OVERFLOW PROTECTION
========================================================= */

.residential-page,
.residential-page .container,
.residential-page section,
.residential-page .residential-hero-container,
.residential-page .residential-intro-grid,
.residential-page .residential-solution-grid,
.residential-page .residential-process-grid,
.residential-page .residential-subsidy-card,
.residential-page .residential-why-grid,
.residential-page .residential-final-cta-inner {
    max-width: 100%;
}

.residential-page *,
.residential-page *::before,
.residential-page *::after {
    box-sizing: border-box;
}

.residential-page .container {
    width: 100%;
}

@media (max-width: 450px) {

    .residential-page .container {
        padding-left: 18px;
        padding-right: 18px;
    }

}

/* =========================================================
   RESIDENTIAL PAGE - PREMIUM CONTENT WIDTH & SIDE SPACING
========================================================= */

.residential-page .container {
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 32px;
    padding-right: 32px;
}

@media (max-width: 1199px) {
    .residential-page .container {
        max-width: 1100px;
        padding-left: 28px;
        padding-right: 28px;
    }
}

@media (max-width: 1024px) {
    .residential-page .container {
        max-width: 100%;
        padding-left: 26px;
        padding-right: 26px;
    }
}

@media (max-width: 786px) {
    .residential-page .container {
        padding-left: 22px;
        padding-right: 22px;
    }
}

@media (max-width: 450px) {
    .residential-page .container {
        padding-left: 18px;
        padding-right: 18px;
    }
}

@media (max-width: 359px) {
    .residential-page .container {
        padding-left: 15px;
        padding-right: 15px;
    }
}