/* ============================================================
   CRAYONS FOR CHANGE — Homepage Stylesheet
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream:    #F5F2E9;
  --dark:     #2D2926;
  --dark2:    #1A1410;
  --dark3:    #251E18;
  --orange:   #E86A3A;
  --muted:    #5E5954;
  --border:   rgba(45, 41, 38, 0.12);
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a   { color: inherit; text-decoration: none; }

/* ── LOADING FADE-IN ── */
body { animation: pageFade 0.5s ease both; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }

/* ── NAV ─────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 52px;
  height: 68px;
  max-width: 1440px;
  margin: 0 auto;
}

.site-nav.scrolled {
  background: rgba(245, 242, 233, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--cream);
  transition: color 0.4s var(--ease);
  white-space: nowrap;
}

.site-nav.scrolled .nav-brand { color: var(--dark); }

.nav-links {
  display: flex;
  gap: 36px;
  align-items: center;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: rgba(245, 242, 233, 0.7);
  transition: color 0.3s var(--ease);
  letter-spacing: 0.2px;
}

.site-nav.scrolled .nav-links a         { color: var(--muted); }
.nav-links a:hover                       { color: var(--cream); }
.site-nav.scrolled .nav-links a:hover   { color: var(--dark); }

.nav-cta {
  font-size: 12px;
  font-weight: 600;
  padding: 9px 22px;
  background: var(--cream);
  color: var(--dark);
  letter-spacing: 0.3px;
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.2s var(--ease);
}

.site-nav.scrolled .nav-cta { background: var(--dark); color: var(--cream); }
.nav-cta:hover { transform: translateY(-2px); opacity: 0.9; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream);
  transition: background 0.3s var(--ease), transform 0.3s var(--ease), opacity 0.3s var(--ease);
}

.site-nav.scrolled .nav-toggle span { background: var(--dark); }

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── HERO ─────────────────────────────────────── */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  background: var(--dark2);
}

.hero-bg {
  position: absolute;
  inset: -15%;
  background-image: url('DSC_2664.JPEG');
  background-size: cover;
  background-position: center 30%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26, 20, 16, 0.25) 0%,
    rgba(26, 20, 16, 0.55) 45%,
    rgba(26, 20, 16, 0.93) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 156px 64px 0;
  max-width: 500px;
}

.hero-badge {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: rgba(245, 242, 233, 0.7);
  background: rgba(255, 255, 255, 0.09);
  padding: 6px 14px;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.2s forwards;
}

.hero-sub {
  font-size: 15px;
  font-weight: 400;
  color: rgba(245, 242, 233, 0.65);
  line-height: 1.85;
  margin-bottom: 28px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.4s forwards;
}

.hero-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(245, 242, 233, 0.3);
  padding-bottom: 3px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.9s var(--ease) 0.6s forwards;
}

.hero-link:hover { color: var(--orange); border-color: var(--orange); }

/* ── BLEEDING HEADLINE ── */
.hero-headlines {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  text-align: center;
  line-height: 0.87;
  pointer-events: none;
  padding-bottom: 4px;
}

.hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(100px, 18vw, 260px);
  font-weight: 700;
  color: var(--cream);
  white-space: nowrap;
  display: block;
  letter-spacing: -3px;
  opacity: 0;
  transform: translateY(80px);
  animation: fadeUp 1.1s var(--ease) 0.25s forwards;
}

.hero-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(66px, 12.5vw, 178px);
  font-weight: 700;
  color: var(--orange);
  white-space: nowrap;
  display: block;
  letter-spacing: -1.5px;
  opacity: 0;
  transform: translateY(80px);
  animation: fadeUp 1.1s var(--ease) 0.42s forwards;
}

/* Scroll indicator */
.scroll-hint {
  position: absolute;
  bottom: 32px;
  right: 52px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeUp 1s var(--ease) 1.4s forwards;
}

.scroll-hint span {
  font-family: 'Space Mono', monospace;
  font-size: 8px;
  letter-spacing: 2.5px;
  color: rgba(245, 242, 233, 0.35);
  writing-mode: vertical-rl;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: rgba(245, 242, 233, 0.15);
  position: relative;
  overflow: hidden;
}

.scroll-line::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(245, 242, 233, 0.55);
  animation: scrollDrop 2s ease-in-out 1.8s infinite;
}

@keyframes scrollDrop {
  0%   { top: -100%; opacity: 1; }
  100% { top: 100%;  opacity: 0; }
}

/* ── CORE ANIMATIONS ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(44px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}

.reveal.in-view { opacity: 1; transform: translateY(0); }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.22s; }
.reveal-delay-3 { transition-delay: 0.34s; }

/* ── STATS ─────────────────────────────────────── */
.stats-section {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
}

.stat-item {
  flex: 1;
  padding: 60px 24px;
  text-align: center;
  transition: background 0.3s var(--ease);
}

.stat-item:hover { background: rgba(232, 106, 58, 0.04); }

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 5vw, 76px);
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 10px;
  transition: transform 0.3s var(--ease);
}

.stat-item:hover .stat-num { transform: scale(1.04); }

.stat-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--muted);
}

.stat-rule {
  width: 1px;
  height: 56px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── MISSION ─────────────────────────────────────── */
.mission-section {
  padding: 100px 64px;
  max-width: 1440px;
  margin: 0 auto;
}

.mission-inner {
  display: grid;
  grid-template-columns: 200px 1fr 300px;
  gap: 64px;
  align-items: start;
}

.label-tag {
  display: inline-block;
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--orange);
  margin-bottom: 16px;
}

.mission-aside {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
}

.mission-lead {
  font-size: 21px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.65;
  margin-bottom: 28px;
}

.mission-quote {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-style: italic;
  color: var(--orange);
  line-height: 1.5;
  margin-bottom: 28px;
  font-weight: 400;
}

.text-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  border-bottom: 1.5px solid var(--dark);
  padding-bottom: 2px;
  transition: color 0.3s var(--ease), border-color 0.3s var(--ease), letter-spacing 0.3s var(--ease);
}

.text-link:hover {
  color: var(--orange);
  border-color: var(--orange);
  letter-spacing: 0.5px;
}

.mission-img {
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 4px;
  border: 1px solid rgba(245,242,233,0.1);
  box-shadow:
    0 4px 32px rgba(26,20,16,0.25),
    8px 8px 0 rgba(232,106,58,0.22);
  transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease);
}

.mission-img:hover {
  transform: translate(-3px, -3px);
  box-shadow:
    0 8px 48px rgba(26,20,16,0.3),
    12px 12px 0 rgba(232,106,58,0.35);
}

.mission-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.mission-img:hover img { transform: scale(1.05); }

/* ── PROGRAMS ─────────────────────────────────────── */
.programs-section {
  background: var(--dark2);
}

.programs-header {
  padding: 80px 64px 48px;
}

.label-light { color: var(--orange); }

.programs-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4vw, 58px);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.1;
  margin-top: 14px;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.program-card {
  background: #251E18;
  padding: 48px 44px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: background 0.35s var(--ease);
}

.program-card:nth-child(2) { background: var(--dark2); }

.program-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}

.program-card:hover { background: #2E231B; }
.program-card:nth-child(2):hover { background: #221A14; }
.program-card:hover::after { transform: scaleX(1); }

.card-num {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 2px;
}

.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.2;
}

.card-desc {
  font-size: 14px;
  color: rgba(245, 242, 233, 0.6);
  line-height: 1.78;
  flex: 1;
}

.card-cta {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  color: var(--orange);
  letter-spacing: 1px;
  transition: letter-spacing 0.3s var(--ease), transform 0.3s var(--ease);
  display: inline-block;
}

.program-card:hover .card-cta {
  letter-spacing: 2px;
  transform: translateX(4px);
}

/* ── CTA ─────────────────────────────────────── */
.cta-section {
  background: var(--orange);
  padding: 120px 80px;
  text-align: center;
  overflow: hidden;
  position: relative;
}

/* Subtle noise texture on CTA */
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.06'/%3E%3C/svg%3E");
  background-size: 256px;
  pointer-events: none;
  opacity: 0.4;
}

.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.cta-section .label-tag { color: rgba(45, 41, 38, 0.55); margin-bottom: 28px; }

.cta-headline {
  font-family: 'Playfair Display', serif;
  font-size: clamp(40px, 5.5vw, 70px);
  font-weight: 700;
  color: var(--dark);
  line-height: 1.1;
  margin-bottom: 28px;
}

.cta-headline em { font-style: italic; display: block; }

.cta-sub {
  font-size: 17px;
  color: rgba(45, 41, 38, 0.62);
  line-height: 1.7;
  max-width: 500px;
  margin: 0 auto 44px;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-solid {
  display: inline-flex;
  padding: 14px 36px;
  background: var(--dark);
  color: var(--cream);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: background 0.3s var(--ease), transform 0.25s var(--ease), box-shadow 0.3s var(--ease);
}

.btn-solid:hover {
  background: var(--dark2);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(26, 20, 16, 0.35);
}

.btn-ghost {
  display: inline-flex;
  padding: 13px 36px;
  border: 1.5px solid rgba(45, 41, 38, 0.38);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  transition: border-color 0.3s var(--ease), transform 0.25s var(--ease);
}

.btn-ghost:hover {
  border-color: var(--dark);
  transform: translateY(-3px);
}

/* ── FOOTER ─────────────────────────────────────── */
.site-footer { background: var(--dark); }

.footer-inner {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  padding: 64px 64px 48px;
  max-width: 1440px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(245, 242, 233, 0.06);
}

.footer-logo {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--cream);
  margin-bottom: 14px;
}

.footer-desc {
  font-size: 13px;
  color: rgba(245, 242, 233, 0.38);
  line-height: 1.72;
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(245, 242, 233, 0.22);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  font-size: 13px;
  color: rgba(245, 242, 233, 0.48);
  margin-bottom: 10px;
  transition: color 0.3s var(--ease);
}

.footer-col a:hover { color: var(--cream); }

.footer-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 64px;
  max-width: 1440px;
  margin: 0 auto;
}

.footer-bar span {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.5px;
  color: rgba(245, 242, 233, 0.18);
}

/* ── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 1100px) {
  .mission-inner { grid-template-columns: 200px 1fr; }
  .mission-img { display: none; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 900px) {
  .programs-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 768px) {
  .nav-inner { padding: 0 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px; left: 0; right: 0;
    background: var(--cream);
    padding: 24px 28px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    animation: fadeUp 0.3s var(--ease) both;
  }

  .nav-links.open a {
    color: var(--muted) !important;
    font-size: 15px;
  }

  .nav-links.open a:hover { color: var(--dark) !important; }

  .hero-content { padding: 120px 24px 0; }
  .hero-h1 { letter-spacing: -1px; }

  .stats-grid { flex-wrap: wrap; }
  .stat-item  { min-width: 50%; border-bottom: 1px solid var(--border); }
  .stat-rule  { display: none; }

  .mission-section  { padding: 64px 24px; }
  .mission-inner    { grid-template-columns: 1fr; gap: 32px; }

  .programs-header  { padding: 56px 24px 32px; }
  .programs-grid    { grid-template-columns: 1fr; }
  .program-card     { padding: 36px 28px; }

  .cta-section      { padding: 80px 28px; }

  .footer-inner     { grid-template-columns: 1fr; gap: 36px; padding: 48px 24px 32px; }
  .footer-bar       { flex-direction: column; gap: 8px; padding: 16px 24px; text-align: center; }
}

@media (max-width: 480px) {
  .stat-item { min-width: 100%; }
  .hero-h1   { letter-spacing: -0.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
