/* =====================================================================
   Center of Hope Assembly of God — shared site stylesheet
   Loaded by every page (index, give, staff, groups). Holds only the
   chrome that's identical everywhere: color tokens, base type, buttons,
   header/nav/mobile drawer, footer, and the scroll-reveal animation.
   Page-specific layout (hero, page-banner, section content) stays in
   that page's own <style> block.
   ===================================================================== */

:root{
  --ink: #22292E;
  --ink-soft: #4B555C;
  --paper: #F6F4EF;
  --white: #FFFFFF;
  --flame: #A32B2E;
  --flame-soft: #C65C4C;
  --line: rgba(34,41,46,0.16);
  --max: 1180px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin:0;
  font-family: 'IBM Plex Sans', sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3{
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  margin: 0;
}
p{ line-height: 1.7; color: var(--ink-soft); }
a{ color: inherit; text-decoration: none; }
.wrap{ max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Kicker label ---------- */
.kicker{
  display:flex; align-items:center; gap:10px;
  font-family:'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--flame);
}
.kicker .num{
  font-family:'Archivo', sans-serif;
  color: var(--ink);
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--ink);
  width: 26px; height:26px;
  display:flex; align-items:center; justify-content:center;
  font-size: 0.72rem;
}
.kicker.on-dark .num{ background: transparent; box-shadow: inset 0 0 0 1.5px rgba(246,244,239,0.5); color: var(--paper); }
.kicker.on-dark{ color: var(--flame-soft); }

.flame-mark{ display:inline-block; flex-shrink:0; transition: transform 0.4s ease; }

/* ---------- Scripture callout ---------- */
.scripture-quote{
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.92rem;
  border-left: 2px solid var(--flame);
  padding-left: 12px;
  margin: 14px 0 0;
}
.scripture-quote span{
  display: block;
  font-style: normal;
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--flame);
  margin-top: 4px;
}

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; gap:9px;
  font-family:'Archivo', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 15px 26px;
  border: 1.5px solid var(--ink);
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.btn:hover{ transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0,0,0,0.08); }
.btn:active{ transform: translateY(-1px); }
.btn-solid{ background: var(--ink); color: var(--paper); }
.btn-solid:hover{ background: var(--flame); border-color: var(--flame); }
.btn-line{ background: transparent; color: var(--ink); }
.btn-line:hover{ background: var(--ink); color: var(--paper); }

/* ---------- Nav ---------- */
header{
  position: fixed; top:0; left:0; right:0; z-index: 100;
  background: rgba(246, 244, 239, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.3s ease, padding 0.3s ease, box-shadow 0.3s ease;
}
header.scrolled{
  background: rgba(246, 244, 239, 0.92);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
nav{
  display:flex; align-items:center; justify-content: space-between;
  max-width: var(--max); margin: 0 auto; padding: 12px 24px;
  position: relative;
}
.brand{ display:flex; align-items:center; gap:12px; }
.brand img{
  height: 48px;
  width: auto;
  display: block;
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}
.brand:hover img{ transform: scale(1.03); }
.brand-text{ font-family:'Archivo', sans-serif; font-weight: 800; font-size: 0.95rem; line-height:1.2; text-transform: uppercase; }
.brand-text span{ display:block; font-family:'IBM Plex Sans', sans-serif; font-weight: 400; text-transform:none; font-size: 0.72rem; color: var(--ink-soft); }
.nav-links{ display:flex; align-items:center; gap: 30px; list-style:none; margin:0; padding:0; }
.nav-links a{
  font-family:'Archivo', sans-serif; font-weight: 600; font-size: 0.82rem;
  text-transform: uppercase; letter-spacing: 0.03em;
  position: relative;
  padding-bottom: 4px;
}
.nav-links a.current{ color: var(--flame); }
.nav-links a::after{
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0%; height: 2px;
  background-color: var(--flame);
  transition: width 0.25s var(--ease-out);
}
.nav-links a:hover::after{ width: 100%; }
.nav-cta{ display:flex; align-items:center; gap:12px; }
.hamburger{ display:none; background:none; border:none; cursor:pointer; padding: 6px; margin-left: 4px; color: var(--ink); }
.hamburger svg{ display:block; }

.mobile-drawer{
  display:none; position: absolute; top: 100%; right: 0; width: max-content; min-width: 220px;
  background: var(--paper); border: 1.5px solid var(--ink); border-top:none;
  padding: 10px 8px;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.mobile-drawer.open{
  display:flex; flex-direction:column;
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
}
.mobile-drawer a{ font-family:'Archivo', sans-serif; font-weight:600; text-transform: uppercase; font-size:0.85rem; padding: 12px 16px; transition: background 0.15s ease; }
.mobile-drawer a:hover{ background: rgba(34,41,46,0.06); }
.mobile-drawer .btn{ margin: 8px 12px 4px; justify-content:center; }

/* ---------- Section shell ---------- */
section{ padding: clamp(64px, 8vw, 104px) 0; border-bottom: 1.5px solid var(--ink); }
section:last-of-type{ border-bottom: none; }
.section-head{ display:flex; justify-content: space-between; align-items:flex-end; gap: 30px; margin-bottom: 46px; flex-wrap:wrap; }
.section-head h2{ font-size: clamp(2rem, 4vw, 3rem); margin-top: 10px; line-height: 1; max-width: 620px; }
.section-head .tag{ font-family:'Archivo', sans-serif; font-weight:600; font-size: 0.85rem; color: var(--ink-soft); max-width: 300px; text-align:right; }

/* ---------- Footer ---------- */
footer{ background: var(--paper); padding: 36px 0 26px; }
.footer-grid{ display:flex; justify-content: space-between; align-items:center; flex-wrap:wrap; gap: 20px; }
.footer-brand{ display:flex; align-items:center; gap:10px; font-family:'Archivo', sans-serif; font-weight:700; font-size: 0.85rem; text-transform:uppercase; }
.footer-brand img{ height: 30px; width:auto; }
.social-row{ display:flex; gap:10px; }
.social-row a{
  display:flex; align-items:center; justify-content:center;
  width: 36px; height: 36px; border: 1.5px solid var(--ink); color: var(--ink);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.social-row a:hover{ background: var(--flame); border-color: var(--flame); color: var(--paper); transform: translateY(-3px); }
.footer-bottom{ display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; font-size: 0.78rem; color: var(--ink-soft); margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Scroll-reveal animation ---------- */
.reveal{
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 1.4s var(--ease-out), transform 1.4s var(--ease-out);
  will-change: opacity, transform;
}
.reveal.active{ opacity: 1; transform: translateY(0); }
.stagger-1{ transition-delay: 0.25s; }
.stagger-2{ transition-delay: 0.45s; }
.stagger-3{ transition-delay: 0.65s; }
.stagger-4{ transition-delay: 0.85s; }

/* ---------- Shared responsive nav collapse ---------- */
@media (max-width: 880px){
  .nav-links{ display:none; }
  .nav-cta .btn{ display:none; }
  .hamburger{ display:inline-flex; }
  .section-head{ flex-direction: column; align-items:flex-start; }
  .section-head .tag{ text-align:left; }
}
@media (min-width: 881px){
  .mobile-drawer{ display:none !important; }
}
