/* ==========================================================================
   GLOBAL RESET FOR CLICK ARTIFACTS
   ========================================================================== */

/* Universal fix to stop the black/gray box flash on mobile devices */
html,
body,
.zuari-site-header *,
.btn,
.primary-btn,
.secondary-btn {
  -webkit-tap-highlight-color: transparent !important;
  -webkit-focus-ring-color: transparent !important;
}

/* ==========================================================================
   CLEAN BUTTON SYSTEM (No Black Effects)
   ========================================================================== */

.btn,
.hero-btn,
.collab-btn,
.tech-cta-btn,
.contact-submit-btn,
.zuari-btn-fill,
.zuari-btn-outline {
  display: inline-flex !important;
  width: fit-content !important;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  height: 48px;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s ease, opacity 0.2s ease;
  position: relative;
  user-select: none; /* Prevents text selection highlight */

  /* CRITICAL: Remove all browser-level click artifacts */
  outline: none !important;
  box-shadow: none !important;
  background-image: none !important; /* Removes default browser gradients on click */
  -webkit-appearance: none;
}

/* Ensure no outline or dark shadow shows up when clicking/focusing */
.btn:focus,
.btn:active,
.btn:focus-visible,
.zuari-btn-fill:focus,
.zuari-btn-outline:focus {
  outline: none !important;
  box-shadow: none !important;
  background-image: none !important;
}

/* ================= PRIMARY BUTTON (SIMPLE) ================= */

/* .primary-btn,
.zuari-btn-fill,
.tech-cta-btn {
  background-color: #009a44 !important;
  color: #ffffff !important;
}

.primary-btn:hover,
.zuari-btn-fill:hover,
.tech-cta-btn:hover {
  background-color: #009a44 !important;
}

.primary-btn:active,
.zuari-btn-fill:active,
.tech-cta-btn:active {
  background-color: #009a44 !important;
  transform: none !important;
  opacity: 0.9;
} */

/* ================= OUTLINE BUTTON (SIMPLE) ================= */
/* 
.secondary-btn {
  background-color: #ffffff !important;
  color: #1a2b56 !important;
  border: 1.5px solid #1a2b56 !important;
}

.zuari-btn-outline {
  background-color: #ffffff !important;
  color: #223d7c !important;
  border: 1.5px solid #223d7c !important;
}

.secondary-btn:hover,
.zuari-btn-outline:hover {
  background-color: #f8fafc !important;
}

.secondary-btn:active,
.zuari-btn-outline:active {
  background-color: #f1f5f9 !important;
  transform: none !important;
  color: #1a2b56 !important;
} */

/* ================= PRIMARY BUTTON (GREEN) ================= */

.primary-btn,
.zuari-btn-fill,
.tech-cta-btn,
.hero-btn-green {
  background-color: #009a44 !important;
  color: #ffffff !important;
  border: none !important;
  box-shadow: none !important; /* Removed the 4px shadow from your global reset */
}

.primary-btn:hover,
.zuari-btn-fill:hover,
.tech-cta-btn:hover {
  background-color: #00853a !important; /* Slightly darker green for hover */
}

/* ================= OUTLINE BUTTON (BLUE) ================= */

.secondary-btn,
.zuari-btn-outline,
.hero-btn-white {
  background-color: #ffffff !important;
  color: #223d7c !important; /* THE BLUE YOU REQUESTED */
  border: 1.5px solid #223d7c !important;
  box-shadow: none !important; /* Removed the gray shadow from global reset */
  transform: none !important; /* Prevents the 'push down' effect if you don't want it */
}

.secondary-btn:hover,
.zuari-btn-outline:hover,
.hero-btn-white:hover {
  background-color: #f8fafc !important;
  color: #223d7c !important;
  border-color: #223d7c !important;
}

.secondary-btn:active,
.zuari-btn-outline:active {
  background-color: #f1f5f9 !important;
  opacity: 0.8;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */

.zuari-site-header {
  background: #ffffff;
  padding: 12px 0;
  width: 100%;
  position: fixed;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #f0f0f0;
  /* transition: all 0.25s ease; */
  transition: transform 0.4s ease-in-out;
}

.zuari-site-header .zuari-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Pushes header up by its own height */
.header-hidden {
  transform: translateY(-100%) !important;
}

/* Optional: Polished look when moving away from top */
.header-scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid #e0e0e0 !important;
}

.zuari-logo img {
  height: 40px;
  width: auto;
  display: block;
  transition: transform 0.25s ease;
}

.zuari-nav {
  flex-grow: 1;
  display: flex;
  justify-content: center;
}

.zuari-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 35px;
}

/* THE FIX: Anchor for the dropdown menu */
.zuari-menu-list li {
  position: relative !important;
}

.zuari-menu-list li a {
  color: #1a2b56;
  font-weight: 500;
  font-size: 16px;
  transition: color 0.25s ease;
  padding: 10px 0;
  display: block;
  position: relative;
  outline: none !important;
  background-color: transparent !important;
}

/* Underline Animation */
.zuari-menu-list li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0%;
  height: 2px;
  background: #009a44;
  transition: width 0.25s ease;
}

.zuari-menu-list li a:hover::after,
.zuari-menu-list li.current-menu-item > a::after {
  width: 100%;
}

.zuari-menu-list li a:hover {
  color: #009a44;
}

/* ==========================================================================
   DROPDOWN & MOBILE
   ========================================================================== */

.zuari-menu-list .sub-menu {
  position: absolute;
  top: 100%; /* Changed from 120% to close the gap */
  left: 0;
  width: 220px;
  background: #ffffff;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  border-radius: 10px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s ease;
  z-index: 100;
}

.zuari-menu-list li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.zuari-menu-list .sub-menu li a {
  padding: 10px 20px;
  font-size: 15px;
}

/* Remove underline animation from dropdown items */
.zuari-menu-list .sub-menu li a::after {
  display: none;
}

.zuari-header-actions {
  display: flex;
  gap: 15px;
}

.zuari-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
}

.zuari-mobile-toggle span {
  width: 18px;
  height: 2px;
  background-color: #1a2b56;
  transition: all 0.3s ease;
}

@media (max-width: 1200px) {
  .zuari-nav,
  .zuari-header-actions {
    display: none;
  }
  .zuari-mobile-toggle {
    display: flex;
  }

  .nav-open .zuari-nav {
    display: block !important;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #ffffff;
    padding: 30px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-top: 1px solid #f0f0f0;
  }

  /* Reset dropdown for mobile */
  .nav-open .zuari-menu-list .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    transform: none;
    width: 100%;
    padding-left: 15px;
  }
}

/* ==========================================================================
   MENU CLICK REFINEMENT
   ========================================================================== */

/* Remove highlight from top-level items with sub-menus */
.zuari-menu-list > li.menu-item-has-children > a {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

.zuari-menu-list > li.menu-item-has-children > a:focus,
.zuari-menu-list > li.menu-item-has-children > a:active {
  color: #1a2b56 !important;
  background: transparent !important;
}

/* ================= MOBILE BUTTONS ================= */

.zuari-mobile-actions {
  display: none;
}

/* Mobile menu styles */
@media (max-width: 1200px) {
  .zuari-mobile-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }

  .zuari-mobile-actions .zuari-btn-fill,
  .zuari-mobile-actions .zuari-btn-outline {
    width: 100%;
    justify-content: center;
    width: 100% !important;
  }
}
