/**
 * Header & Navigation Component Styles
 * Includes: Desktop nav, mobile nav, hamburger menu
 */

/* ==========================================================================
   HEADER
   ========================================================================== */

header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: all var(--transition-normal);
}

header.scrolled {
  box-shadow: var(--shadow-md);
}

/* ==========================================================================
   DESKTOP NAVIGATION
   ========================================================================== */

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-lg);
  max-width: 1400px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img,
#logo-img {
  height: 60px;
  width: auto;
  transition: transform var(--transition-fast);
}

.logo img:hover {
  transform: scale(1.05);
}

nav ul {
  list-style: none;
  display: flex;
  gap: var(--spacing-lg);
  align-items: center;
}

nav ul li a {
  color: var(--text-dark);
  font-weight: 500;
  padding: var(--spacing-xs) var(--spacing-sm);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  position: relative;
  text-decoration: none;
}

nav ul li a:hover {
  color: var(--gold-text);
  background: var(--background-light);
}

nav ul li a.active {
  color: var(--gold-text);
  font-weight: 600;
}

nav ul li a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 2px;
  background: var(--accent-gold);
}

/* ==========================================================================
   MOBILE NAVIGATION TOGGLE
   ========================================================================== */

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--primary-navy);
  margin: 5px 0;
  transition: all var(--transition-fast);
  border-radius: 2px;
}

.mobile-nav-toggle.active .hamburger:nth-child(1) {
  transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-nav-toggle.active .hamburger:nth-child(3) {
  transform: rotate(45deg) translate(-5px, -6px);
}

/* ==========================================================================
   MOBILE NAVIGATION MENU
   ========================================================================== */

.mobile-nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 300px;
  height: 100vh;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  z-index: 1002;
  transition: right var(--transition-normal);
  overflow-y: auto;
}

.mobile-nav.active {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-md);
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav-header img {
  height: 40px;
  width: auto;
}

.mobile-nav-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-dark);
  padding: var(--spacing-xs);
  transition: color var(--transition-fast);
}

.mobile-nav-close:hover {
  color: var(--accent-gold);
}

.mobile-nav ul {
  flex-direction: column;
  padding: var(--spacing-md);
  gap: 0;
}

.mobile-nav ul li {
  width: 100%;
  border-bottom: 1px solid var(--border-color);
}

.mobile-nav ul li:last-child {
  border-bottom: none;
}

.mobile-nav ul li a {
  display: block;
  padding: var(--spacing-md) var(--spacing-sm);
  color: var(--text-dark);
  font-weight: 500;
}

.mobile-nav ul li a:hover {
  color: var(--accent-gold);
  background: var(--background-light);
}

.mobile-nav ul li a.active {
  color: var(--accent-gold);
  font-weight: 600;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: none;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.mobile-nav-overlay.active {
  display: block;
  opacity: 1;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 768px) {
  nav ul {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  #logo-img {
    height: 50px;
  }
}

@media (max-width: 480px) {
  nav {
    padding: var(--spacing-xs) var(--spacing-md);
  }

  #logo-img {
    height: 45px;
  }

  .mobile-nav {
    width: 280px;
  }
}
