/* ===========================================
   COLORS (from colors.php)
=========================================== */
:root {
  --primary: var(--primary-color);
  --secondary: var(--secondary-color);
  --accent: var(--accent-color);

  --header-bg: var(--header-bg);
  --header-link: var(--header-link);
  --header-link-hover: var(--header-link-hover);

  --submenu-bg: var(--submenu-bg);
  --submenu-link: var(--submenu-link);
  --submenu-link-hover: var(--submenu-link-hover);
}

/* ===========================================
   GLOBAL HEADER
=========================================== */
.site-header {
    position: sticky !important;
    top: 0;
    z-index: 999999 !important;
    background: var(--header-bg) !important;
}
/* ===========================================
   GLOBAL HEADER FIX (ALWAYS ON TOP)
=========================================== */
.site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important;
    background: var(--header-bg) !important;
}

/* ===========================================
   HEADER INNER / NAVBAR LAYOUT
   (This works with UiCore: .uicore-navbar + .uicore-container)
=========================================== */
.uicore-navbar .uicore-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

/* LOGO */
.uicore-branding img,
.site-logo {
    height: 48px;
    width: auto;
}

/* TOGGLE BUTTON (3 LINES) */
.uicore-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    display: none; /* only show on mobile */
}

/* ===========================================
   HEADER INNER LAYOUT (PERFECT CENTER LOGO)
=========================================== */
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
}

 LEFT & RIGHT equal width = perfect logo center 
.header-side {
    width: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
}

 CENTER LOGO 
.header-center {
    flex: 1;
    text-align: center;
}
.header-center img {
    height: 48px;
    width: auto;
}

 RIGHT SIDE CONTENT (WhatsApp + menu icon) 
.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* WhatsApp icon */
.whatsapp-small img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
}

/* ===========================================
   MOBILE MENU TOGGLE (3 LINES)
=========================================== */
.uicore-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
    z-index: 999999;
}

.bars {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.bar {
    width: 28px;
    height: 3px;
    background: var(--header-link);
}

/* ===========================================
   DESKTOP NAVIGATION (unchanged)
=========================================== */
.uicore-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}
.uicore-menu a {
    color: var(--header-link);
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}
.uicore-menu a:hover {
    color: var(--header-link-hover);
}

/* Desktop hover submenu */
.sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    background: var(--submenu-bg);
    list-style: none;
    padding: 12px 0;
    min-width: 220px;
    border-radius: 6px;
}
.uicore-menu li:hover .sub-menu {
    display: block;
}

/* ===========================================
   MOBILE NAVIGATION (FULL SCREEN PANEL)
=========================================== */
.mobile-nav {
    
    position: fixed;
    top: 72px;
    left: 0;
    width: 100%;
    background: #111;
    padding: 20px 0;
    z-index: 9999999;
    opacity: 1 !important;
    visibility: visible !important;
}
.uicore-header-wrapper,
.uicore-navbar {
    z-index: 99999 !important;
}

.mobile-nav.open {
    display: block !important;
}

/* Mobile links */
.mobile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
}
.mobile-nav a {
    color: #fff;p
    display: block;
    padding: 12px 0;
    font-size: 20px;
}

/* Mobile submenu CLOSED by default */
.mobile-nav .sub-menu {
    display: none;
    padding-top: 10px;
}

.mobile-nav .menu-item-has-children.active .sub-menu {
    display: block;
}

/* ===========================================
   MOBILE RESPONSIVE
=========================================== */
@media (max-width: 992px) {
    /* hide desktop menu */
    .uicore-menu {
        display: none !important;
    }

    /* show toggle */
    .uicore-toggle {
        display: block;
    }

    /* center logo, put 3 lines on the right */
    .uicore-navbar .uicore-container {
        position: relative;
        justify-content: center;   /* center content */
    }

    .uicore-branding {
        margin: 0 auto;           /* logo in true center */
    }

    .uicore-toggle {
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ===========================================
   WHATSAPP FLOAT BUTTON (BOTTOM RIGHT)
=========================================== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    animation: pulse 2s infinite;
}

.whatsapp-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: 3px solid #fff;
    transition: 0.3s ease;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.whatsapp-icon:hover {
    transform: scale(1.15);
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.8); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 768px) {
    .whatsapp-float { bottom: 15px; right: 15px; }
    .whatsapp-icon { width: 55px; height: 55px; }
}
.site-header,
.uicore-navbar,
.uicore-header-wrapper {
    z-index: 999999 !important;
}

.mobile-nav {
    z-index: 999999999 !important;
}
