/* =========================================================
   NEXO Representações Comerciais — estilos do site
   Cores e tipografia PROVISÓRIAS: o manual (v1.0) ainda não
   definiu códigos oficiais. Ajuste apenas os tokens abaixo
   quando a paleta definitiva for aprovada.
   ========================================================= */

:root {
  /* Preto / grafite */
  --black: #0a0b0d;
  --graphite: #131518;
  --graphite-2: #1b1e22;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .22);

  /* Prata / aço escovado */
  --steel-1: #5d6268;
  --steel-2: #9aa0a7;
  --steel-3: #d9dde1;
  --steel-4: #f4f6f8;
  --steel: linear-gradient(115deg, var(--steel-1) 0%, var(--steel-3) 30%, var(--steel-4) 45%, var(--steel-2) 62%, var(--steel-3) 82%, var(--steel-1) 100%);

  /* Branco e texto */
  --white: #f5f6f7;
  --text: #c7cbd0;
  --muted: #8b9097;

  /* Auxiliar azul-marinho muito escuro (uso discreto) */
  --navy: #0c1420;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mark: "Michroma", "Montserrat", sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
strong { color: var(--white); font-weight: 600; }
p { margin: 0 0 1.1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute; left: -999px; top: 8px;
  background: var(--white); color: var(--black);
  padding: 8px 14px; z-index: 100;
}
.skip:focus { left: 8px; }

:focus-visible { outline: 1px solid var(--steel-3); outline-offset: 3px; }

/* ---------------- Wordmark ---------------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mark);
  font-size: 22px;
  line-height: 1;
  letter-spacing: .02em;
  color: var(--white);
}
.wordmark__x {
  width: .98em;
  height: .98em;
  margin: 0 .06em;
  overflow: visible;
}
.wordmark--xl { font-size: clamp(56px, 11vw, 132px); }

.brand { display: inline-flex; flex-direction: column; gap: 6px; }
.brand__sig {
  font-size: 7.5px;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--steel-2);
  font-weight: 500;
  white-space: nowrap;
}

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  font: 600 12px/1 var(--font);
  letter-spacing: .2em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-position .6s var(--ease), border-color .3s, color .3s, background-color .3s;
}
.btn--steel {
  background: var(--steel);
  background-size: 220% 100%;
  background-position: 0 0;
  color: var(--black);
}
.btn--steel:hover { background-position: 100% 0; }
.btn--ghost {
  border-color: var(--line-strong);
  color: var(--white);
  background: transparent;
}
.btn--ghost:hover { border-color: var(--steel-3); background: rgba(255, 255, 255, .04); }
.btn--sm { padding: 11px 18px; font-size: 11px; }
.btn--block { width: 100%; }

/* ---------------- Header ---------------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.header.is-solid {
  background: rgba(10, 11, 13, .86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav a:not(.btn) {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--text);
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--steel-3);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.nav a:not(.btn):hover { color: var(--white); }
.nav a:not(.btn):hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 11px; right: 11px; height: 1px;
  background: var(--white);
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav-toggle span:first-child { top: 18px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 22px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 22px; transform: rotate(-45deg); }

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, #1d2024 0%, transparent 70%),
    linear-gradient(180deg, #0d0e10 0%, var(--black) 100%);
  padding: 120px 0 100px;
}
.hero__x {
  position: absolute;
  right: -12vw;
  top: 50%;
  width: min(78vw, 980px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  opacity: .9;
  pointer-events: none;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .7));
  animation: x-in 1.8s var(--ease) both;
}
.hero__x svg { width: 100%; height: 100%; }
.hero__x::after {
  /* escurece a lateral esquerda do X para dar leitura ao texto */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(10, 11, 13, .55) 35%, transparent 65%);
}
.hero__glow {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--black) 0%, rgba(10, 11, 13, .9) 30%, rgba(10, 11, 13, .2) 60%, transparent 100%);
  pointer-events: none;
}
@keyframes x-in {
  from { opacity: 0; transform: translateY(-50%) translateX(6%) scale(1.04); }
  to   { opacity: .9; transform: translateY(-50%) translateX(0) scale(1); }
}

.hero__inner { position: relative; z-index: 2; }
.hero__content { max-width: 640px; }
.hero__logo { margin: 0; display: flex; flex-direction: column; gap: 18px; font-weight: 400; }
.hero__sig {
  font-size: clamp(10px, 1.55vw, 17px);
  letter-spacing: .5em;
  text-transform: uppercase;
  color: var(--steel-3);
  font-weight: 400;
  padding-left: .2em;
}
.rule {
  display: block;
  width: 56px; height: 2px;
  background: var(--steel);
  margin: 40px 0 28px;
}
.hero__tagline {
  font-size: clamp(14px, 1.6vw, 18px);
  letter-spacing: .28em;
  text-transform: uppercase;
  line-height: 1.9;
  color: var(--text);
  margin-bottom: 28px;
}
.hero__tagline strong { font-weight: 700; }
.hero__lead { max-width: 500px; color: var(--muted); margin-bottom: 40px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__content > * { animation: fade-up 1s var(--ease) both; }
.hero__content > *:nth-child(2) { animation-delay: .15s; }
.hero__content > *:nth-child(3) { animation-delay: .25s; }
.hero__content > *:nth-child(4) { animation-delay: .35s; }
.hero__content > *:nth-child(5) { animation-delay: .45s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; z-index: 2;
  width: 1px; height: 56px;
  background: var(--line);
  overflow: hidden;
}
.hero__scroll span {
  position: absolute; inset: 0;
  background: var(--steel-3);
  animation: scroll-line 2.2s ease-in-out infinite;
}
@keyframes scroll-line { 0% { transform: translateY(-100%); } 100% { transform: translateY(100%); } }

/* ---------------- Seções ---------------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section--tight { padding: 0 0 clamp(80px, 10vw, 120px); }
.section--alt { background: var(--graphite); }

.eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 22px;
}
.eyebrow::after { content: ""; width: 56px; height: 1px; background: var(--line-strong); }

.title {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.2;
  font-weight: 300;
  color: var(--white);
  margin: 0 0 28px;
  letter-spacing: -.005em;
}
.title strong { font-weight: 600; }
.muted { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
.split--reverse .split__text { order: 2; }
.split__text { max-width: 540px; }
.split__media { position: relative; display: flex; align-items: center; gap: clamp(24px, 3vw, 40px); }
.split__media .photo { flex: 1 1 auto; }

/* ---------------- Fotografias ----------------
   Provisório: recortes da apresentação institucional.
   Para usar fotos em alta resolução, basta substituir os
   arquivos foto-*.webp em assets/img mantendo os nomes.
   ------------------------------------------------ */
.photo {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  background: var(--graphite-2) center / cover no-repeat;
  overflow: hidden;
}
.photo::after {
  content: "";
  position: absolute; inset: 0;
  box-shadow: inset 0 0 0 1px var(--line);
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 55%, rgba(10, 11, 13, .55) 100%);
}
.photo--predio   { aspect-ratio: 275 / 315; background-image: url(../img/foto-predio.webp); max-width: 440px; }
.photo--lab      { aspect-ratio: 385 / 210; background-image: url(../img/foto-laboratorio.webp); }
.photo--suporte  { aspect-ratio: 342 / 215; background-image: url(../img/foto-suporte.webp); }
.photo--cidade   { aspect-ratio: 452 / 185; background-image: url(../img/foto-cidade.webp); }
.photo--parceria { aspect-ratio: 310 / 289; background-image: url(../img/foto-parceria.webp); max-width: 440px; filter: grayscale(1); }

.side-quote {
  flex: 0 0 180px;
  padding-left: 22px;
  border-left: 1px solid var(--line-strong);
  font-size: 12px;
  line-height: 1.9;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--white);
}

/* ---------------- Pilares ---------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}
.pillar {
  padding: 44px 40px 8px 0;
  position: relative;
}
.pillar + .pillar { padding-left: 40px; border-left: 1px solid var(--line); }
.pillar::before {
  content: "";
  position: absolute; top: -1px; left: 0;
  width: 48px; height: 2px;
  background: var(--steel);
}
.pillar + .pillar::before { left: 40px; }
.pillar__num { font-size: 12px; letter-spacing: .2em; color: var(--muted); }
.pillar h3 {
  margin: 10px 0 12px;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  letter-spacing: .02em;
}
.pillar p { color: var(--muted); max-width: 320px; }

/* ---------------- Áreas ---------------- */
.areas {
  list-style: none;
  margin: clamp(56px, 8vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-block: 1px solid var(--line);
}
.areas li {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
  padding: 36px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--white);
  transition: background-color .4s;
}
.areas li + li { border-left: 1px solid var(--line); }
.areas li:hover { background: rgba(255, 255, 255, .03); }
.areas svg {
  width: 44px; height: 44px;
  fill: none;
  stroke: var(--steel-3);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------------- Suporte ---------------- */
.support {
  list-style: none;
  margin: clamp(56px, 8vw, 88px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.support li {
  background: var(--graphite);
  padding: 32px 26px;
  transition: background-color .4s;
}
.support li:hover { background: var(--graphite-2); }
.support span {
  display: block;
  font-size: 12px;
  letter-spacing: .2em;
  background: var(--steel);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 600;
  margin-bottom: 18px;
}
.support h3 { margin: 0 0 10px; font-size: 16px; font-weight: 600; color: var(--white); line-height: 1.35; }
.support p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------------- Números ---------------- */
.numbers { overflow: hidden; background: var(--black); }
.numbers__bg {
  position: absolute !important;
  inset: 0 0 0 30%;
  width: auto;
  aspect-ratio: auto;
  border-radius: 0;
  opacity: .75;
}
.numbers__bg::after {
  box-shadow: none;
  border-radius: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgba(10, 11, 13, .7) 30%, rgba(10, 11, 13, .15) 70%),
    linear-gradient(0deg, var(--black) 0%, rgba(10, 11, 13, .3) 45%, rgba(10, 11, 13, .6) 100%);
}
.numbers__inner { position: relative; z-index: 2; }
.numbers__head { max-width: 520px; }
.stats {
  margin: clamp(48px, 7vw, 80px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stats div { padding: 4px 32px; }
.stats div:first-child { padding-left: 0; }
.stats div + div { border-left: 1px solid var(--line-strong); }
.stats dt {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  white-space: nowrap;
}
.stats dd { margin: 8px 0 0; color: var(--text); font-size: 14px; }

/* ---------------- Contato ---------------- */
.contact {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.contact__list { list-style: none; padding: 0; margin: 40px 0 0; border-top: 1px solid var(--line); }
.contact__list li {
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--white);
}
.contact__list a { transition: color .3s; }
.contact__list a:hover { color: var(--steel-3); }
.contact__label { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.form {
  background: var(--black);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea {
  font: 400 15px/1.5 var(--font);
  color: var(--white);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  padding: 10px 0;
  border-radius: 0;
  transition: border-color .3s;
  resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: #5b6067; }
.field input:focus, .field textarea:focus { outline: none; border-bottom-color: var(--steel-3); }
.field.is-invalid input, .field.is-invalid textarea { border-bottom-color: #b9786f; }
.hp { position: absolute; left: -9999px; }
.form__status.is-ok { color: var(--steel-4); }
.btn[disabled] { opacity: .6; cursor: wait; }
.form__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.btn__ico { width: 18px; height: 18px; flex: none; }

.contact__link { display: inline-flex; align-items: center; gap: 10px; word-break: break-all; }
.contact__ico { width: 20px; height: 20px; flex: none; color: var(--steel-3); }

/* Botão flutuante do WhatsApp (neutro, alinhado à paleta da marca) */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 40;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--graphite-2);
  border: 1px solid var(--line-strong);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
  transition: transform .3s var(--ease), background-color .3s, color .3s;
}
.wa-float svg { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: #25d366; color: #fff; border-color: transparent; }
.form__status { margin: 16px 0 0; font-size: 14px; color: var(--muted); min-height: 1.5em; }

/* ---------------- Footer ---------------- */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; background: var(--black); }
.footer__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px 40px;
  align-items: center;
}
.brand--footer .wordmark { font-size: 26px; }
.footer__tag {
  margin: 0; justify-self: end;
  font-size: 12px; letter-spacing: .24em; text-transform: uppercase; color: var(--text);
}
.footer__copy { grid-column: 1 / -1; margin: 24px 0 0; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------------- Animação de entrada ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------------- Responsivo ---------------- */
@media (max-width: 1080px) {
  .areas { grid-template-columns: repeat(3, 1fr); }
  .areas li:nth-child(4) { border-left: 0; }
  .areas li:nth-child(n+4) { border-top: 1px solid var(--line); }
  .support { grid-template-columns: repeat(3, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .stats div:nth-child(3) { padding-left: 0; border-left: 0; }
  .side-quote { display: none; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; z-index: 2; }
  .nav {
    position: fixed; inset: 0;
    flex-direction: column; justify-content: center; gap: 28px;
    background: rgba(10, 11, 13, .98);
    opacity: 0; visibility: hidden;
    transition: opacity .35s, visibility .35s;
  }
  .nav a:not(.btn) { font-size: 15px; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }

  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .photo--predio, .photo--parceria { max-width: none; aspect-ratio: 4 / 3; }

  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 32px 0 8px; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .pillar + .pillar::before { left: 0; }

  .numbers__bg { inset: 0; opacity: .45; }
  .hero__x { right: -50vw; width: 115vw; opacity: .3; animation: none; }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__tag { justify-self: start; }
}

@media (max-width: 560px) {
  .areas, .support { grid-template-columns: repeat(2, 1fr); }
  .areas li:nth-child(n) { border-left: 0; border-top: 0; }
  .areas li:nth-child(even) { border-left: 1px solid var(--line); }
  .areas li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .support li:last-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: 1fr; row-gap: 28px; }
  .stats > div:nth-child(n) { padding: 0 0 0 18px; border-left: 1px solid var(--line-strong); }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form__actions { grid-template-columns: 1fr; }
  .contact__list li { flex-direction: column; gap: 6px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__tagline { letter-spacing: .18em; }
  .hero__sig { letter-spacing: .32em; }
}
