/* =========================================================
   ELIS DENTAL CLINIC
   FAQ PAGE STYLES
   ========================================================= */


/* =========================================================
   FAQ PAGE VARIABLES
========================================================= */

:root {

    --faq-primary: #087ea4;
    --faq-primary-dark: #05637f;
    --faq-primary-light: #eaf8fc;

    --faq-accent: #18a9d1;
    --faq-white: #ffffff;

    --faq-heading: #123044;
    --faq-text: #607180;
    --faq-muted: #8795a1;

    --faq-border: #e4edf1;

    --faq-bg: #f7fbfc;
    --faq-soft: #eef8fa;

    --faq-shadow:
        0 20px 55px rgba(18, 48, 68, 0.08);

    --faq-shadow-hover:
        0 25px 65px rgba(18, 48, 68, 0.13);

    --faq-radius: 18px;

}


/* =========================================================
   FAQ HERO
========================================================= */

.faq-page-hero {

    position: relative;

    min-height: 500px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(4, 67, 91, 0.97),
            rgba(8, 126, 164, 0.90)
        );

    color: var(--faq-white);

}


.faq-page-hero::before {

    content: "";

    position: absolute;

    inset: 0;

    background:
        radial-gradient(
            circle at 15% 20%,
            rgba(255,255,255,0.10),
            transparent 35%
        ),
        radial-gradient(
            circle at 85% 80%,
            rgba(255,255,255,0.08),
            transparent 35%
        );

    pointer-events: none;

}


.faq-page-hero::after {

    content: "";

    position: absolute;

    width: 500px;
    height: 500px;

    right: -180px;
    top: -180px;

    border: 1px solid rgba(255,255,255,0.10);

    border-radius: 50%;

    box-shadow:
        0 0 0 80px rgba(255,255,255,0.025),
        0 0 0 160px rgba(255,255,255,0.018);

}


.faq-hero-overlay {

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3, 50, 68, 0.35),
            transparent 70%
        );

    pointer-events: none;

}


.faq-hero-content {

    position: relative;

    z-index: 2;

    max-width: 850px;

    padding-top: 75px;
    padding-bottom: 75px;

}


.faq-hero-content .section-tag {

    margin-bottom: 22px;

}


.faq-hero-content h1 {

    margin: 0 0 20px;

    font-family: "Manrope", sans-serif;

    font-size: clamp(
        2.7rem,
        6vw,
        5rem
    );

    line-height: 1.05;

    font-weight: 800;

    letter-spacing: -2px;

}


.faq-hero-content h1 span {

    display: block;

    color: #bceeff;

}


.faq-hero-content p {

    max-width: 680px;

    margin: 0 0 28px;

    font-family: "DM Sans", sans-serif;

    font-size: 1.08rem;

    line-height: 1.8;

    color: rgba(255,255,255,0.88);

}


.faq-breadcrumb {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 11px;

    font-size: 0.9rem;

    color: rgba(255,255,255,0.72);

}


.faq-breadcrumb a {

    color: #ffffff;

    font-weight: 600;

    transition:
        color 0.3s ease;

}


.faq-breadcrumb a:hover {

    color: #bceeff;

}


.faq-breadcrumb i {

    font-size: 0.7rem;

    opacity: 0.7;

}


/* =========================================================
   FAQ INTRODUCTION
========================================================= */

.faq-introduction {

    background: #ffffff;

}


.faq-introduction .section-heading {

    max-width: 850px;

    margin-inline: auto;

}


.faq-introduction .section-heading h2 {

    max-width: 800px;

    margin-inline: auto;

}


.faq-introduction .section-heading p {

    max-width: 700px;

    margin-inline: auto;

}


/* =========================================================
   FAQ MAIN LAYOUT
========================================================= */

.faq-main {

    background:
        linear-gradient(
            180deg,
            #f7fbfc 0%,
            #ffffff 100%
        );

}


.faq-main-grid {

    display: grid;

    grid-template-columns:
        320px
        minmax(0, 1fr);

    gap: 55px;

    align-items: start;

}


/* =========================================================
   FAQ SIDEBAR
========================================================= */

.faq-sidebar {

    position: sticky;

    top: 110px;

    display: flex;

    flex-direction: column;

    gap: 22px;

}


.faq-sidebar-card {

    position: relative;

    padding: 34px 28px;

    border-radius: var(--faq-radius);

    background: #ffffff;

    border: 1px solid var(--faq-border);

    box-shadow: var(--faq-shadow);

    overflow: hidden;

}


.faq-sidebar-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background:
        linear-gradient(
            90deg,
            var(--faq-primary),
            var(--faq-accent)
        );

}


.faq-sidebar-icon {

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 16px;

    background: var(--faq-primary-light);

    color: var(--faq-primary);

    font-size: 1.5rem;

}


.faq-sidebar-card h3 {

    margin: 0 0 12px;

    font-family: "Manrope", sans-serif;

    font-size: 1.35rem;

    color: var(--faq-heading);

}


.faq-sidebar-card > p {

    margin: 0 0 24px;

    font-size: 0.93rem;

    line-height: 1.7;

    color: var(--faq-text);

}


.faq-sidebar-contact {

    display: flex;

    flex-direction: column;

    gap: 11px;

    margin-bottom: 25px;

}


.faq-sidebar-contact a {

    display: flex;

    align-items: center;

    gap: 12px;

    padding: 11px 12px;

    border-radius: 10px;

    background: #f7fafb;

    color: var(--faq-text);

    font-size: 0.88rem;

    font-weight: 600;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;

}


.faq-sidebar-contact a i {

    width: 28px;

    text-align: center;

    color: var(--faq-primary);

    font-size: 1rem;

}


.faq-sidebar-contact a:hover {

    background: var(--faq-primary-light);

    color: var(--faq-primary);

    transform: translateX(4px);

}


.faq-sidebar-card .btn {

    width: 100%;

    justify-content: center;

}


/* =========================================================
   FAQ SIDEBAR INFO
========================================================= */

.faq-sidebar-info {

    padding: 22px;

    border-radius: 16px;

    background: var(--faq-primary);

    box-shadow:
        0 18px 45px rgba(8,126,164,0.18);

}


.faq-info-item {

    display: flex;

    align-items: flex-start;

    gap: 14px;

    padding: 14px 0;

}


.faq-info-item + .faq-info-item {

    border-top:
        1px solid rgba(255,255,255,0.16);

}


.faq-info-item > i {

    flex: 0 0 38px;

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 10px;

    background:
        rgba(255,255,255,0.13);

    color: #ffffff;

}


.faq-info-item div {

    display: flex;

    flex-direction: column;

    gap: 4px;

}


.faq-info-item span {

    color:
        rgba(255,255,255,0.68);

    font-size: 0.72rem;

    font-weight: 700;

    text-transform: uppercase;

    letter-spacing: 0.7px;

}


.faq-info-item strong {

    color: #ffffff;

    font-size: 0.9rem;

    line-height: 1.4;

}


/* =========================================================
   FAQ CONTENT
========================================================= */

.faq-content {

    min-width: 0;

}


.faq-category {

    margin-bottom: 58px;

}


.faq-category:last-child {

    margin-bottom: 0;

}


/* =========================================================
   FAQ CATEGORY HEADING
========================================================= */

.faq-category-heading {

    display: flex;

    align-items: center;

    gap: 18px;

    margin-bottom: 24px;

}


.faq-category-number {

    width: 58px;
    height: 58px;

    flex: 0 0 58px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 15px;

    background: var(--faq-primary-light);

    color: var(--faq-primary);

    font-family: "Manrope", sans-serif;

    font-size: 0.85rem;

    font-weight: 800;

    letter-spacing: 1px;

}


.faq-category-label {

    display: block;

    margin-bottom: 4px;

    color: var(--faq-primary);

    font-size: 0.72rem;

    font-weight: 800;

    letter-spacing: 1.5px;

}


.faq-category-heading h2 {

    margin: 0;

    font-family: "Manrope", sans-serif;

    color: var(--faq-heading);

    font-size: clamp(
        1.45rem,
        2.4vw,
        1.9rem
    );

    line-height: 1.2;

}


/* =========================================================
   FAQ LIST
========================================================= */

.faq-list {

    display: flex;

    flex-direction: column;

    gap: 12px;

}


/* =========================================================
   FAQ ITEM
========================================================= */

.faq-item {

    border: 1px solid var(--faq-border);

    border-radius: 14px;

    background: #ffffff;

    overflow: hidden;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

}


.faq-item:hover {

    border-color:
        rgba(8,126,164,0.28);

    box-shadow:
        0 12px 35px rgba(18,48,68,0.07);

}


.faq-item.active {

    border-color:
        rgba(8,126,164,0.35);

    box-shadow:
        0 15px 40px rgba(8,126,164,0.09);

}


/* =========================================================
   FAQ QUESTION
========================================================= */

.faq-question {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 20px;

    padding: 22px 24px;

    border: 0;

    outline: 0;

    background: #ffffff;

    color: var(--faq-heading);

    text-align: left;

    font-family: "DM Sans", sans-serif;

    font-size: 1rem;

    font-weight: 700;

    line-height: 1.5;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;

}


.faq-question:hover {

    background: #fbfdfe;

}


.faq-item.active .faq-question {

    background:
        linear-gradient(
            90deg,
            #f1fbfd,
            #ffffff
        );

    color: var(--faq-primary);

}


/* =========================================================
   FAQ QUESTION ICON
========================================================= */

.faq-question-icon {

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: var(--faq-primary-light);

    color: var(--faq-primary);

    font-size: 0.85rem;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.35s ease;

}


.faq-item.active .faq-question-icon {

    background: var(--faq-primary);

    color: #ffffff;

    transform: rotate(45deg);

}


/* =========================================================
   FAQ ANSWER
========================================================= */

.faq-answer {

    display: grid;

    grid-template-rows: 0fr;

    transition:
        grid-template-rows 0.4s ease;

}


.faq-answer p {

    min-height: 0;

    overflow: hidden;

    margin: 0;

    padding:
        0 24px;

    color: var(--faq-text);

    font-size: 0.94rem;

    line-height: 1.8;

    opacity: 0;

    transition:
        padding 0.4s ease,
        opacity 0.3s ease;

}


.faq-item.active .faq-answer {

    grid-template-rows: 1fr;

}


.faq-item.active .faq-answer p {

    padding:
        0 24px 23px;

    opacity: 1;

}


/* =========================================================
   FAQ CONTACT CTA
========================================================= */

.faq-contact-cta {

    position: relative;

    overflow: hidden;

    padding: 70px 0;

    background:
        linear-gradient(
            135deg,
            #075e7b,
            #078aad
        );

    color: #ffffff;

}


.faq-contact-cta::before {

    content: "";

    position: absolute;

    width: 400px;
    height: 400px;

    right: -160px;
    top: -180px;

    border: 1px solid
        rgba(255,255,255,0.12);

    border-radius: 50%;

}


.faq-contact-cta::after {

    content: "";

    position: absolute;

    width: 250px;
    height: 250px;

    left: -120px;
    bottom: -130px;

    border: 1px solid
        rgba(255,255,255,0.08);

    border-radius: 50%;

}


.faq-contact-cta-content {

    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        80px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 28px;

}


.faq-cta-icon {

    width: 72px;
    height: 72px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 20px;

    background:
        rgba(255,255,255,0.12);

    border:
        1px solid rgba(255,255,255,0.16);

    color: #ffffff;

    font-size: 1.65rem;

}


.faq-cta-text .section-tag {

    margin-bottom: 12px;

}


.faq-cta-text h2 {

    margin: 0 0 10px;

    color: #ffffff;

    font-family: "Manrope", sans-serif;

    font-size: clamp(
        1.8rem,
        3vw,
        2.6rem
    );

    line-height: 1.15;

}


.faq-cta-text h2 span {

    color: #bceeff;

}


.faq-cta-text p {

    max-width: 580px;

    margin: 0;

    color:
        rgba(255,255,255,0.78);

    font-size: 0.95rem;

    line-height: 1.7;

}


.faq-cta-buttons {

    display: flex;

    align-items: center;

    gap: 12px;

    flex-wrap: wrap;

}


/* =========================================================
   FAQ CTA BUTTONS
========================================================= */

.faq-cta-buttons .btn {

    white-space: nowrap;

}


.faq-contact-cta .btn-white {

    color: var(--faq-primary);

}


.faq-contact-cta .btn-outline-white {

    color: #ffffff;

    border:
        1px solid rgba(255,255,255,0.55);

    background: transparent;

}


.faq-contact-cta .btn-outline-white:hover {

    background: #ffffff;

    color: var(--faq-primary);

}


/* =========================================================
   FINAL CTA
========================================================= */

.final-cta {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #edf9fc,
            #ffffff
        );

    border-top:
        1px solid var(--faq-border);

    border-bottom:
        1px solid var(--faq-border);

}


.final-cta::before {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -130px;
    top: -150px;

    border:
        1px solid rgba(8,126,164,0.08);

    border-radius: 50%;

}


.final-cta-content {

    position: relative;

    z-index: 2;

    min-height: 260px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 35px;

}


.final-cta-content .section-tag {

    margin-bottom: 12px;

}


.final-cta-content h2 {

    margin: 0;

    max-width: 650px;

    font-family: "Manrope", sans-serif;

    color: var(--faq-heading);

    font-size: clamp(
        2rem,
        4vw,
        3.1rem
    );

    line-height: 1.1;

}


.final-cta-content h2 span {

    color: var(--faq-primary);

}


.final-cta-content .btn {

    flex-shrink: 0;

}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.faq-question:focus-visible {

    outline:
        3px solid rgba(8,126,164,0.22);

    outline-offset: -3px;

}


.faq-sidebar-contact a:focus-visible,
.faq-breadcrumb a:focus-visible,
.faq-cta-buttons a:focus-visible {

    outline:
        3px solid rgba(8,126,164,0.25);

    outline-offset: 3px;

}


/* =========================================================
   LARGE TABLETS
========================================================= */

@media (max-width: 1100px) {

    .faq-main-grid {

        grid-template-columns:
            280px
            minmax(0, 1fr);

        gap: 35px;

    }


    .faq-sidebar-card {

        padding: 28px 22px;

    }


    .faq-contact-cta-content {

        grid-template-columns:
            70px
            minmax(0, 1fr);

    }


    .faq-cta-buttons {

        grid-column: 2;

    }

}


/* =========================================================
   TABLETS
========================================================= */

@media (max-width: 900px) {

    .faq-page-hero {

        min-height: 450px;

    }


    .faq-main-grid {

        grid-template-columns: 1fr;

        gap: 40px;

    }


    .faq-sidebar {

        position: static;

        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            minmax(250px, 0.7fr);

        gap: 20px;

    }


    .faq-sidebar-card {

        height: 100%;

    }


    .faq-sidebar-info {

        height: fit-content;

    }


    .faq-contact-cta-content {

        grid-template-columns:
            70px
            minmax(0, 1fr);

    }


    .faq-cta-buttons {

        grid-column: 2;

    }


    .final-cta-content {

        min-height: 230px;

    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .faq-page-hero {

        min-height: 430px;

    }


    .faq-hero-content {

        padding-top: 60px;
        padding-bottom: 60px;

    }


    .faq-hero-content h1 {

        font-size: clamp(
            2.35rem,
            11vw,
            3.2rem
        );

        letter-spacing: -1.2px;

    }


    .faq-hero-content p {

        font-size: 0.95rem;

        line-height: 1.7;

    }


    .faq-main {

        padding-top: 55px;
        padding-bottom: 55px;

    }


    .faq-sidebar {

        display: flex;

        flex-direction: column;

    }


    .faq-sidebar-card {

        padding: 28px 22px;

    }


    .faq-category {

        margin-bottom: 45px;

    }


    .faq-category-heading {

        align-items: flex-start;

        gap: 14px;

    }


    .faq-category-number {

        width: 48px;
        height: 48px;

        flex-basis: 48px;

        border-radius: 13px;

        font-size: 0.75rem;

    }


    .faq-category-heading h2 {

        font-size: 1.35rem;

    }


    .faq-category-label {

        font-size: 0.65rem;

    }


    .faq-question {

        padding: 18px 17px;

        gap: 14px;

        font-size: 0.92rem;

    }


    .faq-question-icon {

        width: 34px;
        height: 34px;

        flex-basis: 34px;

        font-size: 0.75rem;

    }


    .faq-item.active .faq-answer p {

        padding:
            0 17px 20px;

        font-size: 0.9rem;

        line-height: 1.75;

    }


    .faq-contact-cta {

        padding: 55px 0;

    }


    .faq-contact-cta-content {

        display: flex;

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;

    }


    .faq-cta-icon {

        width: 62px;
        height: 62px;

        border-radius: 17px;

        font-size: 1.35rem;

    }


    .faq-cta-text h2 {

        font-size: 2rem;

    }


    .faq-cta-buttons {

        width: 100%;

        display: flex;

        flex-direction: column;

        align-items: stretch;

    }


    .faq-cta-buttons .btn {

        width: 100%;

        justify-content: center;

    }


    .final-cta-content {

        min-height: auto;

        padding-top: 55px;
        padding-bottom: 55px;

        flex-direction: column;

        align-items: flex-start;

    }


    .final-cta-content h2 {

        font-size: 2rem;

    }


    .final-cta-content .btn {

        width: 100%;

        justify-content: center;

    }

}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 480px) {

    .faq-page-hero {

        min-height: 410px;

    }


    .faq-hero-content {

        padding-top: 50px;
        padding-bottom: 50px;

    }


    .faq-hero-content h1 {

        font-size: 2.15rem;

    }


    .faq-hero-content p {

        font-size: 0.9rem;

    }


    .faq-breadcrumb {

        font-size: 0.8rem;

    }


    .faq-introduction {

        padding-top: 50px;
        padding-bottom: 40px;

    }


    .faq-category-heading {

        gap: 11px;

    }


    .faq-category-number {

        width: 43px;
        height: 43px;

        flex-basis: 43px;

    }


    .faq-category-heading h2 {

        font-size: 1.2rem;

    }


    .faq-question {

        padding: 16px 14px;

        font-size: 0.88rem;

    }


    .faq-question-icon {

        width: 31px;
        height: 31px;

        flex-basis: 31px;

    }


    .faq-item.active .faq-answer p {

        padding:
            0 14px 18px;

        font-size: 0.86rem;

    }


    .faq-sidebar-card {

        padding: 25px 18px;

    }


    .faq-sidebar-info {

        padding: 18px;

    }


    .faq-contact-cta {

        padding: 48px 0;

    }


    .faq-cta-text h2 {

        font-size: 1.8rem;

    }


    .faq-cta-text p {

        font-size: 0.88rem;

    }


    .final-cta-content h2 {

        font-size: 1.8rem;

    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-question,
    .faq-question-icon,
    .faq-answer,
    .faq-answer p,
    .faq-sidebar-contact a {

        transition: none;

    }

}