/* ================================================================
   FAQ PAGE — faq.css
   Imports: Lora, Inter (loaded globally)
   ================================================================ */

/* ── Shared Tokens ────────────────────────────────────────────── */
:root {
    --faq-green-dark: #1F4F46;
    --faq-green-mid: #4a7a3e;
    --faq-green-light: #f2f5ed;
    --faq-green-ultra: #fafcf8;
    --faq-text: #3a4a3a;
    --faq-text-muted: #2E2E2E;
    --faq-border: #e4e8df;
    --faq-accent: #2F7D6B;
    --faq-radius: 16px;
    --faq-max: 860px;
}

/* ── 1. HERO ══════════════════════════════════════════════════ */
.faq-hero {
    padding: 140px 24px 80px;
    background: var(--faq-green-ultra);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    top: -180px;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, rgba(204, 255, 51, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.faq-hero__inner {
    max-width: 680px;
    margin: 0 auto;
    position: relative;
}

.faq-hero__label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--faq-green-mid);
    margin-bottom: 20px;
    padding: 5px 14px;
    background: rgba(74, 122, 62, 0.08);
    border-radius: 20px;
}

.faq-hero__title {
    font-family: 'Lora', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.15;
    color: var(--faq-green-dark);
    margin: 0 0 20px;
}

.faq-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--faq-text-muted);
    margin: 0 0 48px;
}

/* Search Bar */
.faq-hero__search {
    position: relative;
    max-width: 480px;
    margin: 0 auto;
}

.faq-hero__search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--faq-text-muted);
    pointer-events: none;
}

.faq-hero__search-input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: var(--faq-green-dark);
    background: #ffffff;
    border: 1px solid var(--faq-border);
    border-radius: 50px;
    outline: none;
    box-shadow: 0 4px 20px rgba(31, 79, 70, 0.05);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    box-sizing: border-box;
}

.faq-hero__search-input:focus {
    border-color: var(--faq-green-mid);
    box-shadow: 0 4px 24px rgba(74, 122, 62, 0.1);
}

.faq-hero__search-input::placeholder {
    color: #9aaa9a;
}

/* ── 2. CATEGORY NAV ══════════════════════════════════════════ */
.faq-nav {
    position: sticky;
    top: var(--header-height, 80px);
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--faq-border);
}

.faq-nav__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
    overflow-x: auto;
    scrollbar-width: none;
}

.faq-nav__inner::-webkit-scrollbar {
    display: none;
}

.faq-nav__tabs {
    display: flex;
    gap: 0;
    white-space: nowrap;
}

.faq-nav__tab {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--faq-text-muted);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 18px 20px;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease;
    white-space: nowrap;
}

.faq-nav__tab:hover {
    color: var(--faq-green-dark);
}

.faq-nav__tab.is-active {
    color: var(--faq-green-dark);
    border-bottom-color: var(--faq-green-mid);
    font-weight: 600;
}

/* ── 3–8. FAQ SECTIONS ════════════════════════════════════════ */
.faq-section {
    padding: 80px 24px;
    background: #ffffff;
}

.faq-section--highlighted {
    background: var(--faq-green-light);
}

.faq-section--bordered .faq-section__inner {
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-radius);
    padding: 48px 40px;
    max-width: calc(var(--faq-max) + 80px);
}

.faq-section__inner {
    max-width: var(--faq-max);
    margin: 0 auto;
}

/* Section Header */
.faq-section__header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 40px;
}

.faq-section__icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: #ffffff;
    border: 1px solid var(--faq-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-green-mid);
}

.faq-section--highlighted .faq-section__icon {
    background: var(--faq-green-ultra);
}

.faq-section__title {
    font-family: 'Lora', serif;
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 400;
    color: var(--faq-green-dark);
    margin: 0;
}

/* ── FAQ ACCORDION ════════════════════════════════════════════ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: #ffffff;
    border: 1px solid var(--faq-border);
    border-radius: var(--faq-radius);
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.faq-section--highlighted .faq-item {
    background: #ffffff;
}

.faq-item.is-open {
    box-shadow: 0 4px 20px rgba(31, 79, 70, 0.06);
}

/* Question Button */
.faq-item__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 22px 24px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: var(--faq-green-dark);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    line-height: 1.5;
    transition: background 0.2s ease;
}

.faq-item__question:hover {
    background: var(--faq-green-ultra);
}

.faq-item.is-open .faq-item__question {
    background: var(--faq-green-ultra);
    color: var(--faq-green-mid);
    font-weight: 600;
}

/* Chevron */
.faq-item__chevron {
    flex-shrink: 0;
    color: var(--faq-green-mid);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
}

.faq-item.is-open .faq-item__chevron {
    transform: rotate(180deg);
}

/* Answer (controlled by JS with height) */
.faq-item__answer {
    height: 0;
    overflow: hidden;
}

.faq-item__answer p {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    line-height: 1.65;
    color: var(--faq-text-muted);
    margin: 0;
    padding: 0 24px 24px;
}

.faq-item__answer a {
    color: var(--faq-green-mid);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Search highlight */
.faq-item.is-hidden {
    display: none;
}

/* ── 9. PHYSICIAN TRUST BLOCK ════════════════════════════════ */
.faq-trust {
    padding: 80px 24px;
    background: var(--faq-green-dark);
}

.faq-trust__inner {
    max-width: var(--faq-max);
    margin: 0 auto;
    text-align: center;
}

.faq-trust__badge {
    width: 72px;
    height: 72px;
    margin: 0 auto 28px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-accent);
}

.faq-trust__title {
    font-family: 'Lora', serif;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 400;
    line-height: 1.2;
    color: #ffffff;
    margin: 0 0 20px;
}

.faq-trust__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.65);
    max-width: 580px;
    margin: 0 auto 40px;
}

.faq-trust__list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 32px;
}

.faq-trust__list li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.faq-trust__check {
    width: 24px;
    height: 24px;
    min-width: 24px;
    background: var(--faq-accent);
    color: var(--faq-green-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

/* ── 10. STILL HAVE QUESTIONS? CTA ══════════════════════════ */
.faq-cta {
    padding: 100px 24px;
    background: #ffffff;
    text-align: center;
}

.faq-cta__inner {
    max-width: 580px;
    margin: 0 auto;
}

.faq-cta__title {
    font-family: 'Lora', serif;
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 400;
    color: var(--faq-green-dark);
    margin: 0 0 16px;
}

.faq-cta__text {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--faq-text-muted);
    margin: 0 0 40px;
}

.faq-cta__actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── FAQ CTA Buttons (match header style) ──────────────────── */
.faq-cta .btn {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    height: 44px;
    padding: 0 5px 0 20px;
    font-size: 0.85rem;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    border-radius: 50px;
    text-decoration: none;
    cursor: pointer;
    line-height: 1;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
    transition: background-color 0.5s ease, color 0.35s ease, border-color 0.35s ease;
    gap: 14px;
}

/* Sliding background */
.faq-cta .btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50px;
    transform: translateX(-105%);
    transition: transform 0.45s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 0;
}

.faq-cta .btn:hover::before {
    transform: translateX(0);
}

.faq-cta .btn>span:first-child {
    position: relative;
    z-index: 1;
}

.faq-cta .btn-arrow {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    font-size: 1.1rem;
    transition: background-color 0.35s ease, color 0.35s ease;
    flex-shrink: 0;
}

/* Primary button */
.faq-cta a.btn.btn--primary,
.faq-cta a.btn.btn--primary:visited,
.faq-cta a.btn.btn--primary:hover,
.faq-cta a.btn.btn--primary:focus,
.faq-cta a.btn.btn--primary:active {
    background-color: #2F7D6B;
    color: #ffffff !important;
    border: 1px solid #2F7D6B;
}

.faq-cta a.btn.btn--primary .btn-arrow {
    background-color: #ffffff;
    color: #2F7D6B;
}

.faq-cta a.btn.btn--primary::before {
    background-color: #276B5C;
}

.faq-cta a.btn.btn--primary:hover {
    color: #ffffff !important;
    border-color: #1F4F46;
}

.faq-cta a.btn.btn--primary:hover .btn-arrow {
    background-color: #2F7D6B;
    color: #ffffff;
}

/* Outline button */
.faq-cta a.btn.btn--outline,
.faq-cta a.btn.btn--outline:visited,
.faq-cta a.btn.btn--outline:hover,
.faq-cta a.btn.btn--outline:focus,
.faq-cta a.btn.btn--outline:active {
    background-color: transparent;
    color: #276B5C !important;
    border: 1px solid #ddd;
}

.faq-cta a.btn.btn--outline .btn-arrow {
    background-color: #276B5C;
    color: #ffffff;
}

.faq-cta a.btn.btn--outline::before {
    background-color: #2F7D6B;
}

.faq-cta a.btn.btn--outline:hover {
    color: #1F4F46 !important;
    border-color: #2F7D6B;
}

.faq-cta a.btn.btn--outline:hover .btn-arrow {
    background-color: #276B5C;
    color: #ffffff;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {
    .faq-hero {
        padding: 120px 20px 60px;
    }

    .faq-nav__tab {
        padding: 16px 14px;
        font-size: 0.8rem;
    }

    .faq-section {
        padding: 60px 20px;
    }

    .faq-section--bordered .faq-section__inner {
        padding: 32px 24px;
    }

    .faq-section__header {
        margin-bottom: 28px;
    }

    .faq-item__question {
        padding: 18px 20px;
        font-size: 0.95rem;
    }

    .faq-trust {
        padding: 60px 20px;
    }

    .faq-trust__list {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .faq-cta {
        padding: 70px 20px;
    }
}

@media screen and (max-width: 480px) {
    .faq-hero {
        padding: 100px 16px 50px;
    }

    .faq-section {
        padding: 50px 16px;
    }

    .faq-cta__actions {
        flex-direction: column;
        align-items: center;
    }

    .faq-cta__btn {
        width: 100%;
        justify-content: center;
        max-width: 320px;
    }
}