/* AfriBao — Shared Stylesheet
   Link this before page-specific <style> blocks.
   site.js handles: hamburger toggle, nav scroll shadow (.scrolled), scroll reveal, cookie consent.
*/

/* ── VARIABLES ──────────────────────────────────────────── */
:root {
  --gold:           #C8960C;
  --gold-pale:      #E8B84B;
  --emerald:        #1B6B3A;
  --emerald-bright: #2E9E5A;
  --amethyst:       #6A1B9A;
  --sapphire:       #1565C0;
  --ruby:           #B71C1C;
  --charcoal:       #1A1A1A;
  --near-black:     #0D0D0D;
  --dark-mid:       #141414;
  --warm-white:     #F2E8D5;
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
a, a:visited, a:hover, a:focus, a:active { text-decoration: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

/* ── BASE ───────────────────────────────────────────────── */
body {
  font-family: 'Outfit', sans-serif;
  color: var(--warm-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ── SKIP LINK ──────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.6rem 1.2rem;
  background: var(--gold);
  color: #0D0D0D;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 0.89rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 0 0 6px 6px;
  transition: top 0.15s;
}
.skip-link:focus-visible { top: 0; outline: none; }

/* ── FOCUS STYLES ───────────────────────────────────────── */
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── NAV ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem 4rem;
  background: #1A1A1A;
  border-bottom: 1px solid rgba(200,150,12,0.12);
  transition: box-shadow 0.25s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.45); }
.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.8rem; letter-spacing: 0.1em;
  text-decoration: none;
}
.nav-logo .afri { color: var(--warm-white); }
.nav-logo .bao  { color: var(--gold); }
.nav-links { display: flex; gap: 0.4rem; align-items: center; }
.nav-links a {
  font-family: 'Outfit', sans-serif;
  font-size: 0.89rem; font-weight: 500;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--warm-white); text-decoration: none;
  padding: 0.5rem 1rem;
  opacity: 0.7; transition: opacity 0.2s, color 0.2s;
}
.nav-links a:hover { opacity: 1; color: var(--gold); }
.nav-links a.active-page {
  color: #fff !important; opacity: 1;
  text-decoration: underline !important;
  text-decoration-color: var(--gold) !important;
  text-decoration-thickness: 2px !important;
  text-underline-offset: 5px !important;
}
.nav-cta {
  padding: 8px 18px !important;
  background: var(--gold) !important;
  color: #0D0D0D !important; opacity: 1 !important;
  border-radius: 6px; border: none !important; font-weight: 700;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}
.nav-cta:hover { background: #E8B84B !important; color: #0D0D0D !important; }

/* ── HAMBURGER ──────────────────────────────────────────── */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  padding: 0.5rem; background: none; border: none; cursor: pointer;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--warm-white); transition: transform 0.3s, opacity 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 600px) {
  nav { padding: 1rem 1.5rem; }
  .hamburger { display: flex; }
  .nav-links {
    display: none; position: fixed; top: 58px; left: 0; right: 0;
    background: #1A1A1A; flex-direction: column; align-items: flex-start;
    padding: 1.5rem; gap: 0;
    border-top: 1px solid rgba(200,150,12,0.15); z-index: 99;
  }
  .nav-links.open { display: flex; }
  .nav-links a {
    width: 100%; padding: 0.9rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 0.88rem;
  }
  .nav-cta { margin-top: 0.5rem; border-bottom: none !important; white-space: nowrap !important; }
}

/* ── SCROLL REVEAL ──────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.9s cubic-bezier(0.25,0.46,0.45,0.94),
              transform 0.9s cubic-bezier(0.25,0.46,0.45,0.94);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ── FOOTER ─────────────────────────────────────────────── */
#footer {
  background: #0A0A0A;
  border-top: 1px solid rgba(200,150,12,0.18);
  padding: 2.5rem 4rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem; letter-spacing: 0.12em; text-decoration: none;
}
.footer-afri { color: var(--warm-white); }
.footer-bao  { color: var(--gold); }
.footer-tagline {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-style: italic; font-size: 0.84rem;
  color: rgba(242,232,213,0.45);
}
.footer-copy { font-size: 0.79rem; letter-spacing: 0.06em; color: rgba(242,232,213,0.3); }
.footer-copy a { color: rgba(200,150,12,0.55); }
.footer-copy a:hover { color: var(--gold); }
.footer-sitenav {
  position: static !important; display: flex !important; flex-wrap: wrap;
  justify-content: center; background: none !important; border-bottom: none !important;
  padding: 0 !important; margin-top: 1rem; padding-top: 0.75rem !important;
  border-top: 1px solid rgba(200,150,12,0.1) !important; width: 100%; z-index: auto !important;
}
.footer-sitenav a {
  color: rgba(200,150,12,0.38); font-size: 0.71rem;
  letter-spacing: 0.09em; text-transform: uppercase;
  font-family: 'Outfit', sans-serif; white-space: nowrap; transition: color 0.2s;
}
.footer-sitenav a:hover { color: rgba(200,150,12,0.7); }
.footer-sitenav a:not(:last-child)::after { content: "·"; color: rgba(200,150,12,0.18); margin: 0 0.5rem; }
@media (max-width: 768px) {
  #footer { padding: 2rem 1.5rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}

/* ── WHATSAPP BUTTON ─────────────────────────────────────── */
#wa-btn {
  position: fixed; bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 8000; transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
#wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(37,211,102,0.6); }
@media (max-width: 480px) { #wa-btn { bottom: 16px; right: 16px; width: 50px; height: 50px; } }
