/* =========================================================
   SERVICES PAGE
   Get Well Physiotherapy & Sports Injury Clinic
========================================================= */

.services-page {
    overflow: hidden;
}

/* =========================================================
   HERO
========================================================= */

.services-hero {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: center;
    background:
        linear-gradient(
            rgba(8, 48, 72, 0.80),
            rgba(8, 48, 72, 0.84)
        ),
        url("../images/services-hero.webp") center/cover no-repeat;
}

.services-hero-inner {
    position: relative;
    z-index: 2;
}

.services-hero-content {
    max-width: 800px;
    padding: 90px 0;
}

.services-hero h1 {
    margin: 12px 0 20px;
    color: #ffffff;
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -1.5px;
}

.services-hero h1 span {
    color: #00a651;
}

.services-hero p {
    max-width: 700px;
    margin: 0;
    color: rgba(255, 255, 255, 0.88);
    font-size: 18px;
    line-height: 1.8;
}


/* =========================================================
   INTRO
========================================================= */

.services-intro {
    background: #ffffff;
}

.services-intro .section-heading {
    max-width: 850px;
    margin-left: auto;
    margin-right: auto;
}

.services-intro .section-heading p {
    max-width: 760px;
    margin: 20px auto 0;
    color: #607783;
    font-size: 17px;
    line-height: 1.8;
}


/* =========================================================
   SERVICES GRID
========================================================= */

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    margin-top: 60px;
}

.service-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e0eaee;
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(17, 65, 88, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.service-card:hover {
    transform: translateY(-7px);
    border-color: rgba(0, 119, 185, 0.22);
    box-shadow: 0 18px 42px rgba(17, 65, 88, 0.12);
}


/* =========================================================
   CARD IMAGE
========================================================= */

.service-card-image {
    position: relative;
    height: 235px;
    overflow: hidden;
    background: #edf4f7;
}

.service-card-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 55%,
        rgba(8, 48, 72, 0.12)
    );
    pointer-events: none;
}

.service-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}


/* =========================================================
   CARD CONTENT
========================================================= */

.service-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 27px 27px 25px;
}

.service-card-content h3 {
    margin: 0 0 13px;
    font-size: 21px;
    line-height: 1.35;
    font-weight: 750;
}

.service-card-content h3 a {
    color: #163f55;
    text-decoration: none;
    transition: color 0.25s ease;
}

.service-card-content h3 a:hover {
    color: #0077b9;
}

.service-card-content p {
    margin: 0;
    color: #607783;
    font-size: 15px;
    line-height: 1.75;
}

.service-card-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: #0077b9;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.service-card-link::after {
    content: "→";
    font-size: 18px;
    line-height: 1;
    transition: transform 0.25s ease;
}

.service-card-link:hover {
    color: #00a651;
}

.service-card-link:hover::after {
    transform: translateX(4px);
}


/* =========================================================
   CTA
========================================================= */

.services-cta {
    position: relative;
    padding: 85px 0;
    background:
        linear-gradient(
            135deg,
            #0077b9 0%,
            #00649c 60%,
            #005584 100%
        );
    overflow: hidden;
}

.services-cta::before {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -230px;
    right: -120px;
    border: 70px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.services-cta::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    bottom: -190px;
    left: -90px;
    border: 55px solid rgba(0, 166, 81, 0.15);
    border-radius: 50%;
}

.services-cta-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.services-cta .section-eyebrow {
    color: #8ee0b3;
}

.services-cta h2 {
    margin: 10px 0;
    color: #ffffff;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.15;
}

.services-cta p {
    max-width: 650px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.7;
}

.services-cta-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.services-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 145px;
    padding: 15px 25px;
    background: #00a651;
    color: #ffffff;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.services-cta-btn:hover {
    background: #008f45;
    color: #ffffff;
    transform: translateY(-2px);
}

.services-cta-phone {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.services-cta-phone:hover {
    color: #8ee0b3;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .services-cta-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .services-cta-actions {
        margin-top: 5px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .services-hero {
        min-height: 400px;
    }

    .services-hero-content {
        padding: 65px 0;
    }

    .services-hero h1 {
        font-size: 40px;
        letter-spacing: -0.8px;
    }

    .services-hero p {
        font-size: 16px;
        line-height: 1.7;
    }

    .services-intro .section-heading p {
        font-size: 15px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 40px;
    }

    .service-card-image {
        height: 220px;
    }

    .service-card-content {
        padding: 24px 22px 23px;
    }

    .service-card-content h3 {
        font-size: 20px;
    }

    .service-card-content p {
        font-size: 14.5px;
    }

    .services-cta {
        padding: 65px 0;
    }

    .services-cta h2 {
        font-size: 32px;
    }

    .services-cta p {
        font-size: 15px;
    }

    .services-cta-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }

    .services-cta-btn {
        width: 100%;
    }

    .services-cta-phone {
        text-align: center;
    }
}