/* ─────────────────────────────────────────────────────────────────
   BibleHouse — Shared Stylesheet (bh.css)
   Matches the Samuel's Index design system exactly.
   ───────────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700;800&family=Inter:wght@400;500;600&family=Playfair+Display:ital,wght@0,400;0,700;1,400&display=swap');

:root {
    --bg-primary:    #0a0f1d;
    --bg-secondary:  rgba(20, 26, 45, 0.65);
    --bg-card:       rgba(30, 41, 59, 0.45);
    --border-color:  rgba(255, 255, 255, 0.08);

    --text-primary:  #f8fafc;
    --text-secondary:#94a3b8;
    --text-muted:    #64748b;

    --accent:        #8b5cf6;
    --accent-light:  #a78bfa;
    --accent-glow:   rgba(139, 92, 246, 0.15);
    --gold:          #f59e0b;
    --gold-bg:       rgba(245, 158, 11, 0.10);
    --red-letter:    #8B0000;

    --font-heading:  'Outfit', sans-serif;
    --font-serif:    'Playfair Display', serif;
    --font-sans:     'Inter', sans-serif;

    --nav-h:         64px;
    --radius:        12px;
    --radius-lg:     20px;
    --shadow:        0 8px 32px rgba(0,0,0,0.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.65;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── NAVIGATION ── */
.bh-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(10, 15, 29, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.bh-nav-inner {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bh-logo {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--accent-light), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bh-nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    list-style: none;
}

.bh-nav-links a {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.bh-nav-links a:hover,
.bh-nav-links a.active {
    color: var(--text-primary);
    background: rgba(139, 92, 246, 0.12);
}

.bh-nav-links a.bh-cta {
    background: var(--accent);
    color: #fff;
    padding: 0.4rem 1.1rem;
}
.bh-nav-links a.bh-cta:hover {
    background: var(--accent-light);
    color: #fff;
}

/* ── MAIN CONTENT AREA ── */
main {
    flex: 1;
    padding-top: var(--nav-h);
}

.bh-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── HERO ── */
.bh-hero {
    padding: 6rem 1.5rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.bh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,0.14) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 80% 80%, rgba(245,158,11,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.bh-hero-eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-bg);
    border: 1px solid rgba(245,158,11,0.25);
    border-radius: 100px;
    padding: 0.35rem 1rem;
    margin-bottom: 1.5rem;
}

.bh-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg, #fff 40%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.bh-hero p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.bh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    border-radius: 100px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.bh-btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139,92,246,0.35);
}
.bh-btn-primary:hover {
    background: var(--accent-light);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(139,92,246,0.45);
}

.bh-btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.bh-btn-ghost:hover {
    color: var(--text-primary);
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.04);
}

.bh-hero-actions {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── SECTION ── */
.bh-section {
    padding: 4.5rem 1.5rem;
}

.bh-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 0.75rem;
}

.bh-section-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.bh-section-sub {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 520px;
    margin-bottom: 2.5rem;
}

/* ── CARDS ── */
.bh-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.bh-card:hover {
    border-color: rgba(139,92,246,0.3);
    box-shadow: 0 0 0 1px rgba(139,92,246,0.1), var(--shadow);
    transform: translateY(-2px);
}

.bh-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-glow);
    border: 1px solid rgba(139,92,246,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.25rem;
    color: var(--accent-light);
}

.bh-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.bh-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.bh-grid {
    display: grid;
    gap: 1.5rem;
}

.bh-grid-3 { grid-template-columns: repeat(3, 1fr); }
.bh-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── FEATURED CARD (Samuel's Index) ── */
.bh-featured {
    background: linear-gradient(135deg, rgba(139,92,246,0.12) 0%, rgba(30,41,59,0.5) 100%);
    border: 1px solid rgba(139,92,246,0.25);
    border-radius: var(--radius-lg);
    padding: 3rem;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 2rem;
    transition: border-color 0.2s, transform 0.2s;
}

.bh-featured:hover {
    border-color: rgba(139,92,246,0.5);
    transform: translateY(-2px);
}

.bh-featured-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-bg);
    border: 1px solid rgba(245,158,11,0.2);
    border-radius: 100px;
    padding: 0.25rem 0.75rem;
    margin-bottom: 1rem;
}

.bh-featured h2 {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.bh-featured p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 1.75rem;
}

/* ── DIVIDER ── */
.bh-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0;
}

/* ── PAGE HERO (inner pages) ── */
.bh-page-hero {
    padding: 5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
}

.bh-page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(139,92,246,0.10) 0%, transparent 70%);
    pointer-events: none;
}

.bh-page-hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    margin-bottom: 0.75rem;
}

.bh-page-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 500px;
    margin: 0 auto;
}

/* ── PROSE (About/Privacy/Terms) ── */
.bh-prose {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

.bh-prose h2 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    margin: 2.5rem 0 0.75rem;
    color: var(--text-primary);
}

.bh-prose p {
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
    line-height: 1.8;
    font-size: 0.975rem;
}

.bh-prose ul {
    color: var(--text-secondary);
    padding-left: 1.5rem;
    margin-bottom: 1.1rem;
    font-size: 0.975rem;
    line-height: 1.8;
}

/* ── CONTACT FORM ── */
.bh-form {
    max-width: 560px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 5rem;
}

.bh-field {
    margin-bottom: 1.25rem;
}

.bh-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
}

.bh-field input,
.bh-field textarea,
.bh-field select {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    padding: 0.65rem 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.bh-field input:focus,
.bh-field textarea:focus {
    border-color: var(--accent);
}

.bh-field textarea {
    resize: vertical;
    min-height: 130px;
}

/* ── FOOTER ── */
.bh-footer {
    background: rgba(10, 15, 29, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 2rem 1.5rem;
    margin-top: auto;
}

.bh-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.bh-footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.bh-footer-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.bh-footer-links a {
    font-size: 0.8rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.bh-footer-links a:hover {
    color: var(--text-secondary);
}

/* ── STATS ROW ── */
.bh-stats {
    display: flex;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.bh-stat-num {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.bh-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .bh-nav { padding: 0 1rem; }
    .bh-grid-3 { grid-template-columns: 1fr; }
    .bh-grid-2 { grid-template-columns: 1fr; }
    .bh-featured { grid-template-columns: 1fr; text-align: center; }
    .bh-featured p { max-width: 100%; }
    .bh-nav-links { gap: 0; }
    .bh-nav-links a { padding: 0.4rem 0.6rem; font-size: 0.8rem; }
    .bh-stats { gap: 1.5rem; }
}

@media (max-width: 480px) {
    .bh-hero { padding: 4rem 1rem 3rem; }
    .bh-section { padding: 3rem 1rem; }
    .bh-featured { padding: 2rem 1.5rem; }
    .bh-footer-inner { flex-direction: column; align-items: flex-start; }
}
