/* ============================================
   HEADER NAVIGATION REDESIGN
   Layout: Row 1 = Logo + Language Switcher
           Row 2 = Full-width Navigation
   ============================================ */

/* Override old section padding - new layout handles its own spacing */
.elementor-element-6464445 {
  padding: 0 !important;
}

/* --- Top Row: Logo + Language Switcher --- */
.header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 5%;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.header-top-row .header-logo a {
  display: inline-block;
}

.header-top-row .header-logo img {
  height: 50px;
  width: auto;
  transition: all 0.3s ease;
}

.header-top-row .header-lang-switcher {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-top-row .header-lang-switcher .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1.5px solid #a30907;
  color: #a30907;
  background: transparent;
}

.header-top-row .header-lang-switcher .lang-btn.active,
.header-top-row .header-lang-switcher .lang-btn:hover {
  background: #a30907;
  color: #ffffff;
}

.header-top-row .header-lang-switcher .lang-divider {
  width: 1px;
  height: 18px;
  background: rgba(0, 0, 0, 0.2);
}

/* --- Navigation Row --- */
.header-nav-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 5%;
  background: transparent;
  position: relative;
  border-bottom: 2px solid #a30907;
}

.header-nav-row .nav-menu-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.header-nav-row .nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.header-nav-row .nav-menu li {
  position: relative;
}

.header-nav-row .nav-menu li a {
  display: block;
  padding: 14px 22px;
  color: #a30907;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.3s ease;
  position: relative;
}

.header-nav-row .nav-menu li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: #a30907;
  transition: width 0.3s ease;
  border-radius: 2px 2px 0 0;
}

.header-nav-row .nav-menu li a:hover::after,
.header-nav-row .nav-menu li.active a::after {
  width: 80%;
}

.header-nav-row .nav-menu li a:hover {
  background: rgba(163, 9, 7, 0.05);
  color: #7a0605;
}

.header-nav-row .nav-menu li.active a {
  color: #7a0605;
  font-weight: 700;
}

/* --- Mobile Hamburger Button --- */
.header-nav-row .mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
}

.header-nav-row .mobile-menu-toggle .hamburger-icon {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
}

.header-nav-row .mobile-menu-toggle .hamburger-icon span {
  display: block;
  width: 100%;
  height: 2px;
  background: #a30907;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.header-nav-row .mobile-menu-toggle.is-active .hamburger-icon span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.header-nav-row .mobile-menu-toggle.is-active .hamburger-icon span:nth-child(2) {
  opacity: 0;
}

.header-nav-row .mobile-menu-toggle.is-active .hamburger-icon span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Tablet Styles (768px - 1024px) --- */
@media (max-width: 1024px) {
  .header-top-row {
    padding: 8px 4%;
  }

  .header-top-row .header-logo img {
    /* height: 42px; */
  }

  .header-top-row .header-lang-switcher .lang-btn {
    padding: 5px 12px;
    font-size: 12px;
  }

  .header-nav-row {
    padding: 0 4%;
  }

  .header-nav-row .nav-menu li a {
    padding: 12px 14px;
    font-size: 13px;
  }
}

/* --- Mobile Styles (767px and below) --- */
@media (max-width: 767px) {
  .header-top-row {
    padding: 8px 15px;
  }

  .header-top-row .header-logo img {
    /* height: 36px; */
  }

  .header-top-row .header-lang-switcher .lang-btn {
    padding: 4px 10px;
    font-size: 11px;
  }

  .header-top-row .header-lang-switcher .lang-divider {
    height: 14px;
  }

  .header-nav-row {
    padding: 0;
    flex-wrap: wrap;
    border-bottom: 2px solid #a30907;
  }

  .header-nav-row .mobile-menu-toggle {
    display: flex;
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    margin-left: auto;
    margin-right: 15px;
  }

  .header-nav-row .nav-menu-wrapper {
    display: none;
    width: 100%;
    flex-direction: column;
    background: #ffffff;
    border-top: 1px solid rgba(163, 9, 7, 0.1);
  }

  .header-nav-row .nav-menu-wrapper.is-open {
    display: flex;
  }

  .header-nav-row .nav-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .header-nav-row .nav-menu li {
    width: 100%;
    border-bottom: 1px solid rgba(163, 9, 7, 0.08);
  }

  .header-nav-row .nav-menu li:last-child {
    border-bottom: none;
  }

  .header-nav-row .nav-menu li a {
    padding: 14px 20px;
    font-size: 14px;
    text-align: left;
    color: #a30907;
  }

  .header-nav-row .nav-menu li a::after {
    display: none;
  }

  .header-nav-row .nav-menu li a:hover,
  .header-nav-row .nav-menu li.active a {
    background: rgba(163, 9, 7, 0.05);
    padding-left: 28px;
  }

  /* Show a small nav label on mobile */
  .header-nav-row .mobile-nav-label {
    display: block;
    color: #a30907;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 15px;
  }
}

@media (min-width: 768px) {
  .header-nav-row .mobile-nav-label {
    display: none;
  }
}

/* --- Sticky Header Adjustments --- */
.she-header .header-top-row {
  padding-top: 6px;
  padding-bottom: 6px;
}

.she-header .header-top-row .header-logo img {
  height: 40px;
}

.she-header .header-nav-row .nav-menu li a {
  padding-top: 10px;
  padding-bottom: 10px;
}

@media (max-width: 767px) {
  .she-header .header-top-row .header-logo img {
    /* height: 32px; */
  }
}
