/* ============================================================
   Wall Street Africa Inc — shared site styles
   Used by: index.html, bi.html, events.html,
            bullish-africa.html, contact.html
   Page-specific styles remain in each page's inline <style>.
   ============================================================ */

/* ---- Fonts ---- */
@font-face {
  font-family: 'TexGyreTermes';
  src: url('../Fonts/texgyretermes-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'TexGyreTermes';
  src: url('../Fonts/texgyretermes-italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Roboto';
  src: url('../Fonts/Roboto-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'RobotoCondensed';
  src: url('../Fonts/RobotoCondensed-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Brand tokens ---- */
:root {
  --midnight:       #0f0c1a;  /* primary dark surface */
  --midnight-deep:  #0a0814;  /* recessed dark sections, full-bleed base */
  --violet:         #481745;
  --red:            #ea3c34;
  --orange:         #f26226;
  --yellow:         #fdee21;
  --dark-gray:      #747578;
  --mid-gray:       #c6c5c7;

  /* Light "reading/event" mode surfaces — used only by about.html & bullish-africa.html.
     Keep these two as the single off-white pair so light pages read as siblings. */
  --surface-light:      #ffffff;
  --surface-light-alt:  #f8f7f5;
  --surface-light-deep: #f0eeec;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 60px; }

body {
  background-color: #0f0c1a;
  color: #ffffff;
  font-family: 'Roboto', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: 'TexGyreTermes', Georgia, serif;
  font-weight: 700;
}

/* ---- Accessibility ---- */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--red);
  color: white;
  padding: 8px 16px;
  z-index: 9999;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: top 0.3s;
}
.skip-link:focus { top: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---- Utilities ---- */
.label {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}

.caption {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.sunrise-text {
  background: linear-gradient(to bottom, #ea3c34, #f26226, #fdee21);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---- Shared stats row (used by about, media, events) ---- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5rem;
}
.stats-item {
  text-align: center;
  padding: 1rem;
}
.stats-number {
  font-family: 'TexGyreTermes', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1;
  background: linear-gradient(to bottom, var(--red), var(--orange), var(--yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-label {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-gray);
  margin-top: 0.7rem;
}

.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(234,60,52,0.4), transparent);
}

.stat-bar {
  border-left: 2px solid;
  border-image: linear-gradient(to bottom, #ea3c34, #fdee21) 1;
  padding-left: 1.5rem;
}

/* ---- Nav ---- */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  height: 56px;
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

nav.scrolled {
  /* Transparent scrim: a faint top-down darkening + light blur keeps the nav
     visually transparent on every page while keeping the light links legible
     over light sections (no solid bar). */
  background: linear-gradient(to bottom, rgba(15, 12, 26, 0.5), rgba(15, 12, 26, 0));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.nav-inner {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  height: 30px;
  display: block;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.8; }

.nav-links { display: flex; align-items: center; gap: 2.5rem; }

.nav-link {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-link:hover {
  color: #fff;
  transform: translateY(-1px);
}
.nav-link:hover::after { width: 100%; }
.nav-link.active { color: #fff; }
.nav-link.active::after { width: 100%; }

/* ---- Buttons ---- */
.btn-primary {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: linear-gradient(to right, #ea3c34, #f26226);
  color: #ffffff;
  padding: 0.6rem 1.6rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  border-radius: 2px;
  box-shadow: 0 2px 8px rgba(234, 60, 52, 0.3);
}
.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(234, 60, 52, 0.4);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.btn-outline {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid rgba(234,60,52,0.35);
  color: var(--mid-gray);
  padding: 0.6rem 1.6rem;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
  background: transparent;
  border-radius: 2px;
}
.btn-outline:hover {
  border-color: #ea3c34;
  color: #fff;
  background: rgba(234, 60, 52, 0.1);
}
.btn-outline:focus {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

/* ---- Hamburger ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 1001;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: #fff;
  transition: all 0.3s ease;
}
.hamburger:hover span { background: var(--red); }
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: rgba(15,12,26,0.98);
  border-bottom: 1px solid rgba(234,60,52,0.15);
  padding: 1.5rem 2rem 2rem;
  gap: 1.4rem;
  animation: slideDown 0.3s ease;
}
.mobile-menu.open { display: flex; }

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
}

/* ---- Events Dropdown ---- */
.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-dropdown-toggle {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  transition: color 0.2s ease;
  position: relative;
}
.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--red);
  transition: width 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-toggle { color: #fff; }
.nav-dropdown:hover .nav-dropdown-toggle::after { width: 100%; }
.nav-dropdown-toggle svg { transition: transform 0.2s ease; }
.nav-dropdown:hover .nav-dropdown-toggle svg { transform: rotate(180deg); }

.nav-dropdown-panel {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: rgba(15, 12, 26, 0.97);
  border: 1px solid rgba(234, 60, 52, 0.15);
  border-radius: 3px;
  min-width: 210px;
  padding: 0.5rem 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 999;
}
.nav-dropdown-panel::before {
  content: '';
  position: absolute;
  top: -22px;
  left: 0;
  width: 100%;
  height: 22px;
}
.nav-dropdown:hover .nav-dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-item {
  display: block;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mid-gray);
  text-decoration: none;
  padding: 0.65rem 1.2rem;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.nav-dropdown-item:hover { color: #fff; background: rgba(234, 60, 52, 0.08); }
.nav-dropdown-item.active { color: var(--red); }

/* ---- Cards ---- */
.card {
  background: rgba(72,23,69,0.1);
  border: 1px solid rgba(234,60,52,0.14);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(234,60,52,0.05) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover {
  border-color: rgba(234,60,52,0.35);
  background: rgba(72,23,69,0.18);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
.card:hover::before { opacity: 1; }

/* ---- Footer ---- */
footer {
  background: #070510;
  border-top: 3px solid;
  border-image: linear-gradient(90deg, #ea3c34, #f26226, #fdee21) 1;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 140px;
  background: radial-gradient(ellipse at 50% 0%, rgba(242,98,38,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}
.footer-link {
  color: var(--mid-gray);
  text-decoration: none;
  transition: color 0.2s ease;
}
.footer-link:hover { color: #fff; }

@media (min-width: 640px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}

/* ---- Section Animations ---- */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section, .content-section {
  position: relative;
}

/* Brand gradient dividers between homepage sections */
.section::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(234, 60, 52, 0.45),
    rgba(242, 98, 38, 0.45),
    rgba(253, 238, 33, 0.2),
    transparent
  );
  pointer-events: none;
}

.page-header { animation: fadeInUp 0.8s ease-out; }

/* ---- Shared section heading pattern ---- */
.section-head {
  text-align: center;
  margin-bottom: 3rem;
}
.section-head h2 {
  font-family: 'TexGyreTermes', Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.2;
  max-width: 640px;
  margin: 0.8rem auto 0;
}
.section-lede {
  color: var(--mid-gray);
  font-size: 0.95rem;
  line-height: 1.75;
  max-width: 580px;
  margin: 1.2rem auto 0;
}

/* ---- Shared pillar-page hero ---- */
.pillar-hero {
  min-height: 55vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 9rem 2rem 5rem;
  position: relative;
  overflow: hidden;
  background-color: var(--midnight);
}
.pillar-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}
.pillar-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
  width: 100%;
}
.pillar-hero h1 {
  font-family: 'TexGyreTermes', Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.1;
  margin: 1rem 0 1.2rem;
  color: #fff;
}
.pillar-hero .hero-lede {
  color: var(--mid-gray);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto;
}

/* ---- Phone link ---- */
.phone-link {
  color: #c6c5c7;
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}
.phone-link:hover { color: var(--red); }

/* ---- LinkedIn link (red accent) ---- */
.linkedin-link {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.linkedin-link:hover { color: #fff; }

/* ---- Media card CTA ---- */
.media-link {
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  text-decoration: none;
  transition: color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.media-link:hover { color: #fff; }

/* ---- Media format chip (Publication / Podcast / Newsletter pill) ---- */
.media-format {
  display: inline-block;
  font-family: 'RobotoCondensed', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: rgba(234,60,52,0.08);
  border: 1px solid rgba(234,60,52,0.22);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  margin-bottom: 1.5rem;
}

/* ============================
   Leader Cards (used on About; reusable on future Leadership pages)
   ============================ */
.leader-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin: 2.5rem 0 4rem;
}

.leader-card {
  position: relative;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.leader-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--red);
  z-index: 1;
}

.leader-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.12);
}

.leader-portrait {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.4s ease;
}

.leader-card:hover .leader-portrait,
.leader-card:focus-within .leader-portrait {
  filter: grayscale(0%);
}

.leader-body {
  position: relative;
  padding: 1.5rem 1.5rem 1.25rem;
}

.leader-name {
  font-family: 'TexGyreTermes', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.85rem;
  line-height: 1.2;
}

.leader-rule {
  width: 36px;
  height: 1px;
  background: var(--red);
  border: none;
  margin: 0 0 0.85rem;
}

.leader-title {
  font-family: 'RobotoCondensed', 'Roboto', sans-serif;
  font-size: 0.85rem;
  color: var(--mid-gray);
  line-height: 1.5;
  margin: 0;
  padding-right: 3rem;
}

.leader-linkedin {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--dark-gray);
  transition: color 0.2s ease;
  touch-action: manipulation;
}

.leader-linkedin:hover,
.leader-linkedin:focus-visible {
  color: var(--red);
}

.leader-linkedin svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (prefers-reduced-motion: reduce) {
  .leader-card,
  .leader-portrait {
    transition: none;
  }
  .leader-card:hover {
    transform: none;
  }
}

/* Light variant (.leader-card--light) — used by about.html (light reading surface).
   Cascading override: colours, spacings, and hover tuned for the editorial context. */
.leader-card--light {
  background: var(--surface-light);
  border-color: #e0e0e0;
}
.leader-card--light::before { display: none; }
.leader-card--light:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
  border-color: #e0e0e0;
}
.leader-card--light .leader-portrait { filter: grayscale(0%); }
.leader-card--light .leader-body { padding: 1.5rem; }
.leader-card--light .leader-name { color: #1a1a1a; margin-bottom: 0.5rem; }
.leader-card--light .leader-rule { margin-bottom: 1rem; }
.leader-card--light .leader-title { color: #5a5a5a; margin-bottom: 1rem; padding-right: 0; }
.leader-card--light .leader-linkedin { color: #747578; bottom: 0.5rem; right: 0.5rem; }

/* 700px (not the project's usual 600px): two portrait cards stacked feel cramped on narrow tablets */
@media (max-width: 700px) {
  .leader-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ============================================================
   Full-bleed image sections (SpaceX-style)
   Canonical system — image fills the section, dark gradient
   overlay carries a text panel. Used for hero / feature / CTA
   moments ONLY (imagery is punctuation, not page wallpaper).
   Reference usage: index.html #events, events.html (3 chapters).
   Alternate overlay direction between adjacent sections
   (left → left → right) for editorial rhythm.
   ============================================================ */
.events-fb {
  position: relative;
  overflow: hidden;
  background: var(--midnight-deep);
  display: flex;
  align-items: center;
}
.events-fb-hero    { min-height: 88vh; }
.events-fb-section { min-height: 82vh; }
.events-fb-next    { min-height: 72vh; }
/* Compact variant for a single CTA block inside a conventional page */
.events-fb-cta     { min-height: 560px; }

.events-fb-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
}

.events-fb-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.events-fb-overlay--left {
  background: linear-gradient(
    to right,
    rgba(10,8,20,0.92) 0%,
    rgba(10,8,20,0.72) 35%,
    rgba(10,8,20,0.30) 70%,
    rgba(10,8,20,0.12) 100%
  );
}
.events-fb-overlay--right {
  background: linear-gradient(
    to left,
    rgba(10,8,20,0.92) 0%,
    rgba(10,8,20,0.72) 35%,
    rgba(10,8,20,0.30) 70%,
    rgba(10,8,20,0.12) 100%
  );
}

.events-fb-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 7rem 2rem;
}
.events-fb-text { max-width: 620px; }
.events-fb-text--right { margin-left: auto; }

.events-fb-eyebrow { margin-bottom: 1.25rem; }
.events-fb-headline {
  font-family: 'TexGyreTermes', Georgia, serif;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: #fff;
  margin-bottom: 1.5rem;
  font-weight: 700;
}
.events-fb-lede {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

@media (max-width: 600px) {
  .pillar-hero { padding: 7rem 1.25rem 3.5rem; }
  .events-fb-hero    { min-height: 75vh; }
  .events-fb-section { min-height: 70vh; }
  .events-fb-next    { min-height: 60vh; }
  .events-fb-cta     { min-height: 520px; }

  /* Bottom-darken on mobile so the overlay covers wherever text wraps,
     regardless of where the image subject sits. */
  .events-fb-overlay--left,
  .events-fb-overlay--right {
    background: linear-gradient(
      to bottom,
      rgba(10,8,20,0.45) 0%,
      rgba(10,8,20,0.72) 50%,
      rgba(10,8,20,0.92) 100%
    );
  }
  .events-fb-content { padding: 5rem 1.25rem; }
  .events-fb-text--right { margin-left: 0; }
}
