:root {
  --navy: #0b2c45;
  --navy-deep: #071e30;
  --teal: #3d98a3;
  --teal-dark: #2d7a83;
  --orange: #f39221;
  --orange-deep: #d97a12;
  --sand: #e8f1f3;
  --fog: #f3f7f8;
  --ink: #142433;
  --muted: #5a6d7a;
  --white: #ffffff;
  --line: rgba(11, 44, 69, 0.12);
  --shadow: 0 18px 50px rgba(7, 30, 48, 0.14);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
  --header-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(circle at 12% -10%, rgba(61, 152, 163, 0.18), transparent 42%),
    radial-gradient(circle at 90% 8%, rgba(243, 146, 33, 0.14), transparent 36%),
    linear-gradient(180deg, #f7fbfc 0%, var(--fog) 48%, #eef5f6 100%);
  line-height: 1.65;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--orange);
  color: var(--navy-deep);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(247, 251, 252, 0.86);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--navy);
}

.brand-text span {
  font-size: 0.72rem;
  color: var(--teal-dark);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav a {
  padding: 0.55rem 0.7rem;
  font-size: 0.92rem;
  color: var(--navy);
  border-radius: 999px;
  transition: background 0.25s ease, color 0.25s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  background: rgba(61, 152, 163, 0.12);
  color: var(--teal-dark);
}

.nav .btn {
  margin-left: 0.35rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  margin: 4px 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-deep));
  color: var(--white);
  box-shadow: 0 10px 24px rgba(243, 146, 33, 0.35);
}

.btn-secondary {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(11, 44, 69, 0.22);
}

.btn-teal {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 30, 48, 0.82) 0%, rgba(7, 30, 48, 0.55) 48%, rgba(7, 30, 48, 0.28) 100%),
    linear-gradient(0deg, rgba(7, 30, 48, 0.72) 0%, transparent 48%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(3.5rem, 7vw, 5.5rem);
  max-width: 720px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
  animation: riseIn 0.9s ease both;
}

.hero-brand img {
  width: clamp(72px, 12vw, 108px);
  height: auto;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
}

.hero-brand-copy {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 3.4vw, 2.15rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-brand-copy em {
  display: block;
  font-style: normal;
  font-size: 0.42em;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #9ed7dd;
  margin-top: 0.35rem;
  font-weight: 700;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.2vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  animation: riseIn 0.9s ease 0.12s both;
}

.hero p {
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  max-width: 34rem;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 1.75rem;
  animation: riseIn 0.9s ease 0.22s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  animation: riseIn 0.9s ease 0.32s both;
}

.hero .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

/* Sections */
section {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.2rem;
}

.eyebrow {
  display: inline-block;
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 0.7rem;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  margin: 0 0 0.8rem;
}

h3 {
  font-size: 1.25rem;
  margin: 0 0 0.55rem;
}

.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0;
}

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: center;
}

.split.reverse > :first-child {
  order: 2;
}

.media-frame {
  position: relative;
  border-radius: calc(var(--radius) + 6px);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 360px;
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: auto -10% -20% auto;
  width: 55%;
  height: 55%;
  background: radial-gradient(circle, rgba(243, 146, 33, 0.35), transparent 70%);
  pointer-events: none;
  z-index: 1;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
  display: grid;
  gap: 0.85rem;
}

.feature-list li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.8rem;
  align-items: start;
}

.feature-list li::before {
  content: "";
  width: 12px;
  height: 12px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--orange), var(--teal));
}

/* Impact strip */
.impact {
  background:
    linear-gradient(135deg, rgba(11, 44, 69, 0.96), rgba(45, 122, 131, 0.92)),
    url("../images/community.jpg") center/cover;
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.impact .section-head h2,
.impact .lead {
  color: var(--white);
}

.impact .lead {
  opacity: 0.88;
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.impact-item {
  padding: 0.4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.impact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin-bottom: 0.3rem;
}

/* Programs / content rows */
.program-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.program {
  padding: 0.2rem 0 1rem;
  border-top: 2px solid var(--teal);
}

.program p {
  color: var(--muted);
  margin: 0;
}

/* Blog */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-item {
  display: block;
  transition: transform 0.25s ease;
}

.blog-item:hover {
  transform: translateY(-4px);
}

.blog-item img {
  width: 100%;
  height: 210px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.blog-item time {
  color: var(--teal-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.blog-item h3 {
  margin-top: 0.35rem;
}

.blog-item p {
  color: var(--muted);
  margin: 0.4rem 0 0;
}

/* CTA band */
.cta-band {
  background:
    linear-gradient(120deg, rgba(11, 44, 69, 0.92), rgba(61, 152, 163, 0.78)),
    url("../images/donate-bg.jpg") center/cover;
  color: var(--white);
  border-radius: 0;
}

.cta-band .container {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.cta-band h2 {
  color: var(--white);
  max-width: 18ch;
}

.cta-band p {
  max-width: 36ch;
  opacity: 0.9;
  margin: 0.6rem 0 0;
}

/* Page hero (inner) */
.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.page-hero .hero-media {
  position: absolute;
  inset: 0;
}

.page-hero .hero-content {
  padding: 4.5rem 0 3rem;
  max-width: 720px;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 0.8rem;
  letter-spacing: -0.03em;
  animation: riseIn 0.8s ease both;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  animation: riseIn 0.8s ease 0.1s both;
}

/* Leadership */
.leader-feature {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.leader-feature img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.leader-meta {
  color: var(--teal-dark);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.team-person img {
  width: 100%;
  aspect-ratio: 1 / 1.1;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}

.team-person p {
  color: var(--muted);
  margin: 0.35rem 0 0;
}

.roster-block {
  margin-top: 3rem;
}

.roster-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(7, 30, 48, 0.06);
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

.roster-table th,
.roster-table td {
  text-align: left;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.roster-table th {
  font-family: var(--font-display);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy);
  background: rgba(61, 152, 163, 0.1);
}

.roster-table tr:last-child td {
  border-bottom: 0;
}

.roster-table td strong {
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.roster-table .role {
  color: var(--teal-dark);
  font-weight: 700;
  white-space: nowrap;
}

.roster-table .dept {
  color: var(--muted);
  font-size: 0.95rem;
}

.member-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin-top: 1.5rem;
}

.member-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.member-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61, 152, 163, 0.45);
}

.member-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 0.9rem;
}

.member-card .leader-meta {
  margin-bottom: 0.25rem;
}

.member-card h3 {
  margin-bottom: 0.35rem;
}

.member-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 960px) {
  .member-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .member-grid {
    grid-template-columns: 1fr;
  }
}

/* Membership interactive cards */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.plan {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 4px);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(7, 30, 48, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.plan:hover,
.plan:focus-within {
  border-color: rgba(61, 152, 163, 0.55);
  transform: translateY(-3px);
}

.plan.featured {
  background: linear-gradient(180deg, rgba(61, 152, 163, 0.12), rgba(255, 255, 255, 0.9));
  border-color: rgba(61, 152, 163, 0.45);
}

.plan .price {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--navy);
  line-height: 1;
}

.plan .price span {
  font-size: 0.95rem;
  color: var(--muted);
  font-family: var(--font-body);
  font-weight: 600;
}

.plan ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  flex: 1;
}

.plan .btn {
  width: 100%;
}

/* Donate form */
.donate-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.donate-panel {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin: 1rem 0 1.2rem;
}

.amount-btn {
  border: 1.5px solid var(--line);
  background: var(--white);
  border-radius: 12px;
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  transition: 0.2s ease;
}

.amount-btn:hover,
.amount-btn.active {
  border-color: var(--orange);
  background: rgba(243, 146, 33, 0.12);
  color: var(--orange-deep);
}

.form-grid {
  display: grid;
  gap: 0.85rem;
}

.form-grid label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
  color: var(--navy);
  font-size: 0.92rem;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(61, 152, 163, 0.35);
  border-color: var(--teal);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0.8rem 0 0;
}

.trust-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
}

.trust-list li {
  padding-left: 1rem;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-card {
  background: linear-gradient(160deg, var(--navy), #16425f 55%, var(--teal-dark));
  color: var(--white);
  border-radius: calc(var(--radius) + 6px);
  padding: 1.8rem;
  min-height: 100%;
}

.contact-card h2 {
  color: var(--white);
}

.contact-card a {
  color: #c8eef2;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-card p {
  margin: 0.55rem 0;
}

/* Legal / prose */
.prose {
  max-width: 720px;
}

.prose p,
.prose li {
  color: var(--muted);
}

.prose h2 {
  margin-top: 2rem;
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  padding: 3.5rem 0 2rem;
  margin-top: 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 14px;
  padding: 0.3rem;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.9rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.45rem;
}

.site-footer a:hover {
  color: #9ed7dd;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.5rem;
  justify-content: space-between;
  font-size: 0.9rem;
}

.ein {
  color: #9ed7dd;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroDrift {
  from {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.1) translate3d(-1.5%, -1%, 0);
  }
}

/* Blog article */
.article {
  max-width: 760px;
  margin: 0 auto;
}

.article-hero-img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0 2rem;
}

.article p {
  color: var(--muted);
  font-size: 1.08rem;
}

.article h2 {
  margin-top: 2rem;
}

/* Responsive */
@media (max-width: 960px) {
  .split,
  .split.reverse > :first-child,
  .leader-feature,
  .donate-layout,
  .contact-grid,
  .footer-grid,
  .impact-grid,
  .program-row,
  .blog-grid,
  .plan-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }

  .split.reverse > :first-child {
    order: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(247, 251, 252, 0.98);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a,
  .nav .btn {
    width: 100%;
    margin: 0;
    text-align: center;
  }

  .amount-grid,
  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 78svh;
  }
}

@media (max-width: 560px) {
  .brand-text {
    display: none;
  }

  .amount-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-actions,
  .cta-band .container {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }
}
