/* =========================================================
   NAV GLOBAL — INSPIRE+
   Extraído e consolidado do CSS da página inicial.
========================================================= */

:root {
  --color-dark: #1c1e2b;
  --color-dark-2: #11131d;
  --color-yellow: #fab117;
  --color-white: #ffffff;
  --color-light: #f3f4f7;
  --layout-max: 1440px;
  --layout-gutter: clamp(18px, 4vw, 64px);
}

/* LOGO */

.logo-inspire-svg {
  color: var(--color-dark);
  transition: color 0.2s ease;
}

.logo-inspire-svg:hover {
  color: var(--color-yellow);
}

/* NAVBAR */

.navbar {
  position: fixed;
  top: 0;
  z-index: 1000;
  width: 100%;
  padding: 0;
  background-color: var(--color-light);
  border-bottom: 1px solid #1c1e2b17;
}

.navbar-inner {
  width: 100%;
  max-width: var(--layout-max);
  height: 60px;
  margin: 0 auto;
  padding-inline: var(--layout-gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

/* LOGO À ESQUERDA */

.navbar-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.navbar-logo img {
  display: block;
  width: 100px;
  height: auto;
}

.navbar-logo-light {
  position: absolute;
  top: 50%;
  left: 0;
  opacity: 0;
  transform: translateY(-50%);
}

/* LINKS PRINCIPAIS */

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: flex-end;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0;
}

.nav-links > li > a {
  display: block;
  padding: 8px 16px;
  color: var(--color-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.2s ease;
}

.nav-links > li > a:hover {
  color: var(--color-dark);
  background-color: #1c1e2b09;
  transition: 0s ease 0.5s;
}

/* CTA DESKTOP */

.nav-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  color: var(--color-dark);
  border: 1px solid var(--color-dark);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.nav-cta:hover {
  color: var(--color-dark);
  background-color: var(--color-yellow);
  border-color: var(--color-yellow);
}

/* MEGA MENU */

.mega-menu-content {
  position: fixed;
  top: 50px;
  left: 50%;
  z-index: 999;
  width: min(1050px, calc(100vw - 40px));
  height: auto;
  padding: 50px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 42px;
  background-color: var(--color-light);
  border: 1px solid #1c1e2b33;
  border-radius: 15px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(8px);
  transition:
    opacity 0.25s ease 0.3s,
    transform 0.25s ease 0.3s,
    visibility 0s linear 1s;
}

.mega-dropdown:hover .mega-menu-content,
.mega-dropdown:focus-within .mega-menu-content {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 0.2s ease 0s,
    transform 0.3s ease 0s,
    visibility 0s linear 0s;
}

.submenu-coluna {
  flex: 1;
  min-width: 0;
  width: 200px;
  display: flex;
  flex-direction: column;
}

.submenu-coluna h3 {
  margin-bottom: 15px;
  padding-bottom: 8px;
  display: flex;
  justify-content: flex-start;
  color: var(--color-dark);
  border-bottom: 1px solid #1c1e2b11;
  font-size: 13px;
  font-weight: 600;
}

.icon-menu {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}

.icon {
  width: 8px;
  height: 8px;
  margin-left: 8px;
}

.submenu-coluna a {
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: rgba(28, 30, 43, 0.68);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
}

.submenu-coluna a:hover {
  color: var(--color-dark);
}

/* ELEMENTOS MOBILE OCULTOS NO DESKTOP */

.menu-toggle,
.sidebar-close,
.sidebar-logo,
.sidebar-btn {
  display: none;
}

/* =========================================================
   NOTEBOOK E TABLET
========================================================= */

@media (max-width: 1180px) {
  .icon,
  .mega-menu-content {
    display: none;
  }

  .navbar-inner {
    width: 100%;
    padding-inline: var(--layout-gutter);
    justify-content: flex-start;
    gap: 14px;
  }

  .navbar-logo {
    width: 90px;
    margin-right: auto;
  }

  .menu-toggle {
    order: 2;
    z-index: 1900;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    padding: 0;
    background-color: var(--color-yellow);
    border: 0;
    border-radius: 5px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background-color: var(--color-dark);
    border-radius: 999px;
  }

  .nav-cta {
    order: 3;
    min-height: 35px;
    padding: 0 20px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
  }

  .sidebar-btn {
    display: flex;
    color: var(--color-dark);
  }

  .nav-mobile-cta {
    flex: 0 0 auto;
    min-height: 44px;
    margin-top: 30px;
    padding: 15px 30px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark) !important;
    background-color: var(--color-yellow);
    border: 1px solid var(--color-dark);
    border-radius: 999px;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition:
      transform 0.2s ease,
      box-shadow 0.2s ease,
      background-color 0.2s ease,
      color 0.2s ease;
  }

  .nav-mobile-cta:hover {
    color: var(--color-dark);
    background-color: var(--color-yellow);
    border-color: var(--color-yellow);
  }

  .nav-menu {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 2000;
    width: min(60%, 620px);
    height: 100dvh;
    padding: 90px 8%;
    overflow-y: auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    background-color: var(--color-dark-2);
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }

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

  .nav-links {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }

  .nav-links > li > a {
    color: var(--color-white);
    font-size: 2rem;
  }

  .nav-links > li > a:hover {
    color: var(--color-yellow);
    background-color: transparent;
  }

  .sidebar-logo {
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  .sidebar-logo img {
    width: 70px;
    height: auto;
    display: block;
  }

  .sidebar-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-dark);
    background-color: var(--color-light);
    border: 0;
    border-radius: 50%;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
  }
}

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

@media (max-width: 760px) {
  .navbar {
    padding: 0;
  }

  .navbar-inner {
    width: 100%;
    padding-inline: var(--layout-gutter);
  }

  .nav-menu {
    width: min(82%, 440px);
    padding: 84px 9% 40px;
  }

  .nav-links > li > a {
    padding: 10px 0;
    font-size: 1.75rem;
  }
}

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

@media (max-width: 450px) {
  .nav-cta {
    display: none;
  }

  .nav-menu {
    width: 86%;
  }

  .nav-links > li > a {
    font-size: 1.55rem;
  }
}
