:root{
  --header-height: 92px;
  --header-bg: #ffffff;

  --nav-color: #2f667d;
  --nav-hover-text: #d8a13a;
  --nav-hover-bg: #2f667d;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  background: var(--header-bg);
  border-bottom: 1px solid rgba(0,0,0,0.08);
  box-shadow: 0 6px 18px rgba(0,0,0,0.1);
}

.header-container{
  height: 100%;
  max-width: 1920px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand{
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo{
  height: 56px;
  width: auto;
  display: block;
}

.main-nav{
  display: flex;
  align-items: center;
}

.nav-list{
  list-style: none;
  display: flex;
  gap: 0;
  align-items: center;
  height: var(--header-height);
}

.nav-item{
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-link{
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;

  padding: 0 34px;
  border-radius: 0;

  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--nav-color);
  text-decoration: none;
  font-weight: 700;
  text-transform: uppercase;

  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-item:hover .nav-link{
  background: var(--nav-hover-bg);
  color: var(--nav-hover-text);
}

/* =========================
   HAMBÚRGUER (base)
   ========================= */
.nav-toggle{
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(47,102,125,0.18);
  background: #fff;
  border-radius: 14px;
  cursor: pointer;

  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-direction: column;

  box-shadow: 0 10px 20px rgba(0,0,0,0.10);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.nav-toggle:hover{
  border-color: rgba(216,161,58,0.45);
  box-shadow: 0 14px 28px rgba(0,0,0,0.14);
  transform: translateY(-1px);
}

.nav-toggle-bar{
  width: 24px;
  height: 2px;
  background: var(--nav-color);
  border-radius: 99px;
  display: block;
  transition: transform .18s ease, opacity .18s ease;
}

/* Fundo escuro do mobile */
.nav-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(3px);
  z-index: 49;
}

/* Estado aberto */
.site-header.is-open .nav-backdrop{
  display: block;
}

/* animação do ícone quando abre */
.site-header.is-open .nav-toggle-bar:nth-child(1){
  transform: translateY(8px) rotate(45deg);
}
.site-header.is-open .nav-toggle-bar:nth-child(2){
  opacity: 0;
}
.site-header.is-open .nav-toggle-bar:nth-child(3){
  transform: translateY(-8px) rotate(-45deg);
}

/* =========================
   RESPONSIVO
   ========================= */

/* NOTEBOOK (<= 1366px) */
@media (max-width: 1366px){
  :root{ --header-height: 84px; }

  .header-container{
    padding: 0 40px;
  }

  .brand-logo{
    height: 52px;
  }

  .nav-link{
    padding: 0 26px;
    font-size: 13px;
  }
}

/* TABLET (<= 1024px) */
@media (max-width: 1024px){
  :root{ --header-height: 76px; }

  .header-container{
    padding: 0 28px;
  }

  .brand-logo{
    height: 48px;
  }

  .nav-link{
    padding: 0 18px;
    font-size: 12px;
    letter-spacing: 0.06em;
  }
}

/* CELULAR (<= 768px) -> hambúrguer + drawer moderno */
@media (max-width: 768px){
  :root{ --header-height: 68px; }

  .header-container{
    padding: 0 18px;
  }

  .brand-logo{
    height: 44px;
  }

  .nav-toggle{
    display: inline-flex;
  }

  /* Drawer mais premium */
  .main-nav{
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(86vw, 380px);
    background: #ffffff;
    z-index: 50;

    transform: translateX(105%);
    transition: transform .22s ease;

    border-left: 1px solid rgba(47,102,125,0.10);
    box-shadow: -18px 0 48px rgba(0,0,0,0.18);

    padding-top: calc(var(--header-height) + 18px);
  }

  .site-header.is-open .main-nav{
    transform: translateX(0);
  }

  /* lista vira coluna (visual de menu, não de “botões soltos”) */
  .nav-list{
    height: auto;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 18px 16px;
    gap: 6px;
  }

  .nav-item{
    height: auto;
  }

  .nav-link{
    height: auto;
    justify-content: flex-start;

    padding: 14px 14px;
    border-radius: 12px;

    font-size: 13px;
    letter-spacing: 0.08em;

    background: transparent;
    border: 1px solid rgba(47,102,125,0.08);
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);

    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease, border-color .15s ease;
  }

  /* Hover/press mais clean */
  .nav-item:hover .nav-link{
    background: rgba(47,102,125,0.10);
    color: var(--nav-color);
  }

  .nav-link:hover{
    border-color: rgba(216,161,58,0.45);
    box-shadow: 0 12px 26px rgba(0,0,0,0.10);
  }

  .nav-link:active{
    transform: scale(0.99);
  }

  /* Detalhe premium: barrinha amarela no lado esquerdo */
  .nav-link{
    position: relative;
    overflow: hidden;
  }

  .nav-link::before{
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 999px;
    background: var(--nav-hover-text);
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .15s ease, transform .15s ease;
  }

  .nav-link:hover::before,
  .nav-link:focus-visible::before{
    opacity: 1;
    transform: translateX(0);
  }

  /* Acessibilidade */
  .nav-link:focus-visible{
    outline: 3px solid rgba(216,161,58,0.45);
    outline-offset: 3px;
  }
}

/* CELULAR PEQUENO (<= 480px) */
@media (max-width: 480px){
  .main-nav{
    width: min(92vw, 380px);
    padding-top: calc(var(--header-height) + 14px);
  }

  .nav-link{
    padding: 13px 12px;
  }
}
