:root {
  /* Primary Palette */
  --navy:      #1A2B4A;
  --navy-dark: #0F1C30;
  --navy-light:#2C4270;
  --orange:    #E8760A;
  --orange-lt: #F4A21F;
  --green:     #009A44;
  --gold:      #C9A84C;
  --white:     #FFFFFF;
  --off-white: #F7F8FA;
  --light-grey:#EEF0F4;
  --muted:     #6B7A8D;
  --body-text: #2D3748;
  --border:    #D9DDE8;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body:    'Inter', sans-serif;
  --font-accent:  'Space Grotesk', sans-serif;

  --transition: all 0.3s ease;
  --shadow-sm: 0 2px 8px rgba(26,43,74,0.08);
  --shadow-md: 0 6px 24px rgba(26,43,74,0.12);
  --shadow-lg: 0 16px 48px rgba(26,43,74,0.16);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--body-text);
  line-height: 1.7;
  font-size: 16px;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  line-height: 1.25;
  color: var(--navy);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 1rem; }
h3 { font-size: 1.4rem; margin-bottom: 0.75rem; }
p  { color: var(--muted); margin-bottom: 1rem; font-size: 1.05rem; }

a { color: var(--orange); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--navy); }

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

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 90px 0; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  transition: var(--transition);
  cursor: pointer;
  border: 2px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: var(--orange);
  color: var(--white);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ── Header ── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: var(--transition);
  background: transparent;
  padding: 22px 0;
}
#site-header.scrolled {
  background: var(--white);
  box-shadow: var(--shadow-md);
  padding: 14px 0;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo img { height: 48px; transition: var(--transition); }

nav.main-nav { display: flex; align-items: center; gap: 6px; }

nav.main-nav a {
  font-family: var(--font-accent);
  font-weight: 500;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--white);
  padding: 6px 12px;
  border-radius: 3px;
  transition: var(--transition);
}
#site-header.scrolled nav.main-nav a { color: var(--navy); }
nav.main-nav a:hover { color: var(--orange) !important; }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.5);
  color: var(--white);
  padding: 5px 12px;
  border-radius: 4px;
  font-family: var(--font-accent);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 1px;
}
#site-header.scrolled .lang-btn {
  border-color: var(--navy);
  color: var(--navy);
}
.lang-btn:hover { background: var(--orange); border-color: var(--orange); color: var(--white) !important; }

/* Mobile hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 5px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: var(--transition);
}
#site-header.scrolled .hamburger span { background: var(--navy); }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(15,28,48,0.97) 0%,
    rgba(26,43,74,0.88) 50%,
    rgba(15,28,48,0.75) 100%
  );
}

/* Ivorian flag accent bar */
.hero-flag-accent {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(to right, #F4A21F 33.3%, #FFFFFF 33.3% 66.6%, #009A44 66.6%);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 120px 0 80px;
  max-width: 780px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange-lt);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 2px;
  background: var(--orange-lt);
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.5rem;
  font-style: italic;
}
.hero h1 em { font-style: normal; color: var(--orange-lt); }

.hero-lead {
  color: rgba(255,255,255,0.78);
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 620px;
  line-height: 1.8;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-scroll {
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.75rem;
  font-family: var(--font-accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  animation: bounce 2s infinite;
}
.hero-scroll::after {
  content: '↓';
  font-size: 1.2rem;
}
@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* ── Stats Bar ── */
.stats-bar {
  background: var(--navy);
  padding: 50px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item { padding: 10px; }
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--orange-lt);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--font-accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.65);
}

/* ── Section Utilities ── */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--orange);
}

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 0.75rem; }
.section-header p { max-width: 620px; font-size: 1.05rem; }
.section-header.centered { text-align: center; }
.section-header.centered p { margin: 0 auto; }

/* ── About Section ── */
.about { background: var(--off-white); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-photo-stack {
  position: relative;
  height: 480px;
}
.about-photo-stack img {
  position: absolute;
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.photo-main {
  width: 80%;
  height: 380px;
  top: 0; left: 0;
}
.photo-accent {
  width: 60%;
  height: 240px;
  bottom: 0; right: 0;
  border: 4px solid var(--white);
}
.about-badge {
  position: absolute;
  top: 20px; right: 0;
  background: var(--orange);
  color: var(--white);
  padding: 14px 18px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.3;
  z-index: 2;
}
.about-badge strong { display: block; font-size: 1.6rem; }

.disclaimer-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--light-grey);
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  font-size: 0.85rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Pillars Section ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 24px;
}
.pillar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.pillar-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.pillar-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: transparent;
}
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-icon {
  width: 52px; height: 52px;
  background: var(--off-white);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}
.pillar-card h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 8px; }
.pillar-card p { font-size: 0.92rem; margin: 0; }

/* ── UBUNTU Section ── */
.ubuntu-section {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.ubuntu-section::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 450px; height: 450px;
  border-radius: 50%;
  background: rgba(232,118,10,0.07);
  pointer-events: none;
}
.ubuntu-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.ubuntu-text h2 { color: var(--white); }
.ubuntu-text p { color: rgba(255,255,255,0.72); }
.ubuntu-text .section-label { color: var(--orange-lt); }
.ubuntu-text .section-label::before { background: var(--orange-lt); }

.ubuntu-steps { list-style: none; margin: 28px 0 36px; }
.ubuntu-steps li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  color: rgba(255,255,255,0.8);
  font-size: 0.98rem;
}
.ubuntu-steps li .step-num {
  min-width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-accent);
  font-weight: 700;
  font-size: 0.8rem;
}
.ubuntu-image img {
  border-radius: 8px;
  width: 100%;
  height: 420px;
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}

/* ── Events ── */
.events { background: var(--off-white); }
.events-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.event-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  transition: var(--transition);
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.event-card-date {
  background: var(--navy);
  color: var(--white);
  min-width: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 14px;
  text-align: center;
}
.event-card-date .month {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange-lt);
}
.event-card-date .day {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}
.event-card-body { padding: 24px; }
.event-tag {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--orange);
  margin-bottom: 8px;
}
.event-card-body h3 { font-size: 1.1rem; color: var(--navy); margin-bottom: 6px; }
.event-card-body p { font-size: 0.9rem; margin: 0; }

/* ── Photo Gallery ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.gallery-item {
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

/* ── Newsletter ── */
.newsletter { background: var(--navy-dark); }
.newsletter-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.newsletter h2 { color: var(--white); }
.newsletter p { color: rgba(255,255,255,0.65); }
.newsletter .section-label { color: var(--orange-lt); }
.newsletter .section-label::before { background: var(--orange-lt); }

.newsletter-form { display: flex; flex-direction: column; gap: 14px; }
.newsletter-form input[type="text"],
.newsletter-form input[type="email"] {
  padding: 13px 16px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.18);
  color: var(--white);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
}
.newsletter-form input::placeholder { color: rgba(255,255,255,0.4); }
.newsletter-form input:focus {
  outline: none;
  border-color: var(--orange-lt);
  background: rgba(255,255,255,0.1);
}
.newsletter-form button { align-self: flex-start; }

/* ── Footer ── */
footer {
  background: #08111F;
  padding: 70px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 30px;
}
.footer-brand img { height: 42px; margin-bottom: 20px; }
.footer-brand p {
  color: rgba(255,255,255,0.5);
  font-size: 0.92rem;
  max-width: 260px;
  line-height: 1.7;
}
.footer-col h4 {
  font-family: var(--font-accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.55);
  font-size: 0.92rem;
  transition: var(--transition);
}
.footer-col ul li a:hover { color: var(--orange-lt); }

.footer-flag {
  display: flex;
  gap: 0;
  margin: 16px 0;
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}
.footer-flag span { flex: 1; }
.footer-flag .fc-orange { background: #F4A21F; }
.footer-flag .fc-white { background: rgba(255,255,255,0.4); }
.footer-flag .fc-green { background: #009A44; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.83rem;
}

/* ── Scroll Animations ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.1s; }
.fade-up.delay-2 { transition-delay: 0.2s; }
.fade-up.delay-3 { transition-delay: 0.3s; }
.fade-up.delay-4 { transition-delay: 0.4s; }

/* ── Form (register page) ── */
.form-page { padding: 130px 0 90px; background: var(--off-white); min-height: 100vh; }
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 50px 48px;
  box-shadow: var(--shadow-md);
  max-width: 680px;
  margin: 0 auto;
}
.form-group { margin-bottom: 22px; }
.form-group label {
  display: block;
  font-family: var(--font-accent);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 15px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--body-text);
  transition: var(--transition);
}
.form-control:focus { outline: none; border-color: var(--navy); background: var(--white); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .about-grid, .ubuntu-grid, .newsletter-inner { grid-template-columns: 1fr; gap: 40px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .events-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-item:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 16/7; }
  .about-photo-stack { height: 320px; }
  .photo-main { width: 85%; height: 280px; }
  .photo-accent { width: 55%; height: 180px; }
}

@media (max-width: 640px) {
  h2 { font-size: 1.8rem; }
  nav.main-nav { display: none; }
  nav.main-nav.open { display: flex; flex-direction: column; position: fixed; top: 70px; left: 0; right: 0; background: var(--white); padding: 20px; box-shadow: var(--shadow-lg); }
  nav.main-nav.open a { color: var(--navy) !important; padding: 10px; }
  .hamburger { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { text-align: center; justify-content: center; }
  .form-card { padding: 30px 24px; }
  .form-row { grid-template-columns: 1fr; }
}
