/* Header and Navigation Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    90deg,
    rgba(12, 10, 8, 0.94),
    rgba(42, 14, 10, 0.92)
  );
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
  z-index: 1000;
  padding: 8px 0;
  height: 90px;
  border-bottom: 1px solid rgba(244, 181, 40, 0.22);
  transition: var(--transition);
}

.header.scrolled {
  background: linear-gradient(
    90deg,
    rgba(12, 10, 8, 0.98),
    rgba(42, 14, 10, 0.96)
  );
  box-shadow: var(--shadow-md);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 0.8rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.12rem;
  color: var(--white);
  text-decoration: none;
  font-weight: 800;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  line-height: 1;
  letter-spacing: 0.04em;
}

.logo img {
  max-height: 66px;
  max-width: 66px;
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.nav {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.nav .btn {
  min-width: auto;
  padding: 0.58rem 1rem;
  font-size: 0.86rem;
}

.nav .btn.btn-secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.58);
  background: transparent;
}

.nav .btn.btn-secondary:hover {
  background: var(--white);
  color: var(--primary-dark);
  border-color: var(--white);
}

.nav a:not(.btn) {
  text-decoration: none;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
  padding: 0.4rem 0.15rem;
  transition: color var(--anim-duration) ease;
}

.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-gold);
  transition: width var(--anim-duration) ease;
}

.nav a:not(.btn):hover {
  color: var(--white);
}

.nav a:not(.btn):hover::after {
  width: 100%;
}

/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 22px;
  cursor: pointer;
  z-index: 1001;
  background: transparent;
  border: 0;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 3px;
  width: 100%;
  border-radius: 3px;
  background: var(--white);
  transition: var(--transition);
}

/* Mobile Navigation */
@media (max-width: 992px) {
  .header {
    height: 78px;
    padding: 6px 0;
  }

  .header-content {
    padding: 0 0.35rem;
  }

  .menu-toggle {
    display: flex;
  }

  .logo {
    max-width: calc(100% - 56px);
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .logo img {
    max-height: 58px;
    max-width: 58px;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: min(90%, 360px);
    height: 100vh;
    background: linear-gradient(180deg, #27150e, #0c0a08 72%);
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
    padding: 82px 1rem calc(110px + env(safe-area-inset-bottom));
    transition: var(--transition);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }

  .nav.active {
    right: 0;
  }

  .menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
  }

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

  .menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  .nav a {
    font-size: 1.02rem;
    padding: 0.8rem 0;
    width: 100%;
    text-align: left;
    color: rgba(255, 255, 255, 0.95);
  }

  .nav a:not(.btn) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.95rem 0.15rem;
  }

  .nav .btn {
    margin-top: 0.2rem;
    width: 100%;
    justify-content: center;
    min-height: 50px;
  }
}

@media (max-width: 640px) {
  .header {
    height: 74px;
  }

  .logo {
    gap: 0.55rem;
  }

  .logo img {
    max-height: 52px;
    max-width: 52px;
  }

  .brand-name {
    font-size: 1rem;
  }

  .menu-toggle {
    width: 30px;
  }
}
