/* ============================================================
   FLEETORIA — Site.css
   Product of Mawenzi Computer Systems, Nairobi, Kenya
   ============================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --navy:         #0B1E3D;
    --navy-mid:     #132747;
    --navy-light:   #1A3460;
    --steel:        #2E4A7A;
    --accent:       #3B7DD8;
    --accent-bright:#5B9CF6;
    --silver:       #8A9BB5;
    --mist:         #C8D4E8;
    --off-white:    #F0F4FA;
    --white:        #FFFFFF;

    --font-display: 'Sora', sans-serif;
    --font-body:    'Inter', sans-serif;

    --radius-sm:    6px;
    --radius-md:    10px;
    --radius-lg:    12px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--navy);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 16px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    border: none;
    padding: 11px 26px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 500;
    font-family: var(--font-body);
    cursor: pointer;
    transition: background 0.2s;
    text-decoration: none;
}
.btn-primary:hover { background: var(--accent-bright); color: var(--white); }

.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--mist);
    border: 1px solid rgba(200, 212, 232, 0.3);
    padding: 10px 24px;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: var(--font-body);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    text-decoration: none;
}
.btn-ghost:hover { border-color: var(--mist); color: var(--white); }

.btn-lg { font-size: 16px; padding: 13px 32px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(11, 30, 61, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(59, 125, 216, 0.15);
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--white);
    text-decoration: none;
}
.nav-logo span { color: var(--accent-bright); }

.nav-links {
    display: flex;
    gap: 32px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    color: var(--silver);
    text-decoration: none;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }

.nav-cta { padding: 9px 20px; font-size: 14px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { padding: 100px 5% 80px; }

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.eyebrow {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-bright);
    margin-bottom: 14px;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 46px;
    font-weight: 700;
    line-height: 1.15;
    color: var(--white);
    margin-bottom: 18px;
}
.hero h1 em { font-style: normal; color: var(--accent-bright); }

.hero-sub {
    font-size: 17px;
    color: var(--silver);
    line-height: 1.7;
    margin-bottom: 34px;
    max-width: 480px;
}

.hero-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.hero-stats {
    display: flex;
    gap: 36px;
    margin-top: 40px;
}
.hero-stat {
    border-left: 2px solid var(--accent);
    padding-left: 14px;
}
.hero-stat strong {
    display: block;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
}
.hero-stat span { font-size: 12px; color: var(--silver); }

/* Hero visual panel */
.hero-visual {
    background: var(--navy-mid);
    border: 1px solid rgba(59, 125, 216, 0.2);
    border-radius: var(--radius-lg);
    padding: 24px;
}

.hv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.hv-title { font-size: 13px; font-weight: 600; color: var(--mist); }
.hv-badge {
    background: rgba(59, 125, 216, 0.2);
    color: var(--accent-bright);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 4px;
}

.hv-map {
    background: var(--navy-light);
    border-radius: 8px;
    height: 160px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 4px rgba(91, 156, 246, 0.2);
    animation: pulse 2s infinite;
}
.map-dot.d1 { top: 25%; left: 25%; }
.map-dot.d2 { top: 40%; left: 60%; animation-delay: 0.7s; }
.map-dot.d3 { top: 65%; left: 35%; animation-delay: 1.4s; }

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(91, 156, 246, 0.2); }
    50%       { box-shadow: 0 0 0 8px rgba(91, 156, 246, 0.05); }
}

.map-label {
    font-size: 11px;
    color: var(--mist);
    background: var(--navy);
    padding: 3px 8px;
    border-radius: 3px;
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
}

.hv-vehicles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.hv-vehicle {
    background: var(--navy-light);
    border-radius: 7px;
    padding: 10px 12px;
}
.v-id   { font-size: 10px; color: var(--silver); margin-bottom: 4px; }
.v-status {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: var(--white);
    font-weight: 500;
}
.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.dot.green { background: #4CAF80; }
.dot.amber { background: #F5A623; }
.dot.red   { background: #E25454; }
.v-km { font-size: 10px; color: var(--silver); margin-top: 3px; }

/* ============================================================
   SHARED SECTION STYLES
   ============================================================ */
.section-divider {
    border: none;
    height: 1px;
    background: rgba(59, 125, 216, 0.12);
    max-width: 1200px;
    margin: 0 auto;
}

.section { padding: 80px 5%; }

.section-inner { max-width: 1200px; margin: 0 auto; }

.section-title {
    font-family: var(--font-display);
    font-size: 34px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
    line-height: 1.25;
}

.section-sub {
    font-size: 16px;
    color: var(--silver);
    max-width: 560px;
    margin-bottom: 52px;
    line-height: 1.7;
}

.text-center { text-align: center; }
.section-sub.text-center { margin-left: auto; margin-right: auto; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--navy-mid);
    border: 1px solid rgba(59, 125, 216, 0.12);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: border-color 0.2s;
}
.feature-card:hover { border-color: rgba(59, 125, 216, 0.4); }

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: rgba(59, 125, 216, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.feature-icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent-bright);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-card h3 {
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 9px;
}
.feature-card p { font-size: 14px; color: var(--silver); line-height: 1.65; }

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screenshots-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.screenshot-card {
    background: var(--navy-mid);
    border: 1px solid rgba(59, 125, 216, 0.15);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

/* Placeholder mockup — replace inner content with <img> once screenshots are ready */
.screenshot-placeholder {
    background: var(--navy-light);
    padding: 18px;
    height: 200px;
    overflow: hidden;
}

.sp-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.sp-dots { display: flex; gap: 4px; }
.sp-dots span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(200, 212, 232, 0.15);
    display: block;
}

.sp-bars { display: flex; flex-direction: column; gap: 8px; }

.sp-bar {
    height: 9px;
    border-radius: 3px;
    background: rgba(200, 212, 232, 0.08);
    width: 100%;
}
.sp-bar.accent { background: rgba(59, 125, 216, 0.3); width: 65%; }
.sp-bar.med    { width: 80%; }
.sp-bar.short  { width: 45%; }

.sp-chart {
    display: flex;
    align-items: flex-end;
    gap: 5px;
    height: 60px;
    margin-top: 8px;
}
.sp-col {
    border-radius: 3px 3px 0 0;
    background: rgba(59, 125, 216, 0.3);
    flex: 1;
}
.sp-col.hi { background: rgba(59, 125, 216, 0.7); }

.screenshot-info { padding: 18px 20px; }
.screenshot-info h3 {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 6px;
}
.screenshot-info p { font-size: 13px; color: var(--silver); }

/* ============================================================
   CTA BAND
   ============================================================ */
.cta-band {
    background: var(--navy-mid);
    border-top: 1px solid rgba(59, 125, 216, 0.15);
    border-bottom: 1px solid rgba(59, 125, 216, 0.15);
    padding: 80px 5%;
    text-align: center;
}
.cta-band h2 {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 14px;
}
.cta-band p {
    font-size: 16px;
    color: var(--silver);
    max-width: 520px;
    margin: 0 auto 32px;
}
.cta-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--navy);
    border-top: 1px solid rgba(59, 125, 216, 0.1);
    padding: 48px 5% 32px;
}

.footer-inner { max-width: 1200px; margin: 0 auto; }

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-logo { display: inline-block; margin-bottom: 12px; }

.footer-brand p {
    font-size: 13px;
    color: var(--silver);
    line-height: 1.7;
    max-width: 260px;
}
.footer-brand a { color: var(--accent-bright); }
.footer-brand a:hover { text-decoration: underline; }

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mist);
    margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13px; color: var(--silver); transition: color 0.2s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
    border-top: 1px solid rgba(59, 125, 216, 0.1);
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--silver); }
.footer-bottom a { color: var(--accent-bright); }
.footer-bottom a:hover { text-decoration: underline; }
.footer-domain { color: #4A5E80 !important; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-top    { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .hero-inner       { grid-template-columns: 1fr; }
    .hero-visual      { display: none; }
    .hero h1          { font-size: 34px; }
    .nav-links        { display: none; }
    .features-grid    { grid-template-columns: 1fr; }
    .screenshots-grid { grid-template-columns: 1fr; }
    .footer-top       { grid-template-columns: 1fr; }
    .section-title    { font-size: 26px; }
    .cta-band h2      { font-size: 26px; }
    .hero-stats       { flex-wrap: wrap; gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    .map-dot { animation: none; }
}
