/* $WATER — palette inspired by reference banner/logo: sky blue, white, navy */

:root {
  --sky: #67b8ed;
  --sky-deep: #4a9fd9;
  --sky-soft: #e8f4fc;
  --white: #ffffff;
  --navy: #002d5b;
  --navy-soft: #0a3d6b;
  --text: #1a2f47;
  --text-muted: #4a6078;
  --shadow: 0 8px 32px rgba(0, 45, 91, 0.08);
  --shadow-card: 0 4px 24px rgba(0, 45, 91, 0.06);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Baloo 2", "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1100px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .wave-layer,
  .ripple,
  .hero__banner::after {
    animation: none !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(ellipse at 18% 8%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0) 42%),
    radial-gradient(ellipse at 78% 12%, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0) 38%),
    linear-gradient(180deg, #5ca8e5 0%, #9ecff4 34%, #f2f9ff 68%, var(--white) 100%);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

.top-marquee {
  background: #05284f;
  color: #f4fbff;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.8rem;
  overflow: hidden;
  position: relative;
}

.top-marquee__track {
  display: inline-flex;
  min-width: 200%;
  gap: 2rem;
  white-space: nowrap;
  animation: top-marquee-scroll 18s linear infinite;
  will-change: transform;
}

.top-marquee__track span {
  display: inline-block;
  flex-shrink: 0;
}

@keyframes top-marquee-scroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Floating ripples */
.ripple {
  position: fixed;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}

.ripple--1 {
  width: 320px;
  height: 320px;
  left: -80px;
  top: 25%;
  animation: ripple-float 14s ease-in-out infinite;
}

.ripple--2 {
  width: 220px;
  height: 220px;
  right: -40px;
  top: 55%;
  animation: ripple-float 18s ease-in-out infinite reverse;
  opacity: 0.6;
}

@keyframes ripple-float {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.35;
  }
  50% {
    transform: translate(12px, -20px) scale(1.05);
    opacity: 0.55;
  }
}

/* Soft wave background shapes */
.wave-layer {
  position: fixed;
  left: 0;
  right: 0;
  height: 45vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  background-repeat: no-repeat;
  background-size: 120% 100%;
}

.wave-layer--back {
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%234ba5ea' fill-opacity='0.32' d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L1360,120C1280,120,1120,120,960,120C800,120,640,120,480,120C320,120,160,120,80,120L0,120Z'/%3E%3C/svg%3E");
  background-position: bottom;
  animation: wave-shift 22s ease-in-out infinite;
}

.wave-layer--mid {
  bottom: -5%;
  height: 38vh;
  opacity: 0.3;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 100'%3E%3Cpath fill='%23002d5b' fill-opacity='0.18' d='M0,32L60,37.3C120,43,240,53,360,48C480,43,600,21,720,21.3C840,21,960,43,1080,53.3C1200,64,1320,64,1380,64L1440,64L1440,100L1380,100C1320,100,1200,100,1080,100C960,100,840,100,720,100C600,100,480,100,360,100C240,100,120,100,60,100L0,100Z'/%3E%3C/svg%3E");
  background-position: bottom;
  animation: wave-shift 28s ease-in-out infinite reverse;
}

@keyframes wave-shift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-3%);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  max-width: var(--max);
  margin: 0 auto;
  min-height: var(--header-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
  border: 1px solid rgba(103, 184, 237, 0.2);
  border-top: none;
  box-shadow: var(--shadow-card);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0, 45, 91, 0.12);
}

.brand__text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.25rem 0.65rem;
  align-items: center;
  justify-content: flex-end;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  max-width: 100%;
  flex: 1 1 auto;
  padding-bottom: 2px;
}

.nav a {
  color: var(--navy-soft);
  text-decoration: none;
  font-size: clamp(0.78rem, 2.5vw, 0.9rem);
  font-weight: 500;
  padding: 0.35rem 0.45rem;
  border-radius: 999px;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav a:hover {
  background: rgba(103, 184, 237, 0.2);
  color: var(--navy);
}

@media (max-width: 520px) {
  .site-header {
    padding: 0.65rem 1rem;
  }

  .brand {
    width: 100%;
    justify-content: center;
  }

  .nav {
    width: 100%;
    justify-content: center;
    padding-top: 0.25rem;
    border-top: 1px solid rgba(103, 184, 237, 0.2);
    margin-top: 0.15rem;
  }
}

main {
  position: relative;
  z-index: 1;
}

.hero {
  padding: 2rem 1.25rem 3.5rem;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__banner {
  border-radius: var(--radius-lg);
  min-height: min(200px, 32vw);
  background-color: var(--sky);
  background-image: url("banner.jpg");
  background-size: cover;
  background-position: center left;
  margin-bottom: 2rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero__banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(103, 184, 237, 0.15) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    transparent 100%
  );
  animation: hero-shimmer 8s ease-in-out infinite;
}

@keyframes hero-shimmer {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.85;
  }
}

.hero__inner {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.hero__title {
  margin: 0;
  font-size: clamp(2.75rem, 8vw, 4rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.015em;
  color: var(--navy);
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 5px 0 rgba(255, 255, 255, 0.28);
}

.hero__sub {
  margin: 1rem 0 0;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 700;
  color: #0b3e6d;
  line-height: 1.45;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.hero__copy {
  margin: 2rem 0 0;
  text-align: left;
  color: var(--text);
  font-size: 1rem;
}

.inline-link {
  color: var(--sky-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(103, 184, 237, 0.5);
}

.inline-link:hover {
  color: var(--navy);
  border-bottom-color: var(--navy);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.5rem;
  font-family: inherit;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
}

.btn--primary {
  background: linear-gradient(180deg, #0f4f86 0%, #06335f 100%);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(0, 45, 91, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn--primary:hover {
  background: var(--navy-soft);
  transform: translateY(-1px);
}

.btn--ghost {
  background: var(--white);
  color: var(--navy);
  border: 2px solid rgba(0, 45, 91, 0.22);
  box-shadow: var(--shadow-card);
}

.btn--ghost:hover {
  border-color: var(--sky);
  background: var(--sky-soft);
}

.btn--compact {
  padding: 0.65rem 1.25rem;
  font-size: 0.875rem;
}

.section {
  padding: 4rem 1.25rem;
  position: relative;
}

.section--light {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(8px);
}

.section--navy {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: var(--white);
}

.container {
  max-width: var(--max);
  margin: 0 auto;
}

.container.narrow {
  max-width: 40rem;
}

.section__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--navy);
  text-align: center;
}

.section__title--on-dark {
  color: var(--white);
}

.section__intro {
  text-align: center;
  color: var(--text-muted);
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

.section__lead {
  margin: 0;
  font-size: 1.1rem;
  color: var(--text);
  text-align: center;
}

.section__lead--on-dark {
  color: rgba(255, 255, 255, 0.92);
}

.donation-update {
  margin: 1.6rem auto 0;
  max-width: 30rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.donation-update__label {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.86);
}

.donation-update__value {
  margin: 0.3rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  color: #ffffff;
}

.donation-update__sub {
  margin: 0.4rem 0 0;
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.9);
}

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

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(103, 184, 237, 0.3);
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.card__title {
  margin: 0 0 0.65rem;
  font-size: 1.2rem;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  letter-spacing: 0.01em;
}

.card__text {
  margin: 0;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.contract__label {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.contract__box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(103, 184, 237, 0.2);
}

.contract__ca {
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: clamp(0.7rem, 2vw, 0.85rem);
  word-break: break-all;
  color: var(--navy);
  line-height: 1.5;
  text-align: center;
  flex: 1 1 220px;
}

.toast {
  margin: 1rem 0 0;
  min-height: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--sky-deep);
}

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

.community-block__logo {
  border-radius: 18px;
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}

.site-footer {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.25rem 3rem;
  border-top: 1px solid rgba(103, 184, 237, 0.25);
  background: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .top-marquee {
    font-size: 0.62rem;
    letter-spacing: 0.06em;
  }

  .hero__title {
    letter-spacing: 0.01em;
  }
}


.disclaimer {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  max-width: 52rem;
  margin-inline: auto;
}
