/*
Theme Name: Bio4Youth
Theme URI: https://bio4youth.local
Author: Codex
Description: Editorial landing theme for Bio4Youth, based on the provided Figma design.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: bio4youth
*/

:root {
  --forest: #005216;
  --forest-2: #216b2b;
  --leaf: #8cd88b;
  --leaf-soft: #bff19b;
  --paper: #fafaf6;
  --ink: #182019;
  --muted: #40493e;
  --line: #e5e7eb;
  --line-green: #e8ece7;
  --white: #ffffff;
  --container: 1080px;
  --space-x: clamp(20px, 7.8vw, 100px);
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
}

body.admin-bar .site-header {
  top: 32px;
}

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

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

.skip-link {
  background: var(--forest);
  color: var(--white);
  left: 16px;
  padding: 10px 14px;
  position: absolute;
  top: -48px;
  z-index: 100;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  backdrop-filter: blur(12px);
  background: rgba(250, 250, 246, 0.78);
  border-bottom: 1px solid rgba(229, 231, 235, 0.7);
  left: 0;
  position: sticky;
  right: 0;
  top: 0;
  transition: background 180ms ease, box-shadow 180ms ease;
  z-index: 30;
}

.site-header.is-scrolled {
  background: rgba(250, 250, 246, 0.96);
  box-shadow: 0 12px 30px rgba(0, 82, 22, 0.08);
}

.header-inner {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: auto 1fr auto;
  margin: 0 auto;
  max-width: 1280px;
  min-height: 80px;
  padding: 0 var(--space-x);
}

.brand {
  align-items: center;
  color: var(--forest);
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  gap: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.brand-mark {
  align-items: center;
  background: var(--forest);
  color: var(--leaf-soft);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.primary-nav {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
}

.primary-nav ul {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.primary-nav a {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.primary-nav a:hover {
  color: var(--forest);
}

.header-actions {
  align-items: center;
  display: flex;
  gap: 18px;
}

.language-switcher {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  white-space: nowrap;
}

.menu-toggle {
  background: transparent;
  border: 1px solid rgba(0, 82, 22, 0.2);
  color: var(--forest);
  display: none;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.2px;
  padding: 12px 14px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  display: inline-flex;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 1.8px;
  line-height: 1.2;
  min-height: 46px;
  padding: 16px 26px;
  text-align: center;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

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

.btn-primary {
  background: var(--forest);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--forest-2);
}

.btn-secondary {
  border-color: rgba(0, 82, 22, 0.22);
  color: var(--forest);
}

.btn-light {
  background: var(--white);
  color: var(--forest);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.42);
  color: var(--white);
}

.section {
  padding: clamp(76px, 12.5vw, 160px) var(--space-x);
}

.section-inner {
  margin: 0 auto;
  max-width: var(--container);
}

.section-kicker,
.eyebrow {
  color: var(--forest-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.section-title {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 72px);
  font-weight: 500;
  line-height: 0.98;
  margin: 18px 0 0;
  max-width: 780px;
}

.section-copy {
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  line-height: 1.45;
  margin: 28px 0 0;
  max-width: 760px;
}

.hero {
  background: var(--paper);
  min-height: calc(100vh - 80px);
  overflow: hidden;
  padding: clamp(56px, 8vw, 90px) var(--space-x) clamp(64px, 10vw, 120px);
  position: relative;
}

.hero::before {
  background-image: radial-gradient(rgba(0, 82, 22, 0.16) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  inset: 0;
  opacity: 0.24;
  position: absolute;
}

.hero-inner {
  align-items: center;
  display: grid;
  gap: clamp(40px, 7vw, 84px);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  margin: 0 auto;
  max-width: var(--container);
  min-height: 760px;
  position: relative;
}

.hero-label {
  align-items: center;
  color: var(--forest-2);
  display: flex;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 1.8px;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero-label::before {
  background: var(--forest);
  content: "";
  height: 1px;
  width: 48px;
}

.hero-title {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(58px, 10vw, 124px);
  font-weight: 700;
  line-height: 0.89;
  margin: 30px 0 0;
  text-transform: uppercase;
}

.hero-copy {
  color: var(--muted);
  font-size: clamp(19px, 2.2vw, 22px);
  line-height: 1.55;
  margin: 34px 0 0;
  max-width: 576px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 38px;
}

.hero-visual {
  position: relative;
}

.hero-card {
  background: var(--white);
  border: 1px solid rgba(0, 82, 22, 0.12);
  box-shadow: 0 30px 70px rgba(0, 82, 22, 0.16);
  padding: 17px;
  position: relative;
}

.hero-card img {
  aspect-ratio: 397 / 505;
  object-fit: cover;
  width: 100%;
}

.hero-badge {
  background: var(--white);
  border: 1px solid rgba(0, 82, 22, 0.12);
  bottom: -56px;
  left: -40px;
  padding: 17px;
  position: absolute;
  width: 192px;
}

.hero-badge img {
  aspect-ratio: 1;
  filter: saturate(0);
  object-fit: cover;
}

.stats {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.stats-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 80px;
  padding: 48px 0;
}

.stat-card {
  border-left: 1px solid var(--line);
  padding-left: 32px;
}

.stat-value {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(64px, 9.3vw, 120px);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 0.92;
}

.stat-label {
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  margin-top: 22px;
  text-transform: uppercase;
}

.about-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.about-copy {
  grid-column: 1 / span 5;
}

.about-media {
  grid-column: 6 / span 7;
  justify-self: end;
  max-width: 616px;
  position: relative;
}

.about-media img {
  aspect-ratio: 16 / 9;
  filter: saturate(0.1);
  object-fit: cover;
}

.quote-note {
  backdrop-filter: blur(4px);
  background: rgba(255, 255, 255, 0.9);
  bottom: 32px;
  color: var(--forest);
  font-style: italic;
  line-height: 1.5;
  max-width: 384px;
  padding: 30px 32px;
  position: absolute;
  right: 32px;
}

.value-list {
  display: grid;
  gap: 48px;
  margin-top: 48px;
}

.value-item {
  display: grid;
  gap: 24px;
  grid-template-columns: 66px 1fr;
}

.value-number {
  color: rgba(63, 105, 35, 0.2);
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 700;
  line-height: 1;
}

.value-item h3 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin: 0 0 12px;
  text-transform: uppercase;
}

.value-item p {
  color: var(--muted);
  margin: 0;
}

.process {
  background: var(--white);
}

.process-list {
  border: 1px solid var(--line);
  margin-top: 72px;
}

.process-step {
  display: grid;
  gap: 48px;
  grid-template-columns: 92px 1fr;
  padding: 36px 48px;
}

.process-step + .process-step {
  border-top: 1px solid var(--line);
}

.process-step span {
  color: rgba(63, 105, 35, 0.55);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
}

.process-step h3 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
}

.process-step p {
  color: var(--muted);
  margin: 0;
  max-width: 680px;
}

.research {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.section-head {
  align-items: end;
  display: flex;
  justify-content: space-between;
  gap: 32px;
}

.text-link {
  color: var(--forest-2);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.research-grid {
  background: var(--line-green);
  border: 1px solid var(--line-green);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
}

.research-card {
  background: var(--white);
  display: flex;
  flex-direction: column;
  min-height: 590px;
  padding: 40px;
  transition: transform 180ms ease, background 180ms ease;
}

.research-card:hover {
  background: #fbfdf9;
  transform: translateY(-4px);
}

.research-card img {
  aspect-ratio: 1;
  filter: saturate(0);
  margin: 32px 0;
  object-fit: cover;
  width: 100%;
}

.research-card h3 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  margin: 24px 0 0;
  text-transform: uppercase;
}

.research-card p {
  color: var(--muted);
  margin: auto 0 0;
}

.camp {
  background: var(--forest);
  color: var(--white);
  min-height: 800px;
  overflow: hidden;
  position: relative;
}

.camp-bg {
  inset: -40px -64px;
  position: absolute;
}

.camp-bg img {
  filter: saturate(0.8);
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.camp::before {
  background: rgba(0, 82, 22, 0.62);
  content: "";
  inset: 0;
  mix-blend-mode: multiply;
  position: absolute;
}

.camp::after {
  background: linear-gradient(0deg, var(--forest), rgba(0, 82, 22, 0) 55%);
  content: "";
  inset: 0;
  position: absolute;
}

.camp .section-inner {
  position: relative;
  z-index: 1;
}

.camp .section-kicker {
  color: var(--leaf-soft);
  letter-spacing: 4.8px;
}

.camp .section-title {
  color: var(--white);
}

.camp .section-copy {
  color: var(--leaf);
  max-width: 720px;
}

.camp-facts {
  display: grid;
  gap: 48px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 56px;
}

.camp-fact {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 24px;
}

.camp-fact span {
  color: rgba(255, 255, 255, 0.68);
  display: block;
  font-family: var(--font-display);
  font-size: 12px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.camp-fact strong {
  color: var(--white);
}

.camp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 56px;
}

.experience-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 72px;
}

.experience-card {
  border-top: 1px solid var(--line);
  min-height: 320px;
  padding-top: 24px;
}

.experience-card:nth-child(2),
.experience-card:nth-child(5) {
  margin-top: 64px;
}

.experience-card img {
  aspect-ratio: 4 / 3;
  filter: saturate(0.2);
  object-fit: cover;
  width: 100%;
}

.experience-card h3,
.publication h3,
.story-details h3 {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 500;
  margin: 18px 0 8px;
}

.experience-card p,
.publication p,
.story-details p {
  color: var(--muted);
  margin: 0;
}

.publications {
  background: var(--white);
}

.publication-list {
  border: 1px solid var(--line);
  margin-top: 72px;
}

.publication {
  display: grid;
  gap: 48px;
  grid-template-columns: 36px 1fr 285px;
  padding: 64px;
}

.publication + .publication {
  border-top: 1px solid var(--line);
}

.publication-number {
  color: rgba(63, 105, 35, 0.72);
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
}

.publication-meta {
  color: var(--forest-2);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}

.publication img {
  aspect-ratio: 285 / 192;
  object-fit: cover;
}

.story {
  background: var(--paper);
}

.story-grid {
  align-items: center;
  display: grid;
  gap: 64px;
  grid-template-columns: 0.84fr 1fr;
}

.story img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.story-quote {
  color: var(--forest);
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1;
  margin: 0 0 32px;
}

.eligibility-grid,
.partner-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 0.85fr 1.15fr;
}

.check-list {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 36px 0;
  padding: 0;
}

.check-list li {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding-top: 18px;
}

.check-list li::before {
  color: var(--forest);
  content: "+ ";
  font-family: var(--font-display);
  font-weight: 700;
}

.partner-logos {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.partner-logo {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  color: rgba(24, 32, 25, 0.5);
  display: flex;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  height: 120px;
  justify-content: center;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.faq {
  background: var(--white);
}

.faq-list {
  border-top: 1px solid var(--line);
  margin-top: 64px;
}

.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-question {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--forest);
  cursor: pointer;
  display: flex;
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 34px);
  font-weight: 500;
  justify-content: space-between;
  padding: 28px 0;
  text-align: left;
  width: 100%;
}

.faq-question span {
  color: var(--forest-2);
  flex: none;
  font-size: 28px;
  margin-left: 24px;
}

.faq-answer {
  color: var(--muted);
  display: none;
  max-width: 760px;
  padding: 0 0 28px;
}

.faq-item.is-open .faq-answer {
  display: block;
}

.cta {
  background: var(--forest);
  color: var(--white);
  overflow: hidden;
  position: relative;
  text-align: center;
}

.cta::before {
  color: rgba(255, 255, 255, 0.08);
  content: "Bio4Youth Bio4Youth Bio4Youth";
  font-family: var(--font-display);
  font-size: clamp(64px, 11vw, 140px);
  font-weight: 700;
  left: 50%;
  line-height: 0.88;
  position: absolute;
  text-transform: uppercase;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 130%;
}

.cta .section-inner {
  max-width: 896px;
  position: relative;
}

.cta .section-title {
  color: var(--white);
  margin-left: auto;
  margin-right: auto;
}

.cta .section-copy {
  color: var(--leaf);
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  margin-top: 48px;
}

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.72);
  padding: 64px var(--space-x);
}

.footer-inner {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr auto;
  margin: 0 auto;
  max-width: var(--container);
}

.footer-inner .brand {
  color: var(--white);
}

.footer-tagline {
  max-width: 420px;
}

.footer-nav {
  display: grid;
  gap: 12px;
}

.footer-nav a:hover {
  color: var(--white);
}

@media (max-width: 1100px) {
  .primary-nav {
    background: rgba(250, 250, 246, 0.98);
    border-top: 1px solid var(--line);
    display: none;
    grid-column: 1 / -1;
    padding: 18px 0 24px;
  }

  .primary-nav.is-open {
    display: grid;
    justify-content: start;
  }

  .primary-nav ul {
    align-items: start;
    display: grid;
  }

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

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .header-actions .language-switcher,
  .header-actions .btn {
    display: none;
  }

  .hero-inner,
  .about-grid,
  .story-grid,
  .eligibility-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .hero-inner {
    min-height: auto;
  }

  .about-copy,
  .about-media {
    grid-column: auto;
  }

  .research-grid,
  .experience-grid {
    grid-template-columns: 1fr 1fr;
  }

  .publication {
    grid-template-columns: 36px 1fr;
  }

  .publication img {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  body.admin-bar .site-header {
    top: 46px;
  }

  .header-inner {
    min-height: 68px;
  }

  .brand {
    font-size: 16px;
  }

  .hero {
    padding-top: 42px;
  }

  .hero-title {
    font-size: clamp(48px, 15vw, 72px);
  }

  .hero-actions,
  .camp-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-badge {
    bottom: -34px;
    left: 18px;
    width: 140px;
  }

  .stats-grid,
  .camp-facts,
  .research-grid,
  .experience-grid,
  .partner-logos {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding-bottom: 24px;
  }

  .research-card {
    min-height: auto;
  }

  .experience-card:nth-child(2),
  .experience-card:nth-child(5) {
    margin-top: 0;
  }

  .process-step,
  .publication {
    gap: 24px;
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .publication img {
    grid-column: auto;
  }

  .quote-note {
    bottom: 16px;
    left: 16px;
    right: 16px;
  }

  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }
}
