/* ── Reset & Tokens ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --burgundy:  #8B1A4A;
  --teal:      #2A7B7B;
  --dark:      #1A1A1A;
  --yellow:    #F5C800;
  --bg:        #F5F0E8;
  --white:     #FFFFFF;
  --gray:      #888888;
  --soft:      #EDE8DC;
  --teal-light:#D0E8E8;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 28px;
  --radius-xl: 48px;

  --shadow: 0 4px 24px rgba(26,26,26,.10);
  --shadow-lg: 0 12px 48px rgba(26,26,26,.14);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--dark);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ───────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); letter-spacing: -0.03em; line-height: 1.05; }
p { line-height: 1.7; color: #444; }
a { color: inherit; text-decoration: none; }

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 32px; }
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  background: var(--soft); color: var(--teal);
  margin-bottom: 20px;
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(32px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes spin-slow {
  to { transform: rotate(360deg); }
}
.reveal { opacity: 0; transform: translateY(32px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── NAV ──────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(245,240,232,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(26,26,26,.08);
  padding: 0 32px;
}
.nav-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo {
  font-family: var(--font-display);
  font-size: 22px; font-weight: 800;
}
.nav-logo span { color: var(--burgundy); }
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 14px; font-weight: 500; color: #555;
  transition: color .2s;
}
.nav-links a:hover { color: var(--burgundy); }
.nav-cta {
  background: var(--burgundy); color: var(--white) !important;
  padding: 10px 24px; border-radius: 100px;
  font-size: 14px !important; font-weight: 600 !important;
  transition: opacity .2s !important;
}
.nav-cta:hover { opacity: .85; color: var(--white) !important; }

/* ── HERO ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: var(--dark);
  display: flex; align-items: center;
  position: relative; overflow: hidden;
  padding-top: 68px;
}
.hero-bg-circle {
  position: absolute; border-radius: 50%; pointer-events: none;
}
.hero-bg-circle.c1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(139,26,74,.35) 0%, transparent 70%);
  top: -200px; right: -200px;
}
.hero-bg-circle.c2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(42,123,123,.25) 0%, transparent 70%);
  bottom: -150px; left: -150px;
}
.hero-inner {
  position: relative; z-index: 2;
  max-width: 1160px; margin: 0 auto; padding: 80px 32px;
  display: grid; grid-template-columns: 1fr 420px; gap: 80px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 8px 20px;
  font-size: 13px; color: rgba(255,255,255,.7);
  margin-bottom: 32px;
  animation: fadeUp .8s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow); display: inline-block;
}
.hero-title {
  font-size: clamp(38px, 8vw, 80px);
  color: var(--white); margin-bottom: 28px;
  animation: fadeUp .8s .15s ease both;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.hero-title em { font-style: normal; color: var(--yellow); }
.hero-desc {
  font-size: 18px; color: rgba(255,255,255,.65);
  max-width: 520px; margin-bottom: 40px;
  animation: fadeUp .8s .25s ease both;
}
.hero-actions {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp .8s .35s ease both;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-primary { background: var(--yellow); color: var(--dark); }
.btn-primary:hover { opacity: .9; transform: translateY(-2px); }
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--white);
}
.btn-outline:hover { background: rgba(255,255,255,.08); }

.hero-regions {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 40px;
  animation: fadeUp .8s .45s ease both;
}
.region-tag {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.7);
  padding: 6px 18px; border-radius: 100px; font-size: 13px;
}

.hero-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  animation: fadeUp .8s .3s ease both;
}
.hero-stat {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.hero-stat:last-child { margin-bottom: 0; padding-bottom: 0; border: none; }
.hero-stat-num {
  font-family: var(--font-display);
  font-size: 48px; font-weight: 800; color: var(--white);
  line-height: 1;
}
.hero-stat-label { font-size: 14px; color: rgba(255,255,255,.5); margin-top: 4px; }

/* ── ABOUT ────────────────────────────────────────────────── */
#about { padding: 120px 0; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.about-visual {
  position: relative; height: 480px;
}
.about-block {
  position: absolute; border-radius: var(--radius-md);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
}
.about-block.main {
  width: 100%; height: 100%;
  background: var(--teal);
  overflow: hidden;
}
.about-block.main::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.about-block.float {
  bottom: -32px; right: -32px;
  width: 200px; height: 160px;
  background: var(--yellow);
  box-shadow: var(--shadow-lg);
  animation: float 4s ease-in-out infinite;
}
.about-block-num {
  font-family: var(--font-display);
  font-size: 52px; font-weight: 800; color: var(--dark);
}
.about-block-label { font-size: 13px; font-weight: 600; color: rgba(26,26,26,.6); }
.about-block-title {
  font-family: var(--font-display);
  font-size: 28px; color: var(--white); font-weight: 700;
}
.about-block-sub { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 4px; }
.about-content h2 { font-size: 44px; margin-bottom: 20px; }
.about-content p { margin-bottom: 20px; font-size: 17px; }
.pillars { display: flex; flex-direction: column; gap: 16px; margin-top: 32px; }
.pillar {
  display: flex; align-items: flex-start; gap: 16px;
  padding: 20px; background: var(--white);
  border-radius: var(--radius-md); box-shadow: var(--shadow);
}
.pillar-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.pillar-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.pillar-desc { font-size: 14px; color: #666; line-height: 1.5; }

/* ── CHALLENGES ───────────────────────────────────────────── */
#challenges { padding: 120px 0; background: var(--dark); }
#challenges .tag { background: rgba(255,255,255,.08); color: var(--yellow); }
#challenges h2 { color: var(--white); font-size: 48px; margin-bottom: 16px; }
#challenges .section-sub { color: rgba(255,255,255,.55); font-size: 18px; margin-bottom: 64px; }
.challenges-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.challenge-card {
  border-radius: var(--radius-md); padding: 40px 36px;
  position: relative; overflow: hidden;
  transition: transform .3s;
}
.challenge-card:hover { transform: translateY(-6px); }
.challenge-card.agro  { background: var(--teal); }
.challenge-card.wash  { background: #252525; border: 1px solid rgba(255,255,255,.08); }
.challenge-card.circ  { background: var(--burgundy); }
.challenge-card::after {
  content: '';
  position: absolute; bottom: -60px; right: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.challenge-emoji { font-size: 48px; margin-bottom: 20px; display: block; }
.challenge-name {
  font-family: var(--font-display);
  font-size: 28px; font-weight: 800; color: var(--white);
  margin-bottom: 12px;
}
.challenge-desc { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.6; margin-bottom: 24px; }
.challenge-examples { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.challenge-examples li {
  font-size: 14px; color: rgba(255,255,255,.6);
  display: flex; align-items: flex-start; gap: 10px;
}
.challenge-examples li::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0; margin-top: 6px;
}

/* ── PHASES ───────────────────────────────────────────────── */
#phases { padding: 120px 0; }
#phases h2 { font-size: 48px; margin-bottom: 16px; }
.phases-intro { font-size: 18px; color: #666; margin-bottom: 64px; max-width: 580px; }
.phases-timeline { position: relative; }
.phases-timeline::before {
  content: '';
  position: absolute; left: 28px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--burgundy), var(--teal));
}
.phase-item {
  display: grid; grid-template-columns: 56px 1fr; gap: 32px;
  margin-bottom: 40px; position: relative;
}
.phase-dot {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 800;
  color: var(--white); flex-shrink: 0; position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg);
}
.phase-body {
  background: var(--white); border-radius: var(--radius-md);
  padding: 32px 36px; box-shadow: var(--shadow);
  transition: box-shadow .3s;
}
.phase-body:hover { box-shadow: var(--shadow-lg); }
.phase-header { display: flex; align-items: center; gap: 16px; margin-bottom: 12px; }
.phase-emoji { font-size: 28px; }
.phase-name {
  font-family: var(--font-display); font-size: 22px; font-weight: 800;
}
.phase-month {
  margin-left: auto; font-size: 12px; font-weight: 600;
  padding: 4px 14px; border-radius: 100px;
  background: var(--soft); color: var(--teal);
}
.phase-desc { font-size: 15px; color: #555; margin-bottom: 20px; }
.phase-output {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-radius: var(--radius-sm);
  background: var(--soft);
}
.phase-output-label { font-size: 12px; font-weight: 700; color: var(--teal); text-transform: uppercase; letter-spacing: 1px; }
.phase-output-val { font-size: 14px; color: var(--dark); font-weight: 500; }

/* ── MENTORSHIP ───────────────────────────────────────────── */
#mentorship { padding: 120px 0; background: var(--soft); }
#mentorship h2 { font-size: 48px; margin-bottom: 16px; }
.mentor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.mentor-card {
  background: var(--white); border-radius: var(--radius-md);
  padding: 40px 36px; box-shadow: var(--shadow);
  position: relative; overflow: hidden;
}
.mentor-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 5px;
}
.mentor-card.tunisian::before { background: var(--teal); }
.mentor-card.czech::before    { background: var(--burgundy); }
.mentor-icon { font-size: 40px; margin-bottom: 20px; display: block; }
.mentor-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; margin-bottom: 12px; }
.mentor-desc  { font-size: 15px; color: #555; line-height: 1.7; }

/* ── SDGs ─────────────────────────────────────────────────── */
#sdgs { padding: 80px 0; }
.sdgs-inner {
  background: var(--teal); border-radius: var(--radius-lg);
  padding: 64px; display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  position: relative; overflow: hidden;
}
.sdgs-inner::before {
  content: '';
  position: absolute; top: -80px; right: -80px;
  width: 360px; height: 360px; border-radius: 50%;
  background: rgba(255,255,255,.07);
}
.sdgs-inner h2 { color: var(--white); font-size: 44px; margin-bottom: 20px; }
.sdgs-inner p { color: rgba(255,255,255,.8); font-size: 17px; }
.sdgs-pills { display: flex; flex-wrap: wrap; gap: 12px; }
.sdg-pill {
  background: rgba(255,255,255,.15); color: var(--white);
  padding: 10px 20px; border-radius: 100px; font-size: 14px; font-weight: 600;
}

/* ── ELIGIBILITY ───────────────────────────────────────────── */
#eligibility { padding: 120px 0; }
.eligibility-grid { display: grid; grid-template-columns: 1fr 440px; gap: 80px; align-items: flex-start; }
.eligibility-grid h2 { font-size: 44px; margin-bottom: 24px; }
.criteria-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 20px; }
.criteria-item { display: flex; align-items: center; gap: 16px; }
.criteria-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--burgundy); flex-shrink: 0; }
.criteria-text { font-size: 17px; font-weight: 500; }

.priority-box {
  background: var(--soft); border-radius: var(--radius-md); padding: 32px; margin-bottom: 24px;
}
.priority-box h3 { font-size: 20px; margin-bottom: 16px; color: var(--burgundy); }
.priority-box ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.priority-box li { font-size: 15px; font-weight: 600; color: var(--dark); display: flex; align-items: center; gap: 10px; }
.priority-box li::before { content: '→'; color: var(--burgundy); }

.timeline-box { background: var(--dark); border-radius: var(--radius-md); padding: 32px; }
.timeline-box h3 { font-size: 22px; color: var(--white); margin-bottom: 24px; }
.tl-item { display: flex; gap: 16px; margin-bottom: 20px; }
.tl-dot { width: 8px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding-top: 6px; }
.tl-dot-circle { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); }
.tl-dot-line { flex: 1; width: 1px; background: rgba(255,255,255,.15); margin-top: 4px; }
.tl-date { font-size: 12px; color: var(--yellow); font-weight: 600; margin-bottom: 2px; text-transform: uppercase; letter-spacing: 1px; }
.tl-label { font-size: 14px; color: rgba(255,255,255,.8); }

/* ── CTA ──────────────────────────────────────────────────── */
#cta {
  padding: 120px 0;
  background: var(--dark); text-align: center;
  position: relative; overflow: hidden;
}
#cta::before {
  content: '';
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,26,74,.3) 0%, transparent 60%);
  pointer-events: none;
}
#cta .tag { background: rgba(255,255,255,.08); color: var(--yellow); position: relative; }
#cta h2 { font-size: clamp(44px,6vw,72px); color: var(--white); margin-bottom: 24px; position: relative; }
#cta h2 em { font-style: normal; color: var(--yellow); }
#cta p { font-size: 18px; color: rgba(255,255,255,.6); max-width: 540px; margin: 0 auto 48px; position: relative; }
.cta-actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; position: relative; }
.deadline-note {
  margin-top: 28px; font-size: 14px; color: rgba(255,255,255,.4);
  position: relative;
}
.deadline-note strong { color: var(--yellow); }

/* ── FOOTER ───────────────────────────────────────────────── */
footer {
  background: #111; padding: 48px 32px;
  text-align: center;
}
.footer-logo { font-family: var(--font-display); font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 8px; }
.footer-logo span { color: var(--burgundy); }
.footer-sub { font-size: 13px; color: rgba(255,255,255,.35); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner,
  .about-grid,
  .challenges-grid,
  .mentor-grid,
  .sdgs-inner,
  .eligibility-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .about-visual { height: 300px; }
  .about-block.float { display: none; }
  nav .nav-links { display: none; }
  
  .hero-inner { padding: 120px 24px 60px; text-align: center; }
  .hero-title { font-size: 44px; line-height: 1.1; margin-bottom: 20px; }
  .hero-desc { margin: 0 auto 32px; font-size: 16px; }
  .hero-actions, .hero-regions { justify-content: center; }
  .hero-badge { margin-bottom: 24px; }
  
  .container { padding: 0 24px; }
  #about, #challenges, #phases, #mentorship, #sdgs, #eligibility, #cta { padding: 80px 0; }
  
  .phase-item { grid-template-columns: 44px 1fr; gap: 16px; }
  .phase-dot { width: 44px; height: 44px; font-size: 13px; }
  .phase-body { padding: 24px; }
  .phase-month { position: relative; margin-left: 0; margin-top: 8px; display: inline-block; }
  .phase-header { flex-wrap: wrap; }
}
