:root {
  --svcc-black: #000000;
  --svcc-white: #ffffff;
  --svcc-green: #3d7013;
  --svcc-gold: #e4b71a;
  --svcc-gold-dark: #c99f12;
  --svcc-charcoal: #101010;
  --svcc-charcoal-2: #191919;
  --svcc-cream: #f7f4ec;
  --svcc-muted: #706d66;
  --svcc-border: rgba(16, 16, 16, 0.14);
  --svcc-border-light: rgba(255, 255, 255, 0.18);
  --svcc-shadow: 0 22px 60px rgba(0, 0, 0, 0.16);
  --svcc-radius: 20px;
  --svcc-radius-sm: 12px;
  --svcc-serif: Georgia, 'Times New Roman', serif;
  --svcc-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --svcc-container: 1160px;
  --svcc-wide: 1320px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--svcc-white);
  color: var(--svcc-charcoal);
  font-family: var(--svcc-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
a:hover { color: var(--svcc-gold-dark); }
button, input, textarea, select { font: inherit; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.55em;
  color: inherit;
  font-family: var(--svcc-serif);
  line-height: 1.06;
  letter-spacing: -0.03em;
}
h1 { font-size: clamp(2.9rem, 6vw, 5.8rem); }
h2 { font-size: clamp(2.2rem, 4.2vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.85rem); }
p { margin: 0 0 1.25rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content > *:last-child { margin-bottom: 0; }
.entry-content h2, .entry-content h3 { margin-top: 1.45em; }
.entry-content a { color: var(--svcc-green); font-weight: 700; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}
.screen-reader-text:focus {
  background-color: var(--svcc-gold);
  clip: auto !important;
  clip-path: none;
  color: var(--svcc-black);
  display: block;
  font-weight: 700;
  height: auto;
  left: 1rem;
  padding: 0.75rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.container { width: min(100% - 2rem, var(--svcc-container)); margin-inline: auto; }
.container--wide { width: min(100% - 2rem, var(--svcc-wide)); }
.container--narrow { width: min(100% - 2rem, 880px); }
.section { padding: clamp(4.5rem, 8vw, 7.5rem) 0; }
.section--dark { background: var(--svcc-black); color: var(--svcc-white); }
.section--light { background: var(--svcc-cream); }
.grid { display: grid; gap: clamp(2rem, 5vw, 5rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--middle { align-items: center; }

.eyebrow { color: var(--svcc-gold); font-size: 0.78rem; font-weight: 850; letter-spacing: 0.16em; margin: 0 0 1rem; text-transform: uppercase; }

.section-heading { max-width: 760px; }
.section-heading--center { margin-inline: auto; text-align: center; }
.section-heading p:not(.eyebrow) { color: var(--svcc-muted); }
.section--dark .section-heading p:not(.eyebrow) { color: rgba(255,255,255,0.76); }
.section-cta { margin-top: 2.25rem; text-align: center; }

.button-row { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin-top: 1.7rem; }
.button-row--center { justify-content: center; }
.button-row--right { justify-content: flex-end; }
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 850;
  justify-content: center;
  letter-spacing: 0.07em;
  min-height: 48px;
  padding: 0.82rem 1.25rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button--primary { background: var(--svcc-gold); color: var(--svcc-black); }
.button--primary:hover { background: var(--svcc-gold-dark); color: var(--svcc-black); }
.button--outline { border-color: var(--svcc-border); color: var(--svcc-charcoal); }
.button--outline:hover { background: var(--svcc-charcoal); border-color: var(--svcc-charcoal); color: var(--svcc-white); }
.button--outline-light { border-color: var(--svcc-border-light); color: var(--svcc-white); }
.button--outline-light:hover { background: var(--svcc-white); color: var(--svcc-black); }
.text-link { color: var(--svcc-green); font-weight: 850; }

.site-header {
  background: rgba(0, 0, 0, 0.94);
  color: var(--svcc-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.site-header__inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 125px;
  gap: 1.5rem;
}
.site-branding {
  flex: 0 0 auto;
}

.custom-logo-link,
.svcc-footer-logo-link {
  display: block;
  line-height: 0;
}

.custom-logo-link {
  width: 100px;
}

.svcc-footer-logo-link {
  width: 150px;
}

.custom-logo,
.svcc-footer-logo {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: none;
}

.footer-logo {
  width: 150px;
  margin: 0 0 1rem;
}
.site-branding__fallback {
  align-items: center;
  display: inline-flex;
  gap: 0.7rem;
  text-decoration: none;
}
.site-branding__mark {
  align-items: center;
  background: var(--svcc-gold);
  border-radius: 50%;
  color: var(--svcc-black);
  display: inline-flex;
  font-size: 1.2rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}
.site-branding__text { display: grid; line-height: 1; text-transform: uppercase; }
.site-branding__name { font-family: var(--svcc-serif); font-size: 1.1rem; letter-spacing: 0.12em; }
.site-branding__descriptor { color: rgba(255,255,255,0.72); font-size: 0.62rem; font-weight: 800; letter-spacing: 0.18em; margin-top: 0.28rem; }
.primary-navigation { align-items: center; display: flex; gap: 1.15rem; }
.primary-navigation ul { align-items: center; display: flex; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.primary-navigation a:not(.button) {
  display: block;
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  padding: 0.8rem 0.7rem;
  text-decoration: none;
  text-transform: uppercase;
}
.primary-navigation a:not(.button):hover,
.primary-navigation .current-menu-item > a { color: var(--svcc-gold); }
.primary-navigation__cta { margin-left: 0.5rem; min-height: 42px; padding-inline: 1.05rem; }
.menu-toggle { background: transparent; border: 0; color: var(--svcc-white); cursor: pointer; display: none; padding: 0.5rem; }
.menu-toggle__bar { background: currentColor; display: block; height: 2px; margin: 5px 0; width: 28px; }

.home-hero {
  background: var(--svcc-black);
  background-image: linear-gradient(90deg, rgba(0,0,0,0.86), rgba(0,0,0,0.58), rgba(0,0,0,0.18)), var(--hero-image);
  background-position: center;
  background-size: cover;
  color: var(--svcc-white);
  min-height: clamp(680px, 82vh, 920px);
  position: relative;
}
.home-hero__inner { align-items: center; display: flex; min-height: inherit; padding-block: 6rem; position: relative; z-index: 2; }
.home-hero__content { max-width: 790px; }
.home-hero__content p:not(.eyebrow) { color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 680px; }
.home-hero h1 { color: var(--svcc-white); }

.responsive-embed { aspect-ratio: 16 / 9; background: #050505; border: 1px solid var(--svcc-border-light); border-radius: var(--svcc-radius); box-shadow: var(--svcc-shadow); overflow: hidden; }
.responsive-embed iframe { border: 0; height: 100%; width: 100%; }
.responsive-embed--light { border-color: var(--svcc-border); }
.episode-placeholder {
  align-items: center;
  aspect-ratio: 16 / 9;
  background: radial-gradient(circle at 30% 20%, rgba(228,183,26,0.32), transparent 32%), linear-gradient(135deg, #000000, #192312 75%);
  border: 1px solid var(--svcc-border-light);
  border-radius: var(--svcc-radius);
  box-shadow: var(--svcc-shadow);
  color: var(--svcc-white);
  display: flex;
  justify-content: center;
  min-height: 260px;
  padding: 2rem;
  text-align: center;
}
.episode-placeholder span { font-family: var(--svcc-serif); font-size: clamp(2.2rem, 5vw, 4.6rem); line-height: 0.95; max-width: 400px; text-transform: uppercase; }
.episode-placeholder--light { border-color: var(--svcc-border); }
.latest-episode__content p:not(.eyebrow) { color: rgba(255,255,255,0.78); }

.prayer-callout { padding: clamp(3rem, 5vw, 4rem) 0; }
.prayer-callout__inner {
  align-items: center;
  background: var(--svcc-cream);
  border: 1px solid var(--svcc-border);
  border-radius: var(--svcc-radius);
  display: flex;
  gap: 2rem;
  justify-content: space-between;
  padding: clamp(2rem, 4vw, 3rem);
}
.prayer-callout h2 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.prayer-callout p:not(.eyebrow) { color: var(--svcc-muted); margin-bottom: 0; max-width: 690px; }

.pastor-card {
  align-items: center;
  background: var(--svcc-white);
  border: 1px solid var(--svcc-border);
  border-radius: var(--svcc-radius);
  box-shadow: var(--svcc-shadow);
  display: flex;
  gap: 1.2rem;
  justify-self: end;
  padding: 1.2rem;
  width: min(100%, 430px);
}
.pastor-card__image, .pastor-card__placeholder { border: 4px solid var(--svcc-gold); border-radius: 50%; flex: 0 0 96px; height: 96px; object-fit: cover; width: 96px; }
.pastor-card__placeholder { align-items: center; background: var(--svcc-charcoal); color: var(--svcc-gold); display: flex; font-weight: 900; justify-content: center; }
.pastor-card p { color: var(--svcc-muted); font-size: 0.8rem; font-weight: 850; letter-spacing: 0.1em; margin: 0 0 0.2rem; text-transform: uppercase; }
.pastor-card h3 { margin: 0; }

.card-grid { display: grid; gap: 1.25rem; margin-top: 2.5rem; }
.card-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.info-card, .pathway-card, .post-card, .contact-card {
  background: var(--svcc-white);
  border: 1px solid var(--svcc-border);
  border-radius: var(--svcc-radius);
  box-shadow: 0 14px 40px rgba(0,0,0,0.07);
  padding: clamp(1.4rem, 2.5vw, 2.1rem);
}
.info-card h3, .info-card h2, .pathway-card h3 { font-family: var(--svcc-sans); font-size: 1.12rem; font-weight: 900; letter-spacing: -0.01em; margin-bottom: 0.55rem; }
.info-card p, .pathway-card p { color: var(--svcc-muted); font-size: 0.98rem; margin-bottom: 0; }
.info-card__icon { color: var(--svcc-gold); display: inline-block; font-size: 1.6rem; margin-bottom: 1.1rem; }
.pathways-section .pathway-card { background: rgba(255,255,255,0.06); border-color: var(--svcc-border-light); color: var(--svcc-white); text-decoration: none; }
.pathways-section .pathway-card:hover { background: rgba(255,255,255,0.1); color: var(--svcc-white); }
.pathways-section .pathway-card span { color: var(--svcc-gold); display: inline-block; font-size: 2rem; margin-bottom: 1rem; }
.pathways-section .pathway-card p { color: rgba(255,255,255,0.72); }
.pathways-section { background: var(--svcc-black); margin-bottom: -1px; position: relative; z-index: 1; }
.pathways-divider { background: #2c2c2c; border: 0; height: 1px; margin: 80px auto 0; width: min(50%, 520px); }

.page-hero { padding: clamp(5rem, 8vw, 8rem) 0; }
.page-hero--dark { background: radial-gradient(circle at 15% 10%, rgba(228,183,26,0.18), transparent 34%), var(--svcc-black); color: var(--svcc-white); }
.page-hero p:not(.eyebrow) { color: rgba(255,255,255,0.78); }
.page-content, .single-content { background: var(--svcc-white); }
.entry-header { margin-bottom: 2rem; text-align: center; }
.entry-featured-image { border-radius: var(--svcc-radius); margin: 0 0 2rem; overflow: hidden; }
.post-list { display: grid; gap: 1.25rem; }
.post-card { display: grid; grid-template-columns: 280px 1fr; gap: 1.5rem; padding: 1rem; }
.post-card__image { border-radius: calc(var(--svcc-radius) - 6px); overflow: hidden; }
.post-card__image img { height: 100%; object-fit: cover; width: 100%; }
.post-card__title { font-family: var(--svcc-serif); font-size: clamp(1.7rem, 3vw, 2.5rem); }
.post-card__title a { text-decoration: none; }
.post-card__excerpt { color: var(--svcc-muted); }
.archive-header { margin-bottom: 2.5rem; text-align: center; }
.navigation.pagination { margin-top: 2.5rem; text-align: center; }
.nav-links { display: flex; justify-content: center; gap: 0.4rem; }
.page-numbers { border: 1px solid var(--svcc-border); border-radius: 999px; padding: 0.45rem 0.75rem; text-decoration: none; }
.page-numbers.current { background: var(--svcc-charcoal); color: var(--svcc-white); }

.site-footer { background: var(--svcc-black); color: var(--svcc-white); position: relative; z-index: 2; }
.site-footer__top { display: flex; justify-content: center; text-align: center; }
.site-footer p, .site-footer a { color: rgba(255,255,255,0.74); }
.site-footer a:hover { color: var(--svcc-gold); }
.site-footer__brand { align-items: center; display: flex; flex-direction: column; padding: 20px 0; }
.site-footer__brand .site-branding__fallback { margin-bottom: 1rem; }
.site-footer__nav ul { columns: 2; gap: 2rem; list-style: none; margin: 0; padding: 0; }
.site-footer__nav li { break-inside: avoid; margin: 0 0 0.5rem; }
.site-footer__nav a { font-size: 0.92rem; text-decoration: none; }
.site-footer__contact h2 { font-family: var(--svcc-sans); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1rem;
}

.social-links__item {
  align-items: center;
  border: 1px solid var(--svcc-border-light);
  border-radius: 999px;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  text-decoration: none;
  width: 44px;
}

.social-links__item .dashicons {
  font-size: 21px;
  height: 21px;
  line-height: 1;
  width: 21px;
}

.social-links__item:hover {
  border-color: var(--svcc-gold);
  color: var(--svcc-gold);
}
.site-footer__widgets { border-top: 1px solid var(--svcc-border-light); padding: 2rem 0; }
.site-footer__bottom { border-top: 1px solid var(--svcc-border-light); color: rgba(255,255,255,0.6); font-size: 0.85rem; padding: 1.1rem 0; text-align: center; }
.site-footer__bottom p { margin: 0; }

input[type='text'], input[type='email'], input[type='url'], input[type='search'], textarea {
  border: 1px solid var(--svcc-border);
  border-radius: var(--svcc-radius-sm);
  padding: 0.85rem 1rem;
  width: 100%;
}
input[type='submit'], button[type='submit'] { background: var(--svcc-gold); border: 0; border-radius: 999px; cursor: pointer; font-weight: 850; padding: 0.85rem 1.25rem; text-transform: uppercase; }
.comments-area { margin-top: 3rem; }

@media (max-width: 980px) {
  .grid--2, .card-grid--3, .site-footer__top { grid-template-columns: 1fr; }
  .pastor-card { justify-self: stretch; }
  .prayer-callout__inner { align-items: flex-start; flex-direction: column; }
  .button-row--right { justify-content: flex-start; }
  .post-card { grid-template-columns: 1fr; }
  .post-card__image img { aspect-ratio: 16/9; }
  .menu-toggle { display: block; }
  .primary-navigation {
    background: var(--svcc-black);
    border-top: 1px solid var(--svcc-border-light);
    display: none;
    inset: 86px 0 auto 0;
    padding: 1rem;
    position: absolute;
  }
  .primary-navigation.is-open { display: grid; gap: 0.75rem; }
  .primary-navigation ul { align-items: stretch; display: grid; width: 100%; }
  .primary-navigation a:not(.button) { border-bottom: 1px solid var(--svcc-border-light); padding: 0.95rem 0; }
  .primary-navigation__cta { margin-left: 0; width: max-content; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .site-header__inner { min-height: 100px; }
  .custom-logo-link { width: 80px; }
  .svcc-footer-logo-link, .footer-logo { width: 125px; }
  .site-branding__name { font-size: 0.98rem; }
  .site-branding__descriptor { font-size: 0.55rem; }
  .primary-navigation { inset-block-start: 76px; }
  .home-hero { min-height: 680px; }
  .button, .button-row { width: 100%; }
  .button { justify-content: center; }
  .pastor-card { align-items: flex-start; flex-direction: column; }
  .site-footer__nav ul { columns: 1; }
}

/* SVCC tasteful motion layer */
:root {
  --svcc-motion-duration: 700ms;
  --svcc-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Page-load hero entrance */
.hero__content,
.svcc-hero__content,
.home-hero__content {
  animation: svcc-hero-rise 900ms var(--svcc-motion-ease) both;
}

@keyframes svcc-hero-rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll reveal */
.svcc-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity var(--svcc-motion-duration) var(--svcc-motion-ease),
    transform var(--svcc-motion-duration) var(--svcc-motion-ease);
  will-change: opacity, transform;
}

.svcc-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children subtly */
.svcc-reveal-group > * {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity var(--svcc-motion-duration) var(--svcc-motion-ease),
    transform var(--svcc-motion-duration) var(--svcc-motion-ease);
}

.svcc-reveal-group.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

.svcc-reveal-group.is-visible > *:nth-child(2) {
  transition-delay: 90ms;
}

.svcc-reveal-group.is-visible > *:nth-child(3) {
  transition-delay: 180ms;
}

.svcc-reveal-group.is-visible > *:nth-child(4) {
  transition-delay: 270ms;
}

/* Buttons */
.button,
.wp-block-button__link,
button.button {
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible,
button.button:hover,
button.button:focus-visible {
  transform: translateY(-2px);
}

/* Cards / panels */
.card,
.svcc-card,
.feature-card,
.support-card,
.belief-card,
.wp-block-column {
  transition:
    transform 260ms ease,
    box-shadow 260ms ease,
    border-color 260ms ease;
}

.card:hover,
.svcc-card:hover,
.feature-card:hover,
.support-card:hover,
.belief-card:hover {
  transform: translateY(-4px);
}

/* Header polish */
.site-header {
  transition:
    background-color 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .svcc-reveal,
  .svcc-reveal-group > * {
    opacity: 1 !important;
    transform: none !important;
  }
}
