/* FAQ Page Styles */
/* CSS premenné sú definované v design-system.css */

/* ═══════════════════════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.faqs-hero {
    background-color: var(--dark-hero);
    color: var(--text-inverse);
    padding: var(--hero-padding-top-desktop) 0 var(--hero-padding-bottom-desktop);
    text-align: center;
    position: relative;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .faqs-hero {
        padding: var(--hero-padding-top-mobile) 0 var(--hero-padding-bottom-mobile);
    }
}

/* Hero Overlay */
.faqs-hero .section-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(33, 48, 53, 0.9) 0%, rgba(22, 22, 21, 0.8) 100%);
    z-index: 0;
}

.faqs-hero[style*="background-image"] .section-background-overlay {
    background: linear-gradient(135deg, rgba(33, 48, 53, 0.5) 0%, rgba(22, 22, 21, 0.65) 100%);
}

.faqs-hero>* {
    position: relative;
    z-index: 2;
}

.faqs-hero-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 var(--container-padding, 20px);
}

.faqs-hero-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: white;
    line-height: 1.1;
    text-wrap: balance;
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.1s;
    opacity: 0;
}

.faqs-hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    line-height: 1.6;
    color: var(--text-inverse);
    max-width: 768px;
    margin: 0 auto;
    font-weight: 400;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.25),
        0 6px 20px rgba(0, 0, 0, 0.25);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    animation-delay: 0.2s;
    opacity: 0;
}

.faqs-hero-label {
    display: inline-block;
    font-size: var(--font-size-xs);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--primary);
    margin-bottom: 1.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
}

.faqs-hero-title {
    margin-top: 0;
    /* Fix spacing */
}

/* Hero Divider */
.faqs-hero .hero-divider {
    position: absolute;
    top: 92px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(var(--container-width, 1280px) - 40px);
    max-width: calc(100% - 40px);
    height: 1px;
    background-color: var(--divider);
    border: none;
    z-index: 2;
}

@media (max-width: 1023px) {
    .faqs-hero .hero-divider {
        top: 68px;
    }
}

/* Container */
.faqs-container {
    max-width: 1024px;
    margin: 0 auto;
    padding: 0rem var(--container-padding) var(--section-spacing-desktop);
}

/* ═══════════════════════════════════════════════════════════════════════
   FAQ SECTIONS
   ═══════════════════════════════════════════════════════════════════════ */

.faqs-section {
    margin-bottom: var(--section-spacing-desktop);
}

.faqs-section:last-of-type {
    margin-bottom: 0;
}

.faqs-section-header {
    margin-bottom: 2.5rem;
}

.faq-section-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: var(--text);
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
}

.title-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-full);
    margin-top: 1rem;
}

/* FAQ List */
.faqs-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.faq-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* FAQ Item (Accordion) */
.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-surface);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item:hover {
    border-color: var(--border-strong);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.faq-item.active {
    border-color: var(--border-strong);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text);
    transition: color 0.2s ease;
}

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

.faq-item.active .faq-question {
    color: var(--text-strong);
    padding-bottom: 1rem;
}

.faq-question:focus {
    outline: none;
}

.faq-question:focus-visible {
    outline: 2px solid var(--text);
    outline-offset: -2px;
    border-radius: var(--radius-md);
}

.faq-question-text {
    flex: 1;
    line-height: 1.5;
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 1rem;
    color: var(--text-muted);
    transition: transform 0.3s ease, color 0.3s ease;
}

.faq-item:hover .faq-icon {
    color: var(--text);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
    color: var(--text);
}

.faq-answer {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: var(--bg-surface);
    /* Same as item background */
    border-top: 1px solid transparent;
    transition: border-color 0.3s ease, grid-template-rows 0.3s ease;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    /* border-top-color: rgba(0, 0, 0, 0.03); Optional subtle separator */
}

.faq-answer-content {
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer-content {
    padding: 0 1.5rem 1.5rem 1.5rem;
    /* Bottom padding only when open */
    opacity: 1;
}

.faq-answer-content {
    color: var(--text-secondary);
    line-height: 1.6;
    font-size: 1rem;
}

.faq-answer-content p {
    margin: 0 0 1rem 0;
}

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

.faq-answer-content ul,
.faq-answer-content ol {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.faq-answer-content li {
    margin-bottom: 0.5rem;
}

.faq-answer-content a {
    color: var(--text);
    text-decoration: underline;
    transition: color 0.2s ease;
}

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

/* ═══════════════════════════════════════════════════════════════════════
   TABS LAYOUT
   ═══════════════════════════════════════════════════════════════════════ */

.faqs-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 3rem;
    justify-content: center;
    border-bottom: none;
    padding-bottom: 0;
}

.faqs-tab-btn {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-radius: var(--radius-full);
    transition: all 0.2s ease;
}

.faqs-tab-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-surface);
    transform: translateY(-1px);
}

.faqs-tab-btn.active {
    color: var(--text-inverse);
    background: var(--primary);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(253, 198, 0, 0.25);
}

.faqs-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.faqs-tab-pane.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .faqs-tabs-nav {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        padding-bottom: 1rem;
        margin-bottom: 2rem;
        /* Handled by wrapper */
        -webkit-overflow-scrolling: touch;
        /* Smooth scrolling on iOS */
        scrollbar-width: none;
        /* Firefox */

        /* Ensure negative margins work with wrapper */
        margin-left: calc(var(--container-padding, 20px) * -1);
        margin-right: calc(var(--container-padding, 20px) * -1);
        padding-left: var(--container-padding, 20px);
        padding-right: var(--container-padding, 20px);
        gap: 0.75rem;
    }

    .faqs-tabs-nav::-webkit-scrollbar {
        display: none;
        /* Chrome, Safari, Opera */
    }

    .faqs-tab-btn {
        flex-shrink: 0;
        white-space: nowrap;
        width: auto;
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════════════════════════════ */

.faqs-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.faqs-empty p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ═══════════════════════════════════════════════════════════════════════
   CTA SECTION
   ═══════════════════════════════════════════════════════════════════════ */

.companies-cta {
    padding: var(--section-spacing-desktop) 20px;
    margin-top: var(--section-spacing-desktop);
    position: relative;
    overflow: hidden;
    background: var(--cta-bg, #19262B);
    color: #ffffff;
    /* border-radius removed as requested */
}

.companies-cta .cta-global-content {
    max-width: 1024px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    z-index: 2;
}

.companies-cta .cta-global-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.companies-cta .cta-global-text {
    font-size: 1.125rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
    line-height: 1.6;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.companies-cta .cta-global-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.companies-cta .btn-primary {
    background: var(--primary);
    color: var(--dark);
    border: none;
}

.companies-cta .btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(253, 198, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════════════ */

@media (max-width: 991px) {
    .faqs-hero {
        padding: 6rem 0 var(--section-spacing-mobile);
    }

    .faqs-container {
        padding: 3rem var(--container-padding, 20px) var(--section-spacing-mobile);
    }

    .faqs-section {
        margin-bottom: 3rem;
    }

    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1rem;
    }

    .faq-answer-content {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .companies-cta {
        padding: 3rem 2rem;
        margin-top: var(--section-spacing-mobile);
    }
}

@media (max-width: 767px) {
    .faqs-hero {
        padding: 6rem 0 4rem;
    }

    .faqs-container {
        padding: 2rem var(--container-padding, 20px) 3rem;
    }

    .faqs-section-header {
        margin-bottom: 2rem;
    }

    .faqs-list {
        gap: 0.75rem;
    }

    .faq-question {
        padding: 1rem 1.25rem;
        font-size: 0.95rem;
        gap: 1rem;
    }

    .faq-icon {
        width: 18px;
        height: 18px;
    }

    .faq-answer-content {
        padding: 0 1.25rem 1rem 1.25rem;
        font-size: 0.95rem;
    }

    .companies-cta {
        padding: 2.5rem 1.5rem;
        margin-top: 3rem;
    }

    .companies-cta .cta-global-title {
        font-size: 1.5rem;
    }

    .companies-cta .cta-global-text {
        font-size: 1rem;
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   ACCESSIBILITY
   ═══════════════════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-question,
    .faq-icon,
    .faq-answer {
        transition: none;
    }
}

/* Focus styles for keyboard navigation */
.faq-question:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}