/*
Theme Name: EricoData App
Theme URI: https://ericodata.com.ng
Author: Erico
Author URI: https://ericodata.com.ng
Description: VTU Platform Theme — Data, Airtime, Cable TV, Electricity & More
Version: 11.0.1
Tags: vtu, data, airtime, fintech, mobile
*/

/* ── Global Reset ── */
*, *::before, *::after { box-sizing: border-box; }

/* ── Body defaults ── */
body {
    margin: 0;
    padding: 0;
    background: #ffffff;
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ── Global ticker: match dark theme on homepage ── */
body.home .erico-ticker-inner,
body.front-page .erico-ticker-inner {
    color: #000 !important;
}
body.home div[style*="background:#1e293b"],
body.front-page div[style*="background:#1e293b"] {
    background: #00e676 !important;
    color: #000 !important;
    font-family: 'Syne', sans-serif !important;
    font-weight: 700 !important;
}

/* ── Homepage: override body/header background so incognito/no-cache visitors see dark theme ── */
body.home,
body.front-page {
    background: #0a0a0a !important;
    color: #f5f0e8;
}

/* Hide the white public header on homepage — ec-home has its own ticker/nav */
body.home #site-header,
body.front-page #site-header {
    background: #0a0a0a !important;
    border-bottom-color: #222 !important;
}

/* Fix white logo box — mix-blend-mode makes white bg invisible on dark header */
body.home #site-header .navbar-brand img,
body.front-page #site-header .navbar-brand img,
body.home #site-header .custom-logo-link img,
body.front-page #site-header .custom-logo-link img {
    mix-blend-mode: screen !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
}

body.home #site-header .navbar-brand,
body.front-page #site-header .navbar-brand,
body.home #site-header .custom-logo-link,
body.front-page #site-header .custom-logo-link {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

body.home #site-header .navbar-brand,
body.front-page #site-header .navbar-brand {
    color: #00e676 !important;
}

body.home #site-header .nav-menu a,
body.front-page #site-header .nav-menu a {
    color: #888 !important;
}

body.home #site-header .nav-menu a:hover,
body.front-page #site-header .nav-menu a:hover {
    color: #f5f0e8 !important;
}

body.home #site-header .btn-primary,
body.front-page #site-header .btn-primary {
    background: #00e676 !important;
    color: #000 !important;
    border-color: #00e676 !important;
}

body.home #site-header .btn-outline,
body.front-page #site-header .btn-outline {
    color: #f5f0e8 !important;
    border-color: #444 !important;
}

body.home #site-footer,
body.front-page #site-footer {
    background: #0a0a0a !important;
    color: #f5f0e8 !important;
    border-top-color: #222 !important;
}

body.home #site-footer a,
body.front-page #site-footer a {
    color: #888 !important;
}

body.home #site-footer a:hover,
body.front-page #site-footer a:hover {
    color: #00e676 !important;
}

body.home #site-footer h4,
body.front-page #site-footer h4 {
    color: #555 !important;
}

body.home #site-footer p,
body.front-page #site-footer p {
    color: #555 !important;
}

/* ── Hamburger on dark header ── */
body.home #site-header .hamburger span,
body.front-page #site-header .hamburger span {
    background: #f5f0e8 !important;
}

/* ── Public page defaults (non-homepage) ── */
#site-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
    gap: 24px;
}

.navbar-brand {
    font-size: 20px;
    font-weight: 800;
    color: #1a56db;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-menu {
    display: flex;
    gap: 24px;
}

.nav-menu a {
    color: #64748b;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color .2s;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: #1a56db;
}

.nav-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.btn {
    display: inline-block;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: all .2s;
    border: 2px solid transparent;
}

.btn-primary {
    background: #1a56db;
    color: #fff !important;
    border-color: #1a56db;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-outline {
    background: transparent;
    color: #1a56db !important;
    border-color: #1a56db;
}

.btn-outline:hover {
    background: #1a56db;
    color: #fff !important;
}

.btn-sm { padding: 6px 14px; font-size: 13px; }
.btn-lg { padding: 13px 28px; font-size: 16px; }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-white { background: #fff; color: #1a56db !important; }
.btn-white:hover { background: #f0f4ff; }

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}

.hamburger span {
    width: 24px;
    height: 2px;
    background: #374151;
    border-radius: 2px;
    transition: all .3s;
    display: block;
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .hamburger { display: flex; }
    .nav-menu.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 64px; left: 0; right: 0;
        background: #fff;
        padding: 16px 24px;
        border-bottom: 1px solid #e5e7eb;
        z-index: 99;
        gap: 12px;
    }
}

/* ── Footer ── */
#site-footer {
    background: #111827;
    color: #9ca3af;
    padding: 48px 0 24px;
}

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

.footer-brand .logo {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.social-link {
    width: 36px;
    height: 36px;
    background: #1f2937;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9ca3af !important;
    transition: all .2s;
}

.social-link:hover {
    background: #1a56db;
    color: #fff !important;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    color: #6b7280 !important;
    font-size: 14px;
    text-decoration: none;
    transition: color .2s;
}

.footer-col ul li a:hover {
    color: #fff !important;
}

.footer-bottom {
    border-top: 1px solid #1f2937;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 13px;
}

.footer-bottom a {
    color: #6b7280 !important;
    text-decoration: none;
}

.footer-bottom a:hover {
    color: #fff !important;
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .footer-grid { grid-template-columns: 1fr; }
}
