/* ============================================================
   AFRIINVEST PREMIUM — Borrowed from MarsTech design language
   Display: Canela (premium editorial serif)
   Body:    Metropolis (geometric Avenir-like sans)
   Palette: Navy / Steel / Gray with accent blue
   Sharp architectural corners
   Icons:   Flaticon Uicons (thin-rounded, brands)
============================================================ */

@import url('https://maxst.icons8.com/vue-static/landings/line-awesome/line-awesome/1.3.0/css/line-awesome.min.css');

@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Thin-Trial.otf') format('opentype');
    font-weight: 100; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Light-Trial.otf') format('opentype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Regular-Trial.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Medium-Trial.otf') format('opentype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Medium-Trial.otf') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Bold-Trial.otf') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Bold-Trial.otf') format('opentype');
    font-weight: 800; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Canela';
    src: url('../fonts/Canela-Black-Trial.otf') format('opentype');
    font-weight: 900; font-style: normal; font-display: swap;
}

@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Light.otf') format('opentype');
    font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Regular.otf') format('opentype');
    font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Medium.otf') format('opentype');
    font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-SemiBold.otf') format('opentype');
    font-weight: 600; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-Bold.otf') format('opentype');
    font-weight: 700; font-style: normal; font-display: swap;
}
@font-face {
    font-family: 'Metropolis';
    src: url('../fonts/Metropolis-ExtraBold.otf') format('opentype');
    font-weight: 800; font-style: normal; font-display: swap;
}

/* ===== Tokens ===== */
:root {
    --ai-navy:        #0d3a4f;
    --ai-steel:       #2596be;
    --ai-steel-mist:  #f0f7fa;
    --ai-steel-wash:  #e0eff5;
    --ai-steel-deep:  #082a3a;
    --ai-gray:        #5F6673;
    --ai-accent:      #2596be;
    --ai-accent-2:    #8b1538;
}

/* ===== Body: Metropolis ===== */
body.afriinvest-premium {
    font-family: 'Metropolis', 'Avenir Next', Avenir, 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    background: #0d3a4f;
    color: #0d3a4f;
    font-size: 15px;
    line-height: 1.65;
    letter-spacing: 0.005em;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    padding: 0;
}
html {
    margin: 0;
    padding: 0;
}
html {
    margin: 0;
    padding: 0;
}
section {
    margin: 0;
    padding: 0;
}
body.afriinvest-premium h1,
body.afriinvest-premium h2,
body.afriinvest-premium h3,
body.afriinvest-premium h4,
body.afriinvest-premium h5,
body.afriinvest-premium h6 {
    font-family: 'Canela', Georgia, 'Times New Roman', serif !important;
    color: var(--ai-navy);
    letter-spacing: -0.015em;
    line-height: 1.2;
}
body.afriinvest-premium h1 { font-size: clamp(2rem, 4.2vw, 3.35rem); font-weight: 800; }
body.afriinvest-premium h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; }
body.afriinvest-premium h3 { font-size: clamp(1.3rem, 2.2vw, 1.85rem); font-weight: 700; }
body.afriinvest-premium h4 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 600; }
body.afriinvest-premium p  { line-height: 1.7; letter-spacing: 0.001em; }

/* Sharp architectural look */
body.afriinvest-premium * { border-radius: 0 !important; }
body.afriinvest-premium ::selection { background: rgba(74, 122, 184, 0.25); color: var(--ai-navy); }

/* Custom scrollbar */
body.afriinvest-premium ::-webkit-scrollbar { width: 6px; }
body.afriinvest-premium ::-webkit-scrollbar-track { background: transparent; }
body.afriinvest-premium ::-webkit-scrollbar-thumb { background: rgba(74, 122, 184, 0.25); }
body.afriinvest-premium ::-webkit-scrollbar-thumb:hover { background: rgba(74, 122, 184, 0.45); }

/* ===== Layout ===== */
.ai-container { max-width: 1280px; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 1024px) { .ai-container { padding: 0 2rem; } }
.ai-section { padding-top: 4.5rem; padding-bottom: 4.5rem; }
@media (min-width: 768px) { .ai-section { padding-top: 7rem; padding-bottom: 7rem; } }

/* ===== Eyebrow ===== */
.ai-eyebrow {
    display: inline-flex; align-items: center; gap: 0.65rem;
    font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--ai-accent);
    margin-bottom: 1rem;
}
.ai-eyebrow::before { content: ''; width: 1.25rem; height: 1px; background: var(--ai-accent); }

/* ===== Buttons ===== */
.ai-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    font-weight: 600; font-size: 0.8125rem; padding: 0.875rem 1.5rem;
    border: 1px solid; cursor: pointer; transition: all .2s;
    text-decoration: none !important; letter-spacing: 0.02em;
}
.ai-btn-primary { background: var(--ai-navy); color: #fff; border-color: var(--ai-navy); }
.ai-btn-primary:hover { background: #2a2d35; }
.ai-btn-accent { background: var(--ai-accent); color: #fff; border-color: var(--ai-accent); }
.ai-btn-accent:hover { background: #0d3e88; }
.ai-btn-maroon { background: var(--ai-accent-2); color: #fff; border-color: var(--ai-accent-2); }
.ai-btn-maroon:hover { background: #6d1029; }
.ai-btn-outline { background: transparent; color: var(--ai-navy); border-color: var(--ai-navy); }
.ai-btn-outline:hover { background: var(--ai-navy); color: #fff; }
.ai-btn-ghost { background: transparent; color: var(--ai-navy); border-color: transparent; }
.ai-btn-ghost:hover { background: rgba(74, 122, 184, 0.08); }

/* ===== Cards ===== */
.ai-card {
    position: relative; background: #fff;
    border: 1px solid rgba(95, 102, 115, 0.20);
    overflow: hidden; transition: all .25s;
}
.ai-card::before {
    content: ''; position: absolute; left: 0; top: 0; z-index: 1;
    height: 100%; width: 3px;
    background: linear-gradient(to bottom, var(--ai-steel), var(--ai-accent));
    opacity: 0; transition: opacity .25s;
}
.ai-card:hover { border-color: rgba(74, 122, 184, 0.35); box-shadow: 0 12px 40px -12px rgba(74,122,184,0.18); }
.ai-card:hover::before { opacity: 1; }
.ai-card-body { padding: 1.5rem; position: relative; }
.ai-card-img { aspect-ratio: 4/3; overflow: hidden; background: var(--ai-steel-mist); }
.ai-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Arrow on cards ===== */
.ai-arrow { transition: transform .25s, color .25s; }
.ai-card:hover .ai-arrow { transform: translate(2px, -2px); color: var(--ai-accent); }

/* ===== Nav ===== */
.ai-nav {
    position: sticky; top: 0; z-index: 50;
    background: #fff; border-bottom: 1px solid rgba(95, 102, 115, 0.20);
}

/* ===== Hero Section ===== */
.ai-hero {
    position: relative;
    margin-top: -7rem;
    padding-top: 7rem;
}
.ai-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}
.ai-hero-content {
    position: relative;
    z-index: 10;
    padding-top: 7rem;
}
.ai-nav-glass {
    background: rgba(255,255,255,0.88) !important;
    backdrop-filter: blur(12px) saturate(160%);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
}

/* ===== Nav links ===== */
.ai-nav-link {
    font-size: 0.6875rem; font-weight: 500; letter-spacing: 0.01em;
    padding: 0.5rem 0.75rem; color: var(--ai-navy);
    transition: color .2s; white-space: nowrap;
}
.ai-nav-link:hover { color: var(--ai-accent); }

/* ===== Simple dropdown ===== */
.ai-dropdown-wrap { position: relative; }
.ai-dropdown-trigger { cursor: pointer; border: none; background: none; font-family: inherit; }
.ai-dropdown {
    position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(-4px);
    min-width: 200px; background: #fff;
    border: 1px solid rgba(95, 102, 115, 0.20);
    box-shadow: 0 12px 30px -10px rgba(28, 53, 88, 0.18);
    padding: 0.5rem 0; z-index: 60;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .15s, transform .15s, visibility .15s;
}
.ai-dropdown-wrap:hover .ai-dropdown {
    opacity: 1; visibility: visible; pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}
.ai-dropdown-item {
    display: flex; align-items: center;
    padding: 0.5rem 1rem; font-size: 0.8125rem; color: var(--ai-navy);
    transition: background .15s, color .15s;
}
.ai-dropdown-item:hover {
    background: rgba(37, 150, 190, 0.06); color: var(--ai-accent);
}

/* ===== Reveal on scroll ===== */
.ai-reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.ai-reveal.ai-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .ai-reveal { opacity: 1; transform: none; transition: none; } }

/* ===== Gradient text ===== */
.ai-gradient-text {
    background: linear-gradient(120deg, #fff 0%, #c6d4e1 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ai-gradient-text-dark {
    background: linear-gradient(120deg, var(--ai-navy) 0%, var(--ai-steel) 50%, var(--ai-accent-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ===== Background helpers ===== */
.ai-radial-atmosphere {
    background: radial-gradient(ellipse 120% 80% at 70% -10%, rgba(74,122,184,0.22), transparent 50%);
}
.ai-grid-overlay {
    background-image:
        linear-gradient(rgba(74,122,184,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(74,122,184,0.06) 1px, transparent 1px);
    background-size: 50px 50px;
}

/* ===== Counter ===== */
.ai-counter {
    font-family: 'Canela', Georgia, serif; font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700; line-height: 1; color: #fff;
}

/* ===== Footer ===== */
.ai-footer {
    background: var(--ai-navy); color: #fff; padding: 6rem 0 2.5rem;
    position: relative;
}
.ai-footer::before {
    content: ''; position: absolute; inset: 0 0 auto 0; height: 1px;
    background: linear-gradient(to right, transparent, rgba(74,122,184,0.45), transparent);
}
.ai-footer h4 { color: #fff; font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1.5rem; font-weight: 700; }
.ai-footer a, .ai-footer p { color: rgba(255,255,255,0.7); transition: color .2s; }
.ai-footer a:hover { color: var(--ai-accent); }
.ai-footer input { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.10); padding: 0.875rem; color: #fff; outline: none; width: 100%; }
.ai-footer input:focus { border-color: var(--ai-accent); }
.ai-footer input::placeholder { color: rgba(255,255,255,0.4); }

/* ===== Mobile menu ===== */
.ai-mobile-menu {
    position: fixed; inset: 0; background: #fff; z-index: 70;
    overflow-y: auto;
}
.ai-mobile-menu a {
    display: block; padding: 0.9rem 0;
    font-family: 'Canela', Georgia, serif; font-size: 1.35rem; color: var(--ai-navy);
    border-bottom: 1px solid rgba(95,102,115,0.10);
}

/* ===== Hero scroll bar animation ===== */
@keyframes ai-scroll { 0% { top: -100%; } 100% { top: 100%; } }
.ai-scroll-bar { animation: ai-scroll 2s linear infinite; }

/* ===== Pill tag ===== */
.ai-pill {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.35rem 0.75rem; font-size: 0.6875rem; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    border: 1px solid rgba(95, 102, 115, 0.25);
    background: #fff; color: var(--ai-gray);
}

/* ===== Stat card ===== */
.ai-stat-card {
    background: #fff; border: 1px solid rgba(95, 102, 115, 0.20);
    padding: 1rem 1.25rem;
    box-shadow: 0 12px 40px -18px rgba(28, 53, 88, 0.18);
}

/* ===== Number badge ===== */
.ai-number {
    font-family: 'Canela', Georgia, serif;
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    color: rgba(95, 102, 115, 0.25); line-height: 1; font-weight: 700;
}

/* ===== Step badge ===== */
.ai-step-badge {
    position: absolute; top: 0; right: 0;
    width: 2rem; height: 2rem; background: var(--ai-accent); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.8rem;
}