/* ==========================================
   FAQ PAGE — amber accent (#f59e0b)
   Blog 디자인 구조 기반 통일
   ========================================== */

:root {
    --faq-accent: #f59e0b;
    --faq-accent-light: rgba(245, 158, 11, 0.12);
    --faq-accent-border: rgba(245, 158, 11, 0.35);
    --faq-dark: #0f172a;
    --faq-text: #334155;
    --faq-muted: #64748b;
    --faq-light: #94a3b8;
    --faq-border: #e2e8f0;
    --faq-bg: #f8fafc;
    --faq-white: #ffffff;
}

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── HERO ── */
.faq-hero {
    position: relative;
    padding: 140px 0 0;
    background: var(--faq-white);
    overflow: hidden;
}

.faq-hero__typo-wrap {
    overflow: hidden;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
}

.faq-hero__title {
    display: flex;
    align-items: baseline;
    gap: clamp(16px, 3vw, 40px);
    margin: 0;
    line-height: 1;
    white-space: nowrap;
}

.faq-hero__word {
    display: inline-block;
    font-family: 'Bebas Neue', sans-serif;
    font-weight: 400;
    letter-spacing: -0.02em;
    line-height: 0.85;
}

.faq-hero__word--stroke {
    font-size: clamp(64px, 12vw, 160px);
    color: transparent;
    -webkit-text-stroke: 2.5px var(--faq-muted);
    animation: faqHeroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.faq-hero__word--solid {
    font-size: clamp(64px, 12vw, 160px);
    color: var(--faq-accent);
    -webkit-text-stroke: 0;
    animation: faqHeroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.12s both;
}

@keyframes faqHeroReveal {
    from { opacity: 0; transform: translateY(80%); }
    to { opacity: 1; transform: translateY(0); }
}

/* 메타 바 */
.faq-hero__meta-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 20px 0;
    margin-top: 24px;
    border-top: 2px solid var(--faq-dark);
    animation: faqBarIn 0.5s ease 0.5s both;
}

@keyframes faqBarIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.faq-hero__meta-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-hero__meta-indicator {
    width: 8px;
    height: 8px;
    background: var(--faq-accent);
    flex-shrink: 0;
}

.faq-hero__meta-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--faq-muted);
    margin: 0;
    letter-spacing: 0.01em;
}

.faq-hero__meta-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.faq-hero__meta-count {
    font-size: 11px;
    font-weight: 600;
    color: var(--faq-light);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.faq-hero__meta-count strong {
    color: var(--faq-accent);
    font-weight: 700;
}

.faq-hero__meta-sep { color: #cbd5e1; font-size: 12px; }

.faq-hero__meta-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    color: var(--faq-accent);
    text-decoration: none;
    letter-spacing: 0.02em;
    transition: gap 0.3s ease;
}

.faq-hero__meta-link:hover { gap: 9px; }

/* 설명 */
.faq-hero__intro {
    padding: 28px 0 48px;
    border-top: 1px solid var(--faq-border);
    animation: faqBarIn 0.5s ease 0.65s both;
}

.faq-hero__desc {
    font-size: 15px;
    color: var(--faq-muted);
    line-height: 1.75;
    margin: 0;
    max-width: 560px;
}


/* ── FAQ LIST SECTION ── */
.faq-list-section {
    padding: 80px 0 120px;
    background: var(--faq-bg);
}

/* Section Header (blog 스타일) */
.faq-list-header { margin-bottom: 40px; }

.faq-list-header__top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.faq-list-header__title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    color: var(--faq-dark);
    letter-spacing: -0.03em;
    margin: 0;
}

.faq-list-header__count {
    font-size: 13px;
    color: var(--faq-muted);
    letter-spacing: 0.05em;
}

.faq-list-header__count span {
    font-weight: 700;
    color: var(--faq-accent);
    font-size: 14px;
}

.faq-list-header__line {
    width: 100%;
    height: 2px;
    background: var(--faq-dark);
    transform-origin: left;
    transform: scaleX(0);
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-list-header__line.is-visible { transform: scaleX(1); }

/* ── 필터 탭 ── */
.faq-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 36px;
}

.faq-filter__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border: 1px solid var(--faq-border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--faq-muted);
    background: transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    font-family: inherit;
}

.faq-filter__btn:hover {
    border-color: var(--faq-accent);
    color: var(--faq-accent);
}

.faq-filter__btn.is-active {
    background: var(--faq-accent);
    border-color: var(--faq-accent);
    color: #fff;
}

.faq-filter__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(0,0,0,0.08);
    color: inherit;
    line-height: 1;
}

.faq-filter__btn.is-active .faq-filter__count {
    background: rgba(255,255,255,0.25);
    color: #fff;
}


/* ── FAQ CARD (아코디언) ── */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-card {
    background: var(--faq-white);
    border: 1px solid var(--faq-border);
    transition: border-color 0.3s ease;
    overflow: hidden;
}

.faq-card:hover { border-color: var(--faq-accent-border); }

.faq-card.is-hidden { display: none; }

.faq-card__trigger {
    width: 100%;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 24px 28px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.2s;
}

.faq-card__trigger:hover { background: var(--faq-accent-light); }

.faq-card__number {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 28px;
    font-weight: 400;
    color: var(--faq-border);
    line-height: 1;
    letter-spacing: -0.02em;
    flex-shrink: 0;
    transition: color 0.3s ease;
    min-width: 32px;
    padding-top: 2px;
}

.faq-card:hover .faq-card__number,
.faq-card.is-open .faq-card__number { color: var(--faq-accent); }

.faq-card__trigger-content {
    flex: 1;
    min-width: 0;
}

.faq-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.faq-card__cat {
    font-size: 11px;
    font-weight: 600;
    color: var(--faq-muted);
    padding: 3px 10px;
    border: 1px solid var(--faq-border);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.faq-card:hover .faq-card__cat,
.faq-card.is-open .faq-card__cat {
    border-color: var(--faq-accent-border);
    color: var(--faq-accent);
}

.faq-card__question {
    font-size: clamp(15px, 2vw, 18px);
    font-weight: 700;
    color: var(--faq-dark);
    line-height: 1.5;
    margin: 0;
    transition: color 0.3s ease;
}

.faq-card:hover .faq-card__question { color: var(--faq-accent); }

.faq-card__arrow {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--faq-light);
    border: 1px solid var(--faq-border);
    flex-shrink: 0;
    transition: all 0.3s ease;
    margin-top: 2px;
}

.faq-card:hover .faq-card__arrow {
    border-color: var(--faq-accent);
    color: var(--faq-accent);
}

.faq-card.is-open .faq-card__arrow {
    background: var(--faq-accent);
    border-color: var(--faq-accent);
    color: #fff;
    transform: rotate(180deg);
}

/* 답변 패널 */
.faq-card__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.faq-card.is-open .faq-card__panel { max-height: 400px; }

/*
 * 답변 padding-left: trigger의 padding(28) + number width(32) + gap(20) = 80px
 * .faq-card__number 또는 .faq-card__trigger의 padding/gap 변경 시 같이 조정 필요
 */
.faq-card__answer {
    padding: 0 28px 28px;
    padding-left: calc(28px + 32px + 20px);
}

.faq-card__answer p {
    font-size: 14px;
    color: var(--faq-text);
    line-height: 1.8;
    margin: 0;
}

.faq-card__answer p strong {
    color: var(--faq-dark);
    font-weight: 600;
}

.faq-card__answer a {
    color: var(--faq-accent);
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s;
}

.faq-card__answer a:hover { opacity: 0.7; }


/* ── 카테고리 그룹 라벨 ── */
.faq-group-label {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 48px;
    margin-bottom: 20px;
    padding-top: 24px;
}

.faq-group-label:first-child { margin-top: 0; padding-top: 0; }

.faq-group-label__text {
    font-size: 13px;
    font-weight: 700;
    color: var(--faq-accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.faq-group-label__line {
    flex: 1;
    height: 1px;
    background: var(--faq-border);
}


/* ── NOTICE ── */
.faq-notice { padding: 48px 0; text-align: center; }
.faq-notice__line { width: 40px; height: 2px; background: #cbd5e1; margin: 0 auto 16px; }
.faq-notice__text { font-size: 14px; color: var(--faq-light); margin: 0; }
.faq-notice__text strong { color: var(--faq-accent); font-weight: 700; }


/* ── CTA ── */
.faq-cta {
    margin-top: 80px;
    padding-top: 48px;
    border-top: 1px solid var(--faq-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.faq-cta__text {
    font-size: 18px;
    color: var(--faq-dark);
    margin: 0;
    line-height: 1.6;
    font-weight: 500;
}

.faq-cta__text strong { font-weight: 700; color: var(--faq-accent); }

.faq-cta__btn {
    background: var(--faq-dark);
    color: #fff;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.3s;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}

.faq-cta__btn:hover { background: var(--faq-accent); }
.faq-cta__btn svg { transition: transform 0.3s; }
.faq-cta__btn:hover svg { transform: translateX(4px); }


/* ── SCROLL REVEAL ── */
.scroll-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }


/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .faq-hero { padding: 120px 0 0; }

    .faq-hero__typo-wrap { padding: 0 clamp(1.25rem, 5vw, 2rem); }

    .faq-hero__word--stroke,
    .faq-hero__word--solid { font-size: clamp(40px, 12vw, 64px); }
    .faq-hero__word--stroke { -webkit-text-stroke: 2px var(--faq-muted); }

    .faq-hero__meta-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px 0;
        margin-top: 20px;
    }

    .faq-hero__intro { padding: 20px 0 36px; }
    .faq-hero__desc { font-size: 14px; }
    .faq-hero__desc br { display: none; }

    .faq-card__trigger { padding: 20px; gap: 14px; }
    .faq-card__number { font-size: 22px; min-width: 26px; }
    .faq-card__question { font-size: 15px; }
    .faq-card__answer { padding: 0 20px 20px; padding-left: calc(20px + 26px + 14px); }
    .faq-card__arrow { width: 32px; height: 32px; }

    .faq-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        margin-top: 60px;
        padding-top: 32px;
    }
}

@media (max-width: 480px) {
    .faq-hero__word--stroke,
    .faq-hero__word--solid { font-size: clamp(32px, 11vw, 44px); }

    .faq-card__number { font-size: 20px; min-width: 24px; }
    .faq-card__question { font-size: 14px; }
}