/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-header);
  height: 80px;
  transition: var(--transition);
}

.site-header.scrolled {
  height: 64px;
  box-shadow: var(--shadow-header-scrolled);
}

/* Header Inner */
.header-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 20px;
}

/* Header Logo */
.header-logo {
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--primary-dark);
  font-weight: 700;
}

.logo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: white;
  border-radius: 8px;
  font-size: 16px;
  margin-right: 10px;
}

.logo-name {
  font-size: 20px;
}

.logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.logo-img {
  height: 50px;
  width: auto;
  display: block;
}

.logo-text {
  font-size: 18px;
  font-weight: 700;
  color: #1a3c6e;
  letter-spacing: 1px;
  white-space: nowrap;
}

.logo-text-link:hover .logo-text {
  color: #e86c2f;
}

/* WordPress custom logo */
.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.custom-logo {
  height: 50px;
  width: auto;
  display: block;
}

/* Main Navigation */
.main-nav .nav-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}

.nav-list .menu-item a {
  display: block;
  padding: 8px 18px;
  color: var(--text);
  font-size: 15px;
  text-decoration: none;
  border-radius: 6px;
  transition: var(--transition);
}

.nav-list .menu-item a:hover,
.nav-list .current-menu-item a {
  color: var(--primary);
  background: var(--primary-light);
}

/* Header Right */
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
}

.header-phone svg {
  width: 18px;
  height: 18px;
  fill: var(--primary);
}

/* Header CTA Button */
.header-cta {
  background: var(--accent);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.header-cta:hover {
  background: var(--accent-hover);
}

/* Menu Toggle (Mobile) */
.menu-toggle {
  display: none;
}

/* Menu Overlay */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

body.menu-open .menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Mobile Styles */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }
  
  .menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: 0.3s;
  }
  
  /* Hamburger to X animation */
  body.menu-open .menu-toggle span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
  }
  
  body.menu-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }
  
  body.menu-open .menu-toggle span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
  }
  
  /* Mobile Navigation */
  .main-nav {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: white;
    box-shadow: var(--shadow-lg);
    padding-top: 80px;
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }
  
  body.menu-open .main-nav {
    right: 0;
  }
  
  .main-nav .nav-list {
    flex-direction: column;
    padding: 20px;
  }
  
  .main-nav .nav-list .menu-item a {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
  }
  
  /* Hide header right on mobile */
  .header-right {
    display: none;
  }
}
