:root {
  --bg: #0b0d12;
  --bg-2: #11141b;
  --surface: #161a23;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f3ee;
  --muted: #a8adb8;
  --accent: #e8b948;
  --accent-2: #f1d27a;
  --accent-dark: #b88f25;
  --danger: #ef5350;
  --max: 1200px;
  --radius: 14px;
  --transition: 200ms ease;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---------- Navigation ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  display: grid;
  place-items: center;
  color: #0b0d12;
  font-weight: 800;
  font-family: var(--font-sans);
}

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

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a.active,
.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 0.55rem 1.1rem;
  background: var(--accent);
  color: #0b0d12 !important;
  border-radius: 999px;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--accent-2);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 0.4rem;
}

.nav-toggle svg {
  width: 28px;
  height: 28px;
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--bg-2);
    padding: 1.25rem 1.5rem 1.75rem;
    gap: 1.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition);
}

.btn-primary {
  background: var(--accent);
  color: #0b0d12;
}

.btn-primary:hover {
  background: var(--accent-2);
  transform: translateY(-1px);
  color: #0b0d12;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 7rem 0 6rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 50% 0%, rgba(232, 185, 72, 0.18), transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(232, 185, 72, 0.08), transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
}

.hero h1 {
  margin-bottom: 1.5rem;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}

.hero .lead {
  margin: 0 auto 2.25rem;
  font-size: 1.2rem;
}

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

.hero-verse {
  margin-top: 4rem;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.hero-verse p {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.hero-verse cite {
  font-size: 0.85rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-style: normal;
  font-weight: 600;
}

/* ---------- Sections ---------- */
section {
  padding: 6rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 4rem;
}

.section-head .lead {
  margin: 1rem auto 0;
}

.alt {
  background: var(--bg-2);
}

/* ---------- Pillars / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: all var(--transition);
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 185, 72, 0.4);
}

.card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(232, 185, 72, 0.12);
  color: var(--accent);
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
}

.card .icon svg {
  width: 24px;
  height: 24px;
}

.card h3 {
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* ---------- Sermons ---------- */
.sermon-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.sermon {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition);
}

.sermon:hover {
  border-color: rgba(232, 185, 72, 0.4);
  transform: translateY(-4px);
}

.sermon-thumb {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #1a1f2c, #0b0d12);
  position: relative;
  display: grid;
  place-items: center;
  border-bottom: 1px solid var(--border);
}

.sermon-thumb svg {
  width: 56px;
  height: 56px;
  color: var(--accent);
  opacity: 0.85;
}

.sermon-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sermon-meta {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.sermon h3 {
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.sermon p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  flex: 1;
}

.sermon-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- Events ---------- */
.event-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.event {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.event:hover {
  border-color: rgba(232, 185, 72, 0.4);
}

.event-date {
  text-align: center;
  padding: 0.75rem;
  background: rgba(232, 185, 72, 0.08);
  border-radius: 10px;
}

.event-date .month {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}

.event-date .day {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 600;
  color: var(--text);
}

.event-info h3 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

.event-info p {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .event {
    grid-template-columns: 70px 1fr;
  }
  .event .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* ---------- Give ---------- */
.give-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.give-card {
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  transition: all var(--transition);
}

.give-card.featured {
  background: linear-gradient(135deg, rgba(232, 185, 72, 0.12), rgba(232, 185, 72, 0.03));
  border-color: rgba(232, 185, 72, 0.4);
}

.give-card:hover {
  transform: translateY(-4px);
}

.give-amount {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.give-card p {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* ---------- Forms ---------- */
.form {
  display: grid;
  gap: 1rem;
  max-width: 560px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.form label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  letter-spacing: 0.05em;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.form input:focus,
.form textarea:focus,
.form select:focus {
  outline: none;
  border-color: var(--accent);
}

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

.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox input {
  width: auto;
  margin-top: 0.25rem;
}

.form-success {
  display: none;
  padding: 1rem 1.25rem;
  background: rgba(232, 185, 72, 0.1);
  border: 1px solid rgba(232, 185, 72, 0.4);
  border-radius: 10px;
  color: var(--accent-2);
  font-size: 0.95rem;
}

.form-success.show {
  display: block;
}

/* ---------- Newsletter strip ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--surface), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem;
  text-align: center;
}

.newsletter h2 {
  margin-bottom: 0.75rem;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
  max-width: 460px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1 1 240px;
  padding: 0.85rem 1.1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

/* ---------- About / Story ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 820px) {
  .split { grid-template-columns: 1fr; gap: 2.5rem; }
}

.split-visual {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 185, 72, 0.25), transparent 60%),
    linear-gradient(135deg, #1a1f2c, #0b0d12);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.split-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><circle cx='50' cy='50' r='1' fill='%23e8b948' opacity='0.15'/></svg>");
  background-size: 24px 24px;
  opacity: 0.3;
}

.split-visual span {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--accent);
  text-align: center;
  padding: 2rem;
  z-index: 1;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer h4 {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: 1rem;
}

.footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer a {
  color: var(--muted);
  font-size: 0.92rem;
}

.footer a:hover { color: var(--accent); }

.footer-about p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.75rem 0 1.25rem;
  max-width: 320px;
}

.socials {
  display: flex;
  gap: 0.6rem;
}

.socials a {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: all var(--transition);
}

.socials a:hover {
  background: var(--accent);
  color: #0b0d12;
  border-color: var(--accent);
}

.socials svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 5rem 0 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(232, 185, 72, 0.12), transparent 60%);
  pointer-events: none;
}

.page-header .lead {
  margin: 1rem auto 0;
}

/* ---------- Utility ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
