/* Residential Page Styles */

/* Hero Section */
.res-hero {
    position: relative;
    width: 100%;
    background: #131316;
    overflow: hidden;
}

.res-hero-content {
    padding: 500px 16px 80px;
}

.hero-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 434px;
    background: linear-gradient(to bottom, rgba(19, 19, 22, 0) 0%, #131316 100%);
    z-index: 2;
}
.res-hero-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 62px;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #eff2f1;
    margin: 0 0 32px 0;
    position: relative;
    z-index: 2;
}

.res-hero-description {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: -0.192px;
    color: #eff2f1;
    margin: 0;
    max-width: 620px;
    position: relative;
    z-index: 2;
}

/* Category Header (shared) */
.res-category-header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.res-category-label-dark {
    color: #131316;
}

.res-category-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 62px;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 2px;
    color: #eff2f1;
    margin: 0;
    max-width: 940px;
}

.res-category-title-dark {
    color: #131316;
}

/* Category Dark Section */
.res-category-dark {
    background: #131316;
    padding: 160px 0 140px;
}

.res-category-dark-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.res-cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
}

.res-grid-1 {
    grid-area: 1 / 1 / 2 / 2;
}
.res-grid-2 {
    grid-area: 1 / 2 / 2 / 3;
}
.res-grid-3 {
    grid-area: 1 / 4 / 2 / 5;
}
.res-grid-4 {
    grid-area: 2 / 2 / 3 / 3;
}
.res-grid-5 {
    grid-area: 2 / 3 / 3 / 4;
}
.res-grid-6 {
    grid-area: 2 / 4 / 3 / 5;
}
.res-grid-7 {
    grid-area: 3 / 1 / 4 / 2;
}
.res-grid-8 {
    grid-area: 3 / 2 / 4 / 3;
}
.res-grid-9 {
    grid-area: 3 / 3 / 4 / 4;
}
.res-grid-10 {
    grid-area: 4 / 2 / 5 / 3;
}
.res-grid-11 {
    grid-area: 4 / 3 / 5 / 4;
}
.res-grid-12 {
    grid-area: 4 / 4 / 5 / 5;
}

/* Service Card (shared) */

.res-cards-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.res-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 88px;
    padding: 24px;
    border-radius: 4px;
    overflow: hidden;
}

.res-card-dark {
    background: rgba(239, 242, 241, 0.1);
    border: 1px solid rgba(239, 242, 241, 0.15);
}

.res-card-light {
    background: #ffffff;
    border: 1px solid rgba(66, 106, 90, 0.5);
}

.res-card-desc {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 16px;
    font-weight: normal;
    line-height: 1.4;
    color: #eff2f1;
    margin: 0;
}

.res-card-desc-dark {
    color: #131316;
}

.res-card-title {
    font-family: 'Roboto Flex', sans-serif;
    font-size: 24px;
    font-weight: normal;
    line-height: 1.1;
    letter-spacing: 1.5px;
    color: #eff2f1;
    margin: 0;
}

.res-card-title-dark {
    color: #131316;
}

/* Category Light Section */
.res-category-light {
    background: #eff2f1;
    padding: 140px 0;
}

.res-category-light-container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

/* =====================================================
   MOBILE ADAPTIVE (max-width: 767px)
   ===================================================== */

/* Mobile-only elements - hidden by default */
.res-hero-btn {
    display: none;
}

.res-slider-dots {
    display: none;
}

.value-number {
    width: fit-content;
    flex-shrink: 0;
    font-family: 'Roboto Flex', sans-serif;
    font-size: 20px;
    font-weight: normal;
    line-height: 1.2;
    letter-spacing: -0.344px;
    color: #fff;
    display: none;
}

.value-number span {
    font-family: 'Courier New', sans-serif;
    font-size: 20px;
    color: rgba(103, 255, 86, 1);
}

@media (max-width: 767px) {
    .value-number {
        display: block;
    }
    /* Hero Section */

    .hero-gradient-bottom {
        display: none;
    }

    .res-hero-gradient-top {
        height: 200px;
    }

    .res-hero-gradient-bottom {
        height: 500px;
    }

    .res-hero-content {
        padding: 250px 16px 60px;
    }

    .res-hero-title {
        font-size: 32px;
        line-height: 1;
        letter-spacing: 2px;
        max-width: none;
        margin-bottom: 26px;
    }

    .res-hero-description {
        font-size: 16px;
        line-height: 1.4;
        max-width: none;
    }

    .res-hero-btn {
        display: inline-flex;
        align-items: center;
        gap: 14px;
        height: 60px;
        padding: 0 18px 0 30px;
        background: #67ff56;
        border-radius: 4px;
        text-decoration: none;
        margin-top: 52px;
    }

    .res-hero-btn span:first-child {
        font-family: 'Manrope', sans-serif;
        font-size: 16px;
        font-weight: 500;
        color: #131316;
    }

    .res-hero-btn-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        background: #67ff56;
    }

    /* Category Dark Section */
    .res-category-dark {
        padding: 70px 0;
    }

    .res-category-dark-container {
        gap: 50px;
    }

    .res-category-header {
        flex-direction: column;
        gap: 40px;
    }

    .res-category-title {
        font-size: 32px;
        line-height: 1;
        max-width: none;
    }

    .res-cards-grid {
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .res-grid-1,
    .res-grid-2,
    .res-grid-3,
    .res-grid-4,
    .res-grid-5,
    .res-grid-6,
    .res-grid-7,
    .res-grid-8,
    .res-grid-9,
    .res-grid-10,
    .res-grid-11,
    .res-grid-12 {
        grid-area: auto;
    }

    .res-card {
        height: auto;
        gap: 18px;
        padding: 24px 0;
        border-radius: 0;
        flex-direction: column-reverse;
    }

    .res-card-dark {
        background: transparent;
        border: none;
        border-top: 1px solid rgba(239, 242, 241, 0.15);
    }

    .res-card-dark:last-child {
        border-bottom: 1px solid rgba(239, 242, 241, 0.15);
    }

    .res-card-title {
        font-size: 24px;
    }

    /* Category Light Section (New Construction) */
    .res-category-light {
        padding: 70px 0;
    }

    .res-category-light-container {
        gap: 32px;
    }

    .res-cards-row {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 10px;
        scrollbar-width: none;
    }

    .res-cards-row::-webkit-scrollbar {
        display: none;
    }

    .res-cards-row .res-card {
        min-width: 267px;
        width: 267px;
        flex-shrink: 0;
        scroll-snap-align: start;
        padding: 16px 12px;
        gap: 114px;
    }

    .res-card-light .res-card-title {
        font-size: 20px;
    }

    .res-card-light .res-card-desc {
        font-size: 14px;
    }

    /* Slider dots */
    .res-slider-dots {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 32px;
    }

    .res-slider-dots .slider-dot {
        width: 12px;
        height: 12px;
        border-radius: 4px;
        background: #131316;
        opacity: 0.5;
        border: none;
        padding: 0;
        cursor: pointer;
        transition: opacity 0.3s;
    }

    .res-slider-dots .slider-dot.active {
        opacity: 1;
    }

    /* Contact Section - reorder for mobile */
    .contact-left {
        display: contents;
    }

    .contact-left > h2 {
        order: 1;
    }

    .contact-left > .body-md {
        order: 2;
    }

    .contact-form {
        order: 3;
    }

    .contact-info-list {
        order: 4;
    }
}

