/* ==========================================================================
   Vision Pentecostal Church of Community — style.css
   Warm & welcoming: cream, terracotta, gold. Fraunces + Work Sans (self-hosted)
   ========================================================================== */

:root {
  --bg: #FBF6ED;
  --bg-deep: #F3EBDB;
  --surface: #FFFDF8;
  --ink: #3B2A1E;
  --ink-soft: #77664F;
  --terra: #B8552F;
  --terra-dark: #8F3E1B;
  --terra-soft: #F4E0D2;
  --gold: #D9A441;
  --gold-soft: #F6E7C4;
  --line: #E8DCC6;
  --shadow: 0 20px 40px -24px rgba(59, 42, 30, .35);
  --radius: 18px;
  --font-serif: "Fraunces", Georgia, serif;
  --font-sans: "Work Sans", -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--terra-dark); }

h1, h2, h3, .serif {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.section { padding: clamp(3.6rem, 8vw, 6.5rem) 0; }
.section-deep { background: var(--bg-deep); }

/* ---------- eyebrow / lead ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--terra-dark);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
  border-radius: 2px;
}
.lead { font-size: clamp(1.08rem, 1.6vw, 1.24rem); color: var(--ink-soft); max-width: 62ch; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .92rem 1.7rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn-primary { background: var(--terra); color: #FFF8EF; box-shadow: 0 10px 22px -10px rgba(184, 85, 47, .55); }
.btn-primary:hover { background: var(--terra-dark); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(59, 42, 30, .28); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--terra); color: var(--terra-dark); transform: translateY(-2px); }
.btn-light { background: #FFF8EF; color: var(--terra-dark); }
.btn-light:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -12px rgba(0,0,0,.4); }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }

/* ---------- charity strip ---------- */
.charity-strip {
  background: var(--ink);
  color: #EFE6D6;
  font-size: .8rem;
  letter-spacing: .02em;
  text-align: center;
  padding: .5rem 1rem;
}
.charity-strip a { color: #F2C67E; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 246, 237, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .85rem 24px;
  max-width: var(--wrap);
  margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 42px; height: 42px; flex: none; }
.brand-name { font-family: var(--font-serif); font-weight: 700; font-size: 1.06rem; line-height: 1.2; }
.brand-sub { display: block; font-family: var(--font-sans); font-weight: 500; font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--terra-dark); }

.main-nav ul { display: flex; gap: 1.6rem; list-style: none; align-items: center; }
.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: .95rem;
  padding: .3rem 0;
  border-bottom: 2px solid transparent;
  transition: color .15s ease, border-color .15s ease;
}
.main-nav a:not(.btn):hover, .main-nav a[aria-current="page"]:not(.btn) { color: var(--terra-dark); border-bottom-color: var(--gold); }
.main-nav .btn { padding: .6rem 1.25rem; font-size: .92rem; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line);
  border-radius: 10px;
  width: 44px; height: 40px;
  cursor: pointer;
  color: var(--ink);
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(217, 164, 65, .18), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(184, 85, 47, .12), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2.4rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 150px);
  max-height: 860px;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}
.hero h1 em { font-style: italic; color: var(--terra-dark); }
.hero-copy .lead { margin-top: 1.4rem; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--gold-soft);
  border: 1px solid #EACD8E;
  color: #7A5514;
  font-weight: 500;
  font-size: .9rem;
  border-radius: 999px;
  padding: .42rem 1rem;
  margin-bottom: 1.4rem;
}
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 24px 24px 24px 4px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 6px solid #FFFDF8;
}
.hero-card {
  position: absolute;
  left: -22px;
  bottom: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: .95rem 1.2rem;
  display: flex;
  gap: .8rem;
  align-items: center;
  max-width: 320px;
}
.hero-card .dot {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--terra-soft);
  display: grid;
  place-items: center;
  color: var(--terra-dark);
}
.hero-card strong { display: block; font-family: var(--font-serif); font-size: 1rem; line-height: 1.25; }
.hero-card span { font-size: .84rem; color: var(--ink-soft); }

/* ---------- trust band ---------- */
.trust-band {
  background: var(--ink);
  color: #EFE6D6;
  padding: 1.15rem 0;
}
.trust-band .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 2.6rem;
  font-size: .88rem;
}
.trust-band b { color: #F2C67E; font-weight: 600; }

/* ---------- pillar cards ---------- */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; margin-top: 3rem; }
.pillar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 14px 30px -22px rgba(59, 42, 30, .4);
  transition: transform .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pillar img { width: 100%; aspect-ratio: 4 / 3.1; object-fit: cover; }
.pillar-body { padding: 1.3rem 1.35rem 1.5rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.pillar-body p { color: var(--ink-soft); font-size: .95rem; }
.pillar-body .more { margin-top: auto; font-weight: 600; color: var(--terra-dark); text-decoration: none; font-size: .93rem; }
.pillar-body .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- split sections ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.2rem, 5vw, 4.5rem);
  align-items: center;
}
.split.reverse .split-media { order: 2; }
.split-media .frame { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); border: 6px solid #FFFDF8; }
.split-media img { width: 100%; }
.split-copy .btn-row { margin-top: 1.8rem; }
.split-copy p + p { margin-top: 1rem; }

/* ---------- checklist ---------- */
.check-list { list-style: none; margin-top: 1.4rem; display: grid; gap: .75rem; }
.check-list li { display: flex; gap: .75rem; align-items: flex-start; }
.check-list svg { flex: none; width: 22px; height: 22px; margin-top: .15rem; color: var(--terra); }

/* ---------- quote band ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3vw, 2.15rem);
  font-weight: 600;
  line-height: 1.35;
  max-width: 21em;
  margin: 0 auto 1.2rem;
}
.quote-band blockquote em { color: var(--terra-dark); font-style: italic; }
.quote-band cite { font-style: normal; font-weight: 600; color: var(--ink-soft); font-size: .95rem; }

/* ---------- page hero (interior) ---------- */
.page-hero {
  background:
    radial-gradient(700px 380px at 90% -20%, rgba(217, 164, 65, .16), transparent 60%),
    var(--bg-deep);
  border-bottom: 1px solid var(--line);
  padding: clamp(3.4rem, 7vw, 5.5rem) 0;
}
.page-hero .lead { margin-top: 1.2rem; }

/* ---------- ministry blocks ---------- */
.ministry { padding: clamp(3rem, 6vw, 5rem) 0; }
.ministry + .ministry { border-top: 1px dashed var(--line); }
.ministry .tag {
  display: inline-block;
  background: var(--gold-soft);
  color: #7A5514;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: .3rem .85rem;
  margin-bottom: 1rem;
}

/* ---------- involve cards ---------- */
.involve-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 3rem; }
.involve-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  transition: transform .2s ease, box-shadow .2s ease;
}
.involve-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.involve-card .icon {
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--terra-soft);
  display: grid;
  place-items: center;
  color: var(--terra-dark);
}
.involve-card p { color: var(--ink-soft); font-size: .96rem; flex: 1; }
.involve-card .more { font-weight: 600; color: var(--terra-dark); text-decoration: none; font-size: .95rem; }
.involve-card .more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 2.6rem auto 0; display: grid; gap: .9rem; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-weight: 600;
  font-family: var(--font-serif);
  font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.4rem;
  color: var(--terra);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .faq-a { padding: 0 1.3rem 1.25rem; color: var(--ink-soft); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 15% 0%, rgba(255,255,255,.14), transparent 55%),
    linear-gradient(120deg, var(--terra-dark), var(--terra));
  color: #FFF6EA;
  text-align: center;
}
.cta-band h2 { color: #FFF6EA; }
.cta-band p { color: #FBE3CC; max-width: 56ch; margin: 1rem auto 0; }
.cta-band .btn-row { justify-content: center; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 4vw, 3.4rem); margin-top: 3rem; align-items: start; }
.contact-cards { display: grid; gap: 1.1rem; }
.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.4rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-card .icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--terra-soft);
  color: var(--terra-dark);
  display: grid;
  place-items: center;
}
.contact-card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-card p, .contact-card a { font-size: .96rem; color: var(--ink-soft); text-decoration: none; }
.contact-card a b { color: var(--terra-dark); }
.contact-card a:hover b, .contact-card a:hover { text-decoration: underline; text-underline-offset: 3px; }

.mailto-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2.2rem);
  box-shadow: 0 18px 36px -26px rgba(59, 42, 30, .4);
}
.mailto-form h3 { margin-bottom: .4rem; }
.mailto-form .hint { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  padding: .8rem 1rem;
  font: inherit;
  color: var(--ink);
  transition: border-color .15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  background: #FFFDF8;
}
.form-note { font-size: .84rem; color: var(--ink-soft); margin-top: .9rem; }

/* ---------- values / beliefs grid ---------- */
.belief-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 2.6rem; }
.belief-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
}
.belief-card h3 { font-size: 1.12rem; margin-bottom: .45rem; display: flex; align-items: center; gap: .6rem; }
.belief-card h3 svg { width: 20px; height: 20px; color: var(--gold); flex: none; }
.belief-card p { color: var(--ink-soft); font-size: .95rem; }

/* ---------- status panel ---------- */
.status-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--gold);
  border-radius: 16px;
  padding: 1.8rem 2rem;
  margin-top: 2.6rem;
}
.status-panel h3 { margin-bottom: .8rem; }
.status-panel dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 2rem; margin-top: 1rem; }
.status-panel dt { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.status-panel dd { font-weight: 500; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #D8CCB8; font-size: .93rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2.4rem;
  padding: clamp(3rem, 6vw, 4.5rem) 0 2.6rem;
}
.site-footer h4 {
  font-family: var(--font-serif);
  color: #F6EEDD;
  font-size: 1.02rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.site-footer ul { list-style: none; display: grid; gap: .55rem; }
.site-footer a { color: #D8CCB8; text-decoration: none; }
.site-footer a:hover { color: #F2C67E; text-decoration: underline; text-underline-offset: 3px; }
.footer-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; color: #F6EEDD; }
.footer-brand svg { width: 40px; height: 40px; }
.footer-brand .brand-name { color: #F6EEDD; }
.footer-brand .brand-sub { color: #F2C67E; }
.footer-bottom {
  border-top: 1px solid rgba(216, 204, 184, .18);
  padding: 1.4rem 0 1.7rem;
  font-size: .82rem;
}
.footer-bottom .wrap { display: flex; flex-wrap: wrap; gap: .5rem 1.6rem; justify-content: space-between; }
.footer-bottom a { color: #F2C67E; }
.acknowledgement {
  font-size: .84rem;
  color: #B7AA93;
  padding: 1.1rem 0 0;
  border-top: 1px solid rgba(216, 204, 184, .18);
  margin-top: 1.4rem;
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #FFF8EF;
  padding: .7rem 1.2rem;
  border-radius: 0 0 12px 0;
  z-index: 100;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

/* ---------- reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .involve-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; max-height: none; padding-bottom: 3.4rem; }
  .hero-media { order: -1; margin-top: 1rem; }
  .hero-card { left: 14px; bottom: 14px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 30px -24px rgba(59,42,30,.4);
    display: none;
    padding: .6rem 24px 1.2rem;
  }
  .site-header.nav-open .main-nav { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .main-nav li { width: 100%; }
  .main-nav a:not(.btn) { display: block; padding: .65rem 0; border-bottom: none; font-size: 1.05rem; }
  .main-nav .btn { margin-top: .7rem; }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .contact-grid > * { min-width: 0; }
  .contact-card a { overflow-wrap: anywhere; }
  .split.reverse .split-media { order: 0; }
  .belief-grid { grid-template-columns: 1fr; }
  .status-panel dl { grid-template-columns: 1fr; }
  .hero-card { max-width: 280px; }
}

@media (max-width: 560px) {
  .pillars, .involve-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .btn { width: 100%; justify-content: center; }
  .btn-row .btn { width: auto; flex: 1 1 auto; }
}
