:root {
  --brand-blue-deep: #005b91;
  --brand-blue: #007ec4;
  --brand-cyan: #1ea9e6;
  --brand-red: #d90c11;
  --ink: #0d2f4a;
  --muted: #355a75;
  --paper: #ffffff;
  --mist: #edf7fd;
  --line: #cbe3f4;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-lg: 0 20px 55px rgba(0, 91, 145, 0.2);
  --shadow-md: 0 10px 28px rgba(0, 91, 145, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Source Sans 3', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(30, 169, 230, 0.12) 0, transparent 30%),
    radial-gradient(circle at 95% 5%, rgba(217, 12, 17, 0.1) 0, transparent 28%),
    linear-gradient(180deg, #f8fcff 0%, #f2f8fd 45%, #ffffff 100%);
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

h1,
h2,
h3,
strong {
  font-family: 'Montserrat', sans-serif;
  margin: 0 0 0.6rem;
  color: #092d4a;
}

p {
  margin: 0 0 1rem;
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: var(--shadow-md);
}

.brand strong {
  font-size: 0.96rem;
  letter-spacing: 0.05em;
}

.brand span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-nav {
  display: flex;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: #114b72;
  font-weight: 600;
  position: relative;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brand-red), var(--brand-cyan));
  transition: width 0.25s ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  width: 100%;
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: #fff;
  color: #114b72;
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: clip;
  padding: 2.8rem 0 4.5rem;
}

.hero-slider {
  position: relative;
  min-height: 74vh;
  padding: 0;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.slider-track {
  position: relative;
  min-height: 74vh;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.9s ease;
}

.slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(0, 40, 70, 0.7), rgba(0, 40, 70, 0.33));
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 74vh;
  object-fit: cover;
}

.slider-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  align-items: center;
}

.slider-overlay h1,
.slider-overlay p {
  color: #ffffff;
  max-width: 28ch;
}

.slider-overlay h1 {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.04;
}

.slider-overlay p {
  font-size: 1.14rem;
}

.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 1.2rem;
  z-index: 6;
  display: flex;
  justify-content: center;
  gap: 0.55rem;
}

.dot {
  width: 11px;
  height: 11px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.15);
}

.hero-grid {
  display: grid;
  gap: 2rem;
  align-items: center;
  grid-template-columns: 1.15fr 0.85fr;
}

.hero-media {
  position: relative;
  min-height: 540px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  background: rgba(15, 108, 174, 0.1);
  border: 1px solid rgba(15, 108, 174, 0.18);
  color: #0c5f98;
  border-radius: 999px;
  padding: 0.32rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(1.9rem, 2.5vw + 1rem, 3rem);
  line-height: 1.13;
  max-width: 19ch;
}

.hero-copy p {
  font-size: 1.1rem;
  max-width: 58ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.3rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.72rem 1.18rem;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(130deg, var(--brand-blue), #0fa4db);
  color: #fff;
  box-shadow: 0 14px 26px rgba(15, 108, 174, 0.25);
}

.btn-outline {
  color: #0e5d94;
  border-color: #89bfe0;
  background: #ffffff;
}

.hero-card {
  background: linear-gradient(170deg, #ffffff, #f0f8ff);
  border: 1px solid #d7e8f7;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 1.2rem;
}

.hero-card img {
  border-radius: var(--radius-md);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.hero-media .hero-card {
  position: absolute;
  width: 74%;
  padding: 0.5rem;
  overflow: hidden;
}

.hero-media .card-a {
  top: 0;
  left: 0;
  z-index: 2;
  animation: floatCardA 7s ease-in-out infinite;
}

.hero-media .card-b {
  top: 148px;
  right: 0;
  z-index: 3;
  animation: floatCardB 8s ease-in-out infinite;
}

.hero-media .card-c {
  top: 292px;
  left: 8%;
  z-index: 1;
  animation: floatCardC 7.8s ease-in-out infinite;
}

.hero-media .hero-card img {
  aspect-ratio: 16 / 10;
}

.hero-card-text {
  position: absolute;
  left: 0;
  bottom: -12px;
  z-index: 5;
  width: 84%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #d7e8f7;
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 1rem;
}

.hero-card-text h2 {
  font-size: 1.2rem;
}

.hero-wave {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: -220px;
  height: 320px;
  border-radius: 50%;
  background: linear-gradient(90deg, rgba(15, 108, 174, 0.11), rgba(38, 167, 229, 0.16));
}

section {
  padding: 4rem 0;
}

.stats {
  padding: 1rem 0 3rem;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-card {
  background: linear-gradient(170deg, #ffffff, var(--mist));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 91, 145, 0.1);
}

.stat-card h3 {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.35rem;
  color: var(--brand-blue-deep);
}

.stat-card p {
  margin: 0;
  color: #40647e;
  font-weight: 600;
}

.two-col {
  display: grid;
  gap: 1.6rem;
  grid-template-columns: 1.1fr 0.9fr;
}

.mission-vision {
  display: grid;
  gap: 1rem;
}

.mission-vision > div {
  border: 1px solid var(--line);
  border-left: 5px solid var(--brand-cyan);
  border-radius: 12px;
  background: #fff;
  padding: 1rem;
}

.focus {
  background: linear-gradient(180deg, #f9fdff, #f4faff);
}

.focus-grid {
  margin-top: 1.3rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.focus-card {
  border-radius: 14px;
  border: 1px solid #d9e9f7;
  background: #fff;
  padding: 1.1rem;
  box-shadow: 0 8px 18px rgba(13, 77, 122, 0.07);
}

.focus-card:nth-child(2n) {
  border-left: 5px solid var(--brand-blue);
}

.focus-card:nth-child(2n + 1) {
  border-left: 5px solid var(--brand-red);
}

.section-head {
  max-width: 74ch;
}

.gallery-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-grid figure {
  margin: 0;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(13, 77, 122, 0.12);
  border: 1px solid #d8e5f2;
}

.gallery-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 0.85rem 1rem;
  color: #27506f;
  font-weight: 700;
  font-size: 0.94rem;
}

.stories {
  background: linear-gradient(180deg, #f8fcff 0%, #ffffff 100%);
}

.marquee {
  margin-top: 1.1rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 91, 145, 0.08);
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 0.65rem;
  padding: 0.65rem;
}

.marquee-track img {
  width: 430px;
  max-width: 72vw;
  height: 270px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #d7e8f7;
  flex: 0 0 auto;
}

.marquee-left {
  animation: marqueeLeft 38s linear infinite;
}

.marquee-right {
  animation: marqueeRight 44s linear infinite;
}

.partners {
  background: linear-gradient(180deg, #f6fbff 0%, #ffffff 100%);
}

.partner-marquee {
  margin-top: 1.3rem;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px rgba(0, 91, 145, 0.08);
  background: #ffffff;
}

.partner-track {
  display: flex;
  width: max-content;
  gap: 0.9rem;
  padding: 0.9rem;
  animation: partnerScroll 44s linear infinite;
}

.partner-item {
  width: 275px;
  flex: 0 0 auto;
  border: 1px solid #d7e8f7;
  border-radius: 14px;
  padding: 0.9rem;
  background: linear-gradient(165deg, #ffffff, #f4faff);
  text-align: center;
}

.partner-item img {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  margin: 0 auto 0.65rem;
  box-shadow: var(--shadow-md);
}

.partner-item h3 {
  font-size: 1rem;
  margin: 0;
  color: #1f4e72;
}

.volunteer-strip {
  background: linear-gradient(135deg, var(--brand-blue-deep), var(--brand-blue));
  color: #f3f9ff;
}

.volunteer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: end;
}

.volunteer-strip h2,
.volunteer-strip p,
.volunteer-strip label {
  color: #f3f9ff;
}

.newsletter-form {
  display: grid;
  gap: 0.55rem;
}

.newsletter-form label {
  font-weight: 700;
}

.newsletter-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
  padding: 0.72rem 0.8rem;
  font: inherit;
  color: #0a3453;
}

.newsletter-form input:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 1px;
}

.involved {
  background:
    radial-gradient(circle at 88% 75%, rgba(217, 12, 17, 0.1) 0, transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.involved-grid {
  display: grid;
  gap: 1.4rem;
  grid-template-columns: 1fr 0.9fr;
}

.value-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.value-list li {
  background: #ffffff;
  border: 1px solid #d5e6f6;
  border-radius: 10px;
  padding: 0.5rem 0.7rem;
  font-weight: 700;
  color: #1f547d;
}

.donation-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, #0d4d7a, #1178b2);
  color: #f3f9ff;
  padding: 1.35rem;
  box-shadow: var(--shadow-lg);
}

.donation-card h3,
.donation-card p,
.donation-card dt,
.donation-card dd {
  color: #f3f9ff;
}

.donation-card dl {
  margin: 1.1rem 0;
}

.donation-card dt {
  font-weight: 700;
  opacity: 0.92;
}

.donation-card dd {
  margin: 0.2rem 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.site-footer {
  background: #0a3555;
  color: #daeefe;
  padding-bottom: 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr;
}

.site-footer h2,
.site-footer h3,
.site-footer p,
.site-footer a {
  color: #e8f4ff;
}

.site-footer address {
  font-style: normal;
}

.site-footer a {
  text-decoration: none;
  border-bottom: 1px dashed rgba(232, 244, 255, 0.46);
}

.footer-bottom {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(234, 245, 255, 0.2);
  text-align: center;
  padding: 0.9rem;
}

.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.62s ease, transform 0.62s ease;
}

.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCardA {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(0.5deg);
  }
}

@keyframes floatCardB {
  0%,
  100% {
    transform: translateY(0) rotate(1deg);
  }
  50% {
    transform: translateY(-12px) rotate(-0.6deg);
  }
}

@keyframes floatCardC {
  0%,
  100% {
    transform: translateY(0) rotate(-0.7deg);
  }
  50% {
    transform: translateY(-9px) rotate(0.6deg);
  }
}

@keyframes marqueeLeft {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeRight {
  0% {
    transform: translateX(-50%);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes partnerScroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.reduce-motion .section-reveal,
.reduce-motion .hero-media .card-a,
.reduce-motion .hero-media .card-b,
.reduce-motion .hero-media .card-c,
.reduce-motion .marquee-left,
.reduce-motion .marquee-right,
.reduce-motion .partner-track {
  animation: none !important;
  transition: none !important;
}

.reduce-motion .section-reveal {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .involved-grid,
  .volunteer-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-media {
    min-height: 500px;
  }

  .hero-slider,
  .slider-track,
  .slide img {
    min-height: 62vh;
    height: 62vh;
  }

  .hero-media .hero-card {
    width: 82%;
  }

  .hero-media .card-c {
    left: 2%;
  }

  .focus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-card {
    max-width: 560px;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 4%;
    width: min(300px, 92vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 0.65rem;
    display: none;
    flex-direction: column;
    gap: 0.3rem;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 0.5rem;
    border-radius: 8px;
  }

  .site-nav a:hover,
  .site-nav a:focus-visible {
    background: #eef7ff;
  }

  .gallery-grid,
  .focus-grid,
  .stats-grid,
  .value-list {
    grid-template-columns: 1fr;
  }

  .hero-slider,
  .slider-track,
  .slide img {
    min-height: 58vh;
    height: 58vh;
  }

  .slider-overlay p {
    font-size: 1rem;
  }

  .partner-item {
    width: 225px;
  }

  .hero-media {
    min-height: 410px;
  }

  .hero-media .hero-card {
    position: relative;
    width: 100%;
    top: auto;
    left: auto;
    right: auto;
    margin-bottom: 0.65rem;
    animation: none;
  }

  .hero-card-text {
    position: relative;
    width: 100%;
    bottom: auto;
    margin-top: 0.4rem;
  }

  .marquee-track img {
    width: 320px;
    height: 210px;
  }

  section {
    padding: 3.4rem 0;
  }
}