/**
 * Nicolino Leilões - Executive Navigation & Menu Animation Styles
 * Agile Admin Design System (Tokens: #00C6F7 Cyan, #006782 Primary Brand, #0F172A Dark)
 */

/* ==========================================================================
   1. STICKY HEADER ELEVATION ON SCROLL
   ========================================================================== */
#siteHeader {
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
  transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
}

#siteHeader img {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#siteHeader.scrolled img {
  transform: scale(0.85);
  transform-origin: left center;
}

#siteHeader.scrolled {
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  background-color: rgba(16, 23, 26, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.45),
    0 4px 12px -2px rgba(0, 0, 0, 0.35) !important;
  border-bottom: 1px solid rgba(0, 198, 247, 0.25) !important;
}

/* ==========================================================================
   2. DESKTOP NAVIGATION LINKS & ANIMATED UNDERLINE INDICATOR
   ========================================================================== */
.nav-menu-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 0.75rem;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #94a3b8 !important;
  /* Tailwind slate-400 */
  text-decoration: none;
  border-radius: 8px;
  white-space: nowrap;
  transition: all 0.50s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.nav-menu-link:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.06);
}



/* Active State (Clearly Distinct, Glowing Cyan & High Contrast) */
.nav-menu-link.active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background: rgba(0, 198, 247, 0.12) !important;
}

.nav-menu-link.active::after {
  width: 85% !important;
  background: #00C6F7 !important;
  box-shadow: 0 0 12px rgba(0, 198, 247, 0.95), 0 0 20px rgba(0, 198, 247, 0.5) !important;
}

/* HOME button style keeping executive punch */
.nav-menu-link[data-nav="inicio"] {
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ==========================================================================
   3. METODOLOGIA DROPDOWN ANIMATION
   ========================================================================== */
.nav-dropdown-menu {
  opacity: 0;
  transform: translateY(10px) scale(0.97);
  pointer-events: none;
  transform-origin: top left;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.group:hover .nav-dropdown-menu,
.group:focus-within .nav-dropdown-menu {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-dropdown-item {
  display: block;
  padding: 0.65rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  border-left: 2px solid transparent;
}

.nav-dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-left-color: #00C6F7;
  transform: translateX(4px);
}

.nav-dropdown-item.active-subitem {
  background-color: rgba(0, 198, 247, 0.12);
  border-left-color: #00C6F7;
}

/* ==========================================================================
   4. MOBILE ACCORDION DRAWER & HAMBURGER ANIMATIONS
   ========================================================================== */
#mobileMenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.35s ease;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

#mobileMenu.is-open {
  max-height: 520px;
  opacity: 1;
  padding-top: 1.25rem !important;
  padding-bottom: 1.5rem !important;
}

#mobileMenuBtn {
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

#mobileMenuBtn.is-active {
  transform: rotate(90deg);
}

.mobile-nav-link {
  display: block;
  padding: 0.65rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 15px;
  font-weight: 500;
  color: #cbd5e1;
  /* slate-300 */
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}

.mobile-nav-link:hover {
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.06);
  padding-left: 1rem;
}

.mobile-nav-link.active {
  color: #ffffff !important;
  font-weight: 700 !important;
  background-color: rgba(0, 198, 247, 0.15) !important;
  border-left: 4px solid #00C6F7 !important;
  padding-left: 1rem !important;
}

/* ==========================================================================
   SCROLL REVEAL ANIMATIONS
   ========================================================================== */
.will-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.will-reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Ensure elements in viewport initially are visible immediately without transition delay */
.is-revealed {
  opacity: 1 !important;
  transform: translateY(0) !important;
}