/* =========================================
   Spirit Church NYC — Global Styles
   ========================================= */


@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

@font-face {
  font-family: 'Integral';
  src: url('../Fonts/Integral.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IntegralRegular';
  src: url('../Fonts/Integral Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}



:root {
  --cream:      #f4f0eb;
  --linen:      #e4d9cf;
  --card-bg:    #ede8e3;
  --white:      #ffffff;
  --dark:       #1b1b1b;
  --dark2:      #222222;
  --burgundy:   #7e314e;
  --gold:       #bb9b5e;
  --muted:      #777777;
  --border:     #d8d3ce;
  --text:       #1b1b1b;
  --max-w:      1100px;
  --nav-h:      96px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Typography ── */
h1 {
  font-family: 'Integral', sans-serif;
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.02em;
}
h2 {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

h2.title {
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-dark h2,
.section-burgundy h2,
.values-section h2,
.page-hero h2 {
  font-family: 'Integral', sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: bold;
  line-height: 1.05;
  letter-spacing: 0.02em;
}
h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

h3.subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
.smallcaps {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.smallcaps2 {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.gold { color: var(--gold); }
.italic-serif { font-family: 'Inter', sans-serif; font-style: italic; color: var(--gold); }

.eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.breadcrumb {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--text); }

/* ── Layout ── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
}

section { padding-block: 80px; }

/* ── Buttons ── */
.btn,
.btn-giving,
.btn-involve,
.sermons-info .btn-sermons,
.sermons-viewmore-btn,
.hero-v2-btns a {
  font-family: 'Inter', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 32px;
  border-radius: 999px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { background: #333; }

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.72);
  border: 1.5px solid rgba(255,255,255,0.72);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }

.btn-outline-dark {
  background: transparent;
  color: var(--dark);
  border: 1.5px solid var(--dark);
}
.btn-outline-dark:hover { background: var(--dark); color: var(--white); }

.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Navigation ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: transparent;
  border-bottom: 1px solid transparent;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.site-nav.scrolled {
  background: var(--cream);
  border-bottom-color: var(--border);
}
.nav-social-bar {
  position: absolute;
  bottom: 18px;
  right: 40px;
}
.site-nav .nav-center a { color: var(--white); }
.site-nav.scrolled .nav-center a { color: var(--text); }
.site-nav .nav-center a:hover { color: rgba(255,255,255,0.7); }
.site-nav.scrolled .nav-center a:hover { color: var(--burgundy); }
.site-nav.scrolled .nav-center a.active { color: var(--burgundy); border-bottom: 2px solid var(--gold); }
.site-nav .nav-social a { color: var(--white); }
.site-nav.scrolled .nav-social a { color: var(--text); }
.site-nav .nav-toggle span { background: var(--white); }
.site-nav.scrolled .nav-toggle span { background: var(--dark); }
.nav-inner {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 40px;
  padding-bottom: 10px;
}
.nav-inner .nav-logo { flex: 0 0 auto; }
.nav-inner .nav-center { margin-left: auto; }
.nav-logo {
  font-family: 'Integral', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-logo .torch { font-size: 1rem; }

.nav-center {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav-center a {
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: color 0.2s;
  padding-bottom: 3px;
}
.nav-center a:hover { color: var(--burgundy); }
.nav-center a.active {
  color: var(--white);
  border-bottom: 2px solid var(--gold);
}

.nav-social {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-social a {
  color: var(--text);
  font-size: 1rem;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.nav-social a:hover { color: var(--burgundy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--dark);
}

/* ── Hero ── */
.hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: var(--dark);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.50);
  z-index: 1;
}
.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  color: var(--white);
  margin-top: 15vh;
}
.hero-logo {
  font-family: 'Integral', sans-serif;
  font-size: clamp(3.5rem, 10vw, 8rem);
  letter-spacing: 0.12em;
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.hero-logo .torch-icon { font-size: 0.55em; }
.hero-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
  margin-bottom: 28px;
}
.hero .btn-group { justify-content: center; margin-top: 32px; }
.hero-br-mobile { display: none; }

/* ── Burgundy strip ── */
/* ── Scrolling ticker ── */
.ticker-wrap {
  background: var(--burgundy);
  overflow: hidden;
  padding: 7px 0;
}
.ticker-track {
  display: flex;
  white-space: nowrap;
  will-change: transform;
}
.ticker-track span {
  font-size: clamp(0.8rem, 1.7vw, 1.1rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  flex-shrink: 0;
}
.ticker-text {
  font-family: 'IntegralRegular', sans-serif;
}
.ticker-dot {
  font-family: 'Inter', sans-serif;
}

.strip-burgundy {
  background: var(--burgundy);
  padding: 14px 40px;
}
.strip-burgundy p {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
  max-width: var(--max-w);
  margin-inline: auto;
}

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--dark);
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 14px;
}
.page-hero .breadcrumb { color: var(--gold); }
.page-hero .breadcrumb a { color: var(--gold); }
.page-hero .breadcrumb a:hover { color: var(--white); }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 5vw, 3.5rem); margin-top: 112px; margin-bottom: 8px; }

/* ── Two-col ── */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse .col-text { order: 2; }
.two-col.reverse .col-img  { order: 1; }

.col-img {
  overflow: hidden;
  position: relative;
}
.col-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.col-img .img-placeholder {
  aspect-ratio: 4/3;
  background: var(--card-bg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: var(--muted);
  font-size: 2.5rem;
}
.col-img .img-placeholder p { font-size: 0.8rem; letter-spacing: 0.05em; font-family: 'Inter', sans-serif; }

/* ── Cards scroll (Get Involved carousel) ── */
.cards-scroll-wrap {
  overflow: hidden;
  margin-top: 40px;
  position: relative;
}
.cards-scroll-nav {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 24px 16px;
}
.scroll-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  background: transparent;
  color: var(--dark);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.scroll-btn:hover { background: var(--dark); color: var(--white); }
.cards-scroll {
  display: flex;
  gap: 20px;
  width: max-content;
  padding: 8px 0 24px;
  transition: transform 0.45s ease;
}
.cards-scroll .involve-card {
  flex: 0 0 450px;
  opacity: 0.25;
  transition: opacity 0.4s ease, box-shadow 0.4s ease, outline 0.4s ease;
}
.cards-scroll .involve-card.carousel-active {
  opacity: 1;
  outline: 6px solid #b5a898;
  outline-offset: 0px;
}
/* ── Get Involved cards ── */
.get-involved-heading {
  font-family: 'Integral', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: bold;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--dark);
}
.involve-card {
  background: var(--cream);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(0,0,0,0.07);
}
.involve-card-img {
  width: calc(100% - 80px);
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
  border-radius: 10px;
  margin: 40px 40px 0;
}
.involve-card-img.img-placeholder {
  background: #c8c3be;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}
.involve-card-body {
  padding: 24px 40px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.btn-involve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  margin-top: auto;
  width: 100%;
}
.btn-involve { display: none; }
.carousel-active .btn-involve { display: inline-flex; }
.carousel-active .btn-involve:hover { background: var(--dark); color: #fff; }

/* ── Dark section ── */
.section-dark {
  background: var(--dark);
  color: var(--white);
}
.section-dark p { color: rgba(255,255,255,0.75); }

.section-burgundy {
  background: var(--burgundy);
  color: var(--white);
}
.section-burgundy p { color: rgba(255,255,255,0.85); }

.giving-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-block: 80px;
  overflow: hidden;
  background: none;
  background-image: url('../images/NYC-Walkway.webp');
  background-size: cover;
  background-position: center;
}
.giving-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(126, 49, 78, 0.82);
  z-index: 0;
}
.giving-section > * { position: relative; z-index: 1; }
.giving-deco {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: clamp(70px, 8vw, 120px);
  opacity: 0.9;
}
.giving-deco-left  { left: clamp(16px, 4vw, 80px); }
.giving-deco-right { right: clamp(16px, 4vw, 80px); }
.btn-giving {
  padding: 8px 48px;
  border: 1.5px solid var(--white);
  background: transparent;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-giving:hover { background: rgba(255,255,255,0.15); }

/* ── Divider ── */
hr.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}
hr.divider-dark {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 48px 0;
}

/* ── Torch/flame icon SVG ── */
.torch-svg {
  display: inline-block;
  width: 1em;
  height: 1.4em;
  vertical-align: middle;
}

/* ── Pastors section ── */
.pastor-photo-wrap { position: relative; }
.pastor-caption { position: absolute; bottom: 12px; left: 12px; font-size: 0.75rem; letter-spacing: 0.05em; color: rgba(255,255,255,0.85); }

/* ── Pastors full-bleed section ── */
.pastors-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  border-radius: 8px;
  overflow: hidden;
}
.pastors-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.pastors-card {
  position: absolute;
  top: 62%;
  left: 40px;
  transform: translateY(-50%);
  z-index: 1;
  background: #fff;
  border-radius: 4px;
  padding: 48px 44px;
  max-width: 460px;
  box-shadow: 0 4px 32px rgba(0,0,0,0.12);
}
/* ── Contact form ── */
.home-contact-form { display: flex; flex-direction: column; gap: 12px; }
.home-contact-form .form-row { display: flex; gap: 12px; }
.home-contact-form input,
.home-contact-form textarea {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 0;
  padding: 10px 0;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.home-contact-form input::placeholder,
.home-contact-form textarea::placeholder { color: rgba(255,255,255,0.45); }
.home-contact-form input:focus,
.home-contact-form textarea:focus { border-bottom-color: rgba(255,255,255,0.7); }
.home-contact-form textarea { resize: vertical; }
.home-contact-form .btn { align-self: flex-start; margin-top: 4px; color: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.85); }

/* ── Footer ── */
.site-footer {
  background: var(--dark2);
  padding: 40px 0 28px;
  color: var(--white);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.footer-nav a {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}
.footer-nav a:hover, .footer-nav a.active { color: var(--gold); }
.footer-copy {
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
}

/* ── Faith statements (About) ── */
.faith-block { margin-bottom: 32px; }
.faith-block p {
  font-family: 'Inter', sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--text);
}
.faith-block h4 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
  color: var(--text);
  margin-bottom: 8px;
}
.faith-block p { color: #444; font-size: 0.92rem; line-height: 1.75; margin-bottom: 6px; }
.faith-block .ref { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--burgundy); }
.faith-closing {
  font-family: 'Inter', sans-serif;
  font-style: normal;
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--text);
  line-height: 1.4;
  margin: 48px 0;
}
.faith-closing .gold { color: var(--gold); }

/* ── Responsive ──────────────────────────────────────────────
   Tablet / small-desktop: collapse multi-column layouts.
   Inline `grid-template-columns` declarations are overridden with
   !important since inline styles otherwise win over the stylesheet.
   ───────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; gap: 32px; }
  .two-col.reverse .col-text { order: 1; }
  .two-col.reverse .col-img  { order: 2; }

  /* Collapse inline two-column grids to a single column */
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:2fr 3fr"],
  [style*="grid-template-columns: 2fr 3fr"],
  [style*="grid-template-columns:repeat(2,1fr)"],
  [style*="grid-template-columns:repeat(2, 1fr)"] {
    grid-template-columns: 1fr !important;
  }

  /* Four-column grids → two columns */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"],
  .belief-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  section { padding-block: 56px; }
  .container { padding-inline: 20px; }
  .strip-burgundy { padding-inline: 0; }

  /* Mobile nav: hide inline links + social, show hamburger drawer */
  .nav-center, .nav-social { display: none; }
  .nav-center.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--white);
    padding: 24px 20px;
    gap: 0;
    z-index: 99;
    overflow-y: auto;
  }
  .nav-center.open a {
    padding: 14px 0;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
  .nav-toggle { display: flex; margin-left: auto; }

  /* Home hero: bigger, higher stacked logo + stacked CTA buttons */
  .hero-content { margin-top: 6vh; }
  .hero-logo img { width: min(528px, 82vw) !important; }
  .hero .btn-group { flex-direction: column; align-items: center; gap: 12px; }
  .hero .btn-group .btn { width: 100%; max-width: 300px; }
  .hero-br-mobile { display: inline; }

  /* Home: enlarge the Love God / Love People heading on mobile */
  .love-heading { font-size: 3.6rem !important; }

  /* Home pastors: image directly under the title, bio below it */
  .pastors-row .col-text { display: contents; }
  .pastors-row .pastors-title { order: 1; }
  .pastors-row .pastor-photo-wrap { order: 2; margin-bottom: 4px; }
  .pastors-row .pastors-bio { order: 3; }

  /* Home: centre the "To Bring Light" heading block + supporting text/button */
  .mission-heading { text-align: center; }
  .mission-heading > div { margin-inline: auto; }
  .mission-cta { text-align: center; }

  /* Home giving: add side padding so copy isn't tight to the edges */
  .giving-section { padding-inline: 24px; }

  /* Home connect: centre the heading/intro text (form fields stay full-width) */
  .connect-col > p,
  .connect-col > h2 { text-align: center; }

  /* Home connect: full-width, centred submit button */
  .home-contact-form .btn { align-self: stretch; width: 100%; max-width: none; }

  /* About/Mission: scale the large lead paragraph down like the titles */
  .faith-closing { font-size: 1.3rem; margin: 8px 0; }
  /* About statement of faith: render as a general body paragraph */
  .faith-intro { font-size: 0.95rem; font-weight: 400; line-height: 1.7; color: #444; }
  /* (Belief-card accordion rules live at the end of the file, after the
     belief base styles, so source order lets them win without !important.) */

  .footer-nav { gap: 16px; }

  /* Inner-page hero: trim the large heading offset on small screens */
  .page-hero h1 { margin-top: 56px; }

  /* Carousel: cards fit the viewport (JS measures actual width) */
  .cards-scroll .involve-card { flex-basis: min(82vw, 360px); }
  .involve-card-img { width: calc(100% - 48px); margin: 24px 24px 0; }
  .involve-card-body { padding: 20px 24px 28px; }

  /* Giving section: drop the side torch decorations so they don't
     overlap the centred copy on narrow screens */
  .giving-deco { display: none; }

  /* About: image becomes a banner with the heading overlaid; card flows below */
  .pastors-section { min-height: 0; position: relative; }
  .pastors-bg-img { position: relative; width: 100%; height: 360px; object-position: right center; }
  .pastors-section h2 { top: 24px !important; left: 24px !important; padding: 0 !important; }
  .pastors-section > div[style*="linear-gradient"] { bottom: auto !important; height: 360px !important; }
  .pastors-card {
    position: static;
    transform: none;
    left: auto; top: auto;
    max-width: none;
    box-shadow: none;
    padding: 20px 24px 0;
    display: flex;
    flex-direction: column;
  }
  /* keep the photo credit directly under the picture */
  .pastors-credit { order: -1; margin-bottom: 18px; }
}

@media (max-width: 460px) {
  /* Very small screens: single-column for the tightest 4-col grids */
  [style*="grid-template-columns:repeat(4,1fr)"],
  [style*="grid-template-columns:repeat(4, 1fr)"] {
    grid-template-columns: 1fr 1fr !important;
  }
}

/* ── BELIEF GRID (trial layout) ── */
.belief-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.belief-card {
  position: relative;
  background: var(--linen);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.35s ease, transform 0.2s ease;
  height: 192px;
  overflow: hidden;
}
.belief-card:not(.belief-card-viewall):hover,
.belief-card-active { background: var(--dark); }
.belief-card:hover { transform: translateY(-3px); }

.belief-front {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 20px;
  z-index: 2;
  transition: opacity 0.2s ease;
}
.belief-front span {
  font-family: 'Integral', sans-serif;
  font-weight: bold;
  font-size: clamp(0.75rem, 1.2vw, 0.9rem);
  color: var(--dark);
  opacity: 0.5;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
  transition: color 0.2s ease, opacity 0.2s ease;
}
.belief-card:not(.belief-card-viewall):hover .belief-front span,
.belief-card-active .belief-front span {
  color: var(--gold);
  opacity: 1;
}

.belief-card-icon {
  position: absolute;
  bottom: 16px;
  right: 16px;
  font-size: 32px;
  color: var(--dark);
  opacity: 0.3;
  pointer-events: none;
  z-index: 4;
  transition: opacity 0.2s ease;
}
.belief-card:not(.belief-card-viewall):hover .belief-card-icon,
.belief-card-active .belief-card-icon {
  opacity: 0;
}

.belief-back {
  position: absolute;
  inset: 0;
  top: 60px;
  padding: 12px 20px 20px;
  z-index: 3;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.belief-card:not(.belief-card-viewall):hover .belief-back,
.belief-card-active .belief-back {
  transform: translateY(0);
}

.belief-back h4 {
  display: none;
}
.belief-back p {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.9);
  line-height: 1.5;
  margin-bottom: 6px;
}
.belief-back-text {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.belief-read-more {
  display: block;
  margin-top: 2px;
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--gold);
  letter-spacing: 0.04em;
}

.belief-card-viewall {
  background: var(--dark);
}
.belief-card-viewall:hover { transform: translateY(-3px); }
.belief-front-viewall span {
  font-family: 'Integral', sans-serif;
  font-weight: bold;
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  transition: color 0.2s ease;
}
.belief-card-viewall:hover .belief-front-viewall span {
  color: var(--gold);
}

/* ── BELIEF MODAL ── */
.belief-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.belief-modal[aria-hidden="false"] {
  pointer-events: all;
  opacity: 1;
}

.belief-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.75);
}

.belief-modal-box {
  position: relative;
  z-index: 1;
  background: var(--dark);
  border-radius: 12px;
  width: min(680px, 90vw);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.belief-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 2;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.belief-modal-close:hover { opacity: 1; }

.belief-modal-track {
  display: flex;
  flex: 1;
  transition: transform 0.4s ease;
  overflow: visible;
}

.belief-slide {
  flex: 0 0 100%;
  padding: 48px 52px 32px;
  overflow-y: auto;
}
.belief-slide h4 {
  font-family: 'Integral', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.0;
  margin-bottom: 20px;
}
.belief-slide p {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
  margin-bottom: 10px;
}

.belief-modal-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 16px 24px;
}
.belief-modal-nav button {
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--white);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.belief-modal-nav button:hover { background: rgba(255,255,255,0.1); }
.belief-modal-nav span {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

/* ── Hero v2 — Bottom Strip ── */
.hero-v2 {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}
.hero-v2 video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-v2-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 1;
  transition: opacity 0.6s ease;
}
.hero-v2-centre {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  transition: opacity 0.6s ease;
}
.hero-v2-centre img { width: min(520px, 56vw); height: auto; }
.hero-v2-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.hero-v2-play-btn:hover { background: rgba(255,255,255,0.18); border-color: #fff; transform: scale(1.08); }
.hero-v2-play-btn svg { width: 22px; height: 22px; margin-left: 4px; fill: #fff; }
.hero-v2-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 0 60px 48px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  transition: opacity 0.6s ease;
}
.hero-v2-bottom h1 {
  font-family: 'IntegralRegular', sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: normal;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 12px;
}
.hero-v2-bottom p {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.06em;
}
.hero-v2-btns { display: flex; gap: 12px; flex-shrink: 0; }
.hero-v2-btns a {
  display: inline-block;
  padding: 8px 28px;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
.hero-v2-btn-outline { border: 1.5px solid rgba(255,255,255,0.7); color: #fff; }
.hero-v2-btn-outline:hover { background: #fff; color: #1b1b1b; }
.hero-v2-btn-solid { background: var(--burgundy); color: #fff; border: 1.5px solid var(--burgundy); }
.hero-v2-btn-solid:hover { background: #5e2239; border-color: #5e2239; }
.hero-v2-hint {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  white-space: nowrap;
}

/* Cinematic mode */
.hero-v2.cinematic .hero-v2-overlay,
.hero-v2.cinematic .hero-v2-centre,
.hero-v2.cinematic .hero-v2-bottom { opacity: 0; pointer-events: none; }
.hero-v2.cinematic .hero-v2-hint { opacity: 1; }

@media (max-width: 768px) {
  .hero-v2-bottom { flex-direction: column; align-items: center; text-align: center; padding: 0 24px 40px; gap: 20px; }
  .hero-v2-btns { flex-direction: column; width: 100%; max-width: 300px; }
  .hero-v2-btns a { text-align: center; }
  .hero-v2-centre img { width: min(320px, 80vw); }
}

/* ── Latest Sermons section ── */
.sermons-section {
  background: var(--linen);
  padding: 80px 0 40px;
}
.sermons-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.sermons-featured-thumb {
  margin-top: -24px;
}
.sermons-featured-thumb {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--dark);
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  display: block;
  text-decoration: none;
}
.sermons-featured-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.sermons-featured-thumb:hover img { transform: scale(1.03); }
.sermons-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.25);
  transition: background 0.2s;
}
.sermons-featured-thumb:hover .sermons-play-btn { background: rgba(0,0,0,0.35); }
.sermons-play-btn svg {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 2px 12px rgba(0,0,0,0.5));
  transition: transform 0.2s;
}
.sermons-featured-thumb:hover .sermons-play-btn svg { transform: scale(1.08); }
.sermons-info h2 {
  font-family: 'Integral', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--dark);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: 8px;
}
.sermons-info h2 span { color: var(--burgundy); }
.sermons-featured-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 16px;
  line-height: 1.35;
}
.sermons-info p {
  color: #555;
  font-size: 0.92rem;
  line-height: 1.78;
  margin-bottom: 28px;
}
.sermons-info .btn-sermons {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--burgundy);
  color: #fff;
  padding: 8px 24px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
}
.sermons-info .btn-sermons:hover { background: #5e2239; }

/* View More toggle */
.sermons-viewmore-wrap {
  text-align: center;
  padding: 36px 0 0;
}
.sermons-viewmore-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: 1.5px solid var(--dark);
  color: var(--dark);
  padding: 8px 24px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.sermons-viewmore-btn:hover { background: var(--dark); color: #fff; }
.sermons-viewmore-btn .chevron {
  display: inline-block;
  transition: transform 0.3s;
  font-style: normal;
  line-height: 1;
}
.sermons-viewmore-btn.open .chevron { transform: rotate(180deg); }

/* Expandable video grid */
.sermons-grid-wrap {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s ease;
}
.sermons-grid-wrap.open { max-height: 700px; }
.sermons-grid-inner {
  padding: 36px 0 24px;
  position: relative;
}
.sermons-grid-clip {
  overflow: hidden;
  width: 100%;
}
.sermons-grid-scroll {
  display: flex;
  gap: 20px;
}
.sermon-card {
  flex: 0 0 auto;
  background: var(--card-bg);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  display: block;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sermon-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.sermon-card-thumb {
  position: relative;
  padding-bottom: 56.25%;
  background: var(--dark);
  overflow: hidden;
}
.sermon-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sermon-card-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.2);
  transition: background 0.2s;
}
.sermon-card:hover .sermon-card-play { background: rgba(0,0,0,0.35); }
.sermon-card-play svg { width: 36px; height: 36px; filter: drop-shadow(0 1px 6px rgba(0,0,0,0.5)); }
.sermon-card-body { padding: 14px 16px 16px; }
.sermon-card-body h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.35;
  margin: 0 0 5px;
  text-transform: none;
  letter-spacing: 0;
}
.sermon-card-date {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0;
}
.sermon-card-cta {
  background: var(--card-bg);
  display: flex !important;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-height: 260px;
}
.sermon-card-cta:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(0,0,0,0.08); }
.sermon-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 24px;
}
.sermon-cta-inner p {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: none;
  color: var(--muted);
  margin-bottom: 8px;
}
.sermon-cta-inner h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--dark);
  line-height: 1.4;
  margin: 0;
  text-transform: none;
  letter-spacing: 0;
}

.sermons-grid-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.sermons-grid-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--dark);
  background: none;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  color: var(--dark);
}
.sermons-grid-nav button:hover { background: var(--dark); color: #fff; }
.sermons-grid-nav button:disabled { opacity: 0.25; cursor: default; }
.sermons-grid-nav button:disabled:hover { background: none; color: var(--dark); }

@media (max-width: 768px) {
  .sermons-split { grid-template-columns: 1fr; gap: 28px; }
  .sermons-section { padding: 56px 0 0; }
  .sermons-grid-wrap.open { max-height: 800px; }
}

/* ── Belief cards: mobile accordion ───────────────────────────
   Placed after the belief base styles so these win on source order
   (the responsive block earlier in the file is overridden by the
   base belief rules above). Mobile only. */
@media (max-width: 768px) {
  .belief-grid { grid-template-columns: 1fr !important; }
  .belief-card { height: auto; }

  /* neutralise the desktop hover reveal so touch taps don't get stuck open.
     Exclude open cards so a sticky :hover can't override the active state. */
  .belief-card:not(.belief-card-viewall):not(.belief-card-open):hover { background: var(--linen); transform: none; }
  .belief-card:not(.belief-card-viewall):not(.belief-card-open):hover .belief-front span { color: var(--dark); opacity: 0.5; }
  .belief-card:not(.belief-card-viewall):not(.belief-card-open):hover .belief-card-icon { opacity: 0.3; }
  .belief-card:not(.belief-card-viewall):hover .belief-back { transform: none; }

  /* accordion header (title row) */
  .belief-front { position: static; padding: 20px 52px 20px 22px; }
  .belief-card-icon { top: 19px; bottom: auto; font-size: 24px; }

  /* collapsible body */
  .belief-back {
    position: static; inset: auto; top: auto; transform: none;
    max-height: 0; padding: 0 22px; overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .belief-back-text { -webkit-line-clamp: unset; }
  .belief-read-more { display: none; }

  /* open state */
  .belief-card.belief-card-open { background: var(--dark); }
  .belief-card.belief-card-open .belief-front span { color: var(--gold); opacity: 1; }
  .belief-card.belief-card-open .belief-card-icon { opacity: 0; }
  .belief-card.belief-card-open .belief-back { max-height: 600px; padding: 4px 22px 22px; }

  /* reduce gap between belief grid and pastors section */
  #belief-grid { margin-bottom: 24px !important; }
}

/* Hide reCAPTCHA v3 badge (attribution shown under forms instead, per Google terms) */
.grecaptcha-badge { visibility: hidden; }

.recaptcha-terms {
  font-size: 0.72rem;
  line-height: 1.5;
  color: rgba(27, 27, 27, 0.5);
  margin-top: 14px;
}
.recaptcha-terms a { color: inherit; text-decoration: underline; }
