﻿/* ============================================
   faq.css — Crafted FAQ Page Styles
   ============================================ */

/* ── Page Hero (shared via team.css, reuse classes) ── */
.page-hero {
    background: var(--bg-white);
    border-bottom: 1px solid var(--line);
    padding: 7rem 0 4rem;
    text-align: center;
}
.page-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.9rem;
    display: block;
}
.page-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.2rem;
}
.page-lead {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.65;
}

/* ── FAQ Section ── */
.faq-section {
    background: var(--bg-light);
    padding: 5rem 0 7rem;
}

/* ── Layout: sidebar + content ── */
.faq-layout {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 3.5rem;
    align-items: start;
}

/* ── Category Sidebar ── */
.faq-nav {
    position: sticky;
    top: 7rem;
}
.faq-nav-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.faq-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.faq-cat {
    display: block;
    padding: 0.5rem 0.85rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}
.faq-cat:hover {
    background: var(--bg-soft);
    color: var(--text-main);
}
.faq-cat.active {
    background: var(--bg-white);
    color: var(--text-main);
    font-weight: 600;
    box-shadow: 0 1px 4px rgba(0,0,0,0.07);
}

/* ── FAQ Content Area ── */
.faq-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* ── FAQ Group ── */
.faq-group-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--line);
}

/* ── Accordion Item ── */
.faq-item {
    background: var(--bg-white);
    border: 1px solid rgba(26,26,26,0.08);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0.6rem;
    transition: box-shadow 0.25s ease;
}
.faq-item[open] {
    box-shadow: 0 6px 24px rgba(0,0,0,0.06);
}
.faq-item summary {
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-q {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.15rem 1.4rem;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-main);
    transition: background 0.2s;
    user-select: none;
}
.faq-q:hover {
    background: var(--bg-soft);
}
.faq-item[open] .faq-q {
    background: var(--bg-light);
}
.faq-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    flex-shrink: 0;
    transition: transform 0.3s ease, color 0.3s ease;
}
.faq-item[open] .faq-icon {
    color: var(--text-main);
}

.faq-a {
    padding: 0 1.4rem 1.35rem;
    border-top: 1px solid var(--line);
    animation: faq-slide-in 0.25s ease;
}
@keyframes faq-slide-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.faq-a p, .faq-a li {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-top: 0.75rem;
}
.faq-a ul, .faq-a ol {
    padding-left: 1.25rem;
    margin-top: 0.5rem;
}
.faq-a a {
    color: var(--text-main);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.faq-a strong { color: var(--text-main); font-weight: 600; }

/* ── Bottom CTA ── */
.faq-cta {
    margin-top: 1rem;
}
.faq-cta-inner {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 3rem 2.5rem;
    text-align: center;
}
.faq-cta-icon {
    font-size: 2.5rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    display: block;
}
.faq-cta-inner h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}
.faq-cta-inner p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.faq-cta-btns {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
}

/* ── Responsive ── */
@media (max-width: 800px) {
    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .faq-nav {
        position: static;
        display: flex;
        gap: 0.5rem;
        flex-wrap: wrap;
        align-items: center;
    }
    .faq-nav-label { display: none; }
    .faq-nav ul {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .faq-cat { padding: 0.4rem 0.75rem; }
}
