/* ===== FAQ PAGE — islune Florist ===== */
/* Redesigned with organic, warm aesthetic */

/* ===== HERO ===== */
.faq-hero {
    background: url('https://images.unsplash.com/photo-1508974239320-0a029590e846?w=1400&q=80&fit=crop') center/cover no-repeat,
                linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 120px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Dark overlay for text readability */
.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(20, 83, 45, 0.88) 0%,
        rgba(15, 61, 34, 0.82) 100%
    );
    z-index: 0;
}

.faq-hero > * { position: relative; z-index: 1; }

/* Organic decorative blobs */
.hero-blob {
    position: absolute;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}

.hero-blob-1 {
    width: 200px; height: 200px;
    background: rgba(231, 184, 176, 0.12);
    top: -40px; right: -30px;
    filter: blur(45px);
}

.hero-blob-2 {
    width: 160px; height: 160px;
    background: rgba(184, 134, 107, 0.10);
    bottom: -30px; left: -20px;
    filter: blur(40px);
}

/* Botanical SVG accents */
.hero-deco {
    position: absolute;
    z-index: 0;
    pointer-events: none;
}

.hero-deco-left {
    left: 3%;
    bottom: 18%;
    opacity: 0.12;
}

.hero-deco-right {
    right: 4%;
    top: 25%;
    opacity: 0.10;
}

/* Hero typography */
.faq-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    margin-bottom: 12px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.faq-hero .hero-subtitle {
    font-size: 1.15rem;
    opacity: 0.85;
    font-weight: 300;
    letter-spacing: 0.3px;
}

/* Organic wave at hero bottom */
.hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    z-index: 2;
    line-height: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: 50px;
}

/* ===== FAQ CONTAINER ===== */
.faq-page {
    position: relative;
    background: var(--bg);
    padding: 60px 20px 80px;
}

/* Subtle background texture */
.faq-page::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(20, 83, 45, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 85% 80%, rgba(184, 134, 107, 0.02) 0%, transparent 50%);
    pointer-events: none;
}

.faq-container {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== FAQ CATEGORY ===== */
.faq-category {
    margin-bottom: 48px;
}

/* Category header with icon + title */
.faq-category-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--border);
}

.faq-cat-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-category:nth-child(1) .faq-cat-icon {
    background: rgba(21, 128, 61, 0.1);
    color: var(--primary-light);
}

.faq-category:nth-child(2) .faq-cat-icon {
    background: rgba(184, 134, 107, 0.12);
    color: var(--copper);
}

.faq-category:nth-child(3) .faq-cat-icon {
    background: rgba(231, 184, 176, 0.2);
    color: var(--copper-dark);
}

.faq-category:nth-child(4) .faq-cat-icon {
    background: rgba(239, 68, 68, 0.08);
    color: #e11d48;
}

.faq-category-header h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--primary);
    margin: 0;
}

/* Category accent colors for active items */
.faq-category:nth-child(1) .faq-item.active { border-left-color: var(--primary-light); }
.faq-category:nth-child(2) .faq-item.active { border-left-color: var(--copper); }
.faq-category:nth-child(3) .faq-item.active { border-left-color: var(--pink); }
.faq-category:nth-child(4) .faq-item.active { border-left-color: #e11d48; }

/* ===== FAQ ITEMS ===== */
.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    border-left: 3px solid transparent;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow);
    border-color: rgba(184, 134, 107, 0.2);
}

.faq-item.active {
    box-shadow: var(--shadow);
    border-left-color: var(--copper);
}

/* Question button */
.faq-question {
    width: 100%;
    padding: 18px 22px;
    background: none;
    border: none;
    text-align: left;
    font-size: 0.98rem;
    font-weight: 500;
    color: var(--text);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: inherit;
    gap: 16px;
    transition: color var(--transition-fast);
}

.faq-question:hover {
    color: var(--primary-light);
}

.faq-item.active .faq-question {
    color: var(--primary);
    font-weight: 600;
}

/* Chevron arrow */
.faq-question .arrow {
    transition: transform 0.3s ease;
    color: var(--text-light);
    flex-shrink: 0;
}

.faq-item.active .faq-question .arrow {
    transform: rotate(180deg);
    color: var(--primary-light);
}

/* Answer area */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer-inner {
    padding: 0 22px 20px;
    color: var(--text-light);
    line-height: 1.8;
    font-size: 0.94rem;
    border-top: 1px solid var(--border);
    padding-top: 16px;
    margin-top: 0;
}

/* ===== FAQ CTA ===== */
.faq-cta-section {
    position: relative;
    background: var(--bg-cream);
    padding: 60px 20px;
    text-align: center;
    overflow: hidden;
    margin-top: 20px;
}

/* CTA decorative blobs */
.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    pointer-events: none;
    z-index: 0;
}

.cta-blob-1 {
    width: 180px; height: 180px;
    background: rgba(231, 184, 176, 0.15);
    top: -30px; left: 10%;
}

.cta-blob-2 {
    width: 140px; height: 140px;
    background: rgba(21, 128, 61, 0.06);
    bottom: -20px; right: 15%;
}

.faq-cta {
    position: relative;
    z-index: 1;
    max-width: 500px;
    margin: 0 auto;
}

.faq-cta-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(21, 128, 61, 0.08);
    color: var(--primary-light);
    margin-bottom: 16px;
}

.faq-cta h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.faq-cta p {
    color: var(--text-light);
    margin-bottom: 28px;
    font-size: 1rem;
}

.faq-cta .btn-primary {
    display: inline-block;
    padding: 14px 36px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
}

.faq-cta .btn-primary:hover {
    box-shadow: 0 6px 20px rgba(20, 83, 45, 0.3);
    transform: translateY(-2px);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.faq-category {
    animation: fadeSlideUp 0.5s ease-out backwards;
}

.faq-category:nth-child(1) { animation-delay: 0.05s; }
.faq-category:nth-child(2) { animation-delay: 0.1s; }
.faq-category:nth-child(3) { animation-delay: 0.15s; }
.faq-category:nth-child(4) { animation-delay: 0.2s; }

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .faq-category { animation: none; }

    .faq-item,
    .faq-item:hover,
    .faq-question .arrow,
    .faq-answer,
    .faq-cta .btn-primary,
    .faq-cta .btn-primary:hover {
        transition: none;
    }

    .faq-cta .btn-primary:hover {
        transform: none;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .faq-hero {
        padding: 100px 20px 70px;
    }

    .faq-hero h1 {
        font-size: 2.2rem;
    }

    .faq-hero .hero-subtitle {
        font-size: 1rem;
    }

    .hero-deco { display: none; }
    .hero-blob-1 { width: 140px; height: 140px; }
    .hero-blob-2 { width: 110px; height: 110px; }

    .faq-page { padding: 40px 16px 60px; }

    .faq-category { margin-bottom: 36px; }

    .faq-category-header h2 { font-size: 1.2rem; }

    .faq-question {
        padding: 16px 18px;
        font-size: 0.94rem;
    }

    .faq-answer-inner {
        padding: 0 18px 16px;
        padding-top: 14px;
        font-size: 0.9rem;
    }

    .faq-cta-section { padding: 48px 16px; }
    .faq-cta h3 { font-size: 1.4rem; }
}

@media (max-width: 480px) {
    .faq-hero {
        padding: 90px 16px 60px;
    }

    .faq-hero h1 {
        font-size: 1.8rem;
    }

    .faq-question {
        padding: 14px 16px;
        font-size: 0.9rem;
        gap: 12px;
    }

    .faq-answer-inner {
        padding: 0 16px 14px;
        padding-top: 12px;
    }
}
