.nav-dropdown {
  position: relative;
}

.nav-dropdown > summary {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 29px 0;
  cursor: pointer;
  list-style: none;
}

.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown > summary::before {
  position: absolute;
  right: 0;
  bottom: 20px;
  left: 0;
  height: 3px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-dropdown > summary::after {
  width: 7px;
  height: 7px;
  margin-top: -4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  content: "";
  transform: rotate(45deg);
  transition: transform .2s ease;
}
.nav-dropdown[open] > summary::after { transform: translateY(4px) rotate(225deg); }
.nav-dropdown:hover > summary::before,
.nav-dropdown:focus-within > summary::before,
.nav-dropdown > summary.active::before { transform: scaleX(1); }
.nav-dropdown > summary.active { color: var(--blue); }

.dropdown-menu {
  position: absolute;
  z-index: 150;
  top: calc(100% - 13px);
  left: -24px;
  display: grid;
  width: 285px;
  padding: 12px;
  border: 1px solid rgba(11,34,57,.11);
  border-radius: 12px;
  visibility: hidden;
  opacity: 0;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 20px 48px rgba(11,34,57,.18);
  transform: translateY(9px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
}
.nav-dropdown[open] .dropdown-menu,
.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  visibility: visible;
  opacity: 1;
  transform: none;
}
.dropdown-menu a {
  display: grid;
  padding: 10px 12px;
  border-radius: 8px;
  gap: 1px;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible,
.dropdown-menu a.active {
  color: var(--blue);
  background: #eef4fd;
}
.dropdown-menu strong { font-size: 13px; }
.dropdown-menu span { color: var(--muted); font-size: 10px; font-weight: 600; }

.whatsapp svg {
  width: 35px;
  height: 35px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  flex: 0 0 auto;
}

.back-to-top {
  position: fixed;
  z-index: 89;
  right: 22px;
  bottom: 86px;
  display: grid;
  width: 46px;
  height: 46px;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255,255,255,.55);
  border-radius: 50%;
  visibility: hidden;
  opacity: 0;
  color: #fff;
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  cursor: pointer;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .2s ease;
}
.back-to-top:hover { background: var(--blue); transform: translateY(-2px); }
.back-to-top.visible { visibility: visible; opacity: 1; transform: none; }
.back-to-top svg { width: 20px; height: 20px; }

@media (max-width: 1020px) {
  .topbar-inner { min-height: 34px; justify-content: center; }
  .topbar-inner > span,
  .topbar-links a:first-child { display: none; }
  .nav-dropdown { border-bottom: 1px solid var(--line); }
  .nav-dropdown > summary { padding: 17px 0; }
  .nav-dropdown > summary::before { display: none; }
  .nav-dropdown > summary::after { margin-left: auto; margin-right: 4px; }
  .dropdown-menu {
    position: static;
    width: 100%;
    padding: 0 0 12px 12px;
    border: 0;
    border-radius: 0;
    display: none;
    visibility: visible;
    opacity: 1;
    box-shadow: none;
    transform: none;
  }
  .nav-dropdown:not([open]) .dropdown-menu { display: none; }
  .nav-dropdown[open] .dropdown-menu { display: grid; }
  .dropdown-menu a { padding: 9px 12px; }
}

@media (max-width: 720px) {
  .whatsapp svg { width: 38px; height: 38px; border: 0; }
  .back-to-top { right: 15px; bottom: 76px; width: 44px; height: 44px; }
}
