/* CARD2CHARITY INC — brand system */
:root {
  --navy: #0a2757;
  --navy-deep: #061a3a;
  --navy-mid: #143a72;
  --sky: #4e9fd4;
  --heart: #e14b2e;
  --heart-deep: #c23a22;
  --gold: #c9a227;
  --cream: #f7f4ef;
  --ink: #152238;
  --muted: #5a6a7e;
  --white: #ffffff;
  --line: rgba(10, 39, 87, 0.12);
  --shadow: 0 18px 50px rgba(6, 26, 58, 0.18);
  --radius: 4px;
  --font-display: "Bricolage Grotesque", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, sans-serif;
  --max: 1120px;
  --nav-h: 78px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: white;
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ——— Nav ——— */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  transition: background 0.35s ease, box-shadow 0.35s ease, backdrop-filter 0.35s ease;
}

.site-header.is-solid,
.site-header.page-header {
  background: rgba(247, 244, 239, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
}

.site-header.is-solid .nav-link,
.site-header.page-header .nav-link,
.site-header.is-solid .brand-name,
.site-header.page-header .brand-name {
  color: var(--navy);
}

.site-header.is-solid .nav-toggle span,
.site-header.page-header .nav-toggle span {
  background: var(--navy);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.brand img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(6, 26, 58, 0.25);
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: var(--white);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--gold);
}

.site-header.is-solid .nav-link:hover,
.site-header.is-solid .nav-link[aria-current="page"],
.site-header.page-header .nav-link:hover,
.site-header.page-header .nav-link[aria-current="page"] {
  color: var(--heart);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--heart);
  color: var(--white);
  box-shadow: 0 10px 28px rgba(225, 75, 46, 0.35);
}

.btn-primary:hover {
  background: var(--heart-deep);
}

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-navy {
  background: var(--navy);
  color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.nav-cta {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--white);
  transition: 0.25s ease;
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 26, 58, 0.55) 0%, rgba(6, 26, 58, 0.35) 40%, rgba(6, 26, 58, 0.82) 100%),
    radial-gradient(ellipse at 20% 80%, rgba(225, 75, 46, 0.28), transparent 50%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 3rem) 0 4.5rem;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: riseIn 0.9s 0.15s ease forwards;
}

.hero-brand img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.hero-brand-text {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero-brand-text span {
  display: block;
  font-size: 0.38em;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.45rem;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.1rem, 5.5vw, 3.6rem);
  font-weight: 800;
  margin-bottom: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s 0.35s ease forwards;
}

.hero-lead {
  max-width: 38ch;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 1.75rem;
  opacity: 0;
  animation: riseIn 0.9s 0.5s ease forwards;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  opacity: 0;
  animation: riseIn 0.9s 0.65s ease forwards;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ——— Page hero (inner) ——— */
.page-hero {
  position: relative;
  min-height: 48vh;
  display: grid;
  align-items: end;
  color: var(--white);
  overflow: hidden;
}

.page-hero .hero-media,
.page-hero .hero-overlay {
  position: absolute;
  inset: 0;
}

.page-hero .hero-overlay {
  background: linear-gradient(180deg, rgba(6, 26, 58, 0.45), rgba(6, 26, 58, 0.88));
}

.page-hero-content {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 2.5rem) 0 3rem;
}

.page-hero h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  max-width: 14ch;
}

.page-hero p {
  max-width: 42ch;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
  margin: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

/* ——— Sections ——— */
.section {
  padding: 5rem 0;
}

.section-tight {
  padding: 3.5rem 0;
}

.section-navy {
  background: var(--navy-deep);
  color: var(--white);
}

.section-sky {
  background:
    linear-gradient(135deg, rgba(78, 159, 212, 0.12), transparent 40%),
    linear-gradient(180deg, #eef4f9, var(--cream));
}

.section-head {
  max-width: 38rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  color: var(--navy);
}

.section-navy .section-head h2 {
  color: var(--white);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  margin: 0;
}

.section-navy .section-head p {
  color: rgba(255, 255, 255, 0.72);
}

/* ——— Mission strip ——— */
.mission-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}

.mission-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
}

.mission-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.mission-photo {
  position: relative;
  min-height: 380px;
  overflow: hidden;
}

.mission-photo img {
  width: 100%;
  height: 100%;
  min-height: 380px;
  object-fit: cover;
}

.mission-photo::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(transparent, rgba(6, 26, 58, 0.45));
  pointer-events: none;
}

/* ——— Impact ——— */
.impact-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.impact-item {
  padding: 1.5rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.18);
}

.impact-item strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  color: var(--gold);
  margin-bottom: 0.35rem;
}

.impact-item span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.98rem;
}

/* ——— Programs / feature list ——— */
.feature-list {
  display: grid;
  gap: 0;
}

.feature-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}

.feature-row:first-child {
  border-top: 1px solid var(--line);
}

.feature-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--sky);
}

.feature-row h3 {
  margin: 0 0 0.3rem;
  font-size: 1.25rem;
  color: var(--navy);
}

.feature-row p {
  margin: 0;
  color: var(--muted);
}

/* ——— Photo mosaic ——— */
.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: 220px 220px;
  gap: 0.85rem;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}

.mosaic figure:first-child {
  grid-row: 1 / 3;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
}

.mosaic figure:hover img {
  transform: scale(1.05);
}

.mosaic figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

/* ——— Blog ——— */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  background: transparent;
  min-height: 100%;
}

.blog-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  margin-bottom: 1rem;
}

.blog-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.blog-card:hover .thumb img {
  transform: scale(1.06);
}

.blog-meta {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--heart);
  margin-bottom: 0.45rem;
}

.blog-card h3 {
  font-size: 1.25rem;
  color: var(--navy);
  margin-bottom: 0.45rem;
}

.blog-card p {
  color: var(--muted);
  flex: 1;
  margin-bottom: 0.85rem;
}

.blog-card .read-more {
  font-weight: 700;
  color: var(--navy);
  border-bottom: 2px solid var(--gold);
  align-self: flex-start;
  padding-bottom: 2px;
}

.post-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 720px;
}

.post-body {
  font-size: 1.08rem;
  color: var(--ink);
}

.post-body h2 {
  font-size: 1.5rem;
  color: var(--navy);
  margin-top: 2rem;
}

.post-hero-img {
  aspect-ratio: 21 / 9;
  overflow: hidden;
  margin: 0 0 2rem;
}

.post-hero-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ——— Leadership ——— */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.leader-grid.leader-cards {
  grid-template-columns: repeat(3, 1fr);
}

.leader-card {
  display: flex;
  flex-direction: column;
  padding: 1.35rem 1.25rem 1.5rem;
  border-top: 3px solid var(--navy);
  background: rgba(255, 255, 255, 0.55);
}

.leader-card.featured {
  border-top-color: var(--heart);
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.75);
}

.leader-card h3 {
  margin: 0 0 0.2rem;
  color: var(--navy);
  font-size: 1.35rem;
}

.leader-card .role {
  color: var(--heart);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0.65rem;
}

.leader-card p {
  color: var(--muted);
  margin: 0;
  font-size: 0.98rem;
}

.leader-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.leader-list li {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) minmax(160px, 1fr) 1.4fr;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  align-items: baseline;
}

.leader-list .name {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  font-size: 1.05rem;
}

.leader-list .title {
  font-weight: 700;
  color: var(--heart);
  font-size: 0.9rem;
}

.leader-list .blurb {
  color: var(--muted);
  font-size: 0.95rem;
}

/* ——— Membership ——— */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.tier {
  padding: 2rem 1.5rem;
  border-top: 3px solid var(--navy);
  background: rgba(255, 255, 255, 0.55);
}

.tier.featured {
  border-top-color: var(--heart);
  background: var(--navy);
  color: white;
}

.tier h3 {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

.tier.featured h3 {
  color: white;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--navy);
  margin: 0.75rem 0;
}

.tier.featured .price {
  color: var(--gold);
}

.tier .price small {
  font-size: 0.4em;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.tier ul {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.tier li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}

.tier.featured li {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.82);
}

.tier .btn {
  width: 100%;
}

/* ——— Donate ——— */
.donate-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: start;
}

.donate-panel {
  background: var(--white);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin: 1.25rem 0;
}

.amount-btn {
  padding: 1rem 0.5rem;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  cursor: pointer;
  transition: 0.2s ease;
}

.amount-btn:hover,
.amount-btn.is-active {
  border-color: var(--heart);
  background: rgba(225, 75, 46, 0.08);
  color: var(--heart-deep);
}

.donate-form label {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0.85rem 0 0.35rem;
  color: var(--navy);
}

.donate-form input,
.donate-form select,
.donate-form textarea,
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--line);
  background: var(--cream);
  font: inherit;
  color: var(--ink);
  border-radius: var(--radius);
}

.donate-form input:focus,
.donate-form select:focus,
.donate-form textarea:focus,
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--sky);
  border-color: transparent;
}

.donate-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 1rem;
}

.ein-box {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-left: 3px solid var(--gold);
  background: rgba(10, 39, 87, 0.04);
}

.ein-box strong {
  color: var(--navy);
}

/* ——— Contact ——— */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
}

.contact-details dt {
  font-weight: 700;
  color: var(--navy);
  margin-top: 1rem;
}

.contact-details dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.contact-details a {
  color: var(--heart);
  font-weight: 700;
}

/* ——— CTA band ——— */
.cta-band {
  position: relative;
  overflow: hidden;
  color: white;
  padding: 5rem 0;
}

.cta-band .bg {
  position: absolute;
  inset: 0;
}

.cta-band .bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cta-band .bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(6, 26, 58, 0.92), rgba(6, 26, 58, 0.65));
}

.cta-band .container {
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  max-width: 16ch;
}

.cta-band p {
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 1.5rem;
}

/* ——— Footer ——— */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  color: white;
  font-size: 1.15rem;
  margin-bottom: 0.35rem;
}

.footer-col h4 {
  color: white;
  font-size: 0.95rem;
  margin-bottom: 0.85rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.45rem;
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.88rem;
}

/* ——— Reveal on scroll ——— */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ——— Forms success ——— */
.form-success {
  display: none;
  padding: 1rem;
  background: rgba(78, 159, 212, 0.15);
  border-left: 3px solid var(--sky);
  color: var(--navy);
  font-weight: 600;
  margin-top: 1rem;
}

.form-success.is-shown {
  display: block;
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .mission-grid,
  .donate-layout,
  .contact-grid,
  .leader-grid,
  .leader-grid.leader-cards,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .leader-card.featured {
    grid-column: auto;
  }

  .leader-list li {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }

  .impact-row,
  .blog-grid,
  .tier-grid {
    grid-template-columns: 1fr;
  }

  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 240px 180px 180px;
  }

  .mosaic figure:first-child {
    grid-row: auto;
  }

  .feature-row {
    grid-template-columns: 60px 1fr;
  }

  .feature-row .btn {
    grid-column: 2;
    justify-self: start;
  }

  .nav-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 1rem 1.25rem 1.5rem;
    gap: 0;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.3s ease;
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links .nav-link {
    color: var(--navy);
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-links .nav-cta {
    margin-top: 0.85rem;
    text-align: center;
  }

  .brand-name {
    color: var(--navy);
  }

  .site-header:not(.is-solid):not(.page-header) .brand-name {
    color: var(--white);
  }

  .hero-brand img {
    width: 72px;
    height: 72px;
  }
}

@media (max-width: 560px) {
  .amount-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .footer-bottom {
    flex-direction: column;
  }
}
