/* ==========================================================================
   NCE — Nouvelle Communauté de l'Espérance
   Design System — style.css
   Brand system: Blue Bell (#0093D0) / Light Sky Blue (#80C3E1) / Shadow Grey
   (#201D20) / White — bright, modern, international-humanitarian in feel.
   Internal variable names (--ink-*, --gold-*, --coral-*) are retained from
   an earlier palette but now resolve to the brand colors below, so every
   component built on top of them inherits the new system automatically.
   ========================================================================== */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Karla:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---- Tokens ---- */
:root {
  /* Brand colors (canonical) */
  --primary: #0093D0;
  /* Blue Bell */
  --primary-light: #80C3E1;
  /* Light Sky Blue */
  --primary-dark: #00699C;
  /* derived hover/active shade */
  --primary-pale: #E9F6FC;
  /* derived pale wash for backgrounds */
  --dark: #201D20;
  /* Shadow Grey */
  --white: #FFFFFF;

  /* Internal aliases mapped onto the brand system */
  --ink-900: #201D20;
  /* Shadow Grey — deepest surface */
  --ink-800: #2B272B;
  --ink-700: #3A353A;
  --ink-600: #4E474E;
  --gold-500: #0093D0;
  /* accent = Blue Bell */
  --gold-400: #80C3E1;
  /* accent light = Light Sky Blue */
  --gold-100: #E9F6FC;
  /* pale accent wash */
  --coral-500: #00699C;
  /* deeper blue, used where a stronger accent/CTA is needed */
  --coral-600: #00527A;
  --sage-500: #0093D0;
  --sage-600: #00699C;
  --cream-100: #FFFFFF;
  /* page background = White */
  --cream-000: #FFFFFF;
  --line: #E3EEF4;
  /* hairline, cool light grey-blue */
  --line-dark: rgba(255, 255, 255, 0.14);
  --ink-text: #201D20;
  --muted-text: #5B6570;

  /* Type */
  --font-display: 'Spectral', Georgia, serif;
  --font-body: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.1rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.6rem + 1.4vw, 2.6rem);
  --step-4: clamp(2.4rem, 1.9rem + 2.2vw, 3.6rem);
  --step-5: clamp(3rem, 2.2rem + 3.6vw, 5rem);

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius-s: 10px;
  --radius-m: 18px;
  --radius-l: 28px;
  --shadow-soft: 0 8px 30px rgba(32, 29, 32, 0.08);
  --shadow-mid: 0 16px 48px rgba(32, 29, 32, 0.14);
  --shadow-deep: 0 24px 70px rgba(32, 29, 32, 0.28);
  --dawn-gradient: linear-gradient(120deg, var(--ink-900) 0%, var(--primary-dark) 65%, var(--primary) 100%);
  --dawn-line: linear-gradient(90deg, var(--primary-dark), var(--primary) 55%, var(--primary-light));
  --nav-h: 84px;
  --topbar-h: 40px;
  --header-stack: calc(var(--nav-h) + var(--topbar-h));
  --content-offset: var(--header-stack);
}

body.topbar-hidden {
  --content-offset: var(--nav-h);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink-text);
  background: var(--cream-100);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  padding: 0;
  margin: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink-900);
  margin: 0;
  font-weight: 600;
  line-height: 1.15;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 3px;
}

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
}

.section-tight {
  padding-block: clamp(2.25rem, 4vw, 3.5rem);
}

.section-dark {
  background: var(--primary);
  color: #EAF6FC;
}

.section-dark h2,
.section-dark h3 {
  color: #fff;
}

.section-cream {
  background: var(--cream-100);
}

.section-line-top {
  border-top: 1px solid var(--line);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .78rem;
  color: var(--coral-500);
  font-weight: 500;
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: var(--coral-500);
  display: inline-block;
}

.section-dark .eyebrow {
  color: #fff;
}

.section-dark .eyebrow::before {
  background: #fff;
}

.h-xl {
  font-size: var(--step-5);
  letter-spacing: -0.01em;
}

.h-l {
  font-size: var(--step-4);
  letter-spacing: -0.01em;
}

.h-m {
  font-size: var(--step-3);
}

.h-s {
  font-size: var(--step-2);
}

.lede {
  font-size: var(--step-1);
  color: var(--muted-text);
  max-width: 60ch;
}

.section-dark .lede {
  color: #EAF6FC;
}

/* ---- Dawn divider (signature element) ---- */
.dawn-rule {
  height: 3px;
  width: 100%;
  background: var(--dawn-line);
  border: 0;
  border-radius: 3px;
  margin: 0;
}

.dawn-arc-wrap {
  position: relative;
  overflow: hidden;
}

.dawn-arcs {
  position: absolute;
  inset: auto 0 -1px 0;
  height: 140px;
  pointer-events: none;
  opacity: .55;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  padding: .9em 1.6em;
  border-radius: 999px;
  font-weight: 700;
  font-size: .95rem;
  border: 1.5px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(193, 80, 47, 0.28);
}

.btn-primary:hover {
  background: var(--coral-600);
}

.btn-on-nav {
  background: #fff;
  color: var(--primary);
  box-shadow: 0 6px 16px rgba(32, 29, 32, 0.15);
}

.btn-on-nav:hover {
  background: var(--primary-pale);
  color: var(--primary-dark);
}

.btn-gold {
  background: var(--gold-500);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 105, 156, 0.3);
}

.btn-gold:hover {
  background: var(--primary-dark);
}

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--ink-900);
}

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

.amount-btn.active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

.section-dark .btn-outline {
  color: #fff;
}

.section-dark .btn-outline:hover {
  background: #fff;
  color: var(--ink-900);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn-sm {
  padding: .6em 1.2em;
  font-size: .85rem;
}

.btn-block {
  width: 100%;
}

/* ---- Navigation ---- */
.site-header {
  position: fixed;
  top: var(--topbar-h);
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: transparent;
  transition: background-color .25s ease, box-shadow .3s ease, height .3s ease, top .35s ease;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.site-header.is-solid {
  background: var(--primary);
  box-shadow: 0 6px 24px rgba(32, 29, 32, 0.18);
  height: 68px;
}

body.topbar-hidden .site-header {
  top: 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 1.05rem;
  letter-spacing: .01em;
}

.brand-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 100%;
  border-radius: 12px;
  background: transparent;
  padding: 0;
  box-shadow: none;
  flex: none;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}

.brand .brand-full {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand .brand-full small {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: .62rem;
  letter-spacing: .1em;
  color: var(--gold-400);
  text-transform: uppercase;
}

.nav-main {
  display: flex;
  align-items: center;
  gap: 1.9rem;
}

.nav-main a {
  color: #fff;
  opacity: .9;
  font-weight: 600;
  font-size: .92rem;
  position: relative;
  padding: .4rem 0;
  transition: opacity .2s ease;
}

.nav-main a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: #fff;
  transition: right .22s ease;
}

.nav-main a:hover {
  opacity: 1;
}

.nav-main a:hover::after,
.nav-main a.active::after {
  right: 0;
}

.nav-main a.active {
  opacity: 1;
  font-weight: 800;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-deep);
  padding: .6rem;
  min-width: 230px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 20;
}

.nav-dropdown:hover .nav-dropdown-panel,
.nav-dropdown:focus-within .nav-dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-panel a {
  display: block;
  color: var(--ink-text);
  padding: .65rem .9rem;
  border-radius: var(--radius-s);
  font-weight: 600;
  font-size: .88rem;
}

.nav-dropdown-panel a:hover {
  background: var(--cream-100);
  color: var(--coral-500);
}

.nav-dropdown-panel a::after {
  display: none;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: .9rem;
}

.lang-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 3px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: #D9DEEA;
  font-weight: 700;
  font-size: .78rem;
  padding: .4rem .7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
}

.lang-switch button.active {
  background: var(--gold-500);
  color: var(--ink-900);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 42px;
  height: 42px;
  position: relative;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  height: 2px;
  background: #fff;
  transition: transform .25s ease, opacity .25s ease;
}

.nav-toggle span {
  top: 20px;
}

.nav-toggle span::before {
  top: -8px;
}

.nav-toggle span::after {
  top: 8px;
}

.nav-toggle.is-open span {
  background: transparent;
}

.nav-toggle.is-open span::before {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.is-open span::after {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--ink-900);
  z-index: 999;
  padding: calc(var(--content-offset) + 1rem) var(--gutter) 2rem;
  transition: padding-top .35s ease;
  transform: translateX(100%);
  transition: transform .35s ease;
  overflow-y: auto;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.5rem;
  padding: .7rem 0;
  border-bottom: 1px solid var(--line-dark);
}

.mobile-nav .mobile-sub {
  padding-left: 1rem;
}

.mobile-nav .mobile-sub a {
  font-size: 1.05rem;
  font-family: var(--font-body);
  color: #C9D0E0;
  border-bottom: 0;
  padding: .45rem 0;
}

/* ---- Hero ---- */
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: var(--content-offset);
  width: 100%;
  transition: padding-top .35s ease;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: 1.4rem;
}

.hero-cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero-scroll .dot {
  width: 1px;
  height: 34px;
  background: linear-gradient(#fff, transparent);
  animation: scrollpulse 1.8s ease-in-out infinite;
}

@keyframes scrollpulse {

  0%,
  100% {
    opacity: .3;
  }

  50% {
    opacity: 1;
  }
}

.hero-sunrays {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: .5;
}

/* Page hero (interior pages) */
.page-hero {
  position: relative;
  background: var(--dawn-gradient);
  color: #fff;
  padding-top: calc(var(--content-offset) + 3.5rem);
  padding-bottom: 4rem;
  overflow: hidden;
  transition: padding-top .35s ease;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero .breadcrumb {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1rem;
  display: flex;
  gap: .5rem;
  align-items: center;
}

.page-hero h1 {
  color: #fff;
}

/* Full-width photographic page hero (used by flagship pages like Esther Project) */
.page-hero.has-image {
  background: var(--ink-900);
  min-height: 62vh;
  display: flex;
  align-items: flex-end;
  padding-bottom: 3.5rem;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(32,29,32,0.55) 0%, rgba(32,29,32,0.35) 40%, rgba(0,105,156,0.55) 100%);
  z-index: 1;
}

/* ---- Cards ---- */
.card {
  background: #fff;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-mid);
}

.card-pad {
  padding: 1.8rem;
}

.grid {
  display: grid;
  gap: 1.75rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  padding: 2rem 1.7rem;
  border-radius: var(--radius-m);
  background: #fff;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
}

.feature-card .icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.3rem;
  color: var(--coral-500);
}

.feature-card .icon-box svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.2rem;
  margin-bottom: .6rem;
}

.feature-card p {
  color: var(--muted-text);
  font-size: .95rem;
}

.pillars-intro {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 2.2rem;
}

.pillars-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.pillar-card {
  padding: 1.8rem 1.45rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.98), rgba(248,243,232,0.98));
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
  min-height: 100%;
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--coral-500), var(--gold-400));
  transform: scaleX(0.92);
  transform-origin: left;
  border-radius: 999px;
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.2);
  border-color: rgba(255, 214, 128, 0.45);
}

.pillar-card .pillar-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  padding: .34rem .7rem;
  border-radius: 999px;
  background: rgba(254, 177, 72, 0.18);
  color: var(--primary-dark);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.pillar-card .icon-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(254, 177, 72, 0.2), rgba(255, 255, 255, 0.9));
  color: var(--primary-dark);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.66);
  margin-bottom: 1.1rem;
}

.pillar-card h3 {
  color: var(--ink-900);
  margin-bottom: .58rem;
}

.pillar-card p {
  color: #5b6468;
  line-height: 1.7;
  font-size: .95rem;
}

.pillar-card-wide {
  grid-column: 2 / span 2;
  max-width: 620px;
  width: 100%;
  margin: 0 auto;
}

.pillars-grid-last {
  margin-top: 1rem;
}

@media (max-width: 1024px) {
  .pillars-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-card-wide {
    grid-column: 1 / -1;
    max-width: none;
  }
}

@media (max-width: 680px) {
  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .pillar-card {
    padding: 1.5rem 1.2rem;
  }
}

.program-card {
  border-radius: var(--radius-l);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-soft);
  transition: box-shadow .3s ease, transform .3s ease;
  display: flex;
  flex-direction: column;
}

.program-card:hover {
  box-shadow: var(--shadow-mid);
  transform: translateY(-6px);
}

.program-card .media {
  aspect-ratio: 5/4;
  overflow: hidden;
}

.program-card .media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}

.program-card:hover .media img {
  transform: scale(1.06);
}

.program-card .body {
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  flex: 1;
}

.program-card .tag {
  font-family: var(--font-mono);
  font-size: .7rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--coral-500);
  font-weight: 600;
}

.program-card p {
  color: var(--muted-text);
  font-size: .93rem;
}

/* Stat cards */
.stat-card {
  text-align: center;
  padding: 2rem 1rem;
}

.stat-num {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: .7rem;
  color: #EAF6FC;
}

.section-cream .stat-num {
  color: var(--coral-500);
}

.section-cream .stat-label {
  color: var(--muted-text);
}

/* Gallery cards */
.gallery-grid {
  column-count: 3;
  column-gap: 1.2rem;
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1.2rem;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item .cap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem .9rem .8rem;
  background: linear-gradient(to top, rgba(14, 21, 38, .88), transparent);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .25s ease, transform .25s ease;
}

.gallery-item:hover .cap {
  opacity: 1;
  transform: translateY(0);
}

/* Testimonials */
.testimonial {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 2rem;
  box-shadow: var(--shadow-soft);
  position: relative;
}

.testimonial::before {
  content: "“";
  font-family: var(--font-display);
  font-size: 4.5rem;
  color: var(--gold-100);
  position: absolute;
  top: .2rem;
  left: 1.2rem;
  line-height: 1;
}

.testimonial p {
  position: relative;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.08rem;
  color: var(--ink-text);
  margin-bottom: 1.2rem;
}

.testimonial .who {
  display: flex;
  align-items: center;
  gap: .8rem;
}

.testimonial .who .initial {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
}

.testimonial .who strong {
  display: block;
  font-size: .92rem;
}

.testimonial .who span {
  font-size: .8rem;
  color: var(--muted-text);
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.6rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding-bottom: 2.4rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -2.6rem;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 3px solid var(--cream-100);
  box-shadow: 0 0 0 2px var(--gold-500);
}

.timeline-item h4 {
  font-size: 1.05rem;
  margin-bottom: .35rem;
}

.timeline-item p {
  color: var(--muted-text);
  font-size: .94rem;
}

.timeline-item .yr {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--coral-500);
  font-weight: 700;
  letter-spacing: .05em;
}

/* Accordion */
.accordion-item {
  border-bottom: 1px solid var(--line);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 0;
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--ink-900);
}

.accordion-trigger .plus {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  flex: none;
  position: relative;
}

.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--coral-500);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.accordion-trigger .plus::before {
  width: 10px;
  height: 1.5px;
}

.accordion-trigger .plus::after {
  width: 1.5px;
  height: 10px;
  transition: transform .25s ease, opacity .25s ease;
}

.accordion-item.is-open .accordion-trigger .plus::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}

.accordion-panel-inner {
  padding-bottom: 1.4rem;
  color: var(--muted-text);
  font-size: .96rem;
  max-width: 70ch;
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.tabs-nav button {
  padding: .7em 1.3em;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-weight: 700;
  font-size: .88rem;
  color: var(--ink-text);
}

.tabs-nav button.active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
  animation: fadein .35s ease;
}

/* Forms */
.form-field {
  margin-bottom: 1.3rem;
}

.form-field label {
  display: block;
  font-weight: 700;
  font-size: .86rem;
  margin-bottom: .5rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: .85em 1em;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-s);
  font-family: inherit;
  font-size: .96rem;
  background: #fff;
  color: var(--ink-text);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(199, 154, 69, 0.18);
  outline: none;
}

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

.form-note {
  font-size: .8rem;
  color: var(--muted-text);
  margin-top: -0.6rem;
  margin-bottom: 1.2rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-m);
  box-shadow: var(--shadow-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  min-width: 520px;
}

table th,
table td {
  padding: 1rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: .92rem;
}

table th {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .72rem;
  color: var(--muted-text);
  background: var(--cream-100);
}

table tr:last-child td {
  border-bottom: 0;
}

/* Icon boxes generic */
.icon-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--coral-500);
}

.icon-circle svg {
  width: 30px;
  height: 30px;
}

/* Placeholder */
.placeholder {
  border: 1.5px dashed #C9B98A;
  background: repeating-linear-gradient(135deg, rgba(199, 154, 69, 0.08), rgba(199, 154, 69, 0.08) 10px, rgba(199, 154, 69, 0.03) 10px, rgba(199, 154, 69, 0.03) 20px);
  border-radius: var(--radius-m);
  padding: 1.4rem;
  color: #8A6D2E;
  font-size: .85rem;
}

.placeholder-tag {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  font-family: var(--font-mono);
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: #8A6D2E;
  color: #fff;
  padding: .25em .6em;
  border-radius: 5px;
  margin-bottom: .6rem;
}

.media-placeholder {
  background: linear-gradient(135deg, #EDE3CC, #E3D6B4);
  border-radius: var(--radius-m);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8A6D2E;
  font-family: var(--font-mono);
  font-size: .78rem;
  text-align: center;
  padding: 2rem;
  min-height: 220px;
}

.portrait-placeholder {
  aspect-ratio: 4 / 5;
  border: 1.5px dashed #C9B98A;
  background: repeating-linear-gradient(135deg, rgba(199, 154, 69, 0.08), rgba(199, 154, 69, 0.08) 10px, rgba(199, 154, 69, 0.03) 10px, rgba(199, 154, 69, 0.03) 20px);
  border-radius: var(--radius-l);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  color: #8A6D2E;
  text-align: center;
  padding: 2rem;
}
.portrait-placeholder .pp-icon {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(199, 154, 69, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}
.portrait-placeholder .pp-filename {
  font-family: var(--font-mono);
  font-size: .74rem;
  background: rgba(255,255,255,0.6);
  padding: .3em .8em;
  border-radius: 6px;
}
.portrait-placeholder.wide {
  aspect-ratio: 16 / 10;
}

/* Donation prompt strip */
.donate-strip {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-l);
  padding: 2.4rem clamp(1.5rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}

.donate-strip::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(199, 154, 69, 0.35), transparent 70%);
}

.donate-strip h3 {
  color: #fff;
  font-size: var(--step-2);
  max-width: 32ch;
  position: relative;
}

.donate-strip .actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
}

/* Footer */
.site-footer {
  background: var(--ink-900);
  color: #C9D0E0;
  padding-top: clamp(3rem, 6vw, 5rem);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand p {
  color: #9FA8BE;
  font-size: .92rem;
  margin-top: 1rem;
  max-width: 32ch;
}

.footer-col h4 {
  color: #fff;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-family: var(--font-mono);
  margin-bottom: 1.2rem;
  font-weight: 500;
}

.footer-col a,
.footer-col p {
  display: block;
  color: #C9D0E0;
  font-size: .92rem;
  margin-bottom: .7rem;
}

.footer-col a:hover {
  color: var(--gold-400);
}

.footer-social {
  display: flex;
  gap: .7rem;
  margin-top: .5rem;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social a:hover {
  background: var(--gold-500);
  color: var(--ink-900);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.6rem;
  font-size: .82rem;
  color: #8892A6;
  flex-wrap: wrap;
  gap: .8rem;
}

/* ---- Footer credit (Majali Company) ---- */
.footer-credit {
  font-size: .9rem;
  color: #8892A6;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
}
.footer-credit a {
  color: #C9D0E0;
  position: relative;
  text-decoration: none;
  transition: color .18s ease, transform .18s ease;
}
.footer-credit a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-500));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}
.footer-credit a:hover {
  color: var(--gold-400);
  transform: translateY(-2px);
}
.footer-credit a:hover::after {
  transform: scaleX(1);
}

/* ---- Testimonials ---- */
.testimonial {
  background: #fff;
  border-radius: var(--radius-m);
  padding: 1.4rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.testimonial p {
  margin: 0;
  color: var(--muted-text);
  font-size: .98rem;
  line-height: 1.55;
}
.testimonial .who {
  display: flex;
  gap: .9rem;
  align-items: center;
  margin-top: .3rem;
}
.testimonial .initial {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: inline-grid;
  place-items: center;
  background: var(--gold-100);
  color: var(--coral-500);
  font-weight: 800;
  font-family: var(--font-display);
}
.testimonial .who strong {
  display: block;
  color: var(--ink-900);
  font-size: .95rem;
}
.testimonial .who span {
  display: block;
  color: #8E97A6;
  font-size: .82rem;
}


.newsletter-form {
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
  flex-wrap: wrap;
}

.newsletter-form input {
  flex: 1;
  min-width: 180px;
  padding: .8em 1em;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.newsletter-form input::placeholder {
  color: #8892A6;
}

/* Back to top */
.back-to-top {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink-900);
  color: var(--gold-400);
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-mid);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all .3s ease;
  z-index: 500;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Scroll progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--dawn-line);
  z-index: 1100;
  width: 0%;
}

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  background: var(--ink-900);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease, visibility .5s ease;
}

.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.loading-mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.15);
  border-top-color: var(--gold-500);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2, .7, .3, 1), transform .7s cubic-bezier(.2, .7, .3, 1);
}

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

.reveal-stagger.is-visible>* {
  animation: fadeUp .6s cubic-bezier(.2, .7, .3, 1) both;
}

.reveal-stagger.is-visible>*:nth-child(1) {
  animation-delay: .05s;
}

.reveal-stagger.is-visible>*:nth-child(2) {
  animation-delay: .12s;
}

.reveal-stagger.is-visible>*:nth-child(3) {
  animation-delay: .19s;
}

.reveal-stagger.is-visible>*:nth-child(4) {
  animation-delay: .26s;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

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

@keyframes fadein {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Emergency banner */
.emergency-banner {
  background: var(--coral-500);
  color: #fff;
  padding: .55rem var(--gutter);
  text-align: center;
  font-size: .85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  flex-wrap: wrap;
}

.emergency-banner a {
  text-decoration: underline;
}

/* Utility */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.center {
  text-align: center;
}

.max-w-content {
  max-width: 70ch;
}

.mx-auto {
  margin-inline: auto;
}

.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 2rem;
}

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

.mb-1 {
  margin-bottom: 1rem;
}

.mb-2 {
  margin-bottom: 2rem;
}

.mb-3 {
  margin-bottom: 3rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .4em;
  background: var(--gold-100);
  color: #8A6D2E;
  padding: .4em .9em;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .05em;
}

.divider-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  display: inline-block;
}

.avatar-photo {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  background: var(--ink-900);
  color: #fff;
  padding: 1rem 1.4rem;
  z-index: 2100;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
  top: 0;
}

/* ==========================================================================
   TOP INFORMATION BAR
   ========================================================================== */
.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1200;
  height: var(--topbar-h);
  background: var(--ink-900);
  color: #C9D3D9;
  display: flex;
  align-items: center;
  font-size: .8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform .35s ease;
}

body.topbar-hidden .topbar {
  transform: translateY(-100%);
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.5rem;
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex: 1;
}

.topbar-right {
  justify-content: flex-end;
}

.topbar-left span {
  color: #C9D3D9;
  display: flex;
  align-items: center;
  gap: .4em;
}

.topbar-center {
  flex: 2;
  text-align: center;
  overflow: hidden;
  position: relative;
  height: 1.4em;
  min-width: 0;
}

.topbar-verse {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  opacity: 0;
  transition: opacity .6s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-family: var(--font-mono);
  font-size: .76rem;
  letter-spacing: .03em;
}

.topbar-verse.is-active {
  opacity: 1;
}

.topbar-verse .verse-theme {
  color: #fff;
  font-weight: 700;
}

.topbar-verse .verse-ref {
  color: var(--primary-light);
}

.topbar-social {
  display: flex;
  gap: .55rem;
}

.topbar-social a {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C9D3D9;
}

.topbar-social a:hover {
  background: var(--primary);
  color: #fff;
}

@media (max-width: 900px) {
  .topbar-center {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar {
    display: none;
  }
}

/* ==========================================================================
   MEGA MENU
   ========================================================================== */
.mega-menu {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--content-offset);
  background: #fff;
  box-shadow: var(--shadow-deep);
  padding: 2.2rem var(--gutter);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity .22s ease, transform .22s ease, visibility .22s ease;
  z-index: 998;
}

.mega-menu.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mega-menu-grid {
  max-width: var(--maxw);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.mega-menu-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-m);
  align-items: flex-start;
}

.mega-menu-item:hover {
  background: var(--primary-pale);
}

.mega-menu-item .mm-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-size: 1.3rem;
}

.mega-menu-item:hover .mm-icon {
  background: var(--primary);
  color: #fff;
}

.mega-menu-item h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--ink-900);
  margin-bottom: .25rem;
}

.mega-menu-item p {
  font-size: .84rem;
  color: var(--muted-text);
}

@media (max-width: 960px) {
  .mega-menu {
    display: none;
  }
}

/* ==========================================================================
   SEARCH OVERLAY
   ========================================================================== */
.search-toggle {
  background: none;
  border: 0;
  color: #fff;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.search-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
}

.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(32, 29, 32, 0.97);
  z-index: 2200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}

.search-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.search-overlay-box {
  width: min(600px, 90vw);
}

.search-overlay-box form {
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--primary-light);
  padding-bottom: .8rem;
  gap: .8rem;
}

.search-overlay-box input {
  flex: 1;
  background: none;
  border: 0;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.search-overlay-box input::placeholder {
  color: #9198A3;
}

.search-overlay-box input:focus {
  outline: none;
}

.search-overlay-close {
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.6rem;
}

.search-suggestions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}

.search-suggestions a {
  color: #C9D3D9;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: .4em .9em;
  border-radius: 999px;
  font-size: .85rem;
}

.search-suggestions a:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* ==========================================================================
   HERO SLIDESHOW (homepage)
   ========================================================================== */
.hero-slideshow {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  color: #fff;
  background: var(--ink-900);
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1.2s ease;
  display: flex;
  align-items: center;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 8s ease-out;
  will-change: transform;
}

.hero-slide.is-active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(32, 29, 32, 0.82) 10%, rgba(32, 29, 32, 0.55) 55%, rgba(0, 105, 156, 0.35) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  padding-top: var(--content-offset);
  width: 100%;
  transition: padding-top .35s ease;
}

.hero-slide-content .eyebrow {
  color: var(--primary-light);
}

.hero-slide-content .eyebrow::before {
  background: var(--primary-light);
}

.hero-slide h1 {
  color: #fff;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease .25s, transform .7s ease .25s;
}

.hero-slide .lede {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease .4s, transform .7s ease .4s;
  color: #E7EEF2;
}

.hero-slide .hero-cta-row {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s ease .55s, transform .7s ease .55s;
}

.hero-slide.is-active h1,
.hero-slide.is-active .lede,
.hero-slide.is-active .hero-cta-row {
  opacity: 1;
  transform: translateY(0);
}

.hero-slideshow .floating-shape {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 195, 225, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 1;
  animation: floaty 9s ease-in-out infinite;
}

.shape-a {
  width: 340px;
  height: 340px;
  top: 8%;
  right: 6%;
  animation-delay: 0s;
}

.shape-b {
  width: 220px;
  height: 220px;
  bottom: 12%;
  left: 4%;
  animation-delay: 2.5s;
}

.shape-c {
  width: 140px;
  height: 140px;
  bottom: 30%;
  right: 22%;
  animation-delay: 4.5s;
}

@keyframes floaty {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-22px);
  }
}

.hero-slideshow-controls {
  position: absolute;
  z-index: 3;
  bottom: 2.4rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background .2s ease, transform .2s ease;
}

.hero-arrow:hover {
  background: var(--primary);
  border-color: var(--primary);
  transform: scale(1.06);
}

.hero-dots {
  display: flex;
  gap: .6rem;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  border: 0;
  padding: 0;
  transition: background .25s ease, transform .25s ease;
}

.hero-dot.is-active {
  background: var(--primary-light);
  transform: scale(1.3);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  right: 2.4rem;
  left: auto;
  transform: none;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .75);
  font-size: .72rem;
  font-family: var(--font-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

@media (max-width: 680px) {
  .hero-slideshow-controls {
    bottom: 6.4rem;
    gap: 1rem;
  }

  .hero-scroll {
    display: none;
  }

  .hero-slideshow .floating-shape {
    opacity: .5;
  }
}

/* ==========================================================================
   AI ASSISTANT WIDGET
   ========================================================================== */
.chat-widget {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 1400;
}

.chat-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-mid);
  animation: chatfloat 3.2s ease-in-out infinite;
  transition: transform .2s ease, background .2s ease;
}

.chat-fab:hover {
  background: var(--primary-dark);
  transform: scale(1.06);
}

.chat-widget.is-open .chat-fab {
  animation: none;
}

@keyframes chatfloat {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

.ai-panel {
  position: absolute;
  bottom: calc(100% + 16px);
  right: 0;
  width: 370px;
  max-width: 88vw;
  height: min(560px, 72vh);
  background: #fff;
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-deep);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px) scale(.97);
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}

.chat-widget.is-open .ai-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ai-panel-header {
  background: var(--primary);
  color: #fff;
  padding: 1rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .7rem;
  flex: none;
}

.ai-panel-header .ai-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.ai-title {
  flex: 1;
  min-width: 0;
}

.ai-title h4 {
  color: #fff;
  font-size: .95rem;
  margin: 0;
  font-family: var(--font-body);
  font-weight: 800;
}

.ai-title .status {
  font-size: .72rem;
  color: #DCEFFA;
  display: flex;
  align-items: center;
  gap: .4em;
}

.ai-title .status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ADE80;
  display: inline-block;
}

.ai-panel-header button {
  background: none;
  border: 0;
  color: #fff;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  opacity: .85;
  flex: none;
}

.ai-panel-header button:hover {
  background: rgba(255, 255, 255, 0.15);
  opacity: 1;
}

.ai-body {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1rem .5rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  background: var(--primary-pale);
}

.ai-msg {
  max-width: 82%;
  padding: .65rem .9rem;
  border-radius: 14px;
  font-size: .86rem;
  line-height: 1.5;
}

.ai-msg.from-ai {
  background: #fff;
  color: var(--ink-text);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-soft);
}

.ai-msg.from-user {
  background: var(--primary);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.ai-msg time {
  display: block;
  font-size: .65rem;
  opacity: .6;
  margin-top: .3rem;
}

.ai-typing {
  align-self: flex-start;
  background: #fff;
  border-radius: 14px;
  border-bottom-left-radius: 4px;
  padding: .7rem .9rem;
  display: flex;
  gap: 4px;
  box-shadow: var(--shadow-soft);
}

.ai-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--muted-text);
  opacity: .5;
  display: inline-block;
  animation: aityping 1s infinite ease-in-out;
}

.ai-typing span:nth-child(2) {
  animation-delay: .15s;
}

.ai-typing span:nth-child(3) {
  animation-delay: .3s;
}

@keyframes aityping {

  0%,
  60%,
  100% {
    transform: translateY(0);
    opacity: .4;
  }

  30% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.ai-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  padding: 0 1rem 1rem;
  background: var(--primary-pale);
  flex: none;
}

.ai-suggestions button {
  font-size: .75rem;
  padding: .4em .8em;
  border-radius: 999px;
  border: 1px solid rgba(0, 105, 156, .25);
  background: #fff;
  color: var(--primary-dark);
  font-weight: 700;
}

.ai-suggestions button:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.ai-footer {
  padding: .8rem;
  border-top: 1px solid var(--line);
  display: flex;
  gap: .6rem;
  background: #fff;
  flex: none;
}

.ai-footer input {
  flex: 1;
  border: 1.5px solid var(--line);
  border-radius: 999px;
  padding: .65em 1.1em;
  font-family: inherit;
  font-size: .86rem;
}

.ai-footer input:focus {
  outline: none;
  border-color: var(--primary);
}

.ai-footer button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  border: 0;
}

.ai-footer button:hover {
  background: var(--primary-dark);
}

.ai-rep-link {
  text-align: center;
  padding: .5rem;
  font-size: .78rem;
  background: #fff;
  border-top: 1px solid var(--line);
  flex: none;
}

.ai-rep-link button {
  background: none;
  border: 0;
  color: var(--primary-dark);
  font-weight: 700;
  text-decoration: underline;
  font-size: .78rem;
}

.ai-rep-form {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  overflow-y: auto;
  background: #fff;
  flex: 1;
}

.ai-rep-form label {
  font-size: .76rem;
  font-weight: 700;
  margin-bottom: .3rem;
  display: block;
}

.ai-rep-form input,
.ai-rep-form select,
.ai-rep-form textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: .55em .8em;
  font-family: inherit;
  font-size: .84rem;
}

.ai-rep-form input:focus,
.ai-rep-form select:focus,
.ai-rep-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}

@media (max-width:680px) {
  .chat-widget {
    right: 1rem;
    bottom: 5.5rem;
  }

  .chat-fab {
    width: 52px;
    height: 52px;
  }

  .ai-panel {
    width: 90vw;
    height: 70vh;
  }
}

/* ==========================================================================
   RIPPLE EFFECT (buttons)
   ========================================================================== */
.btn {
  position: relative;
  overflow: hidden;
}

.ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  transform: scale(0);
  animation: rippleAnim .6s ease-out forwards;
  pointer-events: none;
}

@keyframes rippleAnim {
  to {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* ==========================================================================
   NEWSLETTER POPUP
   ========================================================================== */
.nl-popup-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(32, 29, 32, 0.6);
  z-index: 2300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}

.nl-popup-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.nl-popup {
  background: #fff;
  border-radius: var(--radius-l);
  max-width: 460px;
  width: 100%;
  padding: 2.4rem;
  position: relative;
  box-shadow: var(--shadow-deep);
  transform: translateY(16px);
  transition: transform .3s ease;
  text-align: center;
}

.nl-popup-backdrop.is-open .nl-popup {
  transform: translateY(0);
}

.nl-popup-close {
  position: absolute;
  top: 1rem;
  right: 1.1rem;
  background: none;
  border: 0;
  font-size: 1.4rem;
  color: var(--muted-text);
}

.nl-popup .icon-circle {
  margin-inline: auto;
  margin-bottom: 1rem;
}

/* ==========================================================================
   STICKY MOBILE DONATE BAR
   ========================================================================== */
.mobile-donate-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: #fff;
  box-shadow: 0 -8px 24px rgba(32, 29, 32, 0.12);
  padding: .7rem 1rem;
  display: none;
}

@media (max-width:680px) {
  .mobile-donate-bar {
    display: flex;
  }
}

.mobile-donate-bar a {
  width: 100%;
}

/* Chip / icon tweaks for blue system */
.chip {
  background: var(--primary-pale);
  color: var(--primary-dark);
}