/* ============================================
   FAQ PAGE STYLES - Mobile-First Approach
   Based on WEB_4_0_MOBILE_FIRST_GUIDE
   ============================================ */

/* CSS Variables - Breakpoints & Design Tokens */
:root {
    /* Breakpoints */
    --bp-sm: 576px;
    --bp-md: 768px;
    --bp-lg: 992px;
    --bp-xl: 1200px;

    /* Colors */
    --color-primary: #e22721;
    --color-primary-dark: #c91f1a;
    --color-text: #1f2937;
    --color-text-light: #6b7280;
    --color-bg: #ffffff;
    --color-bg-alt: #f9fafb;
    --color-border: #e5e7eb;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;

    /* Touch targets */
    --touch-target-min: 48px;
}

/* Touch-friendly elements */
button,
.btn,
.faq-question,
.faq-quick-link,
.faq-cta-btn {
    min-height: var(--touch-target-min);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

/* Prevent iOS zoom on input focus */
input,
.faq-search-box input {
    font-size: 16px;
    min-height: var(--touch-target-min);
}

/* Hero Light Centered - Mobile First */
.hero-light-content-centered {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px var(--space-md) 60px;
}

/* Mobile: smaller title */
.hero-light-content-centered .hero-light-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin-bottom: var(--space-md);
}

.hero-light-content-centered .hero-light-subtitle {
    font-size: 16px;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

.hero-light-content-centered .hero-light-subtitle a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.hero-light-content-centered .hero-light-subtitle a:hover {
    text-decoration: underline;
}

/* Search Box - Mobile First */
.faq-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 2px solid var(--color-border);
    border-radius: 50px;
    padding: 12px var(--space-md);
    max-width: 100%;
    margin: 0 auto var(--space-xl);
    transition: all 0.3s ease;
}

.faq-search-box:focus-within {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(226, 39, 33, 0.1);
}

.faq-search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--color-text);
    background: transparent;
    min-height: calc(var(--touch-target-min) - 24px);
}

.faq-search-box input::placeholder {
    color: #9ca3af;
}

/* Quick Links - Mobile First */
.faq-quick-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-sm);
}

/* Mobile: icon-only quick links */
.faq-quick-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: white;
    border: 1px solid var(--color-border);
    border-radius: 50px;
    color: #4b5563;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    min-height: var(--touch-target-min);
    transition: all 0.3s ease;
}

.faq-quick-link span {
    display: none;
}

.faq-quick-link:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* FAQ Section - Mobile First */
.faq-section {
    padding: 60px 0;
    background: var(--color-bg-alt);
}

/* FAQ Category */
.faq-category {
    margin-bottom: var(--space-2xl);
}

.faq-category:last-child {
    margin-bottom: 0;
}

.faq-category-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.faq-category-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* Mobile: smaller header */
.faq-category-header h2 {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

/* FAQ List */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* FAQ Item */
.faq-item {
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.faq-item.open {
    border-color: var(--color-primary);
    box-shadow: 0 4px 20px rgba(226, 39, 33, 0.1);
}

/* FAQ Question - Mobile First */
.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    min-height: var(--touch-target-min);
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: var(--color-bg-alt);
}

/* Mobile: smaller question text */
.faq-question h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    flex: 1;
    padding-right: var(--space-md);
    margin: 0;
}

.faq-icon {
    flex-shrink: 0;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.faq-item.open .faq-icon {
    transform: rotate(45deg);
    color: var(--color-primary);
}

/* FAQ Answer - Mobile First */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 1000px;
    padding: 0 var(--space-md) var(--space-md);
}

.faq-answer p {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 var(--space-md);
}

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

.faq-answer ul,
.faq-answer ol {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.7;
    margin: 0 0 var(--space-md);
    padding-left: var(--space-lg);
}

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

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

.faq-answer a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.faq-answer a:hover {
    text-decoration: underline;
}

.faq-answer strong {
    color: var(--color-text);
}

/* CTA Section - Mobile First */
.faq-cta {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
}

.faq-cta-content {
    text-align: center;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* Mobile: smaller CTA text */
.faq-cta-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0 0 12px;
}

.faq-cta-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 var(--space-lg);
}

/* Mobile: column buttons */
.faq-cta-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.faq-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px var(--space-lg);
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    min-height: var(--touch-target-min);
    width: 100%;
    max-width: 280px;
    transition: all 0.3s ease;
}

.faq-cta-btn.primary {
    background: white;
    color: var(--color-primary);
}

.faq-cta-btn.primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    text-decoration: none;
}

.faq-cta-btn.secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.faq-cta-btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    transform: translateY(-3px);
    text-decoration: none;
}

/* ============================================
   RESPONSIVE - Mobile-First Approach
   Base styles are mobile, then scale up
   ============================================ */

/* Tablet (min-width: 768px) */
@media (min-width: 768px) {
    .hero-light-content-centered {
        padding: 60px var(--space-lg);
        max-width: 700px;
    }

    .hero-light-content-centered .hero-light-title {
        font-size: 40px;
    }

    .hero-light-content-centered .hero-light-subtitle {
        font-size: 17px;
        margin-bottom: 40px;
    }

    .faq-search-box {
        padding: 16px var(--space-lg);
        max-width: 500px;
    }

    .faq-quick-links {
        gap: 12px;
    }

    .faq-quick-link {
        padding: 12px var(--space-md);
        font-size: 14px;
    }

    .faq-quick-link span {
        display: inline;
    }

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

    .faq-category {
        margin-bottom: 60px;
    }

    .faq-category-header h2 {
        font-size: 24px;
    }

    .faq-question {
        padding: var(--space-md) var(--space-lg);
    }

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

    .faq-item.open .faq-answer {
        padding: 0 var(--space-lg) var(--space-lg);
    }

    .faq-answer p,
    .faq-answer ul,
    .faq-answer ol {
        font-size: 15px;
    }

    .faq-cta {
        padding: 80px 0;
    }

    .faq-cta-content {
        max-width: 600px;
    }

    .faq-cta-content h2 {
        font-size: 32px;
    }

    .faq-cta-content p {
        font-size: 18px;
        margin-bottom: var(--space-xl);
    }

    .faq-cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
    }

    .faq-cta-btn {
        padding: 16px var(--space-xl);
        font-size: 16px;
        width: auto;
        max-width: none;
    }
}

/* Desktop (min-width: 992px) */
@media (min-width: 992px) {
    .hero-light-content-centered {
        padding: 80px 20px;
    }

    .hero-light-content-centered .hero-light-title {
        font-size: 48px;
    }

    .hero-light-content-centered .hero-light-subtitle {
        font-size: 18px;
    }

    .faq-quick-link {
        padding: 12px 20px;
    }
}
