/*----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: relative;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 20px;
  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: 22px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.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;
}

/* dropdown-projects */

.dropdown-projects-menu {
  list-style-type: none;
  margin: 5px 0 0 0;
  padding: 15px;
  background-color: rgba(160, 168, 180, 0.75);
  border-radius: 10px;
  min-width: 160px;
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1;
}

.dropbtn-projects {
  font-family: var(--heading-font-family);
  font-weight: 700;
  cursor: pointer;
}

.dropdown-projects-menu li:not(:last-child) {
  margin-bottom: 15px;
  border-bottom: 1.5px solid var(--cards);
  padding-bottom: 15px;
}

.dropdown-projects-menu a {
  font-family: var(--text-font-family);
  font-size: var(--text-sm-14px);
  font-weight: 500;
  line-height: 1.5;

  color: var(--cards);
  padding: 0;
}

/* controlado via JS (clique) — funciona em desktop e mobile */
.dropdown-projects.open .dropdown-projects-menu {
  display: block;
}

.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;
}

.projects-carousel-track {
  cursor: grab;
  touch-action: none; /* garante que nosso drag controla o gesto, sem interferência do browser */
  -webkit-user-select: none;
  user-select: none;
}

.projects-carousel.is-dragging .projects-carousel-track {
  cursor: grabbing;
}

.projects-carousel-track img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* ========================
        WIDESCREENS
======================== 

@media (min-width: 1440px) {
  .glass-bar {
    max-width: 1480px;
  }
}*/

@media (max-width: 1024px) {
  .cta {
    padding: 10px;
  }

  .cta p {
    display: none;
  }
}

@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;
  }
  /* Ajustes do dropdown-projects no Mobile (abre para baixo em vez de flutuar) */
  .dropdown-projects-menu {
    position: static;
    background-color: #ffffff00;
    width: 100%;
    margin: 0;
    padding: 20px 0 0px 20px;
  }

  .dropdown-projects-menu a {
    color: var(--ink-header-dim);
    border-bottom: none;
  }

  .dropdown-projects-menu li:not(:last-child) {
    border-bottom: 1.5px solid var(--ink-header-dim);
  }
}

@media (max-width: 329px) {
  .nav-links {
    top: 72px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .dropdown-projects:hover .dropdown-projects-menu {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-bar,
  .nav-links a::after,
  .cta,
  .menu-toggle span {
    transition: none;
  }
}
