/* ===================================================================
   UDAR Aid — shared design system
   Palette: deep evergreen + warm cream + amber accent
   Type: Fraunces (display serif) + Plus Jakarta Sans (body)
   =================================================================== */

:root {
  --green-950: #06231a;
  --green-900: #0b3d2c;
  --green-800: #11543c;
  --green-700: #17694b;
  --green-600: #1e8a60;
  --green-500: #27a674;
  --green-200: #a9e2c6;
  --green-100: #ddf3e7;
  --amber-400: #f2b83c;
  --amber-300: #f6cd6f;
  --cream-50: #faf8f3;
  --cream-100: #f2eee4;
  --ink-900: #121a15;
  --ink-600: #42544a;
  --ink-500: #5c6f64;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-card: 0 10px 30px rgba(6, 35, 26, 0.08);
  --shadow-lift: 0 22px 44px rgba(6, 35, 26, 0.16);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  background:
    radial-gradient(1000px 500px at 85% -5%, rgba(242, 184, 60, 0.10), transparent 60%),
    radial-gradient(900px 500px at 0% 15%, rgba(39, 166, 116, 0.08), transparent 55%),
    var(--cream-50);
  color: var(--ink-900);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .font-display {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: -0.015em;
}

::selection {
  background: var(--green-200);
  color: var(--green-950);
}

/* ---------- header / nav ---------- */

.site-header {
  background: rgba(250, 248, 243, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(6, 35, 26, 0.07);
}

.nav-link {
  position: relative;
  color: var(--ink-600);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: var(--green-700);
}

.nav-link[aria-current="page"] {
  color: var(--green-800);
}

.nav-link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 3px;
  border-radius: 999px;
  background: var(--amber-400);
}

.mobile-nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cream-50);
  border-bottom: 1px solid rgba(6, 35, 26, 0.08);
  box-shadow: 0 18px 30px rgba(6, 35, 26, 0.12);
  padding: 12px 24px 24px;
}

.mobile-nav.open {
  display: block;
}

.mobile-nav a {
  display: block;
  padding: 12px 4px;
  font-weight: 600;
  color: var(--ink-600);
  border-bottom: 1px solid rgba(6, 35, 26, 0.06);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a[aria-current="page"] {
  color: var(--green-800);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.98rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

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

.btn-sm {
  padding: 10px 22px;
  font-size: 0.9rem;
}

.btn-primary {
  background: var(--green-700);
  color: #fff;
  box-shadow: 0 10px 22px rgba(23, 105, 75, 0.28);
}

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

.btn-amber {
  background: var(--amber-400);
  color: var(--green-950);
  box-shadow: 0 10px 22px rgba(242, 184, 60, 0.35);
}

.btn-amber:hover {
  background: var(--amber-300);
}

.btn-ghost-light {
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.85);
}

.btn-outline {
  border: 1.5px solid rgba(6, 35, 26, 0.25);
  color: var(--green-900);
  background: transparent;
}

.btn-outline:hover {
  border-color: var(--green-700);
  color: var(--green-700);
  background: rgba(39, 166, 116, 0.06);
}

/* ---------- shared components ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--green-600);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  border-radius: 2px;
  background: var(--amber-400);
}

.eyebrow-center::before {
  display: none;
}

.card {
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(6, 35, 26, 0.06);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.card-hover {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

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

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--green-100);
  color: var(--green-800);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-amber {
  background: rgba(242, 184, 60, 0.18);
  color: #8a6210;
}

.chip-neutral {
  background: var(--cream-100);
  color: var(--ink-500);
}

.icon-tile {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--green-100);
  color: var(--green-700);
  flex: none;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 10px;
  color: var(--ink-600);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--green-100);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2317694b' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-size: 10px 10px;
  background-position: center;
  background-repeat: no-repeat;
}

/* ---------- hero ---------- */

.hero-photo {
  position: relative;
  isolation: isolate;
  background: var(--green-950);
}

.hero-photo > img.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(6, 35, 26, 0.94) 0%, rgba(6, 35, 26, 0.78) 45%, rgba(6, 35, 26, 0.42) 100%);
}

.page-hero {
  background:
    radial-gradient(700px 300px at 90% 0%, rgba(242, 184, 60, 0.18), transparent 60%),
    linear-gradient(115deg, var(--green-950), var(--green-800));
  color: #fff;
}

.band-green {
  background: linear-gradient(115deg, var(--green-950), var(--green-800));
  color: #fff;
}

/* ---------- stats ---------- */

.stat-value {
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.05;
}

.stat-label {
  color: var(--ink-500);
  font-weight: 600;
  font-size: 0.92rem;
}

.band-green .stat-value {
  color: var(--amber-300);
}

.band-green .stat-label {
  color: rgba(255, 255, 255, 0.75);
}

/* ---------- gallery ---------- */

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: zoom-in;
  border: 1px solid rgba(6, 35, 26, 0.06);
  box-shadow: var(--shadow-card);
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

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

.gallery-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 40px 18px 16px;
  background: linear-gradient(to top, rgba(6, 35, 26, 0.85), transparent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- lightbox / modal ---------- */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 35, 26, 0.86);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: min(92vw, 1000px);
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lift);
}

.lightbox-caption {
  color: #fff;
  margin-top: 14px;
  font-weight: 600;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 26px;
  color: #fff;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  background: none;
  border: none;
}

/* ---------- avatars (team) ---------- */

.avatar-initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 104px;
  height: 104px;
  border-radius: 999px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--green-700), var(--green-500));
  color: #fff;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(23, 105, 75, 0.3);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--green-950);
  color: #cfe0d6;
}

.site-footer h3 {
  color: #fff;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.site-footer a {
  color: #9fc2b0;
  transition: color 0.2s ease;
}

.site-footer a:hover {
  color: #fff;
}

/* ---------- accessibility ---------- */

a:focus-visible,
button:focus-visible,
select:focus-visible,
input:focus-visible {
  outline: 3px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }
}
