/* ==========================================================================
   NCST — base, tokens, header, hero, hotline, Who We Are, mission, programs, Community Initiatives, Our Community Impact, Help Build a Safer Newark, Contact & Stay Connected, and footer
   Mobile-first. Breakpoints: 360 / 768 / 1024 / 1440
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --color-white: #ffffff;
  --color-black: #0f0f0f;
  --color-coral: #d9444a;
  --color-coral-hover: #c1363d;
  --color-gold: #fab400;
  --color-green: #009444;
  --color-ink: #23282a;
  --color-hero-deep: #12151c;

  --font-display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 1.25rem;
  --container: 87.5rem; /* 1400px — matches the 1920 mockup column (x=260–1660) */

  --header-pad-top: 1.25rem;
  --header-logo-h: 4rem;
  --header-height: calc(var(--header-pad-top) + var(--header-logo-h));

  --space-eyebrow-top: 3rem;
  --hero-min-h: 36rem;

  --focus: 0 0 0 3px var(--color-hero-deep), 0 0 0 6px var(--color-gold);

  --radius-pill: 999px;
  --shadow-menu: 0 1rem 2rem rgba(0, 0, 0, 0.35);

  --transition: 0.2s ease;
}

@media (min-width: 360px) {
  :root {
    --gutter: 1.5rem;
  }
}

@media (min-width: 768px) {
  :root {
    --gutter: 2rem;
    --header-pad-top: 2rem;
    --header-logo-h: 5.5rem;
    --space-eyebrow-top: 3.25rem;
    --hero-min-h: 44rem;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 5rem; /* 80px — keep the column off the edges below 1440 */
    --header-pad-top: 4.3125rem; /* 69px */
    --header-logo-h: 6.25rem;    /* 100px */
    --space-eyebrow-top: 3.4375rem; /* 55px from logo bottom to eyebrow */
    --hero-min-h: 52.375rem; /* 838px — matches the 1920 mockup hero */
  }
}

@media (min-width: 1440px) {
  :root {
    /* 20px sides: min(1400, 1440 - 40) = 1400. At 1920 the same cap yields 260px side margins. */
    --gutter: 1.25rem;
  }

  .about__inner {
    column-gap: 9.0625rem; /* 145px — mockup heading-to-text gap in the 1400px column */
  }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
.btn,
.header__link,
.hero__eyebrow,
.hotline__title,
.hotline__phone,
.about__lead,
.mission__kicker,
.mission__title,
.program-card__title,
.initiative__title,
.impact__label,
.impact__stat,
.footer__title,
.footer__org {
  font-family: var(--font-display);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1,
h2,
p {
  margin: 0;
}

button {
  font: inherit;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

/* ---------- A11y ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}



:focus {
  outline: none;
}

:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.btn:focus-visible,
.hotline__phone:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  
    *:not(.programs__track),
    *::before,
    *::after {
      animation-duration: 0.01ms !important;
      animation-iteration-count: 1 !important;
      transition-duration: 0.01ms !important;
      scroll-behavior: auto !important;
    }
  }

/* ---------- Layout helpers ---------- */
.container {
  width: 90%; max-width: 1400px;
  margin-inline: auto;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.625rem; /* 42px — header CTA */
  padding: 0 2.5rem;
  border-radius: var(--radius-pill);
  background-color: var(--color-coral);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  text-align: center;
  white-space: nowrap;
  transition: background-color var(--transition), transform var(--transition);
}

.btn:hover,
.btn:focus-visible {
  background-color: var(--color-coral-hover);
}

.btn:active {
  transform: translateY(1px);
}

.btn--lg {
  height: 3.625rem; /* 58px */
  padding: 0 2.75rem;
  font-size: 1.125rem; /* 18px Archivo 700 — matches mockup CTA ink widths */
}

/* ---------- Header (transparent, overlaps the hero) ---------- */
.header {
  position: relative;
  z-index: 20;
  padding-top: var(--header-pad-top);
  background: transparent;
  color: var(--color-white);
}

.header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: var(--header-logo-h);
}

.header__logo {
  flex: 0 0 auto;
  line-height: 0;
}

.header__logo img {
  width: auto;
  height: var(--header-logo-h);
}

.header__end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

.header__cta {
  flex: 0 0 auto;
}

.header__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.25rem;
  color: var(--color-white);
}

.header__toggle-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 1.5rem;
  height: 1.05rem;
}

.header__toggle-bar {
  display: block;
  height: 2px;
  width: 100%;
  background-color: currentColor;
  border-radius: 1px;
  transition: transform var(--transition), opacity var(--transition);
  transform-origin: center;
}

.header__toggle.is-open .header__toggle-bar:nth-child(1) {
  transform: translateY(0.475rem) rotate(45deg);
}

.header__toggle.is-open .header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.header__toggle.is-open .header__toggle-bar:nth-child(3) {
  transform: translateY(-0.475rem) rotate(-45deg);
}

/* Mobile / tablet nav — overlay panel so the header height stays stable.
   display:none (not opacity:0) so a desktop first-paint never inherits a hidden nav. */
.header__nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(12, 16, 24, 0.96);
  padding: 0.5rem var(--gutter) 1.25rem;
  box-shadow: var(--shadow-menu);
}

.header__nav--open {
  display: block;
}

.header__list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.header__link {
  display: block;
  padding: 0.75rem 0.5rem;
  color: var(--color-white);
  font-weight: 700;
  font-size: 1.0625rem;
  text-decoration: none;
  border-radius: 0.25rem;
}

.header__link:hover,
.header__link:focus-visible {
  color: var(--color-gold);
}

@media (min-width: 1024px) {
  .header__toggle {
    display: none;
  }

  .header__end {
    gap: 2.5rem; /* 40px between nav group and Support Us */
  }

  .header__nav {
    display: block;
    position: static;
    background: transparent;
    padding: 0;
    box-shadow: none;
  }

  .header__list {
    flex-direction: row;
    align-items: center;
    gap: 2.5rem; /* 40px */
  }

  .header__link {
    padding: 0;
    font-size: 1.09375rem; /* 17.5px Archivo 700 — “Community Initiatives” 181px */
    font-weight: 700;
    line-height: 1.2;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: calc(-1 * var(--header-height));
  min-height: var(--hero-min-h);
  color: var(--color-white);
  background-color: var(--color-hero-deep);
  isolation: isolate;
}

.hero__bg {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  min-height: var(--hero-min-h);
}

.hero__bg img {
  width: 100%;
  height: 100%;
  min-height: var(--hero-min-h);
  object-fit: cover;
  object-position: center top;
}

/* Extra scrim on small screens so type stays readable when the photo crops */
.hero::after {
  content: "";
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 24, 0.72) 0%,
    rgba(12, 16, 24, 0.55) 55%,
    rgba(12, 16, 24, 0.4) 100%
  );
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 1024px) {
  /* The source photo already carries a left-to-right dim; keep only a light wash */
  .hero::after {
    background: linear-gradient(
      90deg,
      rgba(12, 16, 24, 0.2) 0%,
      rgba(12, 16, 24, 0.05) 45%,
      rgba(12, 16, 24, 0) 100%
    );
  }
}

.hero__content {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: min(var(--container), 100% - 2 * var(--gutter));
  padding-top: calc(var(--header-height) + var(--space-eyebrow-top));
  padding-bottom: 6.5rem; /* 104px — gap under the buttons + 47px badge overlap */
}

.hero__eyebrow {
  max-width: 30rem;
  margin-bottom: 1.5rem; /* ~25px to the heading */
  color: var(--color-gold);
  font-weight: 500;
  font-size: 0.9375rem; /* 15px on small screens */
  line-height: 1.45;
}

.hero__title {
  margin: 0 0 1.75rem;
  font-weight: 800;
  font-size: clamp(2.5rem, 1.4rem + 4.2vw, 4.875rem); /* caps at 78px Archivo ExtraBold */
  line-height: 0.96; /* 75px at the 78px cap — mockup line pitch */
  letter-spacing: 0;
  color: var(--color-white);
}

.hero__accent {
  color: var(--color-coral);
}

.hero__lead {
  max-width: 44rem; /* keep “community-based” on line 2 as in the mockup */
  margin: 0 0 3.25rem; /* ~54px to the buttons */
  font-size: 1.0625rem;
  line-height: 1.6;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.875rem;
  width: 100%;
  max-width: 26rem;
}

.hero__actions .btn {
  width: 100%;
  white-space: normal;
}

@media (min-width: 768px) {
  .hero__eyebrow {
    font-size: 1.15625rem; /* 18.5px Archivo 500 */
    line-height: 1.3; /* ~24px */
    max-width: 30rem; /* first mockup line is 454px; 18.5px Medium is 450px */
  }

  .hero__lead {
    font-size: 1.5rem; /* 24px Source Sans 3 Regular — mockup lead ink widths */
    line-height: 1.333; /* 32px */
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    width: auto;
    max-width: none;
    gap: 1.375rem; /* 22px */
  }

  .hero__actions .btn {
    width: auto;
    white-space: nowrap;
  }
}

/* ---------- Hotline bar ---------- */
.hotline {
  position: relative;
  z-index: 3;
  background-color: var(--color-green);
  color: var(--color-white);
}

.hotline__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  min-height: 0;
  padding: 2em;
}

.hotline__badge {
  width: 7.25rem; /* 116px — own row on mobile, no overlap with the heading */
  height: 7.25rem;
  margin-top: -1.25rem; /* slight peek into the hero */
  margin-bottom: 0;
  flex-shrink: 0;
  object-fit: contain;
}

.hotline__text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

.hotline__title {
  font-weight: 800;
  font-size: 1.25rem;
  line-height: 1.2;
}

.hotline__subtitle {
  font-weight: 400;
  font-size: 1.0625rem; /* 17px — helps the 3.95:1 green/white pairing */
  line-height: 1.3;
}

.hotline__phone {
  color: var(--color-white);
  font-weight: 800;
  font-size: clamp(1.5rem, 0.8rem + 3vw, 3.28125rem); /* up to 52.5px Archivo ExtraBold, as measured */
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-decoration: underline;
  text-decoration-thickness: 0.125rem;
  text-underline-offset: 0.18em;
  white-space: nowrap;
}

.hotline__phone:hover,
.hotline__phone:focus-visible {
  color: var(--color-white);
}

@media (min-width: 768px) {

  /* Badge in the first column; title and phone stack to its right so nothing slides under it */
  .hotline__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    align-items: center;
    justify-content: start;
    text-align: left;
    column-gap: 1.25rem;
    row-gap: 1em;
    padding: 2em 0; 
  }

  .hotline__badge {
    grid-row: 1 / -1;
    width: 13.25rem;
    height: 13.25rem;
    margin-top: -3.9375rem;
    margin-bottom: -3.9375rem;
  }

  .hotline__text {
    grid-column: 2;
    align-items: flex-start;
    flex: none;
  }

  .hotline__title {
    font-size: 1.65625rem; /* 26.5px Archivo ExtraBold — title ink width 394px vs 395px */
    white-space: nowrap;
  }

  .hotline__subtitle {
    font-size: 1.25rem; /* 20px Source Sans 3 Regular — subtitle ink width 310px vs 308px */
  }

  .hotline__phone {
    grid-column: 2;
    margin-left: 0;
    justify-self: start;
  }
}
@media (max-width: 1349px) {
    .hotline__inner { max-width: fit-content }
 }

@media (min-width: 1350px) {


  .hotline__inner {
    display: flex; padding: 2em 0;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 1.75rem; 
  }

  .hotline__badge {
    grid-row: auto;
    width: 13.25rem; /* 212px — 1:1 with the asset, measured from the mockup */
    height: 13.25rem;
    margin-top: -3.9375rem; /* 47px into the hero */
    margin-bottom: -3.9375rem; /* 47px into the next section; 212-47-47=118 */
  }

  .hotline__text {
    flex: 1 1 auto;
  }

  .hotline__phone {
    margin-left: auto;
    justify-self: auto;
  }
}


/* ---------- Who We Are ---------- */
.about {
  padding-top: 3rem;
  padding-bottom: 3.5rem;
  background-color: var(--color-white);
  color: var(--color-ink);
}

.about__inner {
  display: grid;
  gap: 1.25rem;
}

.about__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.2vw, 4.1875rem); /* 32–67px Archivo ExtraBold */
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--color-ink);
}

.about__lead {
  font-weight: 800;
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.625rem); /* 18–26px Archivo ExtraBold */
  line-height: 1.5; /* 39px at 26px — mockup lead pitch */
  color: var(--color-ink);
}

.about__copy p:not(.about__lead) {
  font-size: 1.0625rem; /* 17px on small/mid; 20px from 1440, as in the mockup */
  line-height: 1.6875;
  color: var(--color-ink);
}

.about__lead + p {
  margin-top: 2rem;
}

.about__copy p + p {
  margin-top: 1.25rem;
}

@media (min-width: 768px) {
  .about {
    padding-top: 4rem;
    padding-bottom: 4.5rem;
  }
}

@media (min-width: 1024px) {
  .about {
    padding-top: 5.5rem; /* 88px from the green bar, including the 47px badge hang */
    padding-bottom: 5.8125rem; /* 93px */
  }

  .about__inner {
    grid-template-columns: auto 1fr;
    column-gap: 3.5rem;
    align-items: start;
  }

  .about__title {
    white-space: nowrap;
  }

  .about__copy p:not(.about__lead) {
    font-size: 1rem; /* 16px on mid; 20px from 1440 so Source Sans 3 wraps match the mockup */
  }
}

@media (min-width: 1440px) {
  .about__copy p:not(.about__lead) {
    font-size: 1.25rem; /* 20px Source Sans 3 Regular — 860px column wraps match the mockup */
    line-height: 1.35; /* 27px — mockup body pitch */
  }
}

/* ---------- Our Mission ---------- */
.mission {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 2.5rem var(--gutter) 3rem;
  background-color: var(--color-ink);
  color: var(--color-white);
}

.mission__media img {
  width: 100%;
  height: auto;
  aspect-ratio: 710 / 425;
  object-fit: cover;
  object-position: 15% 28%;
  border-radius: 1.25rem;
}

.mission__kicker {
  margin: 0 0 1.25rem;
  color: var(--color-coral);
  font-weight: 800;
  font-size: 1.03125rem; /* 16.5px Archivo ExtraBold — “OUR MISSION” ink width 117px */
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.mission__support {
  margin: 0 0 1.5rem;
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  max-width: 28rem;
}

.mission__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 4.5vw, 6.0625rem); /* up to 97px Archivo ExtraBold */
  line-height: 1.03; /* 100px at the 97px cap — mockup line pitch */
  letter-spacing: 0;
}

.mission__accent {
  color: var(--color-coral);
}

@media (min-width: 1024px) {
  .mission {
    display: grid;
    grid-template-columns: min(44.375rem, 37vw) 1fr;
    align-items: stretch;
    gap: 0;
    padding: 4.5rem 0 3.8125rem; /* 72px top; 61px bottom is the photo hang over white */
    background-color: transparent;
    position: relative;
    overflow: visible;
  }

  .mission::before {
    content: "";
    position: absolute;
    inset: 0 0 3.8125rem 0;
    background-color: var(--color-ink);
    z-index: 0;
  }

  .mission__media,
  .mission__body {
    position: relative;
    z-index: 1;
  }

  .mission__media picture {
    display: block;
    width: 100%;
    height: calc(100% + 3.8125rem);
  }

  .mission__media img {
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: 15% 28%;
    border-radius: 0 2rem 2rem 0;
  }

  .mission__body {
    padding: 0 max(var(--gutter), calc((100% - var(--container)) / 2)) 6.125rem clamp(1.5rem, 4.7vw, 5.625rem);
  }

  .mission__kicker {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .mission__support {
    font-size: 1.5rem; /* 24px Source Sans 3 Regular — mockup support line widths */
    margin-bottom: 2.8125rem; /* 45px */
    max-width: none;
  }
}


/* ---------- Our Programs ---------- */
.programs {
  padding-top: 6.125rem; /* 98px from the hanging mission photo to the heading */
  padding-bottom: 6rem; /* ~95px before the next section */
  background-color: var(--color-white);
  color: var(--color-black);
  overflow: hidden; /* clip the peeking 4th card at the viewport edge */
}

.programs__top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem; /* room above the overlapping badges (~40px visual + badge hang) */
}

.programs__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); /* up to 68px Archivo ExtraBold */
  line-height: 1.06; /* ~72px at the 68px cap — two-line title pitch */
  letter-spacing: 0;
  color: var(--color-black);
  margin-bottom: 1.25rem; /* 20px; mockup ~37px from cap box to intro, optically closer with line box */
}

.programs__lead {
  font-weight: 400;
  font-size: 1.125rem; /* 18px on small screens */
  line-height: 1.55; /* ~31px */
  color: var(--color-black);
  max-width: 49rem; /* 784px — keep “youth” on line 1 at 24px Source Sans 3 */
}

.programs__controls {
  display: flex;
  gap: 1rem; /* 16px */
  margin-left: auto;
}

.programs__arrow {
  width: 6.5rem; /* 104px on small; 130px from 768 */
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: var(--radius-pill);
  background-color: #d9d9d9;
  color: var(--color-black);
  cursor: pointer;
}

.programs__arrow:hover {
  background-color: #c9c9c9;
}

.programs__arrow:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

.programs__carousel {
  /* Track starts at the same inset as .container; the right edge is the viewport. */
  padding-left: max(var(--gutter), calc((100% - var(--container)) / 2));
}

.programs__viewport {
  overflow: hidden;
  padding-top: 3.75rem; /* 60px — badge hang above the cards */
}

.programs {
  --programs-gap: 1rem;
  --programs-card: calc(100vw - 2 * var(--gutter) - 2.75rem); /* 1 card + peek of the next */
}

.programs__track {
    display: flex;
    align-items: stretch;
    gap: var(--programs-gap);
    list-style: none;
    margin: 0;
    padding: 0;
    will-change: transform;
    transition: transform 0.55s ease;
  }

.program-card {
  position: relative;
  flex: 0 0 var(--programs-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 26.875rem; /* grows with the tallest title; Learn more sits at the bottom */
  padding: 7.375rem 2.25rem 4.1875rem; /* 118px top (title under badge), 36px sides on small, 67px bottom */
  background-color: var(--color-black);
  color: var(--color-white);
  border-radius: 1.75rem; /* 28px */
  box-sizing: border-box;
}

.program-card__badge {
  position: absolute;
  top: -3.75rem; /* 60px above the card */
  left: 2.25rem;
  width: 7.5rem; /* 120px on small; 140px from 768 */
  height: 7.5rem;
  margin: 0;
  padding: 0;
  pointer-events: none;
}

.program-card__badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.program-card__title {
  font-weight: 800;
  font-size: 1.5rem; /* 24px mobile; 27px from 768 */
  line-height: 1.33;
  color: var(--color-white);
  margin: 0 0 1.25rem;
}

.program-card__text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.625; /* 26px at 16px */
  color: #c3c3c3;
  margin: 0;
}

.program-card__link {
  margin-top: auto;
  padding-top: 1.875rem; /* 30px above the link */
  color: var(--color-coral);
  font-weight: 400;
  font-size: 1.25rem; /* 20px */
  line-height: 1.2;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.program-card__link:hover {
  color: var(--color-coral-hover);
}

.program-card__link:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .programs__top {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 1.5rem;
  }

  .programs__title {
    margin-bottom: 1.15rem;
  }

  .programs__lead {
    font-size: 1.5rem; /* 24px Source Sans 3 Regular — intro ink 769/572 */
    line-height: 1.333; /* 32px */
  }

  .programs__controls {
    flex-shrink: 0;
    margin-bottom: 0.15rem; /* optically center the 50px pills on the 2-line lead */
  }

  .programs__arrow {
    width: 8.125rem; /* 130px */
    height: 3.125rem; /* 50px */
  }

  .programs {
    --programs-gap: 1.5rem;
    --programs-card: calc((min(var(--container), 100vw - 2 * var(--gutter)) - var(--programs-gap) - 1.5rem) / 2);
  }

  .program-card {
    padding-left: 3.25rem; /* 52px */
    padding-right: 3.25rem;
  }

  .program-card__badge {
    left: 3.25rem;
    width: 8.75rem; /* 140px */
    height: 8.75rem;
  }

  .program-card__title {
    font-size: 1.75rem; /* 28px Archivo ExtraBold */
  }
}

@media (min-width: 1024px) {
  /* 3 cards fill the 1400px column (3×450 + 2×25); the 4th peeks past the column and is clipped at the viewport. */
  .programs {
    --programs-gap: 1.5625rem; /* 25px */
    --programs-card: calc((min(var(--container), 100vw - 2 * var(--gutter)) - 2 * var(--programs-gap)) / 3);
  }
}



/* ---------- Community Initiatives ---------- */
.initiatives {
  position: relative;
  background-color: var(--color-ink);
  color: var(--color-white);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.initiatives__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 0;
}

.initiatives__skyline {
  display: none;
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* left 621/1400, width 637/1400 of the 1400px column */
  left: calc(621 / 1400 * 100%);
  width: calc(637 / 1400 * 100%);
  top: -1.65rem; /* peak sits ~26–37px into the section padding */
  height: auto;
}

.initiatives__intro,
.initiative__media,
.initiative__copy {
  position: relative;
  z-index: 1;
}

.initiative {
  display: contents;
}

.initiatives__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); /* up to 68px Archivo ExtraBold */
  line-height: 1.06; /* ~72px at the 68px cap — two-line title pitch */
  letter-spacing: 0;
  color: var(--color-white);
  margin: 0 0 1.75rem;
}

.initiatives__lead {
  font-weight: 400;
  font-size: 1.125rem;
  line-height: 1.55;
  color: #d0d0d0;
  margin: 0 0 2.5rem;
}

.initiative--walks {
  /* stacked source order already walks then psrt */
}

.initiative__media {
  margin: 0 0 2rem;
}

.initiative__media picture,
.initiative__media img {
  display: block;
  width: 100%;
  height: auto;
}

.initiative__media--walks img {
  border-radius: 1.5rem 1.5rem 5rem 1.5rem;
}

.initiative__media--psrt img {
  border-radius: 1.5rem 5rem 1.5rem 1.5rem;
}

.initiative__copy {
  margin: 0 0 2.75rem;
}

.initiative--psrt .initiative__copy {
  margin-bottom: 0;
}

.initiative__title {
  font-weight: 800;
  font-size: 1.5rem; /* 24px on small; 27px from 768 */
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-white);
  margin: 0 0 1.25rem;
}

.initiative__text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.625; /* 26px at 16px */
  color: var(--color-white);
  margin: 0 0 1.75rem;
}

.initiative__link {
  display: inline-block;
  font-weight: 400;
  font-size: 1.125rem; /* 18px on small; 20px from 768 */
  line-height: 1.4;
  color: var(--color-coral);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.initiative__link:hover {
  color: var(--color-coral-hover);
}

.initiative__link:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}

@media (min-width: 768px) {
  .initiatives {
    padding-top: 5.5rem;
    padding-bottom: 6rem;
  }

  .initiatives__inner {
    grid-template-columns: 1fr 1fr;
    column-gap: 1.75rem;
  }

  .initiatives__skyline {
    display: none; /* intro is still too tall at 768 and the line would cross the copy */
  }

  .initiatives__intro {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 4.5rem; /* space above the left photo; right photo spans and aligns to the end */
  }

  .initiatives__lead {
    font-size: 1.5rem; /* 24px Source Sans 3 Regular — mockup lead wraps */
    line-height: 1.55;
    margin-bottom: 0;
  }

  .initiative--walks .initiative__media {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
  }

  .initiative--psrt .initiative__media {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: end;
    margin: 0;
  }

  .initiative--walks .initiative__copy,
  .initiative--psrt .initiative__copy {
    grid-row: 3;
    margin: 4.0625rem 0 0; /* 65px photo-to-title */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    align-self: stretch;
  }

  .initiative__link {
    margin-top: auto;
  }

  .initiative--walks .initiative__copy {
    grid-column: 1;
  }

  .initiative--psrt .initiative__copy {
    grid-column: 2;
  }

  .initiative__media--walks img {
    border-radius: 1.5rem 1.5rem 6.75rem 1.5rem;
  }

  .initiative__media--psrt img {
    border-radius: 1.5rem 6.75rem 1.5rem 1.5rem;
  }

  .initiative__title {
    font-size: 1.75rem; /* 28px Archivo ExtraBold */
    margin-bottom: 1.75rem; /* ~28px line box + 45px target gap, optically closer */
  }

  .initiative__text {
    font-size: 1.0625rem; /* 17px Regular */
    line-height: 1.53; /* ~26px */
    margin-bottom: 2.15rem; /* ~55px body-to-link after line box */
  }

  .initiative__link {
    font-size: 1.25rem; /* 20px Regular */
  }
}

@media (min-width: 1024px) {
  .initiatives {
    padding-top: 6.4375rem; /* 103px */
    padding-bottom: 7.5rem; /* 120px */
  }

  .initiatives__skyline {
    display: block;
  }

  .initiatives__inner {
    column-gap: 3.125rem; /* 50px — mockup gap in the 1400px column */
  }

  .initiatives__title {
    margin-bottom: 3.25rem; /* ~52px + line-box leftover ≈ 77px ink-to-ink */
  }

  .initiatives__intro {
    margin-bottom: 6.25rem; /* ~100px — scaled 116px intro-to-left-photo gap */
  }

  .initiatives__skyline {
    top: -2.3rem;
  }
}

@media (min-width: 1440px) {
  .initiatives__inner {
    column-gap: 3.125rem; /* 50px */
  }
}


/* ---------- Our Community Impact ---------- */
.impact {
  background-color: var(--color-white);
  color: var(--color-black);
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.impact__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); /* up to 68px Archivo ExtraBold */
  line-height: 1.06; /* ~72px at the 68px cap — two-line title pitch */
  letter-spacing: 0;
  color: var(--color-black);
  margin: 0 0 1.5rem;
}

.impact__lead {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.5;
  color: #5a6265;
  margin: 0 0 2.5rem;
}

.impact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.impact__card {
  display: grid;
  grid-template-rows: minmax(2.75rem, auto) auto auto 1fr;
  align-content: start;
  min-height: 13.75rem; /* 220px bottom-row cards */
  padding: 1.75rem 1.5rem 1.5rem;
  border: 1px solid #5d6466;
  border-radius: 1.75rem; /* 28px */
  background-color: var(--color-white);
  color: var(--color-black);
}

.impact__card--hri {
  grid-template-rows: auto auto auto 1fr;
  min-height: 15rem;
  padding: 1.75rem 1.75rem 1.5rem;
  border: 0;
  background-color: var(--color-coral);
  color: var(--color-white);
}

.impact__label {
  font-weight: 500;
  font-size: 1rem;
  line-height: 1.35;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
  color: inherit;
}

.impact__card--hri .impact__label {
  font-size: 1.125rem; /* 18–20px */
  margin-bottom: 0.65rem;
}

.impact__stat {
  font-weight: 800;
  font-size: 3.5rem; /* 56px on small; 64px from 768 */
  line-height: 0.95;
  letter-spacing: -0.03em;
  margin: 0 0 0.7rem;
  color: var(--color-coral);
}

.impact__card--hri .impact__stat {
  font-size: clamp(4.5rem, 2rem + 18vw, 7.625rem); /* up to 122px Archivo ExtraBold — “1,018” 344px vs 342px */
  letter-spacing: 0;
  color: var(--color-white);
  margin: 0.35rem 0 0.85rem;
}

.impact__desc {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.35;
  margin: 0;
  color: inherit;
}

.impact__card--hri .impact__desc {
  font-size: 1.125rem;
}

.impact__cta {
  /* 235×58 in the mockup; .btn--lg already supplies the 58px height */
  min-width: 14.6875rem;
  padding-left: 2rem;
  padding-right: 2rem;
  font-weight: 700;
}

@media (min-width: 768px) {
  .impact {
    padding-top: 5.5rem;
    padding-bottom: 5rem;
  }

  .impact__lead {
    font-size: 1.125rem; /* 18px Regular */
    margin-bottom: 3.5rem; /* ~69px to the grid after line box */
  }

  .impact__grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem; /* 24px */
    margin-bottom: 3.75rem; /* ~60px to the button */
  }

  .impact__card--hri {
    grid-column: 1 / -1;
    min-height: 15rem;
  }

  .impact__stat {
    font-size: 4rem; /* 64px ExtraBold */
  }

  .impact__title {
    margin-bottom: 2.25rem;
  }
}

@media (min-width: 1024px) {
  .impact {
    padding-top: 6.25rem; /* 100px */
    padding-bottom: 5.125rem; /* 82px */
  }

  .impact__grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
  }

  .impact__card--hri {
    grid-column: span 2;
    min-height: 15rem; /* 240px — row 1 stretches Safe Passage and WED to match */
  }

  .impact__card {
    padding: 1.75rem 2.0625rem 1.5rem; /* 33px horizontal, as in the mockup */
  }

  .impact__card--hri {
    min-height: 15rem;
    padding: 2rem 2.125rem 1.5rem;
  }
}

@media (min-width: 1440px) {
  .impact__card:not(.impact__card--hri) {
    /* top-row non-HRI cards sit in row 1 with HRI (240px); bottom row 220px.
       Grid rows are implicit, so min-height 220 is the floor; row 1 will grow to HRI. */
    min-height: 13.75rem;
  }
}


/* ---------- Help Build a Safer Newark ---------- */
.help {
  position: relative;
  background-color: var(--color-coral);
  color: var(--color-white);
  padding-top: 4.5rem;
  padding-bottom: 4rem;
  margin-bottom: 2.5rem; /* room for the photo hanging into the next (white) band */
  overflow: visible;
}

.help__clip-src {
  position: absolute;
  width: 0;
  height: 0;
}

.help__inner {
  position: relative;
  z-index: 1;
}

.help__copy {
  max-width: none;
}

.help__title,
.help__lead {
  max-width: 36rem; /* ~576px — mockup body lines are 551–557px at 20px */
}

.help__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); /* up to 68px Archivo ExtraBold */
  line-height: 1.06; /* ~72px at the 68px cap — two-line title pitch */
  letter-spacing: 0;
  color: var(--color-white);
  margin: 0 0 1.75rem;
}

.help__lead {
  font-weight: 400;
  font-size: 1.125rem; /* 18px; 20px from 768 */
  line-height: 1.55;
  color: var(--color-white);
  margin: 0 0 2rem;
}

.help__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.help__donate {
  background-color: var(--color-black);
  color: var(--color-white);
  min-width: 12.4375rem; /* 199px — matches the mockup pill */
  padding-left: 1.75rem;
  padding-right: 1.75rem;
  font-weight: 500;
}

.help__donate:hover,
.help__donate:focus-visible {
  background-color: #1a1a1a;
}

.help__note {
  font-weight: 400;
  font-style: italic;
  font-size: 0.875rem; /* 14px */
  line-height: 1.55;
  color: var(--color-white);
  margin: 0;
  max-width: 40rem;
  flex-shrink: 0;
}

.help__ein {
  white-space: nowrap;
}

.help__break {
  display: none;
}

.help__media {
  position: relative;
  z-index: 0;
  width: 100%;
  margin-top: 2rem; height: 62vw;
}

.help__media picture,
.help__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 15% 50%;
 
}

@media (min-width: 768px) {
  .help {
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
    margin-bottom: 3rem;
  }

  .help__lead {
    font-size: 1.5rem; /* 24px Source Sans 3 Regular — mockup lead wraps */
    line-height: 1.333;
    margin-bottom: 2.5rem; /* ~61px after line box, close to the mockup */
  }

  .help__title {
    margin-bottom: 2.5rem; /* ~69px ink-to-ink after the line box */
  }

  .help__media {
    height: 62vw;
  }
}

@media (min-width: 1350px) {
  .help {
    padding-top: 6.0625rem; /* 97px */
    padding-bottom: 5.6875rem; /* 91px under the button */
    min-height: 35.5625rem; /* 569px coral band */
    margin-bottom: 3.0625rem; /* 49px hang */
  }

  .help__media {
    position: absolute;
    top: 0;
    right: 0;
    bottom: auto;
    width: 53.75%; /* 1032/1920 — bleeds to the viewport edge */
    height: calc(100% + 3.0625rem); /* ~49px hang below the coral band */
    margin-top: 0;
  }

  .help__title,
  .help__lead {
    max-width: 38rem; /* 608px — first mockup line is 557px; “community-based” must stay on line 2 */
  }

  .help__break {
    display: inline;
  }

  /* Stacked under the button below 1440; keep the note left of the photo box. */
  .help__note {
    max-width: min(38rem, calc(46.25vw - var(--gutter) - 2.5rem));
  }
  
.help__media picture,
.help__media img {
    clip-path: url(#help-photo-clip);
}
}

@media (min-width: 1440px) {
  .help__actions {
    flex-direction: row;
    align-items: center;
    gap: 2.75rem; /* ~44px */
  }

  /* Two mockup lines (~485px). At 1440/1920 this ends left of the photo curve. */
  .help__note {
    max-width: 33.5rem; /* ~536px — both italic 14px note lines, left of the curve at 1440 and 1920 */
  }
}


/* ---------- Footer (Contact & Stay Connected, coming-soon bar, legal) ---------- */
/* Reuse this entire .footer block 1:1 on coming-soon.html */
.footer {
  color: var(--color-black);
  background-color: var(--color-white);
}

.footer__contact {
  /* 43px + the Help band’s 49px hang = 92px from the coral edge to the heading, as in the mockup */
  padding-top: 2.6875rem;
  padding-bottom: 3.75rem; /* ~60–74px below the icons; 74px in the mockup */
}

.footer__title {
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.3vw, 4.90625rem); /* up to 78.5px Archivo ExtraBold (3.3vw reaches the cap at 1920) */
  line-height: 1.15;
  letter-spacing: 0;
  color: var(--color-black);
  margin: 0;
}

.footer__rule {
  border: 0;
  border-top: 2px solid var(--color-black);
  margin: 3rem 0 3rem; /* ~48px heading-to-rule and rule-to-body, as measured */
}

.footer__grid {
  display: flex; flex-wrap: wrap;
  gap: 2em;
}
.footer__grid div { flex: 1; width: fit-content; }

.footer__org,
.footer__social-label {
  font-weight: 700;
  font-size: 1.0625rem; /* 17px */
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.footer__address,
.footer__reach p {
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 0.75rem;
}

.footer p:last-child {
  margin: 0;
}

.footer__link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--color-coral);
}

.footer__social-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: .7em; /* 14px — 60px centers minus 46px icons */
  margin: 0.875rem 0 0; /* + label’s 0.75rem ≈ 26px, as in the mockup */
}

.footer__social-link {
  display: block;
  line-height: 0;
  border-radius: 50%;
  transition: opacity var(--transition);
}

.footer__social-link img {
  width: 2.7rem; /* 46px */
  height: 2.7rem;
}

.footer__social-link:hover,
.footer__social-link:focus-visible {
  opacity: 0.8;
}

.footer__cta {
  background-color: var(--color-green);
  color: var(--color-white);
  padding-top: 3rem; /* 48px — two 24px lines + this ≈ the mockup’s 162px band */
  padding-bottom: 3rem;
}

.footer__cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.footer__cta-text {
  font-weight: 600;
  font-size: clamp(1.125rem, 0.9rem + 1.1vw, 1.90625rem); /* up to 30.5px Source Sans 3 Semibold */
  line-height: 1.31; /* ~40px */
  margin: 0;
  max-width: 54rem;
}

.footer__break {
  display: none;
}

.footer__cta-btn {
  background-color: var(--color-black);
  color: var(--color-white);
  flex-shrink: 0;
}

.footer__cta-btn:hover,
.footer__cta-btn:focus-visible {
  background-color: #1a1a1a;
}

.footer__legal {
  background-color: var(--color-black);
  color: #a9a39b;
  padding-top: 2.625rem; /* 104px bar, 14px type, vertically centered */
  padding-bottom: 2.625rem;
}

.footer__copy {
  font-weight: 400;
  font-size: 1rem; /* 16px Source Sans 3 Regular — legal ink width 645px vs 644px */
  line-height: 1.5;
  margin: 0;
}

.footer__ein {
  white-space: nowrap;
}

@media (min-width: 768px) {
  .footer__contact {
    padding-top: 2.6875rem;
    padding-bottom: 4rem;
  }

  .footer__rule {
    margin: 3rem 0 2.875rem;
  }
}



@media (min-width: 1440px) {


  .footer__social {
    grid-column: auto;
  }

  .footer__break {
    display: inline;
  }

  .footer__cta-inner {
    /* Align the button with the third contact column, not the container’s right edge */
    display: grid;
    grid-template-columns: 476fr 475fr 449fr;
    column-gap: 0;
    align-items: center;
    justify-content: initial;
  }

  .footer__cta-text {
    grid-column: 1 / 3;
    padding-right: 1.5rem;
    max-width: none; /* 54rem + 24px padding was 840px inside; 30.5px first line is 843px */
  }

  .footer__cta-btn {
    justify-self: start; /* don’t stretch to the 384px column */
  }
}

/* ---------- Mobile menu body lock ---------- */
body.is-nav-open {
  overflow: hidden;
}


/* ---------- Coming Soon ---------- */
.coming-hero {
  position: relative;
  z-index: 0;
  display: grid;
  grid-template-columns: 1fr;
  margin-top: calc(-1 * var(--header-height));
  height: 15rem; /* 240px on small screens */
  overflow: hidden;
  background-color: var(--color-hero-deep);
  isolation: isolate;
}

.coming-hero__bg,
.coming-hero__bg img {
  grid-column: 1;
  grid-row: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.coming-hero::after {
  content: "";
  grid-column: 1;
  grid-row: 1;
  background: linear-gradient(
    180deg,
    rgba(12, 16, 24, 0.72) 0%,
    rgba(12, 16, 24, 0.6) 100%
  );
  pointer-events: none;
  z-index: 1;
}

@media (min-width: 768px) {
  .coming-hero {
    height: 22.5rem; /* 360px */
  }
}

@media (min-width: 1024px) {
  .coming-hero {
    height: 25rem; /* 400px */
  }
}

.coming-page {
  background-color: var(--color-white);
  color: var(--color-black);
  padding-top: 4rem;
  padding-bottom: 4.5rem;
}

.coming-page__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.coming-page__title {
  margin: 0 0 1.25rem;
  font-weight: 800;
  font-size: clamp(2rem, 1rem + 3.2vw, 4.25rem); /* same scale as section titles, up to 68px */
  line-height: 1.15;
  color: var(--color-black);
}

.coming-page__lead {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(1.125rem, 1rem + 0.5vw, 1.5rem);
  line-height: 1.4;
  color: var(--color-ink);
}

@media (min-width: 1024px) {
  .coming-page {
    padding-top: 6rem;
    padding-bottom: 6.5rem;
  }
}











@media (max-width: 1300px) {
    .footer__grid .footer__social { width: 100%; flex: none; }
}

@media (max-width: 850px) {
    .footer__grid div { width: 100%; flex: none; }
}