/* =====================================================
   PastorSite — Church Template
   Warm & Welcoming | Lora + Nunito
   WranglR / PastorSite Church Website Generator
   BEM: .ch- prefix for all template components
   ===================================================== */

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ch-font-body);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
address { font-style: normal; }
ul { list-style: none; }

/* ---- DESIGN TOKENS ---- */
:root {
  /* Brand colors — overridable by generator */
  --primary:        #6B2737;
  --primary-dark:   #4E1927;
  --primary-light:  #8B3547;
  --accent:         #C9882A;
  --accent-light:   #E8A84A;

  /* Neutral palette — derived from brand via color-mix for universal harmony.
     Base grays are true neutral so ANY brand color tints correctly. */
  --bg:             color-mix(in srgb, var(--primary) 3%, #F7F7F7);
  --bg-dark:        color-mix(in srgb, var(--primary) 12%, #141414);
  --bg-section:     color-mix(in srgb, var(--primary) 4%, #EFEFEF);
  --bg-dark-section:color-mix(in srgb, var(--primary) 8%, #1E1E1E);
  --surface:        color-mix(in srgb, var(--primary) 2%, #FFFFFF);
  --text:           color-mix(in srgb, var(--primary) 15%, #1A1A1A);
  --text-muted:     color-mix(in srgb, var(--primary) 10%, #6A6A6A);
  --text-on-dark:   color-mix(in srgb, var(--primary) 5%, #F0F0F0);
  --text-on-dark-muted: color-mix(in srgb, var(--primary) 8%, #A0A0A0);
  --border:         color-mix(in srgb, var(--primary) 6%, #E0E0E0);
  --border-dark:    color-mix(in srgb, var(--primary) 8%, #333333);

  /* Typography — overridable by generator */
  --ch-font-heading: 'Lora', Georgia, serif;
  --ch-font-body:    'Nunito', system-ui, sans-serif;

  /* Aliases (keep --font-heading and --font-body working in editor) */
  --font-heading: var(--ch-font-heading);
  --font-body:    var(--ch-font-body);

  /* Spacing */
  --section-gap:  7rem;
  --container:    1200px;

  /* Radii */
  --radius-sm:    6px;
  --radius-md:    12px;
  --radius-lg:    20px;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.07);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);

  /* Transitions */
  --transition: 0.22s ease;
}

/* ---- DARK MODE ---- */
[data-theme="dark"] {
  --bg:             color-mix(in srgb, var(--primary) 4%, #0C0C0C);
  --bg-dark:        color-mix(in srgb, var(--primary) 6%, #070707);
  --bg-section:     color-mix(in srgb, var(--primary) 3%, #111111);
  --bg-dark-section:color-mix(in srgb, var(--primary) 5%, #0E0E0E);
  --surface:        color-mix(in srgb, var(--primary) 3%, #161616);
  --text:           color-mix(in srgb, var(--primary) 5%, #EEEEEE);
  --text-muted:     color-mix(in srgb, var(--primary) 8%, #999999);
  --text-on-dark:   color-mix(in srgb, var(--primary) 5%, #EEEEEE);
  --text-on-dark-muted: color-mix(in srgb, var(--primary) 8%, #888888);
  --border:         color-mix(in srgb, var(--primary) 8%, #2A2A2A);
  --border-dark:    color-mix(in srgb, var(--primary) 10%, #222222);

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.25), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.3), 0 2px 6px rgba(0,0,0,0.2);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.35), 0 4px 12px rgba(0,0,0,0.25);
}

/* Dark theme: hero overlay lighter since bg is already dark */
[data-theme="dark"] .ch-hero__overlay {
  background: rgba(0, 0, 0, 0.35);
}

/* Dark theme: give section uses subtle gradient instead of bold primary */
[data-theme="dark"] .ch-give {
  background: linear-gradient(135deg,
    color-mix(in srgb, var(--primary) 25%, #111) 0%,
    color-mix(in srgb, var(--primary) 15%, #0A0A0A) 100%);
}

/* Dark theme: contact form matches dark surface */
[data-theme="dark"] .ch-visitor-form {
  background: var(--bg-dark-section);
  border-color: var(--border-dark);
}
[data-theme="dark"] .ch-form-row input,
[data-theme="dark"] .ch-form-row textarea {
  background: var(--bg-dark);
  border-color: var(--border-dark);
  color: var(--text);
}
[data-theme="dark"] .ch-form-row input:focus,
[data-theme="dark"] .ch-form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent);
}

/* Dark theme: social card images */
[data-theme="dark"] .ch-social-card__image {
  background: var(--bg-dark-section);
  border-bottom-color: var(--border-dark);
}
[data-theme="dark"] .ch-social-card {
  background: var(--bg-dark-section);
  border-color: var(--border-dark);
}

/* Dark theme: ministry & value cards */
[data-theme="dark"] .ch-ministry-card,
[data-theme="dark"] .ch-value-card {
  background: var(--bg-dark-section);
  border-color: var(--border-dark);
}

/* Dark theme: service items */
[data-theme="dark"] .ch-service-item {
  background: var(--bg-dark-section);
  border-color: var(--border-dark);
}

/* Dark theme: map placeholder */
[data-theme="dark"] .ch-map-placeholder {
  background: var(--bg-dark-section);
  border-color: var(--border-dark);
}

/* Dark theme: scrolled header uses dark blur */
[data-theme="dark"] .site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

/* Dark theme: nav links stay light (no dark-to-light transition needed) */
[data-theme="dark"] .site-header.scrolled .site-logo { color: var(--text-on-dark); }
[data-theme="dark"] .site-header.scrolled .site-nav a { color: var(--text-on-dark-muted); }
[data-theme="dark"] .site-nav a:hover,
[data-theme="dark"] .site-nav a:focus-visible {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

/* Dark theme: mobile nav overlay */
[data-theme="dark"] body.nav-open .site-nav {
  background: var(--bg);
}

/* ---- GRAIN OVERLAY ---- */
.grain-overlay {
  position: fixed;
  inset: -50%;
  width: 200%;
  height: 200%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%   { transform: translate(0,    0);    }
  10%  { transform: translate(-5%,  -10%); }
  20%  { transform: translate(-15%, 5%);   }
  30%  { transform: translate(7%,   -25%); }
  40%  { transform: translate(-5%,  25%);  }
  50%  { transform: translate(-15%, 10%);  }
  60%  { transform: translate(15%,  0%);   }
  70%  { transform: translate(0%,   15%);  }
  80%  { transform: translate(3%,   35%);  }
  90%  { transform: translate(-10%, 10%);  }
  100% { transform: translate(0,    0);    }
}

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}

/* ---- TYPOGRAPHY ---- */
h1, h2, h3 { font-family: var(--ch-font-heading); line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
p { color: var(--text-muted); }

.section-label {
  display: inline-block;
  font-family: var(--ch-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.section-heading {
  color: var(--text);
  margin-bottom: 1.2rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-family: var(--ch-font-body);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  line-height: 1;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 35%, transparent);
}
/* Ghost variant for dark backgrounds (hero) */
.btn-hero-ghost {
  background: transparent;
  color: rgba(255,255,255,0.88);
  border-color: rgba(255,255,255,0.4);
}
.btn-hero-ghost:hover, .btn-hero-ghost:focus-visible {
  border-color: rgba(255,255,255,0.85);
  color: #fff;
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover, .btn-outline:focus-visible {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---- SYNC BADGE (generic, not Instagram-specific) ---- */
.ch-sync-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--accent);
  white-space: nowrap;
}

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-block: 1rem;
  transition: background var(--transition), box-shadow var(--transition), padding var(--transition);
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding-block: 0.65rem;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 2rem;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--ch-font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-on-dark);
  z-index: 102;
  transition: color var(--transition);
}
.site-header.scrolled .site-logo {
  color: var(--text);
}
.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.logo-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-mark-sm {
  width: 30px;
  height: 30px;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  transition: all var(--transition);
}
.site-header.scrolled .site-nav a {
  color: var(--text-muted);
}
.site-nav a:hover, .site-nav a:focus-visible {
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 6%, transparent);
}
.site-nav .nav-cta {
  background: var(--primary);
  color: #fff;
  padding: 0.45rem 1.1rem;
}
.site-nav .nav-cta:hover, .site-nav .nav-cta:focus-visible {
  background: var(--primary-dark);
  color: #fff;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* =====================================================
   HERO — FULL-WIDTH CINEMATIC (LOCKED)
   ===================================================== */
.ch-hero {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background gradient — blends primary into dark neutrals */
.ch-hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--bg-dark) 45%, var(--bg-dark) 100%);
  background-size: cover;
  background-position: center;
}

.ch-hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.48);
  z-index: 1;
}

.ch-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 760px;
  padding: 9rem 2rem 6rem;
  margin-inline: auto;
}

.ch-hero__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.ch-hero__heading {
  font-family: var(--ch-font-heading);
  font-size: clamp(2.8rem, 6vw, 4.8rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 1.25rem;
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.ch-hero__tagline {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.82);
  margin-bottom: 2rem;
  line-height: 1.65;
}

.ch-hero__service-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 50px;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 2.25rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ch-hero__pill-icon {
  color: var(--accent-light);
  display: flex;
  align-items: center;
}

.ch-hero__actions {
  display: flex;
  gap: 0.85rem;
  justify-content: center;
  flex-wrap: wrap;
}

.ch-hero__scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  animation: scrollBounce 2.2s ease-in-out infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(7px); }
}

/* =====================================================
   SERVICE TIMES + LOCATION
   ===================================================== */
.ch-services {
  padding-block: var(--section-gap);
  background: var(--bg-section);
}
.ch-services__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
}
.ch-service-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.5rem; }
.ch-service-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}
.ch-service-day {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  width: 70px;
  flex-shrink: 0;
}
.ch-service-detail { display: flex; flex-direction: column; gap: 0.1rem; }
.ch-service-time {
  font-family: var(--ch-font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
}
.ch-service-name { font-size: 0.85rem; color: var(--text-muted); }

.ch-address {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
  margin-block: 1rem;
  line-height: 1.6;
}
.ch-address svg { color: var(--primary); margin-top: 3px; flex-shrink: 0; }
.ch-location-note { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 1.25rem; }
.ch-map-placeholder {
  aspect-ratio: 16/9;
  background: var(--border);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border: 2px dashed var(--border);
}

/* =====================================================
   WELCOME / PASTOR
   ===================================================== */
.ch-welcome {
  padding-block: var(--section-gap);
  background: var(--bg-dark);
}
.ch-welcome__grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5rem;
  align-items: center;
}
.ch-welcome__photo-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}
.ch-pastor-photo {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--bg-dark-section);
  border: 3px solid var(--border-dark);
  display: grid;
  place-items: center;
  color: var(--text-on-dark-muted);
  overflow: hidden;
}
.ch-pastor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ch-pastor-nameplate { text-align: center; }
.ch-pastor-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.ch-pastor-name {
  font-family: var(--ch-font-heading);
  font-size: 1.05rem;
  color: var(--text-on-dark);
  font-weight: 600;
  margin-top: 0.25rem;
}
.ch-welcome__text .section-label { color: var(--accent); }
.ch-welcome__text .section-heading { color: var(--text-on-dark); }
.ch-welcome__message {
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  font-style: italic;
}
.ch-welcome__text .btn-outline {
  color: var(--accent);
  border-color: var(--accent);
}
.ch-welcome__text .btn-outline:hover {
  background: var(--accent);
  color: var(--bg-dark);
}

/* =====================================================
   WHAT WE BELIEVE
   ===================================================== */
.ch-believe {
  padding-block: var(--section-gap);
  background: var(--bg);
}
.ch-believe__inner {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}
.ch-believe__heading { margin-bottom: 1rem; }
.ch-believe__body {
  font-size: 1.1rem;
  line-height: 1.85;
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}
.ch-believe__values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ch-value-card {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.ch-value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ch-value-icon {
  width: 56px;
  height: 56px;
  background: color-mix(in srgb, var(--primary) 8%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  color: var(--primary);
}
.ch-value-card h3 {
  font-family: var(--ch-font-heading);
  color: var(--text);
  margin-bottom: 0.5rem;
}
.ch-value-card p { font-size: 0.92rem; }

/* =====================================================
   SOCIAL FEED
   ===================================================== */
.ch-social {
  padding-block: var(--section-gap);
  background: var(--bg-section);
}
.ch-social__header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.ch-social__header-row .section-heading { margin-bottom: 0; }
.ch-social__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ch-social-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
}
.ch-social-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.ch-social-card__image {
  aspect-ratio: 4/3;
  background: var(--bg-section);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}
.ch-social-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ch-social-card__body { padding: 1.25rem; }
.ch-social-card__text {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}
.ch-social-card__date {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* =====================================================
   EVENTS
   ===================================================== */
.ch-events {
  padding-block: var(--section-gap);
  background: var(--bg-dark);
}
.ch-events__header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.ch-events .section-heading,
.ch-events__header-row .section-heading { color: var(--text-on-dark); margin-bottom: 0; }
.ch-events .section-label { color: var(--accent); }
.ch-events__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ch-event-card {
  background: var(--bg-dark-section);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: flex;
  gap: 1.25rem;
  transition: transform var(--transition), border-color var(--transition);
}
.ch-event-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}
.ch-event-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  flex-shrink: 0;
  width: 48px;
  padding-top: 2px;
}
.ch-event-month {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  line-height: 1;
}
.ch-event-day {
  font-family: var(--ch-font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1;
}
.ch-event-title {
  font-family: var(--ch-font-heading);
  color: var(--text-on-dark);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.ch-event-meta {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
  letter-spacing: 0.04em;
}
.ch-event-desc { font-size: 0.88rem; color: var(--text-on-dark-muted); line-height: 1.6; }

/* =====================================================
   MINISTRIES
   ===================================================== */
.ch-ministries {
  padding-block: var(--section-gap);
  background: var(--bg);
}
.ch-ministries__header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
}
.ch-ministries__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 0.5rem;
}
.ch-ministries__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.ch-ministry-card {
  padding: 2rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.ch-ministry-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--primary) 20%, transparent);
}
.ch-ministry-icon {
  width: 64px;
  height: 64px;
  background: color-mix(in srgb, var(--primary) 7%, transparent);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1.25rem;
  color: var(--primary);
}
.ch-ministry-name {
  font-family: var(--ch-font-heading);
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.65rem;
}
.ch-ministry-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  margin-bottom: 1.25rem;
}
.ch-ministry-link {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--primary);
  transition: color var(--transition);
}
.ch-ministry-link:hover { color: var(--primary-dark); }

/* =====================================================
   GIVE
   ===================================================== */
.ch-give {
  padding-block: 5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}
.ch-give__inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.ch-give__icon {
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.85);
  flex-shrink: 0;
}
.ch-give__text { flex: 1; min-width: 240px; }
.ch-give__text .section-label { color: rgba(255,255,255,0.65); }
.ch-give__heading { color: #fff; margin-bottom: 0.5rem; }
.ch-give__text p { color: rgba(255,255,255,0.75); }
.ch-give__actions { display: flex; flex-direction: column; align-items: flex-start; gap: 0.6rem; flex-shrink: 0; }
.btn-give {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-dark);
  font-size: 1rem;
  padding: 0.9rem 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 50px;
  font-family: var(--ch-font-body);
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid var(--accent);
  line-height: 1;
  text-decoration: none;
}
.btn-give:hover {
  background: var(--accent-light);
  border-color: var(--accent-light);
  color: var(--bg-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.25);
}
.ch-give__note { font-size: 0.75rem; color: rgba(255,255,255,0.55); }

/* =====================================================
   CONTACT / NEW HERE
   ===================================================== */
.ch-contact {
  padding-block: var(--section-gap);
  background: var(--bg-section);
}
.ch-contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: start;
}
.ch-contact__text p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  line-height: 1.7;
}
.ch-contact__perks { display: flex; flex-direction: column; gap: 0.75rem; }
.ch-contact__perks li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}
.ch-contact__perks li svg { color: var(--primary); flex-shrink: 0; }

.ch-visitor-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.ch-form-row { display: flex; flex-direction: column; gap: 0.4rem; }
.ch-form-row label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.03em;
}
.ch-form-row input,
.ch-form-row textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--ch-font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.ch-form-row input:focus,
.ch-form-row textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent);
}
.ch-form-row textarea { resize: vertical; min-height: 80px; }
.ch-form-note { font-size: 0.78rem; text-align: center; color: var(--text-muted); margin-top: -0.5rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.ch-footer {
  background: var(--bg-dark);
  padding-top: 4rem;
  padding-bottom: 2rem;
}
.ch-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-dark);
  margin-bottom: 2rem;
}
.ch-footer__logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--ch-font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-on-dark);
  margin-bottom: 0.75rem;
}
.ch-footer__tagline { font-size: 0.88rem; color: var(--text-on-dark-muted); }
.ch-footer__grid h3 {
  font-family: var(--ch-font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.ch-footer__info p, .ch-footer__schedule p {
  font-size: 0.9rem;
  color: var(--text-on-dark-muted);
  line-height: 1.7;
}
.ch-footer__info a:hover { color: var(--accent); }
.ch-social-links { display: flex; gap: 0.75rem; }
.ch-social-link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-dark);
  display: grid;
  place-items: center;
  color: var(--text-on-dark-muted);
  transition: all var(--transition);
}
.ch-social-link:hover, .ch-social-link:focus-visible {
  border-color: var(--accent);
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.ch-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  flex-wrap: wrap;
  gap: 0.5rem;
}
.ch-footer__powered a { color: var(--accent); font-weight: 600; }
.ch-footer__powered a:hover { text-decoration: underline; }

/* =====================================================
   SCROLL REVEAL ANIMATIONS
   ===================================================== */
.reveal-ready {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-ready.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Active nav link */
.site-nav a.active { color: var(--primary); }

/* =====================================================
   MOBILE NAV OPEN STATE
   ===================================================== */
body.nav-open .site-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--bg);
  padding: 6rem 2rem 3rem;
  gap: 0.5rem;
  z-index: 99;
  align-items: flex-start;
}
body.nav-open .site-nav a {
  font-size: 1.3rem;
  padding: 0.75rem 1rem;
  width: 100%;
  color: var(--text);
}
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1100px) {
  .ch-ministries__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .ch-services__grid { grid-template-columns: 1fr; gap: 3rem; }
  .ch-welcome__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .ch-welcome__photo-wrap { flex-direction: row; align-items: center; gap: 1.5rem; }
  .ch-pastor-nameplate { text-align: left; }
  .ch-believe__values { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .ch-social__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .ch-events__grid { grid-template-columns: 1fr; }
  .ch-contact__grid { grid-template-columns: 1fr; gap: 3rem; }
  .ch-give__inner { flex-direction: column; text-align: center; }
  .ch-give__actions { align-items: center; }
  .ch-footer__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  :root { --section-gap: 5rem; }
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .ch-footer__grid { grid-template-columns: 1fr; }
  .ch-visitor-form { padding: 1.75rem; }
  .ch-ministries__grid { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
  .ch-hero__content { padding: 8rem 1.5rem 5rem; }
}

@media (max-width: 480px) {
  .container { padding-inline: 1.25rem; }
  .ch-hero__actions { flex-direction: column; align-items: stretch; }
  .ch-hero__actions .btn { justify-content: center; }
  .ch-social__header-row { flex-direction: column; align-items: flex-start; }
  .ch-events__header-row { flex-direction: column; align-items: flex-start; }
}
