/**
 * FAQ Page — The Way Barbershop
 * Styles specific to page-faq.php sections
 * Uses global design tokens from variables.css
 */


/* ═══════════════════════════════════════════════════════════════════════════
   PAGE HERO (duplicated from about.css for independent page loading)
   ═══════════════════════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 var(--space-lg);
    overflow: hidden;
    background: var(--color-bg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(15, 15, 15, 0.6),
        rgba(15, 15, 15, 0.8),
        var(--color-bg)
    );
    z-index: 1;
}

.page-hero__content {
    position: relative;
    z-index: 2;
}

.page-hero__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

.page-hero__subtitle {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.page-hero__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    position: absolute;
    bottom: var(--space-xl);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.page-hero__breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.page-hero__breadcrumb a:hover {
    color: var(--color-accent);
}

.page-hero__breadcrumb-sep {
    color: var(--color-accent);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 2: FAQ ACCORDION
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-section {
    background: var(--color-bg);
    padding: var(--space-4xl) 0;
}

.faq-container {
    max-width: 840px;
    margin: 0 auto;
}

/* ── Category Block ── */

.faq-category {
    margin-bottom: var(--space-3xl);
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category__title {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: 400;
    color: var(--color-accent);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding-bottom: var(--space-sm);
    border-bottom: 1px solid rgba(200, 164, 94, 0.2);
    margin-bottom: var(--space-xl);
}

.faq-category__title svg {
    color: var(--color-accent);
    flex-shrink: 0;
}

/* ── Accordion Items ── */

.faq-category__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.faq-item {
    background: var(--color-bg-alt);
    border-left: 4px solid var(--color-accent);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item[open] {
    border-left-color: var(--color-accent);
}

.faq-item__summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-xl) var(--space-2xl);
    cursor: pointer;
    list-style: none;
    user-select: none;
}

/* Remove default marker in all browsers */
.faq-item__summary::-webkit-details-marker {
    display: none;
}

.faq-item__summary::marker {
    display: none;
    content: '';
}

.faq-item__question {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--color-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
    flex: 1;
    padding-right: var(--space-md);
}

.faq-item__icon {
    color: var(--color-accent);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
}

.faq-item[open] .faq-item__icon {
    transform: rotate(180deg);
}

.faq-item__answer {
    padding: 0 var(--space-2xl) var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.faq-item__answer p {
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin: var(--space-md) 0 0;
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 3: STILL HAVE A QUESTION CTA
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-cta {
    background: var(--color-bg-alt);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Matte noise texture overlay */
.faq-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
    pointer-events: none;
}

.faq-cta__card {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.faq-cta__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-text);
    margin-bottom: var(--space-lg);
}

.faq-cta__text {
    font-family: var(--font-body);
    font-size: var(--text-xl);
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: var(--space-2xl);
}

.faq-cta__buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.faq-cta__buttons .btn-primary,
.faq-cta__buttons .btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
}


/* ═══════════════════════════════════════════════════════════════════════════
   SECTION 4: BOOKING CTA
   ═══════════════════════════════════════════════════════════════════════════ */

.faq-book {
    background: var(--color-bg);
    text-align: center;
    padding: var(--space-4xl) 0;
}

.faq-book__inner {
    max-width: 640px;
    margin: 0 auto;
}

.faq-book__title {
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 5vw, var(--text-5xl));
    font-weight: 400;
    color: var(--color-text);
    letter-spacing: 0.05em;
    margin-bottom: var(--space-lg);
}

.faq-book__text {
    font-family: var(--font-body);
    font-size: var(--text-lg);
    font-weight: 300;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: var(--space-2xl);
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (≤ 1024px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 1024px) {
    .faq-cta__buttons {
        flex-direction: column;
    }
}


/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (≤ 768px)
   ═══════════════════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
    .page-hero {
        height: 320px;
    }

    .page-hero__title {
        font-size: var(--text-4xl);
    }

    .page-hero__subtitle {
        font-size: var(--text-base);
    }

    .faq-section {
        padding: var(--space-2xl) 0;
    }

    .faq-item__summary {
        padding: var(--space-lg);
    }

    .faq-item__question {
        font-size: var(--text-base);
    }

    .faq-item__answer {
        padding: 0 var(--space-lg) var(--space-lg);
    }

    .faq-cta__title {
        font-size: var(--text-3xl);
    }

    .faq-book__title {
        font-size: var(--text-3xl);
    }
}
