/* ===========================================
   HEADER CSS (Color Controlled by 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);
}   /* ← FIXED MISSING BRACE */
/* ============================
   FINAL HEADER FIX OVERRIDES
============================ */

/* FORCE HEADER ABOVE ALL CONTENT */
.site-header,
.uicore-header-wrapper,
.uicore-navbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 999999 !important;
    background: var(--header-bg) !important;
}

/* FORCE MOBILE MENU ABOVE EVERYTHING */
.mobile-nav {
    position: fixed !important;
    top: 70px !important;
    left: 0;
    width: 100%;
    background: var(--submenu-bg) !important;
    z-index: 99999999 !important;
    display: none;
    padding: 15px 0;
}

/* When opened */
.mobile-nav.open {
    display: block !important;
}

/* FIX DROPDOWNS ON MOBILE */
.mobile-nav .sub-menu {
    display: block !important;
    padding-left: 20px;
}

/* ENSURE DESKTOP MENU DOES NOT INTERFERE ON MOBILE */
@media (max-width: 992px) {
    .uicore-menu {
        display: none !important;
    }

    .uicore-toggle {
        display: block !important;
        z-index: 99999999 !important;
        position: relative;
    }
}

/* HERO SECTION MUST NEVER COVER HEADER */
.hero,
.hero-section,
.hero-inner,
.hero-video,
.hero-overlay {
    position: relative !important;
    z-index: 0 !important;
    overflow: visible !important;
}

/* NAVBAR */
.uicore-navbar {
  position: sticky !important;
  top: 0;
  width: 100%;
  background: var(--header-bg);
  z-index: 99999 !important;
}

/* CONTAINER */
.uicore-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1250px;
  margin: auto;
  padding: 15px 20px;
}

/* LOGO */
.uicore-branding img,
.site-logo {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: 0.3s ease;
}

/* DESKTOP MENU */
.uicore-menu {
  display: flex;
  gap: 30px;
  list-style: none;
}
.uicore-menu a {
  color: var(--header-link);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.uicore-menu a:hover {
  color: var(--header-link-hover);
}

/* SUBMENU */
.sub-menu {
  display: none;
  list-style: none;
  background: var(--submenu-bg);
  padding: 12px 0;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  border-radius: 6px;
}
.uicore-menu li:hover .sub-menu {
  display: block;
}

/* CTA BUTTON */
.uicore-btn {
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 600;
}

/* MOBILE TOGGLE */
.uicore-toggle {
  display: none;
  cursor: pointer;
  background: none;
  border: none;
}
.bars {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.bar {
  width: 25px;
  height: 3px;
  background: var(--header-link);
}

/* MOBILE NAV */
.mobile-nav {
  display: none;
  background: var(--submenu-bg);
  width: 100%;
  position: fixed;      /* so it always shows */
  top: 70px;            /* just below header */
  left: 0;
  padding: 15px 0;
  z-index: 999999 !important; /* above everything */
}

.mobile-nav.open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  text-align: center;
}
.mobile-nav a {
  padding: 12px;
  display: block;
  text-decoration: none;
  color: var(--header-link);
}
.mobile-nav a:hover {
  color: var(--header-link-hover);
}

/* MOBILE SUBMENU ALWAYS SHOWS */
.mobile-nav .sub-menu {
  display: block !important;
  padding-left: 20px;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .uicore-menu {
    display: none;
  }
  .uicore-toggle {
    display: block;
  }
}
.whatsapp-float {
        position: fixed;
        bottom: 25px;
        top : 10px;
        right: 25px;
        z-index: 9999;
        animation: pulse 2s infinite;
    }
    .whatsapp-icon {
        width: 52px;
        height: 50px;
        border-radius: 50%;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
        transition: all 0.3s ease;
        border: 3px solid #fff;
    }
    .whatsapp-icon:hover {
        transform: scale(1.15);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
    }
    @keyframes pulse {
        0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
        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;}}