/* =====  SKIP CONTENT LINK ===== */
.skip-to-content-link {
  position: absolute;
  left: 50%;
  padding: calc(var(--spacer)/2);
  font-weight: bold;
  background: var(--white);
  transform: translate(-50%, -100%);
  transition: transform 0.3s;
  z-index: 99999;
  background: var(--black);
  color: var(--white);
  border-radius: 10px;
}
.skip-to-content-link:focus {
  transform: translate(-50%, 20px);
}
@media print {
  .skip-to-content-link {
    display: none;
  }
}

.preheader {
  position: fixed;
    width: 100%;
    height: 40px;
    background: #1f1f1f;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    padding: 0 var(--spacer);
    z-index: 999;
}

.preheader-list {
  height: 20px;
  list-style: none;
  display: flex;
  gap: var(--spacer);
  margin: 0;
  padding: 0;
  align-items: center;
}

.preheader-list li {
  height: 20px;
}

.preheader-list li a{
  font-size: var(--text-xs);
}

.preheader-list li a svg {
  width: 20px;
  height: auto;
  fill: var(--red);
}

.wpml-ls-legacy-list-horizontal .wpml-ls-item {
  display: block !important;
}

.wpml-ls-legacy-list-horizontal {
  padding: 0 !important;
  border: none !important;
}

.wpml-ls-legacy-list-horizontal a {
  padding: 0 !important;
}

/* ===== HEADER COMPONENT ===== */
.header {
  position: sticky;
  top: 40px;
  z-index: 1000;
  transition: all var(--transition-normal);
  width: 100%;
  max-width: 100vw;
  overflow: hidden; /* Default hidden */
}

/* When mobile menu is active, allow overflow */
.header.header--menu-active {
  overflow: visible;
}

.header.header--scrolled {
  background-color:  var(--red);
}

.header__content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacer);
  width: 100%;
}

/* ===== LOGO ===== */
.header__logo {
  flex-shrink: 0;
}

.header__logo-link {
  height: 44px;
  display: flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.header__logo-link:hover svg{
 
}

.header__logo-image {
  height: var(--spacer);
  width: auto;
  fill: var(--white);
}

/* ===== DESKTOP NAVIGATION ===== */
.header__nav {
  display: none;
}

.header__menu {
  display: flex;
  list-style: none;
  gap: var(--spacer);
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
}

.header__menu ul {
  display: flex;
  gap: var(--spacer);
}

.nav-link {
  color: var(--white);
  border-bottom:5px solid var(--white);
  font-weight: 900;
}


/* ===== MOBILE TOGGLE BUTTON ===== */
.header__mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 10002;
  position: relative;
  border-radius: var(--radius-md);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.header__hamburger {
  display: flex;
  flex-direction: column;
  width: 28px;
  height: 20px;
  position: relative;
}

.header__hamburger-line {
  display: block;
  width: 100%;
  height: 10px;
  background-color: var(--white);
  transition: all var(--transition-normal);
  transform-origin: center;
}

.header__hamburger-line:nth-child(1) {
  margin-bottom: 6px;
}

.header__hamburger-line:nth-child(2) {
  margin-bottom: 6px;
}

/* Hamburger animation when active */
.header__mobile-toggle[aria-expanded="true"] .header__hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header__mobile-toggle[aria-expanded="true"] .header__hamburger-line:nth-child(2) {
  opacity: 0;
}

.header__mobile-toggle[aria-expanded="true"] .header__hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* ===== MOBILE MENU MODAL ===== */
.header__mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-normal);
  background: rgba(0,0,0, 0.8);
}

.header__mobile-menu.header__mobile-menu--active {
  visibility: visible;
  opacity: 1;
}

.header__mobile-menu-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.header__mobile-menu-content {
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
 /* max-width: 320px;*/
  height: 100%;
  background-color: var(--black);
  transform: translateX(100%);
  transition: transform var(--transition-normal);
  overflow-y: auto;
  z-index: 10001;
}

.header__mobile-menu--active .header__mobile-menu-content {
  transform: translateX(0);
}

.header__mobile-menu-header {
  display: flex;
  align-items: center;
  padding: var(--spacer);
}

.header__mobile-logo {
  height: 32px;
  width: auto;
}

/* ===== MOBILE NAVIGATION ===== */
.header__mobile-nav {
  display: flex;  
  flex-direction: column; 
  list-style: none;
  margin: 0;
  padding: 0;
  gap: calc(var(--spacer)/2);
  color: var(--white);
  padding: var(--spacer);
}

.header__mobile-nav li {
 /* border-bottom: 4px solid var(--white);*/
}

.header__mobile-menu-item:last-child {
  border-bottom: none;
}

.header__mobile-menu-link {
  display: block;
  padding: var(--spacer) 0;
  text-decoration: none;
  color: var(--blue);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-lg);
  transition: color var(--transition-fast);
}

.header__mobile-menu-link:hover {
  color: var(--black);
}

/* ===== DESKTOP STYLES ===== */
@media (min-width: 1200px) {
  .header__nav {
    display: block;
  }

  .header__mobile-toggle {
    display: none;
  }

  .header__content {
    padding: var(--spacer);
  }

  .header__logo-image {
    height: 50px;
    width: auto;
  }

  .header__logo-link {
    height: 50px;
  }

  .preheader {
    justify-content: flex-end;
  }

  .preheader-list li a{
  font-size: var(--text-sm);
}
}

/* ===== BODY SCROLL LOCK ===== */
body.header__scroll-locked {
  overflow: hidden !important;
  position: fixed !important;
  width: 100% !important;
  height: 100% !important;
}

/* ===== FOCUS STYLES ===== */
.header__logo-link:focus {
  outline: 3px dotted var(--white);
  outline-offset: 4px;
}

.header__menu-link:focus,
.header__mobile-menu-link:focus,
.header__mobile-toggle:focus {
  outline: 4px solid var(--white);
  outline-offset: 2px;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .header,
  .header__menu-link::after,
  .header__hamburger-line,
  .header__mobile-menu,
  .header__mobile-menu-content {
    transition: none;
  }
}
