/* ==========================================================================
   Spirit Life UK — the site's single stylesheet (assets/styles.css)

   Every page links ONLY this file. Keep it readable here; minify at deploy time.

   1. BASE            Tokens, reset, layout, header, footer, buttons, home sections
                      (originally the Vite build, main-DJJ2d5c5.css)
   2. COMPONENTS      Mega menu, 4-column footer, programme cards, badges, panels
                      (originally site.css)
   3. PAGE: HOME      Resident pastor card, founders & ministries backgrounds
   4. PAGE: OTHER     Beliefs items, ministries cards
   5. PAGE STYLES     Classes that replaced inline style="" attributes
   6. UTILITIES       Spacing and animation-delay helpers (kept last)
   ========================================================================== */

/* ==========================================================================
   1. BASE
   ========================================================================== */

/* Fonts: self-hosted variable woff2 files in /assets/fonts (SIL Open Font License, see the OFL-*.txt files).
   "latin" covers all English text; "latin-ext" only downloads if an accented character from it appears. */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/outfit-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url(/assets/fonts/outfit-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url(/assets/fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(/assets/fonts/playfair-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/playfair-italic-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/playfair-italic-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --primary: #D4AF37;
  --primary-glow: #F9E08E;
  --secondary: #0A0F1C;
  --brand-red: #B22222;
  --brand-purple: #6A0DAD;
  --accent: var(--brand-purple);
  --text-dark: #1E293B;
  --text-light: #F8FAFC;
  --bg-light: #F8FAFC;
  --bg-dark: #0A0F1C;
  --glass: rgba(255, 255, 255, .05);
  --glass-border: rgba(255, 255, 255, .1);
  --glass-strong: rgba(10, 15, 28, .7);
  --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, .3);
  --shadow-glow: 0 0 20px rgba(212, 175, 55, .3);
  --shadow-red: 0 0 20px rgba(178, 34, 34, .2);
  --shadow-purple: 0 0 20px rgba(106, 13, 173, .2);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: Inter,sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: Outfit,sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--secondary);
  text-wrap: balance;
}

/* No single word left alone on the last line (browsers without support ignore this) */
p, li, blockquote, figcaption {
  text-wrap: pretty;
}

/* Short centred lines read better evenly split */
.page-header p, .section-title p, .statement-lead, .hero-subtitle, .cta-box p {
  text-wrap: balance;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all .3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

.center {
  text-align: center;
}

.mt-4 {
  margin-top: 3rem;
}

section, .section {
  padding: 6rem 0;
  position: relative;
}

.bg-dark {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.bg-light {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.page-header {
  background: linear-gradient(135deg,var(--secondary) 0%,var(--brand-purple) 100%);
  color: var(--text-light);
  padding: 10rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%,rgba(178,34,34,.2),transparent 60%);
  pointer-events: none;
}

.page-header h1 {
  color: #fff;
  font-size: 3.5rem;
  margin-bottom: 1rem;
}

.page-header p {
  color: #fffc;
  font-size: 1.2rem;
}

.section-title, .section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title h2, .section-header h2 {
  font-size: 2.8rem;
  color: var(--secondary);
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.bg-dark .section-title h2 {
  color: #fff;
}

.section-title h2:after {
  content: "";
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translate(-50%);
  width: 60px;
  height: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.section-title p {
  max-width: 600px;
  margin: 1.5rem auto 0;
  opacity: .8;
  font-size: 1.1rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(300px,1fr));
  gap: 2.5rem;
}

.glass-card {
  background: #ffffff08;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.05);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}

.glass-card.light {
  background: #fff;
  border: 1px solid rgba(0,0,0,.06);
  color: var(--text-dark);
  box-shadow: 0 4px 20px #0000000f;
}

.glass-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px #0000001f;
}

.glass-card h3 {
  color: var(--secondary);
  font-size: 1.4rem;
  margin-bottom: .8rem;
}

.glass-card h4 {
  color: var(--primary);
  margin-bottom: .5rem;
}

.card-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.text-lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #475569;
}

.highlight {
  color: var(--primary);
  font-weight: 600;
  display: block;
  margin-bottom: .5rem;
}

.btn {
  display: inline-block;
  padding: .9rem 2.2rem;
  background-color: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  border-radius: 50px;
  border: 2px solid var(--primary);
  transition: all .3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 15px #d4af3740;
  cursor: pointer;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .5px;
}

.btn:hover {
  background: transparent;
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px #d4af3766;
}

.btn-outline {
  background: transparent;
  color: var(--secondary);
  border: 2px solid var(--secondary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--secondary);
  color: #fff;
}

.btn-primary {
  background: var(--primary);
  color: var(--secondary);
}

.btn-secondary {
  background: transparent;
  color: var(--text-light);
  border: 2px solid rgba(255,255,255,.3);
  margin-left: 1rem;
}

.btn-secondary:hover {
  background: #fff;
  color: var(--secondary);
  border-color: #fff;
}

.section-cta {
  padding: 8rem 0;
  background: linear-gradient(135deg,var(--bg-dark) 0%,#1a1040 50%,#0A0F1C 100%);
  position: relative;
  overflow: hidden;
}

.section-cta:before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,rgba(212,175,55,.1),transparent 70%);
  top: -300px;
  right: -200px;
  border-radius: 50%;
}

.cta-box {
  text-align: center;
  position: relative;
  z-index: 2;
}

.cta-box h2 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.cta-box p {
  color: #ffffffb3;
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

footer {
  background-color: var(--secondary);
  color: var(--text-light);
  padding: 5rem 0 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  font-size: .95rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 4rem;
  margin-bottom: 4rem;
}

/* All footer headings are gold (red/purple were too low-contrast on the navy footer) */
.footer-col h3 {
  color: var(--primary);
  margin-bottom: 1.5rem;
  font-size: 1.3rem;
}

.footer-links li {
  margin-bottom: 1rem;
}

.footer-links a {
  color: #fff9;
  transition: all .3s;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 5px;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 1.2rem;
  color: #fff9;
}

.footer-contact svg {
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--brand-red);
}

.footer-contact a {
  color: #fff9;
}

.footer-contact a:hover {
  color: var(--primary);
}

.social-links {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-links a {
  width: 45px;
  height: 45px;
  background: #ffffff0d;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all .3s ease;
  color: var(--text-light);
}

.social-links a:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-5px) scale(1.1);
}

.social-links a:nth-child(2):hover {
  background: var(--brand-red);
}

.social-links a:nth-child(3):hover {
  background: var(--brand-purple);
}

.copyright {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  opacity: .5;
  font-size: .9rem;
}

.mobile-menu-btn {
  display: none;
  color: #fff;
  cursor: pointer;
}

header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all .4s cubic-bezier(.4,0,.2,1);
  background: transparent;
}

header.scrolled {
  background: #0a0f1cd9;
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255,255,255,.05);
  box-shadow: 0 4px 30px #0000001a;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: contain;
  background: #fff;
  padding: 2px;
  box-shadow: 0 2px 8px #0000001a;
}

.logo-text {
  font-family: Outfit,sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  align-items: center;
}

.nav-links a {
  color: #ffffffe6;
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  transition: color .3s;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--primary);
}

.btn-nav {
  padding: .6rem 1.5rem;
  background: #ffffff1a;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 30px;
  transition: all .3s;
}

.btn-nav:hover {
  background: var(--brand-red);
  color: #fff!important;
  border-color: var(--brand-red);
}

/* Small laptops / tablets in landscape (901–1100px): keep the logo on one line and fit the full nav */
.logo-text {
  white-space: nowrap;
}

@media (min-width: 901px) and (max-width: 1100px) {
  .logo-text {
    font-size: 1.05rem;
  }
  .nav-links {
    gap: 1.25rem;
  }
  .nav-links a {
    font-size: .9rem;
  }
  .btn-nav {
    padding: .55rem 1.1rem;
  }
}

.hero-premium {
  position: relative;
  height: 100vh;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
}

.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}

.parallax-bg {
  width: 100%;
  height: 110%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.05);
  animation: slowZoom 20s infinite alternate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,#0a0f1c4d,#6a0dad33,#0a0f1ce6);
  z-index: -1;
}

.hero-content-premium {
  text-align: center;
  color: #fff;
  max-width: 1000px;
  z-index: 10;
  padding: 2rem;
}

.hero-badge {
  font-family: Inter, sans-serif;
  line-height: 1.7;
  color: #fff;
  display: inline-block;
  padding: .5rem 1.5rem;
  background: #d4af3733;
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards .5s;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
}

.hero-content-premium .hero-title {
  font-weight: 700;
  font-size: 5rem;
  line-height: 1;
  margin-bottom: 1.5rem;
  font-family: Playfair Display,serif;
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,.5);
  opacity: 0;
  animation: fadeUp 1s ease forwards .8s;
}

.hero-subtitle {
  font-size: 1.5rem;
  font-weight: 300;
  opacity: 0;
  margin-bottom: 3rem;
  animation: fadeUp 1s ease forwards 1.1s;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  opacity: 0;
  animation: fadeUp 1s ease forwards 1.4s;
}

.btn-glow {
  padding: 1rem 2.5rem;
  background: var(--primary);
  color: var(--secondary);
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 50px;
  border: none;
  box-shadow: var(--shadow-glow);
  transition: all .3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-glow:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 30px #b2222280;
  background: var(--brand-red);
  color: #fff;
}

.btn-play {
  display: flex;
  align-items: center;
  gap: 15px;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all .3s;
}

.play-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffffff1a;
  border: 1px solid rgba(255,255,255,.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .8rem;
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  transition: all .3s ease;
}

.btn-play:hover .play-icon {
  background: var(--primary);
  color: var(--secondary);
  transform: scale(1.1);
}

.scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translate(-50%);
  opacity: 0;
  animation: fadeIn 1s ease forwards 2s,bounce 2s infinite 2.5s;
}

.mouse {
  width: 30px;
  height: 50px;
  border: 2px solid rgba(255,255,255,.5);
  border-radius: 15px;
  position: relative;
  margin-bottom: 10px;
}

.wheel {
  width: 4px;
  height: 8px;
  background: #fff;
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translate(-50%);
  border-radius: 2px;
  animation: scrollWheel 1.5s infinite;
}

.section-vision {
  background: #fff;
  padding: 8rem 0;
  overflow: hidden;
}

.vision-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 5rem;
  align-items: center;
}

.vision-image-wrapper {
  position: relative;
}

.image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  transition: transform .5s ease;
}

.image-frame:hover {
  transform: rotate(0) scale(1.02);
}

.vision-img {
  width: 100%;
  height: auto;
  display: block;
}

.floating-card {
  position: absolute;
  bottom: -30px;
  right: -30px;
  background: #fff;
  padding: 2rem;
  border-radius: 15px;
  box-shadow: 0 20px 40px #0000001a;
  text-align: center;
  border: 1px solid rgba(0,0,0,.05);
  z-index: 2;
  animation: float 6s ease-in-out infinite;
}

.stat-number {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: .9rem;
  color: var(--text-dark);
  font-weight: 500;
}

.sub-heading {
  font-family: Outfit, sans-serif;
  line-height: 1.1;
  text-transform: uppercase;
  color: var(--brand-red);
  letter-spacing: 2px;
  font-size: .9rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: block;
}

.vision-content h2 {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  font-family: Playfair Display,serif;
}

.feature-list {
  margin-top: 2rem;
}

.feature-list li {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.icon {
  font-size: 1.5rem;
  width: 50px;
  height: 50px;
  background: #d4af371a;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}

.btn-link {
  color: var(--primary);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 3px;
  transition: all .3s;
}

.btn-link:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

.section-welcome {
  padding: 8rem 0;
  background: #fff;
}

.welcome-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.welcome-text h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  font-family: Playfair Display,serif;
}

.welcome-text p {
  margin-bottom: 1rem;
  color: #475569;
  line-height: 1.9;
}

.welcome-stats {
  display: flex;
  gap: 2.5rem;
  margin: 2.5rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}

.stat-item {
  text-align: center;
}

.stat-item:nth-child(1) .stat-num {
  color: var(--primary);
}

.stat-item:nth-child(2) .stat-num {
  color: var(--brand-red);
}

.stat-item:nth-child(3) .stat-num {
  color: var(--brand-purple);
}

.stat-text {
  font-size: .85rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 5px;
}

.welcome-image, .image-stack {
  position: relative;
}

.image-stack .img-main {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 2;
}

.image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 60%;
  height: 60%;
  background: linear-gradient(135deg,var(--primary),var(--accent));
  border-radius: 20px;
  z-index: 1;
  opacity: .15;
}

.section-pillars {
  padding: 8rem 0;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}

.pillar-card {
  background: #ffffff0a;
  border: 1px solid rgba(255,255,255,.06);
  padding: 3rem 2.5rem;
  border-radius: 20px;
  text-align: center;
  transition: all .4s ease;
  position: relative;
  overflow: hidden;
}

.pillar-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,transparent,var(--primary),transparent);
  opacity: 0;
  transition: opacity .3s;
}

.pillar-card:hover:before {
  opacity: 1;
}

.pillar-card:hover {
  background: #ffffff14;
  transform: translateY(-5px);
}

.pillar-card.featured {
  background: #d4af3714;
  border-color: #d4af3733;
}

.pillar-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: #d4af371a;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
}

.pillar-card h3 {
  color: #fff;
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pillar-card p {
  color: #ffffffb3;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.pillar-verse {
  font-style: italic;
  font-size: .9rem;
  color: var(--primary);
  opacity: .8;
  padding-top: 1rem;
  border-top: 1px solid rgba(255,255,255,.05);
}

.section-values {
  padding: 8rem 0;
  background: #fff;
}

.values-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.value-item {
  flex: 0 1 180px;
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  transition: all .3s;
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
}

.value-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px #00000014;
  border-color: var(--brand-red);
}

.value-item:nth-child(2n):hover {
  border-color: var(--brand-purple);
}

.value-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.value-item h3 {
  font-size: 1.1rem;
  margin-bottom: .5rem;
}

.value-item p {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.6;
}

.scripture-banner {
  background: linear-gradient(135deg,var(--secondary),#1a1040);
  padding: 6rem 0;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.scripture-banner:before {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle,rgba(212,175,55,.08),transparent 70%);
  top: -200px;
  left: -100px;
  border-radius: 50%;
}

.scripture-banner:after {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle,rgba(142,68,173,.08),transparent 70%);
  bottom: -150px;
  right: -50px;
  border-radius: 50%;
}

.scripture-content {
  position: relative;
  z-index: 2;
}

.quote-icon {
  color: var(--primary);
  opacity: .5;
  margin-bottom: 1.5rem;
}

.scripture-content blockquote {
  font-family: Playfair Display,serif;
  font-size: 2.5rem;
  font-style: italic;
  max-width: 800px;
  margin: 0 auto 1.5rem;
  font-weight: 400;
  line-height: 1.4;
}

.scripture-content cite {
  font-style: normal;
  color: var(--primary);
  font-size: 1.1rem;
  letter-spacing: 1px;
}

.section-leadership {
  padding: 8rem 0;
}

.leadership-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 5rem;
  align-items: center;
}

.leader-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.leader-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.leader-photo {
  position: relative;
}

.leader-badge {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translate(-50%);
  background: var(--primary);
  color: var(--secondary);
  padding: .5rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: .9rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  box-shadow: var(--shadow-glow);
  z-index: 3;
}

.leader-info h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-family: Playfair Display,serif;
}

.leader-info p {
  color: #475569;
  line-height: 1.9;
  margin-bottom: 1rem;
}

.leader-highlights {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}

.highlight-item {
  padding: 1rem 1.5rem;
  background: var(--bg-light);
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.highlight-item strong {
  display: block;
  color: var(--primary);
  font-size: 1.1rem;
  margin-bottom: 2px;
}

.highlight-item span {
  font-size: .85rem;
  color: #64748b;
}

.section-ministries {
  padding: 8rem 0;
  background: var(--bg-light);
}

.ministry-showcase {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 1.5rem;
}

.ministry-card {
  background: #fff;
  padding: 2rem 1.5rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px #0000000a;
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
  text-align: center;
  border: 1px solid rgba(0,0,0,.04);
  position: relative;
  overflow: hidden;
}

.ministry-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transition: transform .3s ease;
}

.ministry-card:hover:after {
  transform: scaleX(1);
}

.ministry-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px #0000001a;
}

.ministry-card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.ministry-card h3 {
  font-size: 1.15rem;
  margin-bottom: .6rem;
  color: var(--secondary);
}

.ministry-card p {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.6;
}

.section-gallery-strip {
  padding: 3rem 0;
  background: var(--secondary);
  overflow: hidden;
}

.gallery-marquee {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.gallery-slide {
  flex-shrink: 0;
  width: 350px;
  height: 250px;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .5s;
}

.gallery-slide:hover img {
  transform: scale(1.1);
}

.gallery-strip-cta {
  text-align: center;
  padding-top: 2rem;
}

.gallery-strip-cta .btn-link {
  color: #ffffffb3;
  border-color: #ffffff4d;
}

.gallery-strip-cta .btn-link:hover {
  color: var(--primary);
  border-color: var(--primary);
}

@keyframes marquee {
  0% {
    transform: translate(0);
  }
  to {
    transform: translate(-50%);
  }
}

.section-testimonials {
  padding: 8rem 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 2rem;
}

.testimonial-card {
  background: #ffffff0a;
  border: 1px solid rgba(255,255,255,.06);
  padding: 2.5rem;
  border-radius: 20px;
  transition: all .3s;
}

.testimonial-card:hover {
  background: #ffffff14;
  transform: translateY(-5px);
}

.testimonial-stars {
  color: var(--brand-red);
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  letter-spacing: 3px;
}

.testimonial-card p {
  color: #fffc;
  line-height: 1.8;
  font-size: 1rem;
  margin-bottom: 2rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.testimonial-author strong {
  color: #fff;
  display: block;
  font-size: .95rem;
}

.testimonial-author span {
  color: #ffffff80;
  font-size: .85rem;
}

.section-community {
  padding: 8rem 0;
  background: #fff;
}

.community-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 5rem;
  align-items: center;
}

.community-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  font-family: Playfair Display,serif;
}

.community-content>p {
  color: #475569;
  line-height: 1.9;
  margin-bottom: 2rem;
}

.commitment-list {
  margin-top: 2rem;
}

.commitment-item {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
  align-items: flex-start;
}

.commitment-icon {
  font-size: 1.8rem;
  width: 55px;
  height: 55px;
  background: #d4af371a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}

.commitment-item h3 {
  font-size: 1.1rem;
  margin-bottom: .3rem;
}

.commitment-item p {
  font-size: .95rem;
  color: #64748b;
  line-height: 1.6;
}

.impact-card {
  background: linear-gradient(135deg,var(--secondary),#1a1040);
  color: #fff;
  padding: 3rem;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.impact-header {
  font-family: Outfit,sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--primary);
}

.impact-row {
  margin-bottom: 1.5rem;
}

.impact-label {
  font-size: .9rem;
  color: #ffffffb3;
  margin-bottom: .5rem;
  display: block;
}

.impact-bar {
  height: 8px;
  background: #ffffff1a;
  border-radius: 10px;
  overflow: hidden;
}

.impact-fill {
  height: 100%;
  background: linear-gradient(90deg,var(--primary),var(--primary-glow));
  border-radius: 10px;
  transition: width 1.5s ease;
}

.impact-note {
  font-style: italic;
  font-size: .9rem;
  color: #ffffff80;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.05);
}

.section-giving {
  padding: 6rem 0;
}

.giving-horizontal {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
}

.giving-text h2 {
  font-size: 2.3rem;
  margin-bottom: 1.5rem;
  font-family: Playfair Display,serif;
}

.giving-text p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.giving-verse {
  background: var(--bg-light);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: #475569;
}

.giving-verse cite {
  display: block;
  margin-top: .5rem;
  font-style: normal;
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
}

.giving-card {
  background: var(--bg-light);
  padding: 2rem;
  border-radius: 16px;
  margin-bottom: 1.5rem;
  border: 1px solid #e2e8f0;
  text-align: center;
}

.giving-card h3 {
  font-size: 1rem;
  color: var(--secondary);
  margin-bottom: .5rem;
}

.giving-detail {
  font-family: JetBrains Mono,Courier New,monospace;
  font-size: 1.1rem;
  color: var(--secondary);
  font-weight: 600;
}

.section-map {
  position: relative;
  height: 450px;
  padding: 0;
}

.section-map iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.map-info-overlay {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  z-index: 10;
}

.map-card {
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: 0 20px 60px #0003;
  max-width: 320px;
}

.map-card h3 {
  color: var(--secondary);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.map-card p {
  color: #475569;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.cta-social {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  color: #ffffff80;
  font-size: .9rem;
}

.cta-social a {
  color: #ffffffb3;
  border-bottom: 1px solid rgba(255,255,255,.2);
  padding-bottom: 2px;
  transition: all .3s;
}

.cta-social a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.ministry-scroller {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.icon-box {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

.photo-gallery {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 1.5rem;
  grid-auto-rows: 280px;
}

.photo-item {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform .6s ease;
}

.photo-item:hover img {
  transform: scale(1.08);
}

.photo-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(transparent,#0a0f1ccc);
  color: #fff;
  font-weight: 600;
  font-size: .95rem;
  opacity: 0;
  transform: translateY(10px);
  transition: all .4s ease;
}

.photo-item:hover .photo-caption {
  opacity: 1;
  transform: translateY(0);
}

.photo-wide {
  grid-column: span 2;
}

.photo-tall {
  grid-row: span 2;
}

@media (max-width:900px) {
  .photo-gallery {
    grid-template-columns: repeat(2,1fr);
    grid-auto-rows: 220px;
  }
  .photo-wide {
    grid-column: span 1;
  }
  .photo-tall {
    grid-row: span 1;
  }
}

@media (max-width:600px) {
  .photo-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

@keyframes slowZoom {
  0% {
    transform: scale(1);
  }
  to {
    transform: scale(1.1);
  }
}

@keyframes scrollWheel {
  0% {
    top: 5px;
    opacity: 1;
  }
  to {
    top: 25px;
    opacity: 0;
  }
}

@keyframes float {
  0%, to {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(40px);
  transition: all 1s ease;
}

.reveal-left {
  opacity: 0;
  transform: translate(-40px);
  transition: all 1s ease;
}

.reveal-right {
  opacity: 0;
  transform: translate(40px);
  transition: all 1s ease;
}

.active.reveal-up, .active.reveal-left, .active.reveal-right {
  opacity: 1;
  transform: translate(0);
}

@keyframes bounce {
  0%, to {
    transform: translate(-50%) translateY(0);
  }
  50% {
    transform: translate(-50%) translateY(-10px);
  }
}

@media (max-width:1100px) {
  .ministry-showcase {
    grid-template-columns: repeat(2,1fr);
  }
  .pillars-grid {
    gap: 1.25rem;
  }
  /* all five core values on one row */
  .value-item {
    flex: 1 1 0;
    padding: 2rem 1rem;
  }
  .welcome-text h2 {
    font-size: 2.3rem;
  }
}

@media (max-width:900px) {
  .hero-content-premium .hero-title {
    font-size: 3rem;
  }
  .page-header h1 {
    font-size: 2.5rem;
  }
  .page-header {
    padding: 8rem 0 3rem;
  }
  .section-title h2, .section-header h2 {
    font-size: 2rem;
  }
  .cta-box h2 {
    font-size: 2.2rem;
  }
  .welcome-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .welcome-text h2 {
    font-size: 2.2rem;
  }
  .welcome-stats {
    gap: 1.5rem;
  }
  .vision-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .vision-content h2 {
    font-size: 2.2rem;
  }
  .leadership-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .leader-info h2 {
    font-size: 2rem;
  }
  .community-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .community-content h2 {
    font-size: 2rem;
  }
  .giving-horizontal {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .giving-text h2 {
    font-size: 2rem;
  }
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  .ministry-showcase {
    grid-template-columns: repeat(2,1fr);
  }
  .scripture-content blockquote {
    font-size: 1.8rem;
  }
  .values-grid {
    gap: 1rem;
  }
  .value-item {
    flex: 0 1 calc((100% - 2rem) / 3);
    padding: 1.5rem 1rem;
  }
  .pillars-grid {
    grid-template-columns: 1fr;
  }
  section, .section {
    padding: 4rem 0;
  }
  .section-welcome, .section-pillars, .section-leadership, .section-ministries, .section-testimonials, .section-community {
    padding: 5rem 0;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .mobile-menu-btn {
    display: block;
    color: #fff;
  }
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 75%;
    background: var(--secondary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    transition: right .4s ease;
    z-index: 1001;
    gap: 2rem;
    box-shadow: -10px 0 40px #00000080;
  }
  .nav-links.active {
    right: 0;
  }
  .nav-links a {
    font-size: 1.2rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .btn-secondary {
    margin-left: 0;
  }
  .floating-card {
    bottom: -15px;
    right: -10px;
    padding: 1.2rem;
  }
  .stat-number {
    font-size: 1.8rem;
  }
  .contact-grid {
    grid-template-columns: 1fr!important;
  }
  .grid-2 {
    grid-template-columns: 1fr!important;
    gap: 2rem!important;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .map-info-overlay {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 2rem;
  }
  .section-map {
    height: auto;
  }
  .section-map iframe {
    position: relative;
  }
  .gallery-slide {
    width: 280px;
    height: 200px;
  }
  .cta-social {
    flex-wrap: wrap;
  }
  .leader-highlights {
    gap: 1rem;
  }
}

@media (max-width:600px) {
  .hero-content-premium .hero-title {
    font-size: 2.2rem;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .welcome-stats {
    flex-direction: column;
    gap: 1rem;
  }
  .stat-num {
    font-size: 2rem;
  }
  .ministry-showcase {
    grid-template-columns: 1fr;
  }
  .values-grid {
    flex-direction: column;
    align-items: center;
  }
  .value-item {
    flex: 0 1 auto;
    width: 100%;
  }
  .scripture-content blockquote {
    font-size: 1.4rem;
  }
  .pillar-card {
    padding: 2rem 1.5rem;
  }
  .gallery-slide {
    width: 220px;
    height: 160px;
  }
}

/* ==========================================================================
   2. COMPONENTS
   ========================================================================== */

/* ---------- Header: Community mega menu ---------- */
.navbar {
  position: relative;
}

.nav-links .has-mega {
  position: static;
}

.nav-item-row {
  display: flex;
  align-items: center;
  gap: .35rem;
}

.mega-toggle {
  background: none;
  border: 0;
  padding: 4px;
  color: rgba(255,255,255,.7);
  cursor: pointer;
  display: flex;
  align-items: center;
  border-radius: 50%;
  transition: color .3s,transform .3s;
}

.mega-toggle:hover, .mega-toggle:focus-visible {
  color: var(--primary);
}

.mega-toggle svg {
  transition: transform .3s ease;
}

.has-mega:hover .mega-toggle svg, .has-mega.open .mega-toggle svg {
  transform: rotate(180deg);
}

/* widen the hover target down to the panel so the menu doesn't close on the way */
.has-mega>.nav-item-row {
  padding: 1.25rem 0;
  margin: -1.25rem 0;
}

.mega-menu {
  position: absolute;
  top: 100%;
  right: 24px;
  width: min(780px,calc(100% - 48px));
  padding-top: 1.25rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .25s ease .1s,transform .25s ease .1s,visibility 0s linear .35s;
  z-index: 1002;
}

.has-mega:hover>.mega-menu, .has-mega.open>.mega-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}

.mega-inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 1.5rem;
  background: rgba(10,15,28,.97);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 1.5rem;
  box-shadow: 0 25px 60px rgba(0,0,0,.45);
  position: relative;
  overflow: hidden;
}

.mega-inner:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg,transparent,var(--primary),transparent);
}

.nav-links .mega-feature {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 230px;
  padding: 1.75rem;
  border-radius: 14px;
  background: linear-gradient(to top,rgba(10,15,28,.95) 10%,rgba(106,13,173,.45)) #1a1040;
  color: #fff;
  font-weight: 400;
}

.mega-eyebrow {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .7rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: .5rem;
}

.mega-feature strong {
  display: block;
  font-family: "Playfair Display",serif;
  font-size: 1.8rem;
  line-height: 1.1;
  margin-bottom: .5rem;
  color: #fff;
}

.mega-feature p {
  font-size: .9rem;
  line-height: 1.5;
  color: rgba(255,255,255,.75);
  margin-bottom: 1rem;
}

.mega-feature-link {
  font-weight: 600;
  font-size: .9rem;
  color: var(--primary);
  border-bottom: 2px solid var(--primary);
  align-self: flex-start;
  padding-bottom: 2px;
  transition: all .3s;
}

/* the photo loads only once the menu is first used (main.js adds .mega-ready) */
.has-mega.mega-ready .mega-feature {
  background-image: linear-gradient(to top,rgba(10,15,28,.95) 10%,rgba(106,13,173,.45)), url(/images/congregation-sm.webp);
  background-position: center;
  background-size: cover;
}

.nav-links .mega-feature:hover .mega-feature-link {
  color: #fff;
  border-color: #fff;
}

.mega-heading {
  display: block;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: .75rem;
  font-weight: 700;
  color: var(--brand-red);
  margin: .25rem 0 .75rem .75rem;
  font-family: Outfit,sans-serif;
}

.mega-links ul {
  display: grid;
  gap: .25rem;
}

.nav-links .mega-links a {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .7rem .75rem;
  border-radius: 12px;
  font-size: .95rem;
  color: rgba(255,255,255,.9);
}

.nav-links .mega-links a:hover, .nav-links .mega-links a:focus-visible, .nav-links .mega-links a.active {
  background: rgba(255,255,255,.06);
  color: var(--primary);
}

.mega-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(212,175,55,.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.nav-links .mega-links a:hover .mega-icon {
  background: var(--primary);
  color: var(--secondary);
}

/* ---------- Header: active page ---------- */
@media (min-width: 901px) {
  .nav-links > li > a.active:not(.btn-nav)::after,
  .nav-item-row > a.active::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    border-radius: 2px;
    background: var(--primary);
  }
  .nav-links .btn-nav.active {
    border-color: var(--primary);
  }
}

/* ---------- Header: menu button (hamburger -> X) ---------- */
.mobile-menu-btn {
  position: relative;
  z-index: 1002;
  background: none;
  border: 0;
  padding: 6px;
  margin-right: -6px;
  line-height: 0;
  border-radius: 8px;
}

.mobile-menu-btn line {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .3s ease, opacity .2s ease;
}

.mobile-menu-btn.is-open line:nth-child(1) {
  opacity: 0;
}

.mobile-menu-btn.is-open line:nth-child(2) {
  transform: translateY(6px) rotate(45deg);
}

.mobile-menu-btn.is-open line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Header: mobile drawer ---------- */
@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
  }

  /* keep the logo visible on top of the full-width drawer */
  .logo-container {
    position: relative;
    z-index: 1002;
  }

  .nav-links {
    width: min(100%, 420px);
    right: -100%;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 0 1.5rem 2.5rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: linear-gradient(180deg, var(--secondary) 0%, #120c2e 100%);
    /* closed: hidden (no shadow bleeding in at the screen edge, links out of the tab order);
       visibility switches only after the slide-out has finished */
    box-shadow: none;
    visibility: hidden;
    transition: right .4s ease, visibility 0s linear .4s;
  }

  .nav-links.active {
    visibility: visible;
    box-shadow: -10px 0 40px #00000080;
    transition: right .4s ease, visibility 0s;
  }

  /* solid strip behind the logo + close button (it also provides the drawer's top spacing);
     links scroll underneath it */
  .nav-links:before {
    content: "";
    position: sticky;
    top: 0;
    z-index: 1;
    flex: 0 0 6.5rem;
    margin: 0 -1.5rem;
    background: var(--secondary);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-links > li {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
  }

  .nav-links > li > a,
  .nav-item-row > a {
    display: block;
    padding: 1rem .25rem;
    font-size: 1.1rem;
  }

  .nav-links a.active {
    color: var(--primary);
  }

  .nav-links > li > a.active:not(.btn-nav),
  .nav-item-row > a.active {
    box-shadow: inset 3px 0 0 var(--primary);
    padding-left: 1rem;
  }

  /* Contact becomes a full-width gold button at the bottom */
  .nav-links > li:last-child {
    border-bottom: 0;
    margin-top: 1.75rem;
  }

  .nav-links .btn-nav {
    display: block;
    text-align: center;
    padding: .9rem 1.5rem;
    background: var(--primary);
    border-color: var(--primary);
    color: var(--secondary);
    font-weight: 700;
  }

  .nav-links .btn-nav.active,
  .nav-links .btn-nav:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    color: #fff;
  }

  /* Community row: link on the left, large chevron toggle on the right */
  .nav-links .has-mega {
    display: block;
  }

  .has-mega > .nav-item-row {
    justify-content: space-between;
    padding: 0;
    margin: 0;
  }

  .nav-item-row > a {
    flex: 1;
  }

  .mega-toggle {
    width: 44px;
    height: 44px;
    justify-content: center;
    background: rgba(255, 255, 255, .06);
    border-radius: 10px;
    color: #fff;
  }

  .has-mega:hover .mega-toggle svg {
    transform: none;
  }

  .has-mega.open .mega-toggle {
    background: rgba(212, 175, 55, .15);
    color: var(--primary);
  }

  .has-mega.open .mega-toggle svg {
    transform: rotate(180deg);
  }

  /* Accordion: animates open with the grid-rows technique */
  .mega-menu,
  .has-mega:hover > .mega-menu {
    position: static;
    width: 100%;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
  }

  .has-mega.open > .mega-menu {
    grid-template-rows: 1fr;
  }

  .mega-inner {
    display: block;
    min-height: 0;
    overflow: hidden;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    margin: 0;
    padding: 0;
  }

  .mega-inner:before,
  .nav-links .mega-feature,
  .mega-heading {
    display: none;
  }

  .mega-links ul {
    gap: .15rem;
    padding: .25rem 0 1rem .5rem;
  }

  .nav-links .mega-links a {
    font-size: .98rem;
    line-height: 1.35;
    padding: .6rem .75rem;
    gap: .85rem;
    color: rgba(255, 255, 255, .8);
  }

  .mega-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
  }

  .mega-icon svg {
    width: 18px;
    height: 18px;
  }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
  .mega-menu,
  .has-mega:hover > .mega-menu,
  .mobile-menu-btn line {
    transition: none;
  }
}

/* ---------- Footer: fourth column ---------- */
.footer-grid {
  grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr;
  gap: 3rem;
}


@media (max-width:1100px) {
  .footer-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

/* two columns on tablets, one on phones */
@media (max-width:600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Page header extras ---------- */
.page-badge {
  display: inline-block;
  padding: .5rem 1.5rem;
  background: rgba(212,175,55,.2);
  border: 1px solid var(--primary);
  border-radius: 50px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1.5rem;
  position: relative;
}

/* small phones: keep badges like "Registered Charity No. 1218245" on one line */
@media (max-width: 420px) {
  .page-badge {
    padding: .45rem 1rem;
    font-size: .7rem;
    letter-spacing: 1px;
  }
}

.page-header .container {
  position: relative;
}

/* ---------- Taglines & statement band ---------- */
.tagline {
  font-family: "Playfair Display",serif;
  font-style: italic;
  font-size: 1.3rem;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.statement-banner blockquote {
  font-style: normal;
}

.statement-banner blockquote em {
  display: block;
  font-style: italic;
  color: var(--primary);
}

/* ---------- Programme cards ---------- */
.programme-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.programme-card {
  flex: 0 1 calc((100% - 4rem)/3);
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(0,0,0,.05);
  border-radius: 20px;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  position: relative;
  overflow: hidden;
  color: var(--text-dark);
  transition: all .4s cubic-bezier(.175,.885,.32,1.275);
}

.programme-card:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,var(--primary),var(--brand-red),var(--brand-purple));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.programme-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12);
}

.programme-card:hover:after {
  transform: scaleX(1);
}

.programme-num {
  position: absolute;
  top: 1.25rem;
  right: 1.75rem;
  font-family: Outfit,sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 1;
  color: rgba(10,15,28,.06);
  transition: color .3s;
}

.programme-card:hover .programme-num {
  color: rgba(212,175,55,.3);
}

.programme-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: rgba(212,175,55,.1);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all .3s;
}

.programme-card:hover .programme-icon {
  background: var(--primary);
  color: var(--secondary);
}

.programme-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: .5rem;
}

.programme-card h3 {
  font-size: 1.4rem;
  color: var(--secondary);
  margin-bottom: 1.5rem;
}

.programme-more {
  margin-top: auto;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.programme-more span {
  transition: transform .3s;
}

.programme-card:hover .programme-more span {
  transform: translateX(5px);
}

/* compact variant for "other programmes" strips */
.programme-grid.compact {
  gap: 1.5rem;
}

.programme-grid.compact .programme-card {
  flex-basis: calc((100% - 4.5rem)/4);
  padding: 1.75rem 1.5rem 1.5rem;
}

.programme-grid.compact .programme-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 1rem;
}

.programme-grid.compact .programme-card h3 {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.programme-grid.compact .programme-num {
  font-size: 2.2rem;
}

/* 5 programme cards stay 3 + 2 down to 900px; the 4-card compact strip goes 2 × 2 */
@media (max-width:1100px) {
  .programme-grid.compact .programme-card {
    flex-basis: calc((100% - 2rem)/2);
  }
}

@media (max-width:900px) {
  .programme-card {
    flex-basis: calc((100% - 2rem)/2);
  }
}

@media (max-width:600px) {
  .programme-card, .programme-grid.compact .programme-card {
    flex-basis: 100%;
  }
}

/* ---------- Programme pages: event card, checklist, statement lead ---------- */
/* Dark "When & Where" panel beside intro text */
.event-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary), #1a1040);
  color: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}

.event-card:before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -160px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .15), transparent 70%);
  pointer-events: none;
}

/* Eyebrow labels on dark backgrounds are gold: brand red is too low-contrast on navy/purple.
   Add any new dark container to this list. */
.bg-dark .sub-heading,
.section-cta .sub-heading,
.worship-times .sub-heading,
.event-card .sub-heading,
.soon-card .sub-heading,
.scripture-banner .sub-heading,
.mega-links .mega-heading {
  color: var(--primary);
}

.event-card .sub-heading {
  margin-bottom: .5rem;
}

.event-card h3 {
  font-family: "Playfair Display", serif;
  font-size: 2rem;
  color: #fff;
  margin-bottom: 1.25rem;
}

.event-details li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.event-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 12px;
  background: rgba(212, 175, 55, .12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-label {
  display: block;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, .55);
  margin-bottom: .15rem;
}

.event-details strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
  line-height: 1.3;
  color: #fff;
}

.event-sub {
  display: block;
  font-size: .9rem;
  color: rgba(255, 255, 255, .6);
}

.event-card .btn-glow {
  margin-top: 2rem;
  position: relative;
}

/* Light "What to bring" card with gold ticks */
.bring-card {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  padding: 2.5rem;
}

.bring-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 500;
  font-size: 1.05rem;
}

.check-list li:last-child {
  border-bottom: 0;
}

.check-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bring-card-note {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: .9rem;
  color: #64748b;
}

/* Large centred Playfair sentence, closing phrase in gold italics */
.statement-lead {
  max-width: 800px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-family: "Playfair Display", serif;
  font-size: 1.8rem;
  line-height: 1.4;
  color: var(--secondary);
}

.statement-lead em {
  display: block;
  color: var(--primary);
}

/* Programme flyer beside the "More than…" text (Soteria Care, Faith Footsteps & Fitness) */
.flyer-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 4rem;
  align-items: center;
}

.flyer {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0;
  justify-self: center;
}

/* soft gold-to-purple block offset behind the flyer, like the welcome photos */
.flyer:before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  opacity: .15;
}

.flyer img {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.flyer-text h2 {
  font-size: 2.5rem;
}

.flyer-text p:not(.statement-lead) {
  margin-top: 1rem;
}

@media (max-width: 900px) {
  .flyer-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  .flyer {
    max-width: 460px;
  }
  .flyer-text h2 {
    font-size: 2rem;
  }
}

@media (max-width: 600px) {
  .flyer:before {
    inset: .75rem -.6rem -.6rem .75rem;
  }
}

.cta-buttons-start {
  justify-content: flex-start;
}

/* Keep wrapped button labels centred on narrow screens */
.cta-buttons .btn {
  text-align: center;
}

/* Topic cards (e.g. "What We Cover"): icon + short text, 3 per row, centred */
.topic-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
}

.topic-card {
  flex: 0 1 calc((100% - 3rem) / 3);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
}

.topic-card .programme-icon {
  margin-bottom: 1.25rem;
}

.topic-card p {
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  line-height: 1.4;
  color: var(--secondary);
}

/* Topic card with a heading + description instead of a single label */
.topic-card h3 {
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

.topic-card p.topic-desc {
  font-family: Inter, sans-serif;
  font-weight: 400;
  font-size: .95rem;
  line-height: 1.7;
  color: #64748b;
}

/* Highlighted note under a grid: icon + heading + text, gold left edge */
.callout {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  max-width: 800px;
  margin: 3rem auto 0;
  padding: 1.75rem 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
}

.callout h3 {
  font-size: 1.25rem;
  margin-bottom: .4rem;
}

.callout p {
  color: #475569;
}

/* Four-per-row variant for longer lists (7 = 4 + 3) */
.topic-grid-four .topic-card {
  flex-basis: calc((100% - 4.5rem) / 4);
  padding: 1.75rem 1.25rem;
}

.topic-grid-four .topic-card p {
  font-size: 1.02rem;
}

@media (max-width: 900px) {
  .topic-card,
  .topic-grid-four .topic-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 600px) {
  .topic-card,
  .topic-grid-four .topic-card {
    flex-basis: 100%;
  }
  .callout {
    flex-direction: column;
    padding: 1.5rem;
  }
}

/* ---------- Governance: key facts + people cards ---------- */
.fact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  list-style: none;
  margin-top: 3rem;
}

.fact-item {
  flex: 0 1 240px;
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-top: 3px solid var(--primary);
  border-radius: 14px;
}

.fact-item:nth-child(2) {
  border-top-color: var(--brand-red);
}

.fact-item:nth-child(3) {
  border-top-color: var(--brand-purple);
}

.fact-item strong {
  display: block;
  font-family: Outfit, sans-serif;
  font-size: 1.1rem;
  color: var(--secondary);
}

.fact-item span {
  font-size: .9rem;
  color: #64748b;
}

.people-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 1.5rem;
  list-style: none;
}

.person-card {
  flex: 0 1 calc((100% - 4.5rem) / 4);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem 1.25rem 1.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
}

.person-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}

/* Works on an <img> (real photo) or a <span> placeholder */
.person-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-glow);
  margin-bottom: 1.25rem;
}

.person-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary), var(--brand-purple));
  color: var(--primary);
  font-family: Outfit, sans-serif;
  font-weight: 700;
  font-size: 2.4rem;
  letter-spacing: 1px;
}

.person-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
  margin-bottom: .4rem;
}

.person-role {
  font-size: .9rem;
  line-height: 1.5;
  color: var(--brand-red);
  font-weight: 600;
}

@media (max-width: 960px) {
  .person-card {
    flex-basis: calc((100% - 3rem) / 3);
  }
}

/* key facts: three across on tablets, full width on phones */
@media (max-width: 900px) {
  .fact-item {
    flex: 1 1 0;
    min-width: 0;
  }
}

@media (max-width: 600px) {
  .fact-item {
    flex-basis: 100%;
  }
}

@media (max-width: 900px) {
  .person-card {
    flex-basis: calc((100% - 1.5rem) / 2);
  }
}

@media (max-width: 600px) {
  .people-grid {
    gap: 1rem;
  }
  .person-card {
    flex-basis: calc((100% - 1rem) / 2);
    padding: 1.5rem .75rem 1.25rem;
  }
  .person-photo {
    width: 96px;
    height: 96px;
    border-width: 3px;
    margin-bottom: .9rem;
  }
  .person-photo-placeholder {
    font-size: 1.7rem;
  }
  .person-card h3 {
    font-size: 1rem;
  }
  .person-role {
    font-size: .8rem;
  }
}

/* Numbered steps inside a .bring-card (e.g. "Our Approach") */
.bring-card-intro {
  color: #64748b;
  margin-bottom: .5rem;
}

.step-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  list-style: none;
  margin-top: 1rem;
}

.step-list li {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--secondary);
}

.step-num {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--primary);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: .95rem;
}

/* Inline link inside body copy */
.text-link {
  color: var(--primary);
  font-weight: 600;
  border-bottom: 1px solid rgba(212, 175, 55, .4);
}

.text-link:hover {
  color: var(--secondary);
  border-color: var(--secondary);
}

/* Partner logos */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.partner-card {
  flex: 0 1 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  padding: 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  text-align: center;
  color: var(--secondary);
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
}

a.partner-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
  border-color: rgba(212, 175, 55, .4);
}

.partner-logo {
  height: 120px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.partner-logo img {
  max-height: 120px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* The supplied Felix image has selection handles and a thin border at its
   edges; trim them until a clean logo file is available. */
.partner-logo-felix {
  clip-path: inset(2% 1.5% round 10px);
}

.partner-card strong {
  font-family: Outfit, sans-serif;
  font-size: 1.15rem;
}

.image-credit {
  margin-top: 2rem;
  text-align: center;
  font-size: .8rem;
  color: #64748b;
  word-break: break-word;
}

.image-credit a {
  text-decoration: underline;
}

@media (max-width: 600px) {
  .step-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .event-card,
  .bring-card {
    padding: 2rem 1.5rem;
  }
  .event-card .btn-glow {
    font-size: 1rem;
    padding: 1rem 1.25rem;
    white-space: nowrap;
  }
  .statement-lead {
    font-size: 1.4rem;
  }
}

/* ---------- Service times + weekly open hours band (home + visit) ---------- */
.worship-times {
  position: relative;
  overflow: hidden;
  padding: 7rem 0;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(10, 15, 28, .95) 0%, rgba(26, 16, 64, .93) 55%, rgba(76, 12, 128, .88) 100%) #1a1040;
}

/* the photo texture loads when the band nears the viewport (main.js adds .bg-ready) */
.worship-times.bg-ready {
  background:
    linear-gradient(160deg, rgba(10, 15, 28, .95) 0%, rgba(26, 16, 64, .93) 55%, rgba(76, 12, 128, .88) 100%),
    url(/images/listening-bg.webp) center 30% / cover no-repeat;
}

.worship-times:before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  top: -260px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .12), transparent 70%);
  pointer-events: none;
}

.worship-times .container {
  position: relative;
  z-index: 1;
  max-width: 1100px;
}

.worship-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3.5rem;
}

.worship-head h2 {
  color: #fff;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.worship-head p {
  color: rgba(255, 255, 255, .75);
  font-size: 1.1rem;
}

.times-block + .times-block {
  margin-top: 3.5rem;
}

.times-label {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .9rem;
  margin-bottom: 1.5rem;
}

.times-label h3 {
  color: #fff;
  font-size: 1.5rem;
  margin: 0;
}

.times-label-line {
  flex: 1;
  min-width: 40px;
  height: 1px;
  background: linear-gradient(90deg, rgba(212, 175, 55, .5), rgba(212, 175, 55, 0));
}

.times-note {
  color: rgba(255, 255, 255, .7);
  margin: -.5rem 0 1.5rem;
}

.worship-times .text-link:hover {
  color: #fff;
  border-color: #fff;
}

/* Service tiles: calendar-style day block + details */
.service-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.service-tile {
  display: flex;
  align-items: stretch;
  gap: 1.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all .4s ease;
}

.service-tile:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(212, 175, 55, .35);
  transform: translateY(-4px);
}

.st-date {
  flex: 0 0 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem .5rem;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--primary-glow) 0%, var(--primary) 60%);
  color: var(--secondary);
  text-align: center;
  box-shadow: var(--shadow-glow);
}

.service-tile-alt .st-date {
  background: linear-gradient(160deg, #9b4fdc 0%, var(--brand-purple) 70%);
  color: #fff;
  box-shadow: var(--shadow-purple);
}

.st-day {
  font-family: Outfit, sans-serif;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.st-freq {
  margin-top: .45rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  opacity: .8;
}

.st-body h4 {
  color: #fff;
  font-size: 1.3rem;
  margin: .6rem 0 .35rem;
}

.st-tag {
  display: inline-block;
  padding: .2rem .75rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, .15);
  color: var(--primary);
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.st-tag-online {
  background: rgba(155, 79, 220, .25);
  color: #dcc2ff;
}

.st-time {
  font-family: Outfit, sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
  margin-bottom: .5rem;
}

.service-tile-alt .st-time {
  color: #dcc2ff;
}

.st-place {
  display: flex;
  align-items: flex-start;
  gap: .45rem;
  font-size: .92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, .7);
}

.st-place svg {
  flex-shrink: 0;
  margin-top: .2rem;
  color: var(--primary);
}

/* Weekly open hours: one quiet glass panel of three day groups, secondary to the service tiles.
   3 across on desktop, rows at ≤900px, label above time at ≤600px. main.js marks the group
   containing today (.is-today + aria-current + "Today" tag) and fills the open/closed pill. */
.open-hours {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.oh-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.3rem 1.5rem;
}

.oh-group + .oh-group {
  border-left: 1px solid var(--glass-border);
}

.oh-days {
  font-family: Outfit, sans-serif;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .65);
}

.oh-time {
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
}

/* Today (added by main.js): lighter glass, gold notch, gold label + "Today" tag */
.oh-group.is-today {
  background: rgba(255, 255, 255, .05);
}

.oh-group.is-today:before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.5rem;
  width: 2.5rem;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--primary);
  box-shadow: 0 0 12px rgba(212, 175, 55, .55);
}

.oh-group.is-today .oh-days {
  color: var(--primary);
}

.oh-today {
  display: inline-block;
  margin-left: .3rem;
  padding: 0 .55rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, .16);
  color: var(--primary);
  font-size: .65rem;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 1.5px;
  vertical-align: 1px;
}

.oh-today[hidden] {
  display: none;
}

/* Live "Open now / Closed now" pill (filled in by main.js; hidden without JS) */
.open-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-left: auto;
  padding: .45rem 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .85);
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.4;
}

.open-status[hidden] {
  display: none;
}

.open-status:before {
  content: "";
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
}

.open-status.is-open {
  background: rgba(212, 175, 55, .15);
  border-color: rgba(212, 175, 55, .4);
  color: var(--primary);
}

.open-status.is-open:before {
  background: var(--primary);
  box-shadow: 0 0 0 0 rgba(212, 175, 55, .6);
  animation: openPulse 2s infinite;
}

@keyframes openPulse {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, .6); }
  70% { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
  100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

.worship-cta {
  margin-top: 3.5rem;
}

@media (min-width: 901px) and (hover: hover) {
  .worship-times.bg-ready {
    background-attachment: scroll, fixed;
  }
}

@media (max-width: 1100px) {
  .service-tiles {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .worship-times {
    padding: 4.5rem 0;
  }
  .worship-head h2 {
    font-size: 2.2rem;
  }
  .open-status {
    margin-left: 0;
  }
  .open-hours {
    grid-template-columns: 1fr;
  }
  .oh-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
  }
  .oh-group + .oh-group {
    border-left: 0;
    border-top: 1px solid var(--glass-border);
  }
  .oh-group.is-today:before {
    top: .8rem;
    bottom: .8rem;
    left: 0;
    width: 3px;
    height: auto;
    border-radius: 0 3px 3px 0;
  }
}

@media (max-width: 600px) {
  .service-tile {
    gap: 1rem;
    padding: 1.1rem;
  }
  .st-date {
    flex-basis: 72px;
  }
  .st-day {
    font-size: 1.5rem;
  }
  .st-time {
    font-size: 1.2rem;
  }
  .times-label h3 {
    font-size: 1.3rem;
  }
  .open-status {
    padding: .4rem .85rem;
    font-size: .8rem;
  }
  .oh-group {
    flex-direction: column;
    align-items: flex-start;
    gap: .25rem;
    padding: .95rem 1.25rem;
  }
  .oh-time {
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .open-status.is-open:before {
    animation: none;
  }
}

/* Visit page: address + accessibility column beside the map */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 2rem;
  align-items: stretch;
}

.location-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.location-grid .map-container {
  height: auto;
  min-height: 460px;
}

.location-grid .map-frame {
  height: 100%;
}

.address-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.address-card .give-card-head {
  margin-bottom: 1rem;
}

.contact-actions.contact-actions-start {
  justify-content: flex-start;
  padding-top: 1.25rem;
}

@media (max-width: 900px) {
  .location-grid {
    grid-template-columns: 1fr;
  }
  .location-grid .map-container {
    min-height: 340px;
  }
}

/* ---------- Holding panel (content coming soon) ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 2rem;
}

.back-link:hover {
  color: var(--secondary);
}

.coming-soon {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
  padding: 3.5rem 2.5rem;
}

.coming-soon .programme-icon {
  margin: 0 auto 1.5rem;
  width: 80px;
  height: 80px;
}

.coming-soon h2 {
  font-family: "Playfair Display",serif;
  font-size: 2.2rem;
  margin-bottom: 1rem;
}

.coming-soon p {
  color: #475569;
  max-width: 560px;
  margin: 0 auto 2rem;
}

@media (max-width:600px) {
  .coming-soon {
    padding: 2.5rem 1.5rem;
  }
  .coming-soon h2 {
    font-size: 1.8rem;
  }
}

@media (prefers-reduced-motion:reduce) {
  .mega-menu, .programme-card, .programme-card:after, .mega-toggle svg {
    transition: none;
  }
}

/* ==========================================================================
   3. PAGE: HOME (index.html)
   ========================================================================== */

.our-governance-btn {
  margin: 2rem auto;
  text-align: center;
}
.resident-pastor {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 2.5rem 3.5rem;
  margin: 6rem auto 0;
  max-width: 900px;
}
.resident-pastor img {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  border: 4px solid var(--primary);
  box-shadow: var(--shadow-glow);
  flex-shrink: 0;
}
.resident-pastor strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  color: var(--secondary);
  line-height: 1.15;
  margin-bottom: 0.5rem;
}
.resident-pastor span {
  display: block;
  font-size: 1.1rem;
  color: #64748b;
}
.resident-pastor .resident-pastor-role {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--brand-red);
  margin-bottom: 0.6rem;
}
@media (max-width: 900px) {
  .resident-pastor {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
    padding: 2.5rem 1.5rem;
    margin-top: 4rem;
  }
  .resident-pastor img {
    width: 180px;
    height: 180px;
  }
  .resident-pastor strong {
    font-size: 1.9rem;
  }
}

/* Founders: clean white stage with soft brand glows, so it reads as its own
   moment after the dark scripture banner. */
.section-leadership {
  background:
    radial-gradient(circle at 8% 15%, rgba(212, 175, 55, 0.09), transparent 40%),
    radial-gradient(circle at 92% 85%, rgba(106, 13, 173, 0.06), transparent 40%),
    #fff;
}
.section-leadership .highlight-item {
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

/* Get Involved / Ministries: warm gold-tinted wash so the white cards pop,
   with a hairline divider where it meets the Founders section. */
.section-ministries {
  background: linear-gradient(180deg, #fbf6e8 0%, #fdfbf5 100%);
  border-top: 1px solid rgba(212, 175, 55, 0.2);
}
.section-ministries .ministry-card {
  border-color: rgba(212, 175, 55, 0.12);
}

/* ==========================================================================
   4. PAGE: OTHER
   ========================================================================== */

/* ---------- Beliefs (beliefs.html) ---------- */
.belief-item {
    margin-bottom: 2.5rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.belief-item:last-child {
    border-bottom: none;
}

.belief-item h3 {
    color: var(--primary);
    margin-bottom: 1rem;
}

/* ---------- Ministries (ministries.html) ---------- */
/* Intro jump links to each ministry area */
.ministries-intro {
  padding: 6rem 0 5rem;
}

.ministries-intro .section-title {
  margin-bottom: 2.5rem;
}

.area-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}

.area-link {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .7rem 1.3rem;
  border-radius: 50px;
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  color: var(--secondary);
}

.area-link .area-num {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  transition: color .3s;
}

.area-link:hover,
.area-link:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.area-link:hover .area-num,
.area-link:focus-visible .area-num {
  color: var(--secondary);
}

/* Area row: tall photo with the area name + cards; .reverse puts the photo on the right */
.ministry-area {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 2rem;
  align-items: stretch;
}

.ministry-area.reverse {
  grid-template-columns: 7fr 5fr;
}

.ministry-area.reverse .area-feature {
  order: 2;
}

.area-feature {
  position: relative;
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--secondary);
}

.area-feature img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform .8s ease;
}

.area-feature:hover img {
  transform: scale(1.04);
}

.area-feature:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 15, 28, .92) 0%, rgba(10, 15, 28, .45) 40%, rgba(10, 15, 28, 0) 70%);
}

.area-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 2rem;
}

.area-caption .area-num {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: var(--primary);
  margin-bottom: .5rem;
}

.area-caption h2 {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 2.1rem;
  line-height: 1.15;
  margin-bottom: .4rem;
}

.area-caption p {
  color: rgba(255, 255, 255, .75);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.area-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  list-style: none;
}

/* an odd card out spans the full width instead of leaving a gap */
.area-cards > li:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* Ministry card: icon + name, optional schedule chip, description, action link */
.min-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.6rem 1.5rem 1.4rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .05);
  border-radius: 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06);
  overflow: hidden;
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
}

.min-card:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}

.min-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, .1);
}

.min-card:hover:after {
  transform: scaleX(1);
}

.min-head {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: .9rem;
}

.min-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(212, 175, 55, .12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .3s;
}

.min-card:hover .min-icon {
  background: var(--primary);
  color: var(--secondary);
}

.min-card h3 {
  font-size: 1.2rem;
  line-height: 1.25;
}

.min-meta {
  align-self: flex-start;
  padding: .25rem .75rem;
  margin-bottom: .75rem;
  border-radius: 50px;
  background: rgba(106, 13, 173, .08);
  color: var(--brand-purple);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .5px;
}

.min-card p {
  color: #64748b;
  font-size: .95rem;
  line-height: 1.65;
}

.min-link {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}

.min-link span {
  display: inline-block;
  transition: transform .3s;
}

.min-link:hover {
  color: var(--secondary);
}

.min-link:hover span {
  transform: translateX(4px);
}

/* Small laptops / landscape tablets: the side-by-side rows are too tight, so stack them */
@media (min-width: 901px) and (max-width: 1100px) {
  .ministry-area,
  .ministry-area.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ministry-area.reverse .area-feature {
    order: 0;
  }
  .area-feature {
    min-height: 300px;
  }
  .area-cards:has(> :nth-child(3):last-child) {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .ministries-intro {
    padding: 4.5rem 0 3.5rem;
  }
  .ministry-area,
  .ministry-area.reverse {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ministry-area.reverse .area-feature {
    order: 0;
  }
  .area-feature {
    min-height: 260px;
  }
  .area-caption h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .area-cards {
    grid-template-columns: 1fr;
  }
  .area-feature {
    min-height: 250px;
  }
  /* the caption fills most of the short banner, so darken higher up to keep it legible */
  .area-feature:after {
    background: linear-gradient(to top, rgba(10, 15, 28, .95) 0%, rgba(10, 15, 28, .72) 55%, rgba(10, 15, 28, .3) 100%);
  }
  .area-caption {
    padding: 1.5rem;
  }
  .area-caption .area-num {
    font-size: 2.1rem;
  }
  .area-caption h2 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   5. PAGE STYLES
   Classes that replaced inline style="" attributes, grouped by page.
   ========================================================================== */

:root {
  --shadow-md: 0 4px 20px rgba(0, 0, 0, .06);
}

/* ---------- Shared: footer ---------- */
.footer-logo img {
  max-width: 60px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
}

.footer-logo span {
  font-weight: 700;
  color: #fff;
  margin-left: 10px;
  vertical-align: middle;
}

.footer-tagline {
  margin-top: 1rem;
}

/* ---------- Shared: content helpers ---------- */
.img-rounded {
  width: 100%;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.text-gold {
  color: var(--primary);
}

.lead-sm {
  font-size: 1.1rem;
}

.text-narrow {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.list-disc {
  list-style: disc;
  margin-left: 1.5rem;
  margin-top: 1rem;
}

.map-frame {
  border: 0;
}

.btn-block {
  width: 100%;
  text-align: center;
  justify-content: center;
}

/* ---------- Shared: forms ---------- */
.form-input {
  width: 100%;
  padding: .8rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  font: inherit;
}

.form-input-lg {
  padding: 1rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.check-label-consent {
  align-items: flex-start;
  font-size: .9rem;
}

.btn-submit {
  border: none;
  cursor: pointer;
}

.btn-submit-lg {
  font-size: 1.1rem;
}

.form-note {
  margin-top: 1rem;
  font-size: .9rem;
  opacity: .7;
}

/* ---------- Home (index.html) ---------- */
.impact-fill.fill-85 { width: 85%; }
.impact-fill.fill-88 { width: 88%; }
.impact-fill.fill-90 { width: 90%; }
.impact-fill.fill-95 { width: 95%; }

/* ---------- About (about.html) ---------- */
.foundation-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: center;
}

.vision-mission {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 4rem;
}

.leader-card {
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
  background: #fff;
  padding: 2.5rem;
  border-radius: 20px;
  box-shadow: var(--shadow-md);
}

.leader-card-body h3 {
  font-size: 1.6rem;
}

.leader-card-body p:not(.leader-role) {
  margin-top: 1rem;
}

.leader-card-photo {
  width: 250px;
  height: 320px;
  border-radius: 15px;
  flex-shrink: 0;
  overflow: hidden;
  border: 3px solid var(--primary);
}

.leader-role {
  color: var(--primary);
  font-weight: 600;
}

/* Statement of Faith: dark band with glass cards (like the home "pillars") */
.section-faith {
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1040 100%);
  overflow: hidden;
}

.section-faith:before,
.section-faith:after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.section-faith:before {
  width: 500px;
  height: 500px;
  top: -220px;
  left: -160px;
  background: radial-gradient(circle, rgba(212, 175, 55, .1), transparent 70%);
}

.section-faith:after {
  width: 420px;
  height: 420px;
  bottom: -200px;
  right: -120px;
  background: radial-gradient(circle, rgba(106, 13, 173, .18), transparent 70%);
}

.section-faith .container {
  position: relative;
  z-index: 1;
}

.faith-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
}

.faith-item {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 2rem;
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 20px;
  transition: all .4s ease;
}

.faith-item:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.faith-item:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(212, 175, 55, .25);
  transform: translateY(-6px);
}

.faith-item:hover:before {
  opacity: 1;
}

.faith-num {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  font-family: "Playfair Display", serif;
  font-size: 2.6rem;
  line-height: 1;
  color: rgba(212, 175, 55, .18);
  transition: color .3s;
}

.faith-item:hover .faith-num {
  color: rgba(212, 175, 55, .45);
}

.faith-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(212, 175, 55, .12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.faith-item h3 {
  color: #fff;
  font-size: 1.3rem;
  margin-bottom: .6rem;
}

.faith-item p {
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
}

.faith-more {
  text-align: center;
  margin-top: 3rem;
}

.faith-more .btn-link:hover {
  color: #fff;
  border-color: #fff;
}

@media (max-width: 1100px) {
  .faith-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .faith-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .faith-item {
    padding: 1.75rem 1.5rem;
  }
}

/* ---------- Beliefs (beliefs.html) ---------- */
.beliefs-content {
  max-width: 900px;
  margin: 0 auto;
}

.beliefs-header-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 4rem;
}

/* ---------- Gallery (gallery.html) ---------- */
.testimony-text {
  font-style: italic;
}

.testimony-author {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--primary);
}

/* ---------- Giving (giving.html) ---------- */
/* Ways to give: two white cards side by side */
.give-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.give-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  padding: 2.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.give-card-head {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.give-card-head .faith-icon {
  margin-bottom: 0;
  flex-shrink: 0;
}

.give-card-head h3 {
  font-size: 1.5rem;
  margin-bottom: .15rem;
}

.give-card-head p {
  color: #64748b;
  font-size: .95rem;
}

/* Label / value rows (bank details etc.) */
.detail-list {
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: .25rem 1.25rem;
}

.detail-list > div {
  padding: .85rem 0;
  border-bottom: 1px solid #e2e8f0;
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: #64748b;
  margin-bottom: .2rem;
}

.detail-list dd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  color: var(--secondary);
}

.detail-mono {
  font-family: "JetBrains Mono", "Courier New", monospace;
  font-size: 1.1rem;
  letter-spacing: .5px;
  overflow-wrap: anywhere;
}

@media (max-width: 420px) {
  .detail-mono {
    font-size: 1rem;
  }
}

.copy-btn {
  flex-shrink: 0;
  font: inherit;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: .35rem .85rem;
  border-radius: 50px;
  border: 1px solid rgba(212, 175, 55, .6);
  background: #fff;
  color: var(--secondary);
  cursor: pointer;
  transition: all .25s ease;
}

.copy-btn:hover,
.copy-btn:focus-visible {
  background: var(--primary);
  border-color: var(--primary);
}

/* off-screen textarea used by main.js to copy text */
.sr-copy-field {
  position: absolute;
  left: -9999px;
  top: 0;
  opacity: 0;
}

.copy-btn.copied {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

.give-note {
  margin-top: 1.25rem;
  font-size: .9rem;
  color: #64748b;
}

.ref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  list-style: none;
  margin-top: .6rem;
}

.ref-chips li {
  padding: .35rem .9rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, .12);
  color: var(--secondary);
  font-weight: 600;
  font-size: .85rem;
}

.give-steps {
  margin: 1.25rem 0 1.75rem 1.25rem;
  color: #475569;
  line-height: 1.9;
}

/* pinned to the bottom so both cards' content lines up */
.give-card-btn {
  margin-top: auto;
}

/* Online giving: dark "coming soon" panel */
.soon-card {
  position: relative;
  overflow: hidden;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a1040 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}

.soon-card:before {
  content: "";
  position: absolute;
  width: 380px;
  height: 380px;
  top: -190px;
  right: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, .15), transparent 70%);
  pointer-events: none;
}

.soon-card > * {
  position: relative;
}

.soon-badge {
  display: inline-block;
  padding: .4rem 1.2rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, .15);
  border: 1px solid var(--primary);
  color: var(--primary);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.soon-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  background: rgba(212, 175, 55, .12);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.soon-card h2 {
  color: #fff;
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  margin-bottom: 1rem;
}

.soon-card p {
  color: rgba(255, 255, 255, .75);
  max-width: 560px;
  margin: 0 auto 1.5rem;
}

.ref-chips-dark {
  justify-content: center;
  margin: 0 0 2rem;
}

.ref-chips-dark li {
  background: rgba(255, 255, 255, .06);
  border: 1px dashed rgba(255, 255, 255, .25);
  color: rgba(255, 255, 255, .8);
}

@media (max-width: 900px) {
  .give-grid {
    grid-template-columns: 1fr;
  }
  .give-card {
    padding: 1.75rem 1.5rem;
  }
  .soon-card {
    padding: 2.75rem 1.5rem;
  }
  .soon-card h2 {
    font-size: 1.9rem;
  }
  .soon-card .btn-secondary {
    margin-left: 0;
  }
}

/* ---------- Volunteer (volunteer.html) ---------- */
/* Role header: number pill, title, detail chips, summary */
.role-head {
  max-width: 860px;
  margin: 0 auto 3rem;
  text-align: center;
}

.role-num {
  display: inline-block;
  padding: .35rem 1.1rem;
  border-radius: 50px;
  background: var(--secondary);
  color: var(--primary);
  font-family: Outfit, sans-serif;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.role-head h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.4rem;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.role-head .ref-chips {
  justify-content: center;
  margin: 0 0 1.5rem;
}

.role-head p {
  color: #475569;
  margin-bottom: 1rem;
}

/* Two cards: duties / requirements */
.role-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
}

.role-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.role-panel-alt {
  border-top-color: var(--brand-purple);
}

.role-panel h3 {
  font-size: 1.35rem;
  margin-bottom: 1.25rem;
}

.role-points {
  list-style: none;
}

.role-points li {
  position: relative;
  padding: .75rem 0 .75rem 2.25rem;
  border-bottom: 1px solid #eef2f6;
  color: #475569;
  line-height: 1.65;
}

.role-points li:last-child {
  border-bottom: 0;
}

/* gold tick before each point */
.role-points li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .9rem;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A0F1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.role-panel-alt .role-points li:before {
  background-color: rgba(106, 13, 173, .15);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236A0DAD' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.role-points li.desirable:before {
  background: rgba(212, 175, 55, .15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23D4AF37'%3E%3Cpolygon points='12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.desirable-tag {
  display: inline-block;
  padding: .1rem .6rem;
  margin-right: .35rem;
  border-radius: 50px;
  background: rgba(212, 175, 55, .15);
  color: var(--secondary);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  vertical-align: 1px;
}

.role-cta {
  text-align: center;
  margin-top: 2.5rem;
}

.role-cta .btn-glow {
  display: inline-flex;
}

/* How to apply: 3 numbered steps */
.apply-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  max-width: 1000px;
  margin: 0 auto;
}

.apply-step {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .05);
}

.apply-step .step-num {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.apply-step p {
  color: #475569;
}

.apply-email-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .5rem;
}

.apply-email-row a {
  font-family: Outfit, sans-serif;
  font-weight: 700;
  color: var(--secondary);
  border-bottom: 2px solid rgba(212, 175, 55, .5);
  word-break: break-all;
}

.apply-email-row a:hover {
  color: var(--primary);
}

.notes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 1000px;
  margin: 2.5rem auto 0;
}

.notes-grid .callout {
  max-width: none;
  margin: 0;
}

@media (max-width: 900px) {
  .role-head h2 {
    font-size: 1.8rem;
  }
  .role-cols,
  .notes-grid {
    grid-template-columns: 1fr;
  }
  .role-panel {
    padding: 1.75rem 1.5rem;
  }
}

/* ---------- Contact (contact.html) ---------- */
/* Quick contact cards: Call / Email / Visit */
.contact-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2.25rem 1.75rem 2rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
  transition: all .4s cubic-bezier(.175, .885, .32, 1.275);
}

.contact-card:nth-child(2) {
  border-top-color: var(--brand-red);
}

.contact-card:nth-child(3) {
  border-top-color: var(--brand-purple);
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .1);
}

.contact-card h3 {
  font-size: 1.35rem;
  margin: .25rem 0 .5rem;
}

.contact-value {
  font-family: Outfit, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  word-break: break-word;
}

.contact-value a {
  color: var(--secondary);
  border-bottom: 2px solid rgba(212, 175, 55, .5);
}

.contact-value a:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.contact-address {
  font-style: normal;
  color: #475569;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  margin-top: auto;
  padding-top: 1.5rem;
}

.btn.btn-sm {
  padding: .6rem 1.4rem;
  font-size: .78rem;
}

/* Visually hidden but readable by screen readers and copyable */
.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;
}

/* Form + sidebar */
.contact-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.contact-form-wrapper {
  background: #fff;
  padding: 2.75rem;
  border: 1px solid #e2e8f0;
  border-top: 4px solid var(--primary);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.contact-form-wrapper h2 {
  font-family: "Playfair Display", serif;
  font-size: 2.2rem;
  margin-bottom: .75rem;
}

.form-intro {
  color: #64748b;
  margin-bottom: 1.75rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-family: Outfit, sans-serif;
  font-weight: 600;
  font-size: .95rem;
  color: var(--secondary);
  margin-bottom: .4rem;
}

.form-field .req {
  color: var(--brand-red);
}

.form-field .optional {
  font-weight: 400;
  color: #94a3b8;
}

.contact-form .form-input {
  padding: .85rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: var(--bg-light);
  transition: border-color .2s, box-shadow .2s, background .2s;
}

.contact-form .form-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .2);
}

.contact-form textarea.form-input {
  resize: vertical;
  min-height: 140px;
}

.contact-form input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: .2rem;
  accent-color: var(--primary);
}

.check-card {
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem 1.1rem;
  background: rgba(212, 175, 55, .08);
  border: 1px solid rgba(212, 175, 55, .3);
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.5;
  color: #475569;
  cursor: pointer;
}

.check-card strong {
  color: var(--secondary);
}

.check-label-consent {
  color: #64748b;
  line-height: 1.5;
}

.contact-form .btn-submit {
  align-self: flex-start;
  margin-top: .5rem;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.social-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);
}

.social-card h3 {
  font-size: 1.35rem;
  margin-bottom: .4rem;
}

.social-card p {
  color: #64748b;
  font-size: .95rem;
  margin-bottom: 1.25rem;
}

.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
}

.social-row a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1rem;
  border-radius: 50px;
  background: var(--bg-light);
  border: 1px solid #e2e8f0;
  color: var(--secondary);
  font-weight: 600;
  font-size: .9rem;
}

.social-row a:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: translateY(-3px);
}

.social-row a:nth-child(2):hover {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.social-row a:nth-child(3):hover {
  background: var(--brand-purple);
  border-color: var(--brand-purple);
  color: #fff;
}

.social-row a:nth-child(4):hover {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* Map */
.map-container {
  width: 100%;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

.map-container .map-frame {
  display: block;
}

@media (max-width: 1100px) {
  .contact-methods {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-methods .contact-card:last-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .contact-form-wrapper {
    padding: 2rem 1.5rem;
  }
  .contact-form-wrapper h2 {
    font-size: 1.8rem;
  }
}

@media (max-width: 600px) {
  .contact-methods {
    grid-template-columns: 1fr;
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form .btn-submit {
    align-self: stretch;
    justify-content: center;
  }
  .map-container {
    height: 320px;
  }
}

/* ---------- Safeguarding (safeguarding.html) ---------- */
/* Emergency notice strip under the page header */
.alert-strip {
  padding: 0;
  background: #fff5f5;
  border-top: 1px solid rgba(178, 34, 34, .2);
  border-bottom: 1px solid rgba(178, 34, 34, .2);
}

.alert-strip-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}

.alert-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert-strip p {
  flex: 1;
  color: #475569;
  line-height: 1.5;
}

.alert-strip p strong {
  color: var(--brand-red);
}

.btn.alert-btn {
  flex-shrink: 0;
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
  box-shadow: 0 4px 15px rgba(178, 34, 34, .25);
}

.btn.alert-btn:hover {
  background: transparent;
  color: var(--brand-red);
  box-shadow: none;
}

/* Left-aligned variant of the large Playfair statement */
.statement-lead.statement-lead-left {
  text-align: left;
  margin: 1.5rem 0 0;
  padding-left: 1.25rem;
  border-left: 4px solid var(--primary);
  font-size: 1.6rem;
  line-height: 1.4;
  color: var(--secondary);
}

/* Links inside the dark event card (email / phone) */
.event-link {
  color: #fff;
  border-bottom: 1px solid rgba(212, 175, 55, .5);
  word-break: break-word;
}

.event-link:hover {
  color: var(--primary);
}

.event-icon.event-icon-alert {
  background: rgba(178, 34, 34, .2);
  color: #ff8a8a;
}

@media (max-width: 600px) {
  .alert-strip-inner {
    flex-wrap: wrap;
  }
  .alert-strip p {
    flex-basis: calc(100% - 60px);
  }
  .btn.alert-btn {
    width: 100%;
    text-align: center;
  }
  .statement-lead.statement-lead-left {
    font-size: 1.35rem;
  }
}

/* ---------- Page layouts on tablet / mobile ---------- */
@media (max-width: 900px) {
  .foundation-grid,
  .beliefs-header-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .leader-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
  }

  .leader-card-photo {
    width: 100%;
    max-width: 280px;
  }

  /* several paragraphs read better left-aligned; the name and role stay centred */
  .leader-card-body p:not(.leader-role) {
    text-align: left;
  }
}

/* ---------- Responsive polish (checked at 360 / 390 / 768 / 1024 / 1366 / 1920) ---------- */
/* Paired CTA buttons: the flex gap already spaces them */
.cta-buttons .btn-secondary {
  margin-left: 0;
}

/* The outline button beside a gold .btn-glow matches its size (same text size and height;
   the 2px border is taken out of the padding) */
.cta-buttons .btn-glow ~ .btn-secondary,
.cta-buttons .btn-glow ~ .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  padding: calc(1rem - 2px) calc(2.5rem - 2px);
}

.cta-buttons .btn-glow {
  justify-content: center;
}

/* Phones: when a pair stacks, both buttons take the same width */
@media (max-width: 600px) {
  .cta-buttons .btn:not(:only-child) {
    flex: 1 1 100%;
    max-width: 340px;
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .cta-buttons-start .btn:not(:only-child) {
    max-width: none;
  }
}

/* A button in a text column sizes to its label (e.g. Giving "Ways to Give") */
.welcome-text .btn-glow {
  width: fit-content;
}

/* Tall portrait photos beside short text: cap the height so the text isn't lost in white space */
.foundation-grid .img-rounded,
.beliefs-header-grid .img-rounded {
  max-height: 560px;
  object-fit: cover;
}

/* Home "Find Us" card lines up with the page content on wide screens */
@media (min-width: 901px) {
  .map-info-overlay {
    left: max(5%, calc((100% - 1200px) / 2 + 24px));
  }
}

@media (max-width: 900px) {
  /* stacked portrait photos would otherwise be a full screen tall */
  .foundation-grid .img-rounded,
  .beliefs-header-grid .img-rounded,
  .image-stack .img-portrait,
  .leader-frame img {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    object-position: center 25%;
  }

  /* home hero: darker middle so the white title and subtitle stay readable over the photo */
  .hero-overlay {
    background: linear-gradient(to bottom, #0a0f1c80, #0a0f1c73 45%, #0a0f1ce6);
  }

  /* the scroll hint sat on the logo printed in the hero photo */
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 600px) {
  .apply-steps {
    grid-template-columns: 1fr;
  }
  /* keep the decorative block behind photos inside the page gutter */
  .image-accent {
    right: -10px;
    bottom: -10px;
  }
}

@media (max-width: 400px) {
  .st-time {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   6. UTILITIES
   Kept last so they win over component rules of equal specificity.
   ========================================================================== */
.mt-1rem { margin-top: 1rem; }
.mt-2rem { margin-top: 2rem; }
.mb-08rem { margin-bottom: .8rem; }
.mb-1rem { margin-bottom: 1rem; }
.mb-2rem { margin-bottom: 2rem; }

/* Stagger for .reveal-* scroll animations (value = hundredths of a second) */
.delay-8 { transition-delay: .08s; }
.delay-10 { transition-delay: .1s; }
.delay-15 { transition-delay: .15s; }
.delay-16 { transition-delay: .16s; }
.delay-20 { transition-delay: .2s; }
.delay-24 { transition-delay: .24s; }
.delay-30 { transition-delay: .3s; }
.delay-32 { transition-delay: .32s; }
.delay-40 { transition-delay: .4s; }
.delay-48 { transition-delay: .48s; }
.delay-56 { transition-delay: .56s; }

/* Keyboard focus: a clear gold ring on every link, button and field (mouse clicks don't show it) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}

/* Visitors who ask their device for less motion: show everything straight away, nothing moves */
@media (prefers-reduced-motion: reduce) {
  .reveal-up,
  .reveal-left,
  .reveal-right {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-badge,
  .hero-content-premium .hero-title,
  .hero-subtitle,
  .hero-actions,
  .scroll-indicator {
    opacity: 1;
    animation: none;
  }
  .parallax-bg,
  .floating-card,
  .gallery-track,
  .wheel {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
}
