/* ============================================================
   MAARTORI — Floatnav (componente global do menu flutuante)
   Fonte única de verdade pra qualquer página. Markup gerado por
   /assets/js/components/floatnav.js a partir de floatnav.config.js.
   ============================================================ */

.floatnav {
  position: fixed;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: flex; align-items: center; gap: 6px;
  padding: 8px 8px 8px 22px;
  background: rgba(15,17,20,0.55);                 /* dark default p/ hero escuro */
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 999px;
  box-shadow:
    0 12px 40px rgba(15,17,20,0.30),
    0 2px 8px rgba(15,17,20,0.15);
  max-width: calc(100vw - 32px);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.floatnav-logo {
  font-family: var(--font);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-l);                       /* sage claro (verde) — sem dourado */
  padding-right: 18px;
  margin-right: 6px;
  position: relative;
  flex-shrink: 0;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.floatnav-logo::after {
  content: '';
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 1px; height: 22px;
  background: rgba(255,255,255,0.20);
}

.floatnav-links { display: flex; align-items: center; gap: 2px; }
.floatnav-link {
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.floatnav-link:hover { background: var(--sage-15); color: var(--white); text-shadow: none; }
.floatnav-link[aria-current="page"] { background: var(--sage-d); color: var(--white); text-shadow: none; }

.floatnav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 500;
  color: var(--white);
  background: var(--sage-d);
  border-radius: 999px;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 10px rgba(74,85,50,0.40);
}
.floatnav-cta:hover {
  background: var(--sage);
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(74,85,50,0.50);
}
.floatnav-cta i { font-size: 14px; }

.floatnav-hamburger { display: none; }

/* Tema CLARO — JS adiciona .floatnav--on-light quando o menu passa por seção clara */
.floatnav--on-light {
  background: var(--deep);                          /* grafite sólido pra contraste sobre bege/branco */
  border-color: rgba(255,255,255,0.08);
  box-shadow:
    0 12px 40px rgba(15,17,20,0.25),
    0 2px 8px rgba(15,17,20,0.10);
}

@media (max-width: 960px) {
  .floatnav { padding: 8px 8px 8px 16px; top: 14px; }
  .floatnav-logo { font-size: 15px; padding-right: 12px; }
  .floatnav-logo::after { display: none; }
  .floatnav-links { display: none; }
  .floatnav-cta { display: none; }
  .floatnav-hamburger {
    display: flex;
    align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: var(--deep); color: var(--white);
    border: none; border-radius: 50%;
    font-size: 18px; cursor: pointer;
  }
}