/* ==========================================================================
   HEADER & NAVIGATION STYLES — AURALIX MEDIA (SLEEK MODERATE RADIUS & SPACIOUS HEIGHT)
   ========================================================================== */

.site-header {
  position: fixed;
  top: 1.2rem;
  left: 0;
  right: 0; /* Auto-infer width to match viewport edges */
  z-index: 1000;
  padding: 0;
  transition: var(--transition-normal);
}

/* Floating Header Card Container with 16px Radius & Generous Height */
.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px; /* Reduced radius from 100px to sleek 16px */
  padding: 0.95rem 1.75rem; /* Increased vertical padding for spacious height */
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.07), 0 0 15px rgba(212, 58, 47, 0.04);
  backdrop-filter: blur(20px);
  transition: var(--transition-normal);
}

.site-header.scrolled .nav-wrapper {
  padding: 0.8rem 1.5rem;
  border-color: rgba(212, 58, 47, 0.2);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 20px rgba(212, 58, 47, 0.08);
}

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

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.06));
  transition: var(--transition-bounce);
}

.brand-logo:hover .brand-logo-img {
  transform: scale(1.05) rotate(-2deg);
}

.brand-logo-text {
  display: flex;
  align-items: baseline;
  gap: 0.3rem;
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-name-main {
  color: #111318;
}

.brand-name-sub {
  color: var(--brand-red);
  font-weight: 700;
}

/* Desktop Navigation Menu */
.desktop-nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2.2rem;
  list-style: none;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.5rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
  padding: 0.4rem 0;
  transition: var(--transition-fast);
}

.nav-link:hover,
.nav-link.active {
  color: var(--brand-red);
  font-weight: 600;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand-red);
  box-shadow: 0 0 8px rgba(212, 58, 47, 0.4);
  transition: var(--transition-normal);
  border-radius: 2px;
}

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

/* CTA Button - 10px Radius, Comfortable Padding & Height */
.header-cta .btn-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.65rem 1.3rem;   /* Comfortable padding */
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 10px;        /* 10px radius */
  background: #111318;       /* Dark charcoal background */
  color: #ffffff;            /* White text */
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: var(--transition-normal);
  white-space: nowrap;
}

.header-cta .btn-header-cta i {
  color: var(--brand-red);
  transition: var(--transition-fast);
}

.header-cta .btn-header-cta:hover {
  background: #1e212b;
  border-color: var(--brand-red);
  box-shadow: 0 6px 20px rgba(212, 58, 47, 0.25);
  transform: translateY(-2px);
}

.header-cta .btn-header-cta:hover i {
  transform: translateX(3px);
}

/* Mobile Toggle Button */
.mobile-toggle {
  display: none;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: var(--text-main);
  font-size: 1.2rem;
  cursor: pointer;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  z-index: 1001;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: var(--transition-fast);
}

.mobile-toggle:hover {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: -100%; /* Start offscreen from the top */
  left: 0;
  right: 0; /* Auto-infer width to match viewport edges */
  height: auto; /* auto height fits dropdown content */
  background: #ffffff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  border-left: none;
  padding: 2.5rem 2rem 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2rem;
  transition: top 0.4s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.4s;
  z-index: 999;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
  visibility: hidden; /* Hide completely from DOM layout when closed */
}

.mobile-drawer.is-open {
  top: 0;
  visibility: visible;
}

.mobile-drawer-header {
  margin-bottom: 2rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-normal);
  z-index: 998;
}

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

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}

.mobile-nav-link {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--brand-red);
}

/* Responsive Navbar */
@media (max-width: 1024px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }
  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .site-header {
    top: 0.6rem;
  }

  .site-header .container {
    padding: 0 0.75rem !important; /* Tight container padding on mobile avoids horizontal stretch */
  }

  .nav-wrapper {
    padding: 0.75rem 1rem; /* Compact padding prevents right-side overflow */
    border-radius: 12px;
  }

  .brand-logo-img {
    height: 32px;
  }

  .brand-logo-text {
    font-size: 1.2rem;
  }

  .brand-logo {
    gap: 0.5rem;
  }

  .mobile-toggle {
    width: 38px;
    height: 38px;
    font-size: 1rem;
    border-radius: 8px;
  }
}
