/**
 * Section: faq-section
 *
 * Extracted from template-parts/faq_section.php.
 * Loaded via trunorth_enqueue_section('faq-section').
 */

.faq-component {
        font-family: "Montserrat", sans-serif;

        /* Nav Buttons */
        .faq-nav {
            margin-bottom: calc(var(--vw) * 4);
            padding: calc(var(--vw) * 4) calc(var(--vw) * 8);
        }

        .faq-nav-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: calc(var(--vw) * 1) calc(var(--vw) * 10);
        }

        .faq-nav-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: calc(var(--vw) * 2);
            border: calc(var(--vw) * 0.25) solid #c22127;
            color: #000;
            text-decoration: none;
            font-size: clamp(1rem, calc(var(--vw) * 1), calc(var(--vw) * 1));
            font-weight: 600;
            font-family: "Montserrat", sans-serif;
            letter-spacing: 0.05em;
            text-transform: uppercase;
            background-color: #f8f8f8;
            border-radius: calc(var(--vw) * 0.5);
            transition: background 0.2s, color 0.2s;

            &:hover {
                background: #c22127;
                color: #fff;
            }
        }

        /* FAQ Sections */
        .faq-sections {
            display: flex;
            flex-direction: column;
            gap: calc(var(--vw) * 2);
        }

        .faq-section {
            background: #f3f3f3;
            padding: calc(var(--vw) * 4) calc(var(--vw) * 10);

            &:nth-child(even) {
                background: #fff;
            }

            h2 {
                font-family: "Open Sans Condensed", sans-serif;
                font-size: var(--font-h4);
                font-weight: 600;
                color: #c22127;
                margin-bottom: calc(var(--vw) * 3);
                text-transform: uppercase;
            }
        }

        /* Accordion */
        .faq-accordion {
            display: flex;
            flex-direction: column;
            gap: calc(var(--vw) * 0.5);
        }

        .faq-item {
            border: 1px solid #c22127;
            border-radius: calc(var(--vw) * 0.5);
            overflow: hidden;

            &.active .faq-question {
                color: #c22127;
                font-weight: 600;
            }

            &.active .faq-question::after {
                content: '−';
                color: #c22127;
            }

            &.active .faq-answer {
                max-height: 500px;
                padding: calc(var(--vw) * 0) calc(var(--vw) * 2) calc(var(--vw) * 1.5) calc(var(--vw) * 2);
            }
        }

        .faq-question {
            width: 100%;
            text-align: left;
            background: #fff;
            padding: calc(var(--vw) * 1.5) calc(var(--vw) * 2);
            font-size: var(--font-body);
            font-family: "Open Sans", sans-serif;
            font-weight: 400;
            color: #333;
            cursor: pointer;
            display: flex;
            justify-content: space-between;
            align-items: center;
            transition: color 0.2s;
            border: none;

            &::after {
                content: '+';
                font-size: 1.25rem;
                font-weight: 300;
                color: #999;
                transition: transform 0.2s;
            }
        }

        .faq-answer {
            max-height: 0;
            overflow: hidden;
            transition: none;
            background: #fff;
            padding: 0 calc(var(--vw) * 1.5);

            p {
                font-size: var(--font-body);
                line-height: 1.2;
            }
        }

        @media (max-width: 1024px) {
             .faq-nav-grid {
                grid-template-columns: 1fr;
                gap: calc(var(--vw) * 2);
            }
        }

    }
