/* Shared component styles: navbar, buttons, footer, WhatsApp float */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
}

.menu > a,
.dropdown-toggle {
  font-weight: 800;
  color: #3b4668;
  font-size: 15px;
}

.menu > a.is-active,
.dropdown.is-active > .dropdown-toggle,
.dropdown-menu a.is-active {
  color: #ff8a1d;
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
}

.dropdown-toggle i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.dropdown:hover .dropdown-toggle,
.dropdown-toggle:hover,
.menu > a:hover,
.dropdown-menu a:hover {
  color: #ff8a1d;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 28px rgba(23, 38, 84, 0.14);
  border: 1px solid #eaf0fb;
  padding: 10px;
  z-index: 1002;
}

.dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
}

.dropdown:hover .dropdown-menu,
.dropdown.is-open .dropdown-menu {
  display: block;
}

.dropdown.is-open .dropdown-toggle i {
  transform: rotate(180deg);
}

.menu.show {
  display: flex;
}

.menu-toggle {
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  transition: 0.25s ease;
}

.btn:hover {
  transform: translateY(-3px);
}

footer {
  text-align: center;
}

.social {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.social a {
  display: grid;
  place-items: center;
}

.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1001;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 30px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@media (max-width: 900px) {
  .menu {
    gap: 0;
  }

  .dropdown,
  .menu > a {
    width: 100%;
  }

  .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    box-shadow: none;
    border: 1px solid #eaf0fb;
    margin: 6px 0 10px;
  }

  .dropdown:hover .dropdown-menu {
    display: none;
  }

  .dropdown.is-open .dropdown-menu {
    display: block;
  }
}
