@import url('https://fonts.googleapis.com/css2?family=Lexend:wght@300;400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600;700&display=swap');

:root {
  --bg: #0d1b2a;
  --bg-alt: #12263a;
  --surface: #1e3a56;
  --surface-soft: #244766;
  --text: #f6fbff;
  --text-muted: #b7d3e8;
  --brand: #21c9a2;
  --brand-dark: #0f8b6f;
  --brand-glow: rgba(33, 201, 162, 0.15);
  --accent: #ffcf5a;
  --danger: #ff6b6b;
  --success: #56d364;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.4);
  --container: 1140px;
  --header-height: 96px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Lexend", "Helvetica Neue", sans-serif;
  letter-spacing: -0.01em;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.6rem 1.2rem;
  background: var(--brand);
  color: #04231c;
  font-weight: 700;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top 150ms ease;
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

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

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  backdrop-filter: blur(14px) saturate(1.4);
  background: rgba(8, 20, 31, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: transform 220ms ease;
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.3);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.nav-shell {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-family: "Lexend", sans-serif;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-mark {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  object-fit: contain;
}

.hero-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  order: -1;
}

.hero-logo {
  display: block;
  width: clamp(160px, 30vw, 380px);
  height: auto;
  filter: drop-shadow(0 16px 48px rgba(33, 201, 162, 0.3));
  animation: fadeInLogo 0.8s ease-out both;
}

@keyframes fadeInLogo {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.94rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  transition: color 200ms ease, background 200ms ease;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
}

.page-main {
  padding-bottom: 4rem;
}

.hero {
  position: relative;
  padding: clamp(4rem, 10vw, 8rem) 0 clamp(3rem, 6vw, 5rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -30% -15% auto;
  height: 600px;
  background:
    radial-gradient(ellipse 60% 50% at 15% 30%, rgba(33, 201, 162, 0.3), transparent 60%),
    radial-gradient(ellipse 50% 40% at 75% 15%, rgba(255, 207, 90, 0.2), transparent 55%),
    radial-gradient(ellipse 40% 35% at 50% 80%, rgba(33, 120, 200, 0.12), transparent 50%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  gap: 2rem;
}

.hero h1 {
  margin: 0 0 1rem;
  line-height: 1.1;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--text);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.hero h2 {
  color: var(--text);
}

.section-head h1,
.section-head h2 {
  color: var(--text);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.42);
}

.hero p {
  margin: 0;
  max-width: 58ch;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.75;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn {
  position: relative;
  overflow: hidden;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.82rem 1.8rem;
  min-height: 48px;
  font-family: "Lexend", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  color: #04231c;
  background: var(--brand);
  cursor: pointer;
  transition: transform 200ms ease, filter 200ms ease, box-shadow 200ms ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(33, 201, 162, 0.3);
}

.btn.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.15);
}

.btn.accent {
  color: #3f2a00;
  background: var(--accent);
}

.btn.ripple span {
  position: absolute;
  border-radius: 50%;
  transform: scale(0);
  animation: ripple 600ms linear;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4.5);
    opacity: 0;
  }
}

section {
  padding: clamp(3rem, 5vw, 4.5rem) 0;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
}

.section-head p {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: linear-gradient(170deg, rgba(36, 71, 102, 0.6), rgba(18, 40, 62, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: border-color 250ms ease, box-shadow 250ms ease;
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin-top: 0;
  font-size: 1.2rem;
}

.card h1,
.card h2,
.card h3 {
  color: var(--text);
}

.meta {
  color: var(--text-muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.stat {
  text-align: center;
  padding: 1.5rem 1rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(170deg, rgba(33, 201, 162, 0.08), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(33, 201, 162, 0.12);
  transition: border-color 250ms ease;
}

.stat:hover {
  border-color: rgba(33, 201, 162, 0.3);
}

.stat strong {
  display: block;
  font-family: "Lexend", sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.3rem;
}

.stat span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

.split {
  display: grid;
  gap: 1.5rem;
}

.split > * {
  min-width: 0;
}

.store-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.product-thumb {
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: linear-gradient(135deg, #214564, #1a3046);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.price {
  color: var(--accent);
  font-weight: 700;
}

.cart-shell {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 1rem;
}

.cart-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.cart-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.95rem;
}

.cart-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-left: 0.5rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
}

.cart-remove:hover {
  background: rgba(255, 107, 107, 0.15);
  border-color: rgba(255, 107, 107, 0.4);
  color: #ff6b6b;
}

.cart-list li {
  align-items: center;
}

.cart-list li > span:last-child {
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.cart-total {
  margin-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-weight: 700;
}

/* ---------- Donate page ---------- */

.donate-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 18ch;
}

.donate-section {
  padding-bottom: 3rem;
}

.donate-flow {
  max-width: 720px;
  margin: 0 auto;
}

.donate-flow h2 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--text);
}

.donation-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 2rem;
}

@media (min-width: 600px) {
  .donation-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.donation-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  min-height: 48px;
  background: linear-gradient(170deg, rgba(36, 71, 102, 0.5), rgba(18, 40, 62, 0.7));
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: center;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.donation-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: linear-gradient(170deg, rgba(36, 71, 102, 0.7), rgba(18, 40, 62, 0.9));
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.donation-card.active {
  border-color: var(--brand);
  background: linear-gradient(170deg, rgba(33, 201, 162, 0.12), rgba(18, 40, 62, 0.85));
  box-shadow: 0 0 0 3px rgba(33, 201, 162, 0.18), 0 8px 24px rgba(0, 0, 0, 0.2);
}

.donation-amount {
  font-family: "Lexend", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--brand);
}

.donation-card.active .donation-amount {
  color: var(--text);
}

.donation-impact {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.custom-amount-row {
  margin-bottom: 1.5rem;
}

.custom-amount-row label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
}

.custom-amount-input {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 2px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.custom-amount-input:focus-within {
  border-color: var(--brand);
}

.currency-prefix {
  padding: 0.75rem 0 0.75rem 1rem;
  font-family: "Lexend", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--brand);
}

.custom-amount-input input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0.75rem 1rem 0.75rem 0.25rem;
  font-family: "Lexend", sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  outline: none;
  -moz-appearance: textfield;
}

.custom-amount-input input::-webkit-outer-spin-button,
.custom-amount-input input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.donate-note-row {
  margin-bottom: 1.5rem;
}

.donate-note-row label {
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
}

.label-optional {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.88rem;
}

.donate-cta {
  width: 100%;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: "Lexend", sans-serif;
  color: #0d1b2a;
  background: var(--brand);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 200ms ease, box-shadow 200ms ease, transform 200ms ease;
}

.donate-cta:hover {
  background: #28e6b0;
  box-shadow: 0 6px 20px rgba(33, 201, 162, 0.35);
  transform: translateY(-1px);
}

.donate-trust {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.donate-trust p {
  margin: 0 0 0.4rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.donate-closing {
  padding: 3rem 0 2rem;
}

.donate-closing h2 {
  text-align: center;
  margin-bottom: 2rem;
  color: var(--text);
}

.impact-row {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  text-align: center;
}

.impact-item {
  padding: 1.5rem 1rem;
  background: linear-gradient(170deg, rgba(36, 71, 102, 0.5), rgba(18, 40, 62, 0.7));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
}

.impact-item strong {
  display: block;
  font-family: "Lexend", sans-serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.impact-item span {
  font-size: 0.92rem;
  color: var(--text-muted);
}

form {
  display: grid;
  gap: 0.8rem;
}

label {
  display: grid;
  gap: 0.32rem;
  font-weight: 600;
}

input,
textarea,
select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  padding: 0.68rem 0.72rem;
  font: inherit;
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(33, 201, 162, 0.25);
  outline: none;
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.notice {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.notice.success {
  border-color: rgba(86, 211, 100, 0.6);
}

.notice.error {
  border-color: rgba(255, 107, 107, 0.6);
}

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 350ms ease, transform 350ms ease;
}

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

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  padding: 2rem 0 3rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 200ms ease;
}

.site-footer a:hover {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.event-recap {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

.event-recap-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
}

.event-recap-details h3 {
  margin: 0 0 0.6rem;
}

.event-recap-details h4 {
  margin: 1.2rem 0 0.4rem;
  color: var(--brand);
  font-size: 1rem;
}

.event-details-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.35rem;
}

.sponsor-tiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.4rem;
}

.tier-badge {
  display: inline-block;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(33, 201, 162, 0.1), rgba(255, 207, 90, 0.06));
  border: 1px solid rgba(33, 201, 162, 0.2);
  font-family: "Lexend", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
}

.coming-soon-section {
  padding: clamp(3rem, 5vw, 4rem) 0;
}

.coming-soon-card {
  max-width: 680px;
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid rgba(33, 201, 162, 0.2);
  background: linear-gradient(170deg, rgba(33, 201, 162, 0.06), rgba(18, 40, 62, 0.85));
}

.coming-soon-card h2 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.coming-soon-card p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.sponsors-section {
  padding: clamp(3rem, 5vw, 5rem) 0;
  background: linear-gradient(180deg, transparent, rgba(33, 201, 162, 0.04) 30%, rgba(33, 201, 162, 0.04) 70%, transparent);
}

.sponsor-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem 0;
}

.sponsor-strip img {
  height: 72px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  border-radius: 12px;
  background: #dfe4ea;
  padding: 14px 20px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.sponsor-strip img:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(33, 201, 162, 0.3);
}

@media (min-width: 860px) {
  .event-recap {
    grid-template-columns: 0.45fr 0.55fr;
  }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (min-width: 860px) {
  .hero-grid {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
  }

  .hero-logo-wrap {
    order: 1;
  }

  .split {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: start;
  }
}

.nav-toggle {
  display: none;
  border: 0;
  background: none;
  cursor: pointer;
  padding: 0.5rem;
  flex-direction: column;
  gap: 5px;
  min-height: 44px;
  min-width: 44px;
  align-items: center;
  justify-content: center;
}

.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 250ms ease, opacity 250ms ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: rgba(8, 20, 31, 0.96);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    gap: 0.15rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    font-size: 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 10px;
    width: 100%;
  }
}
