/* =========================================
   APEX AGED CARE
   SERVICES PAGE
========================================= */

.apex-services-page,
.apex-services-page * {
    box-sizing: border-box;
}

.apex-services-page {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    background: #ffffff;
    color: #17314f;
    font-family: Arial, sans-serif;
}

.apex-services-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.apex-services-page a {
    text-decoration: none;
}

.apex-services-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.apex-services-section {
    padding: 80px 0;
}

.apex-services-center {
    text-align: center;
}

.apex-services-label,
.apex-services-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
}

.apex-services-page h1,
.apex-services-page h2,
.apex-services-page h3,
.apex-services-page p {
    margin-top: 0;
}

.apex-services-page h1,
.apex-services-page h2,
.apex-services-page h3 {
    color: #073766;
    font-weight: 800;
}

.apex-services-page h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(42px, 5vw, 64px);
    line-height: 1.06;
}

.apex-services-page h2 {
    margin-bottom: 16px;
    font-size: clamp(30px, 3.5vw, 43px);
    line-height: 1.13;
}

.apex-services-page h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.apex-services-page p {
    color: #566474;
    font-size: 16px;
    line-height: 1.75;
}

.apex-services-heading {
    max-width: 800px;
    margin: 0 auto 45px;
}


/* =========================================
   BUTTONS
========================================= */

.apex-services-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.apex-services-btn-orange {
    background: #f26100;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(242, 97, 0, .17);
}

.apex-services-btn-orange:hover {
    background: #d95500;
    transform: translateY(-2px);
}

.apex-services-btn-outline {
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
    color: #ffffff !important;
}

.apex-services-btn-outline:hover {
    background: #ffffff;
    color: #073766 !important;
}


/* =========================================
   HERO
========================================= */

.apex-services-hero {
    background: #f4ecdd;
}

.apex-services-hero-grid {
    min-height: 590px;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: stretch;
    gap: 0;
}

.apex-services-hero-content {
    align-self: center;
    padding: 65px 55px 65px 0;
    position: relative;
    z-index: 2;
}

.apex-services-hero-content > p {
    max-width: 570px;
    margin-bottom: 24px;
    font-size: 17px;
}

.apex-services-hero-points {
    display: grid;
    gap: 11px;
    margin-bottom: 28px;
}

.apex-services-hero-points div {
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}

.apex-services-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.apex-services-phone {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #073766;
    font-size: 14px;
    font-weight: 700;
}

.apex-services-phone svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.apex-services-hero-image {
    position: relative;
    width: 100%;
    min-height: 590px;
    overflow: hidden;
}

.apex-services-hero-image img {
    width: 100%;
    height: 100%;
    max-width: none;
    object-fit: cover;
    object-position: center center;
}

.apex-services-hero-image::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 80px;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f4ecdd 0%,
        rgba(244,236,221,.86) 30%,
        rgba(244,236,221,0) 100%
    );
}


/* =========================================
   INTRO
========================================= */

.apex-services-intro {
    background: #ffffff;
}

.apex-services-intro .apex-services-container {
    max-width: 850px;
}

.apex-services-intro p {
    max-width: 760px;
    margin: 0 auto;
}


/* =========================================
   SERVICES GRID
========================================= */

.apex-services-list-section {
    background: #fbf7f0;
}

.apex-services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.apex-services-card {
    position: relative;
    min-height: 310px;
    padding: 30px 26px;
    background: #ffffff;
    border: 1px solid #eadfcf;
    border-radius: 18px;
    transition: all .25s ease;
}

.apex-services-card:hover {
    transform: translateY(-6px);
    border-color: #d8bd8d;
    box-shadow: 0 18px 40px rgba(7,55,102,.08);
}

.apex-services-icon {
    width: 66px;
    height: 66px;
    margin-bottom: 18px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5ead7;
}

.apex-services-icon svg {
    width: 40px;
    height: 40px;
    fill: none;
    stroke: #073766;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.apex-services-card p {
    min-height: 92px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.65;
}

.apex-services-card-link {
    display: inline-flex;
    align-items: center;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
    transition: color .2s ease;
}

.apex-services-card-link:hover {
    color: #f26100;
}


/* =========================================
   HOW WE SUPPORT
========================================= */

.apex-services-how {
    background: #ffffff;
}

.apex-services-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.apex-services-how-image img {
    width: 100%;
    height: 430px;
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 18px 45px rgba(7,55,102,.09);
}

.apex-services-how-content p {
    max-width: 530px;
}

.apex-services-check-list {
    list-style: none;
    padding: 0;
    margin: 26px 0 30px;
}

.apex-services-check-list li {
    margin-bottom: 12px;
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}


/* =========================================
   FUNDING
========================================= */

.apex-services-funding {
    background: #f4ecdd;
}

.apex-services-funding-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 900px;
    margin: 0 auto;
}

.apex-services-funding-card {
    padding: 34px 30px;
    background: #ffffff;
    border: 1px solid #e7dbc8;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(7,55,102,.05);
}

.apex-services-funding-card p {
    font-size: 15px;
}

.apex-services-funding-card a {
    display: inline-flex;
    margin-top: 8px;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
}

.apex-services-funding-card a:hover {
    color: #f26100;
}


/* =========================================
   WHY CHOOSE APEX
========================================= */

.apex-services-why {
    background: #ffffff;
}

.apex-services-benefits {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.apex-services-benefits > div {
    padding: 30px 24px;
    border: 1px solid #eadfcf;
    border-radius: 16px;
    background: #ffffff;
    text-align: center;
    transition: all .25s ease;
}

.apex-services-benefits > div:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 32px rgba(7,55,102,.07);
}

.apex-services-benefits strong {
    width: 46px;
    height: 46px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #073766;
    color: #ffffff;
    font-size: 14px;
}

.apex-services-benefits p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.6;
}


/* =========================================
   FINAL CTA
========================================= */

.apex-services-final-cta {
    padding: 65px 0;
    background: #073766;
}

.apex-services-final-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.apex-services-final-cta .apex-services-label {
    color: #d7b36e;
}

.apex-services-final-cta h2 {
    color: #ffffff;
    margin-bottom: 12px;
}

.apex-services-final-cta p {
    max-width: 650px;
    margin-bottom: 0;
    color: rgba(255,255,255,.78);
}

.apex-services-final-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 980px) {

    .apex-services-hero-grid {
        grid-template-columns: 48% 52%;
        min-height: 540px;
    }

    .apex-services-hero-content {
        padding-right: 30px;
    }

    .apex-services-hero-image {
        min-height: 540px;
    }

    .apex-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-services-two-column {
        gap: 35px;
    }

    .apex-services-benefits {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-services-final-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 767px) {

    .apex-services-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-services-section {
        padding: 55px 0;
    }

    .apex-services-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .apex-services-hero-content {
        padding: 55px 0 35px;
        text-align: center;
    }

    .apex-services-page h1 {
        margin-left: auto;
        margin-right: auto;
        font-size: 40px;
    }

    .apex-services-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-services-hero-points {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .apex-services-hero-actions {
        justify-content: center;
    }

    .apex-services-hero-image {
        min-height: 380px;
        height: 380px;
    }

    .apex-services-hero-image::before {
        display: none;
    }

    .apex-services-grid {
        grid-template-columns: 1fr;
    }

    .apex-services-two-column {
        grid-template-columns: 1fr;
    }

    .apex-services-how-image img {
        height: 320px;
    }

    .apex-services-funding-grid {
        grid-template-columns: 1fr;
    }

    .apex-services-benefits {
        grid-template-columns: 1fr;
    }

    .apex-services-final-cta {
        text-align: center;
        padding: 55px 0;
    }

    .apex-services-final-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 520px) {

    .apex-services-page h1 {
        font-size: 35px;
    }

    .apex-services-page h2 {
        font-size: 29px;
    }

    .apex-services-card {
        padding: 26px 20px;
        min-height: 0;
    }

    .apex-services-card p {
        min-height: 0;
    }

    .apex-services-hero-actions {
        flex-direction: column;
    }

    .apex-services-hero-actions .apex-services-btn {
        width: 100%;
    }

    .apex-services-final-actions {
        flex-direction: column;
    }

    .apex-services-final-actions .apex-services-btn {
        width: 100%;
    }
}