/* Modern Minimalistic Header Styles */
:root {
  --header-bg: #ffffff;
  --header-text: #333333;
  --header-accent: var(--primary-color, #6a11cb);
  --header-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --header-top-bg: #f8f9fa;
  --header-top-text: #666666;
  --header-height: 80px;
  --header-top-height: 40px;
  --header-padding: 0 2rem;
  --header-transition: all 0.3s ease;
  --support-pulse-color: var(--header-accent);
  --cta-bg: var(--header-accent);
  --cta-text: #ffffff;
  --cta-hover-bg: #5a0cb0;
  --mobile-menu-bg: #ffffff;
  --mobile-menu-border: #eeeeee;
}

/* Header Container */
.site-header {
  background-color: var(--header-bg);
  color: var(--header-text);
  box-shadow: var(--header-shadow);
  position: relative;
  z-index: 100;
  transition: var(--header-transition);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--header-padding);
}

/* Header Top Section */
.header-top {
  background-color: var(--header-top-bg);
  height: var(--header-top-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 1rem;
  font-size: 0.875rem;
  color: var(--header-top-text);
}

/* Language Switcher */
.language-switcher {
  display: flex;
  align-items: center;
}

/* Support Section with Animation */
.support-section {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.3s ease;
}

.support-section:hover {
  transform: translateY(-2px);
}

.support-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.support-pulse {
  width: 24px;
  height: 24px;
  fill: var(--support-pulse-color);
  transition: transform 0.3s ease;
}

.support-pulse.animated {
  animation: pulse 2s infinite;
}

.support-icon:before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-color: var(--support-pulse-color);
  opacity: 0.2;
  transform: scale(0);
  transition: transform 0.3s ease;
}

.support-section:hover .support-icon:before {
  transform: scale(1.5);
}

.support-section:hover .support-pulse {
  transform: scale(1.1);
}

.support-text {
  display: flex;
  flex-direction: column;
}

.support-label {
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.support-phone {
  font-size: 1rem;
  font-weight: 700;
  color: var(--header-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

.support-phone:hover {
  color: var(--cta-hover-bg);
  text-decoration: none;
}

/* Main Header Section */
.header-main {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Site Branding */
.site-branding {
  display: flex;
  align-items: center;
}

.site-logo img {
  max-height: 50px;
  width: auto;
  transition: var(--header-transition);
}

.site-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
}

.site-title a {
  color: var(--header-text);
  text-decoration: none;
}

.site-description {
  font-size: 0.875rem;
  margin: 0;
  color: var(--header-top-text);
}

/* Main Navigation */
.main-navigation {
  display: flex;
  align-items: center;
}

.menu-toggle {
  display: none;
}

.primary-menu-container {
  display: flex;
}

#primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
}

#primary-menu li {
  position: relative;
}

#primary-menu a {
  color: var(--header-text);
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.3s ease;
}

#primary-menu a:hover,
#primary-menu .current-menu-item > a {
  color: var(--header-accent);
}

/* Dropdown Menus */
#primary-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--header-bg);
  box-shadow: var(--header-shadow);
  min-width: 200px;
  padding: 0.5rem 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  z-index: 100;
  border-radius: 4px;
}

#primary-menu .menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#primary-menu .sub-menu a {
  padding: 0.5rem 1rem;
}

#primary-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
}

/* Dropdown Toggle for Mobile */
.dropdown-toggle {
  display: none;
}

/* CTA Button */
.header-cta {
  margin-left: 1rem;
}

.cta-button {
  background-color: var(--cta-bg);
  color: var(--cta-text);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: inline-block;
}

.cta-button:hover {
  background-color: var(--cta-hover-bg);
  transform: translateY(-2px);
}

/* Sticky Header */
.sticky-enabled.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  animation: slideDown 0.5s forwards;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.sticky-enabled.is-sticky .header-top {
  display: none;
}

.sticky-enabled.is-sticky .site-logo img {
  max-height: 40px;
}

.sticky-enabled.is-sticky .header-main {
  height: 60px;
}

.admin-bar .sticky-enabled.is-sticky {
  top: 32px;
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}

/* Pulse Animation */
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Ring Animation for Support Icon */
@keyframes ring {
  0% {
    transform: rotate(0);
  }
  10% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(5deg);
  }
  40% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(0);
  }
  100% {
    transform: rotate(0);
  }
}

.support-section:hover .support-pulse.animated {
  animation: ring 1s ease;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .header-main {
    height: auto;
    padding: 1rem 0;
  }
  
  .menu-toggle {
    display: block;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
  }
  
  .menu-icon {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--header-text);
    position: relative;
    transition: background-color 0.3s ease;
  }
  
  .menu-icon:before,
  .menu-icon:after {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--header-text);
    position: absolute;
    transition: all 0.3s ease;
  }
  
  .menu-icon:before {
    top: -6px;
  }
  
  .menu-icon:after {
    bottom: -6px;
  }
  
  .menu-toggle[aria-expanded="true"] .menu-icon {
    background-color: transparent;
  }
  
  .menu-toggle[aria-expanded="true"] .menu-icon:before {
    transform: rotate(45deg);
    top: 0;
  }
  
  .menu-toggle[aria-expanded="true"] .menu-icon:after {
    transform: rotate(-45deg);
    bottom: 0;
  }
  
  .primary-menu-container {
    display: none;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: var(--mobile-menu-bg);
    box-shadow: var(--header-shadow);
    padding: 1rem 0;
    z-index: 100;
  }
  
  .primary-menu-container.toggled {
    display: block;
  }
  
  #primary-menu {
    flex-direction: column;
    gap: 0;
  }
  
  #primary-menu a {
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid var(--mobile-menu-border);
  }
  
  #primary-menu .sub-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    padding: 0;
    display: none;
  }
  
  #primary-menu .sub-menu.toggled {
    display: block;
  }
  
  #primary-menu .sub-menu a {
    padding-left: 3rem;
  }
  
  .dropdown-toggle {
    display: block;
    position: absolute;
    right: 1rem;
    top: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    cursor: pointer;
  }
  
  .header-cta {
    margin-left: 0;
    margin-top: 1rem;
    text-align: center;
  }
}

@media (max-width: 768px) {
  .header-top {
    flex-direction: column;
    height: auto;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
  }
  
  .site-logo img {
    max-height: 40px;
  }
  
  .admin-bar .sticky-enabled.is-sticky {
    top: 46px;
  }
}

@media (max-width: 600px) {
  .admin-bar .sticky-enabled.is-sticky {
    top: 0;
  }
  
  .header-container {
    padding: 0 1rem;
  }
  
  .support-section {
    gap: 0.5rem;
  }
  
  .support-label {
    font-size: 0.7rem;
  }
  
  .support-phone {
    font-size: 0.9rem;
  }
}