/* assets/css/nav-dropdown.css */
.header__nav-list > li.dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #fff;
}

.header__nav-list > li.dropdown > a {
  display: inline-flex;
  align-items: center;
}

.header__nav-list > li.dropdown > .dropdown__toggle {
  margin-left: -2px;
}

.dropdown__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  padding: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  line-height: 1;
}

.dropdown__toggle svg {
  width: 16px;
  height: 16px;
  display: block;
  fill: currentColor;
}

.dropdown__toggle svg path {
  fill: currentColor;
}

.dropdown__toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown__toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.22);
}

.dropdown__menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  margin: 0;
  padding: 10px;
  list-style: none;
  border-radius: 14px;
  background: var(--color-white);
  border: 1px solid rgba(73, 97, 110, 0.18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
  z-index: 3000;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}

.dropdown__menu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -12px;
  height: 12px;
}

.dropdown[data-open="true"] .dropdown__menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown__menu a {
  display: block;
  position: relative;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--color-text-heading) !important;
  text-decoration: none;
  font-weight: var(--w-med);
}

/* wyłącza bazowe podkreślenie z .header__nav-list a::after (konfliktowało i "uciekało") */
.header__nav-list .dropdown__menu a::after {
  content: none !important;
}

/* własne, równe podkreślenie submenu */
.dropdown__menu a::before {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 7px;
  height: 2px;
  background: var(--color-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
  opacity: 0.95;
}

.dropdown__menu a:hover::before,
.dropdown__menu a:focus-visible::before {
  transform: scaleX(1);
}

.dropdown__menu a:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(235, 101, 48, 0.22);
}

.dropdown[data-open="true"] .dropdown__toggle svg {
  transform: rotate(180deg);
  transition: transform 160ms ease;
}

/* MOBILE: submenu zawsze widoczne, jasne i czytelne na Twoim tle */
.mobile-nav .mobile-submenu {
  margin: 10px 0 16px 0;
  padding: 10px 14px;
  border-left: 2px solid rgba(235, 101, 48, 0.85);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mobile-nav .mobile-submenu a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: var(--w-med);
  padding: 10px 12px;
  border-radius: 12px;
  text-align: left;
  border-top: none !important;
}

.mobile-nav .mobile-submenu a::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  flex: 0 0 auto;
}

.mobile-nav .mobile-submenu a:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* Crafted with ❤️ by PixelShark.eu // */
