/* ==========================================
   ARAVAA GLOBAL - HEADER & NAVBAR STYLES
   ========================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--dark-navy);
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.site-header.scrolled {
  background-color: rgba(3, 12, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  padding: 12px 0;
}

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

/* Brand Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

/* Primary Navigation Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
  /* Smooth color transition – overrides animations.css transition:none */
  transition: color 250ms ease;
}

.nav-link:hover {
  color: var(--primary-blue);
}

/* Active Navigation Underline Indicator */
.nav-link.active {
  color: var(--primary-blue);
  font-weight: 600;
}

/*
  Override animations.css ::after approach (display:none → display:block).
  Use width:0 → width:100% instead so the underline can transition smoothly.
  header.css loads after animations.css so same-specificity rules here win.
*/
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2.5px;
  background-color: var(--primary-blue);
  border-radius: var(--radius-full);
  display: block;
  transition: width 250ms ease;
}

.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Toggle Hamburger */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.mobile-toggle span {
  width: 100%;
  height: 2.5px;
  background-color: var(--text-white);
  border-radius: 2px;
}

.mobile-toggle.is-active span:nth-child(1) {
  transform: translateY(8.5px) rotate(45deg);
}

.mobile-toggle.is-active span:nth-child(2) {
  opacity: 0;
}

.mobile-toggle.is-active span:nth-child(3) {
  transform: translateY(-8.5px) rotate(-45deg);
}

/* Mobile Navigation Overlay Drawer */
@media (max-width: 992px) {
  .mobile-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 380px;
    height: 100vh;
    height: 100dvh;
    background-color: var(--dark-navy);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 36px 40px 36px;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
    z-index: 1001;
  }
  
  .nav-menu.is-active {
    right: 0;
  }
  
  .nav-link {
    font-size: 1.15rem;
    width: 100%;
  }

  .nav-link.active::after {
    bottom: -4px;
    width: 100%;
  }
  
  .header-actions .btn {
    display: none;
  }
}
