/* ==========================================================
   APEX AGED CARE
   AGED CARE GUIDE PAGE
========================================================== */

.apex-guide-page,
.apex-guide-page * {
    box-sizing: border-box;
}

.apex-guide-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-guide-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.apex-guide-page a {
    text-decoration: none;
}

.apex-guide-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.apex-guide-section {
    padding: 82px 0;
}

.apex-guide-narrow {
    max-width: 860px;
    text-align: center;
}

.apex-guide-heading {
    max-width: 800px;
    margin: 0 auto 45px;
    text-align: center;
}

.apex-guide-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
}

.apex-guide-page h1,
.apex-guide-page h2,
.apex-guide-page h3,
.apex-guide-page p {
    margin-top: 0;
}

.apex-guide-page h1,
.apex-guide-page h2,
.apex-guide-page h3 {
    color: #073766;
    font-weight: 800;
}

.apex-guide-page h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -1.5px;
}

.apex-guide-page h2 {
    margin-bottom: 16px;
    font-size: clamp(31px, 3.5vw, 43px);
    line-height: 1.13;
}

.apex-guide-page h3 {
    margin-bottom: 10px;
    font-size: 20px;
    line-height: 1.3;
}

.apex-guide-page p {
    color: #5b6877;
    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================
   BUTTONS
========================================================== */

.apex-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 49px;
    padding: 0 25px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    transition: all .25s ease;
}

.apex-btn-primary,
.apex-btn-orange {
    background: #f26100;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(242, 97, 0, .18);
}

.apex-btn-primary:hover,
.apex-btn-orange:hover {
    background: #d95500;
    color: #ffffff !important;
    transform: translateY(-2px);
}

.apex-btn-outline {
    border: 1px solid rgba(255,255,255,.55);
    background: transparent;
    color: #ffffff !important;
}

.apex-btn-outline:hover {
    background: #ffffff;
    color: #073766 !important;
}


/* ==========================================================
   HERO
========================================================== */

.apex-guide-hero {
    background: #f4ecdd;
}

.apex-guide-hero-grid {
    min-height: 600px;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: stretch;
    gap: 0;
}

.apex-guide-hero-content {
    align-self: center;
    padding: 65px 55px 65px 0;
    position: relative;
    z-index: 2;
}

.apex-guide-lead {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: 17px !important;
}

.apex-guide-checks {
    list-style: none;
    padding: 0;
    margin: 0 0 29px;
    display: grid;
    gap: 11px;
}

.apex-guide-checks li {
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}

.apex-guide-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.apex-guide-phone {
    color: #073766;
    font-size: 14px;
    font-weight: 700;
}

.apex-guide-phone:hover {
    color: #f26100;
}

.apex-guide-hero-image {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.apex-guide-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.apex-guide-hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    left: 0;
    width: 90px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f4ecdd 0%,
        rgba(244,236,221,.88) 30%,
        rgba(244,236,221,0) 100%
    );
}


/* ==========================================================
   SOFT BACKGROUND
========================================================== */

.apex-guide-soft {
    background: #fbf7f0;
}


/* ==========================================================
   GUIDE CARDS
========================================================== */

.apex-guide-card-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.apex-guide-card {
    min-height: 260px;
    padding: 30px 24px;
    border: 1px solid #eadfcf;
    border-radius: 18px;
    background: #ffffff;
    transition: all .25s ease;
}

.apex-guide-card:hover {
    transform: translateY(-6px);
    border-color: #d8bd8d;
    box-shadow: 0 18px 40px rgba(7,55,102,.08);
}

.apex-guide-icon {
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #073766;
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.apex-guide-card p {
    margin-bottom: 0;
    font-size: 14px;
    line-height: 1.65;
}


/* ==========================================================
   TWO COLUMN SECTIONS
========================================================== */

.apex-guide-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 65px;
    align-items: center;
}

.apex-guide-content p {
    max-width: 540px;
}

.apex-guide-image img {
    width: 100%;
    height: 440px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 18px 45px rgba(7,55,102,.09);
}


/* ==========================================================
   FUNDING OPTIONS
========================================================== */

.apex-guide-option-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
    max-width: 940px;
    margin: 0 auto;
}

.apex-guide-option {
    padding: 34px 30px;
    border: 1px solid #e6dbc9;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(7,55,102,.05);
}

.apex-guide-option-label {
    display: inline-block;
    margin-bottom: 12px;
    color: #c2964c;
    font-size: 13px;
    font-weight: 700;
}

.apex-guide-option p:last-child {
    margin-bottom: 0;
}


/* ==========================================================
   FEATURE LIST
========================================================== */

.apex-guide-feature-list {
    list-style: none;
    padding: 0;
    margin: 25px 0 0;
    display: grid;
    gap: 14px;
}

.apex-guide-feature-list li {
    padding: 17px 18px;
    border: 1px solid #eadfcf;
    border-radius: 12px;
    background: #ffffff;
}

.apex-guide-feature-list strong {
    display: block;
    margin-bottom: 4px;
    color: #073766;
    font-size: 15px;
}

.apex-guide-feature-list span {
    color: #667383;
    font-size: 14px;
    line-height: 1.55;
}


/* ==========================================================
   APEX SUPPORT / CONTACT CARD
========================================================== */

.apex-guide-support {
    background: #f4ecdd;
}

.apex-guide-contact-card {
    padding: 36px;
    border-radius: 20px;
    background: #073766;
    box-shadow: 0 18px 45px rgba(7,55,102,.15);
}

.apex-guide-contact-card > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #d9b66f;
    font-size: 14px;
    font-weight: 700;
}

.apex-guide-contact-card h3 {
    color: #ffffff;
    font-size: 27px;
}

.apex-guide-contact-card p {
    color: rgba(255,255,255,.78);
}

.apex-guide-contact-card a {
    display: block;
    margin-top: 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.apex-guide-big-phone {
    font-size: 23px !important;
    color: #ffffff !important;
}


/* ==========================================================
   DOWNLOAD SECTION
========================================================== */

.apex-guide-download {
    padding: 82px 0;
    background: #ffffff;
}

.apex-guide-download-box {
    display: grid;
    grid-template-columns: .85fr 1.15fr;
    align-items: center;
    gap: 55px;
    padding: 45px;
    border-radius: 28px;
    background: #f4ecdd;
}

.apex-guide-download-image img {
    width: 100%;
    max-height: 420px;
    object-fit: contain;
}

.apex-guide-download-content h2 {
    max-width: 560px;
}

.apex-guide-download-content p {
    max-width: 560px;
}

.apex-guide-form {
    margin-top: 25px;
    padding: 25px;
    border-radius: 16px;
    background: #ffffff;
}


/* ==========================================================
   FAQ
========================================================== */

.apex-guide-faq-wrap {
    max-width: 900px;
}

.apex-guide-faq {
    display: grid;
    gap: 13px;
}

.apex-guide-faq-item {
    overflow: hidden;
    border: 1px solid #e8dece;
    border-radius: 14px;
    background: #ffffff;
}

.apex-guide-faq-item summary {
    position: relative;
    padding: 21px 58px 21px 23px;
    list-style: none;
    cursor: pointer;
    color: #073766;
    font-size: 16px;
    font-weight: 700;
}

.apex-guide-faq-item summary::-webkit-details-marker {
    display: none;
}

.apex-guide-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 29px;
    height: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #f5ead7;
    color: #073766;
    font-size: 21px;
}

.apex-guide-faq-item[open] summary::after {
    content: "−";
    background: #073766;
    color: #ffffff;
}

.apex-guide-faq-item div {
    padding: 0 23px 22px;
}

.apex-guide-faq-item p {
    margin: 0;
    font-size: 15px;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.apex-guide-final-cta {
    padding: 72px 0;
    text-align: center;
    background: #073766;
}

.apex-guide-final-cta > .apex-guide-container > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #d9b66f;
    font-size: 14px;
    font-weight: 700;
}

.apex-guide-final-cta h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.apex-guide-final-cta p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.78);
}

.apex-guide-final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* ==========================================================
   REVEAL ANIMATION SUPPORT
========================================================== */

.apex-guide-page .apex-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition:
        opacity .7s ease,
        transform .7s ease;
}

.apex-guide-page .apex-reveal.apex-visible {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {

    .apex-guide-hero-grid {
        grid-template-columns: 48% 52%;
        min-height: 550px;
    }

    .apex-guide-hero-content {
        padding-right: 30px;
    }

    .apex-guide-hero-image,
    .apex-guide-hero-image img {
        min-height: 550px;
    }

    .apex-guide-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-guide-two-col {
        gap: 38px;
    }

    .apex-guide-download-box {
        gap: 35px;
    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .apex-guide-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-guide-section,
    .apex-guide-download {
        padding: 56px 0;
    }

    .apex-guide-page h1 {
        font-size: 40px;
    }

    .apex-guide-page h2 {
        font-size: 30px;
    }

    .apex-guide-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .apex-guide-hero-content {
        padding: 55px 0 38px;
        text-align: center;
    }

    .apex-guide-hero-content h1,
    .apex-guide-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-guide-checks {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .apex-guide-actions {
        justify-content: center;
    }

    .apex-guide-hero-image {
        height: 390px;
        min-height: 390px;
    }

    .apex-guide-hero-image img {
        height: 100%;
        min-height: 390px;
        object-fit: cover;
    }

    .apex-guide-hero-image::before {
        display: none;
    }

    .apex-guide-card-grid {
        grid-template-columns: 1fr;
    }

    .apex-guide-two-col,
    .apex-guide-option-grid,
    .apex-guide-download-box {
        grid-template-columns: 1fr;
    }

    .apex-guide-image img {
        height: 340px;
    }

    .apex-guide-download-box {
        padding: 28px 22px;
    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {

    .apex-guide-page h1 {
        font-size: 35px;
    }

    .apex-guide-page h2 {
        font-size: 28px;
    }

    .apex-guide-actions {
        flex-direction: column;
    }

    .apex-guide-actions .apex-btn {
        width: 100%;
    }

    .apex-guide-card,
    .apex-guide-option {
        padding: 25px 20px;
    }

    .apex-guide-contact-card {
        padding: 28px 22px;
    }

    .apex-guide-final-actions {
        flex-direction: column;
    }

    .apex-guide-final-actions .apex-btn {
        width: 100%;
    }

}

@media (prefers-reduced-motion: reduce) {
    .apex-guide-page .apex-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}