/* =========================
   FAQ.CSS – FULLY RESPONSIVE
   Green background, purple cards, two‑column FAQ items
   Header stacks on mobile, FAQ grid becomes single column
========================= */

.faq {
    width: 100%;
    padding: 80px 0;
    background: #0a1f1a;
}

.faq .container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 clamp(20px, 5vw, 40px);
    box-sizing: border-box;
}

/* ----- HEADER ROW (flex, stacks on mobile) ----- */
.faq-header-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 60px;
    gap: 30px;
}

.faq-header-left {
    flex: 1;
    min-width: 250px;
}

.faq-header-right {
    flex-shrink: 0;
    margin-top: 80px;      /* aligns button with the top of left content on desktop */
}

/* Header left content – responsive typography */
.faq-header-left .section-tag {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    justify-content: flex-start;
}

.faq-header-left .section-tag hr {
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #4ade80, #c084fc);
    border: none;
    margin: 0;
}

.faq-header-left .section-tag h5 {
    color: #c084fc;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

.faq-header-left h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    font-weight: 700;
    color: #e2d6f0;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.faq-header-left p {
    font-size: clamp(0.9rem, 2.5vw, 1rem);
    color: #d1e0d6;
    line-height: 1.5;
    max-width: 650px;
    margin-bottom: 0;
}

/* Button – responsive, no `white-space: nowrap` on mobile */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    font-weight: 600;
    text-decoration: none;
    border-radius: 40px;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
    background: #c084fc;
    color: #0a1f1a;
    border: 2px solid #c084fc;
    box-shadow: 0 0 6px rgba(192, 132, 252, 0.3);
    white-space: nowrap;
}

.btn-primary:hover {
    background: #a855f7;
    border-color: #a855f7;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(168, 85, 247, 0.3);
}

/* ----- TWO COLUMN GRID FOR FAQ ITEMS ----- */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.faq-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* FAQ cards */
.faq-item {
    background: rgba(30, 16, 41, 0.5);
    backdrop-filter: blur(2px);
    border-radius: 20px;
    border: 1px solid rgba(192, 132, 252, 0.2);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #4ade80;
    background: rgba(30, 16, 41, 0.7);
    box-shadow: 0 10px 20px rgba(74, 222, 128, 0.15);
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    font-size: clamp(1rem, 3.5vw, 1.2rem);
    font-weight: 600;
    color: #e2d6f0;
    margin: 0;
    padding-right: 16px;
}

.faq-question span {
    font-size: 1.8rem;
    font-weight: 300;
    color: #4ade80;
    transition: transform 0.3s ease;
    line-height: 1;
    flex-shrink: 0;
}

.faq-answer {
    max-height: 0;
    padding: 0 24px;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    background: rgba(10, 31, 26, 0.3);
    border-top: 0px solid rgba(74, 222, 128, 0.3);
}

.faq-answer p {
    font-size: clamp(0.85rem, 2.5vw, 0.95rem);
    color: #b8c4bc;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

/* Open state */
.faq-item.open .faq-answer {
    max-height: 250px;
    padding: 0 24px 20px 24px;
    border-top-width: 1px;
}

.faq-item.open .faq-question span {
    transform: rotate(45deg);
}

/* ========== RESPONSIVE BREAKPOINTS ========== */

/* Tablet (≤ 900px): reduce gap, adjust button margin */
@media (max-width: 900px) {
    .faq {
        padding: 60px 0;
    }
    .faq-header-row {
        margin-bottom: 40px;
        gap: 25px;
    }
    .faq-header-right {
        margin-top: 0;           /* button drops closer to text */
    }
    .faq-grid {
        gap: 25px;
    }
    .faq-column {
        gap: 20px;
    }
}

/* Mobile (≤ 768px): single column FAQ grid, header stacks completely */
@media (max-width: 768px) {
    .faq-header-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .faq-header-right {
        align-self: flex-start;
        margin-top: 0;
    }
    .btn-primary {
        white-space: normal;      /* allow button text to wrap if needed */
        text-align: center;
    }
    .faq-grid {
        grid-template-columns: 1fr;   /* single column */
        gap: 20px;
    }
    .faq-question {
        padding: 16px 20px;
    }
    .faq-question h4 {
        font-size: 1rem;
    }
    .faq-question span {
        font-size: 1.5rem;
    }
    .faq-answer {
        padding: 0 20px;
    }
    .faq-item.open .faq-answer {
        padding: 0 20px 16px 20px;
    }
}

/* Small phones (≤ 480px): tighten spacing further */
@media (max-width: 480px) {
    .faq .container {
        padding: 0 20px;
    }
    .faq-question {
        padding: 14px 16px;
    }
    .faq-question h4 {
        font-size: 0.95rem;
    }
    .faq-question span {
        font-size: 1.3rem;
    }
    .faq-answer p {
        font-size: 0.85rem;
    }
}

/* Very narrow (≤ 360px) */
@media (max-width: 360px) {
    .faq-question {
        padding: 12px 14px;
    }
    .faq-question h4 {
        font-size: 0.9rem;
    }
}