/* ==========================================================================
   Navegação: cabeçalho fixo (sempre visível) e dock de seções no celular.
   O único botão de WhatsApp fixo da página fica aqui, no cabeçalho.
   ========================================================================== */

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: var(--z-header);
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: var(--c-white);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--c-line);
  box-shadow: 0 8px 22px -18px rgb(15 23 42 / 0.3);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 100%;
}

/* ---------- Marca ---------- */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 44px;
  color: var(--c-ink);
}

.brand__mark {
  flex: none;
  width: 52px;
  height: auto;
  aspect-ratio: 401 / 237;
  fill: var(--c-logo);
}

.brand__name {
  font-size: 1.28rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.brand__name b {
  font-weight: 700;
}

/* ---------- Links (desktop) ---------- */
.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

.nav__link {
  position: relative;
  padding-block: 0.6rem;
  color: var(--c-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.25s ease;
}

.nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 0.2rem;
  height: 2px;
  background: var(--c-primary);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 0.35s var(--ease-out);
}

.nav__link:hover,
.nav__link[aria-current="true"] {
  color: var(--c-ink);
}

.nav__link[aria-current="true"]::after {
  transform: none;
}

.header__cta .header__cta-long {
  display: none;
}

@media (min-width: 900px) {
  .nav {
    display: flex;
  }

  .brand__mark {
    width: 58px;
  }

  .brand__name {
    font-size: 1.4rem;
  }

  .header__cta .header__cta-long {
    display: inline;
  }

  .header__cta .header__cta-short {
    display: none;
  }
}

/* Celulares estreitos: marca e botão mais compactos para caberem lado a lado */
@media (max-width: 379.98px) {
  .brand {
    gap: 0.45rem;
  }

  .brand__mark {
    width: 42px;
  }

  .brand__name {
    font-size: 1.1rem;
  }

  .header__cta {
    gap: 0.4rem;
    padding-inline: 0.85rem;
    font-size: 0.72rem;
  }
}

/* ---------- Dock (celular): atalho para os três públicos ---------- */
.dock {
  position: fixed;
  inset: auto 12px calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: var(--z-dock);
  display: flex;
  justify-content: center;
  pointer-events: none;
  animation: dock-in 0.7s var(--ease-out) 0.9s both;
}

.dock__nav {
  position: relative;
  display: grid;
  flex: 1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 380px;
  height: var(--dock-h);
  padding: 5px;
  border-radius: var(--r-pill);
  background: var(--c-ink);
  box-shadow: 0 14px 30px -14px rgb(2 8 23 / 0.6);
  pointer-events: auto;
}

/* Marcador da seção atual (posição e largura vêm do js/header.js) */
.dock__indicator {
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 0;
  width: var(--w, 0);
  border-radius: var(--r-pill);
  background: var(--c-primary-ink);
  opacity: var(--on, 0);
  transform: translateX(var(--x, 0));
  transition:
    transform 0.45s var(--ease-out),
    width 0.45s var(--ease-out),
    opacity 0.25s ease;
}

.dock__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border-radius: var(--r-pill);
  color: #cbd5e1;
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.1;
  transition: color 0.25s ease;
}

.dock__item .icon {
  width: 19px;
  height: 19px;
  stroke-width: 1.9;
}

.dock__item[aria-current="true"] {
  color: var(--c-white);
}

@keyframes dock-in {
  from {
    opacity: 0;
    transform: translateY(140%);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 900px) {
  .dock {
    display: none;
  }
}
