/* ========================
   KITENGE AWARDS COLORS
======================== */
:root {
    /* Brand */
    --primary: #19B19E;        /* Teal */
    --secondary: #FF9A01;      /* Orange */
    --accent: #A81D6B;         /* Magenta */
    --accent-dark: #681D4F;    /* Deep purple */

    /* Text */
    --dark-text: #1f1f1f;
    --muted-text: #6b7280;

    /* Surfaces */
    --light-bg: #ffffff;
    --card-bg: #ffffff;
    --border-color: rgba(0,0,0,0.08);

    /* Soft helpers */
    --soft-mint: #9DC4BB;
    --soft-gold: #F8BF69;
    --muted-bg: #f7fafc;

    /* Gradients */
    --primary-gradient: linear-gradient(135deg, #19B19E, #0b7285);
    --festival-gradient: linear-gradient(135deg, #19B19E, #FF9A01, #A81D6B);

    /* Map to Bootstrap (helps text-primary, btn-primary etc) */
    --bs-primary: var(--primary);
    --bs-secondary: var(--secondary);
}

/* ========================
   DARK MODE VARIABLES
======================== */
body.dark-mode {
    --dark-text: #e7e7e7;
    --muted-text: #b7b7b7;

    --light-bg: #0f1115;
    --card-bg: #151822;
    --border-color: rgba(255,255,255,0.10);
    --muted-bg: #0f141d;

    --primary-gradient: linear-gradient(135deg, #0f8f81, #0b4f55);
    --festival-gradient: linear-gradient(135deg, #0f8f81, #c77800, #7a144c);

    --bs-primary: var(--primary);
    --bs-secondary: var(--secondary);
}

/* ========================
   BASE
======================== */
body {
    background: var(--light-bg);
    color: var(--dark-text);
    transition: background 0.3s, color 0.3s;
}

.card,
.navbar,
footer {
    background: var(--card-bg) !important;
    border-color: var(--border-color) !important;
    transition: 0.3s;
}

a { color: var(--primary); text-decoration: none; }
a:hover { color: #0b7285; }

.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-accent { color: var(--accent) !important; }
.text-muted { color: var(--muted-text) !important; }

/* Subtle borders everywhere */
.border, .table, .table td, .table th {
    border-color: var(--border-color) !important;
}

/* ========================
   BUTTONS (Brand)
======================== */
.btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
}
.btn-primary:hover { filter: brightness(0.95); }

.btn-secondary {
    background: var(--secondary) !important;
    border-color: var(--secondary) !important;
    color: #111 !important;
}
.btn-secondary:hover { filter: brightness(0.95); }

/* Orange CTA button */
.btn-kitenge {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #111;
    font-weight: 700;
}
.btn-kitenge:hover { filter: brightness(0.95); }

/* Hero outline button */
.btn-kitenge-outline {
    border: 2px solid rgba(255,255,255,0.85);
    color: #fff;
    font-weight: 700;
}
.btn-kitenge-outline:hover {
    background: rgba(255,255,255,0.12);
    color: #fff;
}

/* ========================
   BADGES (Matches brand)
======================== */
.badge.bg-success { background: var(--primary) !important; }
.badge.bg-warning { background: var(--secondary) !important; color: #111 !important; }
.badge.bg-info { background: var(--soft-mint) !important; color: #111 !important; }
.badge.bg-danger { background: var(--accent) !important; }

/* ========================
   HERO (Festival look)
======================== */
.hero {
    position: relative;
    overflow: hidden;
    background: var(--festival-gradient);
}

.hero::before {
    content: "";
    position: absolute;
    inset: -40%;
    background:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.18), transparent 45%),
        radial-gradient(circle at 80% 20%, rgba(255,255,255,0.12), transparent 45%),
        radial-gradient(circle at 70% 80%, rgba(255,255,255,0.10), transparent 45%);
    transform: rotate(-8deg);
}

.hero > .container {
    position: relative;
    z-index: 1;
}

/* ========================
   SECTION HELPERS
======================== */
.section-muted {
    background: var(--muted-bg);
}

/* Cards feel premium */
.card {
    border: 1px solid var(--border-color) !important;
    border-radius: 14px;
}
.card.shadow-sm { box-shadow: 0 6px 18px rgba(0,0,0,0.06) !important; }

/* ========================
   NAVBAR (optional polish)
======================== */
.navbar .nav-link {
    color: var(--dark-text) !important;
    opacity: 0.85;
}
.navbar .nav-link:hover {
    color: var(--primary) !important;
    opacity: 1;
}
.navbar .nav-link.active {
    color: var(--primary) !important;
    font-weight: 700;
}

/* ========================
   NAVBAR (KITENGE STYLE)
======================== */
.navbar {
    background: var(--card-bg) !important;
    border-bottom: 1px solid var(--border-color);
    transition: 0.3s;
}

/* Brand logos */
.logo-brand img {
    display: block;
    object-fit: contain;
}
.logo-wide { height: 44px; width: auto; }
.logo-mobile { height: 38px; width: auto; }

/* Nav links */
.navbar .nav-link {
    position: relative;
    color: var(--dark-text) !important;
    font-weight: 600;
    opacity: 0.9;
    padding: 0.75rem 1rem;
    transition: 0.2s;
}

/* Hover + active */
.navbar .nav-link:hover {
    color: var(--primary) !important;
    opacity: 1;
}

.navbar .nav-link.active {
    color: var(--primary) !important;
    opacity: 1;
}

/* Underline animation (clean + premium) */
.navbar .nav-link::after {
    content: "";
    position: absolute;
    left: 1rem;
    right: 1rem;
    bottom: 0.35rem;
    height: 2px;
    background: var(--primary);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease-in-out;
    opacity: 0.9;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
    transform: scaleX(1);
}

/* Dropdown */
.dropdown-menu {
    border: 1px solid var(--border-color);
    background: var(--card-bg);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border-radius: 12px;
    padding: 0.5rem;
    margin-top: 0.75rem;
}

.dropdown-item {
    border-radius: 10px;
    padding: 0.6rem 0.8rem;
    font-weight: 600;
    color: var(--dark-text);
    transition: 0.15s;
}

.dropdown-item:hover {
    background: rgba(25, 177, 158, 0.12);
    color: var(--primary);
}

/* Optional: hover open dropdown on desktop (your class is hover-dropdown) */
@media (min-width: 992px) {
    .hover-dropdown:hover > .dropdown-menu {
        display: block;
    }
}

/* Toggler */
.navbar-toggler {
    border: 1px solid var(--border-color);
    padding: 0.4rem 0.55rem;
    border-radius: 10px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(25, 177, 158, 0.15);
}

/* Make the toggler icon visible in dark mode too */
body.dark-mode .navbar-toggler-icon {
    filter: invert(1);
}


/* ========================
   HERO CTA OVERLAY
======================== */
.hero-cta-overlay {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.hero-cta-overlay .btn {
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Mobile adjustment */
@media (max-width: 768px) {
    .hero-cta-overlay {
        bottom: 40px;
    }
}


/* ========================
   FORMS
======================== */
.form-control:focus,
.form-select:focus {
    border-color: rgba(25, 177, 158, 0.55);
    box-shadow: 0 0 0 0.2rem rgba(25, 177, 158, 0.15);
}

/* =========================
   FLOATING WHATSAPP BUTTON
========================= */
.floating-whatsapp {
    position: fixed;
    bottom: 95px;
    right: 25px;

    /* Brand-friendly WhatsApp + Kitenge blend */
    background: linear-gradient(135deg, #25D366, var(--primary));
    color: #fff;

    border-radius: 50%;
    width: 60px;
    height: 60px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 2rem;
    z-index: 9999;
    cursor: pointer;

    box-shadow:
        0 10px 25px rgba(25, 177, 158, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.2);

    opacity: 0;
    transform: translateY(100px);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        opacity 0.3s ease;
}

.floating-whatsapp:hover {
    transform: scale(1.12);
    box-shadow:
        0 15px 35px rgba(25, 177, 158, 0.55),
        0 6px 18px rgba(0, 0, 0, 0.25);
    color: #fff;
}

/* Make visible after scroll */
.floating-whatsapp.active {
    opacity: 1;
    transform: translateY(0);
    animation: bounceIn 0.6s ease;
}

/* Soft festival bounce */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: translateY(100px) scale(0.85);
    }
    60% {
        opacity: 1;
        transform: translateY(-8px) scale(1.05);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

/* Optional pulse to attract attention */
.floating-whatsapp::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    background: rgba(25, 177, 158, 0.25);
    animation: pulse 2.5s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    70% { transform: scale(1.4); opacity: 0; }
    100% { opacity: 0; }
}

/* Mobile adjustment */
@media (max-width: 576px) {
    .floating-whatsapp {
        bottom: 110px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 1.7rem;
    }
}


/* ========================
   FOOTER
======================== */
footer {
    border-top: 1px solid var(--border-color);
}
