:root {
  --primary: #b01217;
  --primary-dark: #8f0e13;
  --primary-soft: #fdf0f1;
  --accent: #111827;
  --accent-2: #374151;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --shadow: 0 18px 45px rgba(17, 24, 39, 0.08);
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
  --radius: 22px;
  --radius-sm: 14px;
  --container: 1180px;
  --nav-height: 84px;
  --transition: 240ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #fff 0%, #fbfbfc 100%);
  line-height: 1.65;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-first-portion {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: var(--transition);
  padding: 0.6rem;
}

.nav-first-portion.is-scrolled {
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.05);
  border-bottom: 1px solid rgba(200, 200, 200, 0.92);
}

.navbar {
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand-mark {
  width: 180px;
  height: 75px;
  /* border-radius: 16px; */
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.08em;
  padding: 0 0.5rem 0 0.5rem;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong,
.brand-copy span {
  display: block;
}

.brand-copy strong {
  font-size: 0.97rem;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.84rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  list-style: none;
  padding: 0.5rem 0 0.5rem 0;
  margin: 0;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--accent-2);
  font-weight: 600;
  font-size: 0.96rem;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.8rem;
  padding-bottom: 0.5rem;
}

.nav-all {
  display: flex;
}

.menu-toggle {
  display: none;
  border: 0;
  background: var(--surface);
  border-radius: 14px;
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  content: "";
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--accent);
  transition: var(--transition);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.35rem;
  font-weight: 700;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #d61f26 100%);
  color: #fff;
  box-shadow: 0 14px 32px rgba(176, 18, 23, 0.22);
}

.btn-primary:hover {
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(17, 24, 39, 0.09);
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  border-color: rgba(176, 18, 23, 0.18);
  color: var(--primary);
}

.btn-ghost-light {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.hero,
.hero-banner {
  position: relative;

  overflow: hidden;
  isolation: isolate;
  background-color: #111827;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-level {
  top: -100px;
}

.hero {
  min-height: min(86vh, 820px);
  display: flex;
  align-items: center;
  padding: 7rem 0 6rem;
}

.page-hero {
  padding: 5.2rem 0 4rem;
}

.page-hero.compact {
  padding-bottom: 4rem;
}

.hero-home {
  background-image: url("../images/home-hero.png");
}

.hero-about {
  background-image: url("../images/about-story.jpg");
}

.hero-model {
  background-image: url("../images/model-ecosystem.png");
}

.hero-programs {
  background-image: url("../images/programs-hero.png");
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(10, 15, 28, 0.82) 0%,
      rgba(10, 15, 28, 0.64) 42%,
      rgba(10, 15, 28, 0.45) 100%
    ),
    linear-gradient(
      180deg,
      rgba(176, 18, 23, 0.12) 0%,
      rgba(10, 15, 28, 0.24) 100%
    );
  z-index: -1;
}

.hero-grid,
.two-column,
.story-grid,
.contact-grid,
.cta-grid,
.image-split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-grid-single,
.hero-banner-inner {
  grid-template-columns: minmax(0, 760px);
}

.hero-copy-on-image,
.hero-banner-copy {
  color: #fff;
}

.hero-copy-on-image h1,
.hero-banner-copy h1,
.hero-copy-on-image p,
.hero-banner-copy p {
  color: #fff;
}

.hero-copy-on-image p,
.hero-banner-copy p {
  max-width: 62ch;
  color: rgba(255, 255, 255, 0.84);
}

.hero-follow-up {
  padding-top: 0;
}

.hero-stats-lifted {
  margin-top: -5.5rem;
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.9rem;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-copy-on-image .eyebrow,
.hero-banner-copy .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--primary);
}

.hero-copy-on-image .eyebrow::before,
.hero-banner-copy .eyebrow::before {
  background: #fff;
}

.hero-copy h1 {
  font-size: 3rem;
  line-height: 1.05;
  margin: 1rem 0 1.2rem;
  color: #fff;
  letter-spacing: -0.04em;
}

/* .page-hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin: 1rem 0 1.2rem;
  color: #111827;
  letter-spacing: -0.04em;
} */

.header-text {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin: 1rem 0 1.2rem;
  color: #111827;
  letter-spacing: -0.04em;
}

.bg-header-text {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 1.05;
  margin: 1rem 0 1.2rem;
  color: #fff;
  letter-spacing: -0.04em;
}

.hero-copy p,
.page-hero p,
.lead {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 68ch;
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.hero-stats,
.metric-grid,
.cards-grid,
.three-grid,
.four-grid,
.program-grid,
.pathway-grid,
.partner-grid,
.involvement-grid,
.footer-grid {
  display: grid;
  gap: 1.2rem;
}

.hero-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric-grid,
.cards-grid,
.pathway-grid,
.program-grid,
.partner-grid,
.involvement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.three-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.four-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.footer-grid {
  grid-template-columns: 1.1fr 0.9fr 0.8fr 1fr;
}

.stat-card,
.panel,
.card,
.stage-card,
.program-card,
.partner-card,
.involvement-card,
.contact-card,
.image-card,
.callout,
.quote-card {
  background: var(--surface);
  border: 1px solid rgba(229, 231, 235, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.stat-card,
.card,
.stage-card,
.partner-card,
.involvement-card,
.contact-card,
.quote-card {
  padding: 1.4rem;
}

.panel,
.program-card,
.image-card,
.callout {
  padding: 1.6rem;
}

.panel-dark {
  background: linear-gradient(180deg, #171d2b 0%, #111827 100%);
  color: #f9fafb;
  border: 0;
}

.panel-dark p,
.panel-dark li,
.panel-dark .muted {
  color: rgba(249, 250, 251, 0.75);
}

.panel h3,
.card h3,
.stage-card h3,
.program-card h3,
.partner-card h3,
.involvement-card h3,
.contact-card h3,
.quote-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.2rem;
  line-height: 1.3;
  color: #111827;
}

.panel-dark h3,
.panel-dark h2 {
  color: #fff;
}

.kicker {
  color: var(--primary);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  margin-bottom: 0.6rem;
}

.section {
  padding: 4rem 0;
}

.section-header {
  max-width: 760px;
  margin-bottom: 1.8rem;
}

.section-header h2 {
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  color: #111827;
  letter-spacing: -0.03em;
}

.section-header p {
  color: var(--muted);
  font-size: 1.04rem;
}

.list,
.check-list,
.footer-links,
.mini-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li,
.check-list li,
.mini-list li {
  position: relative;
  padding-left: 1.35rem;
  margin: 0.55rem 0;
  color: rgb(190, 190, 190);
}

.list li::before,
.check-list li::before,
.mini-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: -0.03rem;
  color: var(--primary);
  font-size: 1.2rem;
  line-height: 1;
}

.check-list li::before {
  content: "✓";
  font-size: 1rem;
  top: 0.08rem;
}

.stage-number {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  margin-bottom: 1rem;
  font-weight: 800;
  color: var(--primary);
  background: var(--primary-soft);
}

.image-card {
  overflow: hidden;
}

.image-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  background: linear-gradient(
    135deg,
    rgba(176, 18, 23, 0.09),
    rgba(17, 24, 39, 0.08)
  );
  border: 1px dashed rgba(176, 18, 23, 0.3);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--accent-2);
  padding: 1.2rem;
}

.image-placeholder strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.caption {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.band {
  background: linear-gradient(180deg, #fff5f5 0%, #ffffff 100%);
  border-top: 1px solid #fee2e2;
  border-bottom: 1px solid #fee2e2;
}

.quote-card {
  border-left: 4px solid var(--primary);
}

.site-footer {
  margin-top: 4rem;
  padding: 4rem 0 2rem;
  background: #10141f;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer h3,
.site-footer h4 {
  color: #fff;
  margin-top: 0;
}

.site-footer p,
.site-footer li,
.site-footer a {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer a:hover {
  color: #fff;
}

.footer-links li {
  margin: 0.5rem 0;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.muted {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.large-screen-nav-actions {
  display: flex;
  justify-content: end;
  gap: 0.6rem;
  padding: 1rem;
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .story-grid,
  .contact-grid,
  .cta-grid,
  .image-split,
  .footer-grid,
  .metric-grid,
  .cards-grid,
  .three-grid,
  .four-grid,
  .program-grid,
  .pathway-grid,
  .partner-grid,
  .involvement-grid,
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-grid-single,
  .hero-banner-inner {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  :root {
    --nav-height: 74px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-shell {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 0.55rem);
    width: min(calc(100% - 1rem), var(--container));
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid red;
    box-shadow: var(--shadow);
    border-radius: 24px;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: var(--transition);
  }

  .nav-shell.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links,
  .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a,
  .nav-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .hero,
  .page-hero,
  .section,
  .site-footer {
    padding-left: 0;
    padding-right: 0;
  }

  .hero {
    min-height: auto;
    padding: 6rem 0 5rem;
  }

  .page-hero {
    padding: 4.8rem 0 3.4rem;
  }

  .hero-grid,
  .two-column,
  .story-grid,
  .contact-grid,
  .cta-grid,
  .image-split,
  .footer-grid,
  .metric-grid,
  .cards-grid,
  .three-grid,
  .four-grid,
  .program-grid,
  .pathway-grid,
  .partner-grid,
  .involvement-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .hero-stats-lifted {
    margin-top: -3rem;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 9vw, 3.1rem);
  }

  .hero-copy h1 {
    font-size: 2.5rem;
  }

  .large-screen-nav-actions {
    display: none;
  }

  .hero-level {
    top: -50px;
  }
}

@media (max-width: 520px) {
  .container {
    width: min(calc(100% - 1.1rem), var(--container));
  }

  .brand-copy span {
    display: none;
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .inline-actions {
    flex-direction: column;
  }

  .hero-stats-lifted {
    margin-top: -2.2rem;
  }
}

/* Hamburger changes to close button when mobile menu is open */
.menu-toggle.is-open,
.menu-toggle[aria-expanded="true"] {
  background: var(--primary-soft);
}

.menu-toggle.is-open span,
.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
  transform: scaleX(0);
}

.menu-toggle.is-open::before,
.menu-toggle[aria-expanded="true"]::before {
  background: var(--primary);
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open::after,
.menu-toggle[aria-expanded="true"]::after {
  background: var(--primary);
  transform: translateY(-7px) rotate(-45deg);
}
