/* ==========================================================================
   DEFAULT DARK STICKY HEADER
   Used on blog pages
   ========================================================================== */

.luxury-header.blog-header-default {
  background-color: rgba(11, 22, 44, 0.98) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.5rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   FIXED TRANSPARENT HEADER 
   ========================================================================== */
/* --- Base Transparent State (Overlays the Banner) --- */
.luxury-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1050; /* Ensures it sits above the banner */
  background-color: transparent !important; /* Forces transparency */
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
  transition: all var(--transition-slow);
}
/* --- Scrolled Sticky State (Dark Glass Effect) --- */
.luxury-header.scrolled {
  background-color: rgba(11, 22, 44, 0.95) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  padding: 0.8rem 0;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* --- Branding --- */
.header-brand {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--color-surface) !important;
  transition: color var(--transition-slow);
  margin-right: 2rem;
}
.header-brand span {
  color: var(--color-champagne);
  font-style: italic;
}
/* --- Navigation Links --- */
.custom-nav-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-surface) !important;
  position: relative;
  display: inline-block;
  padding: 0.5rem 0 !important;
  transition: color var(--transition-fast);
}
@media (min-width: 992px) {
  .custom-nav-link::before {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 1px;
    background-color: var(--color-champagne);
    transition: width var(--transition-slow);
  }
  .custom-nav-link:hover::before,
  .custom-nav-link.active::before {
    width: 100%;
  }
}
.custom-nav-link:hover {
  color: var(--color-champagne) !important;
}
/* --- CTA Button --- */
.btn-premium-header {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-surface);
  border: 1px solid var(--color-surface);
  padding: 0.65rem 2rem;
  transition: all var(--transition-slow);
  text-decoration: none;
}
.btn-premium-header:hover {
  background-color: var(--color-champagne);
  border-color: var(--color-champagne);
  color: var(--color-midnight);
}
/* --- Mobile Toggler --- */
.custom-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 30px;
  height: 30px;
  background: transparent;
  outline: none;
}
/* This hides the mobile menu lines on desktop screens */
@media (min-width: 992px) {
  .custom-toggler {
    display: none !important;
  }
}
.toggler-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-surface);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast);
}
.scrolled .toggler-line {
  background-color: var(--color-champagne);
}
/* --- Force Hide Mobile Toggler on Desktop --- */
@media (min-width: 992px) {
  .custom-toggler,
  .navbar-toggler {
    display: none !important;
  }
}
/* Make sure your custom toggler is styled correctly for mobile */
.custom-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  width: 30px;
  height: 30px;
  background: transparent;
  outline: none;
  padding: 0;
}
.toggler-line {
  display: block;
  width: 100%;
  height: 1.5px;
  background-color: var(--color-surface);
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast);
}
.scrolled .toggler-line {
  background-color: var(--color-champagne);
}
/* --- Base Header Styling --- */
.luxury-header {
  background-color: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.5rem 0;
  transition: all 0.4s ease;
  z-index: 1050;
}
.luxury-header.scrolled {
  background-color: rgba(11, 22, 44, 0.95) !important;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}
/* --- Mobile Toggler Formatting --- */
.custom-toggler {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
  width: 35px;
  height: 35px;
  background: transparent;
  padding: 0;
  outline: none;
}
/* Force hide the toggler on desktop */
@media (min-width: 992px) {
  .custom-toggler {
    display: none !important;
  }
}
.toggler-line {
  display: block;
  width: 25px;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
}
.scrolled .toggler-line {
  background-color: var(--color-champagne, #d4af37);
}
/* --- Mobile Menu Background Fix --- */
/* When the menu opens on mobile, it needs a background so text doesn't blend into the banner */
@media (max-width: 991px) {
  .navbar-collapse {
    background-color: rgba(11, 22, 44, 0.98);
    backdrop-filter: blur(10px);
    margin-top: 1rem;
    padding: 1.5rem 0;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.1);
  }
}
