/* =====================================================
 * lp-components.css
 * Shared UI components for landing pages.
 * Buttons, section headers, hero, card grids, FAQ.
 * Page-specific card visuals (e.g. .crisis-card) stay in
 * the page; this file holds the patterns shared across
 * 7+ LPs.
 * ===================================================== */

/* ---------- Sections ---------- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(249, 115, 22, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(249, 115, 22, 0.2);
}

.section-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 900;
    margin-bottom: 24px;
    line-height: 1.3;
    text-align: center;
}

.section-lead {
    max-width: 800px;
    margin: 0 auto;
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 2;
    text-align: center;
}

.section-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    border-radius: 16px;
    margin-bottom: 48px;
    position: relative;
}
.section-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.section-image::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 60%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}
.section-image.on-dark::after {
    background: linear-gradient(to top, var(--bg-secondary), transparent);
}

/* ---------- CTA buttons ---------- */
.cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    background: var(--accent-gradient);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    border-radius: 100px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}
.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(249, 115, 22, 0.4);
}
.cta-btn-large {
    padding: 18px 48px;
    font-size: 18px;
}
.cta-btn-white {
    background: #fff;
    color: var(--accent-orange-dark);
}
.cta-btn-white:hover {
    box-shadow: 0 10px 40px rgba(255, 255, 255, 0.3);
}
.cta-btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.cta-btn-ghost:hover {
    background: var(--bg-card-hover);
    box-shadow: none;
}

/* ---------- Hero ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}
.hero .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 800px;
}
.hero h1 {
    font-size: clamp(32px, 6vw, 54px);
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 32px;
    letter-spacing: -1px;
}
.hero-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 16px;
    padding: 6px 16px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 100px;
    border: 1px solid rgba(6, 182, 212, 0.2);
}
.hero-lead {
    font-size: clamp(15px, 2.2vw, 18px);
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 2;
}
.hero-note {
    margin-top: 20px;
    font-size: 14px;
    color: var(--text-muted);
}

/* ---------- Card grids ---------- */
.cards-grid-2,
.cards-grid-3,
.cards-grid-4 {
    display: grid;
    gap: 24px;
}
.cards-grid-2 { grid-template-columns: repeat(2, 1fr); }
.cards-grid-3 { grid-template-columns: repeat(3, 1fr); }
.cards-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 1024px) {
    .cards-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .cards-grid-2,
    .cards-grid-3,
    .cards-grid-4 { grid-template-columns: 1fr; }
}

/* ---------- FAQ accordion (paired with LPCommon.initFAQ) ---------- */
.faq {
    max-width: 800px;
    margin: 0 auto;
}
.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}
.faq-item.open {
    border-color: var(--accent-cyan);
}
.faq-q {
    padding: 20px 24px;
    font-weight: 700;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    user-select: none;
}
.faq-q::after {
    content: '+';
    font-size: 24px;
    color: var(--accent-cyan);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.open .faq-q::after {
    transform: rotate(45deg);
}
.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
    padding: 0 24px;
    color: var(--text-secondary);
    line-height: 1.9;
}
.faq-item.open .faq-a {
    max-height: 600px;
    padding: 0 24px 20px;
}

/* ---------- Pillar / related-link arrow ---------- */
.pillar-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent-cyan);
    text-decoration: none;
    font-weight: 600;
    transition: gap 0.3s ease, color 0.3s ease;
}
.pillar-link:hover {
    gap: 12px;
    color: var(--accent-blue);
}
