/* Sticky Header Variables & Reset */
.sticky-header-container {
  --header-bg-transparent: rgba(44, 4, 17, 0.15); /* Transparent dark maroon */
  --header-bg-solid: linear-gradient(135deg, #2D0814 0%, #110307 100%); /* Elegant maroon-black gradient */
  --header-text-light: #f3e8ee;
  --header-text-dark: #f3e8ee;
  --header-accent: #e0245e; /* Warm maroon/red accent */
  --header-height: 80px;
  --header-height-scrolled: 68px;
  --header-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 9999;
  background: var(--header-bg-transparent);
  backdrop-filter: blur(5px);
  border-bottom: 1px solid rgba(224, 36, 94, 0.15);
  transition: var(--header-transition);
  display: flex;
  align-items: center;
}

/* Adjust for logged in admin bar */
body.admin-bar .sticky-header-container {
  top: var(--wp-admin--admin-bar--height, 32px);
}
@media screen and (max-width: 782px) {
  body.admin-bar .sticky-header-container {
    top: 46px;
  }
}

/* Scrolled State styling */
.sticky-header-container.is-scrolled {
  height: var(--header-height-scrolled);
  background: var(--header-bg-solid);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(45, 8, 20, 0.3);
  border-bottom: 1px solid rgba(224, 36, 94, 0.25);
}

/* Header Content Inner */
.sticky-header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo styling */
.sticky-header-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.sticky-header-logo-img {
  max-height: 40px;
  width: auto;
}
.sticky-header-site-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--header-text-light);
  transition: var(--header-transition);
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

/* Nav Menu Lists */
.sticky-header-nav-desktop {
  display: flex;
  align-items: center;
}
.sticky-header-menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 32px;
}
.sticky-header-menu-list a {
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--header-text-light);
  transition: var(--header-transition);
  position: relative;
  padding: 8px 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}
.sticky-header-menu-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--header-accent);
  transition: var(--header-transition);
}
.sticky-header-menu-list a:hover {
  color: var(--header-accent);
}
.sticky-header-menu-list a:hover::after {
  width: 100%;
}

/* CTA Button */
.sticky-header-cta-btn {
  display: inline-block;
  background-color: var(--header-accent);
  color: #ffffff !important;
  padding: 10px 24px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--header-transition);
  box-shadow: 0 4px 6px -1px rgba(224, 36, 94, 0.2);
}
.sticky-header-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(224, 36, 94, 0.4);
  background-color: #ff3366;
}

/* Hamburger Toggle Button */
.sticky-header-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10001;
}
.sticky-header-toggle:focus {
  outline: none;
}
.sticky-header-hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--header-text-light);
  transition: var(--header-transition);
  transform-origin: left center;
}

/* Hamburger active transformation */
.sticky-header-toggle.is-active .sticky-header-hamburger-bar:nth-child(1) {
  transform: rotate(45deg);
  background-color: var(--header-text-dark);
}
.sticky-header-toggle.is-active .sticky-header-hamburger-bar:nth-child(2) {
  width: 0%;
  opacity: 0;
}
.sticky-header-toggle.is-active .sticky-header-hamburger-bar:nth-child(3) {
  transform: rotate(-45deg);
  background-color: var(--header-text-dark);
}

/* Mobile Drawer Overlay Navigation */
.sticky-header-mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 320px;
  height: 100vh;
  background: linear-gradient(135deg, #2D0814 0%, #110307 100%);
  z-index: 10000;
  transition: var(--header-transition);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
  padding: 100px 32px 40px;
}
.sticky-header-mobile-drawer.is-open {
  right: 0;
}
.sticky-header-nav-mobile {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.sticky-header-mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.sticky-header-mobile-menu-list a {
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--header-text-light);
  transition: var(--header-transition);
}
.sticky-header-mobile-menu-list a:hover {
  color: var(--header-accent);
}
.sticky-header-mobile-cta {
  margin-top: 24px;
}
.sticky-header-mobile-cta .sticky-header-cta-btn {
  width: 100%;
  text-align: center;
}

/* Responsiveness adjustments */
@media screen and (max-width: 1024px) {
  .sticky-header-inner {
    padding: 0 20px;
  }
}
@media screen and (max-width: 768px) {
  .sticky-header-nav-desktop,
  .sticky-header-cta-wrapper {
    display: none;
  }
  .sticky-header-toggle {
    display: flex;
  }
}
