/* ============================================================================
   enviquo — chrome.css (fundação)
   Nav sticky translúcida + drawer mobile + mega-footer. Prefixos próprios:
   .nav- (header), .drawer- (menu mobile), .foot- (footer). Seções NÃO usam
   esses prefixos.
   ========================================================================== */

/* ——— nav sticky translúcida ——— */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
}

/* scroll-edge: nada de borda dura parada; a sombra nasce ao rolar (opacity) */
.nav::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 100%;
  height: 16px;
  background: linear-gradient(to bottom, rgba(10, 10, 10, 0.1), rgba(10, 10, 10, 0));
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}

.nav.scrolled::after { opacity: 1; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(255, 255, 255, 0.96); }
}

@media (prefers-reduced-transparency: reduce) {
  .nav {
    background: var(--enviquo-paper);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

.nav-row {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  min-height: 68px;
  padding-block: var(--space-2);
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  flex: none;
}

.nav-logo img {
  height: 30px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-inline-end: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--gray-700);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-links a:hover {
  color: var(--gray-900);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
}

.nav-entrar {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.25rem 0.625rem;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: -0.01em;
  color: var(--gray-900);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.nav-entrar:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

/* hambúrguer: só existe abaixo de 1024 */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray-900);
  cursor: pointer;
  border-radius: 12px;
  transition: transform 100ms ease-out;
}

.nav-burger:active { transform: scale(0.97); }

@media (max-width: 1023.98px) {
  .nav-links,
  .nav-entrar,
  .nav-actions .btn { display: none; }

  .nav-burger { display: inline-flex; }
}

/* ——— drawer mobile (tela cheia, sólido, foco preso via site.js) ——— */
.drawer {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-3) 4vw var(--space-8);
  background: var(--enviquo-paper);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.drawer[hidden] { display: none; }

@media (min-width: 1024px) {
  .drawer { display: none; }
}

body.drawer-open { overflow: hidden; }

.drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}

.drawer-top img {
  height: 28px;
  width: auto;
}

.drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--gray-900);
  cursor: pointer;
  border-radius: 12px;
  transition: transform 100ms ease-out;
}

.drawer-close:active { transform: scale(0.97); }

.drawer-links {
  display: flex;
  flex-direction: column;
}

.drawer-links a {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--gray-100);
  font-weight: 600;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  text-decoration: none;
}

/* hover não pode REDUZIR contraste (Vercel): sublinha em vez de clarear */
.drawer-links a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
}

.drawer-actions {
  display: grid;
  gap: var(--space-3);
  margin-top: auto;
}

.drawer-actions .btn { width: 100%; }

.drawer-entrar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  font-weight: 600;
  color: var(--gray-900);
  text-decoration: none;
}

.drawer-entrar:hover { text-decoration: underline; text-underline-offset: 6px; }

@media (prefers-reduced-motion: reduce) {
  .nav::after { transition: none; }

  .nav-burger,
  .drawer-close { transition: none; }

  .nav-burger:active,
  .drawer-close:active { transform: none; }
}

/* ——— mega-footer (Paper, 4 colunas) ——— */
.foot {
  background: var(--enviquo-paper);
  border-top: 1px solid var(--gray-200);
  padding-block: var(--space-16) var(--space-8);
}

.foot-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-8) var(--space-6);
}

@media (max-width: 1023.98px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 559.98px) {
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
}

.foot-title {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gray-600);
  margin-bottom: var(--space-4);
}

.foot-links {
  display: flex;
  flex-direction: column;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  color: var(--gray-600);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--gray-900);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.foot-base {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  margin-top: var(--space-16);
  padding-top: var(--space-8);
  border-top: 1px solid var(--gray-200);
}

.foot-brand {
  display: grid;
  gap: var(--space-4);
}

.foot-brand img {
  width: 12.5rem;
  height: auto;
}

.foot-copy {
  font-size: 0.875rem;
  color: var(--gray-600);
}

.foot-social {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.foot-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--gray-600);
  transition: color 150ms ease, background-color 150ms ease;
}

.foot-social a:hover {
  color: var(--gray-900);
  background: var(--gray-50);
}

/* alvo de toque: links curtos do rodapé ("Blog", "LGPD") tinham menos de 44px
   de largura. min-inline-size estende a área clicável para a direita sem
   deslocar nada, porque a lista é alinhada à esquerda. (27/07) */
.foot-links a { min-inline-size: 44px; }
