/* The Prophetic Prayer Army — original styling.
   Warm, image-forward aesthetic with large full-width sections. */

:root {
  /* Palette drawn from the Prophetic Prayer Army logo: deep forest green,
     bright radar green, and white. (--gold / --gold-dark are kept as variable
     names but now hold the brand greens so the whole site re-themes at once.) */
  --ink: #16240f;          /* near-black forest green for text */
  --muted: #5d6a55;        /* muted green-gray */
  --cream: #eef4e9;        /* pale green tint for alt sections */
  --gold: #1f7a34;         /* primary brand green */
  --gold-dark: #145c27;    /* deep green for hovers/headings */
  --radar: #57c83a;        /* bright radar green accent */
  --deep: #0f3a1b;         /* deep forest green for dark sections */
  --line: #d6e3cd;         /* soft green border */
  --white: #ffffff;
  --maxw: 1180px;
  --shadow: 0 12px 40px rgba(15, 40, 20, 0.14);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.12; margin: 0 0 .4em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1rem; }
a { color: var(--gold-dark); text-decoration: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--deep { background: var(--deep); color: var(--cream); }
.center { text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold-dark);
  margin-bottom: 14px;
}
.section--deep .eyebrow { color: var(--gold); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; }
.center .lead { margin-left: auto; margin-right: auto; }
.section--deep .lead { color: #d9cfc0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 2px;
  font-weight: 600;
  font-size: .82rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1.5px solid var(--gold);
  background: var(--gold);
  color: #fff;
  transition: all .2s ease;
}
.btn:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* Header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--ink); }
.brand .mark {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold); color: #fff;
  display: grid; place-items: center; font-size: 1rem; letter-spacing: .04em;
}
.brand .logo-img { width: 48px; height: 48px; object-fit: contain; display: block; }
.brand small { display: block; font-family: var(--sans); font-size: .62rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav-links a { color: var(--ink); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 500; }
.nav-links a:hover { color: var(--gold-dark); }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; cursor: pointer; color: var(--ink); }

/* Hero */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  background:
    linear-gradient(rgba(8,28,14,.62), rgba(8,28,14,.68)),
    url('../img/hero.svg') center/cover no-repeat;
}
.hero-inner { max-width: 820px; padding: 40px 24px; }
.hero-logo {
  width: 170px; height: 170px; object-fit: contain; margin: 0 auto 18px;
  display: block; filter: drop-shadow(0 8px 24px rgba(0,0,0,.45));
  background: rgba(255,255,255,.92); border-radius: 50%; padding: 10px;
}
.hero .eyebrow { color: #f0e2c6; }
.hero h1 { color: #fff; margin-bottom: .25em; }
.hero p { font-size: 1.25rem; color: #f1ebe1; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* Verse strip */
.verse { background: var(--gold); color: #fff; text-align: center; padding: 28px 0; }
.verse p { font-family: var(--serif); font-size: 1.5rem; font-style: italic; margin: 0; }
.verse span { display: block; font-family: var(--sans); font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; margin-top: 8px; opacity: .9; }

/* Mission / values cards */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 36px 30px; box-shadow: var(--shadow);
}
.card .icon { font-size: 2rem; margin-bottom: 12px; }
.card h3 { margin-bottom: .35em; }
.card p { color: var(--muted); margin: 0; }

/* Split mission block */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img, .split .media {
  width: 100%; height: 440px; object-fit: cover; border-radius: 4px;
  background: linear-gradient(135deg, #d9c39a, #b88a3e); box-shadow: var(--shadow);
}

/* Events */
.event-list { display: grid; gap: 18px; max-width: 820px; margin: 0 auto; }
.event {
  display: grid; grid-template-columns: 110px 1fr; gap: 24px; align-items: center;
  background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 22px 26px;
}
.event .date {
  text-align: center; border-right: 1px solid var(--line); padding-right: 20px;
}
.event .date .d { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--gold-dark); }
.event .date .m { text-transform: uppercase; letter-spacing: .15em; font-size: .72rem; color: var(--muted); }
.event h3 { margin: 0 0 .2em; }
.event .meta { color: var(--muted); font-size: .9rem; }

/* Videos */
.video-cat { margin-bottom: 56px; }
.video-cat h3 { color: var(--gold-dark); border-bottom: 2px solid var(--line); padding-bottom: 10px; margin-bottom: 24px; }
.section--deep .video-cat h3 { color: var(--gold); border-color: rgba(255,255,255,.15); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.video {
  background: #fff; border-radius: 4px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line);
}
.section--deep .video { border-color: rgba(255,255,255,.08); }
.video .thumb { position: relative; aspect-ratio: 16/9; background: #000; cursor: pointer; }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .thumb::after {
  content: '▶'; position: absolute; inset: 0; display: grid; place-items: center;
  color: #fff; font-size: 2rem; background: rgba(0,0,0,.25); opacity: .9;
}
.video .thumb iframe { width: 100%; height: 100%; border: 0; display: block; }
.video .thumb.playing::after { content: none; }
.video .body { padding: 16px 18px; color: var(--ink); }
.video .body h4 { margin: 0 0 6px; font-size: 1rem; font-family: var(--sans); font-weight: 600; }
.video .body .when { font-size: .8rem; color: var(--muted); }
.empty-note { color: var(--muted); font-style: italic; }
.section--deep .empty-note { color: #c9bfb0; }

/* Forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form.center-form { margin: 0 auto; }
.field label { display: block; font-size: .82rem; font-weight: 600; letter-spacing: .04em; margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 3px;
  font-family: inherit; font-size: 1rem; background: #fff; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; }
.field-inline { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.field-inline input { width: auto; }
.form-msg { font-size: .92rem; padding: 10px 0; min-height: 1.2em; }
.form-msg.ok { color: #2e7d32; }
.form-msg.err { color: #b3261e; }
.amount-row { display: flex; gap: 10px; flex-wrap: wrap; }
.amount-row .chip {
  border: 1.5px solid var(--line); background: #fff; border-radius: 40px; padding: 8px 20px; cursor: pointer; font-weight: 600;
}
.amount-row .chip.active { border-color: var(--gold); background: var(--gold); color: #fff; }

/* Footer */
.site-footer { background: var(--deep); color: #cdc0ad; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { font-family: var(--serif); color: #fff; font-size: 1.25rem; margin-bottom: 14px; }
.site-footer a { color: #cdc0ad; display: block; margin-bottom: 8px; font-size: .92rem; }
.site-footer a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 22px; text-align: center; font-size: .82rem; color: #9c9082; }

/* Toast */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(120%);
  background: var(--ink); color: #fff; padding: 14px 26px; border-radius: 40px; box-shadow: var(--shadow);
  transition: transform .3s ease; z-index: 100; font-size: .92rem; max-width: 90vw;
}
.toast.show { transform: translateX(-50%) translateY(0); }
.toast.err { background: #8d2a22; }

/* ============================================================
   Interactivity: hovers, clicks, scroll reveals
   ============================================================ */

/* Cards lift and glow on hover */
.card {
  transition: transform .28s cubic-bezier(.2,.7,.3,1), box-shadow .28s ease, border-color .28s ease;
  will-change: transform;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(15, 40, 20, 0.22);
  border-color: var(--gold);
}

/* Value-card icons pop on hover */
.card .icon { transition: transform .3s ease; display: inline-block; }
.card:hover .icon { transform: scale(1.18) rotate(-4deg); }

/* Clickable service tiles */
a.tile {
  display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; color: var(--ink); position: relative; overflow: hidden;
  cursor: pointer;
}
a.tile::before {
  content: ''; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--radar));
  transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
}
a.tile:hover::before { transform: scaleX(1); }
.tile-icon {
  font-size: 2.2rem; margin-bottom: 10px; transition: transform .3s ease;
}
a.tile:hover .tile-icon { transform: scale(1.2) translateY(-2px); }
.tile h3 { transition: color .25s ease; }
a.tile:hover h3 { color: var(--gold-dark); }
.tile p { color: var(--muted); }
.tile-cta {
  margin-top: auto; padding-top: 14px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-dark); display: inline-flex; align-items: center; gap: 8px;
}
.tile-cta em { font-style: normal; transition: transform .25s ease; display: inline-block; }
a.tile:hover .tile-cta em { transform: translateX(6px); }

/* Buttons: lift + press */
.btn { transition: background .2s ease, border-color .2s ease, transform .12s ease, box-shadow .2s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(20, 92, 39, 0.28); }
.btn:active { transform: translateY(0) scale(.97); box-shadow: none; }

/* Nav links: animated underline */
.nav-links a { position: relative; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: -4px; height: 2px; width: 100%;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .28s ease;
}
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* Header gains a shadow once you scroll */
.site-header { transition: box-shadow .3s ease, background .3s ease; }
.site-header.scrolled { box-shadow: 0 6px 22px rgba(15, 40, 20, 0.12); }

/* Brand logo subtle spin-pop on hover */
.brand .logo-img { transition: transform .4s ease; }
.brand:hover .logo-img { transform: rotate(8deg) scale(1.06); }

/* Event rows slide on hover */
.event { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.event:hover { transform: translateX(6px); border-color: var(--gold); box-shadow: var(--shadow); }

/* Video cards: lift + image zoom */
.video { transition: transform .28s ease, box-shadow .28s ease; }
.video:hover { transform: translateY(-6px); box-shadow: 0 20px 44px rgba(0,0,0,.3); }
.video .thumb img { transition: transform .5s ease; }
.video:hover .thumb img { transform: scale(1.07); }
.video .thumb::after { transition: background .25s ease, transform .25s ease; }
.video:hover .thumb::after { background: rgba(20,92,39,.4); transform: scale(1.06); }

/* Amount chips */
.amount-row .chip { transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease; }
.amount-row .chip:hover { transform: translateY(-2px); border-color: var(--gold); }

/* Scroll-reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* Back-to-top button */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 80;
  width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--gold); color: #fff; font-size: 1.3rem; line-height: 1;
  box-shadow: 0 10px 26px rgba(20,92,39,.35);
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease, visibility .3s;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--gold-dark); transform: translateY(-3px) scale(1.05); }
.to-top:active { transform: scale(.92); }

/* Social media icons (Join the army + footer) */
.join-social { margin: 22px 0 26px; }
.join-social-label {
  font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 12px;
}
.social-row { display: flex; gap: 14px; flex-wrap: wrap; }
.social-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
  transition: transform .22s cubic-bezier(.2,.7,.3,1), background .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.social-icon svg { width: 24px; height: 24px; fill: var(--ink); transition: fill .22s ease; }
.social-icon:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 12px 26px rgba(15,40,20,.22); }
.social-icon:active { transform: translateY(0) scale(.95); }
.social-icon:hover svg { fill: #fff; }
.social-facebook:hover  { background: #1877F2; border-color: #1877F2; }
.social-whatsapp:hover  { background: #25D366; border-color: #25D366; }
.social-instagram:hover { background: #E1306C; border-color: #E1306C; }
.social-youtube:hover   { background: #FF0000; border-color: #FF0000; }

/* Footer variant on the dark background.
   Re-assert grid centering here: the generic ".site-footer a { display:block }"
   rule is more specific than ".social-icon" and would otherwise knock the glyph
   off-center, so we restore display:grid + centering with a footer-scoped rule. */
.site-footer .social-icon {
  display: grid; place-items: center; margin: 0;
  background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.2);
}
.site-footer .social-icon svg { fill: #e7ddcd; }

/* Category filter banner on the sermons page */
.filter-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: var(--cream); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 6px; padding: 16px 22px; margin-bottom: 36px;
}
.filter-banner strong { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-dark); }
.filter-banner a { font-weight: 600; font-size: .85rem; }
.video-cat h3 a { color: inherit; text-decoration: none; transition: color .2s ease; }
.video-cat h3 a:hover { color: var(--radar); }

/* Responsive */
@media (max-width: 880px) {
  .grid-3, .video-grid { grid-template-columns: 1fr 1fr; }
  .split, .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .split .media, .split img { height: 300px; }
  .nav-links {
    position: absolute; top: 76px; left: 0; right: 0; background: #fff;
    flex-direction: column; gap: 0; padding: 10px 0; border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 24px; width: 100%; }
  .nav-toggle { display: block; }
}
@media (max-width: 560px) {
  .grid-3, .video-grid, .grid-2 { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .event { grid-template-columns: 1fr; }
  .event .date { border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 12px; display: flex; gap: 8px; justify-content: center; align-items: baseline; }
}
