:root {
  --ink: #0a1628;
  --ink-soft: #3a4a5c;
  --teal: #002147;
  --teal-deep: #00152e;
  --sand: #f7f5f0;
  --sand-deep: #ebe6da;
  --gold: #d4af37;
  --gold-soft: #f0d56a;
  --gold-deep: #a8841c;
  --white: #ffffff;
  --line: rgba(0, 33, 71, 0.12);
  --shadow: 0 18px 50px rgba(0, 21, 46, 0.14);
  --radius: 4px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--sand);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
}
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--gold-deep); }
h1,h2,h3,h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6rem;
  color: var(--teal-deep);
}
p { margin: 0 0 1rem; }
.container { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(247, 244, 236, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.3s ease, background 0.3s ease, min-height 0.3s ease;
}
.site-header.is-scrolled {
  background: rgba(247, 244, 236, 0.98);
  box-shadow: 0 8px 28px rgba(0, 21, 46, 0.12);
}
.nav-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 80px;
}
.brand {
  display: flex; align-items: center; gap: 0.75rem;
  color: var(--teal-deep); font-family: var(--font-display); font-size: 1.2rem; font-weight: 700;
}
.brand img.logo {
  width: 58px; height: 58px; object-fit: contain;
  background: #fff;
  border-radius: 50%;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(0, 21, 46, 0.12);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text small { font-family: var(--font-body); font-size: 0.68rem; font-weight: 600; color: var(--ink-soft); letter-spacing: 0.02em; max-width: 220px; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap; }
.nav-links a { color: var(--ink-soft); font-weight: 600; font-size: 0.96rem; }
.nav-links a:hover, .nav-links a.active { color: var(--teal); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 0; border-radius: var(--radius); cursor: pointer;
  padding: 0.85rem 1.35rem; font-weight: 700; font-size: 0.95rem;
  font-family: inherit; transition: 0.2s ease;
}
.btn-primary { background: var(--teal); color: white; }
.btn-primary:hover { background: var(--teal-deep); color: white; }
.btn-gold { background: var(--gold); color: var(--teal-deep); }
.btn-gold:hover { background: var(--gold-deep); color: white; }
.btn-outline {
  background: transparent; color: var(--teal);
  border: 1.5px solid rgba(0, 33, 71, 0.35);
}
.btn-outline:hover { border-color: var(--teal); background: rgba(0,33,71,0.06); color: var(--teal); }
.btn-sm { padding: 0.55rem 0.9rem; font-size: 0.88rem; }

/* Hero slider */
.hero-slider {
  position: relative; min-height: min(88vh, 760px);
  overflow: hidden; background: var(--teal-deep); color: white;
}
.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease, visibility 0.9s ease;
  display: grid; align-items: end;
}
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide .hero-media {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transform: scale(1.04);
  animation: none;
}
.hero-slide.is-active .hero-media { animation: heroZoom 10s ease-in-out infinite alternate; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,21,46,0.35) 0%, rgba(0,21,46,0.75) 55%, rgba(0,21,46,0.94) 100%),
    linear-gradient(90deg, rgba(0,21,46,0.7), transparent 62%);
}
.hero-content {
  position: relative; z-index: 2;
  padding: 5.5rem 0 4.5rem;
  max-width: 720px;
}
.hero-kicker {
  color: var(--gold-soft); font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; font-size: 0.82rem; margin-bottom: 0.8rem;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.5vw, 3.6rem);
  margin-bottom: 0.35rem; color: white;
}
.hero-slide h1 {
  font-size: clamp(1.45rem, 3vw, 2.1rem);
  font-weight: 500; color: rgba(255,255,255,0.95); max-width: 22ch;
}
.hero-slide p { font-size: 1.1rem; color: rgba(255,255,255,0.86); max-width: 42ch; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.hero-nav {
  position: absolute; z-index: 5; bottom: 1.6rem; right: 1.6rem;
  display: flex; gap: 0.5rem; align-items: center;
}
.hero-dot {
  width: 11px; height: 11px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.35); padding: 0;
}
.hero-dot.is-active { background: var(--gold); transform: scale(1.15); }
.hero-arrow {
  position: absolute; z-index: 5; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,0.16); color: white; font-size: 1.3rem;
  backdrop-filter: blur(4px);
}
.hero-arrow:hover { background: rgba(201,162,39,0.85); color: var(--teal-deep); }
.hero-arrow.prev { left: 1rem; }
.hero-arrow.next { right: 1rem; }

.section { padding: 5rem 0; }
.section-alt { background: white; }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.eyebrow {
  display: inline-block; margin-bottom: 0.7rem;
  color: var(--gold-deep); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; font-size: 0.78rem;
}
.lead { font-size: 1.15rem; color: var(--ink-soft); }

.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.split-media {
  min-height: 420px;
  background-size: cover; background-position: center;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative; overflow: hidden;
  border: 3px solid var(--gold);
}

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

.pillar-card, .program-item, .news-item, .partner-item {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pillar-card { padding: 1.6rem 1.4rem 1.7rem; text-align: center; }
.pillar-icon {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(145deg, var(--teal), var(--teal-deep));
  color: var(--gold-soft); font-size: 1.4rem; font-weight: 700;
  border: 2px solid var(--gold);
}
.pillar-card h3 { font-size: 1.15rem; letter-spacing: 0.04em; text-transform: uppercase; }
.pillar-card ul { text-align: left; padding-left: 1.1rem; color: var(--ink-soft); margin: 0; }
.pillar-card li { margin-bottom: 0.35rem; }

.program-item:hover, .news-item:hover, .pillar-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.program-item img, .news-item img { width: 100%; height: 180px; object-fit: cover; }
.program-body, .news-body, .partner-body { padding: 1.25rem 1.3rem 1.45rem; }
.program-item h3, .news-item h3 { font-size: 1.25rem; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.team-card {
  background: white; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.team-card img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-card .meta { padding: 1.1rem 1.15rem 1.35rem; }
.team-card h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.team-card .role { color: var(--teal); font-weight: 700; font-size: 0.92rem; margin-bottom: 0.55rem; }
.team-card .bio { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.team-card-link { color: inherit; display: block; }
.team-card-link:hover { color: inherit; }
.team-card-link h3 { color: var(--teal-deep); }
.team-view-link {
  display: inline-block; margin-top: 0.75rem;
  color: var(--teal); font-weight: 700; font-size: 0.9rem;
}
.team-card-link:hover .team-view-link { color: var(--gold-deep); }

.team-profile {
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 2.5rem; align-items: start;
}
.team-profile-photo {
  border-radius: var(--radius); overflow: hidden;
  border: 3px solid var(--gold); box-shadow: var(--shadow);
  background: white;
}
.team-profile-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.team-profile-role {
  color: var(--teal); font-weight: 700; font-size: 1.1rem; margin-bottom: 1.2rem;
}
.team-profile-bio {
  font-size: 1.05rem; color: var(--ink-soft); line-height: 1.75; margin-bottom: 1.5rem;
}
.team-profile-meta {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem;
  padding: 1.1rem 0 0; border-top: 1px solid var(--line);
}
.team-profile-meta p { margin: 0; }
@media (max-width: 900px) {
  .team-profile { grid-template-columns: 1fr; }
  .team-profile-photo { max-width: 360px; }
}

.mission-band {
  background:
    linear-gradient(105deg, rgba(0,21,46,0.96) 0%, rgba(0,33,71,0.88) 42%, rgba(0,33,71,0.72) 100%),
    url('../storage/site/hero-slide-1.jpg') center/cover;
  color: white; padding: 4.25rem 0;
  position: relative; overflow: hidden;
}
.mission-band h2 {
  color: white;
  font-size: clamp(1.9rem, 3.4vw, 2.75rem);
  max-width: 14ch;
  margin-bottom: 1rem;
}
.mission-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 2rem; }
.mission-grid h3 { color: var(--gold-soft); font-size: 1.1rem; }
.mission-grid p { color: rgba(255,255,255,0.88); }

.engagement-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem 3rem;
  align-items: center;
}
.engagement-copy p {
  color: rgba(255,255,255,0.9);
  max-width: 38ch;
  font-size: 1.08rem;
  line-height: 1.7;
}
.engagement-motto {
  color: var(--gold-soft) !important;
  font-family: var(--font-display);
  font-size: 1.15rem !important;
  font-style: italic;
  max-width: 34ch !important;
  margin-top: 0.4rem;
}
.engagement-actions {
  display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem;
}
.engagement-outline {
  border-color: rgba(255,255,255,0.45) !important;
  color: #fff !important;
}
.engagement-outline:hover {
  background: rgba(255,255,255,0.1) !important;
  color: #fff !important;
}
.engagement-partners {
  display: grid; gap: 0.75rem;
}
.engagement-chip {
  display: grid; gap: 0.15rem;
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(232, 196, 90, 0.28);
  backdrop-filter: blur(6px);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
}
.engagement-chip:hover {
  transform: translateX(6px);
  background: rgba(255,255,255,0.12);
  border-color: rgba(232, 196, 90, 0.55);
}
.engagement-chip strong {
  color: var(--gold-soft);
  font-size: 0.98rem;
  letter-spacing: 0.02em;
}
.engagement-chip span {
  color: rgba(255,255,255,0.82);
  font-size: 0.92rem;
  line-height: 1.4;
}
@media (max-width: 900px) {
  .engagement-layout { grid-template-columns: 1fr; gap: 1.75rem; }
  .mission-band h2 { max-width: none; }
  .engagement-copy p { max-width: none; }
}

.page-hero {
  padding: 4.5rem 0 3rem;
  background:
    linear-gradient(180deg, rgba(0,33,71,0.08), transparent),
    radial-gradient(circle at top right, rgba(212,175,55,0.16), transparent 42%);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }

.contact-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 2rem; }
.contact-card, .form-card {
  background: white; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.6rem;
}
label { display: block; font-weight: 700; margin-bottom: 0.35rem; font-size: 0.92rem; }
input, textarea, select {
  width: 100%; padding: 0.8rem 0.9rem; border-radius: var(--radius);
  border: 1px solid rgba(26,46,31,0.18); background: #fff;
  font: inherit; margin-bottom: 1rem;
}
input:focus, textarea:focus, select:focus {
  outline: 2px solid rgba(0,33,71,0.25); border-color: var(--teal);
}
.alert {
  padding: 0.9rem 1rem; border-radius: var(--radius); margin-bottom: 1rem;
  background: #e8f5ee; color: #14532d; border: 1px solid #b7e0c5;
}
.alert-error { background: #fdecec; color: #7f1d1d; border-color: #f2c2c2; }

.site-footer {
  background: var(--teal-deep); color: rgba(255,255,255,0.86); padding: 1.75rem 0 1.1rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 0.8fr 1.2fr; gap: 1.5rem 2rem;
  margin-bottom: 1.1rem; align-items: start;
}
.site-footer h3 {
  color: white; font-size: 1rem; margin: 0 0 0.55rem;
}
.site-footer .brand { color: white; margin-bottom: 0.45rem !important; }
.site-footer p { margin: 0 0 0.4rem; font-size: 0.95rem; line-height: 1.45; }
.site-footer a { color: rgba(255,255,255,0.82); }
.site-footer a:hover { color: var(--gold-soft); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 0.85rem; font-size: 0.88rem;
  display: flex; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
}

.mobile-toggle {
  display: none; border: 0; background: transparent; font-size: 1.4rem; cursor: pointer; color: var(--ink);
}

@keyframes heroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.08); }
}
@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal animations */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(36px);
  transition:
    opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--stagger, 0) * 0.09s);
  will-change: opacity, transform;
}
.reveal-on-scroll.reveal-left { transform: translateX(-40px); }
.reveal-on-scroll.reveal-right { transform: translateX(40px); }
.reveal-on-scroll.reveal-scale {
  transform: scale(0.94) translateY(20px);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: none;
}
.hero-content {
  animation: riseIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-slide.is-active .hero-kicker { animation: riseIn 0.7s ease both; }
.hero-slide.is-active .hero-brand { animation: riseIn 0.85s ease 0.08s both; }
.hero-slide.is-active h1 { animation: riseIn 0.9s ease 0.16s both; }
.hero-slide.is-active p { animation: riseIn 0.95s ease 0.24s both; }
.hero-slide.is-active .hero-actions { animation: riseIn 1s ease 0.32s both; }

.pillar-card, .program-item, .team-card, .partner-item, .news-item {
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.75s ease;
}
.btn {
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .hero-content,
  .hero-slide.is-active .hero-kicker,
  .hero-slide.is-active .hero-brand,
  .hero-slide.is-active h1,
  .hero-slide.is-active p,
  .hero-slide.is-active .hero-actions {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .hero-slide.is-active .hero-media { animation: none !important; }
}

@media (max-width: 980px) {
  .split, .contact-grid, .mission-grid, .footer-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mobile-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 80px;
    background: var(--sand); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 1rem 1.25rem 1.25rem;
  }
  .nav-links.open { display: flex; }
  .hero-arrow { display: none; }
  .brand { font-size: 1.05rem; gap: 0.55rem; max-width: calc(100% - 3rem); }
  .brand img.logo { width: 48px; height: 48px; flex-shrink: 0; }
  .brand-text small {
    display: block;
    font-size: 0.58rem;
    max-width: 11.5rem;
    line-height: 1.2;
  }
}
@media (max-width: 640px) {
  .grid-3, .grid-4, .team-grid, .grid-2 { grid-template-columns: 1fr; }
  .hero-slider { min-height: 78vh; }
  .brand-text small { max-width: 10.5rem; font-size: 0.55rem; }
}
