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

:root {
  --navy: #0f1b3f;
  --blue: #1e5ba8;
  --blue-dark: #164a8a;
  --blue-soft: #eff6ff;
  --gold: #d4a574;
  --text: #102033;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(15, 27, 63, .10);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  color: var(--navy);
  line-height: 1.12;
  margin: 0;
}
h1 { font-size: clamp(40px, 6vw, 68px); }
h2 { font-size: clamp(28px, 4vw, 44px); }
p { margin: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.nav-wrap {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 12px;
  padding: 0;
}
.brand-title { display: block; color: var(--navy); font-weight: 700; font-size: 18px; }
.brand-subtitle { display: block; color: var(--muted); font-size: 12px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.nav-links a { text-decoration: none; color: #334155; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); }
.donate-nav { color: white !important; background: var(--blue); padding: 10px 17px; border-radius: 999px; }
.menu-button { display: none; border: 0; background: transparent; flex-direction: column; gap: 5px; }
.menu-button span { width: 25px; height: 2px; background: var(--navy); display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.btn.primary { background: var(--blue); color: white; box-shadow: 0 12px 28px rgba(30,91,168,.25); }
.btn.primary:hover { background: var(--blue-dark); }
.btn.ghost { color: white; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.12); }
.btn.outline { background: white; border-color: var(--line); color: var(--blue); }

.eyebrow { color: var(--blue); font-size: 12px; text-transform: uppercase; letter-spacing: .11em; font-weight: 700; margin-bottom: 12px; }
.eyebrow.light { color: #dbeafe; }

.hero {
  min-height: 690px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: white;
}
.hero-media { position: absolute; inset: 0; background: url('../img/worship-banner.png') center/cover no-repeat; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(15,27,63,.78), rgba(30,91,168,.35), rgba(15,27,63,.02)); }
.hero-inner { position: relative; z-index: 2; padding: 78px 0 155px; }
.hero-copy { max-width: 720px; }
.hero-logo { width: 86px; height: 86px; object-fit: contain; border-radius: 24px; background: rgba(15,27,63,.58); padding: 10px; margin-bottom: 20px; }
.hero h1 { color: white; }
.hero p { color: #eaf2ff; font-size: 18px; max-width: 620px; margin-top: 20px; }
.hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }

.founder-badge {
  position: absolute;
  left: max(24px, calc((100vw - 1180px)/2));
  bottom: 34px;
  z-index: 3;
  width: min(365px, calc(100% - 48px));
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,.94);
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.75);
  padding: 12px;
  box-shadow: 0 22px 50px rgba(15,27,63,.22);
}
.founder-badge img { width: 82px; height: 82px; object-fit: cover; border-radius: 17px; }
.founder-badge strong { color: var(--navy); display: block; font-weight: 700; }
.founder-badge span { color: var(--muted); display: block; font-size: 13px; margin-top: 2px; }

.home-cards {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -58px;
}
.home-card {
  text-decoration: none;
  display: block;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.home-card span { color: var(--blue); font-weight: 800; font-size: 13px; }
.home-card h2 { font-size: 24px; margin: 12px 0 10px; }
.home-card p { color: var(--muted); }

.simple-section {
  padding: 76px 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 40px;
  align-items: center;
}
.check-list { display: grid; gap: 14px; background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.check-list p { display: flex; align-items: center; gap: 12px; color: #334155; }
.check-list span { width: 10px; height: 10px; background: var(--blue); border-radius: 50%; }

.page-title { background: linear-gradient(180deg, white, var(--blue-soft)); border-bottom: 1px solid var(--line); padding: 72px 0 44px; }
.page-title h1 { margin-bottom: 10px; }
.page-title p { color: var(--muted); max-width: 700px; }

.downloads-tools {
  padding: 34px 0 22px;
  display: flex;
  gap: 14px;
  align-items: end;
  flex-wrap: wrap;
}
.search-box { flex: 1 1 360px; }
.search-box span { display: block; color: #475569; font-weight: 600; font-size: 13px; margin-bottom: 7px; }
.search-box input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 15px;
  font: inherit;
  outline: none;
}
.search-box input:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(30,91,168,.12); }
.tool-buttons { display: flex; gap: 10px; }

.library { display: grid; gap: 18px; }
.level-card { background: white; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 12px 34px rgba(15,27,63,.06); }
.level-header { width: 100%; border: 0; background: white; padding: 22px 24px; text-align: left; display: flex; justify-content: space-between; gap: 16px; cursor: pointer; }
.level-header:hover { background: var(--blue-soft); }
.level-header h3 { font-family: Inter, Arial, sans-serif; font-size: 20px; font-weight: 800; margin: 0; }
.level-header p { color: var(--muted); margin-top: 4px; }
.chevron { color: var(--blue); font-size: 24px; transition: transform .2s ease; }
.level-card.closed .chevron { transform: rotate(-90deg); }
.level-content { padding: 0 20px 22px; background: #fbfdff; }
.level-card.closed .level-content { display: none; }

.subject-card { margin-top: 16px; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: white; }
.subject-header { background: var(--blue-soft); padding: 15px 18px; border-bottom: 1px solid var(--line); }
.subject-header h4 { margin: 0; color: var(--navy); font-size: 17px; }
.subject-header p { margin-top: 3px; color: var(--muted); font-size: 14px; }
.lesson-table { width: 100%; border-collapse: collapse; }
.lesson-table th { padding: 13px 12px; text-align: left; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.lesson-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); }
.lesson-title { display: block; font-weight: 700; color: var(--navy); }
.lesson-sub { color: var(--muted); font-size: 13px; }
.resource-cell { display: flex; flex-wrap: wrap; gap: 8px; }
.resource-btn { border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--blue); padding: 7px 10px; font-size: 12px; font-weight: 700; text-decoration: none; cursor: pointer; }
.resource-btn:hover { background: var(--blue-soft); }
.resource-btn.disabled { opacity: .36; pointer-events: none; }

.audio-panel { margin: 28px auto 78px; background: white; border: 1px solid var(--line); border-left: 5px solid var(--blue); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); display: grid; grid-template-columns: .8fr 1.2fr; gap: 22px; align-items: center; }
.audio-panel h2 { font-family: Inter, Arial, sans-serif; font-size: 22px; margin: 0 0 6px; }
.audio-panel p { color: var(--muted); }
audio { width: 100%; }

.founders-section { padding: 64px 0 78px; display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.founders-photo { border-radius: 24px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: white; }
.founders-photo img { width: 100%; display: block; }
.founders-copy p { color: var(--muted); margin: 18px 0; font-size: 17px; }
.impact-section { background: white; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 52px 0; }
.impact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.impact-grid div { background: var(--blue-soft); border-radius: var(--radius); padding: 24px; text-align: center; }
.impact-grid strong { display: block; color: var(--blue); font-size: 28px; }
.impact-grid span { color: var(--muted); }

.guide-grid { padding: 48px 0 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.guide-grid article, .folder-box { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.guide-grid span { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 10px; background: var(--blue-soft); color: var(--blue); font-weight: 800; margin-bottom: 14px; }
.guide-grid h2, .folder-box h2 { font-family: Inter, Arial, sans-serif; font-size: 20px; margin-bottom: 8px; }
.guide-grid p { color: var(--muted); }
.folder-box { margin-bottom: 78px; }
pre { overflow-x: auto; background: var(--navy); color: #dbeafe; padding: 18px; border-radius: 14px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }

.site-footer { background: var(--navy); color: white; padding: 40px 0 24px; }
.footer-grid { display: flex; justify-content: space-between; gap: 30px; }
.footer-brand { font-weight: 800; }
.site-footer p { color: #cbd5e1; margin-top: 6px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: #dbeafe; text-decoration: none; }
.copyright { border-top: 1px solid rgba(255,255,255,.12); margin-top: 28px; padding-top: 18px; color: #94a3b8; font-size: 13px; }

@media (max-width: 900px) {
  .menu-button { display: flex; }
  .nav-links { position: absolute; top: 78px; left: 16px; right: 16px; display: none; flex-direction: column; align-items: stretch; gap: 8px; background: white; border: 1px solid var(--line); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .hero { min-height: 640px; }
  .hero-inner { padding-bottom: 155px; }
  .founder-badge { left: 16px; right: 16px; width: auto; bottom: 20px; }
  .founder-badge img { width: 68px; height: 68px; }
  .home-cards, .simple-section, .audio-panel, .founders-section, .impact-grid, .guide-grid { grid-template-columns: 1fr; }
  .home-cards { margin-top: 22px; }
  .tool-buttons { width: 100%; }
  .tool-buttons .btn { flex: 1; }
  .lesson-table, .lesson-table thead, .lesson-table tbody, .lesson-table th, .lesson-table td, .lesson-table tr { display: block; }
  .lesson-table thead { display: none; }
  .lesson-table tr { border-bottom: 1px solid var(--line); padding: 12px; }
  .lesson-table td { border: 0; padding: 8px 0; }
  .lesson-table td::before { content: attr(data-label); display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 800; margin-bottom: 4px; }
  .footer-grid { flex-direction: column; }
}
