/**
 * FAQ Section Styles
 *
 * @package TwentyTwentyFive_Child
 */

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --jtr-faq-bg: #FF2F2E;
    --jtr-faq-text: #FAF8F2;
    --jtr-faq-border: rgba(250, 248, 242, 0.3);
}

/* ==========================================================================
   Section Container
   ========================================================================== */
.jtr-faq {
    background-color: var(--jtr-faq-bg);
    padding: clamp(60px, 8vw, 120px) 0;
    position: relative;
}

.jtr-faq__container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 80px);
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px, 6vw, 100px);
    position: relative;
    z-index: 1;
}

/* ==========================================================================
   Left Column - Title & Description
   ========================================================================== */
.jtr-faq__left {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.jtr-faq__title {
    font-family: 'MirthaDisplayTrial', serif;
    font-size: clamp(40px, 5vw, 72px);
    font-weight: 400;
    line-height: 1.1;
    color: var(--jtr-faq-text);
    margin: 0 0 24px 0;
    opacity: 0;
    transform: translateY(30px);
    animation: faqFadeInUp 0.8s ease forwards;
}

.jtr-faq__description {
    font-family: 'Matter', sans-serif;
    font-size: clamp(14px, 1.2vw, 18px);
    font-weight: 400;
    line-height: 1.6;
    color: var(--jtr-faq-text);
    margin: 0;
    max-width: 400px;
    opacity: 0;
    transform: translateY(20px);
    animation: faqFadeInUp 0.8s ease 0.2s forwards;
}

/* ==========================================================================
   Right Column - FAQ Accordion
   ========================================================================== */
.jtr-faq__right {
    display: flex;
    flex-direction: column;
}

.jtr-faq__accordion {
    display: flex;
    flex-direction: column;
}

/* ==========================================================================
   FAQ Item
   ========================================================================== */
.jtr-faq__item {
    border-bottom: 1px solid var(--jtr-faq-border);
    opacity: 0;
    transform: translateY(20px);
    animation: faqFadeInUp 0.6s ease forwards;
}

/* Staggered animation delays */
.jtr-faq__item:nth-child(1) { animation-delay: 0.1s; }
.jtr-faq__item:nth-child(2) { animation-delay: 0.2s; }
.jtr-faq__item:nth-child(3) { animation-delay: 0.3s; }
.jtr-faq__item:nth-child(4) { animation-delay: 0.4s; }
.jtr-faq__item:nth-child(5) { animation-delay: 0.5s; }
.jtr-faq__item:nth-child(6) { animation-delay: 0.6s; }
.jtr-faq__item:nth-child(7) { animation-delay: 0.7s; }
.jtr-faq__item:nth-child(8) { animation-delay: 0.8s; }

.jtr-faq__item:last-child {
    border-bottom: none;
}

/* ==========================================================================
   Question Button
   ========================================================================== */
.jtr-faq__question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: clamp(16px, 2vw, 24px) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: opacity 0.3s ease;
}

.jtr-faq__question:hover {
    opacity: 0.8;
}

.jtr-faq__question-text {
    font-family: 'Boyrun', sans-serif;
    font-size: clamp(16px, 1.5vw, 22px);
    font-weight: 400;
    color: var(--jtr-faq-text);
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

/* ==========================================================================
   Arrow Icon
   ========================================================================== */
.jtr-faq__arrow {
    flex-shrink: 0;
    width: 24px;
    height: 42px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: rotate(-90deg);
}

.jtr-faq__item--active .jtr-faq__arrow {
    transform: rotate(0deg);
}

/* ==========================================================================
   Answer
   ========================================================================== */
.jtr-faq__answer-wrapper {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.jtr-faq__answer {
    font-family: 'Matter', sans-serif;
    font-size: clamp(14px, 1.1vw, 16px);
    font-weight: 400;
    line-height: 1.7;
    color: var(--jtr-faq-text);
    padding: 0 0 clamp(16px, 2vw, 24px) 0;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.jtr-faq__item--active .jtr-faq__answer {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Decorative Images
   ========================================================================== */
.jtr-faq__decor {
    position: absolute;
    pointer-events: none;
    max-width: 360px;
    height: auto;
    opacity: 0;
	z-index:1;
    animation: faqDecorFadeIn 1s ease 0.5s forwards;
}

.jtr-faq__decor--1 {
    /* Default position - can be overridden via ACF */
    top: -5%;
    left: 50%;
    transform: translateX(-50%);
    max-width: 180px;
}

.jtr-faq__decor--2 {
    /* Default position - can be overridden via ACF */
    bottom: 0;
    left: 5%;
}

/* Subtle float animation for decorative images */
@keyframes faqDecorFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.jtr-faq__decor--1 {
    animation: faqDecorFadeIn 1s ease 0.5s forwards, faqDecorFloat 6s ease-in-out infinite 1.5s;
}

/* ==========================================================================
   Placeholder (Empty State)
   ========================================================================== */
.jtr-faq__placeholder {
    text-align: center;
    padding: 60px 20px;
    color: var(--jtr-faq-text);
    opacity: 0.6;
    font-family: 'Matter', sans-serif;
}

.jtr-faq__placeholder p {
    margin: 10px 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes faqFadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes faqDecorFadeIn {
    to {
        opacity: 1;
    }
}

/* ==========================================================================
   Responsive: Tablet (1024px)
   ========================================================================== */
@media (max-width: 1024px) {
    .jtr-faq__container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .jtr-faq__left {
        text-align: center;
        align-items: center;
    }

    .jtr-faq__description {
        max-width: 600px;
    }

    .jtr-faq__decor--2 {
        display: none;
    }
}

/* ==========================================================================
   Responsive: Mobile (768px)
   ========================================================================== */
@media (max-width: 768px) {
    .jtr-faq__title {
        font-size: 36px;
    }

    .jtr-faq__question-text {
        font-size: 14px;
    }

    .jtr-faq__arrow {
        width: 18px;
        height: 32px;
    }

    .jtr-faq__decor {
        max-width: 150px;
    }

    .jtr-faq__decor--1 {
        top: -2%;
    }
}

/* ==========================================================================
   Responsive: Mobile Portrait (480px)
   ========================================================================== */
@media (max-width: 480px) {
    .jtr-faq__title {
        font-size: 28px;
    }

    .jtr-faq__description {
        font-size: 14px;
    }

    .jtr-faq__question-text {
        font-size: 13px;
    }

    .jtr-faq__answer {
        font-size: 13px;
    }
}