/* ============================================================
   SOHO BUSINESS — Página de captura
   Paleta oficial (manual v1.0): #0A0A0A · #111111 · #8E8E8E · #F5F7F6
   Tipografia oficial: Just Sans
   Acento: vermelho (CTA conforme referência)
   ============================================================ */

/* ───── Fontes oficiais (locais em /fonts) ───── */
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-ExLt.woff2") format("woff2"); font-weight:200; font-display:swap; }
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-Lt.woff2")   format("woff2"); font-weight:300; font-display:swap; }
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-Rg.woff2")   format("woff2"); font-weight:400; font-display:swap; }
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-Md.woff2")   format("woff2"); font-weight:500; font-display:swap; }
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-SmBd.woff2") format("woff2"); font-weight:600; font-display:swap; }
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-Bd.woff2")   format("woff2"); font-weight:700; font-display:swap; }
@font-face { font-family:"Just Sans"; src:url("./fonts/JUSTSans-ExBd.woff2") format("woff2"); font-weight:800; font-display:swap; }

/* ───── Tokens ───── */
:root {
  --c-ink:        #0A0A0A;
  --c-ink-2:      #111111;
  --c-ink-3:      #161616;
  --c-line:       rgba(245, 247, 246, 0.10);
  --c-line-strong:rgba(245, 247, 246, 0.22);
  --c-mute:       #8E8E8E;
  --c-paper:      #F5F7F6;
  --c-paper-soft: rgba(245, 247, 246, 0.72);

  /* Acento vermelho (referência da landing) */
  --c-accent:      #E2241F;
  --c-accent-hi:   #FF3A33;

  --ff: "Just Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;

  --r-md: 14px;
  --r-lg: 22px;

  --ease-out: cubic-bezier(.16,.84,.24,1);
  --t-fast: 220ms;
  --t-mid:  480ms;

  --max: 1320px;
  --pad: clamp(20px, 4vw, 56px);
}

/* ───── Reset/base ───── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input { font: inherit; color: inherit; }

body {
  font-family: var(--ff);
  font-weight: 400;
  background: var(--c-ink);
  color: var(--c-paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  min-height: 100dvh;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  padding: 18px var(--pad);
  background: linear-gradient(180deg, rgba(10,10,10,.7) 0%, rgba(10,10,10,0) 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.nav__brand img {
  height: clamp(26px, 2.4vw, 32px);
  width: auto;
  opacity: .92;
  transition:
    opacity var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out);
}
.nav__brand:hover img { opacity: 1; transform: scale(1.06); }
.nav__tag {
  font-size: 11px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
@media (max-width: 640px) { .nav__tag { display: none; } }

/* ============================================================
   HERO  (única seção — preferencialmente 100vh)
   ============================================================ */
.hero {
  --hero-pb: clamp(36px, 5vh, 64px);
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
  padding: clamp(96px, 12vh, 130px) var(--pad) var(--hero-pb);
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* fundo cinematográfico — usa background.jpg oficial */
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,10,10,.55) 0%, rgba(10,10,10,.30) 30%, rgba(10,10,10,.55) 100%),
    url("./assets/background.jpg") center / cover no-repeat;
}
.hero__grid {
  /* removido — o background.jpg já carrega textura/grafismo */
  display: none;
}
.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: .35;
  pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero__glow--a {
  width: 620px; height: 620px;
  top: -120px; right: -120px;
  background: radial-gradient(circle, rgba(245,247,246,.10), transparent 60%);
}
.hero__glow--b {
  width: 480px; height: 480px;
  bottom: -160px; left: -160px;
  background: radial-gradient(circle, rgba(142,142,142,.18), transparent 60%);
  animation-delay: -8s;
}
@keyframes drift {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(30px, -20px) scale(1.06); }
}
.hero__noise {
  /* leve granulação por cima — bem sutil pra não competir com o bg */
  position: absolute; inset: 0;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* layout 2 colunas (texto à esquerda / prédio à direita) */
.hero__inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  justify-items: center;
}
@media (min-width: 960px) {
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 4vw, 72px);
    justify-items: stretch;
  }
}

/* COPY */
/* coluna de texto — centralizada no mobile, alinhada à esquerda no desktop */
.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (min-width: 960px) {
  .hero__copy {
    align-items: flex-start;
    text-align: left;
  }
}

/* eyebrow distribuído na MESMA largura do logo SoHo, com gap entre BREVE e LANÇAMENTO */
.eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: clamp(240px, 38vw, 460px);
  max-width: 100%;
  font-size: clamp(13px, 1.2vw, 15px);
  text-transform: uppercase;
  color: var(--c-paper);
  font-weight: 300;
  letter-spacing: 0;
  margin-bottom: clamp(20px, 2.4vw, 28px);
  transition: transform var(--t-fast) var(--ease-out);
  transform-origin: center;
}
.eyebrow:hover { transform: scale(1.06); }
.eyebrow > span { line-height: 1; }
.eyebrow__gap {
  width: .8em;
  flex-shrink: 0;
}
.hero__title { line-height: 0; }
.hero__logo {
  width: clamp(240px, 38vw, 460px);
  height: auto;
  filter: drop-shadow(0 12px 60px rgba(0,0,0,.55));
  transition: transform var(--t-fast) var(--ease-out);
  cursor: default;
}
.hero__title:hover .hero__logo { transform: scale(1.04); }

.hero__lede {
  margin-top: clamp(14px, 1.6vw, 20px);
  font-size: clamp(24px, 3vw, 38px);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-paper);
  margin-bottom: clamp(28px, 3.4vw, 40px);
  display: inline-block;
  transition: transform var(--t-fast) var(--ease-out);
  transform-origin: center;
}
.hero__lede:hover { transform: scale(1.05); }
.hero__lede--thin { font-weight: 300; }
.hero__lede--bold { font-weight: 700; }

/* localização — card com borda, pin vermelho à esquerda */
.locale {
  display: inline-flex;
  align-items: center;
  gap: clamp(14px, 2vw, 20px);
  margin-bottom: clamp(28px, 3.4vw, 40px);
  padding: clamp(16px, 2vw, 22px) clamp(22px, 3vw, 32px);
  max-width: 100%;
  border: 1px solid rgba(245, 247, 246, 0.55);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.18);
  transition:
    transform var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    background var(--t-fast) var(--ease-out);
  will-change: transform;
}
.locale:hover {
  transform: scale(1.04);
  border-color: rgba(245, 247, 246, 0.85);
  background: rgba(245, 247, 246, 0.04);
}
.locale__pin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  filter: drop-shadow(0 6px 14px rgba(226, 36, 31, 0.45));
}
.locale__pin svg {
  width: clamp(34px, 4vw, 42px);
  height: auto;
}
.locale__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  line-height: 1.2;
  text-align: left;
}
.locale__label {
  font-size: clamp(10px, 1vw, 12px);
  color: var(--c-paper-soft);
  font-weight: 300;
  letter-spacing: .02em;
  text-transform: none;
}
.locale__iguatemi {
  height: clamp(34px, 4.4vw, 50px);
  width: auto;
  margin: 2px 0;
  opacity: .98;
}

/* botão base */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 15px 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .26em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition:
    background var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-mid) var(--ease-out);
  will-change: transform;
  overflow: hidden;
}
.btn svg { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease-out); }

/* CTA principal — sólido vermelho com seta diagonal */
.btn--cta {
  background: var(--c-accent);
  border-color: var(--c-accent);
  color: var(--c-paper);
  padding: 17px 36px;
  font-weight: 600;
  letter-spacing: .22em;
  box-shadow: 0 18px 40px -16px rgba(226, 36, 31, .55);
}
.btn--cta::after {
  /* leve brilho que cruza no hover (Apple-style) */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    transparent 0%,
    transparent 35%,
    rgba(255,255,255,0.18) 50%,
    transparent 65%,
    transparent 100%
  );
  transform: translateX(-100%);
  transition: transform 700ms var(--ease-out);
  pointer-events: none;
}
.btn--cta:hover {
  background: var(--c-accent-hi);
  border-color: var(--c-accent-hi);
  transform: scale(1.05);
  box-shadow: 0 22px 50px -16px rgba(255, 58, 51, .65);
}
.btn--cta:hover::after { transform: translateX(100%); }
.btn--cta:hover .btn__arrow { transform: translate(3px, -3px); }
.btn--cta:active { transform: scale(1.02); }
.btn__arrow { transition: transform var(--t-fast) var(--ease-out); }

/* ponto vermelho — assinatura discreta de marca */
.btn__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--c-accent);
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(226,36,31,.55);
  animation: btnPulse 2.6s ease-out infinite;
}
@keyframes btnPulse {
  0%   { box-shadow: 0 0 0 0 rgba(226,36,31,.55); }
  70%  { box-shadow: 0 0 0 8px rgba(226,36,31,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,36,31,0); }
}

/* CTA do form (modal) — sólido em paper, sem vermelho dominante */
.btn--solid {
  background: var(--c-paper);
  color: var(--c-ink);
  box-shadow: 0 12px 30px -14px rgba(245,247,246,.35);
}
.btn--solid:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -16px rgba(245,247,246,.55);
}
.btn--solid:active { transform: translateY(0); }
.btn--solid .btn__spinner { border-color: rgba(10,10,10,.25); border-top-color: var(--c-ink); }

.btn--block { width: 100%; padding: 17px 24px; }

/* VISUAL prédio — render transparente (predio.png), ancorado ao bottom */
.hero__visual {
  position: relative;
  align-self: end;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
  margin-bottom: calc(var(--hero-pb) * -1);
}
.building {
  position: relative;
  width: 100%;
  max-width: 640px;
  margin: 0;
  display: block;
}
.building__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.55));
}
.building__edge { display: none; }

/* ============================================================
   MODAL DE CADASTRO
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal[aria-hidden="false"] { display: flex; }

.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 280ms var(--ease-out);
}
.modal__panel {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  background: linear-gradient(180deg, var(--c-ink-2) 0%, var(--c-ink) 100%);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.85);
  animation: panelIn 420ms var(--ease-out);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes panelIn {
  from { opacity: 0; transform: translateY(20px) scale(.98); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.modal__close {
  position: absolute;
  top: 16px; right: 16px;
  width: 38px; height: 38px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--c-paper);
  border: 1px solid var(--c-line);
  transition: background var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}
.modal__close:hover { background: rgba(245,247,246,.08); border-color: var(--c-line-strong); }
.modal__close svg { width: 16px; height: 16px; }

.modal__head { margin-bottom: 22px; padding-right: 32px; }
.modal__kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--c-mute);
  margin-bottom: 12px;
  font-weight: 500;
}
.modal__title {
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  letter-spacing: -.01em;
  line-height: 1.15;
  color: var(--c-paper);
  margin-bottom: 10px;
}
.modal__sub {
  font-size: 14px;
  color: var(--c-paper-soft);
  line-height: 1.6;
  font-weight: 300;
}

/* ============================================================
   FORMULÁRIO
   ============================================================ */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 480px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field__label {
  font-size: 10px;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--c-mute);
  font-weight: 500;
}
.field__label i {
  color: var(--c-accent);
  font-style: normal;
  margin-left: 2px;
}
.field input {
  width: 100%;
  padding: 12px 0 10px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--c-line-strong);
  color: var(--c-paper);
  font-size: 15px;
  font-weight: 400;
  letter-spacing: .01em;
  outline: none;
  transition: border-color var(--t-fast) var(--ease-out);
}
.field input::placeholder { color: var(--c-mute); opacity: .55; }
.field__bar {
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--c-paper);
  transition: width var(--t-mid) var(--ease-out);
}
.field input:focus ~ .field__bar { width: 100%; }
.field input:focus { border-bottom-color: transparent; }
.field input[aria-invalid="true"] { border-bottom-color: rgba(226,36,31,.7); }
.field input[aria-invalid="true"] ~ .field__bar { background: rgba(226,36,31,.7); width: 100%; }

.btn[disabled] { opacity: .9; cursor: progress; pointer-events: none; }
.btn__spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(10,10,10,.25);
  border-top-color: var(--c-ink);
  animation: spin .8s linear infinite;
}
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading .btn__label   { opacity: .55; }
@keyframes spin { to { transform: rotate(360deg); } }

.form__legal {
  font-size: 11px;
  color: var(--c-mute);
  line-height: 1.55;
}
.form__status {
  font-size: 13px;
  font-weight: 500;
  min-height: 20px;
}
.form__status.is-success { color: #6ee7a4; }
.form__status.is-error   { color: #ff8a7a; }

/* ============================================================
   ANIMAÇÕES DE ENTRADA (data-reveal)
   - Usa @keyframes (somente opacity) para não conflitar com a
     transição própria de cada elemento (que controla o hover).
   ============================================================ */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
}
[data-reveal].is-in {
  opacity: 1;
  transform: translateY(0);
  animation: revealFade 800ms var(--ease-out) both;
}
@keyframes revealFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero__glow, .building__halo, .building__img { animation: none; }
  *, *::before, *::after {
    animation-duration: 0ms !important;
    transition-duration: 0ms !important;
  }
}

/* ============================================================
   AJUSTES MOBILE
   ============================================================ */
@media (max-width: 960px) {
  .hero { min-height: auto; padding-bottom: clamp(36px, 5vh, 56px); }
}

@media (max-width: 640px) {
  .hero { padding-top: 100px; }
  .locale { width: 100%; }
  .btn--cta { width: 100%; }
}

@media (max-width: 380px) {
  .locale { padding: 14px 16px; gap: 12px; }
}

/* alturas curtas (notebook 13") — garante que tudo cabe em 100vh */
@media (min-width: 960px) and (max-height: 760px) {
  .hero__logo { width: clamp(220px, 30vw, 380px); }
  .hero__lede { margin-bottom: clamp(20px, 2.6vh, 28px); }
  .locale     { margin-bottom: clamp(20px, 2.6vh, 28px); }
}
