/* -------------------------------
             NAVBAR
------------------------------- */

.navbar {
  width: 100%;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;

  transition: transform 0.35s ease;
  will-change: transform;
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
}

.navbar-container {
  width: calc(100% - 40px);
  max-width: 1400px;
  margin: auto;
  height: 100px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ===========================
   Logo
=========================== */

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;

  text-decoration: none;
  color: var(--black);
}

.navbar-logo img {
  width: auto;
  height: 90px;
  object-fit: contain;
}

/* ===========================
   Links
=========================== */

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;

  list-style: none;
}

.navbar-item {
  position: relative;
}

.navbar-link {
  position: relative;

  text-decoration: none;
  color: var(--text);

  font-weight: 500;
  transition: 0.3s;
}

.navbar-link:hover {
  color: var(--primary);
}

.navbar-link::after {
  content: "";
  position: absolute;

  left: 50%;
  bottom: -14px;

  width: 0;
  height: 2px;

  background: var(--primary);

  transform: translateX(-50%);
  transition: 0.3s;
}

.navbar-link:hover::after {
  width: 100%;
}

.navbar-link.navbar-active-link::after {
  width: 100%;
}

.navbar-link.navbar-active-link {
  color: var(--primary);
}

/* ===========================
   Mobile Button
=========================== */

.navbar-toggle {
  display: none;

  width: 42px;
  height: 42px;

  border: none;
  background: none;
  cursor: pointer;
}

.navbar-toggle span {
  display: block;

  width: 24px;
  height: 2px;

  margin: 5px auto;

  background: var(--black);

  transition: 0.3s;
}

/* ===========================
   Responsive
=========================== */

@media (max-width: 900px) {
  .navbar-toggle {
    display: block;
  }

  .navbar-links {
    position: absolute;

    top: 81px;
    left: 0;

    width: 100%;

    background: var(--white);

    flex-direction: column;
    gap: 24px;

    padding: 30px;

    border-bottom: 1px solid var(--border);

    display: none;
  }

  .navbar-links.active {
    display: flex;
  }

  .navbar-logo img {
    height: 72px;
  }
}
