/* =============================================
   NEWBURGH CREATES — Shared Stylesheet
   Palette: Coral · Blue · Orange — light, energetic, youth-forward
   ============================================= */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  color: #141414;
  background: #ffffff;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

:root {
  --pink:   #FF3D61;   /* hot coral-red — bold, high energy */
  --green:  #3788FF;   /* electric blue — replaces mint green */
  --yellow: #FF6B35;   /* vivid orange — replaces electric yellow */
  --dark:   #1a1a2e;   /* reserved for footer only */
  --text:   #1a1a2e;   /* deep ink — readable, not harsh black */
  --muted:  #6b7280;   /* neutral mid-gray */
  --light:  #F8F9FF;   /* barely-blue off-white — section backgrounds */
  --border: #E4E7F0;   /* soft blue-gray border */
}

/* ---- LAYOUT ---- */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section { padding: 5.5rem 0; }
.section--light { background: var(--light); }
.section--dark  {
  background: linear-gradient(135deg, #FF3D61 0%, #FF6B35 55%, #FFB347 100%);
  color: #fff;
}
.section--dark p { color: rgba(255,255,255,0.88); }

/* ---- TYPE ---- */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: 1rem; }
h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
p  { color: var(--muted); line-height: 1.75; }

.eyebrow {
  display: block;
  font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--pink); margin-bottom: 0.75rem;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-block; padding: 0.8rem 1.9rem;
  border-radius: 4px; font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em; border: 2px solid transparent;
  transition: all 0.18s; cursor: pointer;
}
.btn-primary { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn-primary:hover { background: #e5002a; border-color: #e5002a; }
.btn-green { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: #1a6fe8; border-color: #1a6fe8; }
.btn-outline-white { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-outline-white:hover { border-color: #fff; }
.btn-outline { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: #aaa; }
.btn-outline-pink { background: transparent; color: var(--pink); border-color: var(--pink); }
.btn-outline-pink:hover { background: var(--pink); color: #fff; }

/* ---- NAV ---- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}
.nav__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 96px;
}
.nav__logo { display: flex; align-items: center; gap: 0.65rem; }
.nav__sub  { font-size: 0.58rem; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; }
.nav__links { display: flex; align-items: center; gap: 0.15rem; list-style: none; }
.nav__links a {
  color: var(--muted); font-size: 0.87rem; font-weight: 600;
  padding: 0.4rem 0.85rem; border-radius: 3px; transition: color 0.15s;
}
.nav__links a:hover,
.nav__links a.active { color: var(--text); }
.nav__links .nav-cta a {
  background: var(--pink); color: #fff !important;
  padding: 0.4rem 1.1rem; font-weight: 700; border-radius: 3px;
}
.nav__links .nav-cta a:hover { background: #e5002a; }
.nav__hamburger {
  display: none; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav__hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); margin: 5px 0; border-radius: 2px;
}

/* ---- PAGE HEADER (inner pages) ---- */
.page-header {
  background: #fff;
  border-top: 5px solid transparent;
  border-image: linear-gradient(90deg, #FF3D61, #FF6B35, #FFB347, #3788FF) 1;
  padding: 3.5rem 0 3rem;
  border-bottom: 1px solid var(--border);
}
.page-header__label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--pink);
  margin-bottom: 0.85rem;
}
.page-header__label::before {
  content: ''; display: block; width: 18px; height: 2px;
  background: linear-gradient(90deg, #FF3D61, #FF6B35);
}
.page-header h1 { color: var(--text); letter-spacing: -0.02em; }
.page-header p  { color: var(--muted); max-width: 520px; margin-top: 0.75rem; font-size: 1.05rem; }

/* ---- PAGE HEADER — CINEMATIC VARIANT ---- */
.page-header--cinematic {
  position: relative;
  height: 480px;
  overflow: hidden;
  background: var(--dark);
  border-top: none;
  border-image: none;
  border-bottom: none;
  padding: 0;
}
.page-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  will-change: transform;
}
.page-header__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(26,26,46,0.10) 0%, rgba(26,26,46,0.88) 100%),
    linear-gradient(135deg, rgba(255,61,97,0.58) 0%, rgba(26,26,46,0.20) 50%, rgba(55,136,255,0.54) 100%);
}
.page-header--cinematic .page-header__content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 3.5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: var(--container-pad, 2rem);
  padding-right: var(--container-pad, 2rem);
}
.page-header--cinematic .page-header__label {
  color: var(--pink);
}
.page-header--cinematic .page-header__label::before {
  background: linear-gradient(90deg, #FF3D61, #FF6B35);
}
.page-header--cinematic h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-header--cinematic p {
  color: rgba(255, 255, 255, 0.78);
  margin-top: 0.75rem;
  font-size: 1.05rem;
  max-width: 520px;
}
@media (max-width: 640px) {
  .page-header--cinematic { height: 380px; }
  .page-header--cinematic .page-header__content { padding-bottom: 2.5rem; }
  .page-header--cinematic h1 { font-size: 2rem; }
}

/* ---- HERO (home) ---- */
.hero { background: #1a1a2e; padding: 7rem 0 6rem; }
.hero__inner { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.hero__label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.38); margin-bottom: 1.5rem;
}
.hero__label::before { content: ''; display: block; width: 18px; height: 2px; background: var(--pink); }
.hero__title {
  font-size: clamp(2.8rem, 6vw, 4.5rem); font-weight: 900; color: #fff;
  line-height: 1.05; margin-bottom: 1.5rem; letter-spacing: -0.025em;
}
.hero__title em { font-style: normal; color: var(--pink); }
.hero__sub {
  font-size: 1.1rem; color: rgba(255,255,255,0.5);
  max-width: 500px; line-height: 1.7; margin-bottom: 2.5rem;
}
.hero__btns { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 4rem; }
.hero__stats {
  display: flex; gap: 3.5rem; flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08); padding-top: 2.5rem;
}
.stat__num { font-size: 2.1rem; font-weight: 900; color: #fff; line-height: 1; margin-bottom: 0.2rem; }
.stat__num span { color: #fff; }
.stat__label { font-size: 0.78rem; color: rgba(255,255,255,0.75); letter-spacing: 0.03em; }

/* ---- MISSION ---- */
.mission__quote {
  font-size: clamp(1.25rem, 2.2vw, 1.7rem); font-weight: 700; color: var(--text);
  line-height: 1.5; padding-left: 1.5rem; border-left: 3px solid var(--pink); max-width: 700px;
}
.mission__meta { margin-top: 1.25rem; padding-left: 1.5rem; font-size: 0.8rem; color: var(--muted); }

/* ---- PROGRAM CARDS ---- */
.programs-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.program-card {
  border: 1px solid var(--border); border-radius: 8px; overflow: hidden;
  background: #fff; transition: box-shadow 0.2s;
}
.program-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.program-card__img {
  width: 100%; aspect-ratio: 600 / 380; overflow: hidden;
}
.program-card__img img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.4s ease;
}
.program-card:hover .program-card__img img { transform: scale(1.04); }
.program-card__body { padding: 1.75rem; }
.program-card__dot { width: 7px; height: 7px; border-radius: 50%; margin-bottom: 1.1rem; }
.program-card h3 { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: 0.45rem; }
.program-card p  { font-size: 0.86rem; }
.program-card__tag {
  display: inline-block; margin-top: 1rem;
  font-size: 0.67rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted);
}

/* ---- ABOUT / INFO TABLE ---- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.about__info { border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; }
.about__row {
  display: flex; flex-direction: column; gap: 0.1rem;
  padding: 0.8rem 0; border-bottom: 1px solid var(--border);
}
.about__row:last-child { border-bottom: none; padding-bottom: 0; }
.about__row:first-child { padding-top: 0; }
.about__label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.about__val   { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ---- SUPPORT GRID ---- */
.support-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.support-item { padding: 1.5rem; border-radius: 8px; background: #fff; border: 1px solid var(--border); }
.support-item__icon { font-size: 1.3rem; margin-bottom: 0.7rem; }
.support-item h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.support-item p  { font-size: 0.84rem; }

/* ---- DONATE / GIVING TUESDAY ---- */
.donate__intro { max-width: 560px; margin-bottom: 3rem; }
.donate-tiers {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1.1rem; margin-bottom: 2.5rem;
}
.donate-tier { border: 1px solid var(--border); border-radius: 8px; padding: 1.6rem; }
.donate-tier--featured { border-color: var(--pink); border-width: 2px; }
.donate-tier__amt { font-size: 1.9rem; font-weight: 900; color: var(--text); line-height: 1; margin-bottom: 0.3rem; }
.donate-tier--featured .donate-tier__amt { color: var(--pink); }
.donate-tier__name { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.7rem; }
.donate-tier p { font-size: 0.84rem; }

.gt-banner {
  border: 2px solid var(--green); border-radius: 10px;
  padding: 2.5rem; margin-bottom: 3rem; background: #eef4ff;
}
.gt-banner h2 { color: var(--text); }
.gt-banner p  { color: var(--muted); }

.stock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; margin-top: 2rem; }
.stock-info  { border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; }
.stock-info__row { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.stock-info__row:last-child { border-bottom: none; }
.stock-info__label { font-size: 0.67rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.1rem; }
.stock-info__val   { font-size: 0.9rem; font-weight: 600; color: var(--text); }

/* ---- TEAM ---- */
.team-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem; margin-top: 3rem;
}
.team-card { border: 1px solid var(--border); border-radius: 8px; padding: 1.75rem; }
.team-card__name  { font-weight: 800; font-size: 1.05rem; color: var(--text); margin-bottom: 0.1rem; }
.team-card__title { font-size: 0.78rem; color: var(--pink); font-weight: 600; letter-spacing: 0.02em; margin-bottom: 0.7rem; }
.team-card p { font-size: 0.86rem; }

/* ---- BOARD OF DIRECTORS ---- */
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 900px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .board-grid { grid-template-columns: 1fr; } }

.board-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.board-card__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  color: var(--muted);
  margin-bottom: 1rem;
  overflow: hidden;
  flex-shrink: 0;
}
.board-card__avatar img {
  width: 100%; height: 100%; object-fit: cover;
}
.board-card__name  { font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 0.15rem; }
.board-card__role  { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--pink); margin-bottom: 0.85rem; }
.board-card__bio   { font-size: 0.84rem; color: var(--muted); line-height: 1.65; }

/* ---- CONTACT ---- */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }
.contact__details { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.contact__detail { font-size: 0.88rem; color: var(--muted); }
.contact__detail strong {
  display: block; font-size: 0.67rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.15rem;
}
.contact__detail a { color: var(--text); font-weight: 500; }
.contact__detail a:hover { color: var(--pink); }

/* ---- FORMS ---- */
.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 0.4rem;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%; padding: 0.7rem 0.9rem;
  border: 1px solid var(--border); border-radius: 4px;
  font-size: 0.9rem; font-family: inherit; color: var(--text);
  background: #fff; transition: border-color 0.15s; appearance: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { outline: none; border-color: var(--pink); }
.form-group textarea { min-height: 110px; resize: vertical; }

/* ---- FUNDER CARDS (foundation page) ---- */
.funders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 2rem;
}
.funder-card {
  border: 1.5px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: box-shadow 0.2s;
}
.funder-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }
.funder-card a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: var(--light);
  border-bottom: 1px solid var(--border);
  min-height: 110px;
}
.funder-card img { height: 56px; width: auto; object-fit: contain; }
.funder-card__body { padding: 1.5rem; }
.funder-card__name { font-weight: 700; font-size: 0.95rem; color: var(--text); margin-bottom: 0.5rem; }
.funder-card__body p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---- FUNDERS STRIP ---- */
.funders-strip {
  background: #fff;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
  text-align: center;
}
.funders-strip__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
}
.funders-strip__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 3rem;
}
.funders-strip__logos a {
  display: flex;
  align-items: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.funders-strip__logos a:hover { opacity: 1; }
.funders-strip__logos img {
  height: 56px;
  width: auto;
  object-fit: contain;
}

/* ---- FOOTER ---- */
.footer { background: var(--dark); padding: 3rem 0; }
.footer__inner {
  max-width: 1100px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1.5rem;
}
.footer__logo { display: flex; align-items: center; gap: 0.6rem; }
.footer__sub  { font-size: 0.65rem; color: rgba(255,255,255,0.28); }
.footer__links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer__links a { font-size: 0.82rem; color: rgba(255,255,255,0.38); transition: color 0.15s; }
.footer__links a:hover { color: rgba(255,255,255,0.7); }
.footer__copy { font-size: 0.75rem; color: rgba(255,255,255,0.28); }

/* ---- UTILITY ---- */
.mt-sm { margin-top: 1rem; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3rem; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--border); padding: 1rem; gap: 0.2rem;
    z-index: 99;
  }
  .nav__hamburger { display: block; }
  .about__grid,
  .contact__grid,
  .stock-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__stats { gap: 2rem; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__links { justify-content: center; }
  .section { padding: 3.5rem 0; }
}

/* =============================================
   SCROLL REVEAL + PARALLAX (nc-animations.js)
   ============================================= */

/* Base state — hidden, shifted down */
.nc-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* Visible state — JS adds this class via IntersectionObserver */
.nc-reveal.nc-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced-motion: skip the translate, keep the fade */
@media (prefers-reduced-motion: reduce) {
  .nc-reveal {
    transform: none;
    transition: opacity 0.3s ease;
  }
}

/* Photo-break: extra scale set by JS, overflow already hidden on parent */
.photo-break__img {
  will-change: transform;
}
