/*==================================================
HEADER
==================================================*/

*,
*::before,
*::after {
  box-sizing: border-box;

  max-width: 100%;
}

.header {
  position: fixed;
  inset: 0 0 auto 0;

  width: 100%;

  z-index: 1000;

  background: var(--bg);

  border-bottom: 1px solid rgba(255, 255, 255, 0.06);

  padding: 20px 0;

  transition: 0.35s ease;

  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.18);
}

.header.scrolled {
  padding: 14px 0;

  background: #050b18;

  border-bottom: 1px solid rgba(255, 255, 255, 0.08);

  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.header .container {
  width: min(1200px, 92%);
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;

  gap: 24px;

  overflow: hidden;
}

/*==================================================
LOGO
==================================================*/

.logo {
  flex: 0 0 auto;

  min-width: 0;
}

.logo img {
  display: block;

  height: 80px;

  width: auto;

  max-width: 100%;
}

.logo:hover {
  transform: none;
}

/*==================================================
MENU DESKTOP
==================================================*/

.nav {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 8px;

  padding: 6px;

  background: #0c1428;

  border: 1px solid rgba(255, 255, 255, 0.06);

  border-radius: 999px;
}

.nav a {
  flex: 0 0 auto;

  white-space: nowrap;

  font-size: 15px;

  font-weight: 500;

  padding: 12px 18px;

  border-radius: 999px;

  transition: 0.3s;
}

.nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
}

.nav a.active {
  color: #fff;
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  box-shadow: 0 10px 25px rgba(47, 125, 255, 0.3);
}

/*==================================================
HEADER ACTIONS
==================================================*/

.header-actions {
  flex: 0 0 auto;
}

/*==================================================
BOTÕES
==================================================*/

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 15px 28px;

  border-radius: 14px;

  font-size: 15px;

  font-weight: 600;

  transition: 0.3s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--primary), var(--primary2));
  color: #fff;
  box-shadow: 0 15px 35px rgba(47, 125, 255, 0.35);
}

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

/*==================================================
BOTÃO MENU
==================================================*/

.menu-toggle {
  display: none;

  width: 48px;
  height: 48px;

  align-items: center;
  justify-content: center;

  border-radius: 12px;

  background: #0c1428;

  border: 1px solid rgba(255, 255, 255, 0.08);

  color: #fff;

  font-size: 24px;

  cursor: pointer;

  z-index: 1002;

  transition: 0.3s;
}

.menu-toggle:hover {
  background: #162342;
}

/*==================================================
TABLET
==================================================*/

@media (max-width: 1024px) {
  .logo img {
    height: 68px;
  }
}

/*==================================================
MOBILE
==================================================*/

/*==================================================
TABLET / MOBILE
==================================================*/

@media (max-width: 900px) {
  .header {
    padding: 16px 0;
  }

  .header .container {
    gap: 16px;
  }

  .logo img {
    height: 60px;
  }

  .header-actions {
    display: none;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    z-index: 2001;
  }

  /*========================
  MENU MOBILE
  =========================*/

  .nav {
    position: fixed;

    top: 0;
    left: 0;

    width: 100vw;
    height: 100dvh;

    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;

    gap: 18px;

    padding: 40px 24px;

    background: #060b18;

    border: none;
    border-radius: 0;

    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.77, 0, 0.175, 1);

    overflow: hidden;

    z-index: 2000;
  }

  .nav.active {
    transform: translateX(0);
  }

  .nav a {
    flex: none;

    display: flex;
    justify-content: center;
    align-items: center;

    width: auto;
    min-width: 220px;

    padding: 16px 28px;

    font-size: 18px;
    font-weight: 600;

    color: var(--text2);

    border-radius: 14px;

    white-space: nowrap;

    transition: 0.3s;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
  }

  .nav a.active {
    color: #fff;

    background: linear-gradient(90deg, var(--primary), var(--primary2));

    box-shadow: 0 12px 30px rgba(47, 125, 255, 0.35);
  }

  body.menu-open {
    overflow: hidden;
    touch-action: none;
  }
}

/*==================================================
CELULAR
==================================================*/

@media (max-width: 500px) {
  .header {
    padding: 14px 0;
  }

  .logo img {
    height: 54px;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .nav {
    gap: 14px;

    padding: 30px 20px;
  }

  .nav a {
    min-width: 190px;

    padding: 14px 22px;

    font-size: 16px;

    border-radius: 12px;
  }
}
