/* ─────────────────────────────────────────────────────────────────────────────
   home.css — styles specific to index.php (the Factsheet Six home page).
   Requires site.css to be loaded first.
───────────────────────────────────────────────────────────────────────────── */

/* ── Hero ────────────────────────────────────────────────────────────────────── */
.hero {
    background: var(--ink); color: var(--paper);
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative; overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: repeating-linear-gradient(
        0deg, transparent, transparent 39px,
        rgba(255,255,255,0.03) 39px, rgba(255,255,255,0.03) 40px
    );
}
.hero-eyebrow {
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.15em;
    text-transform: uppercase; color: var(--rust); margin-bottom: 1.5rem;
}
.hero h1 {
    font-family: var(--ff-head);
    font-size: clamp(2.8rem, 6vw, 5rem);
    font-weight: 900; line-height: 1.05; letter-spacing: -0.03em;
    max-width: 820px; margin: 0 auto 1.5rem;
}
.hero h1 em { font-style: italic; color: var(--rust); }
.hero-sub {
    font-size: 1.15rem; color: rgba(250,248,244,0.7);
    max-width: 540px; margin: 0 auto 2.5rem;
}
.hero-actions {
    display: flex; gap: 1rem; justify-content: center;
    flex-wrap: wrap; align-items: center;
}
.hero-actions .btn-primary {
    padding: 0.75rem 2rem; font-size: 1rem;
    display: inline-flex; align-items: center; line-height: 1;
}

/* ── Stats bar ───────────────────────────────────────────────────────────────── */
.stats-bar {
    background: var(--cream); border-bottom: 1px solid var(--border);
    display: flex; justify-content: center; gap: 0;
}
.stat {
    padding: 1.25rem 3rem; text-align: center;
    border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-number {
    font-family: var(--ff-head); font-size: 1.8rem; font-weight: 700; line-height: 1;
}
.stat-label {
    font-size: 0.75rem; color: var(--muted);
    text-transform: uppercase; letter-spacing: 0.1em; margin-top: 0.25rem;
}

/* ── Featured cards ──────────────────────────────────────────────────────────── */
.featured-grid {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr;
    gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.featured-card {
    background: var(--paper); padding: 2rem;
    display: flex; flex-direction: column;
    transition: background 0.15s;
}
.featured-card:hover { background: var(--cream); }
.featured-card.large { padding: 2.5rem; }
.card-category {
    font-size: 0.7rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--rust); margin-bottom: 0.75rem;
}
.card-title {
    font-family: var(--ff-head); font-weight: 700; line-height: 1.2; margin-bottom: 0.75rem;
}
.featured-card.large .card-title    { font-size: 1.8rem; }
.featured-card:not(.large) .card-title { font-size: 1.2rem; }
.card-desc {
    font-size: 0.9rem; color: var(--muted); flex: 1;
    margin-bottom: 1.25rem; line-height: 1.6;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.card-meta {
    font-size: 0.78rem; color: var(--muted);
    display: flex; align-items: center; gap: 0.75rem;
}
.card-meta strong { color: var(--ink); }
.featured-badge {
    display: inline-block; background: var(--rust); color: #fff;
    font-size: 0.65rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    padding: 2px 7px; border-radius: 2px; margin-bottom: 0.75rem;
}

/* ── Category strip ──────────────────────────────────────────────────────────── */
.category-strip {
    display: flex; gap: 0.5rem; flex-wrap: wrap;
    padding: 1.5rem 0; border-bottom: 1px solid var(--border);
}
.cat-pill {
    border: 1.5px solid var(--border); padding: 0.35rem 0.9rem;
    border-radius: 999px; font-size: 0.82rem; font-weight: 500;
    transition: all 0.15s; cursor: pointer; background: transparent;
}
.cat-pill:hover, .cat-pill.active {
    background: var(--ink); color: var(--paper); border-color: var(--ink);
}

/* ── Recent newsletter grid ──────────────────────────────────────────────────── */
.newsletter-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border); border: 1px solid var(--border);
}
.nl-card {
    background: var(--paper); padding: 1.5rem;
    display: flex; flex-direction: column; transition: background 0.15s;
}
.nl-card:hover { background: var(--cream); }
.nl-card .card-title  { font-size: 1.05rem; }
.nl-card .card-desc   { -webkit-line-clamp: 2; }

/* ── Why FS6 ─────────────────────────────────────────────────────────────────── */
.why-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 2rem; margin-top: 2.5rem;
}
.why-item  { border-top: 3px solid var(--ink); padding-top: 1.25rem; }
.why-icon  { font-size: 1.5rem; margin-bottom: 0.75rem; }
.why-title { font-family: var(--ff-head); font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-text  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }

/* ── CTA band ────────────────────────────────────────────────────────────────── */
.cta-band {
    background: var(--rust); color: #fff;
    padding: 4rem 2rem; text-align: center;
}
.cta-band h2 {
    font-family: var(--ff-head); font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem;
}
.cta-band p { font-size: 1.05rem; opacity: 0.85; margin-bottom: 2rem; }

/* ── Search bar ──────────────────────────────────────────────────────────────── */
.search-bar {
    display: flex; gap: 0;
    border: 1.5px solid var(--border); border-radius: 4px;
    overflow: hidden; max-width: 460px; margin: 0 auto 2rem;
}
.search-bar input {
    flex: 1; padding: 0.65rem 1rem; border: none; outline: none;
    font-family: var(--ff-body); font-size: 0.9rem;
    background: var(--paper); color: var(--ink);
}
.search-bar button {
    background: var(--ink); color: var(--paper);
    border: none; padding: 0 1.25rem;
    cursor: pointer; font-size: 0.85rem; font-weight: 600;
}

/* ── Responsive ──────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .featured-grid, .newsletter-grid, .why-grid { grid-template-columns: 1fr; }
    .stats-bar { flex-direction: column; }
    .stat { border-right: none; border-bottom: 1px solid var(--border); }
}
