/**
 * Biznetrix Custom Styles
 * Overrides for navbar, hero, and branding
 */

/* ========================================
   BRAND COLORS (Enterprise SaaS)
   ======================================== */
:root {
    --primary: #2563EB;        /* Azure Blue */
    --primary-dark: #0F172A;   /* Deep Navy */
    --primary-light: #06B6D4;  /* AI Cyan */
    --secondary: #22C55E;      /* Success Green */
    --light: #EEF9FF;
    --dark: #091E3E;
}

/* ========================================
   NAVBAR - Transparent with Clear Active State
   ======================================== */
.navbar {
    background-color: transparent !important;
    background: transparent !important;
    transition: all 0.3s ease;
    margin-bottom: 0 !important;
}

.navbar-dark .navbar-brand,
.navbar-dark .nav-link {
    color: #ffffff !important;  /* White text for dark hero background */
}

.navbar-dark .nav-link:hover {
    color: #06B6D4 !important;  /* AI Cyan on hover */
}

/* Active Menu Item - White with Underline (Visible on Dark Hero) */
.navbar-dark .nav-link.active {
    color: #ffffff !important;
    font-weight: 700;
    position: relative;
}

.navbar-dark .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #06B6D4;  /* AI cyan underline */
}

/* Language Switcher - White text on transparent navbar */
.navbar-dark .nav-link.dropdown-toggle.border-secondary {
    border-color: rgba(255, 255, 255, 0.3) !important;
    color: #ffffff !important;
}

.navbar-dark .dropdown-menu {
    background-color: rgba(15, 23, 42, 0.95);
    border-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .dropdown-menu .dropdown-item {
    color: #ffffff;
}

.navbar-dark .dropdown-menu .dropdown-item:hover {
    background-color: rgba(6, 182, 212, 0.2);
    color: #06B6D4;
}

/* Language Switcher - Dark text on white navbar */
.navbar.sticky-top .nav-link.dropdown-toggle.border-secondary {
    border-color: #d1d5db !important;
    color: #1f2937 !important;
}

.navbar.sticky-top .dropdown-menu {
    background-color: #ffffff;
    border-color: #e5e7eb;
}

.navbar.sticky-top .dropdown-menu .dropdown-item {
    color: #1f2937;
}

.navbar.sticky-top .dropdown-menu .dropdown-item:hover {
    background-color: #eff6ff;
    color: #2563EB;
}

/* ========================================
   DYNAMIC LOGO - White/Dark Based on Navbar State
   ======================================== */
/* Transparent navbar - show white logo, hide dark logo */
.navbar-dark .navbar-brand-logo-dark {
    display: none !important;
}

.navbar-dark .navbar-brand-logo-white {
    display: inline-block !important;
}

/* Site name white on transparent navbar */
.navbar-dark .navbar-brand-text {
    color: #ffffff !important;
}

/* Sticky navbar - show dark logo, hide white logo */
.navbar.sticky-top .navbar-brand-logo-white {
    display: none !important;
}

.navbar.sticky-top .navbar-brand-logo-dark {
    display: inline-block !important;
}

/* Site name dark on white navbar */
.navbar.sticky-top .navbar-brand-text {
    color: #1f2937 !important;
}

/* Logo size - increased to 90px */
.navbar-brand img {
    max-height: 90px !important;
}

/* Site name size */
.navbar-brand-text {
    font-size: 2rem !important;
    font-weight: 700 !important;
}

/* ========================================
   HERO SECTION - Dark Navy Gradient
   ======================================== */
.hero-header.bg-primary {
    background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%) !important;
    position: relative;
    overflow: hidden;
}

/* Optional: Add subtle pattern overlay */
.hero-header.bg-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

/* Ensure hero content is above overlay and below navbar */
.hero-header .container {
    position: relative;
    z-index: 1;
    padding-top: 100px;  /* Space for transparent navbar above */
}

/* ========================================
   BUTTONS - Updated Colors
   ======================================== */
.btn-primary {
    background-color: #2563EB;
    border-color: #2563EB;
}

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

.btn-outline-light:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #ffffff;
}

/* ========================================
   STICKY NAVBAR - White when scrolled
   ======================================== */
.navbar.sticky-top {
    background-color: #ffffff !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
}

.navbar.sticky-top .navbar-brand,
.navbar.sticky-top .nav-link {
    color: #1f2937 !important;  /* Dark text on white background */
}

.navbar.sticky-top .nav-link:hover {
    color: #2563EB !important;  /* Azure blue hover */
}

.navbar.sticky-top .nav-link.active {
    color: #2563EB !important;
    position: relative;
}

.navbar.sticky-top .nav-link.active::after {
    background: #2563EB;  /* Blue underline on white */
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 991.98px) {
    .navbar-dark .nav-link.active {
        background-color: rgba(6, 182, 212, 0.1);
        border-radius: 5px;
        padding: 8px 12px;
    }

    .navbar-dark .nav-link.active::after {
        display: none;  /* Hide underline on mobile, use background instead */
    }

    .navbar.sticky-top .nav-link.active {
        background-color: #eff6ff;
        color: #2563EB !important;
    }

    .navbar.sticky-top .nav-link.active::after {
        display: none;  /* Hide underline on mobile */
    }
}

/* ========================================
   ACCESSIBILITY
   ======================================== */
.nav-link:focus {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

/* ========================================
   SERVICE CARDS - Match New Brand Colors
   ======================================== */
.service-item .btn-primary {
    background-color: #2563EB;
    border-color: #2563EB;
}

.service-item .btn-primary:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    transform: translateX(5px);
    transition: all 0.3s ease;
}

/* Icon colors */
.text-primary {
    color: #2563EB !important;
}

/* ========================================
   TOPBAR - Keep Dark
   ======================================== */
.bg-dark.px-5 {
    background-color: #0F172A !important;
}

/* ========================================
   SOCIAL ICONS - Topbar (White on Dark)
   ======================================== */

/* Reset any Bootstrap defaults */
.bg-dark .btn-outline-light {
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    background-color: transparent !important;
}

.bg-dark .btn-outline-light:hover {
    background-color: #ffffff !important;
    border-color: #ffffff !important;
    color: #0F172A !important;
}

/* Force all icons to inherit parent button color */
.bg-dark .btn-outline-light i,
.bg-dark .btn-outline-light i::before {
    color: inherit !important;
    background-color: transparent !important;
}

/* Ensure Font Awesome brand icons render properly */
.bg-dark .btn-outline-light .fab,
.bg-dark .btn-outline-light .fas {
    color: #ffffff !important;
}

.bg-dark .btn-outline-light:hover .fab,
.bg-dark .btn-outline-light:hover .fas {
    color: #0F172A !important;
}

/* ========================================
   SOCIAL ICONS - Footer (White on Primary)
   ======================================== */

/* Footer social buttons - white icons on primary background */
.btn-primary.btn-square i,
.btn-primary.btn-square i::before {
    color: #ffffff !important;
}

/* Footer hover state - white background with dark/blue icon */
.btn-primary.btn-square:hover {
    background-color: #ffffff !important;
    border-color: #2563EB !important;
}

.btn-primary.btn-square:hover i,
.btn-primary.btn-square:hover i::before {
    color: #2563EB !important;
}

/* Force icon inheritance on hover */
.btn-primary.btn-square:hover .fab,
.btn-primary.btn-square:hover .fas {
    color: #2563EB !important;
}

/* Remove any white gaps */
.container-fluid.position-relative.p-0 {
    margin: 0 !important;
    padding: 0 !important;
}

/* Navbar stays in normal flow - no positioning hacks */
.navbar.bg-white {
    background: transparent !important;
}

