/* ==========================================================================
   Rapha Ministries — Design System
   Prepare Kingsway Ministries, Inc. | Antipolo City, Philippines
   Built on Bootstrap 5.3 · Modern CSS custom properties
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand palette — warm & vibrant, for a children's care organisation */
  --rapha-coral: #e8603c;        /* primary — warm coral/orange */
  --rapha-coral-dark: #c94a29;
  --rapha-coral-soft: #fdf0ea;
  --rapha-sky: #2b7fb8;          /* secondary — sky blue */
  --rapha-sky-dark: #1f6394;
  --rapha-sky-soft: #eaf4fb;
  --rapha-sun: #f5b544;          /* accent — sunlight yellow */
  --rapha-leaf: #4a9d6e;         /* tertiary — growth green */
  --rapha-plum: #6b4c7a;         /* deep accent for devotional sections */

  /* Neutrals */
  --rapha-ink: #22262b;          /* body text */
  --rapha-ink-soft: #5a6470;
  --rapha-muted: #8d97a3;
  --rapha-line: #e6e9ee;
  --rapha-cream: #fdf8f3;        /* warm off-white page background */
  --rapha-white: #ffffff;

  /* Typography */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Radii & shadows */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;
  --sh-sm: 0 1px 2px rgba(34, 38, 43, .06), 0 2px 8px rgba(34, 38, 43, .05);
  --sh-md: 0 4px 12px rgba(34, 38, 43, .07), 0 12px 28px rgba(34, 38, 43, .07);
  --sh-lg: 0 10px 30px rgba(34, 38, 43, .10), 0 24px 60px rgba(34, 38, 43, .09);

  /* Rhythm */
  --section-y: clamp(3.5rem, 7vw, 6rem);
  --container-max: 1180px;
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  font-family: var(--font-body);
  color: var(--rapha-ink);
  background: var(--rapha-white);
  line-height: 1.7;
  font-size: 1.0625rem;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--rapha-ink);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -.015em;
  margin: 0 0 .5em;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.75rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--rapha-sky-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color .18s ease;
}
a:hover { color: var(--rapha-coral-dark); }

img { max-width: 100%; height: auto; display: block; }

:focus-visible {
  outline: 3px solid var(--rapha-sky);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--rapha-ink);
  color: #fff;
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

/* --------------------------------------------------------------------------
   3. Layout helpers
   -------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 2.5rem, var(--container-max));
  margin-inline: auto;
}
.wrap--narrow { width: min(100% - 2.5rem, 820px); margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--cream { background: var(--rapha-cream); }
.section--sky { background: var(--rapha-sky-soft); }
.section--ink { background: var(--rapha-ink); color: #fff; }
.section--ink h2,
.section--ink h3 { color: #fff; }

.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--rapha-coral);
  margin-bottom: .85rem;
}
.eyebrow--light { color: var(--rapha-sun); }

.lede {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--rapha-ink-soft);
  line-height: 1.65;
}
.section--ink .lede { color: rgba(255, 255, 255, .82); }

/* --------------------------------------------------------------------------
   4. Buttons
   -------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--rapha-coral);
  --btn-fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  padding: .9rem 1.6rem;
  border-radius: var(--r-pill);
  border: 2px solid transparent;
  background: var(--btn-bg);
  color: var(--btn-fg);
  text-decoration: none;
  cursor: pointer;
  transition: transform .16s ease, background .18s ease,
    box-shadow .18s ease, border-color .18s ease, color .18s ease;
}
.btn:hover {
  background: var(--rapha-coral-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 74, 41, .28);
}
.btn:active { transform: translateY(0); }

.btn--sky { --btn-bg: var(--rapha-sky); }
.btn--sky:hover { background: var(--rapha-sky-dark); box-shadow: 0 8px 20px rgba(43, 127, 184, .3); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--rapha-ink);
  border-color: var(--rapha-line);
}
.btn--ghost:hover {
  background: var(--rapha-white);
  border-color: var(--rapha-coral);
  color: var(--rapha-coral-dark);
  box-shadow: var(--sh-sm);
}

.btn--light {
  --btn-bg: rgba(255, 255, 255, .14);
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .4);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--rapha-ink); box-shadow: var(--sh-md); }

.btn--sm { padding: .65rem 1.15rem; font-size: .92rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

/* --------------------------------------------------------------------------
   5. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, transform .3s ease;
}
.site-header.is-stuck {
  box-shadow: 0 2px 16px rgba(34, 38, 43, .08);
  border-bottom-color: var(--rapha-line);
}
.site-header.is-hidden { transform: translateY(-100%); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: .8rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.brand__mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(140deg, var(--rapha-coral), var(--rapha-sun));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 3px 10px rgba(232, 96, 60, .3);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.24rem;
  color: var(--rapha-ink);
  letter-spacing: -.02em;
}
.brand__sub {
  font-size: .68rem;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--rapha-muted);
  font-weight: 600;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: .3rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links a {
  display: block;
  padding: .55rem .85rem;
  border-radius: var(--r-sm);
  font-size: .95rem;
  font-weight: 500;
  color: var(--rapha-ink-soft);
  text-decoration: none;
  transition: background .16s ease, color .16s ease;
}
.nav__links a:hover { background: var(--rapha-coral-soft); color: var(--rapha-coral-dark); }
.nav__links a[aria-current="page"] { color: var(--rapha-coral-dark); font-weight: 600; }

.nav__cta { margin-left: .6rem; }

.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--rapha-line);
  border-radius: var(--r-sm);
  padding: .5rem .6rem;
  cursor: pointer;
  color: var(--rapha-ink);
}
.nav__toggle svg { display: block; }

@media (max-width: 991px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute;
    inset: 100% 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--rapha-line);
    padding: .6rem 1.25rem 1.25rem;
    box-shadow: var(--sh-md);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: .8rem .5rem; font-size: 1.05rem; border-bottom: 1px solid var(--rapha-line); border-radius: 0; }
  .nav__cta { margin: .9rem 0 0; }
  .nav__cta .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--rapha-coral-soft) 0%, var(--rapha-cream) 55%, var(--rapha-sky-soft) 100%);
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem);
}
.hero::after {
  content: "";
  position: absolute;
  width: 620px; height: 620px;
  right: -220px; top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(245, 181, 68, .22), transparent 68%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 899px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { order: -1; }
}
.hero h1 { margin-bottom: 1rem; }
.hero h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(245, 181, 68, .55) 62%);
  padding-inline: .1em;
}
.hero__lede { font-size: clamp(1.08rem, 1.9vw, 1.3rem); color: var(--rapha-ink-soft); margin-bottom: 1.75rem; max-width: 34em; }

.hero__media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-lg);
  aspect-ratio: 4 / 3.4;
  background: var(--rapha-sky-soft);
}
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* Stat strip under hero */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--rapha-line);
  border-radius: var(--r-md);
  overflow: hidden;
  margin-top: clamp(2.25rem, 4vw, 3.25rem);
  position: relative;
  box-shadow: var(--sh-sm);
}
.stat-strip__item { background: #fff; padding: 1.4rem 1.1rem; text-align: center; }
.stat-strip__num {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 700;
  color: var(--rapha-coral);
  line-height: 1.1;
}
.stat-strip__label { font-size: .84rem; color: var(--rapha-ink-soft); font-weight: 500; margin-top: .25rem; }
@media (max-width: 767px) {
  .stat-strip { grid-template-columns: repeat(2, 1fr); }
}

/* --------------------------------------------------------------------------
   7. Cards
   -------------------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 991px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 599px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--rapha-line);
  border-radius: var(--r-md);
  padding: 1.6rem 1.5rem;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: #dfe3ea; }
.card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.card p { color: var(--rapha-ink-soft); font-size: .97rem; margin-bottom: 0; }

.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  margin-bottom: 1.1rem;
  background: var(--rapha-coral-soft);
  color: var(--rapha-coral);
}
.card__icon svg { width: 26px; height: 26px; }
.card__icon--sky { background: var(--rapha-sky-soft); color: var(--rapha-sky); }
.card__icon--leaf { background: #e9f5ee; color: var(--rapha-leaf); }
.card__icon--sun { background: #fdf4e2; color: #c98a12; }
.card__icon--plum { background: #f2ecf6; color: var(--rapha-plum); }

/* Programme card with image */
.pcard {
  background: #fff;
  border: 1px solid var(--rapha-line);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: var(--sh-md); }
.pcard__media { aspect-ratio: 16 / 10; background: var(--rapha-sky-soft); overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { padding: 1.4rem 1.4rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.pcard__tag {
  display: inline-block;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--rapha-coral-dark);
  background: var(--rapha-coral-soft);
  padding: .3rem .7rem;
  border-radius: var(--r-pill);
  margin-bottom: .8rem;
}
.pcard__tag--sky { color: var(--rapha-sky-dark); background: var(--rapha-sky-soft); }
.pcard__tag--leaf { color: #2f7350; background: #e9f5ee; }
.pcard h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pcard p { color: var(--rapha-ink-soft); font-size: .96rem; margin: 0; }
.pcard__meta {
  margin-top: auto;
  padding-top: 1rem;
  font-size: .85rem;
  color: var(--rapha-muted);
  display: flex;
  align-items: center;
  gap: .45rem;
}

/* --------------------------------------------------------------------------
   8. Pillars / feature list
   -------------------------------------------------------------------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 899px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  background: #fff;
  border-radius: var(--r-md);
  padding: 1.9rem 1.6rem;
  border: 1px solid var(--rapha-line);
  border-top: 4px solid var(--rapha-coral);
}
.pillar:nth-child(2) { border-top-color: var(--rapha-sky); }
.pillar:nth-child(3) { border-top-color: var(--rapha-leaf); }
.pillar h3 { font-size: 1.28rem; }
.pillar p { color: var(--rapha-ink-soft); font-size: .97rem; margin: 0; }

/* Check list */
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--rapha-ink-soft); }
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: var(--rapha-coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23e8603c'%3E%3Cpath d='M13.5 4.5 6.5 11.5 2.5 7.5l1-1 3 3 6-6z'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* --------------------------------------------------------------------------
   9. Quote
   -------------------------------------------------------------------------- */
.quote-block {
  background: linear-gradient(150deg, var(--rapha-coral) 0%, #d8552f 100%);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2rem, 4.5vw, 3.25rem);
  position: relative;
  overflow: hidden;
}
.quote-block::before {
  content: "\201C";
  position: absolute;
  top: -1.6rem; left: 1.5rem;
  font-family: var(--font-display);
  font-size: 11rem;
  line-height: 1;
  color: rgba(255, 255, 255, .18);
}
.quote-block blockquote {
  position: relative;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.4vw, 1.7rem);
  line-height: 1.45;
  font-weight: 500;
}
.quote-block cite {
  display: block;
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, .85);
}

/* --------------------------------------------------------------------------
   10. Certification badges
   -------------------------------------------------------------------------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 1rem; }
.badge-card {
  flex: 1 1 220px;
  background: #fff;
  border: 1px solid var(--rapha-line);
  border-radius: var(--r-md);
  padding: 1.2rem 1.3rem;
  display: flex;
  gap: .9rem;
  align-items: flex-start;
}
.badge-card__icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 11px;
  display: grid; place-items: center;
  background: #e9f5ee; color: var(--rapha-leaf);
}
.badge-card__icon svg { width: 22px; height: 22px; }
.badge-card h4, .badge-card .h-tile { font-family: var(--font-body); font-size: .95rem; font-weight: 700; margin: 0 0 .2rem; }
.badge-card p { font-size: .85rem; color: var(--rapha-muted); margin: 0; line-height: 1.5; }

/* --------------------------------------------------------------------------
   11. Partner logos / list
   -------------------------------------------------------------------------- */
.partner-list {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.partner-list li {
  background: #fff;
  border: 1px solid var(--rapha-line);
  border-radius: var(--r-pill);
  padding: .6rem 1.2rem;
  font-size: .95rem;
  font-weight: 600;
  color: var(--rapha-ink-soft);
}

/* --------------------------------------------------------------------------
   12. Page hero — parallax banner for inner pages
   -------------------------------------------------------------------------- */
.banner--page {
  min-height: clamp(300px, 42vw, 440px);
  text-align: left;
}
.banner--page .banner__inner {
  max-width: var(--container-max);
  width: 100%;
  padding: clamp(3rem, 6vw, 4.5rem) 1.25rem clamp(2.5rem, 5vw, 3.5rem);
  text-align: left;
}
.banner--page h1 {
  color: #fff;
  font-size: clamp(1.85rem, 4.2vw, 3rem);
  line-height: 1.12;
  margin-bottom: .7rem;
  text-wrap: balance;
}
.banner--page .lede {
  color: rgba(255,255,255,.92);
  max-width: 46em;
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  margin: 0;
}

.crumbs {
  position: relative;
  font-size: .87rem;
  color: rgba(255,255,255,.72);
  margin-bottom: 1rem;
}
.crumbs a { color: rgba(255,255,255,.8); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { margin-inline: .4rem; opacity: .6; }

/* Fallback (no parallax) — non-banner pages keep a soft tint */
.page-hero {
  background: linear-gradient(160deg, var(--rapha-cream), var(--rapha-sky-soft));
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
}
.page-hero h1 { position: relative; margin-bottom: .75rem; }
.page-hero .lede { position: relative; max-width: 46em; }

/* --------------------------------------------------------------------------
   13. Prose (long-form content)
   -------------------------------------------------------------------------- */
.prose h2 { margin-top: 2.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.75rem; }
.prose p, .prose li { color: var(--rapha-ink-soft); }
.prose ul { padding-left: 1.15rem; }
.prose li { margin-bottom: .45rem; }
.prose strong { color: var(--rapha-ink); }

/* Callout */
.callout {
  background: var(--rapha-sky-soft);
  border-left: 4px solid var(--rapha-sky);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 1.15rem 1.35rem;
  margin: 1.5rem 0;
}
.callout p { margin: 0; color: var(--rapha-ink); font-size: .97rem; }

.callout--warm { background: var(--rapha-coral-soft); border-left-color: var(--rapha-coral); }

/* --------------------------------------------------------------------------
   14. Split content (image + text)
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
}
.split--reverse .split__media { order: 2; }
@media (max-width: 899px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}
.split__copy { min-width: 0; }
.split__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-md);
  aspect-ratio: 4 / 3;
  background: var(--rapha-sky-soft);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
/* the media-stack figure is absolutely positioned — let it size itself */
.split__media:has(.media-stack) { aspect-ratio: auto; overflow: visible; box-shadow: none; border-radius: 0; background: none; }

/* --------------------------------------------------------------------------
   15. Timeline
   -------------------------------------------------------------------------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 9px; top: .5rem; bottom: .5rem;
  width: 2px;
  background: var(--rapha-line);
}
.timeline li { position: relative; padding-left: 2.5rem; margin-bottom: 1.6rem; }
.timeline li:last-child { margin-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--rapha-coral);
}
.timeline h3 { font-size: 1.12rem; margin-bottom: .25rem; }
.timeline p { color: var(--rapha-ink-soft); font-size: .95rem; margin: 0; }
.timeline time { font-size: .82rem; font-weight: 700; color: var(--rapha-coral); letter-spacing: .05em; text-transform: uppercase; }

/* --------------------------------------------------------------------------
   16. Forms
   -------------------------------------------------------------------------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 599px) { .form-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: .4rem; }
.field label { font-size: .9rem; font-weight: 600; color: var(--rapha-ink); }
.field .req { color: var(--rapha-coral); }
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem .9rem;
  border: 1.5px solid var(--rapha-line);
  border-radius: var(--r-sm);
  background: #fff;
  color: var(--rapha-ink);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--rapha-sky);
  box-shadow: 0 0 0 3px rgba(43, 127, 184, .16);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: .82rem; color: var(--rapha-muted); }

.form-note {
  font-size: .88rem;
  color: var(--rapha-muted);
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   17. Info tiles (contact)
   -------------------------------------------------------------------------- */
.info-tile {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rapha-line);
}
.info-tile:last-child { border-bottom: 0; }
.info-tile__icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--rapha-coral-soft);
  color: var(--rapha-coral);
}
.info-tile__icon svg { width: 22px; height: 22px; }
.info-tile h4, .info-tile .h-tile { font-family: var(--font-body); font-size: .82rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--rapha-muted); margin: 0 0 .3rem; }
.info-tile p, .info-tile a { margin: 0; font-size: 1.02rem; color: var(--rapha-ink); text-decoration: none; }
.info-tile a:hover { color: var(--rapha-coral); }

/* --------------------------------------------------------------------------
   18. CTA band
   -------------------------------------------------------------------------- */
.cta-band {
  background: linear-gradient(135deg, var(--rapha-sky-dark), var(--rapha-sky) 55%, #3f97cd);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(2.25rem, 5vw, 3.5rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  left: -180px; bottom: -260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 70%);
  pointer-events: none;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255, 255, 255, .88); max-width: 46em; margin-inline: auto; position: relative; }
.cta-band .btn-row { justify-content: center; margin-top: 1.6rem; position: relative; }

/* --------------------------------------------------------------------------
   19. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--rapha-ink);
  color: rgba(255, 255, 255, .72);
  padding-block: clamp(2.75rem, 5vw, 4rem) 1.75rem;
  margin-top: 0;
}
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2rem;
}
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 599px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__sub { color: rgba(255, 255, 255, .55); }
.footer-brand p { font-size: .93rem; margin-top: 1rem; max-width: 30em; }

.footer-col h4 {
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; font-size: .93rem; }

.footer-certs { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.footer-certs span {
  font-size: .76rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--r-pill);
  padding: .28rem .7rem;
  color: rgba(255, 255, 255, .75);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, .13);
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.5rem;
  justify-content: space-between;
  font-size: .85rem;
}

/* --------------------------------------------------------------------------
   20. Scroll-in animation
   -------------------------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
/* If JS never runs, nothing must stay invisible. main.js sets .js on <html>. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* Same safety net for the hero slider: without JS only the first slide shows,
   and it must be visible. */
html:not(.js) .hero-slider__slide { position: relative; }
html:not(.js) .hero-slider__slide:not(.is-active) { display: none; }
html:not(.js) .hero-slider__controls { display: none; }

/* --------------------------------------------------------------------------
   21. Utilities
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Screen-reader-only but focusable */
.sr-only-focusable:not(:focus):not(:focus-within) {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   22. MOTION — parallax, sliders, reveal variants
   ========================================================================== */

/* ---- 22.1 Scroll progress bar ---- */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--rapha-coral), var(--rapha-sun), var(--rapha-sky));
  z-index: 1100;
  transition: width .1s linear;
  pointer-events: none;
}

/* ---- 22.2 Parallax media ---- */
.parallax {
  position: relative;
  overflow: hidden;
}
.parallax__img {
  width: 100%;
  height: 118%;          /* extra height so it can move */
  object-fit: cover;
  position: absolute;
  top: -9%; left: 0;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* ---- 22.3 Full-width parallax banner ---- */
.banner {
  position: relative;
  min-height: clamp(340px, 52vw, 540px);
  display: grid;
  place-items: center;
  overflow: hidden;
  text-align: center;
  color: #fff;
}
.banner__bg {
  position: absolute;
  inset: -12% 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.banner__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,24,30,.55), rgba(20,24,30,.42) 45%, rgba(20,24,30,.62));
}
.banner__inner { position: relative; z-index: 2; padding: 2rem 1.25rem; max-width: 780px; }
.banner h2 { color: #fff; }
.banner p { color: rgba(255,255,255,.9); font-size: clamp(1.02rem, 1.8vw, 1.18rem); }

/* ---- 22.4 Horizontal slider (scroll-snap, drag, arrows, dots) ---- */
.slider { position: relative; }
.slider__track {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 1.5rem;
  margin-inline: -.25rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.slider__track::-webkit-scrollbar { display: none; }
.slider__track.is-dragging { cursor: grabbing; scroll-snap-type: none; scroll-behavior: auto; }
.slider__slide {
  flex: 0 0 clamp(260px, 82vw, 350px);
  scroll-snap-align: start;
}
@media (min-width: 900px) { .slider__slide { flex-basis: 350px; } }

.slider__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: .25rem;
}
.slider__dots { display: flex; gap: .45rem; }
.slider__dot {
  width: 9px; height: 9px; padding: 0;
  border: 0; border-radius: 50%;
  background: var(--rapha-line);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, width .2s ease;
}
.slider__dot[aria-current="true"] {
  background: var(--rapha-coral);
  width: 26px;
  border-radius: var(--r-pill);
}
.slider__arrows { display: flex; gap: .5rem; }
.slider__arrow {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--rapha-line);
  background: #fff;
  color: var(--rapha-ink);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.slider__arrow:hover {
  background: var(--rapha-coral);
  border-color: var(--rapha-coral);
  color: #fff;
  transform: translateY(-2px);
}
.slider__arrow:disabled { opacity: .38; cursor: default; transform: none; }
.slider__arrow:disabled:hover { background: #fff; border-color: var(--rapha-line); color: var(--rapha-ink); }
.slider__arrow svg { width: 20px; height: 20px; }

/* Card used inside sliders */
.scard {
  background: #fff;
  border: 1px solid var(--rapha-line);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.scard:hover { transform: translateY(-5px); box-shadow: var(--sh-md); }
.scard__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--rapha-sky-soft); }
.scard__media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.scard:hover .scard__media img { transform: scale(1.06); }
.scard__body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.scard h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.scard p { color: var(--rapha-ink-soft); font-size: .94rem; margin: 0; }
.scard__cap {
  margin-top: auto;
  padding-top: .9rem;
  font-size: .82rem;
  color: var(--rapha-muted);
}

/* ---- 22.5 Gallery grid with zoom + lightbox ---- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
@media (max-width: 991px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 599px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.gallery a {
  display: block;
  border-radius: var(--r-sm);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: var(--rapha-sky-soft);
  position: relative;
}
.gallery img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease, filter .3s ease;
}
.gallery a::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(34,38,43,0);
  transition: background .3s ease;
}
.gallery a:hover img { transform: scale(1.07); }
.gallery a:hover::after { background: rgba(34,38,43,.13); }

/* tall feature */
.gallery a.tall { grid-row: span 2; aspect-ratio: auto; }

/* ---- 22.6 Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1500;
  background: rgba(16,19,23,.92);
  display: none;
  place-items: center;
  padding: 1.5rem;
}
.lightbox.is-open { display: grid; }
.lightbox img {
  max-width: min(1100px, 94vw);
  max-height: 86vh;
  border-radius: var(--r-md);
  box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.lightbox__close {
  position: absolute;
  top: 1.25rem; right: 1.25rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__close:hover { background: rgba(255,255,255,.22); }
.lightbox__close svg { width: 22px; height: 22px; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.1);
  color: #fff;
  cursor: pointer;
  display: grid; place-items: center;
}
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav svg { width: 24px; height: 24px; }
.lightbox__nav--prev { left: 1.25rem; }
.lightbox__nav--next { right: 1.25rem; }

/* ---- 22.7 Reveal variants ---- */
.reveal--left  { transform: translateX(-26px); }
.reveal--right { transform: translateX(26px); }
.reveal--zoom  { transform: scale(.94); }
.reveal--left.is-in, .reveal--right.is-in { transform: none; }
.reveal--zoom.is-in { transform: none; }

/* stagger via inline --i */
.reveal[style*="--i"] { transition-delay: calc(var(--i) * 90ms); }

/* ---- 22.8 Marquee (partner strip) ---- */
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__row {
  display: flex;
  gap: 2.5rem;
  width: max-content;
  animation: marquee-scroll 26s linear infinite;
}
.marquee:hover .marquee__row { animation-play-state: paused; }
.marquee__item {
  flex: 0 0 auto;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--rapha-ink-soft);
  opacity: .72;
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__row { animation: none; }
}

/* ---- 22.9 Floating shapes in hero ---- */
.float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

/* ---- 22.10 Count-up number ---- */
.count { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   23. HERO SLIDER (home page)
   ========================================================================== */
.hero-slider {
  position: relative;
  background: #171b21;
  overflow: hidden;
}
.hero-slider__viewport {
  position: relative;
  min-height: clamp(520px, 74vh, 720px);
}
.hero-slider__track {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
  min-height: clamp(520px, 74vh, 720px);
}
.hero-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
  display: grid;
  align-items: center;
}
.hero-slider__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}
.hero-slider__slide img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
  transition: transform 7.5s ease-out;
}
.hero-slider__slide.is-active img { transform: scale(1); }

.hero-slider__scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(100deg,
      rgba(14,17,22,.90) 0%,
      rgba(14,17,22,.80) 34%,
      rgba(14,17,22,.56) 62%,
      rgba(14,17,22,.42) 100%),
    linear-gradient(180deg, rgba(14,17,22,.30), transparent 30%, rgba(14,17,22,.35));
}
.hero-slider__content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(6.5rem, 10vw, 8.5rem);
  color: #fff;
}
.hero-slider__content .wrap { max-width: 1180px; }
.hero-slider__content .eyebrow { color: var(--rapha-sun); }
.hero-slider__content h1 {
  color: #fff;
  max-width: 17ch;
  font-size: clamp(2.05rem, 5.2vw, 3.6rem);
  line-height: 1.09;
  margin-bottom: 1.05rem;
  text-wrap: balance;
}
.hero-slider__content h1 .hl {
  background: linear-gradient(180deg, transparent 62%, rgba(245,181,68,.55) 62%);
  padding-inline: .06em;
}
.hero-slider__content .hero__lede {
  color: rgba(255,255,255,.92);
  max-width: 54ch;
  font-size: clamp(1.03rem, 1.7vw, 1.2rem);
}
/* only the active slide's copy is visible to AT / tab order */
.hero-slider__slide:not(.is-active) .hero-slider__content {
  visibility: hidden;
}

.hero-slider__glow {
  position: absolute;
  bottom: -34%;
  right: -12%;
  width: 46vw;
  height: 46vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,96,60,.30), transparent 68%);
  filter: blur(12px);
  pointer-events: none;
  z-index: 2;
}

.hero-slider__controls {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.35rem, 3.2vw, 2.4rem);
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.hero-slider__controls .slider__dot { background: rgba(255,255,255,.42); }
.hero-slider__controls .slider__dot[aria-current="true"] { background: var(--rapha-sun); }
.slider__arrow--onDark {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.4);
  color: #fff;
}
.slider__arrow--onDark:hover {
  background: var(--rapha-coral);
  border-color: var(--rapha-coral);
  color: #fff;
}
.slider__arrow--onDark:disabled {
  opacity: .3;
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.3);
  color: #fff;
}

@media (max-width: 640px) {
  .hero-slider__track { min-height: 560px; }
  .hero-slider__content h1 { max-width: none; }
}

/* ==========================================================================
   24. STAT BAND
   ========================================================================== */
.stat-band {
  margin-top: -3.75rem;
  position: relative;
  z-index: 5;
  padding-bottom: 0;
}
.stat-band .stat-strip {
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  border: 1px solid var(--rapha-line);
  margin: 0;
}
@media (max-width: 700px) {
  .stat-band { margin-top: -2rem; }
  .stat-band .stat-strip { border-radius: var(--r-md); }
}

/* ==========================================================================
   25. MEDIA STACK (overlapping parallax images)
   ========================================================================== */
.media-stack { position: relative; }
.media-stack__main {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  box-shadow: var(--sh-md);
}
.media-stack__inset {
  margin: 0;
  position: absolute;
  right: -6%;
  bottom: -9%;
  width: 47%;
  border-radius: var(--r-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 5px solid #fff;
  box-shadow: var(--sh-lg);
}
.media-stack__badge {
  position: absolute;
  left: -5%;
  top: 8%;
  background: var(--rapha-coral);
  color: #fff;
  border-radius: var(--r-md);
  padding: .8rem 1.05rem;
  text-align: center;
  box-shadow: var(--sh-md);
  line-height: 1.2;
}
.media-stack__badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}
.media-stack__badge span { font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 640px) {
  .media-stack__inset { right: -2%; bottom: -6%; width: 44%; }
  .media-stack__badge { left: -2%; }
}

/* ==========================================================================
   26. SOFT / TINTED SECTION BACKGROUNDS
   ========================================================================== */
.section--soft { background: #f6f8fb; }
.section--cream .banner + * { margin-top: 0; }

/* Banner heading scale */
.banner h2 { font-size: clamp(1.7rem, 3.8vw, 2.7rem); margin-bottom: .75rem; }

/* ==========================================================================
   27. RESPONSIVE — motion-aware refinements
   ========================================================================== */
@media (max-width: 991px) {
  .slider__slide { flex-basis: clamp(250px, 74vw, 320px); }
  .slider__nav { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .gallery a.tall { grid-row: span 1; aspect-ratio: 1 / 1; }
  .banner { min-height: clamp(300px, 62vw, 420px); }
  .hero-slider__controls { flex-direction: column-reverse; align-items: flex-start; gap: .7rem; }
  .stat-band .stat-strip { padding: 1.4rem 1rem; }
}

@media (max-width: 480px) {
  .slider__slide { flex-basis: 84vw; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: .4rem; }
  .lightbox__nav--next { right: .4rem; }
  .lightbox__close { top: .7rem; right: .7rem; }
}

/* Kill the slide zoom + parallax under reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .hero-slider__slide img { transform: none !important; }
  .parallax__img, .banner__bg { transform: none !important; }
  .scard:hover .scard__media img,
  .gallery a:hover img { transform: none; }
}
