/* ---------- Design tokens ---------- */
:root {
  --brand: #127078;
  --brand-600: #0e5e65;
  --brand-700: #0a4d53;
  --brand-50: #eaf5f6;
  --accent: #e2a13a;
  --ink: #0f1f22;
  --ink-2: #34474b;
  --muted: #6a7a7d;
  --line: #e4ebec;
  --bg: #ffffff;
  --bg-alt: #f6f8f9;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(15, 31, 34, .04), 0 2px 6px rgba(15, 31, 34, .04);
  --shadow-md: 0 8px 24px rgba(15, 31, 34, .08);
  --shadow-lg: 0 30px 60px -20px rgba(15, 31, 34, .25);
  --container: 1200px;
  --ease: cubic-bezier(.4, .1, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4 {
  font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.15;
  margin: 0 0 .6rem;
}
p { margin: 0 0 1rem; color: var(--ink-2); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .95rem;
  transition: transform .2s var(--ease), background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 6px 16px -6px rgba(18, 112, 120, .55); }
.btn-primary:hover { background: var(--brand-600); transform: translateY(-1px); box-shadow: 0 10px 22px -8px rgba(18, 112, 120, .6); }
.btn-ghost { color: var(--brand); background: transparent; border: 1.5px solid var(--brand); }
.btn-ghost:hover { background: var(--brand-50); }
.btn-sm { padding: .55rem 1rem; font-size: .875rem; }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--brand);
  font-weight: 600;
  margin-bottom: .9rem;
}
.eyebrow.light { color: rgba(255,255,255,.85); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255,255,255,.95); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 14px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-weight: 700; font-size: 1rem; color: var(--ink); letter-spacing: -0.01em; }
.brand-text em { font-style: normal; font-size: .72rem; color: var(--muted); letter-spacing: .04em; }

.primary-nav { display: flex; align-items: center; gap: 1.75rem; }
.primary-nav a {
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  padding: .4rem 0;
  transition: color .2s var(--ease);
}
.primary-nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--ease);
}
.primary-nav a:hover { color: var(--brand); }
.primary-nav a:hover::after { transform: scaleX(1); }
.nav-cta { display: inline-flex; }

.nav-toggle { display: none; width: 44px; height: 44px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: .25rem;
  padding: 12px 24px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.mobile-menu a {
  padding: .85rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
}
.mobile-menu a.btn { border: 0; margin-top: 12px; justify-content: center; color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 84px 0 100px;
  overflow: hidden;
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(18,112,120,.10), transparent 60%),
    radial-gradient(700px 400px at -10% 30%, rgba(226,161,58,.08), transparent 60%),
    #fff;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 64px;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  margin-bottom: 1.1rem;
  color: var(--ink);
}
.hero .lead {
  font-size: 1.125rem;
  color: var(--ink-2);
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-meta {
  display: flex;
  gap: 2.5rem;
  margin-top: 2.5rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-meta > div { display: flex; flex-direction: column; }
.hero-meta strong { font-family: 'Fraunces', serif; font-size: 1.6rem; font-weight: 600; color: var(--brand); }
.hero-meta span { font-size: .82rem; color: var(--muted); letter-spacing: .04em; }

.hero-visual { position: relative; }
.hero-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
  transition: transform .5s var(--ease);
}
.hero-image:hover { transform: rotate(0); }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute;
  left: -20px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  padding: 14px 18px 14px 14px;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  max-width: 280px;
}
.hero-badge img { width: 42px; height: 42px; }
.hero-badge strong { display: block; font-size: .92rem; color: var(--ink); font-weight: 600; }
.hero-badge span { font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }

.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { text-align: center; margin-inline: auto; }
.section-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-bottom: 1rem; }
.section-head p { font-size: 1.05rem; color: var(--ink-2); }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 56px; }
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.pillar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: transparent; }
.pillar-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--brand-50);
  color: var(--brand);
  border-radius: 12px;
  margin-bottom: 18px;
}
.pillar-icon svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 1.2rem; margin-bottom: .5rem; }
.pillar p { font-size: .95rem; margin: 0; }

/* ---------- Programs ---------- */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.program-card {
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  display: flex;
  flex-direction: column;
}
.program-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.program-media { aspect-ratio: 16/10; overflow: hidden; background: #eee; }
.program-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.program-card:hover .program-media img { transform: scale(1.05); }
.program-body { padding: 28px 28px 30px; }
.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-50);
  padding: .35rem .7rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.program-body h3 { font-size: 1.35rem; margin-bottom: .65rem; }
.program-body p { font-size: .96rem; }
.tagline {
  color: var(--brand);
  font-weight: 600;
  font-style: italic;
  margin-top: .6rem;
  margin-bottom: 0;
}

/* ---------- Impact ---------- */
.impact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 64px;
  align-items: start;
}
.impact-copy h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); }
.check-list { margin-top: 1.5rem; display: grid; gap: .75rem; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-2);
  font-size: .98rem;
}
.check-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 8px;
  width: 20px; height: 20px;
  background: var(--brand);
  border-radius: 50%;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='white' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>") center / 14px no-repeat;
}

.why-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 100px;
}
.why-card h3 { font-size: 1.3rem; margin-bottom: 1.25rem; }
.why-item { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.why-item:first-of-type { border-top: 0; padding-top: 0; }
.why-item .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 8px; }
.why-item strong { display: block; margin-bottom: 2px; font-size: .98rem; color: var(--ink); }
.why-item p { margin: 0; font-size: .88rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
}
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery figure:hover img { transform: scale(1.05); }

/* ---------- CTA ---------- */
.cta-wrap { padding: 0; }
.cta-card {
  border-radius: var(--radius-lg);
  padding: 60px 56px;
  background:
    radial-gradient(600px 300px at 90% 0%, rgba(255,255,255,.08), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-700) 100%);
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.cta-card h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.3rem); max-width: 620px; }
.cta-card p { color: rgba(255,255,255,.85); max-width: 620px; }
.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
  padding: 18px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  transition: background .2s var(--ease);
  font-size: .92rem;
}
a.contact-item:hover { background: rgba(255,255,255,.14); }
.ci-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.14);
  border-radius: 10px;
  color: #fff;
  flex-shrink: 0;
}
.ci-icon svg { width: 18px; height: 18px; }
.contact-item strong { font-weight: 600; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cta-card .btn-primary { background: #fff; color: var(--brand); }
.cta-card .btn-primary:hover { background: #f2fafa; }
.cta-card .btn-ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-card .btn-ghost:hover { background: rgba(255,255,255,.1); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0b1d20;
  color: #b7c4c6;
  padding: 72px 0 28px;
  margin-top: 0;
}
.site-footer .brand-text strong { color: #fff; }
.site-footer .brand-text em { color: #7d8f92; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid #1a2f33;
}
.foot-about { margin-top: 16px; color: #8d9d9f; font-size: .95rem; max-width: 320px; }
.site-footer h4 { color: #fff; font-family: 'Inter', sans-serif; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 18px; font-weight: 600; }
.site-footer ul li { margin-bottom: .55rem; font-size: .93rem; }
.site-footer a { color: #b7c4c6; transition: color .2s var(--ease); }
.site-footer a:hover { color: #fff; }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 24px;
  font-size: .82rem;
  color: #7d8f92;
}

/* ---------- Social links ---------- */
.social-links { display: flex; gap: 12px; margin-top: 20px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.social-links a:hover { background: var(--brand, #1a8a7a); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; }
.cta-card .social-links a { background: rgba(255,255,255,.14); color: #fff; }
.cta-card .social-links a:hover { background: #fff; color: #0b1d20; }
.foot-social { margin-top: 20px; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero { padding: 64px 0 80px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { max-width: 460px; margin: 0 auto; width: 100%; }
  .impact-grid { grid-template-columns: 1fr; gap: 40px; }
  .why-card { position: static; }
  .pillars { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .cta-card { padding: 48px 36px; }
  .contact-list { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .primary-nav, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .site-header.is-open .mobile-menu { display: flex; }
  .section { padding: 72px 0; }
  .programs-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-meta { gap: 1.75rem; }
  .cta-card { padding: 36px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .foot-bottom { flex-direction: column; text-align: left; }
}
@media (max-width: 480px) {
  .brand-text em { display: none; }
  .hero-badge { left: 0; right: 0; margin: 0 auto; max-width: none; }
  .gallery { grid-template-columns: 1fr; }
  .hero-meta > div { flex: 1 1 45%; }
}

/* focus */
a:focus-visible, button:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}
