/* =========================================================
   LEGACY CHURCH — brand palette pulled from the logo you sent:
   black mark + gold field. Swap --gold if your real brand gold
   differs once we have the exact file.
   ========================================================= */
:root{
  --black: #0b0b0c;
  --charcoal: #141416;
  --charcoal-2: #1c1c1f;
  --paper: #f6f3ec;
  --ink: #0b0b0c;
  /* exact gold sampled from your logo file (IMG_1876.jpeg) */
  --gold: #f5c700;
  --gold-dark: #cca600;
  --text-light: #f5f2ea;
  --muted: #a3a3ab;
  --muted-dark: #6b6b58;
  --radius: 14px;
  --max: 1180px;
  /* Approximates the bold, blocky font used in the LEGACY CHURCH logo
     wordmark. Swap this if you get the real logo font file. */
  --font-brand: 'Anton', 'Space Grotesk', sans-serif;
  font-size: 16px;
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  background: var(--black);
  color: var(--text-light);
  font-family: 'Inter', system-ui, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4{
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  line-height: 1.05;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}
p{ margin: 0 0 1em; }
a{ color: inherit; text-decoration: none; }
img{ max-width: 100%; display:block; }
.container{
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- reveal-on-scroll ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.is-visible{ opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.btn:hover{ transform: translateY(-2px); }
.btn-accent{
  background: var(--gold);
  color: var(--black);
}
.btn-accent:hover{ background: var(--gold-dark); }
.btn-ghost{
  background: transparent;
  color: var(--text-light);
  border-color: rgba(245,242,234,.35);
}
.btn-ghost:hover{ border-color: var(--gold); color: var(--gold); }
.btn-lg{ padding: 16px 32px; font-size: 1rem; }
.play-dot{ font-size: .7em; }

/* ---------- eyebrow / section titles ---------- */
.eyebrow{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: .14em;
  font-size: .8rem;
  color: var(--gold);
  margin-bottom: .75em;
}
.section-title{
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
}
.section-lead{
  max-width: 640px;
  color: var(--muted);
  font-size: 1.05rem;
}
.section-lead-sm{
  max-width: 360px;
  color: var(--muted);
  font-size: .95rem;
}

/* ---------- header / nav ---------- */
.site-header{
  position: fixed;
  top:0; left:0; right:0;
  z-index: 100;
  padding: 18px 0;
  transition: background .25s ease, padding .25s ease, box-shadow .25s ease;
}
.site-header.scrolled{
  background: rgba(11,11,12,.9);
  backdrop-filter: blur(10px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.nav-wrap{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 24px;
}
.brand{
  display:flex;
  align-items:center;
  gap: 10px;
}
.brand-logo-img{
  height: 40px;
  width: auto;
  border-radius: 8px;
}

.primary-nav{
  display:flex;
  align-items:center;
  gap: 32px;
  font-weight: 500;
  font-size: .95rem;
}
.primary-nav a{
  color: var(--text-light);
  opacity: .85;
  transition: opacity .2s ease, color .2s ease;
}
.primary-nav a:hover{ opacity: 1; color: var(--gold); }
.nav-cta{ opacity: 1 !important; }
.nav-cta:hover{ color: var(--black) !important; }

.nav-toggle{
  display:none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}
.nav-toggle span{
  display:block;
  height: 2px;
  width: 100%;
  background: var(--text-light);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}

/* ---------- hero ---------- */
.hero{
  position: relative;
  min-height: 100vh;
  display:flex;
  align-items:center;
  overflow: hidden;
  padding-top: 120px;
  padding-bottom: 80px;
}
.hero-bg{
  position:absolute; inset:0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(244,196,48,.16), transparent 60%),
    radial-gradient(50% 40% at 10% 90%, rgba(244,196,48,.1), transparent 60%),
    var(--black);
  z-index: -1;
}
.hero-inner{ max-width: 820px; }
.hero-title{
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  font-weight: 700;
  color: var(--text-light);
}
.text-accent{ color: var(--gold); }
.hero-sub{
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 560px;
  margin-top: 18px;
}
.hero-actions{
  display:flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}
.hero-meta{
  display:flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid rgba(245,242,234,.14);
}
.hero-meta-label{
  display:block;
  font-size: .75rem;
  letter-spacing: .1em;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 4px;
}
.hero-meta-value{
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}
.scroll-cue{
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 42px;
  border: 2px solid rgba(245,242,234,.3);
  border-radius: 20px;
}
.scroll-cue::before{
  content:"";
  position:absolute;
  top: 8px; left: 50%;
  width: 4px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollcue 1.8s infinite;
}
@keyframes scrollcue{
  0%{ opacity:1; top:8px; }
  70%{ opacity:0; top:22px; }
  100%{ opacity:0; top:8px; }
}

/* ---------- generic sections ---------- */
.section{ padding: 110px 0; }
.section.alt{ background: var(--charcoal); }

/* ---------- mission band ---------- */
.mission{
  padding: 90px 0;
  text-align: center;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(244,196,48,.1), transparent 65%),
    var(--black);
  border-top: 1px solid rgba(245,242,234,.08);
  border-bottom: 1px solid rgba(245,242,234,.08);
}
.mission-inner{ max-width: 780px; margin: 0 auto; }
.mission-statement{
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 500;
  color: var(--text-light);
}
.mission-tagline{
  font-family: var(--font-brand);
  font-weight: 400;
  letter-spacing: .03em;
  font-size: clamp(1.3rem, 3vw, 2rem);
  color: var(--gold);
  margin: 18px 0 0;
}

/* ---------- story / video ---------- */
.story-grid{
  display:grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items:center;
}
.video-frame{
  display:flex;
  justify-content:center;
}
.intro-video{
  width: 100%;
  max-width: 380px;
  max-height: 640px;
  border-radius: var(--radius);
  background: var(--charcoal-2);
  border: 1px solid rgba(245,242,234,.1);
  box-shadow: 0 30px 60px -20px rgba(245,199,0,.18);
}

/* ---------- values ---------- */
.values-heading{
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 48px 0 20px;
}
.value-pill-grid{
  display:flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 64px;
}
.value-pill{
  display:inline-flex;
  align-items:center;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid rgba(244,196,48,.4);
  background: rgba(244,196,48,.06);
  color: var(--text-light);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .01em;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.value-pill:hover{
  background: var(--gold);
  color: var(--black);
  border-color: var(--gold);
}

/* ---------- beliefs ---------- */
.belief-grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}
.belief-card{
  background: var(--charcoal-2);
  border: 1px solid rgba(245,242,234,.08);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.belief-card h3{
  font-size: 1.05rem;
  color: var(--gold);
  margin-bottom: .4em;
}
.belief-card p{
  color: var(--muted);
  font-size: .92rem;
  margin: 0;
}

/* ---------- leaders ---------- */
.leaders{
  display:grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  align-items:center;
  background: var(--charcoal-2);
  border: 1px solid rgba(245,242,234,.08);
  border-radius: var(--radius);
  padding: 36px;
}
.leader-photo{
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(245,242,234,.15);
}
.leader-photo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.leader-role{ color: var(--gold); font-weight: 600; margin-bottom: .6em; }
.leader-copy p:last-child{ color: var(--muted); }

/* ---------- events ---------- */
.section-head-row{
  display:flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.events-grid{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.event-card{
  background: var(--charcoal-2);
  border: 1px solid rgba(245,242,234,.08);
  border-radius: var(--radius);
  padding: 26px 22px;
}
.event-tag{
  display:inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245,242,234,.08);
  color: var(--muted);
  margin-bottom: 14px;
}
.event-tag-accent{
  background: rgba(244,196,48,.15);
  color: var(--gold);
}
.event-card h3{ font-size: 1.15rem; margin-bottom: .2em; }
.event-meta{ color: var(--gold); font-size: .85rem; font-weight: 600; margin-bottom: .6em; }
.event-card p:last-child{ color: var(--muted); font-size: .92rem; }
.events-footnote{
  margin-top: 36px;
  color: var(--muted-dark);
  font-size: .88rem;
  max-width: 640px;
}

/* ---------- give ---------- */
.give{
  background:
    radial-gradient(60% 100% at 50% 0%, rgba(244,196,48,.14), transparent 70%),
    var(--black);
  text-align:center;
}
.give-inner{ max-width: 640px; margin: 0 auto; }
.give-note{ color: var(--muted-dark); font-size: .85rem; margin-top: 16px; }

/* ---------- follow the journey ---------- */
.journey{
  background: var(--charcoal);
  text-align:center;
  padding: 90px 0;
}
.journey-inner{ max-width: 640px; margin: 0 auto; }
.journey-icon{
  width: 60px; height: 60px;
  margin: 0 auto 22px;
  border-radius: 16px;
  background: rgba(244,196,48,.12);
  color: var(--gold);
  display:flex; align-items:center; justify-content:center;
}

/* ---------- connect ---------- */
.connect-grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.social-row{
  display:flex;
  gap: 12px;
  margin-top: 26px;
}
.social-icon{
  width: 44px; height: 44px;
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  background: rgba(245,242,234,.06);
  border: 1px solid rgba(245,242,234,.1);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.social-icon:hover{ background: var(--gold); color: var(--black); border-color: var(--gold); }

.connect-form{
  display:flex;
  flex-direction: column;
  gap: 14px;
  background: var(--charcoal-2);
  border: 1px solid rgba(245,242,234,.08);
  border-radius: var(--radius);
  padding: 32px;
}
.connect-form label{
  font-size: .82rem;
  font-weight: 600;
  color: var(--muted);
}
.connect-form input,
.connect-form select,
.connect-form textarea{
  background: var(--black);
  border: 1px solid rgba(245,242,234,.14);
  color: var(--text-light);
  border-radius: 8px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: .95rem;
}
.connect-form input:focus,
.connect-form select:focus,
.connect-form textarea:focus{
  outline: none;
  border-color: var(--gold);
}
.connect-form button{ margin-top: 8px; }
.hidden-field{ position:absolute; left:-9999px; }
.form-note{ color: var(--muted-dark); font-size: .8rem; margin-top: 4px; }

/* ---------- footer ---------- */
.site-footer{
  background: var(--charcoal);
  padding: 48px 0 24px;
  border-top: 1px solid rgba(245,242,234,.08);
}
.footer-inner{
  display:flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.footer-logo-img{ height: 34px; width: auto; }
.footer-brand p{ margin: 6px 0 0; color: var(--muted); font-size: .9rem; }
.footer-nav{ display:flex; gap: 26px; font-size: .9rem; }
.footer-nav a{ color: var(--muted); }
.footer-nav a:hover{ color: var(--gold); }
.footer-copyright{
  text-align:center;
  color: var(--muted-dark);
  font-size: .8rem;
  margin: 32px 0 0;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px){
  .story-grid{ grid-template-columns: 1fr; }
  .events-grid{ grid-template-columns: repeat(2, 1fr); }
  .belief-grid{ grid-template-columns: repeat(2, 1fr); }
  .connect-grid{ grid-template-columns: 1fr; }
  .leaders{ grid-template-columns: 1fr; }
  .leader-photo{ max-width: 220px; }
}

@media (max-width: 720px){
  .primary-nav{
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--charcoal);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 0 40px;
    transform: translateX(100%);
    transition: transform .3s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.4);
  }
  .primary-nav.open{ transform: translateX(0); }
  .nav-toggle{ display:flex; }
  .nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2){ opacity: 0; }
  .nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

  .hero-meta{ flex-direction: column; gap: 16px; }
  .events-grid{ grid-template-columns: 1fr; }
  .belief-grid{ grid-template-columns: 1fr; }
  .section{ padding: 80px 0; }
}
