/* =============================================
   AfriEdge — Design System
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,600&family=Jost:wght@200;300;400;500;600&display=swap');

:root {
  --navy:        #0B2C63;
  --navy-mid:    #1a3f7a;
  --navy-deep:   #071d42;
  --gold:        #C8963A;
  --gold-light:  #e8b85a;
  --gold-pale:   #f5e6c8;
  --cream:       #F7F3EC;
  --cream-dark:  #EDE7D9;
  --white:       #FFFFFF;
  --charcoal:    #1C1F26;
  --slate:       #5A6070;
  --slate-light: #8A919F;
  --border:      rgba(11, 44, 99, 0.1);

  --font-display: 'Cormorant', Georgia, serif;
  --font-body:    'Jost', 'Helvetica Neue', sans-serif;

  --gutter:    8%;
  --space-xs:  0.5rem;
  --space-sm:  1rem;
  --space-md:  2rem;
  --space-lg:  4rem;
  --space-xl:  6rem;

  --transition:      0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================
   Reset & Base
   ============================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--charcoal);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* =============================================
   Typography
   ============================================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.15;
  color: var(--navy);
}
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); font-weight: 400; }
h2 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 400; }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); font-weight: 500; }
p  { color: var(--slate); font-size: 1rem; line-height: 1.8; }
a  { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }

/* =============================================
   Header & Navigation
   ============================================= */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0 var(--gutter);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; flex-shrink: 0; }
.logo img { height: 44px; width: auto; object-fit: contain; }

nav { display: flex; align-items: center; gap: 2.5rem; }
nav a {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--charcoal);
  position: relative;
  padding-bottom: 2px;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}
nav a:hover { color: var(--navy); }
nav a:hover::after { width: 100%; }

/* =============================================
   Hero
   ============================================= */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: var(--space-xl) var(--gutter);
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 50%, rgba(200,150,58,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(61,111,168,0.2) 0%, transparent 50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: 8%; top: 50%;
  transform: translateY(-50%);
  width: 320px; height: 320px;
  border: 1px solid rgba(200,150,58,0.2);
  border-radius: 50%;
  pointer-events: none;
}
.hero-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--space-sm);
  display: block;
}
.hero h1 { color: var(--white); max-width: 680px; margin-bottom: var(--space-md); font-weight: 300; }
.hero h1 em { font-style: italic; color: var(--gold); }
.hero p { color: rgba(255,255,255,0.7); font-size: 1.125rem; max-width: 480px; margin-bottom: var(--space-lg); }

/* =============================================
   Buttons
   ============================================= */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 2rem;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  background: var(--gold);
  color: var(--navy);
}
.btn:hover {
  background: var(--gold-light);
  color: var(--navy);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(200,150,58,0.3);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); transform: translateY(-1px); box-shadow: none; }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.7); color: var(--white); transform: none; box-shadow: none; }

/* =============================================
   Sections
   ============================================= */
section { padding: var(--space-xl) var(--gutter); }
.section-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: var(--space-sm);
}
.section-header { max-width: 600px; margin-bottom: var(--space-lg); }
.section-header p { margin-top: 1rem; font-size: 1.0625rem; }

/* =============================================
   Cards
   ============================================= */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5px;
  background: var(--border);
}
.card {
  background: var(--white);
  padding: 2.5rem;
  position: relative;
  transition: all var(--transition);
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--gold);
  transition: height var(--transition);
}
.card:hover::before { height: 100%; }
.card:hover { box-shadow: 0 12px 40px rgba(11,44,99,0.08); transform: translateY(-2px); }
.card-number {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 300;
  color: var(--cream-dark);
  line-height: 1;
  margin-bottom: 1rem;
  display: block;
}
.card h3 { font-size: 1.25rem; margin-bottom: 0.75rem; }
.card p  { font-size: 0.9375rem; }

/* =============================================
   Footer
   ============================================= */
footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: var(--space-md) var(--gutter);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 300;
  letter-spacing: 0.05em;
}
footer a { color: rgba(255,255,255,0.5); }
footer a:hover { color: var(--gold); }

/* =============================================
   Utilities
   ============================================= */
.text-gold  { color: var(--gold); }
.text-navy  { color: var(--navy); }
.bg-cream   { background: var(--cream); }
.bg-navy    { background: var(--navy); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 900px) {
  nav { gap: 1.25rem; }
  nav a { font-size: 0.7rem; }
}
@media (max-width: 768px) {
  .hero { min-height: 60vh; padding: var(--space-lg) var(--gutter); }
  .hero::after { display: none; }
  .cards { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  nav a:not(:first-child):not(:last-child) { display: none; }
}
