/* =========================================
   APEX AGED CARE HOMEPAGE
   REFINED FULL CSS
========================================= */


/* =========================================
   1. GLOBAL
========================================= */

.apex-home,
.apex-home * {
    box-sizing: border-box;
}

.apex-home {
    width: 100vw;
    max-width: none !important;
    margin: 0;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0;
    overflow: hidden;
    font-family: Arial, sans-serif;
    color: #34253e;
    background: #ffffff;
}

.apex-home section {
    width: 100%;
    max-width: none !important;
}

.apex-home img {
    display: block;
    max-width: 100%;
    height: auto;
}

.apex-home a {
    text-decoration: none;
}

.apex-home-container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.apex-home-section {
    padding: 64px 0;
}

.apex-home-center {
    text-align: center;
}


/* =========================================
   2. TYPOGRAPHY
========================================= */

.apex-home h1,
.apex-home h2,
.apex-home h3,
.apex-home p {
    margin-top: 0;
}

.apex-home h1,
.apex-home h2,
.apex-home h3 {
    color: #772697;
    font-weight: 800;
}

.apex-home h1 {
    font-size: clamp(42px, 4.2vw, 62px);
    line-height: 1.05;
    margin-bottom: 18px;
}

.apex-home h2 {
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.12;
    margin-bottom: 16px;
}

.apex-home h3 {
    font-size: 18px;
    line-height: 1.3;
}

.apex-home p {
    color: #62556a;
    font-size: 15px;
    line-height: 1.7;
}

.apex-home-section-label,
.apex-home-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #ef650c;
    font-size: 13px;
    font-weight: 700;
}

.apex-home-section-intro {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.apex-home-heading-area {
    margin-bottom: 35px;
}


/* =========================================
   3. BUTTONS
========================================= */

.apex-home-btn {
    min-height: 43px;
    padding: 0 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 700;
    transition:
        background-color .25s ease,
        transform .25s ease;
}

.apex-home-btn-orange {
    background: #ef650c;
    color: #ffffff !important;
}

.apex-home-btn-orange:hover {
    background: #d95800;
    transform: translateY(-2px);
}

.apex-home-btn-purple {
    background: #772697;
    color: #ffffff !important;
}

.apex-home-btn-purple:hover {
    background: #5f1c7b;
}


/* =========================================
   4. HERO
========================================= */

.apex-home-hero {
    position: relative;
    overflow: hidden;
    background: #fde0d2;
}

.apex-home-hero-grid {
    min-height: 500px;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: center;
    gap: 20px;
    padding-top: 45px;
    padding-bottom: 0;
}

.apex-home-hero-content {
    position: relative;
    z-index: 3;
    padding-bottom: 45px;
}

.apex-home-hero-text {
    max-width: 500px;
    margin-bottom: 20px;
    font-size: 17px !important;
    line-height: 1.55 !important;
}


/* Hero Checklist */

.apex-home-check-list {
    list-style: none;
    padding: 0;
    margin: 0 0 25px;
}

.apex-home-check-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #4e3a55;
    font-size: 14px;
    font-weight: 600;
}

.apex-home-check {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #782497;
    color: #ffffff;
    font-size: 11px;
}


/* Hero Buttons */

.apex-home-hero-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.apex-home-call-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #762497;
    font-size: 14px;
    font-weight: 700;
}

.apex-home-call-icon {
    width: 18px;
    height: 18px;
}

.apex-home-call-icon svg {
    width: 100%;
    height: 100%;
    fill: #762497;
}


/* Hero Image */

.apex-home-hero-image-wrap {
    position: relative;
    min-height: 500px;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.apex-home-hero-image {
    position: relative;
    z-index: 2;
    width: auto;
    height: 500px;
    max-width: 100%;
    object-fit: contain;
    object-position: bottom center;
}


/* Hero Decorative Shapes */

.apex-home-shape-one {
    position: absolute;
    z-index: 1;
    width: 570px;
    height: 180px;
    left: -185px;
    bottom: 10px;
    border: 15px solid #762497;
    border-radius: 50%;
    transform: rotate(12deg);
}

.apex-home-shape-two {
    position: absolute;
    z-index: 1;
    width: 470px;
    height: 150px;
    right: -185px;
    top: 70px;
    border: 15px solid #eb5f26;
    border-radius: 50%;
    transform: rotate(-25deg);
}


/* =========================================
   5. TRUST STRIP
========================================= */

.apex-home-trust-strip {
    background: #ffffff;
    padding: 19px 0;
    border-bottom: 1px solid #f1edf2;
}

.apex-home-trust-content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: #6b5971;
    font-size: 13px;
}

.apex-home-trust-content strong {
    color: #772697;
}

.apex-home-stars,
.apex-home-review-stars {
    color: #ef650c;
    letter-spacing: 2px;
}


/* =========================================
   6. INTRO SECTION
========================================= */

.apex-home-intro {
    background: #ffffff;
    padding-top: 55px;
    padding-bottom: 60px;
}

.apex-home-intro .apex-home-container {
    max-width: 820px;
}

.apex-home-intro p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.apex-home-intro .apex-home-btn {
    margin-top: 10px;
}


/* =========================================
   7. SUPPORT AT HOME
========================================= */

.apex-home-support {
    background: #fde9df;
}

.apex-home-two-column {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 65px;
    align-items: center;
}

.apex-home-support-content {
    padding: 10px 0;
}

.apex-home-support-content h2 {
    max-width: 420px;
}

.apex-home-support-image img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    border-radius: 7px;
}


/* =========================================
   8. SERVICES
========================================= */

.apex-home-services {
    background: #ffffff;
}

.apex-home-services-grid {
    max-width: 900px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    column-gap: 25px;
    row-gap: 30px;
}

.apex-home-service-card {
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
    display: block;
    transition: transform .25s ease;
}

.apex-home-service-card:hover {
    transform: translateY(-4px);
}

.apex-home-service-icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 9px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
}

.apex-home-service-icon svg {
    width: 50px;
    height: 50px;
    fill: none;
    stroke: #a13bc0;
    stroke-width: 1.7;
    transition: stroke .25s ease;
}

.apex-home-service-card:hover .apex-home-service-icon svg {
    stroke: #ef650c;
}

.apex-home-service-card h3 {
    margin: 0;
    color: #762497;
    font-size: 13px;
    line-height: 1.2;
}

.apex-home-service-card p {
    display: none;
}

.apex-home-services-button {
    margin-top: 32px;
}


/* =========================================
   9. ACCESS CARE
========================================= */

.apex-home-access {
    background: #fff8f4;
}

.apex-home-access-grid {
    max-width: 760px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
}

.apex-home-access-card {
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.apex-home-access-card:hover {
    transform: none;
    box-shadow: none;
}

.apex-home-access-image img {
    width: 100%;
    height: 225px;
    object-fit: cover;
    border-radius: 7px;
}

.apex-home-access-content {
    padding: 16px 15px 0;
    text-align: center;
}

.apex-home-access-content h3 {
    margin-bottom: 7px;
    font-size: 19px;
}

.apex-home-access-content p {
    font-size: 14px;
    line-height: 1.55;
}


/* =========================================
   10. WHY CHOOSE APEX
========================================= */

.apex-home-why {
    background: #ffffff;
}

.apex-home-why-grid {
    max-width: 900px;
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    gap: 60px;
    align-items: center;
}

.apex-home-why-content h2 {
    font-size: 30px;
}

.apex-home-benefit-list {
    list-style: none;
    padding: 0;
    margin: 22px 0 26px;
}

.apex-home-benefit-list li {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 10px;
    color: #55445c;
    font-size: 14px;
}

.apex-home-benefit-list li span {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #772697;
    color: #ffffff;
    font-size: 9px;
}


/* =========================================
   11. VIDEO
========================================= */

.apex-home-video-card {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
    background: #000000;
    box-shadow: none;
}

.apex-home-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.apex-home-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}


/* =========================================
   12. REVIEW STRIP
========================================= */

.apex-home-review-strip {
    background: #ffffff;
    padding: 10px 0 25px;
    border: 0;
}

.apex-home-review-line {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: 13px;
}


/* =========================================
   13. FREE GUIDE
========================================= */

.apex-home-guide {
    background: #ffffff;
    padding-top: 35px;
    padding-bottom: 65px;
}

.apex-home-guide-box {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 30px 35px;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 35px;
    align-items: center;
    background: #fde5d9;
    border-radius: 25px;
}

.apex-home-guide-image img {
    width: 100%;
    max-width: 300px;
    margin: 0 auto;
}

.apex-home-guide-form {
    width: 100%;
}


/* =========================================
   14. WP FORMS - FREE GUIDE
========================================= */

.apex-home-guide .wpforms-container {
    margin: 0 !important;
}

.apex-home-guide .wpforms-field {
    padding: 0 0 12px !important;
}

.apex-home-guide .wpforms-field-label {
    color: #67217f !important;
    font-size: 12px !important;
    font-weight: 700 !important;
}

.apex-home-guide input[type="text"],
.apex-home-guide input[type="email"],
.apex-home-guide input[type="tel"],
.apex-home-guide input[type="number"],
.apex-home-guide select,
.apex-home-guide textarea {
    width: 100% !important;
    min-height: 41px !important;
    border: 1px solid #b969ca !important;
    border-radius: 5px !important;
    background: #ffffff !important;
}

.apex-home-guide button[type="submit"],
.apex-home-guide .wpforms-submit {
    min-height: 42px !important;
    padding: 0 28px !important;
    border: 0 !important;
    border-radius: 30px !important;
    background: #ef650c !important;
    color: #ffffff !important;
    font-weight: 700 !important;
}


/* =========================================
   15. FAQ SECTION
========================================= */

.apex-home-faq {
    background: #fff8f4;
    padding: 85px 0;
}

.apex-home-faq-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 75px;
    align-items: start;
}


/* FAQ Left Content */

.apex-home-faq-intro {
    position: sticky;
    top: 100px;
}

.apex-home-faq-intro h2 {
    max-width: 400px;
    margin-bottom: 20px;
    font-size: 36px;
    line-height: 1.12;
}

.apex-home-faq-intro p {
    max-width: 400px;
    margin-bottom: 27px;
    font-size: 15px;
    line-height: 1.7;
}


/* FAQ List */

.apex-home-faq-list {
    width: 100%;
}

.apex-home-faq-item {
    margin-bottom: 14px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #f0dcd2;
    border-radius: 14px;
    transition:
        border-color .25s ease,
        box-shadow .25s ease;
}

.apex-home-faq-item:hover {
    border-color: #e3c3e9;
}

.apex-home-faq-item.is-open {
    border-color: #d9b4e2;
    box-shadow: 0 10px 30px rgba(119, 38, 151, .07);
}


/* FAQ Question */

.apex-home-faq-question {
    width: 100%;
    min-height: 70px;
    padding: 18px 20px;
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    cursor: pointer;
    text-align: left;
    color: #772697;
    font-family: inherit;
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    transition: color .25s ease;
}

.apex-home-faq-question:hover {
    color: #ef650c;
}

.apex-home-faq-question:focus-visible {
    outline: 2px solid #772697;
    outline-offset: -4px;
}


/* FAQ Plus / Minus Icon */

.apex-home-faq-icon {
    position: relative;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background: #fde3d6;
    transition: background .25s ease;
}

.apex-home-faq-icon::before,
.apex-home-faq-icon::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 2px;
    border-radius: 2px;
    background: #772697;
    transform: translate(-50%, -50%);
    transition:
        transform .25s ease,
        background .25s ease;
}

.apex-home-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.apex-home-faq-item.is-open .apex-home-faq-icon {
    background: #772697;
}

.apex-home-faq-item.is-open .apex-home-faq-icon::before,
.apex-home-faq-item.is-open .apex-home-faq-icon::after {
    background: #ffffff;
}

.apex-home-faq-item.is-open .apex-home-faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}


/* FAQ Answer */

.apex-home-faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .35s ease;
}

.apex-home-faq-item.is-open .apex-home-faq-answer {
    grid-template-rows: 1fr;
}

.apex-home-faq-answer-inner {
    overflow: hidden;
}

.apex-home-faq-answer p {
    margin: 0;
    padding: 0 65px 22px 20px;
    color: #62556a;
    font-size: 14px;
    line-height: 1.7;
}


/* =========================================
   16. FINAL CTA
========================================= */

.apex-home-final-cta {
    width: 100%;
    padding: 80px 20px;
    overflow: hidden;
    background: #fbe1d3;
}

.apex-home-final-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    align-items: center;
    gap: 60px;
}


/* Final CTA Image */

.apex-home-final-image {
    width: 100%;
    height: 470px;
    overflow: hidden;
    border-radius: 22px;

    /* Requested position */
    transform: translateY(45px);
}

.apex-home-final-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}


/* Final CTA Content */

.apex-home-final-content {
    max-width: 590px;

    /* Requested position */
    transform: translateY(-45px);
}

.apex-home-final-content .apex-home-section-label {
    display: inline-block;
    margin-bottom: 14px;
}

.apex-home-final-content h2 {
    max-width: 520px;
    margin: 0 0 20px;
    line-height: 1.08;
}

.apex-home-final-content p {
    max-width: 570px;
    margin: 0 0 28px;
    line-height: 1.7;
}

.apex-home-final-content .apex-home-btn {
    width: auto !important;
    min-width: 180px;
    padding: 15px 30px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}


/* Final CTA Phone */

.apex-home-final-phone {
    width: fit-content;
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 9px;
    color: #772697;
    font-size: 14px;
    font-weight: 700;
}

.apex-home-final-phone svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    fill: #772697;
}


/* =========================================
   17. ELEMENTOR / THEME WIDTH FIX
========================================= */

body .elementor,
body .elementor-section-wrap,
body .elementor-widget-wrap,
body .elementor-widget-container {
    max-width: none;
}


/* =========================================
   18. TABLET - MAX 991PX
========================================= */

@media (max-width: 991px) {

    .apex-home-final-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px;
    }

    .apex-home-final-image {
        height: 420px;
    }

}


/* =========================================
   19. TABLET - MAX 950PX
========================================= */

@media (max-width: 950px) {

    .apex-home-hero-grid {
        grid-template-columns: 1fr 1fr;
    }

    .apex-home-services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .apex-home-two-column,
    .apex-home-why-grid {
        gap: 35px;
    }

    .apex-home-faq-grid {
        grid-template-columns: .85fr 1.15fr;
        gap: 40px;
    }

    .apex-home-faq-intro h2 {
        font-size: 32px;
    }

}


/* =========================================
   20. MOBILE - MAX 767PX
========================================= */

@media (max-width: 767px) {

    /* Global */

    .apex-home-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-home-section {
        padding: 50px 0;
    }


    /* Hero */

    .apex-home-hero-grid,
    .apex-home-two-column,
    .apex-home-why-grid,
    .apex-home-guide-box {
        grid-template-columns: 1fr;
    }

    .apex-home-hero-grid {
        padding-top: 45px;
        text-align: center;
    }

    .apex-home-hero-content {
        padding-bottom: 0;
    }

    .apex-home-hero-text {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-home-check-list {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .apex-home-hero-buttons {
        justify-content: center;
    }

    .apex-home-hero-image-wrap {
        min-height: 350px;
    }

    .apex-home-hero-image {
        height: 350px;
    }


    /* Services */

    .apex-home-services-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px 15px;
    }


    /* Access Care */

    .apex-home-access-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
    }


    /* Support */

    .apex-home-support-image img {
        height: 290px;
    }


    /* Why Choose */

    .apex-home-why-content {
        text-align: center;
    }

    .apex-home-benefit-list {
        max-width: 430px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }


    /* Guide */

    .apex-home-guide-box {
        padding: 25px 20px;
    }


    /* FAQ */

    .apex-home-faq {
        padding: 60px 0;
    }

    .apex-home-faq-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .apex-home-faq-intro {
        position: static;
        text-align: center;
    }

    .apex-home-faq-intro h2,
    .apex-home-faq-intro p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .apex-home-faq-intro h2 {
        font-size: 30px;
    }

    .apex-home-faq-question {
        min-height: 65px;
        padding: 16px;
        gap: 15px;
        font-size: 15px;
    }

    .apex-home-faq-answer p {
        padding: 0 55px 18px 16px;
    }

    .apex-home-faq-icon {
        width: 30px;
        height: 30px;
        min-width: 30px;
    }


    /* Final CTA */

    .apex-home-final-cta {
        padding: 55px 20px;
    }

    .apex-home-final-grid {
        grid-template-columns: 1fr;
        gap: 35px;
        text-align: center;
    }

    .apex-home-final-content {
        order: 1;
        max-width: 100%;
        transform: none;
    }

    .apex-home-final-image {
        order: 2;
        height: 330px;
        border-radius: 18px;
        transform: none;
    }

    .apex-home-final-content h2,
    .apex-home-final-content p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .apex-home-final-phone {
        margin-left: auto;
        margin-right: auto;
    }

}


/* =========================================
   21. SMALL MOBILE - MAX 520PX
========================================= */

@media (max-width: 520px) {

    .apex-home h1 {
        font-size: 36px;
    }

    .apex-home h2 {
        font-size: 28px;
    }

    .apex-home-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-home-hero-buttons {
        flex-direction: column;
    }

    .apex-home-hero-buttons .apex-home-btn {
        width: 100%;
    }

}


/* =========================================
   22. EXTRA SMALL MOBILE - MAX 480PX
========================================= */

@media (max-width: 480px) {

    .apex-home-faq-intro h2 {
        font-size: 28px;
    }

    .apex-home-faq-question {
        font-size: 14px;
    }

}