/* ─────────────────────────────────────────────────────────────
   FaithfullyLearn homepage — cinematic streaming-library design
   (loaded on top of site.css; scoped with .flh- prefixes)
   ───────────────────────────────────────────────────────────── */

:root {
    --flh-ink: #0b120e;
    --flh-ink-2: #101a14;
    --flh-paper: #f7faf7;
    --flh-green: #2E7D32;
    --flh-green-bright: #43a047;
    --flh-gold: #f2b544;
    --flh-radius: 18px;
}

body.flh-home { background: var(--flh-paper); }

.flh-home h1, .flh-home h2, .flh-home h3 { letter-spacing: -.02em; }

/* site.css paints ALL headings brand green — force readable colors per background. */
.flh-home h2, .flh-home h3 { color: #17251b; }
.flh-hero h1, .flh-hero h2,
.flh-section-dark h2, .flh-section-dark h3,
.flh-cta h2, .flh-cta h3 { color: #fff; }

/* ── Hero with poster wall ─────────────────────────────────── */
.flh-hero {
    position: relative;
    background: var(--flh-ink);
    color: #fff;
    overflow: hidden;
    padding: 7.5rem 0 6rem;
}
.flh-posterwall {
    position: absolute; inset: -12% -6%;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
    transform: rotate(-7deg) scale(1.12);
    opacity: .5;
    pointer-events: none;
}
.flh-posterwall img {
    width: 100%; aspect-ratio: 16/10; object-fit: cover;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
}
.flh-posterwall .flh-col-offset { margin-top: 60px; }
.flh-hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(120% 90% at 18% 30%, rgba(11,18,14,.97) 0%, rgba(11,18,14,.86) 42%, rgba(11,18,14,.45) 72%, rgba(11,18,14,.75) 100%),
        linear-gradient(180deg, rgba(11,18,14,.35), rgba(11,18,14,.9) 92%);
}
.flh-hero .container { position: relative; z-index: 2; }
.flh-hero-kicker {
    display: inline-flex; align-items: center; gap: .5rem;
    font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
    color: var(--flh-gold);
}
.flh-hero h1 {
    font-size: clamp(2.4rem, 5.2vw, 4rem);
    font-weight: 800; line-height: 1.06; margin: .9rem 0 1.1rem;
}
.flh-hero h1 .flh-accent { color: #7ed684; }
.flh-hero-sub { font-size: 1.15rem; color: rgba(255,255,255,.82); max-width: 560px; line-height: 1.6; }
.flh-hero-ctas { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }
.flh-btn {
    display: inline-flex; align-items: center; gap: .55rem;
    font-weight: 700; border-radius: 12px; padding: .85rem 1.5rem;
    text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    border: 0; font-size: 1rem;
}
.flh-btn:hover { transform: translateY(-2px); }
.flh-btn-primary { background: var(--flh-green); color: #fff !important; box-shadow: 0 8px 26px rgba(46,125,50,.45); }
.flh-btn-primary:hover { background: var(--flh-green-bright); color: #fff; }
.flh-btn-ghost { background: rgba(255,255,255,.09); color: #fff !important; border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(6px); }
.flh-btn-ghost:hover { background: rgba(255,255,255,.16); color: #fff; }
.flh-hero-note { margin-top: 1rem; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ── Trust strip ───────────────────────────────────────────── */
.flh-trust {
    background: var(--flh-ink-2); color: rgba(255,255,255,.85);
    padding: 1rem 0; border-top: 1px solid rgba(255,255,255,.07);
    position: relative; z-index: 2;
}
.flh-trust-items { display: flex; gap: 2.2rem; flex-wrap: wrap; justify-content: center; font-size: .92rem; }
.flh-trust-items span { display: inline-flex; align-items: center; gap: .5rem; }
.flh-trust-items i { color: var(--flh-gold); }

/* ── Section scaffolding ───────────────────────────────────── */
.flh-section { padding: 4.5rem 0; }
.flh-section-dark { background: var(--flh-ink); color: #fff; }
.flh-eyebrow {
    font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--flh-green);
}
.flh-section-dark .flh-eyebrow { color: #7ed684; }
.flh-section h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); font-weight: 800; margin: .4rem 0 .6rem; }
.flh-lede { color: #55655a; max-width: 620px; font-size: 1.05rem; line-height: 1.65; }
.flh-section-dark .flh-lede { color: rgba(255,255,255,.72); }

/* ── Library rail (live from the catalog API) ──────────────── */
.flh-rail {
    display: flex; gap: 16px; overflow-x: auto; padding: 1.2rem 2px 1.4rem;
    scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.flh-card {
    flex: 0 0 250px; scroll-snap-align: start;
    border-radius: 12px; overflow: hidden; position: relative;
    aspect-ratio: 16/10; background: #16211a;
    box-shadow: 0 4px 18px rgba(0,0,0,.35);
    transition: transform .18s ease;
}
.flh-card:hover { transform: translateY(-5px) scale(1.02); }
.flh-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flh-card::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(0,0,0,.85));
}
.flh-card-meta { position: absolute; left: 12px; right: 12px; bottom: 10px; z-index: 2; color: #fff; }
.flh-card-title { font-weight: 700; font-size: .95rem; line-height: 1.25; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.flh-card-sub { font-size: .72rem; opacity: .8; }
.flh-card-badge {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    font-size: .68rem; font-weight: 700; color: #fff;
    background: rgba(0,0,0,.55); border-radius: 999px; padding: 2px 9px; backdrop-filter: blur(4px);
}

/* ── Audience grid ─────────────────────────────────────────── */
.flh-audiences { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin-top: 1.6rem; }
.flh-aud {
    display: flex; align-items: center; gap: .8rem;
    background: #fff; border: 1px solid #e3ece4; border-radius: 14px; padding: 1rem 1.1rem;
    font-weight: 700; color: #23352a; text-decoration: none;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.flh-aud:hover { transform: translateY(-3px); border-color: var(--flh-green); color: var(--flh-green); box-shadow: 0 10px 24px rgba(20,40,25,.09); }
.flh-aud i { color: var(--flh-green); font-size: 1.1rem; width: 22px; text-align: center; }

/* ── Feature trio ──────────────────────────────────────────── */
.flh-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 18px; margin-top: 2rem; }
.flh-feature {
    background: #fff; border: 1px solid #e3ece4; border-radius: var(--flh-radius); padding: 1.8rem 1.6rem;
    box-shadow: 0 2px 10px rgba(20,40,25,.05);
}
.flh-feature-icon {
    width: 52px; height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--flh-green), var(--flh-green-bright)); color: #fff; font-size: 1.3rem;
    box-shadow: 0 8px 20px rgba(46,125,50,.35); margin-bottom: 1.1rem;
}
.flh-feature h3 { font-size: 1.15rem; font-weight: 800; }
.flh-feature p { color: #55655a; font-size: .95rem; line-height: 1.6; margin: 0; }

/* ── Split panels (kids / review promise / church) ─────────── */
.flh-split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 900px) { .flh-split { grid-template-columns: 1fr; } }
.flh-split-media { position: relative; }
.flh-split-media img {
    width: 100%; border-radius: var(--flh-radius); aspect-ratio: 16/10; object-fit: cover;
    box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.flh-split-media .flh-float {
    position: absolute; bottom: -18px; left: -18px;
    background: #fff; color: #1c2a20; border-radius: 14px; padding: .8rem 1.1rem;
    font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: .6rem;
    box-shadow: 0 14px 34px rgba(0,0,0,.25);
}
.flh-float i { color: var(--flh-green); }
.flh-check { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.flh-check li { display: flex; gap: .7rem; align-items: flex-start; margin-bottom: .8rem; line-height: 1.5; }
.flh-check i { color: var(--flh-green-bright); margin-top: .22rem; }
.flh-section-dark .flh-check li { color: rgba(255,255,255,.85); }

/* ── Pricing teaser ────────────────────────────────────────── */
.flh-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; margin-top: 2rem; max-width: 780px; }
.flh-plan {
    background: #fff; border: 1px solid #e3ece4; border-radius: var(--flh-radius); padding: 2rem 1.8rem;
    position: relative;
}
.flh-plan-hot { border: 2px solid var(--flh-green); box-shadow: 0 18px 44px rgba(46,125,50,.16); }
.flh-plan-tag {
    position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
    background: var(--flh-green); color: #fff; font-size: .7rem; font-weight: 800;
    letter-spacing: .08em; text-transform: uppercase; border-radius: 999px; padding: 4px 12px;
}
.flh-price { font-size: 2.6rem; font-weight: 800; color: var(--flh-green); }
.flh-price small { font-size: 1rem; color: #7a8a7f; font-weight: 600; }
.flh-plan .flh-check li { font-size: .92rem; }

/* ── CTA band ──────────────────────────────────────────────── */
.flh-cta {
    background: linear-gradient(135deg, var(--flh-green) 0%, #1B5E20 100%);
    color: #fff; text-align: center; padding: 4.5rem 0;
}
.flh-cta h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; }
.flh-cta p { color: rgba(255,255,255,.85); max-width: 560px; margin: .8rem auto 1.6rem; }

/* ── Reveal on scroll ──────────────────────────────────────── */
.flh-reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.flh-reveal.flh-in { opacity: 1; transform: none; }

/* ── Subpage hero (features / pricing / faq) ───────────────── */
.flh-subhero {
    position: relative;
    background: var(--flh-ink);
    color: #fff;
    overflow: hidden;
    padding: 8rem 0 3.8rem;
}
.flh-subhero::before {
    content: ""; position: absolute; inset: 0;
    background:
        radial-gradient(70% 120% at 85% 10%, rgba(46,125,50,.34) 0%, transparent 60%),
        radial-gradient(50% 90% at 8% 100%, rgba(242,181,68,.12) 0%, transparent 55%);
}
.flh-subhero .container { position: relative; z-index: 2; }
.flh-subhero h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 800; color: #fff; margin: .8rem 0 .7rem; }
.flh-subhero .flh-lede { color: rgba(255,255,255,.75); }
.flh-subhero-strip {
    position: absolute; right: -40px; top: 50%; transform: translateY(-50%) rotate(6deg);
    display: flex; flex-direction: column; gap: 12px; width: 300px; opacity: .35; pointer-events: none;
}
.flh-subhero-strip img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
@media (max-width: 900px) { .flh-subhero-strip { display: none; } }

/* ── Feature rows (features page) ──────────────────────────── */
.flh-featrow { padding: 3.6rem 0; }
.flh-featrow-alt { background: #eef5ee; }
.flh-featrow .flh-split { align-items: center; }
.flh-kicker-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 13px; font-size: 1.15rem;
    background: linear-gradient(135deg, var(--flh-green), var(--flh-green-bright)); color: #fff;
    box-shadow: 0 8px 20px rgba(46,125,50,.35); margin-bottom: 1rem;
}
.flh-minicards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .flh-minicards { grid-template-columns: 1fr; } }
.flh-minicard {
    background: #fff; border: 1px solid #e3ece4; border-radius: 14px; padding: 1.15rem 1.1rem;
    box-shadow: 0 2px 10px rgba(20,40,25,.05);
}
.flh-minicard i { color: var(--flh-green); font-size: 1.15rem; margin-bottom: .5rem; display: block; }
.flh-minicard h4 { font-size: .98rem; font-weight: 800; margin: 0 0 .25rem; color: #17251b; }
.flh-minicard p { font-size: .85rem; color: #55655a; margin: 0; line-height: 1.5; }
.flh-section-dark .flh-minicard { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.flh-section-dark .flh-minicard h4 { color: #fff; }
.flh-section-dark .flh-minicard p { color: rgba(255,255,255,.7); }

/* ── FAQ accordions ────────────────────────────────────────── */
.flh-faq-cat {
    display: flex; align-items: center; gap: .7rem; margin: 2.6rem 0 1rem;
    font-weight: 800; font-size: 1.2rem; color: #17251b;
}
.flh-faq-cat i { color: var(--flh-green); }
.flh-faq .accordion-item {
    border: 1px solid #e3ece4; border-radius: 14px !important; overflow: hidden;
    margin-bottom: 10px; box-shadow: 0 2px 10px rgba(20,40,25,.04); background: #fff;
}
.flh-faq .accordion-button {
    font-weight: 700; color: #17251b; background: #fff; padding: 1.05rem 1.25rem;
    font-size: .98rem;
}
.flh-faq .accordion-button:not(.collapsed) { background: #eef5ee; color: var(--flh-green); box-shadow: none; }
.flh-faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(46,125,50,.2); }
.flh-faq .accordion-button::after { filter: hue-rotate(255deg) saturate(1.4); }
.flh-faq .accordion-body { color: #55655a; line-height: 1.65; font-size: .95rem; }
.flh-faq .accordion-body a { color: var(--flh-green); font-weight: 700; }

/* ── Legal pages (terms / privacy) ─────────────────────────── */
.flh-legal { max-width: 760px; }
.flh-legal h2 { font-size: 1.3rem; font-weight: 800; color: #17251b; margin: 2.2rem 0 .7rem; }
.flh-legal h3 { font-size: 1.05rem; font-weight: 800; color: #23352a; margin: 1.4rem 0 .5rem; }
.flh-legal p, .flh-legal li { color: #45544a; line-height: 1.7; font-size: .96rem; }
.flh-legal ul { padding-left: 1.3rem; }
.flh-legal li { margin-bottom: .35rem; }
.flh-legal-updated {
    display: inline-block; background: #eef5ee; border: 1px solid #d4e5d4; color: var(--flh-green);
    font-weight: 700; font-size: .82rem; border-radius: 999px; padding: 4px 14px; margin-bottom: 1rem;
}

/* ── Contact form ──────────────────────────────────────────── */
.flh-form-card {
    background: #fff; border: 1px solid #e3ece4; border-radius: var(--flh-radius);
    padding: 2.2rem 2rem; box-shadow: 0 2px 14px rgba(20,40,25,.06);
}
.flh-form-card .form-label { font-weight: 700; color: #23352a; font-size: .9rem; }
.flh-form-card .form-control, .flh-form-card .form-select {
    border-radius: 10px; border-color: #d8e4d9; padding: .65rem .85rem;
}
.flh-form-card .form-control:focus, .flh-form-card .form-select:focus {
    border-color: var(--flh-green); box-shadow: 0 0 0 3px rgba(46,125,50,.15);
}

/* ── Pricing page extras ───────────────────────────────────── */
.flh-plans-page { max-width: 860px; margin-left: auto; margin-right: auto; }
.flh-plans-page .flh-plan { padding: 2.3rem 2rem; }
.flh-price-note { font-size: .85rem; color: #7a8a7f; margin-top: .4rem; }
.flh-included { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 26px; margin-top: 1.6rem; }
.flh-included span { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.45; font-size: .95rem; color: #23352a; }
.flh-included i { color: var(--flh-green-bright); margin-top: .2rem; }
.flh-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 1.6rem; background: #fff; border: 1px solid #e3ece4; border-radius: var(--flh-radius); overflow: hidden; }
.flh-table th, .flh-table td { padding: .85rem 1.1rem; border-bottom: 1px solid #edf3ee; font-size: .93rem; }
.flh-table thead th { background: var(--flh-ink); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .04em; }
.flh-table tbody tr:last-child td { border-bottom: 0; }
.flh-table td.flh-yes i { color: var(--flh-green-bright); }
.flh-table td.flh-dim { color: #9aa79e; }

@media (max-width: 700px) {
    .flh-hero { padding: 6rem 0 4rem; }
    .flh-posterwall { grid-template-columns: repeat(4, 1fr); }
    .flh-card { flex-basis: 200px; }
}
