/* =========================================================
   AFRICA GLOBAL VISION — Main Stylesheet
   Palette: deep navy + warm gold/orange, generous whitespace
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500;600;700;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy-900: #0b1f3a;
  --navy-800: #102a4c;
  --navy-700: #163a63;
  --gold-500: #e8a13c;
  --gold-400: #f2b45c;
  --gold-050: #fdf3e3;
  --ink: #14213a;
  --ink-soft: #4a5568;
  --paper: #ffffff;
  --mist: #f6f8fb;
  --line: #e6eaf1;
  --success: #1f9d55;
  --danger: #c0392b;

  --font-head: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow-sm: 0 2px 10px rgba(11, 31, 58, 0.06);
  --shadow-md: 0 12px 32px rgba(11, 31, 58, 0.12);
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 700; line-height: 1.2; margin: 0 0 .5em; color: var(--navy-900); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { padding: 0; margin: 0; list-style: none; }
.icon { width: 1em; height: 1em; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 56px 0; }
.section--muted { background: var(--mist); }
.section--navy { background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,.82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--gold-500); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; font-size: .78rem; margin-bottom: 10px;
}
.eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--gold-500); display: inline-block; }

.section-head { max-width: 680px; margin-bottom: 46px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 26px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 2px solid transparent; cursor: pointer; transition: all .2s ease;
  font-family: var(--font-body);
}
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-400); transform: translateY(-2px); }
.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--navy-900); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--gold-500); color: var(--gold-500); }
.btn-sm { padding: 9px 18px; font-size: .85rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 800; color: var(--navy-900); }
.brand img { height: 52px; width: auto; }
.brand-name { font-size: 1.05rem; line-height: 1.15; }
.brand-name small { display: block; font-family: var(--font-body); font-weight: 500; font-size: .68rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .05em; }

.main-nav { display: flex; align-items: center; gap: 2px; flex-wrap: nowrap; }
.main-nav a {
  padding: 10px 10px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--ink);
  transition: all .15s ease; white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active { background: var(--gold-050); color: var(--navy-900); }

.nav-dropdown { position: relative; }
.nav-dropdown summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 4px;
  padding: 10px 10px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--ink);
  white-space: nowrap;
}
.nav-dropdown summary::-webkit-details-marker { display: none; }
.nav-dropdown summary .icon-sm { width: 13px; height: 13px; }
.nav-dropdown summary:hover, .nav-dropdown summary.active { background: var(--gold-050); color: var(--navy-900); }
.nav-dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; min-width: 210px; z-index: 50;
}
[dir="rtl"] .nav-dropdown-menu { left: auto; right: 0; }
.nav-dropdown-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .85rem; font-weight: 500; color: var(--ink); white-space: nowrap; }
.nav-dropdown-menu a:hover { background: var(--mist); color: var(--navy-900); }

.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-switch summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; font-size: .85rem; }
.lang-switch summary::-webkit-details-marker { display: none; }
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-md); padding: 6px; min-width: 150px; }
[dir="rtl"] .lang-menu { right: auto; left: 0; }
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; font-size: .88rem; font-weight: 500; }
.lang-menu a:hover { background: var(--mist); }
.cart-link { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line); }
.cart-count { position: absolute; top: -6px; right: -6px; background: var(--gold-500); color: var(--navy-900); font-size: .68rem; font-weight: 800; width: 19px; height: 19px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
[dir="rtl"] .cart-count { right: auto; left: -6px; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle .icon { width: 26px; height: 26px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(232,161,60,.35), transparent 60%),
              linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 60%, #1c4a7c 100%);
}
.hero-inner { padding: 120px 24px 96px; max-width: var(--container); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero p.lead { color: rgba(255,255,255,.85); font-size: 1.08rem; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-art { position: relative; }
.hero-art .art-card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius); padding: 28px; backdrop-filter: blur(6px); }
.hero-art .art-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 18px; }
.hero-art .stat b { display: block; font-family: var(--font-head); font-size: 1.7rem; color: var(--gold-400); }
.hero-art .stat span { font-size: .82rem; color: rgba(255,255,255,.7); }
.hero.hero--sm .hero-inner { grid-template-columns: 1fr; padding: 80px 24px; text-align: center; }
.hero.hero--sm p.lead { max-width: 640px; margin-left: auto; margin-right: auto; }
.hero.hero--sm .hero-actions { justify-content: center; }

/* ---------- Grids / Cards ---------- */
.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; transition: all .2s ease; height: 100%;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: transparent; }
.card .card-icon {
  width: 54px; height: 54px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-050); color: var(--gold-500); margin-bottom: 18px; font-size: 1.4rem;
}
.card .card-icon .icon { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p:last-child { margin-bottom: 0; }
.card.card--link { display: block; }
.card.card--link:hover h3 { color: var(--gold-500); }

.pill-row { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { padding: 8px 16px; border-radius: 999px; background: var(--gold-050); color: var(--navy-900); font-weight: 600; font-size: .85rem; border: 1px solid rgba(232,161,60,.35); }

.check-list li { position: relative; padding-left: 30px; margin-bottom: 12px; color: var(--ink-soft); }
.check-list li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--success); }
.check-list li::after { content: '\2713'; position: absolute; left: 3px; top: 1px; color: #fff; font-size: .7rem; font-weight: 700; }
[dir="rtl"] .check-list li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .check-list li::before { left: auto; right: 0; }
[dir="rtl"] .check-list li::after { left: auto; right: 3px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.stat-block { background: var(--gold-050); border-radius: var(--radius); padding: 34px; border: 1px solid rgba(232,161,60,.3); }
.stat-block h3 { color: var(--navy-900); }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; padding: 70px 24px; border-radius: var(--radius); background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 26px; }

/* ---------- Values / numbered list ---------- */
.value-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.value-item { text-align: center; padding: 24px 14px; }
.value-item .card-icon { margin: 0 auto 16px; }

.numbered-list { counter-reset: item; }
.numbered-item { display: flex; gap: 20px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.numbered-item:last-child { border-bottom: none; }
.numbered-item .num {
  flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400);
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 700;
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field.full { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 7px; color: var(--navy-900); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-500); }
.field textarea { resize: vertical; min-height: 120px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow-sm); }
.alert { padding: 16px 18px; border-radius: var(--radius-sm); margin-bottom: 22px; font-weight: 500; font-size: .92rem; }
.alert-success { background: #e9f9ef; color: var(--success); border: 1px solid #bdeccc; }
.alert-error { background: #fdecea; color: var(--danger); border: 1px solid #f3c6c1; }
.radio-row { display: flex; gap: 16px; flex-wrap: wrap; }
.radio-card { flex: 1; min-width: 200px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; }
.radio-card input { margin-inline-end: 8px; }
.radio-card:has(input:checked) { border-color: var(--gold-500); background: var(--gold-050); }

/* ---------- Marketplace ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.filter-chip { padding: 9px 18px; border-radius: 999px; border: 1.5px solid var(--line); font-weight: 600; font-size: .85rem; color: var(--ink-soft); }
.filter-chip.active, .filter-chip:hover { border-color: var(--navy-900); color: var(--navy-900); background: var(--gold-050); }
.product-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: all .2s; display: flex; flex-direction: column; }
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); }
.product-thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); display: flex; align-items: center; justify-content: center; color: var(--gold-400); }
.product-thumb .icon { width: 46px; height: 46px; opacity: .85; }
.product-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.product-cat { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--gold-500); font-weight: 700; margin-bottom: 6px; }
.product-body h3 { font-size: 1.02rem; margin-bottom: 8px; }
.product-body p { font-size: .88rem; flex: 1; }
.product-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.product-price { font-weight: 800; color: var(--navy-900); font-family: var(--font-head); }
.product-vendor { font-size: .78rem; color: var(--ink-soft); margin-top: 4px; }

.detail-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 44px; align-items: start; }
.detail-thumb { aspect-ratio: 1/1; border-radius: var(--radius); background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); display: flex; align-items: center; justify-content: center; color: var(--gold-400); }
.detail-thumb .icon { width: 90px; height: 90px; opacity: .85; }
.qty-input { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; width: fit-content; }
.qty-input button { border: none; background: var(--mist); width: 38px; height: 38px; cursor: pointer; font-size: 1.1rem; }
.qty-input input { width: 54px; text-align: center; border: none; font-weight: 700; }

.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-soft); padding: 12px; border-bottom: 2px solid var(--line); }
.cart-table td { padding: 16px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
[dir="rtl"] .cart-table th { text-align: right; }
.cart-summary { background: var(--mist); border-radius: var(--radius); padding: 28px; }
.summary-row { display: flex; justify-content: space-between; padding: 10px 0; color: var(--ink-soft); }
.summary-row.total { font-weight: 800; color: var(--navy-900); font-size: 1.15rem; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 16px; }

/* ---------- Events ---------- */
.event-card { display: grid; grid-template-columns: 130px 1fr auto; gap: 22px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 16px; }
.event-date-badge { background: var(--navy-900); color: #fff; border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.event-date-badge .day { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; color: var(--gold-400); }
.event-date-badge .mon { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.event-card h3 { margin-bottom: 6px; }
.event-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.badge-past { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; color: var(--ink-soft); background: var(--mist); padding: 4px 10px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- Partners ---------- */
.partner-logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 60px; }
.partner-logo-box { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 26px; display: flex; align-items: center; justify-content: center; height: 100px; color: var(--ink-soft); font-weight: 700; }
.partner-profile { display: grid; grid-template-columns: 220px 1fr; gap: 30px; align-items: flex-start; padding: 34px 0; border-bottom: 1px solid var(--line); }
.partner-profile:last-child { border-bottom: none; }
.partner-mark { width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); background: var(--mist); display: flex; align-items: center; justify-content: center; color: var(--ink-soft); font-weight: 700; text-align: center; padding: 14px; }
.commitment-box { margin-top: 14px; background: var(--gold-050); border-inline-start: 4px solid var(--gold-500); padding: 14px 18px; border-radius: 8px; font-style: italic; color: var(--navy-900); }
.notice-box { background: #fff8ec; border: 1px dashed var(--gold-500); color: #7a5416; padding: 16px 20px; border-radius: var(--radius-sm); font-size: .9rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: rgba(255,255,255,.78); padding-top: 70px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 50px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-brand img { height: 46px; }
.footer-brand span { font-family: var(--font-head); font-weight: 800; color: #fff; font-size: 1.05rem; }
.site-footer h4 { color: #fff; font-family: var(--font-head); font-size: .95rem; margin-bottom: 18px; }
.site-footer a:hover { color: var(--gold-400); }
.footer-links li { margin-bottom: 10px; font-size: .9rem; }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 14px; font-size: .88rem; align-items: flex-start; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--gold-400); flex: none; margin-top: 2px; }
.social-row { display: flex; gap: 10px; margin-top: 16px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); display: flex; align-items: center; justify-content: center; }
.social-row .icon { width: 16px; height: 16px; }
.footer-bottom { padding: 22px 0; text-align: center; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- RTL ---------- */
[dir="rtl"] body { font-family: var(--font-body); }
[dir="rtl"] .check-list, [dir="rtl"] .footer-contact { direction: rtl; }
[dir="rtl"] .eyebrow::before { order: 2; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; padding-top: 40px;}
  .hero p.lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-6 { grid-template-columns: repeat(3, 1fr); }
  .value-row { grid-template-columns: repeat(3, 1fr); }
  .two-col, .detail-layout, .footer-grid, .partner-logo-wall { grid-template-columns: 1fr 1fr; }
  .partner-profile { grid-template-columns: 140px 1fr; }
}
@media (max-width: 760px) {
  .main-nav, .header-actions .lang-switch span.label { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 8px; }
  .grid-2, .grid-3, .grid-4, .grid-6, .value-row, .two-col, .detail-layout, .footer-grid, .partner-logo-wall { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .event-card { grid-template-columns: 1fr; text-align: center; }
  .event-date-badge { justify-self: center; width: 90px; }
  .partner-profile { grid-template-columns: 1fr; text-align: center; }
  .partner-mark { max-width: 160px; margin: 0 auto; }

  /* Mobile nav drawer */
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: 78%; max-width: 320px; height: 100vh;
    background: #fff; flex-direction: column; align-items: stretch; padding: 90px 24px 24px;
    transform: translateX(100%); transition: transform .25s ease; z-index: 99; box-shadow: var(--shadow-md);
  }
  [dir="rtl"] .main-nav { inset: 0 auto 0 0; transform: translateX(-100%); }
  .main-nav.open { transform: translateX(0); display: flex; }
  .main-nav a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-dropdown summary { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav .nav-dropdown-menu { position: static; box-shadow: none; border: none; padding: 0 0 6px 18px; min-width: 0; }
  .main-nav .nav-dropdown-menu a { border-bottom: none; padding: 10px 0; }
  .main-nav .mega-menu { position: static; box-shadow: none; border: none; padding: 0 0 10px 18px; min-width: 0; grid-template-columns: 1fr; transform: none; }
}

/* ---------- Hero Slider (3 slides, auto-advancing) ---------- */
.hero-slider-wrap { position: relative; }
.hero-slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .6s ease; background-size: cover; background-position: center; border-radius: 20px; overflow: hidden;
}
.hero-slide::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(120deg, rgba(0,0,0,.80) 0%, rgba(0,0,0,.62) 45%, rgba(0,0,0,.30) 100%);
  z-index: 0;
}
.hero-slide > * { position: relative; z-index: 1; }
.hero-slide.active { opacity: 1; visibility: visible; pointer-events: auto; position: relative; }
.hero-slide h1 { color: #fff; margin-bottom: 20px; min-height: 3.6em; }
.hero-slide p.lead { color: rgba(255,255,255,.86); font-size: 1.08rem; max-width: 540px; min-height: 4.5em; }
.hero-slide .hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }

.slider-controls { display: flex; align-items: center; gap: 16px; margin-top: 36px; }

.slider-dots { display: flex; gap: 10px; }
.slider-dots button {
  width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.6);
  background: transparent; padding: 0; cursor: pointer; transition: all .2s ease;
}
.slider-dots button.active { background: var(--gold-500); border-color: var(--gold-500); width: 26px; border-radius: 6px; }

.slider-arrow {
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); color: #fff; display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .2s ease; flex: none;
}
.slider-arrow:hover { background: rgba(255,255,255,.2); }
.slider-arrow .icon { width: 18px; height: 18px; }
.slider-arrow.prev .icon { transform: scaleX(-1); }

@media (max-width: 980px) {
  .hero-slide p.lead { margin-left: auto; margin-right: auto; }
  .hero-slide .hero-actions { justify-content: center; }
  .slider-controls { justify-content: center; }
}

/* ---------- Zigzag alternating image/text sections ---------- */
.zigzag { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.zigzag + .zigzag { margin-top: 80px; }
.zigzag.reverse { direction: rtl; }
.zigzag.reverse > * { direction: ltr; }
.zigzag-media { display: flex; align-items: center; justify-content: center; }
.zigzag-media img { width: 100%; max-width: 420px; }
.zigzag-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--navy-900); color: var(--gold-400); font-family: var(--font-head); font-weight: 700; font-size: .9rem; margin-bottom: 14px; }

/* ---------- Horizontal scroll row (featured products) ---------- */
.scroll-row { display: flex; gap: 22px; overflow-x: auto; padding: 6px 4px 22px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.scroll-row::-webkit-scrollbar { height: 8px; }
.scroll-row::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
.scroll-row .product-card { flex: 0 0 270px; scroll-snap-align: start; }
.scroll-hint { text-align: center; font-size: .78rem; color: var(--ink-soft); margin-top: -8px; }

/* ---------- Partner logo marquee ---------- */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: marquee-scroll 28s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { flex: none; display: flex; align-items: center; justify-content: center; height: 90px; padding: 0 26px; color: var(--ink-soft); font-weight: 700; font-family: var(--font-head); font-size: 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 220px; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Dark contact CTA split ---------- */
.contact-split { display: grid; grid-template-columns: 1fr .8fr; gap: 40px; align-items: center; background: linear-gradient(135deg, var(--navy-900), var(--navy-700)); border-radius: var(--radius); padding: 60px; color: #fff; overflow: hidden; }
.contact-split h2 { color: #fff; }
.contact-split p { color: rgba(255,255,255,.8); }
.contact-split .zigzag-media img { max-width: 260px; }
.contact-info-row { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 26px; }
.contact-info-row .info-chip { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.9); }
.contact-info-row .info-chip .icon { width: 18px; height: 18px; color: var(--gold-400); }

@media (max-width: 980px) {
  .zigzag, .contact-split { grid-template-columns: 1fr; text-align: center; }
  .zigzag.reverse { direction: ltr; }
  .zigzag-media { order: -1; }
  .contact-split { padding: 40px 26px; }
  .contact-info-row { justify-content: center; }
}

/* ---------- Chatbot widget: "Allo AGV" ---------- */
.chat-launcher {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  display: flex; align-items: center; gap: 10px; padding: 14px 20px 14px 14px;
  background: var(--navy-900); color: #fff; border: none; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(11,31,58,.35); cursor: pointer; font-family: var(--font-head);
  font-weight: 700; font-size: .92rem; transition: transform .2s ease;
}
.chat-launcher:hover { transform: translateY(-3px); }
.chat-launcher .icon-circle { width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-launcher .icon-circle .icon { width: 18px; height: 18px; color: var(--navy-900); }
.chat-launcher .pulse { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border-radius: 50%; background: #23c55e; border: 2px solid #fff; }
[dir="rtl"] .chat-launcher { right: auto; left: 24px; }
[dir="rtl"] .chat-launcher .pulse { right: auto; left: -3px; }

.chat-panel {
  position: fixed; bottom: 96px; right: 24px; z-index: 200;
  width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 140px);
  background: #fff; border-radius: 18px; box-shadow: 0 20px 60px rgba(11,31,58,.3);
  display: none; flex-direction: column; overflow: hidden; border: 1px solid var(--line);
}
.chat-panel.open { display: flex; }
[dir="rtl"] .chat-panel { right: auto; left: 24px; }

.chat-header { background: linear-gradient(120deg, var(--navy-900), var(--navy-700)); color: #fff; padding: 18px 20px; display: flex; align-items: center; gap: 12px; }
.chat-header .icon-circle { width: 40px; height: 40px; border-radius: 50%; background: var(--gold-500); display: flex; align-items: center; justify-content: center; flex: none; }
.chat-header .icon-circle .icon { width: 20px; height: 20px; color: var(--navy-900); }
.chat-header .chat-title { font-family: var(--font-head); font-weight: 700; font-size: 1rem; }
.chat-header .chat-sub { font-size: .75rem; color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 6px; }
.chat-header .chat-sub .dot { width: 7px; height: 7px; border-radius: 50%; background: #23c55e; }
.chat-close { margin-inline-start: auto; background: rgba(255,255,255,.15); border: none; width: 30px; height: 30px; border-radius: 50%; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.chat-close .icon { width: 16px; height: 16px; }

.chat-messages { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; background: var(--mist); }
.chat-bubble { max-width: 82%; padding: 11px 15px; border-radius: 16px; font-size: .88rem; line-height: 1.5; }
.chat-bubble.bot { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--ink); }
.chat-bubble.user { align-self: flex-end; background: var(--navy-900); color: #fff; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-bubble.bot { border-bottom-left-radius: 16px; border-bottom-right-radius: 4px; }
[dir="rtl"] .chat-bubble.user { border-bottom-right-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing { align-self: flex-start; display: flex; gap: 4px; padding: 12px 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; border-bottom-left-radius: 4px; }
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-soft); opacity: .4; animation: chat-typing-blink 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .2s; }
.chat-typing span:nth-child(3) { animation-delay: .4s; }
@keyframes chat-typing-blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.chat-disclaimer { font-size: .7rem; color: var(--ink-soft); text-align: center; padding: 6px 12px 0; }

.chat-input-row { display: flex; align-items: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-input-row input { flex: 1; border: 1.5px solid var(--line); border-radius: 999px; padding: 11px 16px; font-family: var(--font-body); font-size: .88rem; }
.chat-input-row input:focus { outline: none; border-color: var(--gold-500); }
.chat-mic, .chat-send { flex: none; width: 40px; height: 40px; border-radius: 50%; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s ease; }
.chat-mic { background: var(--mist); color: var(--navy-900); }
.chat-mic.listening { background: #fdecea; color: var(--danger); animation: mic-pulse 1s infinite; }
@keyframes mic-pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(192,57,43,.4); } 50% { box-shadow: 0 0 0 8px rgba(192,57,43,0); } }
.chat-send { background: var(--gold-500); color: var(--navy-900); }
.chat-send:hover { background: var(--gold-400); }
.chat-mic .icon, .chat-send .icon { width: 18px; height: 18px; }
.chat-mic[hidden] { display: none; }

@media (max-width: 480px) {
  .chat-panel { right: 16px; left: 16px; width: auto; bottom: 88px; }
  [dir="rtl"] .chat-panel { left: 16px; }
  .chat-launcher span.label { display: none; }
  .chat-launcher { padding: 14px; }
}

/* ---------- Hero with real photo (inner pages) ---------- */
.hero.hero--sm.hero--photo .hero-inner { grid-template-columns: 1.1fr .9fr; text-align: left; padding: 90px 24px; }
.hero--photo .hero-photo-wrap { position: relative; }
.hero--photo .hero-photo-wrap img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(11,31,58,.35); border: 4px solid rgba(255,255,255,.15);
}
@media (max-width: 980px) {
  .hero.hero--sm.hero--photo .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero--photo .hero-photo-wrap { order: -1; max-width: 420px; margin: 0 auto 20px; }
}

/* ---------- Section banner image (homepage section accents) ---------- */
.section-banner { width: 100%; height: 220px; object-fit: cover; border-radius: var(--radius); margin-bottom: 40px; box-shadow: var(--shadow-md); }

/* ---------- Interactive Africa map (Filiales & Pays) ---------- */
.africa-map-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.africa-map-stage { background: var(--mist); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.africa-map-stage svg { width: 100%; height: auto; max-height: 560px; display: block; }
.africa-country { fill: #d8dde6; stroke: #fff; stroke-width: .4; cursor: pointer; transition: fill .15s ease; }
.africa-country.active { fill: var(--gold-400); }
.africa-country.hover { fill: var(--navy-700); }
.africa-country.active.hover { fill: var(--gold-500); }
.africa-country.selected { fill: var(--navy-900); }
.africa-map-legend { display: flex; gap: 18px; margin-top: 14px; font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; }
.africa-map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.africa-map-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.africa-map-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; min-height: 220px; position: sticky; top: 100px; }
.africa-map-panel h3 { margin-bottom: 10px; }
.africa-map-panel.active { border-color: var(--gold-500); background: var(--gold-050); }
@media (max-width: 980px) {
  .africa-map-wrap { grid-template-columns: 1fr; }
  .africa-map-panel { position: static; }
}

/* ---------- Partnerships: matchmaking, impact dashboard, mega-menu ---------- */
.mega-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md); padding: 26px; min-width: 620px; z-index: 60; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
[dir="rtl"] .mega-menu { left: auto; right: 50%; transform: translateX(50%); }
.mega-menu-col h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-bottom: 12px; }
.mega-menu-col a { display: block; padding: 8px 0; font-size: .9rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line); }
.mega-menu-col a:last-child { border-bottom: none; }
.mega-menu-col a:hover { color: var(--navy-900); }
.mega-menu-cta { grid-column: 1 / -1; text-align: center; padding-top: 10px; border-top: 1px solid var(--line); }
@media (max-width: 1100px) { .mega-menu { min-width: 520px; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 18px; } }

.matchmaking-toggle { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }
.matchmaking-toggle label { flex: 1; min-width: 220px; border: 2px solid var(--line); border-radius: var(--radius-sm); padding: 16px; cursor: pointer; font-weight: 600; font-size: .9rem; text-align: center; transition: all .15s ease; }
.matchmaking-toggle input { display: none; }
.matchmaking-toggle input:checked + span { color: var(--navy-900); }
.matchmaking-toggle label:has(input:checked) { border-color: var(--gold-500); background: var(--gold-050); }
.matchmaking-fields { display: none; }
.matchmaking-fields.visible { display: block; }

.impact-dash { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.impact-tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 20px; text-align: center; }
.impact-tile .num { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; color: var(--navy-900); }
.impact-tile .num .suffix { color: var(--gold-500); }
.impact-tile .label { font-size: .85rem; color: var(--ink-soft); margin-top: 6px; }
@media (max-width: 760px) { .impact-dash { grid-template-columns: repeat(2, 1fr); } }

.sector-filter { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; justify-content: center; }
.sector-filter button { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .85rem; cursor: pointer; transition: all .15s ease; }
.sector-filter button.active, .sector-filter button:hover { background: var(--navy-900); color: #fff; border-color: var(--navy-900); }
.catalogue-grid-item { transition: opacity .2s ease, transform .2s ease; }
.catalogue-grid-item.hidden { display: none; }

.coop-flow { display: flex; justify-content: center; align-items: center; gap: 0; flex-wrap: wrap; margin: 10px 0 30px; }
.coop-node { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: 14px 26px; font-weight: 700; font-size: .95rem; color: var(--navy-900); text-align: center; cursor: pointer; transition: all .15s ease; }
.coop-node:hover, .coop-node.active { border-color: var(--gold-500); background: var(--gold-050); }
.coop-arrow { width: 46px; height: 2px; background: var(--line); position: relative; margin: 0 4px; }
.coop-arrow::after { content: ''; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left-color: var(--line); }
@media (max-width: 760px) { .coop-flow { flex-direction: column; } .coop-arrow { width: 2px; height: 26px; } .coop-arrow::after { right: -4px; top: unset; bottom: -1px; border-left-color: transparent; border-top-color: var(--line); } }
