/* =========================================================
   Header / Navigation
   File: assets/css/header.css
   Purpose:
   - Primary site header layout & styles
   - Desktop + mobile nav behavior
   - Sticky behavior (position: sticky) and scroll state styling
   ========================================================= */

/* Header wrapper */
.hc-header {
  background: linear-gradient(135deg, #0c2548, #1b3354);
  padding: 16px 25px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Optional "scrolled" state hook (toggled by JS using #scroll-top-sentinel) */
body.is-scrolled .hc-header {
  box-shadow: 0 8px 18px rgba(0,0,0,.18);
}

/* Inner container */
.hc-header-inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
}

/* Logo / branding */
.hc-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* WordPress custom logo output typically includes .custom-logo */
.hc-logo .custom-logo {
  max-height: 85px;
  width: auto;
  height: auto;
  display: block;
}

.hc-logo-link {
  display: inline-flex;
  align-items: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
}

/* Primary nav wrapper (desktop) */
.hc-nav {
  display: flex;
  align-items: center;
}

/* Menu UL */
.hc-menu {
  display: flex;
  gap: 26px;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Links */
.hc-menu a {
  color: #ffffff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  display: inline-block;
}

/* Underline hover effect */
.hc-menu a::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #e28236;
  transition: width 0.3s ease;
}
.hc-menu a:hover::after { width: 100%; }

/* Ticket/CTA styling
   Note: menu item should have CSS class "hc-ticket-btn" in WP Admin menu editor
*/
.hc-menu li.hc-ticket-btn > a,
.hc-menu a.hc-ticket-btn {
  background: #e28236;
  color: #ffffff !important;
  padding: 10px 22px;
  border-radius: 30px;
  font-weight: 700;
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.hc-menu li.hc-ticket-btn > a:hover,
.hc-menu a.hc-ticket-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* =========================================================
   Mobile Navigation
   ========================================================= */

.hc-nav-toggle {
  display: none; /* shown on mobile via media query */
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  color: #ffffff;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.hc-nav-toggle:focus {
  outline: 2px solid rgba(226,130,54,.85);
  outline-offset: 3px;
}

.hc-nav-toggle__icon {
  width: 18px;
  height: 12px;
  display: inline-block;
  position: relative;
}
.hc-nav-toggle__icon::before,
.hc-nav-toggle__icon::after,
.hc-nav-toggle__icon {
  border-top: 2px solid #ffffff;
}
.hc-nav-toggle__icon::before,
.hc-nav-toggle__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
}
.hc-nav-toggle__icon::before { top: 4px; }
.hc-nav-toggle__icon::after { top: 8px; }

/* Breakpoint */
@media (max-width: 900px) {
  .hc-header { padding: 12px 16px; }

  .hc-nav-toggle { display: inline-flex; }

  /* Nav becomes a dropdown panel */
  .hc-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: linear-gradient(135deg, #0c2548, #1b3354);
    padding: 14px 16px 18px;
    display: none; /* hidden until opened */
    border-bottom: 1px solid rgba(255,255,255,.12);
  }

  .hc-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  /* Open state controlled by body class (toggled by JS) */
  body.hc-nav-open .hc-nav {
    display: block;
  }
}

/* =========================================================
   TEMPORARY v2.0 CHANGE
   Hide theme header & disable sticky behavior
   ========================================================= */

.hc-header {
  display: none !important;
  position: relative !important;
  top: auto !important;
}

body.is-scrolled .hc-header {
  box-shadow: none !important;
}
