/* ============================================================
   Wonga Park Christian Reformed Church, Design System
   Colors sampled directly from the church's real logo artwork.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500&family=Inter:wght@400;500;600;700;800&family=Caveat:wght@600;700&display=swap');

:root{
  /* --- brand colors, sampled from real logo file --- */
  --green: #B8D767;
  --green-dark: #93B939;
  --green-light: #E4EFC8;
  --charcoal: #4B4E49;
  --charcoal-soft: #6B6F67;
  --sage: #7A8277;
  --sage-light: #C7CFC1;
  --dark: #2D2D2F;
  --dark-olive: #3B403A;
  --header-dark: #3C413B;
  --cream: #FBFAF4;
  --cream-dark: #F2EFE3;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-script: 'Caveat', cursive;

  --radius-sm: 10px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(45,45,47,0.06);
  --shadow-md: 0 12px 32px rgba(45,45,47,0.10);
  --shadow-lg: 0 24px 60px rgba(45,45,47,0.16);

  --container: 1180px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
ul{ list-style: none; margin: 0; padding: 0; }
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--charcoal);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}
h1{ font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 600; letter-spacing: -0.01em; }
h2{ font-size: clamp(1.9rem, 3.4vw, 2.8rem); }
h3{ font-size: clamp(1.3rem, 2vw, 1.6rem); }
p{ margin: 0 0 1em; }
p:last-child{ margin-bottom: 0; }

.container{
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.eyebrow{
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.5rem;
  color: var(--green-dark);
  margin-bottom: 0.25em;
  transform: rotate(-2deg);
}

.section{ padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section--tight{ padding: clamp(2.5rem, 5vw, 4rem) 0; }
.section--dark{ background: var(--dark); color: var(--cream); }
.section--dark h1, .section--dark h2, .section--dark h3{ color: var(--white); }
.section--sage{ background: var(--cream-dark); }
.section--olive{ background: var(--dark-olive); color: var(--cream); }
.section--olive h1, .section--olive h2, .section--olive h3{ color: var(--white); }

.text-center{ text-align: center; }
.lede{ font-size: 1.2rem; color: var(--charcoal-soft); max-width: 62ch; }
.center-col{ max-width: 720px; margin-inline: auto; }

/* ---------------- Buttons ---------------- */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:hover{ transform: translateY(-2px); }
.btn--primary{ background: var(--green); color: var(--dark); box-shadow: var(--shadow-sm); }
.btn--primary:hover{ background: var(--green-dark); box-shadow: var(--shadow-md); }
.btn--dark{ background: var(--charcoal); color: var(--cream); }
.btn--dark:hover{ background: var(--dark); box-shadow: var(--shadow-md); }
.btn--outline{ background: transparent; border-color: currentColor; color: inherit; }
.btn--outline:hover{ background: rgba(255,255,255,0.12); }
.btn--outline-dark{ background: transparent; border-color: var(--charcoal); color: var(--charcoal); }
.btn--outline-dark:hover{ background: var(--charcoal); color: var(--cream); }
.btn--sm{ padding: 0.6em 1.3em; font-size: 0.88rem; }
.btn-row{ display: flex; gap: 0.9rem; flex-wrap: wrap; }

/* ---------------- Header / Nav ---------------- */
.site-header{
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header .container{
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
}
.brand{ display: flex; align-items: center; }
.brand img{ height: 60px; width: auto; }

.nav-primary{ display: flex; align-items: center; gap: 2.1rem; }
.nav-primary a{
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
  padding: 0.4em 0.1em;
}
.nav-primary a::after{
  content:"";
  position: absolute; left: 0; right: 100%; bottom: -2px;
  height: 2px; background: var(--green);
  transition: right 0.22s ease;
}
.nav-primary a:hover::after, .nav-primary a.active::after{ right: 0; }
.nav-primary a:hover, .nav-primary a.active{ color: var(--green); }
.nav-cta{ display:flex; align-items:center; gap: 1.1rem; }

.nav-toggle{
  display: none;
  background: none; border: none; cursor: pointer;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after{
  content: ""; display: block; width: 24px; height: 2px; background: var(--white);
  position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before{ position: absolute; top: -8px; }
.nav-toggle span::after{ position: absolute; top: 8px; }
.nav-toggle[aria-expanded="true"] span{ background: transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after{ transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 960px){
  .nav-primary{
    position: fixed; inset: 84px 0 0 0;
    background: var(--header-dark);
    flex-direction: column;
    align-items: stretch;
    padding: 1.5rem var(--gutter) 2rem;
    gap: 0;
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
  }
  .nav-primary.open{ transform: translateX(0); }
  .nav-primary a{ padding: 0.9rem 0; border-bottom: 1px solid rgba(255,255,255,0.1); font-size: 1.1rem; }
  .nav-cta{ margin-top: 1.5rem; }
  .nav-toggle{ display: inline-flex; }
}

/* ---------------- Hero ---------------- */
.hero{
  position: relative;
  color: var(--white);
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.hero::before{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,45,47,0.35) 0%, rgba(45,45,47,0.55) 55%, rgba(45,45,47,0.86) 100%);
}
.hero-inner{ position: relative; z-index: 1; padding-bottom: clamp(2.5rem, 6vw, 4.5rem); max-width: 760px; }
.hero .eyebrow{ color: var(--green); }
.hero h1{ color: var(--white); }
.hero p.lede{ color: rgba(255,255,255,0.88); }

.page-banner{
  position: relative;
  color: var(--white);
  padding: clamp(5rem, 14vw, 8rem) 0 clamp(3rem, 6vw, 4rem);
  background-size: cover;
  background-position: center;
}
.page-banner::before{
  content:"";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(45,45,47,0.55), rgba(59,64,58,0.88));
}
.page-banner .container{ position: relative; z-index: 1; }
.page-banner h1{ color: var(--white); margin-bottom: 0.2em; }
.page-banner p{ color: rgba(255,255,255,0.85); max-width: 60ch; }

/* ---------------- Cards / Grid ---------------- */
.grid{ display: grid; gap: 1.75rem; }
.grid--2{ grid-template-columns: repeat(2, 1fr); }
.grid--3{ grid-template-columns: repeat(3, 1fr); }
.grid--4{ grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px){ .grid--3, .grid--4{ grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px){ .grid--2, .grid--3, .grid--4{ grid-template-columns: 1fr; } }

.card{
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow .22s ease, transform .22s ease;
}
.card:hover{ box-shadow: var(--shadow-md); transform: translateY(-4px); }
.card-img{ aspect-ratio: 4/3; overflow: hidden; }
.card-img img{ width: 100%; height: 100%; object-fit: cover; }
.card-body{ padding: 1.6rem; }
.card-body h3{ margin-bottom: 0.4em; }
.card-body p{ color: var(--charcoal-soft); font-size: 0.97rem; }
.card-meta{ font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--green-dark); font-weight: 700; margin-bottom: 0.6em; display:block; }

.value-card{ text-align: center; padding: 2rem 1.4rem; }
.value-card .icon{
  width: 64px; height: 64px; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-light); border-radius: 50%;
  color: var(--green-dark);
}
.value-card .icon svg{ width: 30px; height: 30px; }

/* ---------------- Media embed (sermon video) ---------------- */
.media-frame{
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--dark);
}
.media-frame iframe{ position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------- Info strip / stats ---------------- */
.info-strip{
  display: flex; flex-wrap: wrap; gap: 2rem 3rem;
  padding: 2.2rem var(--gutter);
  background: var(--charcoal); color: var(--cream);
  border-radius: var(--radius-md);
}
.info-strip .item{ display: flex; gap: 0.9rem; align-items: flex-start; min-width: 200px; }
.info-strip .item .text{ display: block; }
.info-strip .item .label{ display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green); font-weight: 700; margin-bottom: 0.5em; line-height: 1; }
.info-strip .item .icon{ color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ---------------- Callout / CTA band ---------------- */
.callout{
  background: linear-gradient(135deg, var(--dark-olive), var(--charcoal));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: clamp(2.5rem, 6vw, 4rem);
  text-align: center;
}
.callout h2{ color: var(--white); }

/* ---------------- Tables (Beliefs / Give / bank details) ---------------- */
.def-list{ display: grid; grid-template-columns: 1fr; gap: 1rem; }
.def-list .row{ display: grid; grid-template-columns: 220px 1fr; gap: 1rem; padding: 0.9rem 0; border-bottom: 1px solid rgba(75,78,73,0.12); }
.def-list .row dt{ font-weight: 700; color: var(--sage); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
@media (max-width: 620px){ .def-list .row{ grid-template-columns: 1fr; gap: 0.2rem; } }

.tag-list{ display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag{ background: var(--green-light); color: var(--charcoal); padding: 0.4em 1em; border-radius: var(--radius-pill); font-size: 0.85rem; font-weight: 600; transition: background .18s ease; }
a.tag:hover{ background: var(--green); }

/* ---------------- Footer ---------------- */
.site-footer{ background: var(--dark); color: rgba(255,255,255,0.75); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer h4{ color: var(--white); font-family: var(--font-body); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 1rem; }
.site-footer a:hover{ color: var(--green); }
.footer-grid{ display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; }
@media (max-width: 900px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .footer-grid{ grid-template-columns: 1fr; } }
.footer-brand img{ height: 44px; margin-bottom: 1rem; }
.footer-brand p{ font-size: 0.92rem; max-width: 32ch; }
.footer-social{ display: flex; gap: 0.8rem; margin-top: 1.2rem; }
.footer-social a{
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center; transition: background .2s ease;
}
.footer-social a:hover{ background: var(--green); color: var(--dark); }
.footer-links li{ margin-bottom: 0.65rem; font-size: 0.92rem; }
.footer-bottom{
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.8rem;
  font-size: 0.82rem; color: rgba(255,255,255,0.5);
}

/* ---------------- Misc ---------------- */
.divider{ height: 1px; background: rgba(75,78,73,0.12); border: 0; margin: clamp(2.5rem,5vw,4rem) 0; }
.skip-link{
  position: absolute; left: -999px; top: 0; background: var(--charcoal); color: var(--white);
  padding: 0.8em 1.2em; border-radius: 0 0 8px 0; z-index: 999;
}
.skip-link:focus{ left: 0; }
.pill-badge{
  display: inline-flex; align-items: center; gap: 0.5em;
  background: var(--green-light); color: var(--charcoal);
  padding: 0.45em 1em; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 700;
}
.pill-badge .dot{ width: 8px; height: 8px; border-radius: 50%; background: #e35b5b; animation: pulse 1.6s infinite; }
@keyframes pulse{ 0%,100%{ opacity: 1; } 50%{ opacity: 0.35; } }

blockquote.scripture{
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--charcoal);
  border-left: 4px solid var(--green);
  padding-left: 1.3rem;
  margin: 0;
}
blockquote.scripture cite{ display:block; font-family: var(--font-body); font-style: normal; font-size: 0.85rem; color: var(--sage); margin-top: 0.6rem; font-weight: 600; }
