/* ==========================================================================
   AnswerDesk Dedicated FAQ Page Styling (IllyVoIP Color Theme)
   ========================================================================== */

:root {
    --iv-bg-base: #f4f7f0;
    --iv-bg-alt: #edf4ec;
    --iv-bg-card: #ffffff;
    --iv-ink: #162f2b;
    --iv-body: #475a52;
    --iv-muted: #6b7e76;
    --iv-teal: #278b7d;
    --iv-teal-hover: #1b665b;
    --iv-teal-light: #ebf6f2;
    --iv-teal-border: #99cfc5;
    --iv-deep: #123e35;
    --iv-deep-dark: #0d2e27;
    --iv-line: #dce7df;
    --iv-line-subtle: #e8f0ea;
    --iv-shadow: 0 4px 20px rgba(18, 62, 53, 0.05);
    --iv-shadow-hover: 0 16px 36px rgba(18, 62, 53, 0.10);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--iv-bg-base);
    color: var(--iv-ink);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--iv-deep);
    color: #dcefe7;
    font-size: 12px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.top-bar-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== HEADER ===== */
.site-header {
    background: rgba(244, 247, 240, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--iv-line);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 16px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.logo:hover {
    opacity: 0.85;
}

.logo-icon {
    width: 38px;
    height: 38px;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-name {
    font-size: 22px;
    font-weight: 800;
    color: var(--iv-ink);
    letter-spacing: -0.5px;
}

.logo-name-accent {
    color: var(--iv-teal);
}

.logo-sub {
    font-size: 10px;
    font-weight: 700;
    color: var(--iv-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.header-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 600;
    color: var(--iv-body);
    text-decoration: none;
    transition: color 0.2s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--iv-teal);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--iv-teal);
    border-radius: 1px;
}

.header-cta {
    padding: 10px 24px;
    background: #123e35;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(18, 62, 53, 0.2);
}

.header-cta:hover {
    background: #1e6d62;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(18, 62, 53, 0.3);
}

/* ===== HERO BANNER ===== */
.faq-hero {
    background: linear-gradient(135deg, #123e35 0%, #162f2b 100%);
    color: #ffffff;
    padding: 64px 20px 52px;
    text-align: center;
    border-bottom: 1px solid var(--iv-line);
}

.faq-hero-inner {
    max-width: 860px;
    margin: 0 auto;
}

.faq-pill-badge {
    background: #ebf6f2;
    color: #164e43;
    border: 1px solid #b9dfd5;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-bottom: 18px;
    display: inline-block;
}

.faq-hero-title {
    font-size: clamp(30px, 4vw, 46px);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.faq-hero-subtitle {
    font-size: 16px;
    color: #b8d5cb;
    line-height: 1.6;
    max-width: 680px;
    margin: 0 auto 34px;
}

/* Live FAQ Search */
.faq-search-wrapper {
    max-width: 680px;
    margin: 0 auto;
}

.faq-search-box {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 2px solid var(--iv-line);
    border-radius: 50px;
    padding: 12px 24px;
    box-shadow: 0 10px 30px rgba(18, 62, 53, 0.15);
    transition: all 0.25s ease;
}

.faq-search-box:focus-within {
    border-color: var(--iv-teal);
    box-shadow: 0 0 0 4px rgba(39, 139, 125, 0.20), 0 12px 35px rgba(18, 62, 53, 0.20);
}

.faq-search-icon {
    width: 22px;
    height: 22px;
    color: var(--iv-teal);
    flex-shrink: 0;
}

.faq-search-input {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-family: inherit;
    color: var(--iv-ink);
    background: transparent;
}

.faq-search-input::placeholder {
    color: var(--iv-muted);
}

/* ===== MAIN CONTENT CONTAINER ===== */
.faq-main-wrapper {
    max-width: 980px;
    margin: 48px auto 80px;
    padding: 0 24px;
}

/* Filter Category Pills */
.faq-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 44px;
}

.faq-pill {
    background: #ffffff;
    border: 1.5px solid var(--iv-line);
    color: var(--iv-body);
    font-size: 14px;
    font-weight: 700;
    padding: 9px 20px;
    border-radius: 24px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(18, 62, 53, 0.04);
}

.faq-pill:hover {
    border-color: var(--iv-teal);
    color: var(--iv-ink);
    background: var(--iv-bg-alt);
    transform: translateY(-1px);
}

.faq-pill.active {
    background: var(--iv-teal);
    border-color: var(--iv-teal);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(39, 139, 125, 0.25);
}

/* Category Sections */
.faq-category-section {
    margin-bottom: 44px;
}

.faq-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--iv-line);
}

.faq-category-header h3 {
    font-size: 21px;
    font-weight: 800;
    color: var(--iv-ink);
    margin: 0;
    letter-spacing: -0.01em;
}

.faq-category-header .faq-badge {
    background: #ebf6f2;
    color: #164e43;
    font-size: 11.5px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid #b9dfd5;
}

/* Accordion Item */
.faq-item {
    background: #ffffff;
    border: 1.5px solid var(--iv-line);
    border-radius: 16px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--iv-shadow);
}

.faq-item:hover {
    border-color: var(--iv-teal-border);
    box-shadow: var(--iv-shadow-hover);
}

.faq-item.active {
    border-color: var(--iv-teal);
    box-shadow: 0 6px 20px rgba(18, 62, 53, 0.08);
}

.faq-question-btn {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    font-size: 16.5px;
    font-weight: 700;
    color: var(--iv-ink);
    transition: color 0.2s;
}

.faq-question-btn:hover {
    color: var(--iv-teal);
}

.faq-chevron {
    width: 22px;
    height: 22px;
    color: var(--iv-teal);
    flex-shrink: 0;
    transition: transform 0.25s ease;
    margin-left: 14px;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer-panel {
    display: none;
    padding: 0 24px 24px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--iv-body);
    border-top: 1px solid var(--iv-line-subtle);
    padding-top: 18px;
}

.faq-item.active .faq-answer-panel {
    display: block;
    animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-answer-panel p {
    margin-bottom: 12px;
}

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

.faq-answer-panel ul {
    margin: 10px 0 14px 22px;
}

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

/* Bottom CTA Card */
.faq-cta-box {
    background: linear-gradient(135deg, #123e35 0%, #162f2b 100%);
    color: #ffffff;
    border-radius: 24px;
    padding: 44px 36px;
    text-align: center;
    margin-top: 56px;
    box-shadow: 0 16px 36px rgba(18, 62, 53, 0.15);
}

.faq-cta-box h3 {
    font-size: 26px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.faq-cta-box p {
    color: #b8d5cb;
    font-size: 15.5px;
    max-width: 620px;
    margin: 0 auto 28px;
    line-height: 1.6;
}

.faq-cta-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-faq-chat {
    background: #278b7d;
    color: #ffffff;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(39, 139, 125, 0.25);
}

.btn-faq-chat:hover {
    background: #1e6d62;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(39, 139, 125, 0.35);
}

.btn-faq-articles {
    background: rgba(255, 255, 255, 0.12);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    padding: 13px 26px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-faq-articles:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================================================
   HIGH-CONTRAST ILLYVOIP FOOTER RULES (WCAG AAA VISIBILITY)
   ========================================================================== */
.site-footer {
    background: #123e35 !important;
    color: #ffffff !important;
    padding: 60px 0 36px 0 !important;
    border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
    width: 100% !important;
}

.site-footer .section-container {
    max-width: 1280px !important;
    margin: 0 auto !important;
    padding: 0 32px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.site-footer .footer-logo .logo-name {
    color: #ffffff !important;
}

.site-footer .footer-logo .logo-name-accent {
    color: #5eead4 !important;
}

.site-footer .footer-desc {
    color: #cbe3db !important;
    font-size: 14.5px !important;
    line-height: 1.6 !important;
}

.site-footer .footer-grid {
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1fr !important;
    gap: 32px !important;
    margin-bottom: 24px !important;
}

.site-footer .footer-col h4 {
    color: #ffffff !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    margin-bottom: 14px !important;
    letter-spacing: 0.3px !important;
}

.site-footer .footer-col ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.site-footer .footer-col ul li {
    margin-bottom: 10px !important;
}

.site-footer .footer-col ul li a {
    color: #dcefe7 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
}

.site-footer .footer-col ul li a:hover {
    color: #5eead4 !important;
    transform: translateX(3px) !important;
}

.site-footer .footer-guarantees {
    background: #ffffff !important;
    border: 1.5px solid #dce7df !important;
    border-radius: 18px !important;
    padding: 22px 28px !important;
    margin: 32px 0 28px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
}

.site-footer .footer-guarantee-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.site-footer .guarantee-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.site-footer .guarantee-icon-wrap img {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain !important;
}

.site-footer .footer-guarantee-item strong {
    color: #123e35 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    display: block !important;
    margin-bottom: 3px !important;
}

.site-footer .footer-guarantee-item p {
    color: #475a52 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
}

.site-footer .brand-disclaimer {
    border-top: 1px solid rgba(255, 255, 255, 0.14) !important;
    padding: 14px 0 8px 0 !important;
    margin-top: 18px !important;
}

.site-footer .footer-bottom > p {
    color: #8bb0a4 !important;
    font-size: 11.5px !important;
    margin-top: 8px !important;
}

.site-footer .footer-bottom .brand-disclaimer p {
    color: #9ec3b7 !important;
    font-size: 10.5px !important;
    line-height: 1.48 !important;
    margin: 0 !important;
}

/* Responsive */
@media (max-width: 900px) {
    .site-footer .footer-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .site-footer .footer-guarantees {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .header-nav { display: none; }
    .faq-hero-title { font-size: 28px; }
    .site-footer .footer-grid { grid-template-columns: 1fr !important; }
    .site-footer .footer-guarantees { grid-template-columns: 1fr !important; }
}


/* ===== RESPONSIVE FOOTER GUARANTEES UNIFIED ===== */
.site-footer .footer-guarantees {
    background: #ffffff !important;
    border: 1.5px solid #dce7df !important;
    border-radius: 18px !important;
    padding: 22px 28px !important;
    margin: 32px 0 28px 0 !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18) !important;
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 20px !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
}

.site-footer .footer-guarantee-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    min-width: 0 !important;
}

.site-footer .guarantee-icon-wrap {
    width: 44px !important;
    height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}

.site-footer .guarantee-text {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}

.site-footer .footer-guarantee-item strong {
    color: #123e35 !important;
    font-size: 14.5px !important;
    font-weight: 800 !important;
    display: block !important;
    margin-bottom: 3px !important;
    white-space: normal !important;
    word-break: break-word !important;
}

.site-footer .footer-guarantee-item p {
    color: #475a52 !important;
    font-size: 12.5px !important;
    line-height: 1.45 !important;
    margin: 0 !important;
    white-space: normal !important;
    word-break: break-word !important;
}

@media (max-width: 1024px) {
    .site-footer .footer-guarantees {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 16px 20px !important;
        padding: 20px 22px !important;
    }
}

@media (max-width: 768px) {
    .faq-hero {
        padding: 40px 14px 36px;
    }
    .faq-search-box {
        padding: 10px 14px;
        gap: 10px;
    }
    .faq-search-input::placeholder {
        font-size: 13px;
    }
    .faq-main-wrapper {
        margin: 32px auto 56px;
        padding: 0 16px;
    }
    .faq-filter-pills {
        gap: 8px;
        margin-bottom: 28px;
    }
    .faq-pill {
        font-size: 12.5px;
        padding: 7px 14px;
    }
    .faq-category-header {
        flex-wrap: wrap;
        gap: 8px;
    }
    .faq-category-header h3 {
        font-size: 18px;
    }
    .faq-question-btn {
        padding: 16px 16px;
        font-size: 15px;
    }
    .faq-answer-panel {
        padding: 14px 16px 18px;
        font-size: 14.5px;
    }
    .faq-cta-box {
        padding: 28px 18px;
        margin-top: 36px;
    }
    .faq-cta-box h3 {
        font-size: 21px;
    }
    .site-footer {
        padding: 42px 0 34px 0 !important;
    }
    .site-footer .section-container {
        padding: 0 18px !important;
    }
    .site-footer .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 26px !important;
    }
}

@media (max-width: 600px) {
    .site-footer .footer-guarantees {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        padding: 16px !important;
    }
    .faq-cta-actions {
        flex-direction: column;
    }
    .btn-faq-chat,
    .btn-faq-articles {
        width: 100%;
        text-align: center;
    }
}

/* Top-bar and cookie-banner responsiveness are managed centrally in mobile-nav.css */
