/* ==========================================================
   Jesus Global Outreach Ministries
   Palette drawn from the logo: deep navy, heavenly gold, sky blue, parchment
   ========================================================== */
:root {
  --navy-950: #050d1f;
  --navy-900: #0a1733;
  --navy-800: #11234a;
  --navy-700: #1b3466;
  --sky: #3a76c4;
  --sky-soft: #dce8f6;
  --gold: #d4a43a;
  --gold-light: #f4d47c;
  --gold-deep: #a87b1c;
  --parchment: #fbf6ea;
  --parchment-2: #f3ead4;
  --ink: #1d2433;
  --ink-soft: #4a5468;
  --white: #ffffff;

  --serif-display: "Cinzel", Georgia, serif;
  --serif-body: "Cormorant Garamond", Georgia, serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --shadow: 0 18px 40px -18px rgba(5, 13, 31, .45);
  --gold-gradient: linear-gradient(135deg, #f7dd8e 0%, #d4a43a 45%, #a87b1c 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--parchment);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif-display); line-height: 1.2; margin: 0 0 .5em; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); color: var(--navy-900); }
h3 { font-size: 1.2rem; letter-spacing: .03em; }
p { margin: 0 0 1em; }
em { font-family: var(--serif-body); font-style: italic; color: var(--gold-deep); white-space: nowrap; }
.smallcaps { font-variant: small-caps; }
.container { width: min(1140px, 100% - 32px); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--serif-display);
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: .85rem;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn--gold {
  background: var(--gold-gradient);
  color: var(--navy-950);
  box-shadow: 0 8px 24px -8px rgba(212, 164, 58, .7);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(244, 212, 124, .95); }
.btn--ghost { border-color: var(--gold-light); color: var(--gold-light); background: rgba(5, 13, 31, .35); }
.btn--ghost:hover { background: var(--gold-light); color: var(--navy-950); }
.btn--sm { padding: 9px 20px; font-size: .75rem; }
.btn--block { display: block; text-align: center; width: 100%; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
  padding: 14px 0;
}
.nav.is-scrolled {
  background: rgba(7, 18, 40, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
  padding: 8px 0;
}
.nav__inner { width: min(1200px, 100% - 32px); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--gold-light); font-family: var(--serif-display); font-weight: 700; line-height: 1.1; font-size: 1rem; }
.nav__brand small { font-size: .68rem; letter-spacing: .12em; color: #e9e2cf; font-weight: 500; }
.nav__logo { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold), 0 0 18px rgba(244, 212, 124, .5); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) {
  color: #eef1f8; text-decoration: none; font-size: .88rem; letter-spacing: .06em; position: relative; padding: 4px 0;
}
.nav__links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; background: var(--gold-light);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--gold-light); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  overflow: hidden; color: var(--white);
  padding: 120px 16px 90px;
  background:
    radial-gradient(ellipse 60% 45% at 50% 0%, rgba(255, 236, 170, .55), transparent 70%),
    radial-gradient(ellipse 90% 70% at 50% 15%, rgba(58, 118, 196, .55), transparent 75%),
    linear-gradient(180deg, #16305f 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.hero__rays {
  position: absolute; top: -40%; left: 50%; width: 220vmax; height: 220vmax; transform: translateX(-50%);
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 230, 150, .14) 0deg 4deg, transparent 4deg 14deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 38%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 38%);
  animation: rays 90s linear infinite;
  pointer-events: none;
}
@keyframes rays { to { transform: translateX(-50%) rotate(360deg); } }
.hero__light { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; z-index: 2; max-width: 860px; }
.hero__logo {
  width: clamp(170px, 26vw, 250px); margin: 0 auto 26px; border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(244, 212, 124, .6), 0 0 60px 10px rgba(255, 223, 130, .45);
  animation: float 6s ease-in-out infinite, fadeUp 1.2s ease both;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero__eyebrow {
  font-family: var(--serif-display); color: var(--gold-light); letter-spacing: .4em; text-transform: uppercase; font-size: .9rem; margin-bottom: 10px;
  animation: fadeUp 1.2s .2s ease both;
}
.hero__verse {
  font-family: var(--serif-body); font-weight: 600; font-style: italic;
  font-size: clamp(1.9rem, 5.2vw, 3.6rem); line-height: 1.2; margin-bottom: 18px;
  text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
  animation: fadeUp 1.2s .4s ease both;
}
.glow {
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 215, 120, .55));
}
.hero__tagline {
  font-family: var(--serif-display); letter-spacing: .25em; text-transform: uppercase; font-size: clamp(.8rem, 1.8vw, 1rem); color: #e8edf7;
  animation: fadeUp 1.2s .6s ease both;
}
.hero__actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 30px; animation: fadeUp 1.2s .8s ease both; }
.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2; width: 26px; height: 42px; border: 2px solid var(--gold-light); border-radius: 14px; }
.hero__scroll span { position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px; background: var(--gold-light); border-radius: 2px; animation: scrollDot 2s infinite; }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(70px, 10vw, 120px) 0; }
.section--light { background: var(--parchment); }
.section--sky { background: linear-gradient(180deg, var(--sky-soft) 0%, var(--parchment) 100%); }
.section--dark { background: radial-gradient(ellipse at top, var(--navy-700) 0%, var(--navy-900) 50%, var(--navy-950) 100%); color: #e9edf6; overflow: hidden; }
.section--dark h2 { color: var(--white); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 50px; }
.section__kicker { display: inline-block; font-family: var(--serif-display); color: var(--gold-deep); letter-spacing: .3em; text-transform: uppercase; font-size: .78rem; font-weight: 700; margin-bottom: 10px; }
.section--dark .section__kicker { color: var(--gold-light); }
.section__intro { font-family: var(--serif-body); font-size: 1.3rem; color: var(--ink-soft); }
.divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--gold); margin: 14px 0 18px; }
.divider::before, .divider::after { content: ""; width: 80px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.divider::after { transform: scaleX(-1); }
.divider span { font-size: 1.4rem; }
.divider--left { justify-content: flex-start; }
.divider--left::before { display: none; }

/* ---------- Mission ---------- */
.mission { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; margin-bottom: 70px; }
.lead { font-family: var(--serif-body); font-size: 1.5rem; line-height: 1.45; color: var(--navy-800); }
.mission__text strong { color: var(--navy-800); }
.mission__card { position: relative; }
.mission__card::before {
  content: ""; position: absolute; inset: -18px; border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 212, 124, .55), transparent 70%);
  animation: pulse 5s ease-in-out infinite;
}
.mission__card img { position: relative; border-radius: 50%; box-shadow: var(--shadow); }
@keyframes pulse { 0%, 100% { opacity: .6; transform: scale(.97); } 50% { opacity: 1; transform: scale(1.03); } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.pillar {
  background: var(--white); border-radius: var(--radius); padding: 36px 30px; text-align: center;
  box-shadow: var(--shadow); border-top: 4px solid var(--gold);
  transition: transform .35s ease, box-shadow .35s ease;
}
.pillar:hover { transform: translateY(-8px); box-shadow: 0 26px 50px -20px rgba(5, 13, 31, .5); }
.pillar__icon { width: 72px; height: 72px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; color: var(--gold-deep); background: radial-gradient(circle, #fff7df, #f3e3b4); }
.pillar__icon svg { width: 38px; height: 38px; }
.pillar h3 { color: var(--navy-900); }
.pillar p { color: var(--ink-soft); }
.pillar cite, .carousel cite { font-family: var(--serif-display); font-style: normal; font-size: .8rem; letter-spacing: .15em; color: var(--gold-deep); text-transform: uppercase; }

/* ---------- Word carousel ---------- */
.word__glow {
  position: absolute; top: -200px; left: 50%; width: 900px; height: 600px; transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(244, 212, 124, .25), transparent 65%); pointer-events: none;
}
.carousel { position: relative; max-width: 860px; margin: 0 auto; text-align: center; min-height: 260px; }
.carousel__slide {
  position: absolute; inset: 0 0 auto 0; margin: 0;
  opacity: 0; transform: translateY(16px); transition: opacity .9s ease, transform .9s ease; pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; transform: none; pointer-events: auto; position: relative; }
.carousel__slide p { font-family: var(--serif-body); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.4; color: #fdf8ea; }
.carousel cite { color: var(--gold-light); font-size: .9rem; }
.carousel__dots { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.carousel__dots button { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--gold-light); background: transparent; cursor: pointer; padding: 0; transition: background .3s, transform .3s; }
.carousel__dots button[aria-selected="true"] { background: var(--gold-light); transform: scale(1.25); box-shadow: 0 0 12px var(--gold-light); }

/* ---------- Partners ---------- */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.partner {
  position: relative; background: var(--white); border-radius: var(--radius); padding: 34px 28px 28px; overflow: hidden;
  border: 1px solid #ecdfbf; transition: transform .35s ease, box-shadow .35s ease, border-color .35s;
}
.partner::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold-gradient); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; }
.partner:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.partner:hover::before { transform: scaleX(1); }
.partner__num { font-family: var(--serif-display); font-size: 2.4rem; font-weight: 900; color: #f0e3bf; line-height: 1; display: block; margin-bottom: 10px; }
.partner h3 { color: var(--navy-900); }
.partner p { color: var(--ink-soft); margin: 0; }

/* ---------- Ways to get involved ---------- */
.ways { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.way {
  background: linear-gradient(180deg, var(--navy-800), var(--navy-950)); color: #e2e7f2; border-radius: var(--radius);
  padding: 34px 26px; position: relative; overflow: hidden; box-shadow: var(--shadow);
  transition: transform .35s ease;
}
.way::after { content: ""; position: absolute; top: -60px; right: -60px; width: 160px; height: 160px; background: radial-gradient(circle, rgba(244, 212, 124, .35), transparent 70%); transition: transform .5s ease; }
.way:hover { transform: translateY(-8px); }
.way:hover::after { transform: scale(1.6); }
.way__num { font-family: var(--serif-display); color: var(--gold-light); font-size: 1.1rem; letter-spacing: .2em; margin-bottom: 8px; }
.way h3 { color: var(--white); font-size: 1.4rem; }
.way p { font-size: .95rem; color: #c9d1e3; }
.way__link { color: var(--gold-light); text-decoration: none; font-weight: 700; font-size: .9rem; position: relative; z-index: 1; }
.way__link:hover { text-decoration: underline; }

/* ---------- Give ---------- */
.give__inner { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: center; position: relative; }
.give__text p { font-size: 1.05rem; color: #d3dbea; }
.give__text p:first-of-type { font-family: var(--serif-body); font-size: 1.45rem; font-style: italic; color: #fdf8ea; line-height: 1.45; }
.give__text em { color: var(--gold-light); font-size: 1.05rem; }
.give__card {
  background: var(--parchment); color: var(--ink); border-radius: 18px; padding: 40px 34px; text-align: center;
  box-shadow: 0 0 0 1px rgba(244, 212, 124, .5), 0 30px 60px -20px rgba(0, 0, 0, .6), 0 0 80px -20px rgba(244, 212, 124, .5);
}
.give__card h3 { color: var(--navy-900); font-size: 1.5rem; }
.give__payee { font-family: var(--serif-display); font-weight: 700; color: var(--gold-deep); font-size: 1.05rem; }
.give__card address { font-style: normal; font-size: 1.15rem; margin-bottom: 26px; line-height: 1.6; }
.give__note { font-size: .85rem; color: var(--ink-soft); margin: 16px 0 0; }

/* ---------- Prayer + forms ---------- */
.prayer { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.prayer__text p:first-of-type { font-family: var(--serif-body); font-size: 1.45rem; font-style: italic; color: var(--navy-800); line-height: 1.45; }
.form { display: grid; gap: 18px; }
.form--card, #prayerForm { background: var(--white); padding: 34px; border-radius: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--gold); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--navy-800); }
.form .opt { font-weight: 400; color: var(--ink-soft); }
.form input, .form textarea, .form select {
  font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border-radius: 10px; border: 1px solid #d8cfb8; background: #fffdf7;
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(212, 164, 58, .2); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form__hint { font-size: .82rem; color: var(--ink-soft); margin: -6px 0 0; }
.form button { justify-self: start; }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: start; }
.contact__cards { display: grid; gap: 18px; }
.contact__card {
  display: flex; align-items: center; gap: 18px; background: var(--white); padding: 22px; border-radius: var(--radius);
  text-decoration: none; box-shadow: var(--shadow); transition: transform .3s ease;
}
a.contact__card:hover { transform: translateX(6px); }
.contact__card strong { display: block; font-family: var(--serif-display); color: var(--gold-deep); letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.contact__icon { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--navy-900); color: var(--gold-light); }
.contact__icon svg { width: 24px; height: 24px; }
.break { word-break: break-all; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-950); color: #b9c3d8; text-align: center; padding: 60px 0 40px; border-top: 3px solid var(--gold); }
.footer__logo { width: 90px; margin: 0 auto 16px; border-radius: 50%; box-shadow: 0 0 30px rgba(244, 212, 124, .35); }
.footer__name { font-family: var(--serif-display); color: var(--gold-light); font-size: 1.3rem; margin-bottom: 2px; }
.footer__tag { letter-spacing: .25em; text-transform: uppercase; font-size: .75rem; }
.footer__verse { font-family: var(--serif-body); font-style: italic; font-size: 1.2rem; color: #e7eaf2; max-width: 620px; margin: 20px auto; }
.footer__small { font-size: .8rem; line-height: 1.8; color: #8792ab; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .ways { grid-template-columns: repeat(2, 1fr); }
  .partners { grid-template-columns: repeat(2, 1fr); }
  .mission, .give__inner, .prayer, .contact { grid-template-columns: 1fr; gap: 40px; }
  .mission__card { max-width: 340px; margin: 0 auto; }
}
@media (max-width: 860px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(300px, 82vw); flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 22px; padding: 40px 34px; background: var(--navy-950); box-shadow: -10px 0 40px rgba(0, 0, 0, .5);
    transform: translateX(100%); transition: transform .4s ease;
  }
  .nav__links a:not(.btn) { font-size: 1.1rem; }
  .nav.is-open .nav__links { transform: none; }
  .nav.is-open .nav__toggle { position: relative; z-index: 2; }
  .nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .pillars, .partners, .ways, .form__row { grid-template-columns: 1fr; }
  .form--card, #prayerForm, .give__card { padding: 26px 20px; }
  .carousel { min-height: 300px; }
  em { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
