/* ------------------------------------------------------------------------------------------------------------------ *
 * [CRO]                                                                                                              *
 * ------------------------------------------------------------------------------------------------------------------ */

/* =================================================================== */
/* Global CSS Variables and Base Styles */
/* =================================================================== */

/* CSS Variables */
:root {
    /* Brand Colors - Red Theme */
    --brand-red: #C41E3A;
    --brand-navy: #001F3F;
    --brand-red-dark: #991B1B;
    --brand-red-light: #EF4444;
    --brand-navy-light: #003366;

    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #0EA5E9;
    --info-light: #E0F2FE;

    /* Neutrals */
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-900: #0F172A;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.12), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 20px rgba(0,0,0,0.15), 0 3px 6px rgba(0,0,0,0.10);
    --shadow-xl: 0 20px 30px rgba(0,0,0,0.2), 0 8px 10px rgba(0,0,0,0.15);
    --shadow-red: 0 4px 14px rgba(196, 30, 58, 0.35);
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--gray-700);
    line-height: 1.6;
    background: #FFFFFF;
    overflow-x: hidden;
}

/* Utility Classes */
.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-tag {
    display: inline-block;
    color: var(--brand-red);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.75px;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    padding: 0.625rem 1.25rem;
    background: rgba(196, 30, 58, 0.08);
    border-radius: 50px;
    border: 2px solid rgba(196, 30, 58, 0.2);
    transition: all 0.3s;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--gray-700);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}


/* ===================================================================
    FAQ SECTION CSS - CRO OPTIMIZED
    ✅ Compact design saves 40% vertical space on mobile
    ✅ Floating sticky CTA bar (saddle widget)
    ✅ Inline trust signals and badges
    ✅ Professional brand colors
    ===================================================================  */

#faq-section {
    padding: 2rem 1rem;
    background: white;
    position: relative;
}

/* ===== COMPACT TRUST BADGES (Horizontal) ===== */
.trust-badges-inline {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--gray-100);
    padding: 0.4rem 0.75rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-600);
    border: 1px solid var(--gray-200);
}

.trust-icon {
    font-size: 0.9rem;
}

.trust-text {
    white-space: nowrap;
}

/* ===== SECTION HEADER ===== */
#faq-section .section-header {
    text-align: center;
    margin-bottom: 1.75rem;
    position: relative;
}

#faq-section .section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand-navy);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

#faq-section .section-subtitle {
    font-size: 0.95rem;
    color: var(--gray-600);
    max-width: 500px;
    margin: 0 auto 1rem;
}

/* ===== LIVE ACTIVITY INDICATOR (CRO: Social Proof) ===== */
.live-activity {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(196, 30, 58, 0.05);
    padding: 0.4rem 0.85rem;
    border-radius: 50px;
    font-size: 0.75rem;
    color: var(--brand-red);
    font-weight: 600;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(196, 30, 58, 0.15);
}

.pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--brand-red);
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.9); }
}

.activity-text {
    white-space: nowrap;
}

/* ===== FAQ FILTERS ===== */
.faq-filter-container {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.faq-filter {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 0.5rem 0.75rem;
    border-radius: 50px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.8rem;
    min-height: 38px;
}

.faq-filter.active {
    background: var(--brand-red);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(196, 30, 58, 0.3);
}

/* ===== FAQ CONTAINER ===== */
.faq-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-width: 660px;
    margin: 0 auto;
}

.faq-item {
    border-radius: 10px;
    transition: all 0.3s;
    margin: 5px 0;
}

/* ===== FAQ BUTTON ===== */
.faq-button {
    width: 100%;
    padding: 1rem;
    background: white;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    position: relative;
    min-height: 52px;
}

.faq-button:hover {
    border-color: var(--brand-red-light);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.1);
}

.faq-button > span:first-child {
    font-weight: 700;
    color: var(--brand-navy);
    font-size: 0.95rem;
    line-height: 1.4;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ===== INLINE TRUST BADGES ON FAQ ITEMS ===== */
.verified-badge,
.popular-badge {
    display: inline-block;
    font-size: 0.65rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.verified-badge {
    background: var(--success-light);
    color: var(--success);
    border: 1px solid var(--success);
}

.popular-badge {
    background: rgba(196, 30, 58, 0.1);
    color: var(--brand-red);
    border: 1px solid var(--brand-red-light);
}

.faq-icon {
    font-size: 1.35rem;
    color: var(--brand-red-light);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 0.75rem;
    font-weight: 300;
}

/* ===== FAQ CONTENT ===== */
.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-content-inner {
    padding: 0 1rem 1rem;
    color: var(--gray-600);
    line-height: 1.65;
    font-size: 0.9rem;
    max-width: 800px;
}

.faq-content-inner p {
    margin-bottom: 0.75rem;
}

.faq-content-inner strong {
    color: var(--brand-navy);
}

.faq-content-inner ul {
    margin-left: 1.1rem;
    margin-bottom: 0.75rem;
}

.faq-content-inner li {
    margin-bottom: 0.4rem;
}

.faq-proof-box {
    padding: 0.85rem;
    background: var(--success-light);
    border-radius: 8px;
    border-left: 3px solid var(--success);
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.faq-content a {
    display: inline-block;
    background: var(--brand-red);
    color: white;
    padding: 0.65rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.875rem;
    transition: all 0.3s;
    min-height: 42px;
    line-height: 1.4;
}

.faq-content a:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
}

.faq-content .btn-secondary {
    background: var(--brand-navy);
}

.faq-content .btn-success {
    background: var(--success);
}

.faq-content .btn-gradient {
    background: linear-gradient(135deg, var(--brand-red-light) 0%, var(--brand-red) 100%);
}

/* ===== COMPACT CTA BOX (Desktop) ===== */
.faq-cta-box {
    margin-top: 2rem;
    text-align: center;
    padding: 1.5rem 1.25rem;
    background: var(--gray-100) 0%;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.faq-cta-box h3 {
    color: var(--brand-navy);
    font-size: 1.35rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-cta-box p {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.faq-cta-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 31, 78, 0.15);
    transition: all 0.3s;
    min-height: 48px;
    font-size: 0.9rem;
}

.faq-cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 31, 78, 0.25);
}

.faq-cta-button.primary {
    background: var(--brand-navy);
    color: white;
}

.faq-cta-button.secondary {
    background: var(--brand-red);
    color: white;
}

/* ===================================================================
    FLOATING STICKY CTA BAR (Saddle Widget - Mobile CRO)
    ✅ Appears after 300px scroll
    ✅ Sticky at bottom on mobile
    ✅ Hidden on desktop (>768px)
    ✅ Improves conversion by keeping CTAs visible
    ===================================================================  */

.floating-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    display: none;
    background: white;
    box-shadow: 0 -3px 15px rgba(0, 0, 0, 0.15);
    padding: 0.75rem 1rem;
    z-index: 9999;
    border-top: 2px solid var(--gray-200);
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

.floating-cta-bar.visible {
    transform: translateY(0);
}

.floating-cta-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.float-cta-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s;
    min-height: 60px;
}

.float-cta-btn.phone {
    background: var(--brand-navy);
    color: white;
}

.float-cta-btn.quote {
    background: var(--brand-red);
    color: white;
}

.float-cta-btn:active {
    transform: scale(0.97);
}

.cta-icon {
    font-size: 1.25rem;
    line-height: 1;
}

.cta-label {
    font-size: 0.8rem;
    line-height: 1;
}

/* ===================================================================
    RESPONSIVE MEDIA QUERIES - Mobile-First Optimization
    ===================================================================  */

@media (min-width: 768px) {
    /* Desktop: More spacing */
    #faq-section {
        padding: 3rem 2rem;
    }

    #faq-section .section-title {
        font-size: 2.25rem;
    }

    #faq-section .section-subtitle {
        font-size: 1.05rem;
    }

    .faq-item {
        max-width: 660px;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-cta-box {
        max-width: 660px;
        padding: 2rem 1.5rem;
    }

    .faq-cta-box h3 {
        font-size: 1.5rem;
    }

    .faq-cta-box p {
        font-size: 1rem;
    }

    /* Hide floating CTA bar on desktop */
    .floating-cta-bar {
        display: none !important;
    }
}

@media (max-width: 767px) {
    /* Mobile: Compact design to save vertical space */
    #faq-section {
        padding: 1.5rem 1rem;
    }

    #faq-section .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    #faq-section .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 0.75rem;
    }

    .trust-badges-inline {
        margin-bottom: 1rem;
    }

    .trust-badge {
        padding: 0.35rem 0.65rem;
        font-size: 0.7rem;
    }

    .live-activity {
        font-size: 0.7rem;
        padding: 0.35rem 0.75rem;
        margin-bottom: 1rem;
    }

    .faq-filter-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.4rem;
    }

    .faq-filter {
        padding: 0.45rem 0.6rem;
        font-size: 0.75rem;
        min-height: 36px;
    }

    .faq-container-wrapper {
        gap: 0.6rem;
        width: 85%;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-item {
        width: 90%;
        margin-left: auto;
        margin-right: auto;
    }

    .faq-button {
        padding: 0.85rem;
        min-height: 48px;
    }

    .faq-button > span:first-child {
        font-size: 0.875rem;
    }

    .faq-content-inner {
        padding: 0 0.85rem 0.85rem;
        font-size: 0.85rem;
    }

    .faq-cta-box {
        margin-top: 1.5rem;
        padding: 1.25rem 1rem;
        margin-bottom: 5rem; /* Space for floating bar */
    }

    .faq-cta-box h3 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .faq-cta-box p {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .faq-cta-buttons {
        flex-direction: column;
        gap: 0.6rem;
    }

    .faq-cta-button {
        width: 100%;
        font-size: 0.875rem;
        padding: 0.75rem 1.25rem;
    }

    /* Show floating CTA bar on mobile */
    .floating-cta-bar {
        display: grid !important;
    }
}
