/* ==========================================================================
   Mpabaisi Technologies — site styles (Bootstrap 5.3 theme layer)
   ========================================================================== */

:root {
    --brand: #1c9e39;
    --brand-600: #178a31;
    --brand-700: #126e27;
    --brand-50: #eaf7ed;
    --brand-100: #d2efd9;
    --ink: #0f1f17;
    --ink-soft: #4a5a52;
    --surface: #ffffff;
    --surface-alt: #f5f8f6;
    --line: #e3ebe6;
    --radius: 1rem;
    --shadow-sm: 0 1px 2px rgba(15, 31, 23, .06), 0 1px 3px rgba(15, 31, 23, .08);
    --shadow: 0 10px 30px -12px rgba(15, 31, 23, .18);
    --shadow-lg: 0 24px 60px -20px rgba(15, 31, 23, .28);

    --bs-primary: var(--brand);
    --bs-primary-rgb: 28, 158, 57;
    --bs-success: var(--brand);
    --bs-success-rgb: 28, 158, 57;
    --bs-link-color: var(--brand-600);
    --bs-link-color-rgb: 23, 138, 49;
    --bs-link-hover-color: var(--brand-700);
    --bs-link-hover-color-rgb: 18, 110, 39;
    --bs-body-font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-color: var(--ink);
    --bs-border-color: var(--line);
    --bs-border-radius: .65rem;
    --bs-border-radius-lg: var(--radius);
    --bs-focus-ring-color: rgba(28, 158, 57, .25);
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--surface); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.02em; color: var(--ink); }
.text-muted { color: var(--ink-soft) !important; }
.text-brand { color: var(--brand) !important; }
.bg-brand-soft { background: var(--brand-50) !important; }
.bg-surface-alt { background: var(--surface-alt) !important; }
::selection { background: var(--brand-100); }

/* ---------- Buttons ---------- */
.btn { font-weight: 600; border-radius: .7rem; padding: .6rem 1.2rem; }
.btn-lg { padding: .8rem 1.5rem; font-size: 1rem; }
.btn-sm { padding: .35rem .75rem; border-radius: .55rem; }
.btn-primary, .btn-success {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-600); --bs-btn-hover-border-color: var(--brand-600);
    --bs-btn-active-bg: var(--brand-700); --bs-btn-active-border-color: var(--brand-700);
    --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand);
    --bs-btn-focus-shadow-rgb: 28, 158, 57;
}
.btn-outline-primary, .btn-outline-success {
    --bs-btn-color: var(--brand-600); --bs-btn-border-color: var(--brand-100);
    --bs-btn-hover-bg: var(--brand-50); --bs-btn-hover-color: var(--brand-700); --bs-btn-hover-border-color: var(--brand-100);
    --bs-btn-active-bg: var(--brand-100); --bs-btn-active-color: var(--brand-700); --bs-btn-active-border-color: var(--brand-100);
}
.btn-light-glass {
    color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .35);
    backdrop-filter: blur(6px);
}
.btn-light-glass:hover { color: #fff; background: rgba(255, 255, 255, .22); border-color: rgba(255, 255, 255, .5); }
.btn-icon { display: inline-flex; align-items: center; justify-content: center; width: 2.1rem; height: 2.1rem; padding: 0; }

.form-control, .form-select { border-radius: .65rem; padding: .65rem .9rem; border-color: var(--line); }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(28, 158, 57, .15); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* ---------- Public navbar ---------- */
.site-nav {
    transition: background .25s ease, box-shadow .25s ease, padding .25s ease;
    padding-top: 1rem; padding-bottom: 1rem;
}
.site-nav .navbar-brand img { height: 46px; width: auto; background: #fff; border-radius: .6rem; padding: 2px; }
.site-nav .navbar-brand span { font-weight: 800; letter-spacing: -.02em; }
.site-nav .nav-link { font-weight: 600; font-size: .95rem; padding: .5rem .85rem !important; border-radius: .5rem; }
.site-nav.nav-transparent .navbar-brand span,
.site-nav.nav-transparent .nav-link { color: rgba(255, 255, 255, .92); }
.site-nav.nav-transparent .nav-link:hover,
.site-nav.nav-transparent .nav-link.active { color: #fff; background: rgba(255, 255, 255, .12); }
.site-nav.nav-transparent .navbar-toggler { border-color: rgba(255, 255, 255, .4); }
.site-nav.nav-transparent .navbar-toggler-icon { filter: invert(1); }
.site-nav.nav-solid { background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(12px); box-shadow: var(--shadow-sm); padding-top: .55rem; padding-bottom: .55rem; }
.site-nav.nav-solid .navbar-brand span { color: var(--ink); }
.site-nav.nav-solid .nav-link { color: var(--ink-soft); }
.site-nav.nav-solid .nav-link:hover, .site-nav.nav-solid .nav-link.active { color: var(--brand-700); background: var(--brand-50); }
@media (max-width: 991.98px) {
    .site-nav .navbar-collapse { background: #fff; border-radius: var(--radius); padding: .75rem; margin-top: .75rem; box-shadow: var(--shadow); }
    .site-nav .navbar-collapse .nav-link { color: var(--ink-soft) !important; }
    .site-nav .navbar-collapse .nav-link:hover, .site-nav .navbar-collapse .nav-link.active { color: var(--brand-700) !important; background: var(--brand-50) !important; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    padding: 9.5rem 0 7rem;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(255, 255, 255, .16), transparent 60%),
        radial-gradient(800px 400px at -10% 110%, rgba(0, 0, 0, .25), transparent 60%),
        linear-gradient(135deg, #0f5c22 0%, #1c9e39 55%, #2bb24c 100%);
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
    background-image: radial-gradient(rgba(255, 255, 255, .9) 1px, transparent 1px);
    background-size: 22px 22px;
    mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero > .container { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.08; }
.hero .lead { color: rgba(255, 255, 255, .88); font-size: 1.15rem; max-width: 36rem; }
.hero-badge {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600;
    padding: .4rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25);
}
.hero-visual { position: relative; }
.hero-visual img { border-radius: 1.25rem; box-shadow: var(--shadow-lg); border: 6px solid rgba(255, 255, 255, .18); }
.hero-float {
    position: absolute; left: -1.5rem; bottom: -1.5rem; background: #fff; color: var(--ink);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: .9rem 1.1rem; display: flex; align-items: center; gap: .75rem;
}
.hero-float .icon { width: 2.6rem; height: 2.6rem; border-radius: .75rem; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.3rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 2rem; margin-top: 2.5rem; }
.hero-stats strong { display: block; font-size: 1.75rem; font-weight: 800; line-height: 1; }
.hero-stats span { font-size: .85rem; color: rgba(255, 255, 255, .78); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 1; display: block; width: 100%; height: auto; }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.section-sm { padding: 4rem 0; }
.eyebrow {
    display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    color: var(--brand-600); background: var(--brand-50); padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1rem;
}
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--ink-soft); max-width: 46rem; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Cards ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-header { background: transparent; border-bottom-color: var(--line); font-weight: 700; padding: 1rem 1.25rem; }
.card-hover { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--brand-100); }

.value-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.value-list li { display: flex; align-items: center; gap: .85rem; font-weight: 600; }
.value-list i { width: 2.25rem; height: 2.25rem; flex: 0 0 2.25rem; border-radius: .7rem; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 1.1rem; }

.about-visual { position: relative; }
.about-visual img { border-radius: 1.25rem; box-shadow: var(--shadow-lg); }
.about-visual::before {
    content: ""; position: absolute; inset: 1.5rem -1.5rem -1.5rem 1.5rem; border-radius: 1.25rem;
    background: var(--brand-50); z-index: -1;
}

/* Feature tiles */
.feature-card { height: 100%; padding: 1.6rem; }
.feature-card .feature-icon {
    width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: grid; place-items: center;
    background: var(--brand-50); margin-bottom: 1.1rem;
}
.feature-card .feature-icon img { width: 2.1rem; height: 2.1rem; object-fit: contain; }
.feature-card h3 { font-size: 1.1rem; margin-bottom: .45rem; }
.feature-card p { color: var(--ink-soft); margin: 0; font-size: .95rem; }

/* Screenshot gallery */
.shot { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); background: #fff; }
.shot img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.03); }

/* Price callout */
.price-banner {
    border-radius: 1.25rem; padding: 2rem; color: #fff;
    background: linear-gradient(135deg, #126e27, #1c9e39);
    box-shadow: var(--shadow);
}
.price-banner .price { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: #fff; }

/* Products */
.product-card { height: 100%; display: flex; flex-direction: column; }
.product-card .product-head { padding: 1.6rem 1.6rem 1.2rem; }
.product-card .product-icon {
    width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.4rem;
    color: #fff; background: var(--brand); margin-bottom: 1rem;
}
.product-card .price { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.product-card .price small { font-size: .85rem; font-weight: 600; color: var(--ink-soft); }
.product-card ul { list-style: none; padding: 0 1.6rem; margin: 0 0 1.5rem; flex: 1; }
.product-card li { display: flex; gap: .6rem; padding: .4rem 0; color: var(--ink-soft); }
.product-card li i { color: var(--brand); }
.product-card .product-foot { padding: 0 1.6rem 1.6rem; }

/* Team */
.team-card { text-align: center; padding: 2rem 1.5rem; height: 100%; }
.team-card img { width: 112px; height: 112px; object-fit: cover; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--brand-100), var(--shadow-sm); margin-bottom: 1rem; }
.team-card h3 { font-size: 1.1rem; margin-bottom: .25rem; }

/* Clients */
.client-filters { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center; margin-bottom: 2rem; }
.client-filters .btn { border-radius: 999px; padding: .4rem 1rem; font-size: .88rem; }
.client-filters .btn.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.client-card { height: 100%; text-align: center; padding: 1.25rem 1rem; }
.client-card .logo-wrap { height: 96px; display: grid; place-items: center; margin-bottom: .9rem; }
.client-card img { max-height: 96px; max-width: 100%; object-fit: contain; }
.client-card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; line-height: 1.3; }
.client-tag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--brand-700); background: var(--brand-50); padding: .2rem .6rem; border-radius: 999px; }
.client-item.is-hidden { display: none; }

/* Contact */
.contact-panel {
    border-radius: 1.25rem; padding: 2.25rem; color: #fff; height: 100%;
    background: radial-gradient(500px 300px at 100% 0, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(160deg, #126e27, #1c9e39);
}
.contact-panel h3 { color: #fff; }
.contact-item { display: flex; gap: 1rem; align-items: flex-start; margin-top: 1.5rem; }
.contact-item .icon { width: 2.75rem; height: 2.75rem; flex: 0 0 2.75rem; border-radius: .8rem; display: grid; place-items: center; background: rgba(255, 255, 255, .15); font-size: 1.2rem; }
.contact-item h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); margin-bottom: .2rem; }
.contact-item a, .contact-item p { color: #fff; margin: 0; text-decoration: none; word-break: break-word; }
.contact-item a:hover { text-decoration: underline; }

/* Footer */
.site-footer { background: #0c1a12; color: rgba(255, 255, 255, .7); padding: 3.5rem 0 2rem; }
.site-footer h4 { color: #fff; font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1rem; }
.site-footer a { color: rgba(255, 255, 255, .7); text-decoration: none; }
.site-footer li { overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand img { height: 44px; background: #fff; border-radius: .5rem; padding: 2px; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 2.5rem; padding-top: 1.5rem; font-size: .9rem; }

.scroll-top {
    position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 1030; width: 2.9rem; height: 2.9rem; border-radius: 50%;
    display: grid; place-items: center; background: var(--brand); color: #fff; box-shadow: var(--shadow);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s ease; border: 0;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { background: var(--brand-600); color: #fff; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .reveal { opacity: 1; transform: none; transition: none; }
    .card-hover:hover, .shot:hover img { transform: none; }
}

/* ---------- Inner page header (manual, privacy) ---------- */
.page-header {
    padding: 7.5rem 0 3rem; color: #fff;
    background: radial-gradient(900px 300px at 90% 0, rgba(255, 255, 255, .14), transparent 60%), linear-gradient(135deg, #0f5c22, #1c9e39);
}
.page-header h1 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 800; margin: 0; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, .6); --bs-breadcrumb-item-active-color: rgba(255, 255, 255, .85); margin-bottom: .75rem; font-size: .9rem; }
.page-header .breadcrumb a { color: #fff; text-decoration: none; }

/* ---------- User manual ---------- */
.player { border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow); }
.lesson-nav { max-height: calc(100vh - 140px); overflow-y: auto; position: sticky; top: 96px; }
.lesson-nav .accordion-button { font-weight: 700; padding: .9rem 1.1rem; }
.lesson-nav .accordion-button:not(.collapsed) { color: var(--brand-700); background: var(--brand-50); box-shadow: none; }
.lesson-nav .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(28, 158, 57, .15); }
.lesson-nav .accordion-body { padding: .35rem; }
.lesson-link {
    display: flex; align-items: center; gap: .75rem; padding: .55rem .65rem; border-radius: .6rem;
    color: var(--ink); text-decoration: none; font-size: .92rem; line-height: 1.3;
}
.lesson-link:hover { background: var(--surface-alt); color: var(--ink); }
.lesson-link.active { background: var(--brand); color: #fff; }
.lesson-link .num {
    flex: 0 0 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center;
    font-size: .78rem; font-weight: 700; background: var(--surface-alt); color: var(--ink-soft);
}
.lesson-link.active .num { background: rgba(255, 255, 255, .22); color: #fff; }
.lesson-pager .btn { min-width: 9rem; }

/* ---------- Admin ---------- */
.admin-body { background: var(--surface-alt); min-height: 100vh; }
.admin-nav { background: #fff; box-shadow: var(--shadow-sm); }
.admin-nav .navbar-brand img { height: 36px; }
.admin-nav .navbar-brand span { font-weight: 800; letter-spacing: -.02em; }
.admin-nav .nav-link { font-weight: 600; color: var(--ink-soft); border-radius: .5rem; padding: .5rem .85rem !important; }
.admin-nav .nav-link:hover, .admin-nav .nav-link.active { color: var(--brand-700); background: var(--brand-50); }
.avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-grid; place-items: center;
    background: var(--brand); color: #fff; font-weight: 700; font-size: .85rem;
}
.stat-card { padding: 1.4rem; display: flex; align-items: center; gap: 1rem; }
.stat-card .icon { width: 3.2rem; height: 3.2rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.5rem; background: var(--brand-50); color: var(--brand); }
.stat-card .value { font-size: 1.8rem; font-weight: 800; line-height: 1; }
.stat-card .label { color: var(--ink-soft); font-size: .9rem; }
.lesson-thumb { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: .5rem; background: var(--surface-alt); }
.table > :not(caption) > * > * { padding: .8rem 1rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); font-weight: 700; background: var(--surface-alt); }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state i { font-size: 2.5rem; color: var(--brand); display: block; margin-bottom: .75rem; }
.modal-content { border: 0; border-radius: var(--radius); box-shadow: var(--shadow-lg); }

/* Auth */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 2rem 1rem; background: radial-gradient(900px 500px at 100% 0, var(--brand-50), transparent 60%), var(--surface-alt); }
.auth-card { width: 100%; max-width: 440px; padding: 2.25rem; }
.auth-card .brand img { height: 64px; }
