/* =========================================
   KWANZA CAPITAL AFRICA - MASTER STYLESHEET
   ========================================= */

/* --- 1. FONTS & VARIABLES --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Montserrat:wght@600;700;800&display=swap');

:root {
    /* Brand Colors */
    --primary-green: #0F4D2A;     /* Deep Corporate Green */
    --green-light: #198754;       /* Bootstrap Success Green (Accents) */
    --primary-charcoal: #111111;  /* Rich Black */
    --accent-gold: #C5A059;       /* Corporate Gold */
    --light-grey: #F8F9FA;        /* Clean Backgrounds */
    --white: #ffffff;
    
    /* System Colors */
    --kasa-blue: #0d6efd;         /* Tech Blue for Integrity System */
    --urgent-red: #dc3545;        /* For Urgent Tenders */
}

body {
    font-family: 'Inter', sans-serif;
    color: #444;
    line-height: 1.7;
    overflow-x: hidden; 
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-charcoal);
    font-weight: 700;
}

/* --- 2. NAVIGATION BAR --- */
.navbar {
    background-color: var(--primary-charcoal);
    padding: 1rem 0;
    transition: all 0.4s ease;
}

.navbar.shadow {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    padding: 0.8rem 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--white) !important;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-logo {
    height: 45px; 
    width: auto;
}

.nav-link {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    padding: 0 15px !important;
    position: relative;
    transition: color 0.3s;
}

.nav-link:hover, .nav-link.active {
    color: var(--accent-gold) !important;
}

/* Gold Underline Effect on Hover */
.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-gold);
    transition: width 0.3s;
}
.nav-link:hover::after {
    width: 100%;
}

/* --- 3. BUTTONS --- */
.btn-kwanza {
    background-color: var(--primary-green);
    color: var(--white);
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 2px;
    border: 1px solid var(--primary-green);
    transition: all 0.3s ease;
    letter-spacing: 1px;
}

.btn-kwanza:hover {
    background-color: var(--accent-gold); 
    border-color: var(--accent-gold);
    color: var(--primary-charcoal);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 2px solid var(--accent-gold);
    color: var(--primary-charcoal);
    padding: 12px 28px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Fix for buttons inside dark backgrounds */
.bg-charcoal .btn-outline-gold, 
.hero-section .btn-outline-gold,
.page-header .btn-outline-gold {
    color: var(--accent-gold);
}

.btn-outline-gold:hover {
    background-color: var(--accent-gold);
    color: var(--white);
}

/* --- 4. HERO SECTIONS (BACKGROUND IMAGES) --- */
/* Base Settings */
.hero-section, .page-header {
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Parallax effect */
    display: flex;
    align-items: center;
    color: var(--white);
}

/* Homepage Main Hero */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.9), rgba(15, 77, 42, 0.85)), url('home-bg.jpg');
    min-height: 90vh; 
    padding-top: 80px;
}

/* Inner Page Headers */
.page-header {
    padding: 180px 0 100px;
    margin-bottom: 0;
    background-color: var(--primary-charcoal); /* Fallback */
}

/* Specific Page Images */
.header-about { background-image: linear-gradient(rgba(17, 17, 17, 0.9), rgba(15, 77, 42, 0.8)), url('about-bg.jpg'); }
.header-compliance { background-image: linear-gradient(rgba(17, 17, 17, 0.9), rgba(15, 77, 42, 0.8)), url('compliance-bg.jpg'); }
.header-contact { background-image: linear-gradient(rgba(17, 17, 17, 0.9), rgba(15, 77, 42, 0.8)), url('contact-bg.jpg'); }
.header-generic { background-image: linear-gradient(rgba(17, 17, 17, 0.9), rgba(15, 77, 42, 0.8)), url('services-bg.jpg'); }
.header-tenders { background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(20, 20, 20, 0.85)), url('tenders-bg.jpg'); }
.header-integrity { background-image: linear-gradient(rgba(0, 0, 0, 0.9), rgba(10, 40, 90, 0.8)), url('integrity-bg.jpg'); }

/* Typography */
.hero-subtitle {
    color: var(--accent-gold);
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    display: block;
    font-size: 0.9rem;
}

.hero-text-bright {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* Animations */
.animate-bounce { animation: bounce 2s infinite; }
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* --- 5. SECTIONS & CARDS --- */
.section-padding { padding: 100px 0; }
.bg-charcoal { background-color: var(--primary-charcoal); color: var(--white); }
.bg-light-grey { background-color: var(--light-grey); }
.ls-2 { letter-spacing: 2px; }

/* Service/Feature Cards */
.feature-card, .card {
    background: var(--white);
    transition: all 0.4s ease;
}

.feature-card {
    padding: 40px;
    border-top: 4px solid var(--primary-green);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border-color: var(--accent-gold);
}

.icon-box {
    font-size: 2.5rem;
    color: var(--primary-green);
    margin-bottom: 25px;
    transition: color 0.3s;
}

.feature-card:hover .icon-box, 
.card:hover .icon-box {
    color: var(--accent-gold);
}

/* Form Inputs */
.form-control, .form-select {
    border-radius: 2px;
    padding: 12px;
    border: 1px solid #ced4da;
}
.form-control:focus {
    box-shadow: none;
    border-color: var(--accent-gold);
}

/* --- 6. TRUST BAR & METRICS --- */
.trust-bar {
    background-color: var(--light-grey);
    padding: 50px 0;
    border-bottom: 1px solid #e0e0e0;
}

.trust-circle {
    width: 110px;
    height: 110px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: 2px solid #f0f0f0;
    transition: all 0.3s ease;
}

.trust-circle:hover {
    transform: translateY(-5px);
    border-color: var(--accent-gold);
}

.trust-logo-img {
    max-height: 55px;
    max-width: 80%;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: 0.3s;
}

.trust-circle:hover .trust-logo-img {
    filter: grayscale(0);
    opacity: 1;
}

.impact-section {
    background: var(--primary-green);
    color: var(--white);
}
.metric-box h2 {
    color: var(--accent-gold);
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1;
}

/* --- 7. TENDER BOARD (Professional Style) --- */

/* News Ticker */
.news-ticker-wrap {
    background: #000;
    color: var(--accent-gold);
    overflow: hidden;
    height: 40px;
    line-height: 40px;
    position: relative;
    border-bottom: 1px solid #333;
}
.news-ticker {
    white-space: nowrap;
    animation: ticker 35s linear infinite;
    display: inline-block;
}
@keyframes ticker {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}

/* Filter Buttons */
.filter-btn {
    border: 1px solid #ddd;
    background: white;
    color: #555;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}
.filter-btn:hover, .filter-btn.active {
    background-color: var(--primary-charcoal);
    color: white;
    border-color: var(--primary-charcoal);
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Corporate Tender Card */
.tender-card {
    background: white;
    border: 1px solid #eef0f2;
    border-radius: 4px;
    border-top: 3px solid #ccc; /* Subtle professional border */
    padding: 30px;
    height: 100%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.tender-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

/* Sector Colors (Top Border Only) */
.tender-mining { border-top-color: var(--accent-gold) !important; }
.tender-medical { border-top-color: #20c997 !important; } /* Teal */
.tender-energy  { border-top-color: var(--urgent-red) !important; }
.tender-civil   { border-top-color: #6c757d !important; }

/* Badges */
.badge-sector {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    color: #495057;
    font-weight: 700;
    font-size: 0.7rem;
    letter-spacing: 1px;
    padding: 6px 10px;
    border-radius: 2px;
}

.text-urgent {
    color: var(--urgent-red);
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
}
.text-urgent::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--urgent-red);
    border-radius: 50%;
    margin-right: 6px;
    animation: pulse-red 2s infinite;
}
@keyframes pulse-red {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Locked Content */
.blur-content {
    filter: blur(6px);
    user-select: none;
    pointer-events: none;
    opacity: 0.6;
}
.locked-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.75);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    text-align: center;
}

/* --- 8. KASA INTEGRITY SPECIFICS --- */
.hover-top:hover {
    top: -10px;
    position: relative;
    transition: top 0.3s ease;
}
.price-tag { transition: opacity 0.3s ease; }

/* --- 9. FOOTER & UTILITIES --- */
footer {
    background-color: var(--primary-charcoal);
    color: #bbb;
    padding: 80px 0 30px;
    font-size: 0.9rem;
}

footer h5 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    letter-spacing: 1px;
}
footer ul li { margin-bottom: 12px; }
footer a { color: #bbb; text-decoration: none; transition: color 0.3s; }
footer a:hover { color: var(--accent-gold); padding-left: 5px; }

/* WhatsApp Float Button */
.float-wa {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    text-decoration: none;
}
.float-wa:hover {
    background-color: #128c7e;
    transform: scale(1.1);
    color: white;
}

/* --- 10. RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--primary-charcoal);
        padding: 20px;
        margin-top: 15px;
    }
    .hero-section {
        min-height: auto;
        padding: 150px 0 80px;
    }
    .display-3 { font-size: 2.2rem; }
    .page-header { padding: 140px 0 60px; }
    .section-padding { padding: 60px 0; }
}