/* ==========================================================
   APEX AGED CARE
   FAQ PAGE
========================================================== */

.apex-faq-page,
.apex-faq-page * {
    box-sizing: border-box;
}

.apex-faq-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-faq-page img {
    display: block;
    max-width: 100%;
    height: auto;
}

.apex-faq-page a {
    text-decoration: none;
}

.apex-faq-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
}

.apex-faq-section {
    padding: 82px 0;
}

.apex-faq-center {
    text-align: center;
}

.apex-faq-narrow {
    max-width: 850px;
}

.apex-faq-label,
.apex-faq-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
}

.apex-faq-page h1,
.apex-faq-page h2,
.apex-faq-page h3,
.apex-faq-page p {
    margin-top: 0;
}

.apex-faq-page h1,
.apex-faq-page h2,
.apex-faq-page h3 {
    color: #073766;
    font-weight: 800;
}

.apex-faq-page h1 {
    max-width: 650px;
    margin-bottom: 20px;
    font-size: clamp(44px, 5vw, 64px);
    line-height: 1.04;
    letter-spacing: -1.3px;
}

.apex-faq-page h2 {
    margin-bottom: 16px;
    font-size: clamp(31px, 3.5vw, 43px);
    line-height: 1.13;
}

.apex-faq-page h3 {
    margin-bottom: 10px;
    font-size: 20px;
}

.apex-faq-page p {
    color: #596777;
    font-size: 16px;
    line-height: 1.75;
}


/* ==========================================================
   BUTTONS
========================================================== */

.apex-faq-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-faq-btn-orange {
    background: #f26100;
    color: #ffffff !important;
    box-shadow: 0 9px 22px rgba(242,97,0,.18);
}

.apex-faq-btn-orange:hover {
    background: #d95500;
    transform: translateY(-2px);
}

.apex-faq-btn-navy {
    background: #073766;
    color: #ffffff !important;
}

.apex-faq-btn-navy:hover {
    background: #052c54;
    transform: translateY(-2px);
}

.apex-faq-btn-outline {
    border: 1px solid rgba(255,255,255,.55);
    color: #ffffff !important;
    background: transparent;
}

.apex-faq-btn-outline:hover {
    background: #ffffff;
    color: #073766 !important;
}


/* ==========================================================
   HERO
========================================================== */

.apex-faq-hero {
    background: #f4ecdd;
}

.apex-faq-hero-grid {
    min-height: 600px;
    display: grid;
    grid-template-columns: 46% 54%;
    align-items: stretch;
    gap: 0;
}

.apex-faq-hero-content {
    align-self: center;
    padding: 65px 55px 65px 0;
    position: relative;
    z-index: 3;
}

.apex-faq-hero-content > p {
    max-width: 560px;
    margin-bottom: 24px;
    font-size: 17px;
}

.apex-faq-hero-points {
    display: grid;
    gap: 11px;
    margin-bottom: 29px;
}

.apex-faq-hero-points div {
    color: #17314f;
    font-size: 15px;
    font-weight: 700;
}

.apex-faq-hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
}

.apex-faq-phone {
    color: #073766;
    font-size: 14px;
    font-weight: 700;
}

.apex-faq-phone:hover {
    color: #f26100;
}

.apex-faq-hero-image {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
}

.apex-faq-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 600px;
    max-width: none;
    object-fit: cover;
    object-position: center;
}

.apex-faq-hero-image::before {
    content: "";
    position: absolute;
    z-index: 2;
    left: 0;
    top: 0;
    bottom: 0;
    width: 90px;
    pointer-events: none;
    background: linear-gradient(
        90deg,
        #f4ecdd 0%,
        rgba(244,236,221,.88) 28%,
        rgba(244,236,221,0) 100%
    );
}


/* ==========================================================
   INTRO
========================================================== */

.apex-faq-intro {
    background: #ffffff;
}

.apex-faq-intro p {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}


/* ==========================================================
   CATEGORY NAVIGATION
========================================================== */

.apex-faq-categories {
    padding: 0 0 70px;
    background: #ffffff;
}

.apex-faq-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.apex-faq-category-grid a {
    min-height: 90px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px;
    border: 1px solid #eadfcf;
    border-radius: 15px;
    background: #fbf7f0;
    color: #073766;
    font-size: 15px;
    font-weight: 700;
    transition: all .25s ease;
}

.apex-faq-category-grid a:hover {
    transform: translateY(-4px);
    background: #ffffff;
    border-color: #d8bd8d;
    box-shadow: 0 12px 30px rgba(7,55,102,.07);
}

.apex-faq-category-grid a span {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #073766;
    color: #ffffff;
    font-size: 13px;
}


/* ==========================================================
   FAQ MAIN
========================================================== */

.apex-faq-main {
    background: #fbf7f0;
}

.apex-faq-group {
    max-width: 900px;
    margin: 0 auto 70px;
    scroll-margin-top: 110px;
}

.apex-faq-group:last-child {
    margin-bottom: 0;
}

.apex-faq-group-heading {
    margin-bottom: 28px;
}

.apex-faq-group-heading p {
    max-width: 700px;
    margin-bottom: 0;
}

.apex-faq-list {
    display: grid;
    gap: 13px;
}

.apex-faq-item {
    overflow: hidden;
    border: 1px solid #e6dccd;
    border-radius: 14px;
    background: #ffffff;
    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.apex-faq-item:hover,
.apex-faq-item[open] {
    border-color: #d8bd8d;
    box-shadow: 0 10px 26px rgba(7,55,102,.05);
}

.apex-faq-item summary {
    position: relative;
    padding: 21px 60px 21px 23px;
    list-style: none;
    cursor: pointer;
    color: #073766;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
}

.apex-faq-item summary::-webkit-details-marker {
    display: none;
}

.apex-faq-item summary::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 22px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #f4ecdd;
    color: #073766;
    font-size: 21px;
    font-weight: 500;
}

.apex-faq-item[open] summary::after {
    content: "−";
    background: #073766;
    color: #ffffff;
}

.apex-faq-answer {
    padding: 0 23px 22px;
}

.apex-faq-answer p {
    margin-bottom: 12px;
    max-width: 780px;
    font-size: 15px;
}

.apex-faq-answer p:last-child {
    margin-bottom: 0;
}

.apex-faq-inline-link {
    display: inline-flex;
    margin-top: 4px;
    color: #c2964c;
    font-size: 14px;
    font-weight: 700;
}

.apex-faq-inline-link:hover {
    color: #f26100;
}

.apex-faq-contact-details {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 12px;
}

.apex-faq-contact-details a {
    color: #073766;
    font-size: 14px;
    font-weight: 700;
}


/* ==========================================================
   HELP SECTION
========================================================== */

.apex-faq-help {
    background: #ffffff;
}

.apex-faq-help-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 50px;
}

.apex-faq-help p {
    max-width: 650px;
    margin-bottom: 0;
}

.apex-faq-help-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}


/* ==========================================================
   FINAL CTA
========================================================== */

.apex-faq-final-cta {
    padding: 72px 0;
    text-align: center;
    background: #073766;
}

.apex-faq-final-cta > .apex-faq-container > span {
    display: inline-block;
    margin-bottom: 10px;
    color: #d9b66f;
    font-size: 14px;
    font-weight: 700;
}

.apex-faq-final-cta h2 {
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    color: #ffffff;
}

.apex-faq-final-cta p {
    max-width: 650px;
    margin: 0 auto 28px;
    color: rgba(255,255,255,.78);
}

.apex-faq-final-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 980px) {

    .apex-faq-hero-grid {
        grid-template-columns: 48% 52%;
        min-height: 550px;
    }

    .apex-faq-hero-content {
        padding-right: 30px;
    }

    .apex-faq-hero-image,
    .apex-faq-hero-image img {
        min-height: 550px;
    }

    .apex-faq-category-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .apex-faq-help-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767px) {

    .apex-faq-container {
        padding-left: 18px;
        padding-right: 18px;
    }

    .apex-faq-section {
        padding: 56px 0;
    }

    .apex-faq-page h1 {
        font-size: 40px;
    }

    .apex-faq-page h2 {
        font-size: 30px;
    }

    .apex-faq-hero-grid {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .apex-faq-hero-content {
        padding: 55px 0 38px;
        text-align: center;
    }

    .apex-faq-hero-content h1,
    .apex-faq-hero-content > p {
        margin-left: auto;
        margin-right: auto;
    }

    .apex-faq-hero-points {
        max-width: 450px;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .apex-faq-hero-actions {
        justify-content: center;
    }

    .apex-faq-hero-image {
        min-height: 390px;
        height: 390px;
    }

    .apex-faq-hero-image img {
        min-height: 390px;
        height: 100%;
    }

    .apex-faq-hero-image::before {
        display: none;
    }

    .apex-faq-category-grid {
        grid-template-columns: 1fr;
    }

    .apex-faq-group {
        margin-bottom: 55px;
    }

    .apex-faq-help {
        text-align: center;
    }

    .apex-faq-help-actions {
        justify-content: center;
    }
}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width: 520px) {

    .apex-faq-page h1 {
        font-size: 35px;
    }

    .apex-faq-page h2 {
        font-size: 28px;
    }

    .apex-faq-hero-actions {
        flex-direction: column;
    }

    .apex-faq-hero-actions .apex-faq-btn {
        width: 100%;
    }

    .apex-faq-item summary {
        padding: 18px 54px 18px 18px;
        font-size: 15px;
    }

    .apex-faq-answer {
        padding: 0 18px 20px;
    }

    .apex-faq-final-actions,
    .apex-faq-help-actions {
        flex-direction: column;
    }

    .apex-faq-final-actions .apex-faq-btn,
    .apex-faq-help-actions .apex-faq-btn {
        width: 100%;
    }
}