/**
 * FAQ Page Styles
 * Extracted from faq-page.php
 * Using Safesanté Brand Guidelines
 */

/* Custom Header */
.faq-topbar {
    background: #F5E6E0;
    padding: 10px 20px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 30px;
}

.faq-topbar-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 14px;
    color: var(--indigo-color, #202B6D);
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-topbar-item:hover {
    color: var(--coral-color, #ff6b5b);
}

.faq-main-header {
    background: var(--indigo-color, #202B6D);
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.faq-logo img {
    height: 45px;
    width: auto;
}

.faq-nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.faq-nav-link {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 500;
    color: var(--white, #fff);
    text-decoration: none;
    transition: color 0.3s ease;
}

.faq-nav-link:hover {
    color: var(--sky-color, #A7DBEE);
}

.faq-header-cta {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--indigo-color, #202B6D);
    background: var(--yellow-color, #FEC400);
    padding: 14px 28px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-header-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 196, 0, 0.4);
}

/* ==========================================
   INFO CARDS SECTION - 3 COLUMN GRID
   ========================================== */
.faq-cards-section {
    background: var(--white, #fff);
    padding: 80px 40px;
    position: relative;
}

.faq-cards-container {
    max-width: 1200px;
    margin: 0 auto;
}

.faq-cards-header {
    text-align: center;
    margin-bottom: 50px;
}

.faq-cards-title {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 48px;
    font-weight: 700;
    color: var(--indigo-color, #202B6D);
    margin: 0 0 15px;
    line-height: 1.2;
}

.faq-cards-subtitle {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 18px;
    font-weight: 400;
    color: var(--ash-color, #4E585B);
    margin: 0;
    line-height: 1.6;
}

.faq-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.faq-card {
    background: var(--glow-color, #F4F4F4);
    border-radius: 24px;
    padding: 40px 35px;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 2px solid transparent;
}

.faq-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--sky-color, #A7DBEE);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.faq-card:nth-child(2)::before {
    background: var(--yellow-color, #FEC400);
}

.faq-card:nth-child(3)::before {
    background: var(--electric-color, #2F4ACD);
}

.faq-card:hover {
    transform: translateY(-8px);
    border-color: var(--sky-color, #A7DBEE);
    box-shadow: 0 25px 50px rgba(32, 43, 109, 0.1);
}

.faq-card:nth-child(2):hover {
    border-color: var(--yellow-color, #FEC400);
}

.faq-card:nth-child(3):hover {
    border-color: var(--electric-color, #2F4ACD);
}

.faq-card:hover::before {
    opacity: 1;
}

.faq-card-icon {
    width: 70px;
    height: 70px;
    background: var(--white, #fff);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.faq-card-icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.faq-card-title {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 20px;
    font-weight: 700;
    color: var(--indigo-color, #202B6D);
    margin: 0;
    line-height: 1.4;
}

.faq-card-text {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--ash-color, #4E585B);
    line-height: 1.7;
    margin: 0;
}

.faq-card-text a {
    color: var(--electric-color, #2F4ACD);
    text-decoration: none;
    font-weight: 500;
}

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

.faq-card-text strong {
    color: var(--indigo-color, #202B6D);
    font-weight: 600;
}

.faq-card-text .highlight-number {
    color: var(--electric-color, #2F4ACD);
    font-weight: 700;
    font-size: 17px;
}

/* Cards CTA Button */
.faq-cards-cta {
    text-align: center;
    margin-top: 50px;
}

.faq-cards-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--indigo-color, #202B6D);
    background: var(--yellow-color, #FEC400);
    padding: 16px 32px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.faq-cards-cta-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(254, 196, 0, 0.4);
}

/* ==========================================
   FAQ SECTION - SIDEBAR NAVIGATION LAYOUT
   ========================================== */
.faq-main-section {
    background: var(--sky-color, #A7DBEE);
    padding: 80px 40px;
}

.faq-main-container {
    max-width: 1300px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 60px;
}

/* Sidebar Navigation */
.faq-sidebar {
    position: sticky;
    top: 30px;
    height: fit-content;
}

.faq-sidebar-title {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 24px;
    font-weight: 700;
    color: var(--indigo-color, #202B6D);
    margin: 0 0 25px;
}

.faq-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.faq-nav-item {
    margin-bottom: 8px;
}

.faq-nav-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: var(--white, #fff);
    border: 2px solid transparent;
    border-radius: 12px;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 500;
    color: var(--ash-color, #4E585B);
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;
}

.faq-nav-btn:hover {
    background: var(--white, #fff);
    border-color: var(--indigo-color, #202B6D);
    color: var(--indigo-color, #202B6D);
}

.faq-nav-btn.active {
    background: var(--indigo-color, #202B6D);
    border-color: var(--indigo-color, #202B6D);
    color: var(--white, #fff);
}

.faq-nav-btn i {
    font-size: 16px;
    width: 20px;
    text-align: center;
}

.faq-nav-btn.active i {
    color: var(--yellow-color, #FEC400);
}

.faq-nav-count {
    margin-left: auto;
    background: rgba(0, 0, 0, 0.1);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.faq-nav-btn.active .faq-nav-count {
    background: rgba(255, 255, 255, 0.2);
}

/* FAQ Content Area */
.faq-content {
    min-height: 600px;
}

.faq-category {
    display: none;
}

.faq-category.active {
    display: block;
}

.faq-category-header {
    margin-bottom: 35px;
    padding-bottom: 25px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.5);
}

.faq-category-title {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 28px;
    font-weight: 700;
    color: var(--indigo-color, #202B6D);
    margin: 0 0 10px;
}

.faq-category-desc {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 400;
    color: var(--ash-color, #4E585B);
    margin: 0;
}

/* Accordion Items */
.faq-item {
    background: var(--white, #fff);
    border-radius: 16px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.faq-item:hover {
    box-shadow: 0 8px 25px rgba(32, 43, 109, 0.1);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 25px 30px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(167, 219, 238, 0.15);
}

.faq-question-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    background: var(--white, #fff);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 14px;
    font-weight: 700;
    color: var(--electric-color, #2F4ACD);
    transition: all 0.3s ease;
}

.faq-item.active .faq-question-number {
    background: var(--electric-color, #2F4ACD);
    color: var(--white, #fff);
}

.faq-question-text {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--indigo-color, #202B6D);
    flex: 1;
}

.faq-question-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border: 2px solid var(--sky-color, #A7DBEE);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.faq-question-icon i {
    font-size: 12px;
    color: var(--sky-color, #A7DBEE);
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question-icon {
    background: var(--sky-color, #A7DBEE);
    border-color: var(--sky-color, #A7DBEE);
}

.faq-item.active .faq-question-icon i {
    color: var(--white, #fff);
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-content {
    padding: 0 30px 30px 82px;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 15px;
    font-weight: 400;
    color: var(--ash-color, #4E585B);
    line-height: 1.8;
}

.faq-answer-content strong {
    color: var(--indigo-color, #202B6D);
    font-weight: 600;
}

.faq-answer-content a {
    color: var(--electric-color, #2F4ACD);
    text-decoration: none;
}

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

/* ==========================================
   BOTTOM CTA SECTION - HORIZONTAL BANNER
   ========================================== */
.faq-bottom-cta {
    background: #2F80ED;
    padding: 50px 40px;
}

.faq-bottom-container {
    max-width: 1300px;
    margin: 0 auto;
}

.faq-bottom-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.faq-bottom-title {
    font-family: 'Georgia', 'Times New Roman', serif;
    font-size: 32px;
    font-weight: 400;
    color: var(--white, #fff);
    margin: 0;
    line-height: 1.3;
    flex-shrink: 0;
}

.faq-bottom-text {
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    flex: 1;
}

.faq-bottom-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary, 'DM Sans', sans-serif);
    font-size: 16px;
    font-weight: 600;
    padding: 16px 30px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
    color: var(--indigo-color, #202B6D);
    background: var(--yellow-color, #FEC400);
}

.faq-bottom-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(254, 196, 0, 0.4);
}

.faq-bottom-cta-btn i {
    font-size: 14px;
}

/* ==========================================
   RESPONSIVE STYLES
   ========================================== */
@media (max-width: 1200px) {
    .faq-main-container {
        grid-template-columns: 260px 1fr;
        gap: 40px;
    }

    .faq-hero-title {
        font-size: 48px;
    }

    .faq-cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .faq-main-header {
        padding: 15px 20px;
        flex-wrap: wrap;
        gap: 15px;
    }

    .faq-nav {
        gap: 20px;
    }

    .faq-logo img {
        height: 38px;
    }

    .faq-cards-section {
        padding: 70px 30px;
    }

    .faq-cards-title {
        font-size: 42px;
    }

    .faq-cards-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .faq-main-container {
        grid-template-columns: 1fr;
    }

    .faq-sidebar {
        position: relative;
        top: 0;
    }

    .faq-nav-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .faq-nav-item {
        margin-bottom: 0;
    }

    .faq-bottom-content {
        justify-content: center;
        text-align: center;
    }

    .faq-bottom-title {
        font-size: 28px;
        width: 100%;
    }

    .faq-bottom-text {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .faq-topbar {
        flex-wrap: wrap;
        gap: 15px;
        justify-content: center;
    }

    .faq-main-header {
        flex-direction: column;
        text-align: center;
    }

    .faq-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 15px;
    }

    .faq-header-cta {
        padding: 12px 24px;
        font-size: 14px;
    }

    .faq-cards-section {
        padding: 60px 20px;
    }

    .faq-cards-header {
        margin-bottom: 40px;
    }

    .faq-cards-title {
        font-size: 36px;
    }

    .faq-cards-subtitle {
        font-size: 16px;
    }

    .faq-card {
        padding: 30px 25px;
    }

    .faq-card-icon {
        width: 60px;
        height: 60px;
    }

    .faq-card-title {
        font-size: 18px;
    }

    .faq-card-text {
        font-size: 14px;
    }

    .faq-cards-cta {
        margin-top: 40px;
    }

    .faq-main-section {
        padding: 60px 20px;
    }

    .faq-nav-list {
        grid-template-columns: 1fr;
    }

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

    .faq-question {
        padding: 20px;
    }

    .faq-question-text {
        font-size: 15px;
    }

    .faq-answer-content {
        padding: 0 20px 25px 72px;
        font-size: 14px;
    }

    .faq-bottom-cta {
        padding: 40px 20px;
    }

    .faq-bottom-title {
        font-size: 26px;
    }

    .faq-bottom-text {
        font-size: 15px;
    }

    .faq-bottom-cta-btn {
        width: 100%;
        justify-content: center;
        padding: 16px 30px;
    }
}

@media (max-width: 480px) {
    .faq-cards-section {
        padding: 50px 15px;
    }

    .faq-cards-header {
        margin-bottom: 35px;
    }

    .faq-cards-title {
        font-size: 32px;
    }

    .faq-cards-subtitle {
        font-size: 15px;
    }

    .faq-card {
        padding: 25px;
    }

    .faq-card-icon {
        width: 55px;
        height: 55px;
    }

    .faq-card-icon img {
        width: 28px;
        height: 28px;
    }

    .faq-card-title {
        font-size: 17px;
    }

    .faq-cards-cta {
        margin-top: 35px;
    }

    .faq-cards-cta-btn {
        font-size: 15px;
        padding: 14px 28px;
    }

    .faq-sidebar-title {
        font-size: 20px;
    }

    .faq-nav-btn {
        padding: 14px 16px;
        font-size: 14px;
    }

    .faq-category-title {
        font-size: 20px;
    }

    .faq-question-number {
        width: 32px;
        height: 32px;
        min-width: 32px;
        font-size: 12px;
    }

    .faq-answer-content {
        padding-left: 68px;
    }

    .faq-bottom-title {
        font-size: 22px;
    }

    .faq-bottom-cta-btn {
        font-size: 15px;
    }
}

/* ==========================================
   ON REVEAL ANIMATIONS
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards */
.faq-card.reveal:nth-child(1) { transition-delay: 0s; }
.faq-card.reveal:nth-child(2) { transition-delay: 0.15s; }
.faq-card.reveal:nth-child(3) { transition-delay: 0.3s; }

/* Staggered delays for FAQ items */
.faq-item.reveal:nth-child(1) { transition-delay: 0s; }
.faq-item.reveal:nth-child(2) { transition-delay: 0.1s; }
.faq-item.reveal:nth-child(3) { transition-delay: 0.2s; }
.faq-item.reveal:nth-child(4) { transition-delay: 0.3s; }
.faq-item.reveal:nth-child(5) { transition-delay: 0.4s; }

/* Fade in from left */
.reveal-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Fade in from right */
.reveal-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

/* Scale up animation */
.reveal-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    .reveal,
    .reveal-left,
    .reveal-right,
    .reveal-scale {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
