/* Nexcon: estilos compartilhados do site (landing e futuras páginas em subpastas) */
:root {
  --laranja: #E84E1C;        /* cor oficial da marca */
  --laranja-forte: #CF4417;  /* fundo de botões e faixas com texto branco (contraste AA) */
  --laranja-texto: #C2410C;  /* links e destaques sobre fundo claro */
  --laranja-hover: #B5390C;
  --grafite: #262626;        /* cor oficial da marca */
  --tinta: #1C1B1A;
  --texto: #3A3633;
  --mudo: #625C57;
  --fundo: #FAF8F6;
  --superficie: #F1ECE7;
  --linha: #E3DCD5;
  --branco: #FFFFFF;

  --fonte: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 40px);
  --raio: 14px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sombra: 0 18px 40px -22px rgba(38, 30, 24, 0.35), 0 2px 6px -2px rgba(38, 30, 24, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fundo); color: var(--texto);
  font-family: var(--fonte); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { color: var(--tinta); font-weight: 700; line-height: 1.12; letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
::selection { background: var(--laranja); color: var(--branco); }
:focus-visible { outline: 2px solid var(--laranja-texto); outline-offset: 3px; border-radius: 6px; }
html { scrollbar-color: #CFC6BE var(--fundo); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 16px; top: -60px; background: var(--grafite); color: #fff; padding: 10px 16px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.ico { width: 1.15em; height: 1.15em; flex: none; }

/* Botões e links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  background: var(--laranja-forte); color: var(--branco);
  font: 600 1rem/1 var(--fonte); text-decoration: none; white-space: nowrap;
  box-shadow: 0 10px 22px -12px rgba(207, 68, 23, .7);
  transition: background-color 160ms ease, transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.btn:hover { background: var(--laranja-hover); transform: translateY(-1px); }
.btn:active { transform: scale(0.97); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
.btn--claro { background: var(--branco); color: var(--laranja-hover); box-shadow: 0 12px 26px -14px rgba(0,0,0,.45); }
.btn--claro:hover { background: #FFF3EC; }

.link {
  color: var(--laranja-texto); font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size 240ms var(--ease-out), color 160ms ease;
}
.link:hover { background-size: 100% 2px; color: var(--laranja-hover); }
.link--claro { color: var(--branco); background-size: 100% 1px; }
.link--claro:hover { color: var(--branco); background-size: 100% 2px; }

/* Topo fixo */
.topo { position: sticky; top: 0; z-index: 50; background: rgba(250, 248, 246, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 200ms ease, box-shadow 200ms ease; }
.topo.is-rolado { border-color: var(--linha); box-shadow: 0 8px 24px -20px rgba(38,30,24,.4); }
.topo__in { display: flex; align-items: center; gap: 32px; min-height: 76px; }
.topo__logo img { height: 34px; width: auto; }
.topo__nav { display: flex; gap: 28px; margin-left: auto; }
.topo__nav a { color: var(--texto); text-decoration: none; font-weight: 500; font-size: .9375rem; transition: color 160ms ease; }
.topo__nav a:hover { color: var(--laranja-texto); }

/* Abertura */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); min-height: calc(100svh - 76px); display: flex; align-items: center; }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); max-width: 15ch; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--texto); margin-top: 24px; max-width: 48ch; }
.hero__acoes { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 28px; margin-top: 36px; }
.hero__fato { margin-top: 28px; font-size: .9375rem; color: var(--mudo); }
.hero__fato strong { color: var(--tinta); font-weight: 600; }
.hero__foto { position: relative; border-radius: calc(var(--raio) * 1.5); overflow: hidden; box-shadow: var(--sombra); aspect-ratio: 4 / 5; background: var(--superficie); }
.hero__foto img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 30%; }

/* Entrada da abertura (uma vez, ao carregar) */
[data-enter] { animation: entrar 700ms var(--ease-out) both; animation-delay: var(--d, 0ms); }
@keyframes entrar { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }

/* Cabeçalho de seção */
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 18ch; }
.sec-head p { color: var(--mudo); max-width: 46ch; }

/* Serviços */
.servicos { padding: clamp(72px, 10vw, 128px) 0; background: var(--branco); border-block: 1px solid var(--linha); }
.lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--linha); }
.item { padding: 36px 40px 36px 0; border-bottom: 1px solid var(--linha); display: grid; gap: 12px; align-content: start; }
.item:nth-child(even) { padding: 36px 0 36px 40px; border-left: 1px solid var(--linha); }
.item h3 { font-size: 1.5rem; }
.item p { color: var(--mudo); max-width: 44ch; }
.item .link { justify-self: start; margin-top: 6px; }
.servicos__mais { margin-top: 36px; color: var(--mudo); }

/* Como funciona */
.passos { padding: clamp(72px, 10vw, 128px) 0; }
.passos__lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; position: relative; }
.passos__lista::before { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--linha); }
.passos__lista::after { content: ""; position: absolute; top: 23px; left: 24px; right: 24px; height: 2px; background: var(--laranja); transform: scaleX(0); transform-origin: left; transition: transform 1400ms var(--ease-out) 200ms; }
.passos__lista.is-visivel::after { transform: scaleX(1); }
.passos__lista li { position: relative; display: grid; gap: 12px; align-content: start; }
.passos__n { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--fundo); border: 2px solid var(--laranja); color: var(--laranja-texto); font-weight: 700; font-size: 1.125rem; margin-bottom: 12px; position: relative; z-index: 1; }
.passos__lista h3 { font-size: 1.375rem; }
.passos__lista p { color: var(--mudo); max-width: 34ch; }

/* Por que a Nexcon */
.porque { padding: clamp(72px, 10vw, 128px) 0; background: var(--grafite); color: #D9D3CE; }
.porque__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 88px); align-items: center; }
.porque h2 { color: var(--branco); font-size: clamp(1.9rem, 3.4vw, 2.75rem); max-width: 18ch; }
.porque__foto { border-radius: calc(var(--raio) * 1.5); overflow: hidden; aspect-ratio: 5 / 4; background: #3a3633; }
.porque__foto img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.porque__foto:hover img { transform: scale(1.025); }
.dif { margin: 32px 0 0; display: grid; gap: 28px; }
.dif div { display: grid; grid-template-columns: 14px 1fr; column-gap: 18px; }
.dif div::before { content: ""; grid-row: 1 / span 2; width: 10px; height: 10px; margin-top: 10px; border-radius: 3px; background: var(--laranja); transform: rotate(45deg); }
.dif dt { color: var(--branco); font-weight: 600; font-size: 1.1875rem; }
.dif dd { margin: 4px 0 0; color: #CFC8C2; max-width: 46ch; }

/* Chamada final */
.cta { background: var(--laranja-forte); color: var(--branco); padding: clamp(72px, 10vw, 120px) 0; position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -6%; top: 50%; width: min(520px, 60vw); aspect-ratio: 1; transform: translateY(-50%); background: url("../img/icon-512.png") center / contain no-repeat; opacity: .1; filter: brightness(0) invert(1); pointer-events: none; }
.cta__in { position: relative; z-index: 1; }
.cta h2 { color: var(--branco); font-size: clamp(2rem, 4vw, 3.25rem); max-width: 20ch; }
.cta p { margin-top: 18px; font-size: 1.1875rem; font-weight: 500; max-width: 48ch; }
.cta__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 32px; margin-top: 36px; }

/* Rodapé */
.rodape { background: #1A1919; color: #BDB6B0; padding: 56px 0 96px; font-size: .9375rem; }
.rodape__in { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: center; }
.rodape img { height: 30px; width: auto; }
.rodape ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; }
.rodape a { text-decoration: none; transition: color 160ms ease; }
.rodape a:hover { color: var(--branco); }

/* WhatsApp flutuante */
.wa-flut { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 14px 30px -10px rgba(0,0,0,.45); transition: transform 180ms var(--ease-out); }
.wa-flut svg { width: 30px; height: 30px; }
.wa-flut:hover { transform: translateY(-2px); }
.wa-flut:active { transform: scale(0.95); }

/* Responsivo */
@media (max-width: 960px) {
  .topo__nav { display: none; }
  .topo__in { justify-content: space-between; }
  .hero { min-height: 0; }
  .hero__grid, .porque__grid { grid-template-columns: 1fr; }
  .hero__foto { aspect-ratio: 4 / 3; max-height: 420px; }
  .sec-head { grid-template-columns: 1fr; }
  .porque__foto { order: 2; aspect-ratio: 16 / 10; }
}
@media (max-width: 720px) {
  .lista { grid-template-columns: 1fr; }
  .item, .item:nth-child(even) { padding: 28px 0; border-left: 0; }
  .passos__lista { grid-template-columns: 1fr; gap: 32px; }
  .passos__lista::before, .passos__lista::after { top: 24px; bottom: 24px; left: 23px; right: auto; width: 2px; height: auto; }
  .passos__lista::after { transform: scaleY(0); transform-origin: top; }
  .passos__lista.is-visivel::after { transform: scaleY(1); }
  .passos__lista li { grid-template-columns: 48px 1fr; column-gap: 20px; row-gap: 6px; }
  .passos__n { grid-row: 1 / span 2; margin: 0; }
  .rodape__in { grid-template-columns: 1fr; justify-items: start; }
  .rodape ul { flex-direction: column; justify-content: start; }
}
@media (max-width: 480px) {
  .btn--sm span { display: none; }
  .btn--sm { width: 44px; padding: 0; }
  .hero__acoes .btn { width: 100%; }
  .cta__acoes .btn { width: 100%; }
  .topo__logo img { height: 30px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .passos__lista::after { transform: none; }
}
.porque__nome { margin-top: 20px; color: #D9D3CE; max-width: 50ch; }
.porque__nome strong { color: var(--branco); font-weight: 600; }
