/* Jerry Damato Charity Foundation Inc — Collective Impact Metro Hub */
:root {
  --navy: #0b2a4a;
  --navy-deep: #061a30;
  --teal: #2a9d8f;
  --teal-dark: #1f7a70;
  --gold: #c9a227;
  --gold-soft: #e6c86a;
  --sky: #7eb8d4;
  --ink: #142033;
  --muted: #5a6b7d;
  --paper: #f4f8fb;
  --white: #ffffff;
  --line: rgba(11, 42, 74, 0.12);
  --shadow: 0 18px 50px rgba(6, 26, 48, 0.14);
  --radius: 4px;
  --max: 1160px;
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 1.05rem;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--navy);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  z-index: 1000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Top utility bar */
.utility-bar {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.86rem;
}

.utility-bar .container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 0.55rem;
}

.utility-bar a {
  color: var(--gold-soft);
  text-decoration: none;
}

.utility-bar a:hover {
  color: var(--white);
}

.helpline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: var(--white);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.helpline-badge span {
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.92;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.65rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--navy);
  min-width: 0;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-text strong {
  font-family: var(--font-display);
  font-size: clamp(0.82rem, 1.6vw, 1rem);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.brand-text em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--navy);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  border-bottom-color: var(--teal);
  color: var(--teal-dark);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius);
  border: 2px solid transparent;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-deep);
}

.btn-primary:hover {
  background: var(--gold-soft);
  color: var(--navy-deep);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
  color: var(--white);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-teal {
  background: var(--teal);
  color: var(--white);
}

.btn-teal:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.nav-cta {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
}

/* Hero — full bleed */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(6, 26, 48, 0.28) 0%, rgba(6, 26, 48, 0.78) 58%, rgba(6, 26, 48, 0.92) 100%),
    var(--hero-image) center / cover no-repeat;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, rgba(244, 248, 251, 0.08));
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 5.5rem 0 4rem;
  max-width: 720px;
}

.hero .brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
  color: var(--white);
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 5vw, 3.35rem);
  margin-bottom: 1rem;
  max-width: 16ch;
}

.hero p {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 42ch;
  margin-bottom: 1.75rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.page-hero {
  position: relative;
  min-height: 42vh;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(120deg, rgba(6, 26, 48, 0.88), rgba(42, 157, 143, 0.55)),
    var(--hero-image) center / cover no-repeat;
}

.page-hero .hero-inner {
  padding: 5rem 0 2.75rem;
}

.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 18ch;
}

.page-hero p {
  color: rgba(255, 255, 255, 0.9);
  max-width: 52ch;
  margin-bottom: 0;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.page-hero .eyebrow {
  color: var(--gold-soft);
}

/* Sections */
section {
  padding: 4.5rem 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.band-paper {
  background:
    radial-gradient(circle at 12% 20%, rgba(126, 184, 212, 0.18), transparent 35%),
    radial-gradient(circle at 88% 10%, rgba(42, 157, 143, 0.12), transparent 30%),
    linear-gradient(180deg, #eef5f9, var(--paper));
}

.band-navy {
  background:
    linear-gradient(135deg, rgba(42, 157, 143, 0.18), transparent 40%),
    linear-gradient(180deg, var(--navy), var(--navy-deep));
  color: rgba(255, 255, 255, 0.9);
}

.band-navy h2,
.band-navy h3 {
  color: var(--white);
}

.band-navy .section-head p {
  color: rgba(255, 255, 255, 0.78);
}

/* Impact pillars */
.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.pillar {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--white);
  isolation: isolate;
}

.pillar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.pillar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(6, 26, 48, 0.15), rgba(6, 26, 48, 0.88));
}

.pillar:hover img,
.pillar:focus-visible img {
  transform: scale(1.06);
}

.pillar-body {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.6rem;
}

.pillar-num {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}

.pillar h3 {
  color: var(--white);
  font-size: 1.55rem;
  margin-bottom: 0.45rem;
}

.pillar p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.98rem;
}

/* Split layouts */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}

.split.reverse .split-copy {
  order: 2;
}

.media-frame {
  position: relative;
}

.media-frame img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.media-frame::before {
  content: "";
  position: absolute;
  inset: 1.25rem -1.25rem -1.25rem 1.25rem;
  border: 2px solid var(--teal);
  z-index: -1;
}

/* Stats */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat {
  padding: 1.25rem 0;
  border-top: 2px solid rgba(255, 255, 255, 0.2);
}

.stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--gold-soft);
  margin-bottom: 0.25rem;
}

.stat span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.95rem;
}

/* Mosaic */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}

.mosaic figure {
  margin: 0;
  overflow: hidden;
  position: relative;
  min-height: 220px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mosaic figure:hover img {
  transform: scale(1.05);
}

.mosaic figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.85rem 1rem;
  background: linear-gradient(transparent, rgba(6, 26, 48, 0.85));
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Workplace giving */
.give-path {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.give-step {
  padding: 1.5rem 0;
  border-top: 3px solid var(--teal);
}

.give-step strong {
  display: block;
  font-family: var(--font-display);
  color: var(--gold);
  margin-bottom: 0.55rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.give-step h3 {
  font-size: 1.25rem;
}

.give-step p {
  color: var(--muted);
  margin-bottom: 0;
}

/* Leadership */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.leader {
  text-align: left;
}

.leader img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  margin-bottom: 1rem;
  filter: grayscale(0.15);
}

.leader h3 {
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.leader .role {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.92rem;
  margin-bottom: 0.65rem;
}

.leader p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.news-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.news-item time {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.news-item h3 {
  font-size: 1.25rem;
}

.news-item p {
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.news-item a {
  font-weight: 700;
  text-decoration: none;
  color: var(--navy);
}

.news-item a:hover {
  color: var(--teal-dark);
}

/* Forms */
.form-panel {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

label {
  display: block;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font: inherit;
  color: var(--ink);
  background: #fbfdff;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid var(--teal);
  outline-offset: 1px;
  border-color: var(--teal);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

.amount-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.amount-option {
  position: relative;
}

.amount-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.amount-option span {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 0.5rem;
  border: 2px solid var(--line);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.amount-option input:checked + span,
.amount-option span:hover {
  border-color: var(--teal);
  background: rgba(42, 157, 143, 0.08);
}

.form-note {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.75rem;
}

.form-success {
  display: none;
  padding: 1rem 1.1rem;
  background: rgba(42, 157, 143, 0.12);
  border-left: 4px solid var(--teal);
  color: var(--navy);
  margin-bottom: 1rem;
}

.form-success.is-visible {
  display: block;
}

/* CTA band */
.cta-band {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: center;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 0;
}

/* Content prose */
.prose {
  max-width: 720px;
}

.prose h2 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
  color: var(--muted);
}

.prose li {
  margin-bottom: 0.55rem;
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
}

.checklist li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.7rem;
  height: 0.7rem;
  background: var(--teal);
  border-radius: 50%;
}

/* Tables / policy */
.policy-block {
  background: var(--paper);
  border-left: 4px solid var(--gold);
  padding: 1.25rem 1.4rem;
  margin: 1.5rem 0;
}

.policy-block strong {
  color: var(--navy);
}

/* Footer */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255, 255, 255, 0.82);
  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: 72px;
  height: 72px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
}

.footer-brand strong {
  display: block;
  color: var(--white);
  font-family: var(--font-display);
  margin-bottom: 0.45rem;
}

.site-footer h4 {
  color: var(--gold-soft);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--gold-soft);
}

.footer-links {
  display: grid;
  gap: 0.55rem;
}

.footer-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1.4rem;
  font-size: 0.9rem;
  display: grid;
  gap: 0.45rem;
}

.footer-legal .ein {
  color: var(--gold-soft);
  font-weight: 700;
}

/* Reveal motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Responsive */
@media (max-width: 980px) {
  .pillar-grid,
  .leader-grid,
  .news-grid,
  .give-path,
  .stat-row,
  .footer-grid,
  .split,
  .split.reverse,
  .cta-band {
    grid-template-columns: 1fr 1fr;
  }

  .split.reverse .split-copy {
    order: 0;
  }

  .mosaic {
    grid-template-columns: 1fr 1fr;
  }

  .pillar:last-child,
  .stat:nth-child(3),
  .stat:nth-child(4),
  .leader:nth-child(3),
  .leader:nth-child(4),
  .news-item:last-child,
  .give-step:last-child {
    grid-column: span 2;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.25rem 1.25rem;
    gap: 0.35rem;
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-cta {
    width: 100%;
    margin-top: 0.35rem;
  }

  .pillar-grid,
  .leader-grid,
  .news-grid,
  .give-path,
  .stat-row,
  .footer-grid,
  .split,
  .cta-band,
  .form-grid,
  .amount-picker,
  .mosaic {
    grid-template-columns: 1fr;
  }

  .pillar:last-child,
  .stat:nth-child(3),
  .stat:nth-child(4),
  .leader:nth-child(3),
  .leader:nth-child(4),
  .news-item:last-child,
  .give-step:last-child {
    grid-column: auto;
  }

  .brand-text em {
    display: none;
  }

  .media-frame img {
    min-height: 280px;
  }

  .hero {
    min-height: 78vh;
  }
}
