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

:root {
  --red: #cc0033;
  --red-dark: #a6002a;
  --blue: #15ace1;
  --navy: #14183e;
  --cream: #f4f7fe;
  --white: #ffffff;
  --text: #3f4254;
  --muted: #606479;
  --border: rgba(20, 24, 62, 0.13);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
}

body {
  min-width: 320px;
  padding-bottom: 70px;
  overflow-x: hidden;
  background: var(--white);
  color: var(--text);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

body.menu-open { overflow: hidden; }

a {
  transition: color .2s ease, background-color .2s ease, border-color .2s ease,
    transform .2s ease, box-shadow .2s ease;
}

button { font: inherit; }

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header { background: var(--red); }

.site-topbar { display: none; }

.navbar-sticky {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--red);
  box-shadow: 0 3px 14px rgba(20, 24, 62, .18);
  transition: box-shadow .25s ease;
}

.nav {
  width: calc(100% - 2rem);
  max-width: 1140px;
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: height .25s ease;
}

.nav-logo {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav-logo img {
  width: auto;
  height: 43px;
  display: block;
  transition: height .25s ease;
}

.navbar-sticky.is-compact { box-shadow: 0 5px 18px rgba(20, 24, 62, .24); }
.navbar-sticky.is-compact .nav { height: 56px; }
.navbar-sticky.is-compact .nav-logo img { height: 34px; }
.navbar-sticky.is-compact + .mobile-menu { top: 56px; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}

.nav-phone {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: var(--red);
}

.nav-phone svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.hamburger span {
  width: 22px;
  height: 2px;
  display: block;
  border-radius: 2px;
  background: #fff;
}

.nav-desktop { display: none; }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0;
  z-index: 999;
  display: none;
  flex-direction: column;
  overflow-y: auto;
  padding: 1.5rem;
  background: var(--red);
}

.mobile-menu.open { display: flex; }

.mobile-menu a {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .95);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a[aria-current="page"] { color: #fff; }

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  padding: 15px;
  border: 0;
  border-radius: 4px;
  background: #fff;
  color: var(--red);
  text-align: center;
  font-weight: 800;
}

.mobile-menu .mobile-lang {
  margin-top: .75rem;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 4px;
  font-size: 14px;
  text-align: center;
}

.inner {
  width: calc(100% - 2.5rem);
  max-width: 1140px;
  margin: 0 auto;
}

.eyebrow {
  color: var(--red);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.donation-hero {
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 4rem 1.25rem;
  background:
    linear-gradient(90deg, rgba(20, 24, 62, .94) 0%, rgba(20, 24, 62, .82) 48%, rgba(20, 24, 62, .46) 100%),
    url("../img/abrazo.webp") center / cover no-repeat var(--navy);
}

.hero-inner {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.donation-hero .eyebrow { color: var(--blue); }

.donation-hero h1 {
  max-width: 700px;
  margin: .35rem 0 .9rem;
  color: #fff;
  font-size: clamp(2.7rem, 9vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.donation-hero p:not(.eyebrow) {
  max-width: 590px;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.hero-cta {
  width: fit-content;
  margin-top: 1.65rem;
  padding: 12px 19px;
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 4px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.hero-cta:hover {
  border-color: #fff;
  background: #fff;
  color: var(--navy);
}

.causes { padding: 4rem 0; background: var(--cream); }

.section-intro {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-intro h2,
.general-help h2 {
  margin: .4rem 0 .7rem;
  color: var(--navy);
  font-size: clamp(1.85rem, 5vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.16;
}

.section-intro > p:last-child {
  max-width: 680px;
  color: var(--muted);
}

.cause-list {
  display: grid;
  gap: 1.5rem;
}

.cause-card {
  overflow: hidden;
  display: grid;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(20, 24, 62, .08);
}

.cause-media {
  min-width: 0;
  align-self: stretch;
  background: var(--navy);
}

.cause-media iframe,
.cause-media video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: 0;
  background: #0b0e26;
  object-fit: contain;
}

.cause-media > a {
  padding: 11px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, .76);
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
}

.cause-media > a:hover { color: #fff; }

.cause-media > a svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cause-copy { padding: 1.5rem; }

.cause-number {
  margin-bottom: .5rem;
  color: var(--red);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.cause-copy h3 {
  color: var(--navy);
  font-size: clamp(1.55rem, 5vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.14;
}

.cause-person {
  margin: .3rem 0 1rem;
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
}

.cause-copy > p:not(.cause-number):not(.cause-person) {
  margin-bottom: .85rem;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.75;
}

.donate-button,
.general-button {
  width: fit-content;
  min-height: 49px;
  margin-top: .9rem;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.donate-button svg,
.general-button svg,
.mobile-donation-bar svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.donate-button:hover,
.general-button:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 9px 22px rgba(204, 0, 51, .22);
}

.cause-media--community {
  min-height: 300px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 75% 20%, rgba(21, 172, 225, .35), transparent 35%),
    linear-gradient(145deg, #202758 0%, var(--navy) 65%);
  color: #fff;
}

.cause-media--community::before,
.cause-media--community::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.cause-media--community::before {
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
}

.cause-media--community::after {
  top: -25px;
  right: -5px;
  width: 150px;
  height: 150px;
}

.community-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 1.2rem;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 50%;
  color: var(--blue);
}

.community-mark svg {
  width: 33px;
  height: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cause-media--community p {
  max-width: 300px;
  font-size: clamp(1.8rem, 6vw, 2.7rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.05;
}

.cause-media--community span {
  margin-top: .75rem;
  color: rgba(255, 255, 255, .62);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.general-help {
  padding: 4rem 0;
  background: #fff;
}

.general-help-inner {
  padding-left: 1.4rem;
  border-left: 4px solid var(--red);
}

.general-help p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

footer {
  padding: 2.4rem 1.25rem;
  background:
    linear-gradient(rgba(20, 24, 62, .96), rgba(20, 24, 62, .96)),
    url("../img/footer.webp") center / cover no-repeat var(--navy);
  text-align: center;
}

.footer-inner { max-width: 1140px; margin: 0 auto; }

.footer-logo { display: inline-block; margin-bottom: .7rem; }
.footer-logo img { width: auto; height: 38px; display: block; }
footer p { color: rgba(255, 255, 255, .48); font-size: 13px; }

.footer-links {
  margin-top: .75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1rem;
}

.footer-links a {
  color: rgba(255, 255, 255, .62);
  font-size: 13px;
  text-decoration: none;
}

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

.mobile-donation-bar {
  position: fixed;
  inset: auto 0 0;
  z-index: 1001;
  padding: 8px 1rem calc(8px + var(--safe-bottom));
  background: var(--navy);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, .24);
}

.mobile-donation-bar a {
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 4px;
  background: var(--red);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .causes { padding: 5rem 0; }
  .cause-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cause-card--reverse .cause-media { order: 2; }
  .cause-copy { padding: clamp(2rem, 4vw, 3.25rem); align-self: center; }
  .cause-media iframe,
  .cause-media video { min-height: 340px; aspect-ratio: auto; }
  .cause-media { display: flex; flex-direction: column; }
  .cause-media iframe,
  .cause-media video { flex: 1; }
  .cause-media--community { min-height: 440px; }
  .general-help { padding: 5rem 0; }
  .general-help-inner { display: flex; align-items: center; justify-content: space-between; gap: 3rem; }
  .general-button { flex: 0 0 auto; margin-top: 0; }
}

@media (min-width: 1020px) {
  html { scroll-padding-top: 75px; }
  body { padding-bottom: 0; }
  .site-topbar { display: block; background: #fff; color: var(--red); }
  .nav-shell {
    width: calc(100% - 3rem);
    max-width: 1140px;
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
  }
  .nav-shell > p { font-size: 13px; font-weight: 600; }
  .topbar-links { display: flex; align-items: center; gap: 1.2rem; }
  .topbar-links a { display: flex; align-items: center; gap: 7px; color: var(--red); font-size: 13px; font-weight: 600; text-decoration: none; }
  .topbar-links svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
  .topbar-links a:last-child svg { width: 25px; height: 25px; }
  .nav { width: calc(100% - 3rem); height: 75px; }
  .nav-logo img { height: 47px; }
  .nav-actions, .mobile-menu { display: none !important; }
  .nav-desktop { display: flex; align-items: center; gap: clamp(.7rem, 1.25vw, 1.25rem); list-style: none; }
  .nav-desktop a { color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; text-decoration: none; }
  .nav-desktop a:hover { color: var(--navy); }
  .nav-desktop a.active { padding-bottom: 3px; border-bottom: 2px solid #fff; }
  .nav-desktop .nav-cta { padding: 10px 18px; border-radius: 4px; background: #fff; color: var(--red); font-weight: 700; }
  .nav-desktop .nav-cta:hover { background: var(--navy); color: #fff; }
  .nav-desktop .nav-lang { min-width: 36px; height: 34px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; font-size: 12px; font-weight: 700; }
  .navbar-sticky.is-compact .nav { height: 58px; }
  .navbar-sticky.is-compact .nav-logo img { height: 37px; }
  .donation-hero { min-height: 540px; padding: 5rem 2rem; background-position: center 44%; }
  .mobile-donation-bar { display: none; }
}

@media (max-width: 520px) {
  .donation-hero { min-height: 470px; background-position: 58% center; }
  .donation-hero h1 { font-size: 2.75rem; }
  .donate-button, .general-button { width: 100%; }
  .cause-media--community { min-height: 270px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
