/* ==========================================================================
   NAVBAR & MOBILE DRAWER STYLES
   ========================================================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-off-white);
  border-bottom: var(--border-thick);
  box-shadow: var(--shadow-sm);
  transition: height 0.2s ease, box-shadow 0.2s ease, padding 0.2s ease;
  height: 80px;
}

.navbar.scrolled {
  height: 70px;
  box-shadow: var(--shadow-md);
}

.nav-container {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  flex-shrink: 0;
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--color-primary-dark);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.brand-title span {
  color: var(--color-gold);
}

.brand-subtitle {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--color-text-mid);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

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

.nav-link {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text-dark);
  position: relative;
  padding: 6px 0;
  transition: color 0.15s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0%;
  height: 4px;
  background: var(--color-gold);
  border-radius: 2px;
  transition: width 0.2s ease-in-out;
}

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

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Mobile Hamburger Button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1002;
  padding: 0;
}

.hamburger span {
  width: 100%;
  height: 4px;
  background: var(--color-text-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(10px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Drawer Overlay */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.6);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.drawer-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Mobile Drawer Panel */
.nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 85%;
  max-width: 380px;
  height: 100vh;
  background: var(--color-primary-dark);
  border-left: var(--border-thick);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  padding: 100px 32px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
}

.nav-drawer.open {
  right: 0;
}

.drawer-links {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.drawer-link {
  font-family: 'Sora', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--color-white);
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.15);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.drawer-link:hover, .drawer-link.active {
  color: var(--color-gold);
  border-bottom-color: var(--color-gold);
}

.drawer-footer {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Responsive Rules */
@media (max-width: 768px) {
  .navbar {
    height: 64px;
    min-height: 64px;
  }

  .nav-menu {
    display: none;
  }

  .nav-actions .btn-primary {
    display: none !important;
  }

  .hamburger {
    display: flex;
  }
  
  .brand-title {
    font-size: 16px;
  }

  .brand-subtitle {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 170px;
    font-size: 10px;
  }

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

@media (max-width: 480px) {
  .brand-subtitle {
    display: none;
  }
}
