/* Portal (intro com zoom no logo) + hero sticky */

/* altura do scroll da intro = 300vh de trajeto + 100vh do hero */
.hero-wrap { height: 400vh; position: relative; }
.hero {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(90% 70% at 50% 0%, #e4f6ff 0%, #fff 70%);
}
.hero__inner { width: min(1000px, 100% - 48px); text-align: center; will-change: transform; }
.hero h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(2.4rem, 7vw, 5.6rem); line-height: 1.02; letter-spacing: -0.03em;
  margin: 18px 0 24px; color: var(--navy);
}
.hero h1 em { color: var(--blue); letter-spacing: -0.01em; }
.lead { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 640px; margin-inline: auto; color: var(--muted); }
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }
.hero__scroll {
  position: absolute; bottom: 24px; left: 50%; translate: -50% 0;
  font-size: 0.7rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted);
}

.grid-bg {
  position: absolute; inset: 0; opacity: 0.35; pointer-events: none;
  background-image: linear-gradient(rgba(15,90,140,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(15,90,140,0.07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000, transparent);
}
.orb { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; will-change: transform; }
.orb--a { width: 46vw; height: 46vw; max-width: 640px; max-height: 640px; left: -10%; top: -15%; background: rgba(0, 204, 255, 0.25); animation: float 14s ease-in-out infinite; }
.orb--b { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -8%; bottom: -15%; background: rgba(15, 90, 140, 0.18); animation: float 18s ease-in-out infinite reverse; }
.orb--c { width: 40vw; height: 40vw; max-width: 560px; max-height: 560px; right: -10%; top: 10%; background: rgba(0, 204, 255, 0.18); animation: float 16s ease-in-out infinite; }
@keyframes float { 50% { translate: 40px -30px; } }

/* ---------- Portal ---------- */
.portal { position: fixed; inset: 0; z-index: 100; }
.portal__svg { position: absolute; inset: 0; pointer-events: none; }
.portal__logo { transition: filter 0.4s; }
.portal.is-hover .portal__logo { filter: drop-shadow(0 0 28px #00ccff); }

.portal__ui {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; color: #fff;
}
/* "slot" reserva o espaço do logo; o SVG desenha o logo exatamente aqui */
.portal__slot {
  width: min(550px, 80vw); aspect-ratio: 396 / 116;
  background: none; border: 0; cursor: pointer; margin-bottom: 10px;
}
.portal__tag { text-align: center; margin-left: -30px; }
.contato { margin-top: 80px; }
.contato__btns { display: flex; justify-content: center; align-items: center; gap: 50px; }
.contato__btns a {
  display: inline-block; color: #fff; border: 2px solid var(--cyan);
  font-size: 1.2rem; padding: 20px 30px; border-radius: 5px; transition: 0.3s;
}
.contato__btns a:hover { background: var(--cyan); color: #000; font-weight: bold; }

.portal__hint {
  position: absolute; bottom: 28px; left: 50%; translate: -50% 0;
  background: none; border: 0; color: rgba(255,255,255,0.75); cursor: pointer;
  font: inherit; font-size: 0.72rem; letter-spacing: 0.25em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.portal__hint span { width: 1px; height: 36px; background: linear-gradient(var(--cyan), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 12px max(24px, 4vw); color: #fff;
  background: linear-gradient(180deg, rgba(4, 30, 66, 0.9), rgba(4, 30, 66, 0.82));
  -webkit-backdrop-filter: blur(9px) saturate(1.3); backdrop-filter: blur(9px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px -18px rgba(0, 20, 49, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  opacity: 0; transform: translateY(-100%); pointer-events: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.header.is-on { opacity: 1; transform: none; pointer-events: auto; }
.header__logo svg { width: 120px; height: auto; color: var(--cyan); }
.header__nav { position: relative; display: flex; gap: 32px; font-size: 0.95rem; padding-bottom: 8px; }
.header__nav a { opacity: 0.72; padding: 6px 2px; transition: opacity 0.3s, color 0.3s; }
.header__nav a:hover, .header__nav a:focus-visible, .header__nav a.is-active { opacity: 1; }
.header__nav a.is-active { color: #fff; }
/* linha elástica (posição/largura controladas por js/nav.js) */
.nav__line {
  position: absolute; left: 0; bottom: 0; height: 3px; width: 0; border-radius: 3px; opacity: 0; pointer-events: none;
  background: linear-gradient(90deg, #00ccff, #4db8ff 55%, #2d7fd0);
  box-shadow: 0 0 14px rgba(0, 204, 255, 0.6); will-change: transform, width;
}

/* sem animação: pula a intro */
.no-intro .portal { display: none; }
.no-intro .hero-wrap { height: auto; }
.no-intro .hero { position: relative; }
.no-intro .header { opacity: 1; transform: none; pointer-events: auto; }

/* logo pequeno (ícone + "minnutti" abaixo) no mobile estreito, como no site antigo */
@media (max-width: 481px) {
  .portal__slot { width: min(220px, 62vw); aspect-ratio: 118 / 142; margin-bottom: 16px; }
}

/* WhatsApp flutuante: só a bolinha com o logo oficial; no desktop o hover revela "WhatsApp".
   Aparece com o menu e se esconde enquanto a seção Contato está na tela (js/sections.js). */
.wa {
  position: fixed; right: max(16px, 2vw); bottom: max(16px, 2vw); z-index: 110;
  display: inline-flex; align-items: center; justify-content: center; height: 58px; min-width: 58px; padding: 0 15px; border-radius: 999px;
  background: var(--cyan); color: #000; font-family: var(--display); font-weight: 800; font-size: 0.95rem;
  box-shadow: 0 14px 34px -12px rgba(0, 20, 49, 0.55);
  opacity: 0; transform: translateY(24px) scale(0.9); pointer-events: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.3s;
}
.wa svg { width: 28px; height: 28px; flex: none; }
.wa span { max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap; color: #000; transition: max-width 0.45s var(--ease), opacity 0.3s, margin 0.45s var(--ease); }
.wa.is-on:not(.is-hidden) { opacity: 1; transform: none; pointer-events: auto; }
.wa.is-hidden { opacity: 0; transform: translateY(24px) scale(0.9); pointer-events: none; }
@media (hover: hover) {
  .wa:hover span, .wa:focus-visible span { max-width: 110px; opacity: 1; margin-left: 10px; }
  .wa.is-on:hover { box-shadow: 0 18px 40px -10px rgba(0, 204, 255, 0.7); }
}
.no-intro .wa:not(.is-hidden) { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 760px) {
  .header__nav { display: none; }
  .contato { margin-top: 48px; }
  .contato__btns { gap: 20px; }
  .contato__btns a { font-size: 1rem; padding: 16px 22px; }
  .portal__tag { margin-left: 0; }
  .hero-wrap { height: 350vh; }
}
