/* =========================================================
   RP SKY POOL
   SHARED SERVICES / SOLUTIONS PAGE STYLES
   ========================================================= */


/* =========================================================
   SERVICE PAGE VARIABLES
   ========================================================= */

.rp-service-page {
    --service-navy: #061f38;
    --service-navy-2: #082b4d;
    --service-blue: #155aa8;
    --service-cyan: #45a9c5;
    --service-gold: #d29a38;
    --service-gold-dark: #bd8428;

    --service-text: #152536;
    --service-muted: #667585;
    --service-light: #f5f8fa;
    --service-border: rgba(6, 31, 56, 0.10);

    color: var(--service-text);
    overflow: hidden;
}


/* =========================================================
   COMMON CONTAINER
   ========================================================= */

.rp-service-page .container {
    width: min(100% - 48px, 1380px);
    margin-inline: auto;
}


/* =========================================================
   COMMON EYEBROW
   ========================================================= */

.service-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    color: var(--service-gold);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.service-eyebrow::before {
    content: "";
    width: 30px;
    height: 1px;
    background: currentColor;
    flex: 0 0 auto;
}


/* =========================================================
   HERO
   ========================================================= */

.service-hero {
    position: relative;
    min-height: 650px;

    display: flex;
    align-items: center;

    background: var(--service-navy);
    isolation: isolate;
}

.service-hero-bg {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(3, 20, 36, 0.94) 0%,
            rgba(3, 20, 36, 0.78) 42%,
            rgba(3, 20, 36, 0.35) 75%,
            rgba(3, 20, 36, 0.20) 100%
        ),
        url("../img/commercial-pool-hero.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-hero-content {
    max-width: 760px;
    padding: 100px 0;
    color: #fff;
}

.service-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin-bottom: 34px;

    color: rgba(255, 255, 255, 0.62);

    font-size: 13px;
}

.service-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.service-breadcrumb a:hover {
    color: #fff;
}

.service-breadcrumb strong {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.service-hero .service-eyebrow {
    margin-bottom: 22px;
}

.service-hero h1 {
    max-width: 760px;

    margin: 0 0 24px;

    color: #fff;

    font-size: clamp(44px, 5vw, 76px);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

.service-hero h1 span {
    display: block;
    color: #dfeaf3;
}

.service-hero p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.78);

    font-size: 18px;
    line-height: 1.75;
}

.service-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;

    margin-top: 34px;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.service-btn {
    min-height: 54px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;

    padding: 0 24px;

    border: 1px solid transparent;

    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease;
}

.service-btn span {
    font-size: 18px;
    line-height: 1;
}

.service-btn:hover {
    transform: translateY(-2px);
}

.service-btn-primary {
    background: var(--service-gold);
    color: #fff;
}

.service-btn-primary:hover {
    background: var(--service-gold-dark);
    color: #fff;
}

.service-btn-outline {
    border-color: rgba(255, 255, 255, 0.35);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.service-btn-outline:hover {
    border-color: #fff;
    background: #fff;
    color: var(--service-navy);
}


/* =========================================================
   INTRODUCTION
   ========================================================= */

.service-intro {
    padding: 120px 0;
    background: #fff;
}

.service-intro-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(50px, 7vw, 110px);
}

.service-intro-image {
    position: relative;
    min-height: 580px;
    overflow: hidden;
}

.service-intro-image::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;

    width: 110px;
    height: 110px;

    border-right: 3px solid var(--service-gold);
    border-bottom: 3px solid var(--service-gold);
}

.service-intro-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;
}

.service-intro-content {
    max-width: 650px;
}

.service-intro-content .service-eyebrow {
    margin-bottom: 20px;
}

.service-intro-content h2 {
    margin: 0 0 24px;

    color: var(--service-navy);

    font-size: clamp(36px, 4vw, 58px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.service-intro-content p {
    margin: 0 0 18px;

    color: var(--service-muted);

    font-size: 16px;
    line-height: 1.85;
}

.service-highlight {
    display: flex;
    flex-direction: column;
    gap: 7px;

    margin-top: 30px;
    padding: 24px 26px;

    border-left: 3px solid var(--service-gold);

    background: var(--service-light);
}

.service-highlight strong {
    color: var(--service-navy);

    font-size: 16px;
    font-weight: 700;
}

.service-highlight span {
    color: var(--service-muted);

    font-size: 14px;
    line-height: 1.6;
}


/* =========================================================
   SECTION HEADING
   ========================================================= */

.service-heading {
    max-width: 760px;
    margin: 0 auto 60px;
    text-align: center;
}

.service-heading .service-eyebrow {
    margin-bottom: 18px;
}

.service-heading h2 {
    margin: 0 0 20px;

    color: var(--service-navy);

    font-size: clamp(34px, 4vw, 54px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.08;
}

.service-heading p {
    max-width: 680px;
    margin: 0 auto;

    color: var(--service-muted);

    font-size: 16px;
    line-height: 1.8;
}


/* =========================================================
   APPLICATIONS
   ========================================================= */

.service-applications {
    padding: 120px 0;

    background: var(--service-light);
}

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.service-card {
    min-width: 0;
    overflow: hidden;

    background: #fff;

    border: 1px solid var(--service-border);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);

    box-shadow:
        0 20px 50px rgba(6, 31, 56, 0.10);
}

.service-card-image {
    height: 270px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    transition: transform 0.6s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-content {
    padding: 27px 26px 30px;
}

.service-card-number {
    display: block;

    margin-bottom: 15px;

    color: var(--service-gold);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-card h3 {
    margin: 0 0 12px;

    color: var(--service-navy);

    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.service-card p {
    margin: 0;

    color: var(--service-muted);

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   SCOPE
   ========================================================= */

.service-scope {
    padding: 120px 0;

    background: #fff;
}

.service-scope-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(50px, 8vw, 120px);
}

.service-scope-content {
    max-width: 510px;
}

.service-scope-content .service-eyebrow {
    margin-bottom: 20px;
}

.service-scope-content h2 {
    margin: 0 0 22px;

    color: var(--service-navy);

    font-size: clamp(36px, 4vw, 56px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.06;
}

.service-scope-content > p {
    margin: 0;

    color: var(--service-muted);

    font-size: 16px;
    line-height: 1.85;
}

.service-text-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;

    margin-top: 30px;

    color: var(--service-navy);

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    transition: color 0.25s ease;
}

.service-text-link span {
    color: var(--service-gold);

    font-size: 18px;

    transition: transform 0.25s ease;
}

.service-text-link:hover {
    color: var(--service-gold-dark);
}

.service-text-link:hover span {
    transform: translateX(5px);
}

.service-scope-list {
    border-top: 1px solid var(--service-border);
}

.service-scope-item {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 20px;

    padding: 27px 0;

    border-bottom: 1px solid var(--service-border);
}

.service-scope-item > span {
    color: var(--service-gold);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.service-scope-item h3 {
    margin: 0 0 7px;

    color: var(--service-navy);

    font-size: 20px;
    font-weight: 600;
}

.service-scope-item p {
    max-width: 600px;

    margin: 0;

    color: var(--service-muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================================================
   FEATURES
   ========================================================= */

.service-features {
    padding: 120px 0;

    background: var(--service-light);
}

.service-feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;

    background: var(--service-border);

    border: 1px solid var(--service-border);
}

.service-feature-box {
    min-height: 280px;

    padding: 34px 30px;

    background: #fff;
}

.service-feature-box > span {
    display: block;

    margin-bottom: 55px;

    color: var(--service-gold);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-feature-box h3 {
    margin: 0 0 13px;

    color: var(--service-navy);

    font-size: 21px;
    font-weight: 600;
}

.service-feature-box p {
    margin: 0;

    color: var(--service-muted);

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   PROCESS
   ========================================================= */

.service-process {
    padding: 120px 0;

    background: #fff;
}

.service-process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;

    background: var(--service-border);

    border: 1px solid var(--service-border);
}

.service-process-item {
    min-height: 250px;

    padding: 34px 32px;

    background: #fff;

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}

.service-process-item:hover {
    background: var(--service-light);
}

.service-process-item > span {
    display: block;

    margin-bottom: 42px;

    color: var(--service-gold);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.service-process-item h3 {
    margin: 0 0 12px;

    color: var(--service-navy);

    font-size: 21px;
    font-weight: 600;
}

.service-process-item p {
    margin: 0;

    color: var(--service-muted);

    font-size: 14px;
    line-height: 1.75;
}


/* =========================================================
   CTA
   ========================================================= */

.service-cta {
    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: var(--service-navy);

    isolation: isolate;
}

.service-cta-bg {
    position: absolute;
    inset: 0;

    z-index: -2;

    background:
        linear-gradient(
            90deg,
            rgba(3, 20, 36, 0.96) 0%,
            rgba(3, 20, 36, 0.78) 50%,
            rgba(3, 20, 36, 0.55) 100%
        ),
        url("../img/service-cta.jpg");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.service-cta-content {
    max-width: 760px;

    padding: 90px 0;

    color: #fff;
}

.service-cta-content .service-eyebrow {
    margin-bottom: 20px;
}

.service-cta-content h2 {
    margin: 0 0 20px;

    color: #fff;

    font-size: clamp(38px, 4.5vw, 62px);
    font-weight: 600;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.service-cta-content p {
    max-width: 650px;

    margin: 0;

    color: rgba(255, 255, 255, 0.75);

    font-size: 16px;
    line-height: 1.8;
}

.service-cta-content .service-btn {
    margin-top: 30px;
}


/* =========================================================
   PAGE-SPECIFIC HERO IMAGES
   ========================================================= */

/*
   Each service page can override only the hero image.
   The rest of the design remains shared.
*/

.rp-service-custom .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 20, 36, 0.94) 0%,
            rgba(3, 20, 36, 0.78) 42%,
            rgba(3, 20, 36, 0.35) 75%,
            rgba(3, 20, 36, 0.20) 100%
        ),
        url("../img/custom-pool-hero.jpg");
}

.rp-service-residential .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 20, 36, 0.94) 0%,
            rgba(3, 20, 36, 0.78) 42%,
            rgba(3, 20, 36, 0.35) 75%,
            rgba(3, 20, 36, 0.20) 100%
        ),
        url("../img/residential-pool-hero.jpg");
}

.rp-service-commercial .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(3, 20, 36, 0.94) 0%,
            rgba(3, 20, 36, 0.78) 42%,
            rgba(3, 20, 36, 0.35) 75%,
            rgba(3, 20, 36, 0.20) 100%
        ),
        url("../img/commercial-pool-hero.jpg");
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1100px) {

    .service-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .service-intro-grid {
        grid-template-columns: 1fr;
    }

    .service-intro-image {
        min-height: 500px;
    }

    .service-scope-grid {
        grid-template-columns: 1fr;
        gap: 60px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

    .rp-service-page .container {
        width: min(100% - 32px, 1380px);
    }


    /* Hero */

    .service-hero {
        min-height: 620px;
    }

    .service-hero-bg {
        background-position: 62% center;

        background-image:
            linear-gradient(
                90deg,
                rgba(3, 20, 36, 0.92) 0%,
                rgba(3, 20, 36, 0.72) 100%
            ),
            url("../img/commercial-pool-hero.jpg");
    }

    .rp-service-custom .service-hero-bg {
        background-image:
            linear-gradient(
                90deg,
                rgba(3, 20, 36, 0.92) 0%,
                rgba(3, 20, 36, 0.72) 100%
            ),
            url("../img/custom-pool-hero.jpg");
    }

    .rp-service-residential .service-hero-bg {
        background-image:
            linear-gradient(
                90deg,
                rgba(3, 20, 36, 0.92) 0%,
                rgba(3, 20, 36, 0.72) 100%
            ),
            url("../img/residential-pool-hero.jpg");
    }

    .rp-service-commercial .service-hero-bg {
        background-image:
            linear-gradient(
                90deg,
                rgba(3, 20, 36, 0.92) 0%,
                rgba(3, 20, 36, 0.72) 100%
            ),
            url("../img/commercial-pool-hero.jpg");
    }

    .service-hero-content {
        padding: 80px 0;
    }

    .service-breadcrumb {
        margin-bottom: 25px;
    }

    .service-hero h1 {
        font-size: clamp(40px, 12vw, 58px);
        line-height: 1;
    }

    .service-hero p {
        font-size: 16px;
        line-height: 1.7;
    }

    .service-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .service-btn {
        width: 100%;
    }


    /* General sections */

    .service-intro,
    .service-applications,
    .service-scope,
    .service-features,
    .service-process {
        padding: 80px 0;
    }

    .service-heading {
        margin-bottom: 40px;
    }

    .service-heading h2 {
        font-size: 36px;
    }


    /* Intro */

    .service-intro-image {
        min-height: 380px;
    }

    .service-intro-content h2 {
        font-size: 38px;
    }


    /* Cards */

    .service-card-grid {
        grid-template-columns: 1fr;
    }

    .service-card-image {
        height: 250px;
    }


    /* Scope */

    .service-scope-grid {
        gap: 45px;
    }

    .service-scope-content h2 {
        font-size: 38px;
    }

    .service-scope-item {
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }


    /* Features */

    .service-feature-grid {
        grid-template-columns: 1fr;
    }

    .service-feature-box {
        min-height: auto;
        padding: 30px 25px;
    }

    .service-feature-box > span {
        margin-bottom: 35px;
    }


    /* Process */

    .service-process-grid {
        grid-template-columns: 1fr;
    }

    .service-process-item {
        min-height: auto;
        padding: 30px 25px;
    }

    .service-process-item > span {
        margin-bottom: 30px;
    }


    /* CTA */

    .service-cta {
        min-height: 520px;
    }

    .service-cta-content {
        padding: 80px 0;
    }

    .service-cta-content h2 {
        font-size: 40px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .service-eyebrow {
        font-size: 10px;
        letter-spacing: 0.14em;
    }

    .service-hero {
        min-height: 590px;
    }

    .service-hero h1 {
        font-size: 39px;
    }

    .service-intro-content h2,
    .service-scope-content h2,
    .service-heading h2 {
        font-size: 34px;
    }

    .service-cta-content h2 {
        font-size: 35px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .service-card,
    .service-card-image img,
    .service-btn,
    .service-text-link span {
        transition: none;
    }

}

/* =========================================================
   POOL RENOVATION
========================================================= */

.rp-service-renovation .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.84) 0%,
            rgba(7, 24, 48, 0.58) 45%,
            rgba(7, 24, 48, 0.18) 100%
        ),
        url("../img/pool-renovation-hero.jpg");
}

.rp-service-renovation .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.90) 0%,
            rgba(7, 24, 48, 0.70) 45%,
            rgba(7, 24, 48, 0.30) 100%
        ),
        url("../img/Pool Renovation_Before and After.jpg");
}

.rp-service-tiling .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.90) 0%,
            rgba(7, 24, 48, 0.70) 45%,
            rgba(7, 24, 48, 0.30) 100%
        ),
        url("../img/Pool Tiling & Finishes.jpg");
}

.rp-service-filtration .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.90) 0%,
            rgba(7, 24, 48, 0.70) 45%,
            rgba(7, 24, 48, 0.30) 100%
        ),
        url("../img/Filtration Systems.jpg");
}

.rp-service-maintenance .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.90) 0%,
            rgba(7, 24, 48, 0.70) 45%,
            rgba(7, 24, 48, 0.30) 100%
        ),
        url("../img/Pool Maintenance & AMC.jpg");
}

/* =========================================================
   KOI PONDS
   ========================================================= */

.rp-service-koi .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.90) 0%,
            rgba(7, 24, 48, 0.70) 45%,
            rgba(7, 24, 48, 0.30) 100%
        ),
        url("../img/cspool.jpg");
}

/* =========================================================
   FOUNTAINS & WATERFALLS
   ========================================================= */

.rp-service-fountains .service-hero-bg {
    background-image:
        linear-gradient(
            90deg,
            rgba(7, 24, 48, 0.90) 0%,
            rgba(7, 24, 48, 0.70) 45%,
            rgba(7, 24, 48, 0.30) 100%
        ),
        url("../img/cspool.jpg");
}