/* =====================================
   COLOR VARIABLES (Brand Colors)
   ===================================== */
:root {
    --main-red: #E10600;
    --dark-blue: #0A1A3A;
    --light-bg: #F5F7FA;
    --soft-grey: #E5E7EB;
    --medium-grey: #9CA3AF;
}

/* =====================================
   GENERAL PAGE RESET & BASE
   ===================================== */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #ffffff;
    margin: 0;
    padding-top: 85px; /* space for fixed header */
    scroll-behavior: smooth;
}

/* Remove unwanted bullet styles globally */
ul, li {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* =====================================
   NAVBAR (FULLY IMPROVED)
   ===================================== */
.main-nav {
    background-color: var(--dark-blue) !important;
    padding-top: 8px;
    padding-bottom: 8px;
}

.navbar-brand {
    display: flex !important;
    align-items: center !important;
}

.navbar-brand img {
    height: 42px;
    width: auto;
}

.logo-red {
    color: var(--main-red);
}

.logo-white {
    color: #ffffff;
}

.navbar-nav {
    align-items: center !important;
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 1rem;
    padding-left: 14px !important;
    padding-right: 14px !important;
    transition: 0.3s ease;
}

.nav-link:hover {
    color: var(--main-red) !important;
}

.navbar-toggler {
    border: none;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* SEARCH BOX */
.navbar .form-control {
    border: 1px solid var(--soft-grey);
    border-radius: 6px;
}

.navbar .form-control:focus {
    box-shadow: 0 0 4px rgba(255,255,255,0.3);
    border-color: var(--main-red);
}

/* =====================================
   HERO SECTION
   ===================================== */
.hero-section {
    background: linear-gradient(90deg, var(--dark-blue), #051632);
    color: white;
    padding: 130px 0;
}

.hero-section h1 {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.25;
}

.hero-section p {
    font-size: 1.2rem;
    opacity: 0.95;
    max-width: 90%;
}

.btn-red {
    background: var(--main-red);
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    border: none;
    transition: 0.25s ease-in-out;
}

.btn-red:hover {
    background: #c10500;
}

/* HERO IMAGE */
.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

/* =====================================
   SECTION TITLES
   ===================================== */
.section-title {
    font-weight: 700;
    color: var(--dark-blue);
    text-align: center;
    margin-bottom: 25px;
    letter-spacing: 0.4px;
}

/* =====================================
   SERVICE CARDS
   ===================================== */
.service-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.06);
    border: 1px solid var(--soft-grey);
    transition: 0.3s ease;
    cursor: pointer;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
    border-color: var(--main-red);
}

/* =====================================
   IMAGE ROUNDED (Generic)
   ===================================== */
img.rounded {
    border-radius: 12px;
}

/* WHY CHOOSE US CARDS */
.why-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: 0.3s ease;
    border-top: 4px solid var(--main-red);
}

.why-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
}

.why-icon {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--main-red);
}


/* =====================================
   PROJECT CARDS
   ===================================== */
.project-card img {
    border-radius: 10px;
    transition: 0.3s;
}

.project-card img:hover {
    transform: scale(1.03);
}

/* =====================================
   FOOTER
   ===================================== */
.footer {
    background: var(--dark-blue);
    color: #ffffff;
    padding: 45px 0;
    margin-top: 40px;
    text-align: center;
    font-size: 0.95rem;
}

.footer a {
    color: var(--main-red);
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
/* ================================
   TEAM SECTION
   ================================ */

.team-card {
    background: #ffffff;
    border-radius: 14px;
    transition: 0.3s ease;
    padding: 25px;
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}


.team-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--main-red);
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
/* ================================
   WHATSAPP FLOATING BUTTON
   ================================ */

.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 22px;
    right: 22px;
    background-color: #25D366;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    animation: pulse 2.2s infinite ease-in-out;
}

.whatsapp-float img {
    width: 35px;
    height: 35px;
}

/* Pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 rgba(37, 211, 102, 0.4);
    }
}

/* Animated Search Box */
.search-btn {
    border-radius: 50px;
    padding: 6px 12px;
}

.search-box {
    position: absolute;
    top: 50px;
    right: 0;
    width: 0;
    height: auto;
    opacity: 0;
    background: #ffffff;
    border-radius: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: all 0.35s ease-in-out;
    z-index: 99999;
}

.search-box.open {
    width: 280px;
    opacity: 1;
    padding: 10px;
}

.btn-close-search {
    background: var(--main-red);
    color: white;
    border-radius: 6px;
}

/* LIVE SEARCH DROPDOWN */
.live-search-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 260px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    display: none;
    z-index: 999999;
}
/* ABOUT HERO */
.about-hero {
    background-image: url('/isoko_africa/public/assets/images/hero/hero.jpg');
    background-size: cover;
    background-position: center center;
    position: relative;
    padding: 110px 0;
    color: #ffffff;
}

.about-hero::before {
    content: "";
    position: absolute;
    left: 0; right: 0; top: 0; bottom: 0;
    background: linear-gradient(90deg, rgba(10,26,58,0.72), rgba(0,0,0,0.35));
    z-index: 0;
}

.about-hero .container, .about-hero .row {
    position: relative;
    z-index: 2;
}

.about-hero h1, .about-hero p.lead {
    color: #fff;
}

/* About content */
.about-overview {
    padding: 50px 0;
}

.about-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.07);
    height: 100%;
}

.values-list li {
    margin-bottom: 8px;
}

/* Small tweak for management grid */
.mgmt-photo {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
}
/* About Page Enhancements */
.about-hero {
    border-bottom: 5px solid var(--main-red);
}

.info-card:hover,
.why-card:hover {
    transform: translateY(-6px);
    transition: 0.25s ease;
}

.map-container iframe {
    border-radius: 12px;
}
/* SERVICE IMAGE CARDS */
.service-img-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s ease;
}

.service-img-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.18);
}

.service-top-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

/* HERO BANNER */
.service-hero-banner {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    color: white;
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
}
/* HERO OVERLAY */
.service-hero-banner .overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.45);
}

/* PRO SERVICE CARDS (Premium Look) */
.service-pro-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 18px rgba(0,0,0,0.10);
    transition: 0.3s ease;
}

.service-pro-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.20);
}

.service-pro-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-pro-body {
    padding: 20px;
}

.service-pro-body h4 {
    color: var(--dark-blue);
    font-weight: 700;
    margin-bottom: 10px;
}

.service-pro-body p {
    color: #555;
    margin-bottom: 0;
    line-height: 1.6;
}
/* ================================
   MOBILE SEARCH FIX (CENTERED)
================================ */
@media (max-width: 768px) {

    .search-box {
        position: fixed !important;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 90%;
        max-width: 400px;
        background: #ffffff;
        padding: 15px;
        border-radius: 12px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        z-index: 9999;
        display: none;
    }

    .search-box.open {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .search-box input {
        flex: 1;
    }

    /* Dark overlay background */
    body::after {
        content: "";
        display: none;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        z-index: 9998;
    }

    body.search-open::after {
        display: block;
    }
}