/* ═══════════════════════════════════════════════════════
   EYESPOT OPTOMETRIST — FAQ Page Stylesheet
   Loaded in addition to style.css
═══════════════════════════════════════════════════════ */

/* ─────────────────────────────────────
   PAGE HERO
───────────────────────────────────── */
.page-hero {
    background: linear-gradient(135deg, var(--clr-bg) 0%, #daf0da 100%);
    border-bottom: 1px solid var(--clr-border);
    padding: clamp(3rem, 7vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem);
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -80px; right: -120px;
    width: 460px; height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,205,50,.12) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero::after {
    content: '';
    position: absolute;
    bottom: -60px; left: -80px;
    width: 300px; height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(50,205,50,.08) 0%, transparent 65%);
    pointer-events: none;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

.page-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--clr-muted);
    margin-bottom: 1.25rem;
}
.page-breadcrumb a {
    color: var(--clr-accent-deeper);
    font-weight: 500;
    transition: color var(--t-base);
}
.page-breadcrumb a:hover { color: var(--clr-accent-dark); }
.page-breadcrumb i { font-size: .6rem; color: var(--clr-accent-mid); }

.page-hero-title {
    font-family: var(--ff-display);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 700;
    color: var(--clr-dark);
    line-height: 1.15;
    margin-bottom: .9rem;
}
.page-hero-title span { color: var(--clr-accent-deeper); }

.page-hero-subtitle {
    font-size: 1.05rem;
    color: var(--clr-muted);
    max-width: 600px;
    line-height: 1.7;
    margin-bottom: 2rem;
}

/* ─────────────────────────────────────
   SEARCH BAR
───────────────────────────────────── */
.faq-search-wrap {
    max-width: 520px;
    position: relative;
}

.faq-search-wrap i {
    position: absolute;
    left: 1.1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--clr-accent);
    font-size: .95rem;
    pointer-events: none;
}

.faq-search {
    width: 100%;
    background: var(--clr-white);
    border: 2px solid var(--clr-border);
    border-radius: var(--radius-full);
    padding: .75rem 1.2rem .75rem 2.85rem;
    font-family: var(--ff-body);
    font-size: .92rem;
    color: var(--clr-dark);
    outline: none;
    transition: border-color var(--t-base), box-shadow var(--t-base);
}
.faq-search::placeholder { color: var(--clr-muted); }
.faq-search:focus {
    border-color: var(--clr-accent);
    box-shadow: 0 0 0 4px rgba(50,205,50,.10);
}

/* ─────────────────────────────────────
   LAYOUT
───────────────────────────────────── */
.faq-page {
    padding: clamp(3rem, 6vw, 5rem) 0;
}

.faq-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 3rem;
    align-items: start;
}

/* ─────────────────────────────────────
   STICKY SIDEBAR — CATEGORY NAV
───────────────────────────────────── */
.faq-sidebar {
    position: sticky;
    top: calc(var(--header-h) + 1.5rem);
}

.faq-sidebar-title {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--clr-accent-deeper);
    margin-bottom: 1rem;
    padding-left: .75rem;
}

.faq-nav {
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.faq-nav-btn {
    display: flex;
    align-items: center;
    gap: .65rem;
    width: 100%;
    padding: .65rem .85rem;
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: .85rem;
    font-weight: 500;
    color: var(--clr-mid);
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background var(--t-fast), color var(--t-fast);
}

.faq-nav-btn i {
    width: 18px;
    text-align: center;
    color: var(--clr-accent);
    font-size: .85rem;
    flex-shrink: 0;
}

.faq-nav-btn:hover {
    background: var(--clr-accent-light);
    color: var(--clr-dark);
}

.faq-nav-btn.active {
    background: var(--clr-accent-light);
    color: var(--clr-accent-deeper);
    font-weight: 600;
}

.faq-nav-btn .faq-count {
    margin-left: auto;
    font-size: .68rem;
    font-weight: 700;
    background: var(--clr-border);
    color: var(--clr-muted);
    border-radius: var(--radius-full);
    padding: .1rem .45rem;
    min-width: 20px;
    text-align: center;
}

.faq-nav-btn.active .faq-count {
    background: var(--clr-accent);
    color: var(--clr-white);
}

/* ─────────────────────────────────────
   FAQ CONTENT AREA
───────────────────────────────────── */
.faq-content { min-width: 0; }

/* No results message */
.faq-no-results {
    display: none;
    text-align: center;
    padding: 3rem 2rem;
    color: var(--clr-muted);
}

.faq-no-results i {
    font-size: 2.5rem;
    color: var(--clr-accent-mid);
    margin-bottom: 1rem;
    display: block;
}

.faq-no-results h3 {
    font-family: var(--ff-display);
    font-size: 1.2rem;
    color: var(--clr-dark);
    margin-bottom: .5rem;
}

/* ─────────────────────────────────────
   CATEGORY BLOCK
───────────────────────────────────── */
.faq-category {
    margin-bottom: 2.75rem;
    scroll-margin-top: calc(var(--header-h) + 1.5rem);
}

.faq-category.hidden { display: none; }

.category-title {
    display: flex;
    align-items: center;
    gap: .75rem;
    font-family: var(--ff-display);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: 1.1rem;
    padding-bottom: .85rem;
    border-bottom: 2px solid var(--clr-border);
}

.category-title i {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent-deeper);
    font-size: .9rem;
    flex-shrink: 0;
}

/* ─────────────────────────────────────
   FAQ ACCORDION ITEMS
───────────────────────────────────── */
.faq-item {
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: .75rem;
    transition: box-shadow var(--t-base), border-color var(--t-base);
    background: var(--clr-white);
}

.faq-item:last-child { margin-bottom: 0; }

.faq-item:hover {
    border-color: var(--clr-accent-mid);
    box-shadow: var(--shadow-xs);
}

.faq-item.open {
    border-color: var(--clr-accent);
    box-shadow: 0 4px 18px rgba(50,205,50,.10);
}

/* Question row */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.1rem 1.35rem;
    cursor: pointer;
    user-select: none;
    transition: background var(--t-fast);
}

.faq-question:hover { background: var(--clr-bg); }
.faq-item.open .faq-question { background: var(--clr-bg); }

.faq-question h4 {
    font-size: .92rem;
    font-weight: 600;
    color: var(--clr-dark);
    line-height: 1.4;
    margin: 0;
}

/* Highlight matched text during search */
.faq-question h4 mark {
    background: rgba(50,205,50,.25);
    color: var(--clr-accent-deeper);
    border-radius: 2px;
    padding: 0 2px;
}

.faq-question > i {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent-deeper);
    font-size: .65rem;
    transition: background var(--t-base), transform var(--t-base), color var(--t-base);
}

.faq-item.open .faq-question > i {
    background: var(--clr-accent);
    color: var(--clr-white);
    transform: rotate(180deg);
}

/* Answer panel */
.faq-answer {
    display: none;
    padding: .1rem 1.35rem 1.2rem;
    border-top: 1px solid var(--clr-border-light);
}

.faq-item.open .faq-answer { display: block; }

.faq-answer p {
    font-size: .88rem;
    color: var(--clr-muted);
    line-height: 1.75;
    margin-bottom: .65rem;
}

.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer ul {
    list-style: none;
    padding: 0;
    margin: .4rem 0 .65rem;
    display: flex;
    flex-direction: column;
    gap: .45rem;
}

.faq-answer ul li {
    font-size: .87rem;
    color: var(--clr-muted);
    line-height: 1.55;
    padding-left: 1.4rem;
    position: relative;
}

.faq-answer ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--clr-accent);
}

.faq-answer ul li strong { color: var(--clr-dark); }

.faq-answer ul li a {
    color: var(--clr-accent);
    text-decoration: underline;
}

.faq-answer ul li a:hover{
    color: var(--clr-accent-deeper);
}

.faq-answer p a {
    color: var(--clr-accent);
    text-decoration: underline;
}

.faq-answer p a:hover {
    color: var(--clr-accent-deeper);
}

/* ─────────────────────────────────────
   STILL HAVE QUESTIONS CTA
───────────────────────────────────── */
.faq-still-questions {
    background: linear-gradient(135deg, var(--clr-bg) 0%, #daf0da 100%);
    border: 1px solid var(--clr-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    text-align: center;
    margin-top: 3rem;
}

.faq-still-questions .icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--clr-accent-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--clr-accent-deeper);
    font-size: 1.3rem;
    margin: 0 auto 1rem;
}

.faq-still-questions h3 {
    font-family: var(--ff-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--clr-dark);
    margin-bottom: .5rem;
}

.faq-still-questions p {
    font-size: .9rem;
    color: var(--clr-muted);
    margin-bottom: 1.5rem;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.faq-contact-options {
    display: flex;
    justify-content: center;
    gap: .85rem;
    flex-wrap: wrap;
}

/* ─────────────────────────────────────
   RESPONSIVE
───────────────────────────────────── */
@media (max-width: 860px) {
    .faq-layout {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: static;
        top: auto;
    }

    .faq-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: .4rem;
    }

    .faq-nav-btn {
        width: auto;
        padding: .45rem .85rem;
        font-size: .8rem;
    }

    .faq-sidebar-title { display: none; }
}

@media (max-width: 540px) {
    .faq-contact-options { flex-direction: column; align-items: center; }
    .faq-contact-options .btn { width: 100%; justify-content: center; }
    .faq-search-wrap { max-width: 100%; }
}