/* ==========================================================================
   Admin Assist Header & Navigation System
   ========================================================================== */

.site-header {
  position: fixed;
  z-index: 1000;
  left: 0;
  right: 0;
  top: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(12, 43, 80, 0.08);
  transition: all 0.25s ease;
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(7, 27, 52, 0.08);
}

.nav-wrap {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.site-logo {
  display: block;
  width: 190px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.2s ease;
}

.brand:hover .site-logo {
  transform: scale(1.02);
}

/* Desktop Navigation */
.main-nav {
  display: flex;
  align-items: center;
  margin-left: auto;
  margin-right: 15px;
}

.main-nav .menu {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-nav .menu > li {
  position: relative;
}

.main-nav .menu > li > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 32px 14px;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e2e42;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.main-nav .menu > li > a:hover,
.main-nav .menu > li.current-menu-item > a,
.main-nav .menu > li.current-menu-parent > a,
.main-nav .menu > li.current-page-ancestor > a,
.main-nav .menu > li.current_page_parent > a {
  color: var(--red);
}

.sub-menu li.current-menu-item > a,
.sub-menu li.current_page_item > a {
  color: var(--red);
  background: #f4f7fa;
  font-weight: 800;
}

/* Dropdown Caret */
.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-right: 2px solid #8290a0;
  border-bottom: 2px solid #8290a0;
  transform: rotate(45deg);
  margin-top: -3px;
  margin-left: 2px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.menu-item-has-children:hover > a::after,
.menu-item-has-children.submenu-open > a::after {
  transform: rotate(-135deg);
  border-color: var(--red);
}

.submenu-toggle {
  display: none;
}

/* Dropdown Panel */
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: calc(100vw - 40px);
  padding: 10px;
  margin: 0;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 20px 50px rgba(7, 27, 52, 0.15);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  z-index: 1100;
  pointer-events: none;
}

.menu-item-has-children:hover > .sub-menu,
.menu-item-has-children.submenu-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.sub-menu li {
  margin: 0;
  padding: 0;
}

.sub-menu li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  text-decoration: none;
  font-weight: 700;
  font-size: 13px;
  color: var(--navy);
  border-radius: 4px;
  transition: all 0.2s ease;
}

.sub-menu li > a:hover {
  background: #f4f7fa;
  color: var(--red);
  padding-left: 20px;
}

.sub-menu li > a::after {
  content: '↗';
  font-size: 12px;
  color: var(--red);
  opacity: 0;
  transform: translate(-4px, 4px);
  transition: all 0.2s ease;
}

.sub-menu li > a:hover::after {
  opacity: 1;
  transform: translate(0, 0);
}

/* Header Actions (Phone & CTA Button) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.header-phone {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  color: #4b5d73;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.header-phone:hover {
  color: var(--red);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--navy);
  color: #ffffff;
  text-decoration: none;
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 800;
  border-radius: 4px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background 0.2s ease, transform 0.2s ease;
}

.header-cta:hover {
  background: var(--red);
  transform: translateY(-1px);
}

.header-cta span {
  color: #ff525d;
  transition: transform 0.2s ease;
}

.header-cta:hover span {
  color: #ffffff;
  transform: translate(2px, -2px);
}

/* Mobile Toggle Hidden on Desktop */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
}

main {
  padding-top: 84px;
}
