/* FAQ Page Styles */

/* ── FAQ hero ── */
.faq-hero {
    padding: 140px 0 60px;
    background-color: var(--black);
    color: var(--white);
}

.faq-hero__title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    line-height: 1.1;
    color: var(--white);
    animation: fadeInUp 1s ease-out;
}

.faq-hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.75);
    max-width: 700px;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.2s both;
}

/* ── FAQ content area ── */
.faq-content {
    padding: 60px 0 80px;
    background-color: var(--white);
}

/* ── FAQ toolbar ── */
.faq-toolbar {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.faq-expand-all {
    background: none;
    border: 1px solid var(--gray-medium);
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-dark);
    cursor: pointer;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.faq-expand-all:hover {
    color: var(--orange);
    border-color: var(--orange);
}

/* ── FAQ sections ── */
.faq-section {
    margin-bottom: 3rem;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section__title {
    font-size: 1.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--orange);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--orange);
}

/* ── FAQ items (accordion) ── */
.faq-item {
    border-bottom: 1px solid var(--gray-medium);
}

.faq-item__question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--black);
    text-align: left;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.faq-item__question:hover {
    color: var(--orange);
}

.faq-item__icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-left: 1.5rem;
    transition: transform 0.3s ease;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    transform: rotate(45deg);
}

.faq-item__answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item__answer::after {
    content: '';
    display: block;
    height: 2.5rem;
}

.faq-item__answer p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1rem;
}

.faq-item__answer p:last-child {
    margin-bottom: 0;
}

.faq-item__answer a {
    color: var(--orange);
    text-decoration: underline;
    font-weight: 500;
}

.faq-item__answer a:hover {
    opacity: 0.8;
}

/* ── Contact section at bottom ── */
.faq-contact {
    padding: 80px 0;
    background-color: var(--black);
    color: var(--white);
}

.faq-contact__content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.faq-contact__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
    color: var(--white);
}

.faq-contact__text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
}

.faq-contact__details {
    padding-top: 1rem;
}

.faq-contact__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.faq-contact__role {
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1rem;
}

.faq-contact__links {
    font-size: 1.25rem;
    font-weight: 500;
}

.faq-contact__links a {
    color: var(--orange);
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.faq-contact__links a:hover {
    opacity: 0.8;
}

.faq-contact__separator {
    margin: 0 0.75rem;
    color: rgba(255, 255, 255, 0.4);
}

/* ── Combined FAQ & Resources CTA on practice owners page ── */
.po-cta-pair {
    padding: 80px 0;
    background-color: var(--white);
}

.po-cta-pair__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.po-cta-pair__item {
    text-align: center;
}

.po-cta-pair__title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.po-cta-pair__text {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.po-cta-pair__link {
    display: inline-block;
    font-size: 1rem;
    font-weight: 500;
    color: var(--orange);
    transition: var(--transition);
}

.po-cta-pair__link:hover {
    opacity: 0.8;
}

/* ── RESPONSIVE STYLES ── */

/* Mobile */
@media screen and (max-width: 768px) {
    .faq-hero {
        padding: 140px 0 40px;
    }

    .faq-content {
        padding: 40px 0 60px;
    }

    .faq-section {
        margin-bottom: 2.5rem;
    }

    .faq-item__question {
        font-size: 1rem;
        padding: 1rem 0;
    }

    .faq-item__answer p {
        font-size: 1rem;
    }

    .faq-contact {
        padding: 60px 0;
    }

    .po-cta-pair {
        padding: 60px 0;
    }

    .po-cta-pair__grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    .faq-hero {
        padding: 120px 0 30px;
    }

    .faq-hero__subtitle {
        font-size: 0.9375rem;
    }

    .faq-item__question {
        font-size: 0.9375rem;
    }

    .faq-item__icon {
        width: 18px;
        height: 18px;
        margin-left: 1rem;
    }

    .faq-contact__links {
        font-size: 1.0625rem;
    }
}
