/* ============================================
   FAQ PAGE STYLES
   ============================================ */

.faq-hero {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 180px 0 140px;
    text-align: center;
    color: white;
    background: linear-gradient(rgba(3, 114, 188, 0.75), rgba(3, 114, 188, 0.55)), url('images/services/pool.jpg') center/cover no-repeat;
    position: relative;
}

.faq-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 17, 34, 0.55) 0%, rgba(0, 17, 34, 0.35) 100%);
    z-index: 1;
}

.page-hero-content {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.page-hero-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 18px;
    border-radius: 999px;
    font-family: var(--font-family-subheadings);
    font-size: 13px;
    letter-spacing: 4px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.12);
    margin-bottom: 26px;
}

.page-hero-title {
    font-size: clamp(42px, 6vw, 68px);
    font-weight: 300;
    margin-bottom: 20px;
    line-height: 1.1;
}

.page-hero-decoration {
    display: inline-block;
    width: 100px;
    height: 3px;
    background: var(--accent-color);
    margin-bottom: 28px;
}

.page-hero-subtitle {
    font-size: 18px;
    line-height: 1.9;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto;
    max-width: 620px;
}

.faq-categories {
    padding: 90px 0 40px;
    background: var(--bg-white);
}

.page-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.category-card {
    background: var(--bg-light);
    border-radius: 28px;
    padding: 36px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.category-card:hover,
.category-card:focus-visible {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.category-icon {
    font-size: 36px;
}

.category-card h2 {
    font-size: 24px;
    font-family: var(--font-family-headings);
}

.category-card p {
    font-size: 16px;
    color: var(--text-light);
    line-height: 1.7;
}

.faq-section {
    padding: 90px 0;
    background: var(--bg-white);
}

.faq-section:nth-of-type(even) {
    background: var(--bg-light);
}

.faq-section-header {
    max-width: 720px;
    margin-bottom: 40px;
}

.faq-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 18px;
    border-radius: 999px;
    background: rgba(3, 114, 188, 0.08);
    color: var(--primary-dark);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.faq-section-header h2 {
    font-size: clamp(30px, 4vw, 44px);
    margin: 18px 0 16px;
}

.faq-section-header p {
    font-size: 17px;
    color: var(--text-light);
    line-height: 1.8;
}

.faq-accordion {
    display: grid;
    gap: 16px;
}

.faq-item {
    background: white;
    border-radius: 20px;
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 24px 28px;
    font-size: 18px;
    font-weight: 600;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    font-family: var(--font-family-body);
}

.faq-question:hover,
.faq-question:focus-visible {
    background: rgba(3, 114, 188, 0.06);
}

.faq-toggle {
    width: 18px;
    height: 18px;
    position: relative;
    flex-shrink: 0;
}

.faq-toggle::before,
.faq-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    background: var(--primary-color);
    width: 18px;
    height: 2px;
    transform: translate(-50%, -50%);
    transition: transform var(--transition-base);
}

.faq-toggle::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item.open .faq-toggle::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 32px;
    color: var(--text-light);
    line-height: 1.85;
}

.faq-item.open .faq-answer {
    padding: 12px 32px 32px;
    max-height: 700px;
}

.faq-answer ul {
    margin-top: 16px;
    padding-left: 20px;
}

.faq-answer li {
    margin-bottom: 8px;
}

.faq-cta {
    padding: 120px 0;
    background: linear-gradient(135deg, rgba(3, 114, 188, 0.06), rgba(246, 139, 39, 0.06));
}

.faq-cta-card {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: 50px;
    background: white;
    border-radius: 32px;
    padding: 60px;
    box-shadow: var(--shadow-md);
}

.faq-cta-content h2 {
    font-size: clamp(32px, 5vw, 48px);
    margin-bottom: 18px;
}

.faq-cta-content p {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 28px;
    line-height: 1.8;
}

.faq-cta-actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.faq-cta-extra h3 {
    font-size: 22px;
    margin-bottom: 16px;
}

.faq-cta-extra ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
    font-size: 16px;
    color: var(--text-dark);
}

/* Responsive */
@media (max-width: 1200px) {
    .category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .faq-cta-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        min-height: 50vh;
        padding-top: 140px;
    }

    .faq-search {
        flex-direction: column;
        padding: 18px;
        border-radius: 24px;
    }

    .faq-search input {
        width: 100%;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }

    .faq-section {
        padding: 60px 0;
    }

    .faq-question {
        font-size: 16px;
    }
}

