/* =============================================================
   FAQ PAGE  —  page-faq.php
   Residential HVAC, Plumbing, Drain & Electrical FAQs.
   Builds on the shared .faq-list / .faq-item accordion styles
   defined in styles.css; this file only adds page-specific parts.
   ============================================================= */

/* ---- Hero -------------------------------------------------------- */
/* The FAQ heading is long; scale it down and allow wrapping so it
   never clips on small screens. Scoped — faq.css only loads here. */
.subpage-hero .hero-content {
    min-width: 0;
}

.subpage-hero.hero-v2 .hero-title {
    font-size: clamp(1.875rem, 4vw + 1rem, 3.25rem);
    overflow-wrap: break-word;
    word-break: break-word;
}

/* ---- Category sections ------------------------------------------ */
/* Tighten the theme's default .services-horizontal 6rem padding. */
.faq-category.services-horizontal {
    padding: var(--space-3xl) 0;
}

.faq-category {
    /* Offset deep-link / hero-button jump landing below the fixed header. */
    scroll-margin-top: 120px;
}

/* Pull each category's questions closer to its heading. */
.faq-category .section-header {
    margin-bottom: var(--space-xl);
}

/* Category icon — inline beside the section heading. */
.faq-category .section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
}

.faq-title-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: var(--red);
}

.faq-title-icon svg {
    width: 2rem;
    height: 2rem;
}

.faq-category-sub {
    margin-top: var(--space-sm);
    color: #6c757d;
    font-size: 1.0625rem;
    line-height: 1.6;
}

/* Render each question inside a real <h3> for document structure /
   AI-search parsing, while keeping the shared .faq-question button look. */
.faq-question-heading {
    margin: 0;
    font: inherit;
}

.faq-item .faq-question > span:first-child {
    flex: 1 1 auto;
}

.faq-answer-inner p {
    margin: 0 0 0.85rem;
}

.faq-answer-inner p:last-child {
    margin-bottom: 0;
}

/* ---- "Still have a question" help band -------------------------- */
.faq-help {
    padding: var(--space-3xl) 0;
    background: var(--navy);
    color: var(--white);
}

.faq-help-inner {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}

.faq-help-title {
    color: var(--white);
    margin: 0 0 var(--space-sm);
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.faq-help-text {
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.125rem;
    line-height: 1.7;
    margin: 0 0 var(--space-xl);
}

.faq-help-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ---- Responsive ------------------------------------------------- */
@media (max-width: 560px) {
    .faq-category {
        scroll-margin-top: 90px;
    }

    .faq-help-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
