/* ============================================================
   DR. NWANKWO AUSTIN — GLOBAL DESIGN SYSTEM
   Ali Abdaal-Inspired Minimalist Interface
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  /* Backgrounds */
  --bg-page: #FFFFFF;
  --bg-surface: #F9F9F7;
  --bg-surface-alt: #F0F0EE;
  
  /* Accents */
  --brand-teal: #1D9E75;
  --brand-teal-hover: #16805E;
  --brand-teal-tint: #E9F6F2;
  
  --brand-blue: #0077B6; /* Health Tech */
  --brand-gold: #E19A2A; /* SME */
  
  /* Text */
  --text-primary: #111111;
  --text-muted: #555555;
  --text-inverse: #FFFFFF;
  
  /* Borders */
  --border-subtle: #E8E8E8;
  --border-strong: #DDDDDD;
  
  /* Spacing */
  --section-pad: clamp(60px, 8vw, 120px);
  --container-max: 1100px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  
  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --t-fast: 200ms;
  --t-med: 400ms;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); }
h4 { font-size: clamp(1.1rem, 1.8vw, 1.3rem); }

p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: clamp(1rem, 1.2vw, 1.1rem);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--t-fast) var(--ease-smooth);
}

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

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
}
.section { padding: var(--section-pad) 0; position: relative; scroll-margin-top: 100px; }
.section-surface { background-color: var(--bg-surface); }
.text-center { text-align: center; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }

@media (max-width: 900px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
}

/* ── Components: Cards ────────────────────────────────────── */
.card {
  background: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--t-fast) var(--ease-smooth);
}
.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.surface-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
}

/* ── Components: Buttons ──────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 8px; /* Sharper radius like Ali's */
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--t-fast) var(--ease-smooth);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--brand-teal);
  color: var(--text-inverse);
}
.btn-primary:hover {
  background-color: var(--brand-teal-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover {
  background-color: var(--bg-surface);
  border-color: var(--text-primary);
}

.btn-ghost {
  background-color: transparent;
  color: var(--brand-teal);
  padding: 10px 16px;
}
.btn-ghost:hover {
  background-color: var(--brand-teal-tint);
}

.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; }

/* ── Navigation ───────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: all var(--t-med) var(--ease-smooth);
  background: var(--bg-page);
}
.nav.scrolled {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-primary);
}
.nav-logo-img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}
.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--brand-teal);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Mobile Nav */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .hero-actions { justify-content: center !important; }
  
  /* Mobile menu styles */
  .nav-mobile {
    position: fixed;
    top: 80px; /* Below navbar */
    left: 0;
    width: 100%;
    background: var(--bg-page);
    display: flex;
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-md);
    transform: translateY(-150%);
    transition: transform var(--t-med) var(--ease-smooth);
    z-index: 999;
  }
  
  .nav-mobile.open {
    transform: translateY(0);
  }
  
  .nav-mobile a {
    padding: 16px;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
  }
  
  .nav-mobile a:last-child {
    border-bottom: none;
  }
  
  .nav-mobile a:hover, .nav-mobile a.active {
    color: var(--brand-teal);
    background-color: var(--bg-surface);
  }
  
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-toggle span { transition: all var(--t-fast); }
}

/* ── Section Labels ───────────────────────────────────────── */
.section-label {
  display: inline-block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-teal);
  margin-bottom: 16px;
}

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
}
.testimonial-text {
  font-size: 1rem;
  color: var(--text-primary);
  line-height: 1.6;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-teal-tint);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700; color: var(--brand-teal);
}
.testimonial-name { font-weight: 600; font-size: 0.95rem; color: var(--text-primary); }
.testimonial-role { font-size: 0.85rem; color: var(--text-muted); }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background-color: var(--bg-surface);
  padding: 80px 0 40px;
  border-top: 1px solid var(--border-subtle);
}
.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: var(--text-muted); font-size: 0.95rem; }
.footer-links a:hover { color: var(--brand-teal); }
.footer-bottom {
  margin-top: 60px;
  padding-top: 30px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}
@media (max-width: 600px) {
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

/* ── Utilities ────────────────────────────────────────────── */
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.mt-32 { margin-top: 32px; }
.mt-64 { margin-top: 64px; }

.badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--brand-teal-tint);
  color: var(--brand-teal);
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* GSAP Reveal Classes */
.reveal { opacity: 0; transform: translateY(30px); }
.reveal-left { opacity: 0; transform: translateX(-30px); }
.reveal-right { opacity: 0; transform: translateX(30px); }

/* ── Speech Bubble (Ali style origin story) ───────────────── */
.origin-story {
  display: flex;
  gap: 40px;
  align-items: center;
}
.origin-img {
  width: 400px;
  height: 500px;
  object-fit: cover;
  border-radius: var(--radius-md);
}
@media (max-width: 900px) {
  .origin-story { flex-direction: column; }
  .origin-img { width: 100%; height: 400px; }
}
