﻿/* ==========================================================================
   Emmanuel Christian Center â€” Design System
   Editorial black &amp; gold on white. Contextual CSS variables: every
   section carries a background class (default white, .bg-alt, .bg-dark,
   .bg-gold, .bg-black-gold) and re-declares --text-primary / --text-muted /
   --heading-color / --heading-fill / --accent-gold / card + button tokens
   for its own subtree, so every heading, link, card and button inside it
   automatically resolves to a contrast-safe color for that background.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@600;700&family=Poppins:wght@400;500;600&display=swap');

:root{
  /* ---- literal brand palette (fixed, non-contextual) ---- */
  --white:      #FFFFFF;
  --off-white:  #FAF8F4;
  --black:      #0A0A0A;
  --gold:       #C9A84C;
  --gold-light: #E8C97A;
  --gold-dark:  #9A7230;
  --gold-gradient:       linear-gradient(135deg, #C9A84C, #E8C97A, #9A7230);
  --gold-black-gradient: linear-gradient(135deg, #C9A84C 0%, #1C1C1C 60%, #0A0A0A 100%);

  /* ---- page chrome ---- */
  --bg: var(--white);

  /* ---- contextual text/heading tokens â€” LIGHT (default) context ---- */
  --text-primary:  #1A1A1A;
  --text-muted:    #6B675C;
  --heading-color: #0A0A0A;
  --heading-fill:  linear-gradient(120deg, #9A7230 0%, #0A0A0A 45%, #1C1C1C 70%, #C9A84C 100%);
  --accent-gold:   var(--gold-dark);
  --hairline:      rgba(201,168,76,0.25);

  /* ---- contextual card tokens â€” LIGHT context ---- */
  --card-bg:            var(--white);
  --card-border:        rgba(10,10,10,0.08);
  --card-border-hover:  var(--gold);
  --card-shadow-hover:  0 16px 40px rgba(10,10,10,0.12), 0 0 24px rgba(201,168,76,0.28);

  /* ---- contextual button tokens â€” LIGHT context ---- */
  --btn-primary-bg:           var(--black);
  --btn-primary-text:         var(--gold);
  --btn-primary-border:       var(--gold);
  --btn-primary-hover-bg:     var(--gold-black-gradient);
  --btn-primary-hover-text:   #FFFFFF;
  --btn-primary-hover-shadow: 0 4px 20px rgba(201,168,76,0.45);
  --btn-secondary-text:       #0A0A0A;
  --btn-secondary-border:     var(--gold);
  --btn-secondary-hover-bg:   var(--gold);
  --btn-secondary-hover-text: #0A0A0A;

  /* ---- contextual form-field tokens â€” LIGHT context ---- */
  --field-bg:          #FFFFFF;
  --field-border:       rgba(10,10,10,0.16);
  --field-text:        #0A0A0A;
  --field-placeholder: #8a867e;

  --font-hero:  "Playfair Display", Georgia, serif;
  --font-head:  "Playfair Display", Georgia, serif;
  --font-body:  "Poppins", -apple-system, sans-serif;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-6: 48px;
  --space-8: 64px;
  --container-max: 1280px;

  --radius: 8px;
  --radius-lg: 12px;

  --shadow-1: 0 8px 20px rgba(10,10,10,0.08);
  --shadow-3: 0 24px 60px rgba(10,10,10,0.18);

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-btn: 300ms ease;
}

/* ---------- DARK context: solid-black / black-gold sections, photo heroes, footer ---------- */
/* Dark-photo context — reserved for real dark surfaces: hero/page-hero photo
   overlays, the one CTA banner that sits on a dark photo (.bg-dark + .photo-bg),
   and the footer, which stays solid black by design. Plain flat "dark" section
   backgrounds were retired in favor of the light beige/gold context below. */
.bg-dark, .hero, .page-hero, .site-footer{
  /* re-declare color here (not just the --text-primary token) â€” a child element
     with no color rule of its own (a plain <li>, <dd>, <span>) inherits the
     COMPUTED value from its nearest ancestor, not a live var() lookup, so the
     token alone won't fix stray text sitting inside a dark section. */
  color: #F0EDE8;
  --text-primary:  #F0EDE8;
  --text-muted:    #C9C4B8;
  --heading-color: var(--gold-light);
  --heading-fill:  var(--gold-gradient);
  --accent-gold:   var(--gold);
  --hairline:      rgba(201,168,76,0.3);

  --card-bg:           #5A554D;
  --card-border:       rgba(201,168,76,0.2);
  --card-border-hover: var(--gold);
  --card-shadow-hover: 0 16px 40px rgba(0,0,0,0.45), 0 0 32px rgba(201,168,76,0.4);

  --btn-primary-bg:           var(--gold-gradient);
  --btn-primary-text:         #0A0A0A;
  --btn-primary-border:       transparent;
  --btn-primary-hover-bg:     linear-gradient(135deg, #E8C97A, #C9A84C 60%, #E8C97A);
  --btn-primary-hover-text:   #0A0A0A;
  --btn-primary-hover-shadow: 0 4px 20px rgba(201,168,76,0.45);
  --btn-secondary-text:       var(--gold);
  --btn-secondary-border:     var(--gold);
  --btn-secondary-hover-bg:   var(--gold);
  --btn-secondary-hover-text: #0A0A0A;

  --field-bg:          #5A554D;
  --field-border:      rgba(201,168,76,0.28);
  --field-text:        #F0EDE8;
  --field-placeholder: #8f8b80;
}

/* ---------- GOLD context: gold-gradient spotlight sections, plus the light
   beige/gold sections (.bg-beige, .bg-beige-gold) that replaced flat dark
   ones — all of them are light backgrounds, so they share the same dark-text
   treatment. ---------- */
.bg-gold, .bg-gold-multi, .bg-beige, .bg-beige-gold{
  color: #0A0A0A;
  --text-primary:  #0A0A0A;
  --text-muted:    rgba(10,10,10,0.72);
  --heading-color: #0A0A0A;
  --heading-fill:  #0A0A0A;
  --accent-gold:   #0A0A0A;
  --hairline:      rgba(10,10,10,0.25);

  --card-bg:           #FFFFFF;
  --card-border:       rgba(10,10,10,0.12);
  --card-border-hover: #0A0A0A;
  --card-shadow-hover: 0 16px 40px rgba(10,10,10,0.22);

  --btn-primary-bg:           #0A0A0A;
  --btn-primary-text:         var(--gold);
  --btn-primary-border:       transparent;
  --btn-primary-hover-bg:     #1C1C1C;
  --btn-primary-hover-text:   #FFFFFF;
  --btn-primary-hover-shadow: 0 4px 20px rgba(10,10,10,0.35);
  --btn-secondary-text:       #0A0A0A;
  --btn-secondary-border:     #0A0A0A;
  --btn-secondary-hover-bg:   #0A0A0A;
  --btn-secondary-hover-text: var(--gold);

  --field-bg:          #FFFFFF;
  --field-border:      rgba(10,10,10,0.22);
  --field-text:        #0A0A0A;
  --field-placeholder: rgba(10,10,10,0.5);
}

*, *::before, *::after{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  margin: 0;
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; transition: color var(--ease-btn); }
ul{ list-style: none; margin: 0; padding: 0; }
button{ font-family: inherit; cursor: pointer; }
input, textarea, select{ font-family: inherit; font-size: 16px; }

h1, h2, h3, h4{ margin: 0; font-weight: 700; color: var(--heading-color); }
h1, h2, h3{
  background: var(--heading-fill);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1{
  font-family: var(--font-hero); font-size: clamp(32px, 6vw, 76px); line-height: 1.12; font-weight: 700;
  /* hero headings only ever sit on dark photo/solid hero backgrounds, so this
     white-gold sweep is fixed rather than tied to the contextual token.
     background-image (not the `background` shorthand) â€” the shorthand resets
     background-clip to border-box, which silently breaks the text-clip effect
     and paints a solid rectangle instead of clipping to the letters. */
  background-image: linear-gradient(120deg, #FFFFFF 0%, #F0EDE8 18%, #E8C97A 42%, #C9A84C 60%, #FFFFFF 80%, #E8C97A 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
h2{
  font-family: var(--font-head); font-size: clamp(26px, 4vw, 46px); line-height: 1.3; letter-spacing: -0.01em;
}
h3{ font-family: var(--font-head); font-size: clamp(19px, 2.4vw, 26px); line-height: 1.35; }
p{ margin: 0; color: var(--text-primary); }
.lede{ font-size: clamp(16px, 1.6vw, 19px); color: var(--text-muted); line-height: 1.7; }

.eyebrow{
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-gold);
  margin-bottom: var(--space-2);
}

.container{
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 768px){ .container{ padding: 0 40px; } }
@media (min-width: 1200px){ .container{ padding: 0 80px; } }

/* No background here on purpose â€” body is already white, and a plain
   .section needs to stay transparent so it can be nested inside a
   gradient wrapper (e.g. .bg-black-gold) without painting over it. */
.section{ padding: 44px 0; }
@media (min-width: 768px){ .section{ padding: 64px 0; } }
@media (min-width: 1200px){ .section{ padding: 88px 0; } }
.section-tight{ padding: 32px 0; }
@media (min-width: 768px){ .section-tight{ padding: 44px 0; } }

.section-head{ max-width: 720px; margin: 0 0 var(--space-4); }
.section-head.center{ margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2{ margin-top: var(--space-2); }
.section-head p{ margin-top: var(--space-3); color: var(--text-muted); }


hr.hairline{ border: none; border-top: 1px solid var(--hairline); margin: var(--space-6) 0; }

/* ---------- Buttons ---------- */
.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.3px;
  border: 1px solid transparent;
  min-height: 44px;
  transition: transform var(--ease-btn), box-shadow var(--ease-btn), background var(--ease-btn), color var(--ease-btn), border-color var(--ease-btn);
  white-space: nowrap;
}
.btn-primary{
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-border);
}
.btn-primary:hover{
  transform: translateY(-1px);
  box-shadow: var(--btn-primary-hover-shadow);
  background: var(--btn-primary-hover-bg);
  color: var(--btn-primary-hover-text);
}
.btn-secondary{
  background: transparent;
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
}
.btn-secondary:hover{
  background: var(--btn-secondary-hover-bg);
  color: var(--btn-secondary-hover-text);
}
.btn-ghost{
  background: transparent;
  color: var(--btn-secondary-text);
  border-color: var(--btn-secondary-border);
  padding: 10px 20px;
}
.btn-ghost:hover{
  background: var(--btn-secondary-hover-bg);
  color: var(--btn-secondary-hover-text);
}
/* Gold-on-gold section button â€” a plain black or gold-gradient primary button
   both read poorly here, so this pairs a richer solid gold with a black
   border for definition against the section's own soft gold blend. */
.btn-primary.btn-on-gold{
  background: #0A0A0A;
  color: #FFFFFF;
  border-color: #0A0A0A;
}
.btn-primary.btn-on-gold:hover{
  background: #1C1C1C;
  color: #FFFFFF;
  border-color: #1C1C1C;
  box-shadow: 0 4px 20px rgba(10,10,10,0.4);
}
.btn-block{ width: 100%; }
.btn-row{ display: flex; flex-wrap: wrap; gap: var(--space-2); }
/* Keep a two-button row on one line on narrow phones instead of stacking —
   smaller padding/type buys back just enough width, and min-width:0 lets a
   button shrink past its own content width in the rare case it still needs
   to (flex items default to a min-width equal to their content, which is
   exactly what forces the wrap in the first place). */
@media (max-width: 420px){
  .btn-row:not(.btn-row-wrap){ flex-wrap: nowrap; }
  .btn-row:not(.btn-row-wrap) .btn{
    flex: 1 1 auto;
    min-width: 0;
    padding: 11px 14px;
    font-size: 13px;
  }
}

/* ---------- Nav â€” white, gold bottom border ---------- */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.32) 0%, rgba(0,0,0,0.08) 70%, rgba(0,0,0,0) 100%);
  transition: background 300ms var(--ease), padding 250ms var(--ease), box-shadow 250ms var(--ease), transform 300ms var(--ease);
  --nav-text: #F5F1E8;
  --nav-text-hover: #E8C97A;
  --nav-toggle-border: rgba(245,241,232,0.4);
}
.site-nav.solid{
  padding: 10px 0;
  background: var(--white);
  box-shadow: var(--shadow-1);
  --nav-text: #0A0A0A;
  --nav-text-hover: #9A7230;
  --nav-toggle-border: rgba(10,10,10,0.15);
}
.site-nav.nav-hidden{ transform: translateY(-100%); }
.nav-inner{ display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); }
.nav-brand{ display: flex; align-items: center; gap: 12px; font-family: var(--font-hero); font-size: 20px; color: var(--nav-text); flex-shrink: 0; transition: color 300ms var(--ease); }
.nav-brand img{ height: 68px; width: auto; transition: height 250ms var(--ease); }
.site-nav.solid .nav-brand img{ height: 56px; }
.nav-links{ display: none; align-items: center; gap: 32px; }
.nav-links > li{ position: relative; }
.nav-links > li > a, .nav-links > li > button.nav-top-link{
  position: relative;
  font-size: 14px; font-weight: 500; letter-spacing: 0.3px;
  padding: 8px 2px; background: none; border: none; color: var(--nav-text);
  display: flex; align-items: center; gap: 6px;
  transition: color 300ms var(--ease);
}
.nav-links > li > a::after, .nav-links > li > button.nav-top-link::after{
  content: ""; position: absolute; left: 2px; right: 100%; bottom: 2px;
  height: 2px; background: var(--gold);
  transition: right var(--ease-btn);
}
.nav-links > li > a:hover, .nav-links > li > button.nav-top-link:hover{ color: var(--nav-text-hover); }
.nav-links > li > a:hover::after, .nav-links > li > button.nav-top-link:hover::after,
.nav-links > li.active > a::after{ right: 2px; }
.nav-links > li.active > a{ color: var(--nav-text-hover); }
.nav-cta{ display: none; }
.nav-cta .btn-primary, .mobile-menu .nav-cta .btn-primary{
  background: var(--gold-gradient);
  color: #0A0A0A;
  border-color: transparent;
}
.nav-cta .btn-primary:hover, .mobile-menu .nav-cta .btn-primary:hover{
  background: linear-gradient(135deg, #E8C97A, #C9A84C 60%, #E8C97A);
  color: #0A0A0A;
  box-shadow: 0 4px 20px rgba(201,168,76,0.45);
}
.nav-caret{ width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 200ms var(--ease); }
.has-dropdown:hover .nav-caret, .has-dropdown.open .nav-caret{ transform: rotate(225deg) translateY(2px); }

.dropdown-panel{
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: var(--white);
  border: 1px solid rgba(10,10,10,0.08);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease), visibility 200ms;
}
.has-dropdown:hover .dropdown-panel, .has-dropdown.open .dropdown-panel{
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-panel a{
  display: block; padding: 10px 14px; border-radius: 6px; font-size: 14px; color: #0A0A0A;
}
.dropdown-panel a:hover{ background: rgba(201,168,76,0.1); color: var(--gold-dark); }

.nav-toggle{
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 1px solid var(--nav-toggle-border); border-radius: 6px;
  background: transparent; flex-shrink: 0;
  transition: border-color 300ms var(--ease);
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after{ display:none; }
.nav-toggle svg{ width: 20px; height: 20px; color: var(--nav-text); transition: color 300ms var(--ease); }

@media (min-width: 1024px){
  .nav-links{ display: flex; }
  .nav-cta{ display: inline-flex; }
  .nav-toggle{ display: none; }
}

/* mobile menu â€” white panel */
.mobile-menu{
  position: fixed; inset: 0; z-index: 110;
  background: rgba(10,10,10,0.5);
  opacity: 0; visibility: hidden; transition: opacity 250ms var(--ease), visibility 250ms;
}
.mobile-menu.open{ opacity: 1; visibility: visible; }
.mobile-menu-panel{
  position: absolute; top: 0; right: 0; height: 100%; width: min(340px, 88vw);
  background: var(--white); box-shadow: var(--shadow-3);
  padding: 24px; overflow-y: auto;
  transform: translateX(100%); transition: transform 300ms var(--ease);
}
.mobile-menu.open .mobile-menu-panel{ transform: translateX(0); }
.mobile-menu-head{ display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--space-4); }
.mobile-close{ width: 40px; height: 40px; border-radius: 6px; border: 1px solid rgba(10,10,10,0.15); background: transparent; display: flex; align-items: center; justify-content: center; }
.mobile-close svg{ width: 18px; height: 18px; color: #0A0A0A; }
.mobile-menu-links > li{ border-bottom: 1px solid rgba(10,10,10,0.1); }
.mobile-menu-links > li > a, .mobile-menu-links > li > button{
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; text-align: left; background: none; border: none; color: #0A0A0A;
  padding: 16px 4px; font-size: 16px; font-weight: 500;
  min-height: 44px;
}
.mobile-menu-links > li > a:hover, .mobile-menu-links > li > button:hover{ color: var(--gold-dark); }
.mobile-submenu{ max-height: 0; overflow: hidden; transition: max-height 300ms var(--ease); }
.mobile-submenu.open{ max-height: 500px; }
.mobile-submenu a{ display: block; padding: 12px 4px 12px 16px; color: #514E46; font-size: 15px; }
.mobile-submenu a:hover{ color: var(--gold-dark); }
.mobile-caret{ width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 200ms var(--ease); }
.mobile-submenu-toggle.open .mobile-caret{ transform: rotate(-135deg); }
.mobile-menu .nav-cta{ display: flex; margin-top: var(--space-3); }

/* ---------- Hero (dark context â€” photo with strong dark overlay) ---------- */
.hero{
  position: relative;
  min-height: 68vh;
  display: flex;
  align-items: center;
  padding: 140px 0 56px;
  isolation: isolate;
  background: #4A4640;
}
.slideshow{ position: absolute; inset: 0; z-index: -2; }
.slide{
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.4s ease;
}
.slide.active{ opacity: 1; }
@media (max-width: 640px){
  .hero{ min-height: 100vh; align-items: flex-end; padding: 110px 0 48px; }
  .slide{ background-position: 65% center; }
}
.hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.5) 100%);
  z-index: -1;
}
.hero::after{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(201,168,76,0.2), transparent 55%);
  animation: glow-pulse 10s ease-in-out infinite;
  z-index: -1;
}
@keyframes glow-pulse{
  0%, 100%{ opacity: 0.6; }
  50%{ opacity: 1; }
}
@media (prefers-reduced-motion: reduce){
  .hero::after{ animation: none; }
}
.hero-content{ max-width: 700px; text-align: left; margin-left: 0; margin-right: auto; }
.hero-content .eyebrow{ opacity: 0; animation: fade-up 600ms var(--ease) forwards; margin-bottom: 10px; }
.hero-content h1{
  font-family: var(--font-head); font-size: clamp(24px, 3.2vw, 38px); line-height: 1.22;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden;
  opacity: 0; animation: fade-up 600ms var(--ease) 80ms forwards;
}
.hero-content .lede{
  opacity: 0; animation: fade-up 600ms var(--ease) 160ms forwards; margin-top: 12px;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden;
  font-size: clamp(14px, 1.1vw, 16px);
}
.hero-content .btn-row{ opacity: 0; animation: fade-up 600ms var(--ease) 240ms forwards; margin-top: var(--space-3); }
.hero-meta{ opacity: 0; animation: fade-up 600ms var(--ease) 320ms forwards; margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-3); }
.hero-meta-item{ font-size: 14px; color: var(--text-muted); display: flex; align-items: center; gap: 8px; }
.hero-meta-item strong{ color: var(--text-primary); font-weight: 600; }
.hero-meta-item svg{ width: 16px; height: 16px; color: var(--gold); flex-shrink: 0; }
@media (max-width: 640px){
  .hero-content h1{ font-size: clamp(21px, 6vw, 26px); }
  .hero-content .lede{ font-size: 14px; }
  .hero-meta-item{ font-size: 12.5px; }
}

.page-hero{
  position: relative;
  padding: 160px 0 64px;
  background-size: cover;
  background-position: center;
  background-color: #4A4640;
  isolation: isolate;
}
.page-hero::before{
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.5) 100%);
  z-index: -1;
}
.page-hero.no-image::before{ background: #4A4640; }
.page-hero h1{ font-size: clamp(30px, 5vw, 54px); }
.breadcrumb{ font-size: 13px; color: var(--text-muted); margin-bottom: var(--space-2); letter-spacing: 0.3px; }
.breadcrumb a:hover{ color: var(--gold); }

/* ---------- Cards ---------- */
.card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-1);
  padding: var(--space-3);
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  /* clip-path as the real clip (robust under a moving/scaling layer),
     overflow:hidden kept only as a fallback for browsers without it.
     isolation + a standing (identity) transform keep this element on its
     own compositor layer at all times — without it, Chrome/Safari only
     promote it to a layer once the hover transform kicks in, and that
     layer swap can re-rasterize an overflow-clip a hair off from the
     border-radius (top corners go square, untouched bottom stays round). */
  clip-path: inset(0 round var(--radius-lg));
  isolation: isolate;
  transform: translateZ(0);
  transition: transform var(--ease-btn), box-shadow var(--ease-btn), border-color var(--ease-btn), background var(--ease-btn);
}
.card-link{ display: block; }
.card-link:hover .card, a.card:hover{
  border-color: var(--card-border-hover);
  transform: translateY(-4px) translateZ(0);
  box-shadow: var(--card-shadow-hover);
}
.card img{
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  margin: calc(var(--space-3) * -1) calc(var(--space-3) * -1) var(--space-2);
  width: calc(100% + var(--space-3) * 2);
  max-width: none;
  aspect-ratio: 3/2; object-fit: cover;
  overflow: hidden;
  /* same standing-transform trick as .card — this is a second element
     that changes its own transform on hover (the zoom below), so it
     needs to already be on its own layer beforehand too. */
  transform: translateZ(0) scale(1);
  transition: transform 500ms var(--ease);
}
.card-link:hover .card img{ transform: translateZ(0) scale(1.06); }
.card h3{ margin-bottom: 4px; }
.card-subtitle{ display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; color: var(--accent-gold); margin-bottom: 8px; }
.card-badge{
  display: inline-block; align-self: flex-start;
  background: var(--gold-gradient);
  color: #0A0A0A; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 5px 12px; border-radius: 100px; margin-bottom: var(--space-2);
}
.card p{ color: var(--text-muted); font-size: 15px; flex-grow: 1; }
.card .btn, .card .btn-ghost{ margin-top: var(--space-2); align-self: flex-start; }
.card-arrow-link{
  display: inline-flex; align-items: center; gap: 6px; margin-top: var(--space-2);
  color: var(--accent-gold); font-size: 13px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase;
  text-decoration: underline; text-underline-offset: 4px; align-self: flex-start;
  transition: gap 200ms var(--ease);
}
.card-link:hover .card-arrow-link{ gap: 10px; }

/* ---------- Focus cards (About: Where We Serve) ---------- */
.focus-card{
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: var(--space-4);
  text-align: center;
  transition: transform var(--ease-btn), box-shadow var(--ease-btn), border-color var(--ease-btn);
}
.focus-card:hover{ transform: translateY(-6px); box-shadow: var(--card-shadow-hover); border-color: var(--card-border-hover); }
.focus-card h3{ margin-bottom: 8px; }
.focus-card p{ color: var(--text-muted); font-size: 14px; }

.grid{ display: grid; gap: var(--space-4); grid-template-columns: 1fr; }
@media (min-width: 640px){ .grid-2{ grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px){
  .grid-3{ grid-template-columns: repeat(3, 1fr); }
  .grid-4{ grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Carousel (ministries etc.) â€” contained, next card peeking at the edge ---------- */
.carousel-track{
  display: flex;
  gap: var(--space-2);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 4px 4px 8px;
  scrollbar-width: none;
}
@media (min-width: 640px){ .carousel-track{ gap: var(--space-4); } }
.carousel-track::-webkit-scrollbar{ display: none; }
/* A clearer peek of the next card on mobile, not a dead gap of background. */
.carousel-track > .card-link{ scroll-snap-align: start; flex: 0 0 80%; }
@media (min-width: 640px){ .carousel-track > .card-link{ flex: 0 0 47%; } }
@media (min-width: 1024px){ .carousel-track > .card-link{ flex: 0 0 31.5%; } }
.carousel-dots{ display: flex; justify-content: center; gap: 10px; margin-top: var(--space-4); }
.carousel-dot{
  width: 9px; height: 9px; border-radius: 50%; background: rgba(10,10,10,0.18); border: none; padding: 0;
  transition: background 200ms var(--ease), transform 200ms var(--ease);
}
.carousel-dot.active{ background: var(--gold); transform: scale(1.3); }

.split{ display: grid; gap: var(--space-6); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 900px){
  .split{ grid-template-columns: 1fr 1fr; }
  .split.reverse > *:first-child{ order: 2; }
}
.split img{ border-radius: var(--radius-lg); box-shadow: var(--shadow-1); width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }

/* ---------- CTA banner ---------- */
.cta-banner{
  background: var(--off-white);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-4);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner.bg-dark{ border-color: rgba(201,168,76,0.3); }
.cta-banner.bg-gold, .cta-banner.bg-beige, .cta-banner.bg-beige-gold{ border: none; }
.cta-banner::before{
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(201,168,76,0.12), transparent 60%);
}
.cta-banner > *{ position: relative; }
.cta-banner .btn-row{ justify-content: center; margin-top: var(--space-4); }

/* ---------- Info strip (service times etc) ---------- */
.info-strip{
  background: var(--off-white);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: var(--space-3) 0;
}
.info-strip .container{ display: flex; flex-wrap: wrap; gap: var(--space-4); justify-content: center; }
.info-strip-item{ display: flex; align-items: center; gap: 10px; font-size: 14px; color: #1A1A1A; }
.info-strip-item strong{ color: var(--gold-dark); font-weight: 600; }
.info-strip-item svg{ width: 16px; height: 16px; color: var(--gold-dark); flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-grid{ display: grid; gap: var(--space-3); grid-template-columns: 1fr; }
@media (min-width: 640px){ .form-grid.cols-2{ grid-template-columns: 1fr 1fr; } }
.field label{ display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.3px; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field textarea, .field select{
  width: 100%;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  border-radius: var(--radius);
  padding: 13px 16px;
  color: var(--field-text);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.field input::placeholder, .field textarea::placeholder{ color: var(--field-placeholder); }
.field input:focus, .field textarea:focus, .field select:focus{
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.3);
}
.field textarea{ resize: vertical; min-height: 130px; }
.field-note{ font-size: 13px; color: var(--text-muted); margin-top: var(--space-1); }
.form-actions{ margin-top: var(--space-2); }

/* ---------- Video block (native controls, no autoplay, no loop) ---------- */
.video-frame{
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  background: #000;
}
.video-frame video{ width: 100%; height: auto; max-height: 70vh; display: block; }

.video-caption{ font-size: 13px; color: var(--text-muted); margin-top: var(--space-2); text-align: center; }

/* ---------- Image marquee ---------- */
.marquee{ overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee.marquee-full{ width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); -webkit-mask-image: none; mask-image: none; }
.marquee-track{ display: flex; gap: var(--space-3); width: max-content; animation: marquee-scroll 32s linear infinite; }
.marquee.marquee-full .marquee-track{ gap: var(--space-2); padding: 0 var(--space-2); }
.marquee-frame{
  display: inline-flex; flex-shrink: 0; padding: 3px;
  border-radius: calc(var(--radius-lg) + 3px);
  background: var(--gold-gradient);
}
.marquee-track img{ height: 220px; width: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-1); display: block; }
@keyframes marquee-scroll{ from{ transform: translateX(0); } to{ transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce){ .marquee-track{ animation: none; overflow-x: auto; } }

/* ---------- Golden haze section â€” many soft gold shades blended together,
   masked so it fades to nothing at the top and bottom (no hard section
   boundary against the white page background). ---------- */
.bg-gold-haze{ position: relative; }
.bg-gold-haze::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 60% at 12% 18%, rgba(201,168,76,0.5), transparent 60%),
    radial-gradient(ellipse 45% 55% at 88% 12%, rgba(232,201,122,0.45), transparent 58%),
    radial-gradient(ellipse 60% 55% at 78% 88%, rgba(154,114,48,0.4), transparent 60%),
    radial-gradient(ellipse 50% 50% at 8% 90%, rgba(201,168,76,0.42), transparent 58%),
    radial-gradient(ellipse 65% 60% at 50% 50%, rgba(232,201,122,0.28), transparent 65%),
    linear-gradient(135deg, rgba(154,114,48,0.22), rgba(201,168,76,0.22) 50%, rgba(232,201,122,0.22));
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 90px, #000 calc(100% - 90px), transparent 100%);
  pointer-events: none;
  z-index: 0;
}
.bg-gold-haze > *{ position: relative; z-index: 1; }

/* ---------- Full golden section â€” many gold shades blended, solid edge-to-edge
   (no fade â€” unlike .bg-gold-haze, this one has a clean section boundary). ---------- */
.bg-gold-multi{ position: relative; background: var(--gold-gradient); overflow: hidden; }
.bg-gold-multi::before{
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 55% at 15% 20%, rgba(232,201,122,0.85), transparent 60%),
    radial-gradient(ellipse 55% 60% at 85% 15%, rgba(201,168,76,0.8), transparent 58%),
    radial-gradient(ellipse 65% 60% at 80% 92%, rgba(154,114,48,0.85), transparent 62%),
    radial-gradient(ellipse 55% 55% at 12% 88%, rgba(232,201,122,0.75), transparent 58%),
    radial-gradient(ellipse 70% 65% at 50% 45%, rgba(201,168,76,0.6), transparent 65%),
    linear-gradient(135deg, #9A7230 0%, #C9A84C 35%, #E8C97A 60%, #C9A84C 85%, #9A7230 100%);
  z-index: 0;
}
.bg-gold-multi > *{ position: relative; z-index: 1; }

/* ---------- Prominent-border cards (no shadow) ---------- */
.card.card-bordered{
  border-width: 2px;
  border-color: var(--gold);
  box-shadow: none;
}
.card-link:hover .card.card-bordered{
  border-color: var(--gold-dark);
  box-shadow: none;
}

/* ---------- Photo background layer (used by Donate CTA, Life at ECC, etc.)
   A real element with its own inline background-image, not a CSS-variable
   fed pseudo-element â€” custom-property url()s resolve against the stylesheet's
   folder, which breaks under file:// (double-clicking the html file). An
   inline style on a real element resolves against the page itself instead,
   so this works identically over http:// and file://. ---------- */
.photo-bg{ position: relative; overflow: hidden; }
.photo-bg-layer{ position: absolute; inset: 0; background-size: cover; background-position: center; z-index: 0; }
.cta-banner.photo-bg::before{ z-index: 1; }
.photo-bg > :not(.photo-bg-layer){ position: relative; z-index: 2; }

/* ---------- Accordion (FAQ-style) ---------- */
.accordion-item{ border-bottom: 1px solid var(--hairline); }
.accordion-item button{
  width: 100%; text-align: left; background: none; border: none; color: var(--text-primary);
  padding: 20px 4px; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.accordion-item .mobile-caret{ flex-shrink: 0; color: var(--gold-dark); }
.accordion-item button.open .mobile-caret{ transform: rotate(-135deg); }
.accordion-panel{ max-height: 0; overflow: hidden; transition: max-height 300ms var(--ease); }
.accordion-panel.open{ max-height: 600px; }
.accordion-panel p{ padding: 0 4px 20px; color: var(--text-muted); }

/* ---------- Footer (always dark context) ---------- */
.site-footer{ background: #212121; border-top: 3px solid var(--gold); padding: var(--space-8) 0 var(--space-4); }
.footer-grid{ display: grid; gap: var(--space-6); grid-template-columns: 1fr; margin-bottom: var(--space-6); }
@media (min-width: 768px){ .footer-grid{ grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand{ display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-2); font-family: var(--font-hero); font-size: 19px; color: var(--gold-light); }
.footer-brand img{ height: 90px; width: auto; }
.footer-tagline{ color: var(--text-muted); font-size: 14px; max-width: 280px; }
.footer-col h4{ font-size: 13px; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); margin-bottom: var(--space-2); font-family: var(--font-body); }
.footer-col li{ margin-bottom: 10px; }
.footer-col a{ color: var(--text-muted); font-size: 14px; }
.footer-col a:hover{ color: var(--gold); }
.footer-social{ display: flex; gap: 12px; margin-top: var(--space-3); }
.footer-social a{ width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(201,168,76,0.35); display: flex; align-items: center; justify-content: center; transition: background var(--ease-btn), border-color var(--ease-btn), transform var(--ease-btn); }
.footer-social a:hover{ border-color: var(--gold); background: var(--gold); transform: translateY(-2px); }
.footer-social svg{ width: 16px; height: 16px; color: var(--text-primary); transition: color var(--ease-btn); }
.footer-social a:hover svg{ color: #0A0A0A; }
.footer-bottom{ border-top: 1px solid var(--hairline); padding-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: space-between; font-size: 13px; color: var(--text-muted); }
.footer-bottom a:hover{ color: var(--gold); }

/* ---------- Social row (icon + handle, e.g. Contact page) ---------- */
.social-row{ display: flex; flex-direction: column; gap: 12px; }
.social-item{ display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.social-item .social-icon{
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: var(--black); border: 1px solid rgba(201,168,76,0.35);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--ease-btn), border-color var(--ease-btn), transform var(--ease-btn);
}
.social-item .social-icon svg{ width: 18px; height: 18px; color: #F0EDE8; transition: color var(--ease-btn); }
.social-item span:last-child{ color: var(--text-muted); font-size: 15px; transition: color 200ms var(--ease); }
.social-item:hover .social-icon{ background: var(--gold); border-color: var(--gold); transform: scale(1.06); }
.social-item:hover .social-icon svg{ color: #0A0A0A; }
.social-item:hover span:last-child{ color: var(--accent-gold); }

/* ---------- Scroll fade-up utility ---------- */
.reveal{ opacity: 0; transform: translateY(20px); transition: opacity 500ms var(--ease), transform 500ms var(--ease); }
.reveal.in-view{ opacity: 1; transform: translateY(0); }
@keyframes fade-up{ from{ opacity: 0; transform: translateY(20px); } to{ opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity: 1; transform: none; transition: none; }
  .hero-content *{ animation: none !important; opacity: 1 !important; }
}

/* ---------- Misc ---------- */
.sr-only{ position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center{ text-align: center; }
.mt-2{ margin-top: var(--space-2); } .mt-3{ margin-top: var(--space-3); }
.mt-4{ margin-top: var(--space-4); } .mt-6{ margin-top: var(--space-6); }

.scripture{ font-family: var(--font-hero); font-style: italic; color: var(--accent-gold); font-size: 15px; margin-bottom: 8px; padding-left: 14px; border-left: 3px solid var(--gold); }

.table-list{ display: grid; gap: 0; }
.table-list .row{ display: grid; grid-template-columns: 1fr; gap: 4px; padding: var(--space-3) 0; border-bottom: 1px solid var(--hairline); }
@media (min-width: 640px){ .table-list .row{ grid-template-columns: 1fr 2fr; gap: var(--space-4); align-items: baseline; } }
.table-list .row:last-child{ border-bottom: none; }
.table-list .row dt{ font-weight: 600; color: var(--accent-gold); font-size: 14px; }
.table-list .row dd{ margin: 0; color: var(--text-muted); font-size: 15px; }

/* ---------- Section background utilities ----------
   Deliberately last in the file: .cta-banner (and any future component)
   declares its own default `background`, and a utility class has the same
   0,0,1,0 specificity as a component class — so without this being last,
   source order lets the component's own background silently win over the
   utility whenever they're combined on one element (as .cta-banner.bg-gold
   etc. are throughout the site). Utilities must sort after components. */
.bg-alt{ background: var(--off-white); }
/* Dark solid-color fallback — visible only behind the one dark PHOTO CTA
   banner (.bg-dark.photo-bg) if the image fails to load; every other
   former use of a flat dark section background now uses .bg-beige /
   .bg-beige-gold below instead. */
.bg-dark{ background: #4A4640; }
.bg-gold{ background: var(--gold-gradient); }
.bg-beige{ background: linear-gradient(135deg, #F5ECD6 0%, #EDDFB8 100%); }
.bg-beige-gold{ background: linear-gradient(135deg, #F5ECD6 0%, #E8C97A 55%, #C9A84C 100%); }
/* No background of its own — just pins headings inside it to solid black,
   for sections that should stay on the plain white page background. */
.black-headings h2{ --heading-fill: #0A0A0A; }
