/*----INÍCIO ESCONDER BARRA ADMIN WORDPRES: APAGAR QUANDO TIVER TUDO PRONTO----*/

#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

/*----FIM ESCONDER BARRA ADMIN WORDPRES: APAGAR QUANDO TIVER TUDO PRONTO----*/

/* ---------- HEADER COM VIDRO FOSCO ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 32px 7vw;
  pointer-events: none; /* área externa da barra não bloqueia clique */
}

.glass-bar {
  pointer-events: auto;
  width: 100%;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 15px 14px 25px;
  border-radius: 100px;

  /* efeito de vidro fosco */
  background: var(--glass-bg);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  border: 1px solid var(--glass-border);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);

  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    padding 0.3s ease;
}

/* estado ao rolar a página: vidro fica mais denso/opaco */
.site-header.scrolled .glass-bar {
  background: var(--glass-bg);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.logo {
  font-family: var(--heading-font-family);
  font-weight: 700;
  text-transform: uppercase;
  font-size: var(--text-sm-14px);
  display: inline;

  line-height: 1.5;
  text-decoration: none;

  color: var(--ink-header);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--text-font-family);
  font-size: var(--text-sm-14px);
  font-weight: 500;
  color: var(--ink-header-dim);
  text-decoration: none;
  position: relative;
  padding: 4px 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1.5px;
  background: var(--accent-header);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: var(--ink-header);
}
.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:focus-visible {
  outline: 2px solid var(--ink-header);
  outline-offset: 4px;
  border-radius: 2px;
}

.cta {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--text-font-family);
  font-size: 0.84375rem;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--button-cta-green);
  background: var(--button-bg-header);
  padding: 9px 18px;
  border: 2px solid var(--button-cta-green);
  border-radius: 100px;
  text-decoration: none;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}
.cta:hover {
  transform: translateY(-1px);
  background: var(--button-bg-header-hover);
}
.cta:focus-visible {
  outline: 2px solid var(--ink-header);
  outline-offset: 3px;
}

.cta svg {
  width: 20px;
  height: 20px;
}

/* menu mobile */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink-header);
  margin: 4px 0;
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

/* ========================
        WIDESCREENS
======================== */

@media (min-width: 1440px) {
  .glass-bar {
    max-width: 1480px;
  }
}

/* ========================
        TABLETS
======================== */

@media (max-width: 900px) {
  .glass-bar {
    padding: 14px 25px 14px 25px;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    padding: 22px 24px;
    border-radius: 24px;
    background: rgba(39, 54, 64, 0.5);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid var(--glass-border);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition:
      transform 0.25s ease,
      opacity 0.25s ease;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
    background: rgba(39, 54, 64, 0.92);
  }
  .cta {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
  .logo {
    letter-spacing: -0.2px;
    padding-top: 4px;
  }
}

/*@media (max-width: 329px) {
  .nav-links {
    top: 70px;
  }
}*/

@media (prefers-reduced-motion: reduce) {
  .glass-bar,
  .nav-links a::after,
  .cta,
  .menu-toggle span {
    transition: none;
  }
}
