/* ==========================================================================
   Afriikanet — stylesheet
   Theme: white & gold | Font: Montserrat (headings 400 weight globally)
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --cream: #FFFCF6;
  --cream-2: #F6EACB;
  --gold: #C9971F;
  --gold-light: #E9BE4C;
  --gold-dark: #8A6417;
  --gold-deep: #B9860B;
  --ink: #23201A;
  --ink-soft: #5B5342;
  --ink-deep: #112B5C;
  --muted: #7A6E58;
  --line: #ECE3CE;
  --panel-ring: #1C3B66;
  --shadow: 0 20px 60px -20px rgba(138, 100, 23, 0.25);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1200px;
  --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-weight: 400;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font);
  font-weight: 400; /* global heading weight */
  line-height: 1.15;
  margin: 0 0 0.5em;
  color: var(--ink);
  letter-spacing: -0.01em;
}

p { margin: 0 0 1em; color: var(--ink-soft); line-height: 1.7; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: var(--font); cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section[id] { scroll-margin-top: 76px; }
.hero[id] { scroll-margin-top: 0; }

.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--gold);
  color: #fff; padding: 12px 18px; z-index: 1000; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 14px 26px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
  border: 1px solid transparent; white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(201, 151, 31, 0.55);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -8px rgba(201, 151, 31, 0.65); }
.btn--ghost { background: transparent; color: var(--gold-dark); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--gold); background: var(--cream); }
.btn--sm { padding: 10px 18px; font-size: 13px; }

/* ---------------- Header ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 200;

  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; color: var(--ink); }
.brand-mark { border-radius: 8px; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink-soft); transition: color .2s ease; position: relative; padding: 8px 0 10px; white-space: nowrap; }
.nav-links a:hover, .nav-links a.active, .nav-links a[aria-current="page"] { color: var(--gold-dark); }
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
}
.nav-links a.active::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); opacity: 1; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 40px; height: 36px; align-items: center; justify-content: center; color: var(--ink);
}

.header-ceo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  margin-left: 6px;
  padding: 8px 0;
}

.header-ceo__role {
  font-weight: 700;
  color: var(--gold-dark);
}

@media (max-width: 980px) {
  .header-ceo {
    display: none;
  }
}


/* ---------------- WhatsApp float ---------------- */
.whatsapp-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 300;
  display: flex; align-items: center; gap: 10px;
  background: #1EBE5D; color: #fff; padding: 14px; border-radius: 999px;
  box-shadow: 0 14px 30px -10px rgba(30, 190, 93, 0.6);
  transition: padding .25s ease, box-shadow .2s ease;
}
.whatsapp-cta-text { max-width: 0; overflow: hidden; white-space: nowrap; font-size: 13px; font-weight: 600; transition: max-width .3s ease; }
.whatsapp-float:hover { padding: 14px 18px; }
.whatsapp-float:hover .whatsapp-cta-text { max-width: 160px; }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: 100px 0; overflow: hidden; background: var(--cream); }
.hero-svg-bg { position: absolute; inset: 0; z-index: 0; }
.hero-svg-bg svg { width: 100%; height: 100%; display: block; }
.hero-inner { position: relative; z-index: 2; }
.hero-copy { max-width: 640px; text-align: left; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dark);
  background: rgba(201, 151, 31, 0.1); padding: 7px 14px; border-radius: 999px;
}
.hero-title { font-size: clamp(34px, 5vw, 56px); margin-bottom: 16px; }
.hero-title .line { display: inline; }
.hero-sub { font-size: 17px; max-width: 560px; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; align-items: stretch; justify-content: flex-start; }
.hero-actions .btn { min-width: 150px; flex: 1 1 220px; }
.hero-actions .btn--ghost { min-width: 140px; }
@media (max-width: 1280px) {
  .hero-actions .btn { min-width: 0; flex: 1 1 160px; }
}
@media (max-width: 1024px) {
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (max-width: 1280px) {
  .hero-actions .btn { min-width: 0; flex: 1 1 220px; }
}

/* --- Hero SVG: globe, dotted chicken-wire mesh, stars, comets --- */
.globe-spin {
  transform-box: fill-box;
  transform-origin: center;
  animation: spin 6s linear infinite;
  will-change: transform;
}
.globe-wrap {
  transform: translate(720px, 450px) scale(1.25);
  transform-box: fill-box;
  transform-origin: center;
}
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.globe-grid {
  transform-box: fill-box;
  transform-origin: center;
  animation: spinReverse 16s linear infinite;
}
@keyframes spinReverse { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }

/* dotted, animated chicken-wire mesh spanning the full hero */
.wiremesh {
  fill: none;
  stroke: var(--gold-dark);
  stroke-width: 2;
  stroke-linejoin: round;
  opacity: 0.45;
  stroke-dasharray: 2 8;
  animation: none !important;
}
/* base network appearance: thin, slightly darker, high contrast */
.network-nodes {
  pointer-events: none;
}
.network-nodes line,
.network-nodes circle {
  stroke: rgba(184,134,11,0.95);
  stroke-width: 1.1;
  opacity: 0.92;
}
.network-nodes line { opacity: 0.92; stroke-width: 1.1; }
.network-nodes circle { opacity: 0.85; }

/* hub-and-spoke styles */
.network-nodes .spoke {
  stroke: rgba(184,134,11,0.95);
  stroke-width: 1.1;
  stroke-linecap: round;
  opacity: 0.75;
}
.network-nodes .link {
  stroke: rgba(184,134,11,0.8);
  stroke-width: 0.8;
  stroke-linecap: round;
}
.network-nodes .node {
  fill: var(--gold);
  stroke: rgba(184,134,11,0.9);
  stroke-width: 0.6;
  opacity: 0.8;
}
.network-nodes .hub {
  fill: #8A6417;
  stroke: #C9971F;
  stroke-width: 1.2;
  opacity: 0.95;
}

.network-nodes .hub { cursor: pointer; }
.network-nodes .hub:focus { outline: none; stroke-width: 1.8; filter: drop-shadow(0 6px 16px rgba(233,190,76,0.25)); }

/* interactive highlights */
.network-nodes .node,
.network-nodes .spoke,
.network-nodes .link {
  transition: stroke-width 180ms ease, opacity 180ms ease, transform 180ms ease, stroke 180ms ease, filter 180ms ease;
}
.network-nodes .node--active {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(1.6);
  stroke-width: 1.6;
  filter: drop-shadow(0 6px 14px rgba(233,190,76,0.16));
  opacity: 1;
}
.network-nodes .spoke--active {
  stroke-width: 2.4;
  stroke: rgba(233,190,76,0.98);
  opacity: 1;
  stroke-dasharray: none;
}
.network-nodes .link--bold {
  stroke-width: 2.4;
  stroke: rgba(233,190,76,0.96);
  opacity: 1;
}

@keyframes dashMove { to { stroke-dashoffset: -220; } }

.network-nodes .spoke {
  animation: none !important;
  opacity: 1 !important;
}
.network-nodes .spoke--active {
  stroke-width: 2.4;
  stroke: rgba(233,190,76,0.98);
  opacity: 1;
  stroke-dasharray: none;
}
@keyframes dashMarch { to { stroke-dashoffset: -400; } }

/* stars */
.star { fill: var(--gold-light); transform-box: fill-box; transform-origin: center; animation: twinkle 3.6s ease-in-out infinite; }
.star--sm { fill: var(--gold); }
@keyframes twinkle {
  0%, 100% { opacity: 0.25; transform: scale(0.75); }
  50% { opacity: 1; transform: scale(1.05); }
}

/* comets */
.comet { transform-box: fill-box; animation: fly 9s linear infinite; opacity: 0; }
.comet-a { animation-delay: 0s; }
.comet-b { animation-delay: 3s; }
.comet-c { animation-delay: 6s; }
@keyframes fly {
  0% { transform: translateX(-60px); opacity: 0; }
  8% { opacity: 1; }
  45% { opacity: 1; }
  60% { transform: translateX(1500px); opacity: 0; }
  100% { transform: translateX(1500px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .globe-spin, .globe-grid, .wiremesh, .star, .comet {
    animation: none !important;
  }
}

/* ---------------- Generic section ---------------- */
section { padding: 68px 0; }
.section-alt { background: var(--cream); }
.section-head { max-width: 640px; margin: 0 0 40px; text-align: left; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 500; }
.section-head p { font-size: 15.5px; margin-top: 10px; }
#faq .section-head, #pricing .section-head { margin-bottom: 42px; }

/* ---------------- Grid / Cards ---------------- */
.grid { display: grid; gap: 24px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
/* ---------------- Glassmorphism (applied globally to panel-style surfaces; navbar stays solid) ---------------- */
.card,
.plan,
.faq-item,
.about-badge,
.step,
.cookie-consent {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(246,248,253,0.95));
  backdrop-filter: blur(16px) saturate(170%);
  -webkit-backdrop-filter: blur(16px) saturate(170%);
  border: 1px solid rgba(28, 59, 102, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 58px -36px rgba(28, 59, 102, 0.12);
}

.card {
  border-radius: var(--radius-lg);
  padding: 30px 26px; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -24px rgba(28, 59, 102, 0.12); border-color: rgba(28, 59, 102, 0.18); }
.card-icon {
  width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(28,59,102,0.12), rgba(28,59,102,0.04));
  color: var(--ink-deep); margin-bottom: 16px;
}
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card p { font-size: 14.5px; margin-bottom: 0; }

.quote-mark { font-size: 46px; color: var(--gold-light); line-height: 1; font-family: Georgia, serif; }
.quote-block { font-size: 15.5px; color: var(--ink); margin: 10px 0 18px; }
.quote-attr { font-size: 14px; color: #112B5C; margin-bottom: 0; font-weight: 600; }

/* ---------------- Steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step { padding: 26px 22px; border-left: 3px solid var(--gold); border-radius: 0 var(--radius) var(--radius) 0; }
.step-num { font-size: 13px; font-weight: 600; color: var(--gold-dark); letter-spacing: 0.06em; }
.step h4 { font-size: 16.5px; margin: 10px 0 8px; font-weight: 500; }
.step p { font-size: 14px; margin-bottom: 0; }

/* ---------------- Pricing ---------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.plan--featured { border-color: rgba(28, 59, 102, 0.18); box-shadow: 0 16px 42px -26px rgba(28, 59, 102, 0.12); position: relative; transform: translateY(-6px); }
.plan:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -24px rgba(28, 59, 102, 0.12); border-color: rgba(28, 59, 102, 0.18); }
.plan-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-deep); background: rgba(28,59,102,0.08); padding: 6px 12px; border-radius: 999px;
  display: inline-block; margin-bottom: 14px; width: fit-content;
}
.plan h3 { font-size: 21px; margin-bottom: 8px; }
.plan-desc { font-size: 14px; margin-bottom: 18px; }
.plan ul { display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; flex: 1; }
.plan li { font-size: 14px; color: var(--ink-soft); padding-left: 22px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 12px; height: 12px; border-radius: 50%;
  background: rgba(28,59,102,0.12); border: 1px solid rgba(28,59,102,0.2);
}

/* pricing table removed - reverted to plan cards only */

/* ---------------- FAQ ---------------- */
#faq .section-head { margin-bottom: 42px; }
.faq-list { max-width: 900px; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.faq-item { overflow: visible; }
.faq-question {
  width: 100%; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  background: none; border: none; padding: 20px 22px; text-align: left; font-size: 15px; font-weight: 500; color: var(--ink);
}
.faq-icon { transition: transform .25s ease; color: var(--gold-dark); flex: 0 0 auto; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; }
.faq-answer p { padding: 0 22px 16px; font-size: 14.5px; margin: 0; }
.faq-item.open .faq-answer { max-height: 260px; padding: 0 22px 20px; }

/* ---------------- About ---------------- */
#about { padding: 80px 0; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: center; }
.about-copy h2 { font-size: clamp(24px, 3vw, 32px); }
.about-director-note { margin-top: 6px; font-size: 15.5px; }
.about-director-name { color: var(--gold-dark); font-weight: 800; }
.about-badges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.about-badge {

  padding: 8px 0; text-align: center; background: transparent; border: none; box-shadow: none;
}
.about-badge b { display: block; font-size: 32px; color: var(--ink-deep); font-weight: 700; margin-bottom: 6px; }
.about-badge span { font-size: 13px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.08em; }

/* ---------------- CTA ---------------- */
.cta-section { padding: 60px 0 100px; }
.cta-band {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,246,251,0.95));
  border: 1px solid rgba(28, 59, 102, 0.16);
  border-radius: 28px; padding: 56px 50px; display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: nowrap; color: var(--ink);
}
.cta-band h2 { color: var(--ink); font-size: clamp(22px, 3vw, 30px); margin-bottom: 8px; font-weight: 500; }
.cta-band p { color: var(--ink-soft); margin-bottom: 0; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* keep contact actions beside heading on typical laptop widths */
.cta-band > div:first-child { flex: 1 1 60%; }
.cta-band .cta-actions { flex: 0 0 auto; }
@media (max-width: 980px) {
  .cta-band { flex-wrap: wrap; }
  .cta-band > div:first-child { flex: 1 1 100%; }
  .cta-band .cta-actions { width: 100%; justify-content: center; margin-top: 12px; }
}

/* ---------------- Footer ---------------- */
.site-footer { background: var(--cream); border-top: 1px solid var(--line); padding: 70px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 50px; }
.footer-brand p { font-size: 14px; margin: 14px 0 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; color: var(--gold-dark); transition: background .2s ease;
}
.footer-social a:hover { background: var(--gold); color: #fff; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 4px; font-weight: 600; }
.footer-col a { font-size: 14px; color: var(--ink-soft); }
.footer-col a:hover { color: var(--gold-dark); }
.footer-bottom {
  border-top: 1px solid var(--line); padding: 22px 0; display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); flex-wrap: wrap; gap: 10px;
}

/* ---------------- Cookie consent ---------------- */
.cookie-consent {
  position: fixed; left: 20px; right: 20px; bottom: 20px; max-width: 620px; margin: 0 auto;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(244,246,251,0.95));
  border: 1px solid rgba(28, 59, 102, 0.16);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px -20px rgba(28, 59, 102, 0.12);
  padding: 22px 24px; z-index: 500;
  transform: translateY(140%); opacity: 0; transition: transform .5s ease, opacity .5s ease;
  pointer-events: none;
}
.cookie-consent.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-content p { font-size: 13.5px; margin-bottom: 16px; color: var(--ink); }
.cookie-content a { color: var(--panel-ring); text-decoration: underline; }
.cookie-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------------- Legal pages ---------------- */
.legal-page { padding: 150px 0 100px; max-width: 780px; margin: 0 auto; }
.legal-page h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 10px; }
.legal-page .updated { font-size: 13px; color: var(--muted); margin-bottom: 40px; }
.legal-page h2 { font-size: 19px; font-weight: 500; margin-top: 40px; }
.legal-page p, .legal-page li { font-size: 15px; }
.legal-page ul { padding-left: 20px; list-style: disc; }
.legal-page li { margin-bottom: 8px; }

/* ---------------- Responsive ---------------- */
@media (max-width: 980px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .faq-list { grid-template-columns: 1fr; }
  .plan--featured { transform: none; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-badges { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 90px 0 70px; }
  .hero-copy { max-width: 100%; }
  .hero-sub { max-width: 100%; }
  .hero-actions .btn { min-width: 150px; }
  .globe-wrap { transform: translate(720px, 450px) scale(0.95); }
}

@media (max-width: 760px) {
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 24px; gap: 16px; transform: translateY(-8px);
    opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav-links.open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .nav-toggle { display: flex; }
  .nav-cta .btn--primary { display: none; }
  .nav-cta .btn--ghost { display: inline-flex; order: 0; }
  .hero { padding: 80px 0 60px; }
  .hero-inner { padding-top: 8px; }
  .hero-actions { justify-content: center; }
  .hero-actions .btn { flex: 1 1 100%; min-width: 0; }
  .hero-actions .btn--ghost { width: auto; }
  .hero .hero-sub { max-width: 100%; }
  .hero-svg-bg svg { min-height: 700px; }
  .globe-wrap { transform: translate(720px, 450px) scale(0.7); }
  .grid--4, .grid--3, .steps, .faq-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 26px; }
  /* mobile: disable heavy network animations and remove mask for performance */
  .network-nodes .spoke,
  .network-nodes .spoke--active,
  .network-nodes .link--bold,
  .network-nodes .node--active {
    animation: none !important;
    transition: none !important;
  }
  .network-nodes { -webkit-mask-image: none; mask-image: none; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .about-badges { grid-template-columns: 1fr; }
  .cookie-consent { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
}
