@layer base, layout, components, animations, utilities;

@layer base {
  :root {
    /* === BRAND COLORS === */
    --color-church-blue: #0a58ca;
    --color-church-blue-dark: #0946a2;
    --color-church-blue-glow: rgba(10, 88, 202, 0.35);
    --color-base: #ffffff;
    --color-base-soft: #fafafa;
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #767676; /* Secondary / muted text */
    --color-text-body: #4a4a4a;
    --color-border-soft: #e8e8e8;

    /* === HERO OVERLAY (hero-specific — do NOT reuse for social gradientShift) === */
    --color-hero-overlay-start: rgba(0, 0, 0, 0.20);
    --color-hero-overlay-end: rgba(0, 0, 0, 0.62);

    /* === GRADIENT STOPS (social section slow shift) === */
    --color-grad-dawn: hsl(220, 60%, 96%);
    --color-grad-noon: hsl(200, 40%, 98%);
    --color-grad-dusk: hsl(240, 50%, 95%);

    /* === TYPOGRAPHY === */
    --font-heading: "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, sans-serif;
    --font-size-base: 1rem;
    --font-size-base-desktop: 1.125rem;
    --line-height-body: 1.6;
    --letter-spacing-normal: 0;
    --letter-spacing-caption-inhale: 0.12em;
    --letter-spacing-caption-exhale: 0;

    /* === SPACING (8px base scale) === */
    --space-1: 0.5rem; /* 8px */
    --space-2: 1rem; /* 16px */
    --space-3: 1.5rem; /* 24px */
    --space-4: 2rem; /* 32px */
    --space-6: 3rem; /* 48px */
    --space-8: 4rem; /* 64px */
    --space-10: 5rem; /* 80px */
    --space-16: 8rem; /* 128px — major section padding desktop */

    /* === ANIMATION DURATIONS === */
    --anim-breathe-duration: 10s;
    --anim-gradient-duration: 90s;
    --anim-spotlight-duration: 300ms;
    --anim-caption-duration: 250ms;
    --anim-nav-blur-duration: 200ms;
    --anim-lang-fade-duration: 150ms;
    --anim-accordion-duration: 300ms;

    /* === LAYOUT === */
    --max-width: 1600px;
    --container-max-width: 72rem; /* Content section inner max-width (matches visit-footer) */
    --space-container: var(--space-4); /* Section horizontal padding */
    --nav-height: 64px;
    --grid-gap-base: 8px;
    --grid-gap-breathe-max: 10px;
    --border-radius-card: 4px;
    --border-radius-pill: 9999px;
    --space-20: 10rem; /* 160px — mobile menu top padding to clear nav bar */
  }

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

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

  body {
    font-family: var(--font-body);
    font-size: var(--font-size-base);
    line-height: var(--line-height-body);
    color: var(--color-text-body);
    background-color: var(--color-base);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  @media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
    }
  }

  /* === DECORATIVE VIEWPORT FRAME === */
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    box-shadow: inset 0 0 100px rgba(10, 88, 202, 0.25), inset 0 0 20px rgba(10, 88, 202, 0.35); /* Softer but deeper spread */
  }
}

@layer layout {
  /*
  Mobile-first breakpoints:
  sm: 40rem (640px)
  md: 48rem (768px)
  lg: 64rem (1024px)
  xl: 80rem (1280px)
  2xl: 96rem (1536px)
  */
  @media (max-width: 39.9rem) {
    .glass-nav__links {
      gap: var(--space-2);
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      /* Hide scrollbar visually */
      scrollbar-width: none;
    }
    .glass-nav__links::-webkit-scrollbar { display: none; }
  }
}

@layer components {
/* glass-nav */
.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-4);
  transition: padding var(--anim-nav-blur-duration) ease;
}


/* GPU-safe background & blur transition via pseudo-element */
.glass-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: rgba(255, 255, 255, 0);
  backdrop-filter: blur(0px);
  transition:
    background-color var(--anim-nav-blur-duration) ease,
    backdrop-filter var(--anim-nav-blur-duration) ease;
  will-change: background-color, backdrop-filter;
}

.glass-nav--scrolled::before {
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
}

.glass-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.glass-nav__logo img {
  height: 40px;
  width: auto;
}

.glass-nav__logo-text {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-church-blue);
  text-decoration: none;
}

/* Logo image — show colour by default, white on dark hero nav */
.glass-nav__logo-img {
  height: 40px;
  width: auto;
  display: block;
}

.glass-nav__logo-img--white {
  display: none;
}

/* Hero pages: white logo when nav is over the dark hero */
.page--has-hero .glass-nav:not(.glass-nav--scrolled) .glass-nav__logo-img--colour {
  display: none;
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .glass-nav__logo-img--white {
  display: block;
}

/* Navigation Links - Desktop */
.glass-nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.glass-nav__link {
  color: var(--color-text-primary);
  text-decoration: none;
  font-size: var(--font-size-base);
  font-weight: 500;
  padding: var(--space-1) 0;
  border-bottom: 2px solid transparent;
  transition: border-color var(--anim-nav-blur-duration) ease,
              color var(--anim-nav-blur-duration) ease;
}

/* Hover effects and active states are already handled above in the unified navigation block */

/* Mobile Toggle */
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 12px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
  position: relative;
  flex-direction: column;
  justify-content: space-between;
}

.nav-toggle__bar {
  width: 24px;
  height: 2px;
  background-color: var(--color-church-blue);
  transition: transform 0.3s ease, opacity 0.3s ease;
  display: block;
}

@media (max-width: 48rem) {
  .glass-nav {
    /* push toggle to far right on mobile */
    justify-content: space-between;
    /* gap ensures toggle and lang-toggle don't touch each other */
    gap: var(--space-2);
    /* must stay above the slide-in menu panel (z-index: 1050) so the
       X/close toggle button remains tappable when the menu is open */
    z-index: 1100;
  }

  .nav-toggle {
    display: flex;
    margin-left: auto;
    order: 2;
  }

  .glass-nav__logo {
    order: 1;
  }

  .lang-toggle {
    order: 3;
  }

  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }

  .glass-nav__links {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 280px;
    background: white;
    flex-direction: column;
    padding: var(--space-20) var(--space-6) var(--space-6);
    gap: var(--space-6);
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1050;
    display: flex;
    align-items: flex-start;
    /* ensure links are invisible until menu opens */
    overflow: hidden;
    /* prevent off-screen panel from blocking taps (iOS Safari) */
    pointer-events: none;
  }

  .glass-nav__links--open {
    transform: translateX(0);
    pointer-events: auto;
  }

  /* Force dark text inside the open slide-in panel regardless of hero state */
  .glass-nav__links .glass-nav__link {
    font-size: 1.25rem;
    width: 100%;
    padding: var(--space-2) 0;
    color: var(--color-text-primary) !important;
    border-bottom-color: transparent;
  }

  .glass-nav__links .glass-nav__link:hover {
    color: var(--color-church-blue) !important;
    border-bottom-color: var(--color-church-blue);
  }
}

.glass-nav__link:hover {
  color: var(--color-church-blue);
  border-bottom-color: var(--color-church-blue);
}

.glass-nav__link:focus-visible {
  outline: 2px solid var(--color-church-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.glass-nav__link--current {
  color: var(--color-church-blue);
  font-weight: 600;
  border-bottom-color: var(--color-church-blue);
}
/* hero */
.hero {
  position: relative;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* GPU-safe gradient overlay via ::before pseudo-element */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    var(--color-hero-overlay-start) 0%,
    var(--color-hero-overlay-end) 100%
  );
  z-index: 1;
  pointer-events: none;
}

.hero__media {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.hero__media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--space-8) var(--space-4);
  max-width: 56rem;
}

.hero__heading {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--color-base);
  margin-bottom: var(--space-4);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero__verse {
  display: inline-block;
  font-size: 0.35em;
  font-weight: 500;
  opacity: 0.7;
  margin-top: var(--space-2);
  letter-spacing: 0.05em;
}

.hero__motto {
  font-size: clamp(0.9375rem, 2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.90);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
}

/* GlassNav over hero — white text until user scrolls */
.page--has-hero .glass-nav:not(.glass-nav--scrolled) .glass-nav__logo-text {
  color: var(--color-base);
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .glass-nav__link {
  color: var(--color-base);
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .glass-nav__link:hover {
  color: var(--color-base);
  border-bottom-color: var(--color-base);
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .glass-nav__link--current {
  color: var(--color-base);
  border-bottom-color: rgba(255, 255, 255, 0.7);
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .lang-toggle {
  color: var(--color-base);
  border-color: rgba(255, 255, 255, 0.50);
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .nav-toggle__bar {
  background-color: var(--color-base);
}

.page--has-hero .glass-nav:not(.glass-nav--scrolled) .nav-toggle__bar {
  background-color: white !important;
}

/* photo-grid */
.photo-grid-section {
  padding: var(--space-8) var(--space-4);
  background-color: var(--color-base-soft);
}

.photo-grid {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--space-8) var(--space-4);
}

.photo-grid__item {
  position: relative;
  background-color: var(--color-base);
  padding: 4px 4px 28px 4px; /* Minimal board size */
  border-radius: 2px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  width: clamp(280px, 85vw, 360px); /* Larger picture size on mobile */
  cursor: pointer;
  transition: 
    transform 600ms cubic-bezier(0.34, 1.56, 0.64, 1), /* bounce */
    box-shadow 400ms ease,
    z-index 0s;
  will-change: transform, box-shadow;
  z-index: 1;
}

/* Mobile basic scatter */
.photo-grid__item:nth-child(even) { transform: rotate(5deg) translateY(5px); }
.photo-grid__item:nth-child(odd) { transform: rotate(-5deg) translateY(-5px); }

/* Desktop overlapping arc scatter */
@media (min-width: 64rem) {
  .photo-grid {
    flex-wrap: nowrap;
    gap: 0;
    padding: var(--space-8) var(--space-4);
    max-width: none; /* Allow grid to spread out beyond container max-width */
    width: 100%;
    justify-content: center;
  }
  .photo-grid__item {
    flex-shrink: 0; /* Prevent squashing on wide screens */
    width: clamp(250px, 27vw, 380px); /* Larger picture size on desktop */
    margin: 0 max(-3.5rem, -4vw);    /* Cap overlap so they aren't completely buried */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  }
  .photo-grid__item:nth-child(1) { transform: rotate(-24deg) translateY(55px) translateX(-4vw); z-index: 1; }
  .photo-grid__item:nth-child(2) { transform: rotate(18deg) translateY(-25px) translateX(-2vw); z-index: 3; }
  .photo-grid__item:nth-child(3) { transform: rotate(-12deg) translateY(35px) translateX(0); z-index: 2; }
  .photo-grid__item:nth-child(4) { transform: rotate(26deg) translateY(-40px) translateX(2vw); z-index: 4; }
  .photo-grid__item:nth-child(5) { transform: rotate(-20deg) translateY(45px) translateX(4vw); z-index: 1; }
}

/* Ultra-wide Scaling (Retina/4K) */
@media (min-width: 120rem) {
  .photo-grid-section {
    padding: var(--space-16) var(--space-8);
  }
  .photo-grid__item {
    width: clamp(380px, 20vw, 550px);
    margin: 0 max(-5rem, -3vw); /* Much less overlap on ultra-wide screens */
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.2);
  }
  .photo-grid__item:nth-child(1) { transform: rotate(-28deg) translateY(80px) translateX(-12vw); }
  .photo-grid__item:nth-child(2) { transform: rotate(22deg) translateY(-40px) translateX(-6vw); }
  .photo-grid__item:nth-child(3) { transform: rotate(-14deg) translateY(50px) translateX(0); }
  .photo-grid__item:nth-child(4) { transform: rotate(30deg) translateY(-60px) translateX(6vw); }
  .photo-grid__item:nth-child(5) { transform: rotate(-24deg) translateY(70px) translateX(12vw); }
}

.photo-grid__item picture {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 2px;
}

.photo-grid__item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 600ms ease, filter 400ms ease;
  will-change: transform, filter;
}

/* Touch tap / keyboard focus lift — runs on all devices */
.photo-grid__item:focus-visible,
.photo-grid__item.is-active {
  transform: scale(1.25) rotate(0deg) translateY(-30px) !important;
  z-index: 10 !important;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
}

.photo-grid__item:focus-visible img,
.photo-grid__item.is-active img {
  transform: scale(1.1);
  filter: saturate(1.25);
}

/* Pointer hover lift — only on devices with a real pointer (prevents sticky-hover on touch) */
@media (hover: hover) {
  .photo-grid__item:hover {
    transform: scale(1.25) rotate(0deg) translateY(-30px) !important;
    z-index: 10 !important;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.3);
  }

  .photo-grid__item:hover img {
    transform: scale(1.1);
    filter: saturate(1.25);
  }
}

/* Invisible hit-area extension to prevent hover flickering when the element translates UP */
.photo-grid__item::after {
  content: '';
  position: absolute;
  inset: -20px; /* Base expansion to account for initial rotations */
  z-index: -1;
  background-color: transparent;
}

.photo-grid__item.is-active::after {
  inset: -100px;
}

@media (hover: hover) {
  .photo-grid__item:hover::after {
    inset: -100px;
  }
}

.photo-grid__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 28px; /* Matched to bottom padding */
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: 0.75rem; /* Smaller text for minimal board */
  font-weight: 600;
  letter-spacing: var(--letter-spacing-caption-exhale);
  transition: opacity var(--anim-caption-duration) ease;
  opacity: 0.8;
}

.photo-grid__item:focus-visible .photo-grid__caption,
.photo-grid__item.is-active .photo-grid__caption {
  letter-spacing: var(--letter-spacing-caption-inhale);
  opacity: 1;
}

@media (hover: hover) {
  .photo-grid__item:hover .photo-grid__caption {
    letter-spacing: var(--letter-spacing-caption-inhale);
    opacity: 1;
  }
}
/* visit-footer */
.visit-footer {
  background-color: var(--color-base);
  border-top: 1px solid var(--color-border-soft);
  padding: var(--space-8) var(--space-4);
}

@media (min-width: 64rem) {
  .visit-footer {
    padding: var(--space-16) var(--space-4);
  }
}

.visit-footer__logo {
  margin-bottom: var(--space-4);
}

.visit-footer__logo img {
  height: 37px;
  width: auto;
}

.visit-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 48rem) {
  .visit-footer__inner {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.visit-footer__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  text-align: center;
}

@media (max-width: 48rem) {
  .visit-footer__info {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .visit-footer__item {
    align-items: center;
  }
}

.visit-footer__item {
  display: flex;
  flex-direction: column;
  margin-bottom: var(--space-4);
  font-style: normal;
}

.visit-footer__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-church-blue);
  margin-bottom: var(--space-1);
}

.visit-footer__value {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text-primary);
  font-weight: 500;
}

.visit-footer__link {
  text-decoration: none;
  color: var(--color-text-primary);
  transition: color 150ms ease;
}

.visit-footer__link:hover {
  color: var(--color-church-blue);
}

.visit-footer__link:focus-visible {
  outline: 2px solid var(--color-church-blue);
  outline-offset: 2px;
  border-radius: 2px;
}

.visit-footer__copyright {
  margin-top: var(--space-6);
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  opacity: 0.8;
}

@media (max-width: 48rem) {
  .visit-footer__copyright {
    margin-top: var(--space-8);
  }
}

@layer components {
  /* social-grid component */
  .social-section {
    position: relative;
    padding: var(--space-4) 0;
    background: linear-gradient(150deg, var(--color-grad-dawn), var(--color-grad-noon));
    border-top: 1px solid var(--color-border-soft);
  }

  .social-section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(150deg, var(--color-grad-dusk), var(--color-grad-dawn));
    animation: gradient-shift var(--anim-gradient-duration) ease-in-out infinite alternate;
    will-change: opacity;
  }

  .social-section__inner {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 var(--space-container);
  }

  .social-section__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--space-2);
  }

  .social-section__subtitle {
    text-align: center;
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    margin-bottom: var(--space-4);
    letter-spacing: 0.03em;
  }

  /* Ministry group row */
  .social-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--space-6);
  }

  .social-group:last-child {
    margin-bottom: 0;
  }

  .social-group__title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--color-church-blue);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-2);
    border-bottom: 1px solid var(--color-border-soft);
    text-align: center;
    width: 100%;
    max-width: 600px;
  }

  .social-group__cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-6) var(--space-4);
    list-style: none;
    padding-bottom: var(--space-2);
    width: 100%;
  }

  .social-group__cards::-webkit-scrollbar {
    display: none;
  }

  .social-group__cards li {
    flex-shrink: 0;
  }

  /* Sub-label for groups that contain 2 ministries (e.g. Worship + Vefil combined) */
  .social-group__sub-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-text-secondary);
    margin-top: var(--space-3);
    margin-bottom: var(--space-2);
    text-align: center;
  }

  .social-group__sub-label:first-of-type {
    margin-top: 0;
  }

  /* Removed compact group sizing since cards are small by default */

  /* Social card itself (squircle icon) */
  .social-card {
    position: relative;
    display: block;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    text-decoration: none;
    transition: transform var(--anim-spotlight-duration) ease,
                box-shadow var(--anim-spotlight-duration) ease,
                filter var(--anim-spotlight-duration) ease;
    border: 1px solid var(--color-border-soft);
    background-size: cover;
    background-position: center;
    will-change: transform, filter;
  }

  /* Dark overlay for icon contrast */
  .social-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(0,0,0,0.15);
    z-index: 1;
    transition: background var(--anim-spotlight-duration) ease;
  }

  @media (min-width: 768px) {
    .social-card {
      width: 100px;
      height: 100px;
      border-radius: 24px;
    }
    .social-card::before {
      border-radius: 24px;
    }
  }

  /* Background images per card */
  .ig-main-card { background-image: url('../images/social-main.webp'); }
  .fb-main-card { background-image: url('../images/social-fb-main.webp'); }
  .yt-main-card { background-image: url('../images/social-youtube-main.webp'); }

  .ig-youth-card { background-image: url('../images/social-ig-youth.webp'); }
  .fb-youth-card { background-image: url('../images/social-fb-youth.webp'); }
  .yt-youth-card { background-image: url('../images/social-youtube-youth.webp'); }
  .tt-youth-card { background-image: url('../images/social-tiktok-youth.webp'); }
  .tg-youth-card { background-image: url('../images/social-tg-youth.webp'); }

  .ig-worship-card { background-image: url('../images/social-ig-worship.webp'); }
  .yt-worship-card { background-image: url('../images/social-youtube-worship.webp'); }

  .ig-vefil-card { background-image: url('../images/social-ig-vefil.webp'); }
  .fb-vefil-card { background-image: url('../images/social-fb-vefil.webp'); }

  /* Content body */
  .social-card__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .social-card__icon {
    width: 28px;
    height: 28px;
    color: #ffffff;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  }

  .social-card__handle {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-primary);
    text-align: center;
    white-space: nowrap;
    width: 110px;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color var(--anim-spotlight-duration) ease;
  }

  /* Spotlight effect — per row */
  @media (hover: hover) {
    .social-group__cards:has(.social-card:hover) .social-card:not(:hover) {
      filter: brightness(0.55) grayscale(0.3);
      transform: scale(0.97);
    }

    .social-card:hover {
      transform: scale(1.05);
      box-shadow: 0 12px 24px rgba(0,0,0,0.15);
      border-color: var(--color-church-blue);
      z-index: 10;
    }

    .social-card:hover .social-card__handle {
      color: var(--color-church-blue);
    }

    .social-card:hover::before {
      background: rgba(0,0,0,0.05);
    }
  }

  /* Touch active parity — spotlight dimming for siblings when a card is active */
  .social-group__cards:has(.social-card.is-active) .social-card:not(.is-active) {
    filter: brightness(0.55) grayscale(0.3);
    transform: scale(0.97);
  }

  /* Touch active parity */
  .social-card.is-active {
    transform: scale(1.04);
    box-shadow: 0 8px 32px rgba(0,0,0,0.35);
    border-color: var(--color-church-blue);
    z-index: 10;
  }

  /* Focus ring */
  .social-card:focus-visible {
    outline: 2px solid var(--color-church-blue);
    outline-offset: 3px;
  }

  /* Reduced motion */
  @media (prefers-reduced-motion: reduce) {
    .social-card,
    .social-group__cards .social-card {
      transition: none !important;
      transform: none !important;
    }
  }

  /* PrimaryCTA — pill CTA button, Church Blue fill + glow on hover */
  .primary-cta {
    display: inline-flex;
    align-items: center;
    padding: var(--space-2) var(--space-6);
    background-color: var(--color-church-blue);
    color: var(--color-base);
    border: none;
    border-radius: var(--border-radius-pill);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background-color var(--anim-nav-blur-duration) ease,
                box-shadow var(--anim-nav-blur-duration) ease;
  }

  .primary-cta:hover {
    background-color: var(--color-church-blue-dark);
    box-shadow: 0 4px 12px var(--color-church-blue-glow);
  }

  /* Partnerships section refinements */
  .partnerships-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    list-style: none;
    margin-top: var(--space-4);
  }

  @media (min-width: 48rem) {
    .partnerships-list {
      grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
  }

  .partnership-item {
    background: var(--color-base);
    padding: var(--space-4);
    border-radius: var(--border-radius-card);
    border: 1px solid var(--color-border-soft);
    transition: transform 0.3s ease, border-color 0.3s ease;
  }

  .partnership-item:hover {
    transform: translateY(-4px);
    border-color: var(--color-church-blue);
  }

  .partnership-item__meta {
    font-size: 0.7rem;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-1);
  }

  .partnership-item__name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: var(--space-2);
  }

  .partnership-item__name a {
    color: var(--color-text-primary);
    text-decoration: none;
    transition: color 0.2s ease;
  }

  .partnership-item__name a:hover {
    color: var(--color-church-blue);
  }

  .partnership-item__desc {
    font-size: 0.9rem;
    color: var(--color-text-body);
    line-height: 1.5;
  }

  .primary-cta:focus-visible {
    outline: 2px solid var(--color-church-blue);
    outline-offset: 3px;
    box-shadow: 0 0 16px var(--color-church-blue-glow);
  }

  @media (prefers-reduced-motion: reduce) {
    .primary-cta {
      transition: none;
    }
  }

  /* Building Donate Section */
  .building-donate {
    background-color: var(--color-base);
    text-align: center;
    padding: var(--space-8) var(--space-4);
  }
  
  .building-donate__heading {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
  }
  
  .building-donate__qr {
    display: block;
    margin: 0 auto var(--space-4);
    width: 100%;
    max-width: 240px;
    height: auto;
    border-radius: var(--border-radius-card);
  }
  
  /* Financial Grid */
  .donation-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
    max-width: var(--container-max-width);
    margin: var(--space-8) auto 0;
  }

  @media (min-width: 48rem) {
    .donation-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  .currency-card {
    text-align: left;
    background-color: var(--color-base-soft);
    border: 1px solid var(--color-border-soft);
    border-radius: var(--border-radius-card);
    padding: var(--space-6);
  }

  .currency-card__title {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text-primary);
    margin-bottom: var(--space-4);
    padding-bottom: var(--space-2);
    border-bottom: 2px solid var(--color-church-blue);
  }

  .currency-card__detail {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: var(--space-3);
  }

  .currency-card__detail:last-child {
    margin-bottom: 0;
  }

  .currency-card__detail-key {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-secondary);
  }

  .currency-card__detail-val {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-primary);
    word-break: break-all;
    font-family: monospace;
  }

  .building-donate__details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-4);
    max-width: 800px;
    margin: var(--space-8) auto 0;
  }

  .building-donate__details .support-card {
    text-align: left;
    background-color: var(--color-bg-secondary);
    padding: var(--space-4);
    border-radius: var(--border-radius-card);
  }

  /* Removed grid-auto-columns 1fr stretching */
}

.visit-footer__directions {
  display: inline-flex;
  align-items: center;
  margin-top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background-color: var(--color-church-blue);
  color: var(--color-base);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--border-radius-card);
  transition: background-color 150ms ease;
}

.visit-footer__directions:hover {
  background-color: var(--color-church-blue-dark);
}

.visit-footer__directions:focus-visible {
  outline: 2px solid var(--color-church-blue);
  outline-offset: 3px;
  border-radius: var(--border-radius-card);
}

.visit-footer__map {
  aspect-ratio: 4 / 3;
  border-radius: var(--border-radius-card);
  overflow: hidden;
  border: 1px solid var(--color-border-soft);
}

.visit-footer__map iframe {
  display: block;
  width: 100%;
  height: 100%;
}

/* lang-toggle */
.lang-toggle {
  border: 1px solid var(--color-border-soft);
  border-radius: var(--border-radius-pill);
  padding: var(--space-1) var(--space-2);
  background: transparent;
  color: var(--color-text-primary);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: border-color var(--anim-lang-fade-duration) ease,
              color var(--anim-lang-fade-duration) ease;
  flex-shrink: 0;
}

.lang-toggle:hover {
  border-color: var(--color-church-blue);
  color: var(--color-church-blue);
}

.lang-toggle:focus-visible {
  outline: 2px solid var(--color-church-blue);
  outline-offset: 2px;
}

/* page-intro */
.page-intro {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-6)) var(--space-4) var(--space-4);
  text-align: center;
}

.page-intro__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-3);
}

.page-intro__lead {
  font-size: 1.0625rem;
  color: var(--color-text-body);
  max-width: 42rem;
  margin: 0 auto;
}

/* beliefs-accordion */
.beliefs-accordion {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-2) var(--space-8);
}

@media (min-width: 30rem) {
  .beliefs-accordion {
    padding-inline: var(--space-4);
  }
}

/* belief */
.belief {
  border-top: 1px solid var(--color-border-soft);
}

.belief:last-child {
  border-bottom: 1px solid var(--color-border-soft);
}

.belief__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
  background-color: var(--color-base);
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 150ms ease;
}

.belief__summary::-webkit-details-marker {
  display: none;
}

.belief__summary:hover {
  background-color: var(--color-base-soft);
}

.belief__summary:focus-visible {
  outline: 2px solid var(--color-church-blue);
  outline-offset: -2px;
}

.belief__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-left: var(--space-2);
  color: var(--color-church-blue);
  transition: transform var(--anim-accordion-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.belief[open] .belief__chevron {
  transform: rotate(180deg);
}

.belief__content {
  display: block; /* Override UA display:none so CSS transition works */
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--anim-accordion-duration) cubic-bezier(0.4, 0, 0.2, 1);
}

.belief[open] .belief__content {
  max-height: 600vh; /* generous enough for large-text mobile viewports */
}

.belief__content p {
  padding: var(--space-1) var(--space-2) var(--space-3);
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: var(--line-height-body);
}

.belief__content ul,
.belief__content ol {
  padding: var(--space-1) var(--space-2) var(--space-3) calc(var(--space-2) + 1.25rem);
  color: var(--color-text-body);
  line-height: var(--line-height-body);
  font-size: 0.9375rem;
}

@media (min-width: 48rem) {
  .belief__summary {
    padding: var(--space-3) var(--space-4);
    font-size: 1.0625rem;
  }
  .belief__content p,
  .belief__content ul,
  .belief__content ol {
    padding-inline: var(--space-4);
    font-size: 1rem;
  }
  .belief__content p { padding-bottom: var(--space-4); }
  .belief__content ul,
  .belief__content ol { padding-bottom: var(--space-4); padding-left: calc(var(--space-4) + 1.25rem); }
}

@media (prefers-reduced-motion: reduce) {
  .belief__content,
  .belief__chevron {
    transition: none;
  }
}

/* about-page — content-section */
.content-section {
  background-color: var(--color-base);
  padding: var(--space-6) var(--space-4);
}

.content-section + .content-section {
  border-top: 1px solid var(--color-border-soft);
}

@media (min-width: 64rem) {
  .content-section {
    padding: var(--space-8) var(--space-4);
  }
}

.content-section__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  text-align: center;
}

.content-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-4);
}

.content-section__subheading {
  font-family: var(--font-heading);
  font-size: clamp(1.125rem, 2.5vw, 1.5rem);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
}

.content-section__body {
  font-size: 1rem;
  color: var(--color-text-body);
  line-height: var(--line-height-body);
  margin: 0 auto var(--space-4);
  max-width: 65ch;
}

@media (min-width: 48rem) {
  .content-section__body {
    font-size: var(--font-size-base-desktop);
  }
}

.three-ps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

@media (min-width: 48rem) {
  .three-ps {
    flex-direction: row;
    gap: var(--space-8);
  }
}

.three-ps__item {
  flex: 1;
  background-color: var(--color-base-white);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--color-church-blue);
  border-radius: var(--border-radius-card);
  padding: var(--space-8) var(--space-6);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.three-ps__item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.three-ps__letter {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-church-blue);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: var(--space-4);
  user-select: none;
}

.three-ps__text {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-primary);
  line-height: 1.4;
}

/* Partnerships list */
.partnerships-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-4);
}

.partnership-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  background-color: var(--color-base-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--border-radius-card);
}

.partnership-item__name {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.partnership-item__meta {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-church-blue);
}

.partnership-item__desc {
  font-size: 0.9375rem;
  color: var(--color-text-body);
  line-height: var(--line-height-body);
  text-align: left;
}

/* Partnerships — equal height cards with CTA anchored to bottom */
.partnership-item__body {
  flex: 1;
}

.partnership-item__footer {
  margin-top: var(--space-4);
}

.partnership-item__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-church-blue);
  text-decoration: none;
  transition: color 0.2s ease;
}

.partnership-item__cta:hover {
  color: var(--color-church-blue-dark);
}

.partnership-item__cta-icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.partnership-item__cta:hover .partnership-item__cta-icon {
  transform: translate(2px, -2px);
}

.partnership-item__values {
  list-style: none;
  margin: var(--space-3) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.partnership-item__values li {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
  padding-left: var(--space-3);
  position: relative;
}

.partnership-item__values li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--color-church-blue);
  font-weight: 700;
}

/* Pastor Section */
.pastor-section {
  padding: var(--space-6) 0;
  background-color: var(--color-base);
}

@media (min-width: 64rem) {
  .pastor-section {
    padding: var(--space-10) 0;
  }
}

.pastor-section__inner {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

.pastor-section {
  padding-bottom: var(--space-16);
}

.pastor-spotlight {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}

@media (min-width: 64rem) {
  .pastor-spotlight {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }
}

.pastor-spotlight__image-wrap {
  position: relative;
  max-width: 440px;
  justify-self: center;
}

@media (min-width: 64rem) {
  .pastor-spotlight__image-wrap {
    max-width: 700px;
    justify-self: start;
  }
}

.pastor-spotlight__photo {
  width: 100%;
  height: auto;
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-xl);
  display: block;
}

.pastor-spotlight__caption {
  margin-top: var(--space-4);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  text-align: center;
  font-style: italic;
}

.pastor-section__heading {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--space-6);
  position: relative;
  text-align: center;
}

.pastor-section__heading::after {
  content: '';
  position: absolute;
  bottom: -var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--color-church-blue);
  border-radius: 2px;
}

@media (min-width: 64rem) {
  .pastor-section__heading {
    margin-bottom: var(--space-8);
  }
}

.pastor-spotlight__content {
  text-align: left;
}

.pastor-spotlight__bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.pastor-spotlight__bio p {
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--color-text-body);
}

/* Leadership grid */
.leadership-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-top: var(--space-6);
}

@media (min-width: 40rem) {
  .leadership-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.leadership-grid__card {
  background-color: var(--color-base-soft);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--border-radius-card);
  overflow: hidden;
  text-align: center;
}

.leadership-grid__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: top;
  display: block;
}

.leadership-grid__photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-border-soft);
  font-family: var(--font-heading);
  font-size: clamp(3rem, 8vw, 5rem);
  font-weight: 700;
  color: var(--color-text-secondary);
}

.leadership-grid__info {
  padding: var(--space-4);
}

.leadership-grid__name {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: var(--space-1);
}

.leadership-grid__role {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-church-blue);
}



@layer animations {
  /* animate-breathe — slow scale for hero media container */
  @keyframes breathe {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.05); }
  }

  .animate-breathe {
    animation: breathe var(--anim-breathe-duration) ease-in-out infinite;
    will-change: transform;
  }

  /* gradient-shift — opacity cross-fade for .social-section::before ambient gradient */
  @keyframes gradient-shift {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  /* gridBreathe animations removed for polaroid scatter */
}

@layer utilities {
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
}


/* MIGRATED FROM BUILDING.HTML */
@layer components {
        /* === BUILDING HERO === */
        .building-hero {
          position: relative;
          height: 100svh;
          overflow: hidden;
          display: flex;
          align-items: center;
          justify-content: center;
        }

        .building-hero::before {
          content: '';
          position: absolute;
          inset: 0;
          background: linear-gradient(
            to bottom,
            var(--color-hero-overlay-start) 0%,
            var(--color-hero-overlay-end) 100%
          );
          z-index: 1;
          pointer-events: none;
        }

        .building-hero__media {
          position: absolute;
          inset: 0;
          will-change: transform;
        }

        .building-hero__media picture {
          display: block;
          width: 100%;
          height: 100%;
        }

        .building-hero__media img {
          width: 100%;
          height: 100%;
          display: block;
          object-fit: cover;
        }

        .building-hero__content {
          position: relative;
          z-index: 2;
          text-align: center;
          padding: var(--space-8) var(--space-4);
          max-width: 56rem;
        }

        .building-hero__eyebrow {
          font-size: 0.8125rem;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: 0.15em;
          color: rgba(255, 255, 255, 0.75);
          margin-bottom: var(--space-3);
        }

        .building-hero__heading {
          font-family: var(--font-heading);
          font-size: clamp(2rem, 5vw, 3.5rem);
          font-weight: 700;
          color: var(--color-base);
          line-height: 1.15;
          margin-bottom: var(--space-4);
          text-shadow: 0 2px 12px rgba(0, 0, 0, 0.45);
        }

        .building-hero__motto {
          font-size: clamp(0.9375rem, 2vw, 1.25rem);
          font-weight: 500;
          color: rgba(255, 255, 255, 0.90);
          letter-spacing: 0.08em;
          text-shadow: 0 1px 6px rgba(0, 0, 0, 0.5);
          margin-bottom: var(--space-6);
        }

        .building-hero__cta {
          display: inline-flex;
          align-items: center;
          padding: var(--space-2) var(--space-6);
          background-color: var(--color-church-blue);
          color: var(--color-base);
          text-decoration: none;
          font-weight: 600;
          font-size: 1rem;
          border-radius: var(--border-radius-pill);
          transition: background-color 150ms ease, transform 150ms ease;
        }

        .building-hero__cta:hover {
          background-color: var(--color-church-blue-dark);
          transform: translateY(-2px);
        }

        .building-hero__cta:focus-visible {
          outline: 2px solid var(--color-base);
          outline-offset: 3px;
        }


        /* === JOURNEY SECTION (Centered) === */
        .journey-section {
          background-color: var(--color-base);
          padding: var(--space-8) var(--space-4);
          border-top: 1px solid var(--color-border-soft);
        }

        .journey-section__inner {
          max-width: var(--container-max-width);
          margin: 0 auto;
          text-align: center;
        }

        .journey-section__heading {
          font-family: var(--font-heading);
          font-size: clamp(1.75rem, 4vw, 2.5rem);
          font-weight: 700;
          color: var(--color-text-primary);
          margin-bottom: var(--space-6);
        }

        .journey-timeline {
          list-style: none;
          display: flex;
          flex-direction: column;
          align-items: center;
          gap: var(--space-6);
          position: relative;
          padding: 0;
          border-left: none;
          margin-top: var(--space-6);
        }

        /* Central connecting line */
        .journey-timeline::before {
          content: '';
          position: absolute;
          top: 0;
          bottom: 0;
          left: 50%;
          transform: translateX(-50%);
          width: 2px;
          background-color: var(--color-border-soft);
          z-index: 0;
        }

        @media (max-width: 48rem) {
          .journey-timeline::before {
            display: none; /* Hide central line on mobile to keep it cleaner */
          }
        }

        .journey-timeline__item {
          position: relative;
          padding: var(--space-4) 0 0 0;
          max-width: 58ch;
          text-align: center;
          background: var(--color-base); /* hide the line behind it */
          z-index: 1;
        }

        .journey-timeline__item::before {
          content: '';
          position: absolute;
          left: 50%;
          top: 0;
          transform: translate(-50%, 0);
          width: 10px;
          height: 10px;
          border-radius: 50%;
          background-color: var(--color-church-blue);
          border: 2px solid var(--color-base);
          box-shadow: 0 0 0 2px var(--color-church-blue);
          z-index: 2;
        }

        .journey-timeline__year {
          font-size: 0.75rem;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: 0.1em;
          color: var(--color-church-blue);
          margin-bottom: var(--space-1);
        }

        .journey-timeline__heading {
          font-family: var(--font-heading);
          font-size: 1.0625rem;
          font-weight: 600;
          color: var(--color-text-primary);
          margin-bottom: var(--space-2);
        }

        .journey-timeline__body {
          font-size: 0.9375rem;
          color: var(--color-text-body);
          line-height: var(--line-height-body);
          margin: 0 auto;
        }

        /* === SUPPORT SECTION === */
        .support-section {
          background-color: var(--color-base-soft);
          padding: var(--space-8) var(--space-4);
          border-top: 1px solid var(--color-border-soft);
        }

        .support-section__inner {
          max-width: var(--container-max-width);
          margin: 0 auto;
          text-align: center;
        }

        .support-section__heading {
          font-family: var(--font-heading);
          font-size: clamp(1.75rem, 4vw, 2.5rem);
          font-weight: 700;
          color: var(--color-text-primary);
          margin-bottom: var(--space-2);
        }

        .support-section__lead {
          font-size: 1.0625rem;
          color: var(--color-text-body);
          max-width: 48ch;
          margin: 0 auto var(--space-8);
          line-height: var(--line-height-body);
        }

        .donation-grid {
          display: grid;
          grid-template-columns: 1fr;
          gap: var(--space-4);
          margin-bottom: var(--space-8);
        }

        @media (min-width: 40rem) {
          .donation-grid {
            grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
          }
        }

        .currency-card {
          background-color: var(--color-base);
          border: 1px solid var(--color-border-soft);
          border-radius: var(--border-radius-card);
          padding: var(--space-6);
          text-align: left;
        }

        .currency-card__label {
          font-size: 0.75rem;
          font-weight: 700;
          text-transform: uppercase;
          letter-spacing: 0.1em;
          color: var(--color-church-blue);
          margin-bottom: var(--space-2);
        }

        .currency-card__title {
          font-family: var(--font-heading);
          font-size: 1rem;
          font-weight: 600;
          color: var(--color-text-primary);
          margin-bottom: var(--space-3);
        }

        .currency-card__detail {
          display: flex;
          flex-direction: column;
          gap: var(--space-1);
          margin-bottom: var(--space-2);
        }

        .currency-card__detail-key {
          font-size: 0.75rem;
          font-weight: 600;
          text-transform: uppercase;
          letter-spacing: 0.06em;
          color: var(--color-text-secondary);
        }

        .currency-card__detail-val {
          font-size: 0.9375rem;
          font-weight: 500;
          color: var(--color-text-primary);
          word-break: break-all;
        }

        .support-section__note {
          font-size: 0.875rem;
          color: var(--color-text-secondary);
          max-width: 44ch;
          margin: 0 auto;
          line-height: var(--line-height-body);
        }

        .support-section__contact {
          margin-top: var(--space-4);
        }

        .support-section__contact a {
          color: var(--color-church-blue);
          font-weight: 600;
          text-decoration: none;
        }

        .support-section__contact a:hover {
          text-decoration: underline;
        }
        }
}
