/* ── MENU MOBILE E BANNER DE COOKIES ──
   Até 600px os links do topo somem e o avatar abre um menu em tela cheia.
   O markup do overlay é montado por assets/site.js a partir de .nav-links. */
.menu-overlay { display: none; }

@media (max-width: 600px) {
  .nav-links { display: none; }

  .nav-avatar[role="button"] {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-avatar[role="button"]:focus-visible { outline: 1px solid var(--black, #030303); outline-offset: 2px; }

  .menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 250;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 var(--pad, 16px) 56px;
    background: var(--bg, #fcfcfc);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0s linear 0.35s;
  }
  html.menu-open .menu-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s ease;
  }

  /* o avatar continua por cima do overlay para fechar o menu */
  html.menu-open nav { z-index: 260; }

  .menu-overlay-logo {
    position: absolute;
    top: 16px;
    left: var(--pad, 16px);
    height: 52px;
    display: flex;
    align-items: center;
  }
  .menu-overlay-logo img { width: 80px; display: block; }

  .menu-link {
    display: block;
    padding: 6px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(44px, 14vw, 64px);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: var(--black, #030303);
    text-decoration: none;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .menu-link[aria-current="page"] { color: var(--gray, #767676); }
  html.menu-open .menu-link { opacity: 1; transform: none; }
  html.menu-open .menu-link:nth-child(2) { transition-delay: 0.05s; }
  html.menu-open .menu-link:nth-child(3) { transition-delay: 0.1s; }
  html.menu-open .menu-link:nth-child(4) { transition-delay: 0.15s; }
  html.menu-open .menu-link:nth-child(5) { transition-delay: 0.2s; }
}

@media (prefers-reduced-motion: reduce) {
  .menu-overlay, html.menu-open .menu-overlay { transition: opacity 0.2s ease; }
  .menu-link, html.menu-open .menu-link { transform: none; transition: opacity 0.2s ease; transition-delay: 0s; }
}

/* ── BANNER DE COOKIES (LGPD) ── */
.consent {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 560px;
  padding: 16px 16px 16px 20px;
  background: #030303;
  color: #fcfcfc;
  border: 1px solid rgba(252, 252, 252, 0.15);
  border-radius: 12px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.2px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  contain: layout;
  will-change: transform, opacity;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s linear 0.5s;
}
.consent.show {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.consent p { margin: 0; flex: 1; }
.consent p a { color: inherit; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.consent p a:hover { opacity: 0.7; }
.consent-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.consent button { font: inherit; letter-spacing: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.consent-accept {
  padding: 10px 20px;
  border: 0;
  border-radius: 100px;
  background: #fcfcfc;
  color: #030303;
  font-weight: 600;
  transition: opacity 0.2s ease;
}
.consent-decline {
  padding: 0;
  border: 0;
  background: none;
  color: #fcfcfc;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}
.consent-accept:hover { opacity: 0.85; }
.consent-decline:hover { opacity: 1; }
.consent button:focus-visible { outline: 1px solid #fcfcfc; outline-offset: 3px; }

@media (max-width: 600px) {
  .consent { right: 16px; max-width: none; flex-direction: column; align-items: flex-start; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .consent, .consent.show { transform: none; transition: opacity 0.2s ease; }
}

/* logos SVG com width/height no HTML: a altura segue a proporção */
.hero-logo-wrap img, .footer-logo, .project-logo img, .menu-overlay-logo img { height: auto; }
