/* NEXP — Site V2 ------------------------------------------------------- */
:root {
  --bg: #0b0b0c;
  --bg-2: #121214;
  --fg: #f3f3f1;
  --muted: #8d8d8a;
  --line: rgba(255, 255, 255, .12);
  --accent: #ee2041;
  --accent-fg: #fff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
  --radius: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }

.container { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* Header -------------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: 76px;
}
.logo img { height: 22px; width: auto; }
.nav { display: flex; gap: 28px; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--fg); }

/* Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent); color: var(--accent-fg);
  padding: 16px 26px; border-radius: 999px;
  font-weight: 500; font-size: 16px; line-height: 1;
  transition: transform .2s ease, background .2s ease;
}
.btn:hover { background: #ff2f50; transform: translateY(-1px); }
.btn--sm { padding: 11px 18px; font-size: 14px; }
.link { color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.link:hover { color: var(--fg); border-color: var(--fg); }

/* Type ---------------------------------------------------------------- */
.eyebrow {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.6rem, 7.2vw, 6.4rem);
  line-height: .98; letter-spacing: -.035em; font-weight: 500;
  text-wrap: balance;
}
h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: 1.02; letter-spacing: -.03em; font-weight: 500;
  text-wrap: balance;
}
h3 { font-size: 1.35rem; font-weight: 500; letter-spacing: -.01em; }

/* Hero ---------------------------------------------------------------- */
.hero { padding: clamp(72px, 14vh, 160px) 0 clamp(64px, 10vh, 120px); }
.hero__lead {
  max-width: 44ch; margin-top: 32px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted);
}
.hero__links { display: flex; gap: 14px; margin-top: 36px; font-size: 16px; }
.hero__links span { color: var(--muted); }
.hero__links a { border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.hero__links a:hover { border-color: var(--fg); }

/* Sections ------------------------------------------------------------ */
.section { padding: clamp(64px, 10vh, 128px) 0; border-top: 1px solid var(--line); }
/* As listas já fecham com uma linha: a seção seguinte não repete outra. */
#servicos, #contato { border-top: 0; }
.section__head { margin-bottom: clamp(32px, 5vh, 56px); }

/* Cases (lista estilo tabela) ---------------------------------------- */
.cases { border-top: 1px solid var(--line); }
.case__row {
  display: grid;
  grid-template-columns: 96px 1.1fr 1.6fr auto 24px;
  align-items: center; gap: 28px;
  padding: 22px 0; border-bottom: 1px solid var(--line);
  transition: padding .25s ease;
}
.case__row:hover { padding-left: 8px; }
.case__thumb {
  width: 96px; height: 54px; object-fit: cover; border-radius: 4px;
  filter: saturate(.85); transition: filter .3s ease;
}
.case__row:hover .case__thumb { filter: none; }
.case__name { font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; }
.case__services { color: var(--muted); font-size: 15px; }
.case__year { color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; }
.case__arrow {
  width: 14px; height: 14px; justify-self: end; position: relative;
  transition: transform .25s ease;
}
.case__arrow::before {
  content: ""; position: absolute; inset: 0;
  border-top: 1.5px solid var(--fg); border-right: 1.5px solid var(--fg);
  transform: rotate(45deg);
}
.case__row:hover .case__arrow { transform: translateX(4px); }

/* Página de case ------------------------------------------------------ */
.back { display: inline-block; color: var(--muted); font-size: 15px; margin-bottom: 40px; }
.back:hover { color: var(--fg); }
.case-hero { padding: clamp(48px, 8vh, 96px) 0 clamp(40px, 6vh, 64px); }
.case-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); }
.case-hero__lead {
  max-width: 48ch; margin-top: 28px;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--muted);
}
.case-meta {
  display: flex; flex-wrap: wrap; gap: 40px 64px; margin: 40px 0 0;
  padding-top: 28px; border-top: 1px solid var(--line);
}
.case-meta div { margin: 0; }
.case-meta dt { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.case-meta dd { margin: 0; font-size: 16px; }
.case-gallery { display: grid; gap: 16px; }
.case-gallery img { width: 100%; border-radius: var(--radius); background: var(--bg-2); }
.case-text { padding: clamp(48px, 8vh, 96px) 0; }
.case-text p { max-width: 62ch; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--muted); }
.case-next { padding: clamp(48px, 8vh, 96px) 0; border-top: 1px solid var(--line); }
.case-next__link {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 12px 28px;
  font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.03em; font-weight: 500;
}
.case-next__link:hover span:first-child { color: var(--accent); }
.case-next__services { font-size: 15px; letter-spacing: 0; font-weight: 400; color: var(--muted); }

/* Serviços (lista numerada, sem caixas) ----------------------------- */
.services { border-top: 1px solid var(--line); }
.service {
  display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: baseline; gap: 24px;
  padding: 32px 0; border-bottom: 1px solid var(--line);
}
.service__step { font-size: 14px; color: var(--accent); font-variant-numeric: tabular-nums; }
.service h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.025em; }
.service p { color: var(--muted); font-size: 16px; max-width: 46ch; }

/* Contato ------------------------------------------------------------- */
.contact__title { font-size: clamp(2.4rem, 6vw, 5rem); }
.contact__lead { margin-top: 20px; color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.contact__actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 28px; margin-top: 40px;
}

/* Footer -------------------------------------------------------------- */
.footer {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 32px 0 40px; border-top: 1px solid var(--line);
  color: var(--muted); font-size: 14px;
}
.footer__mark { opacity: .9; }
.footer__nav { display: flex; gap: 20px; }
.footer__nav a:hover { color: var(--fg); }

/* Reveal (entrada) ---------------------------------------------------- */
.reveal { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.reveal--1 { animation-delay: .08s; }
.reveal--2 { animation-delay: .18s; }
.reveal--3 { animation-delay: .26s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { animation: none; }
  .btn, .case__row, .case__thumb, .case__arrow { transition: none; }
}

/* Responsivo ---------------------------------------------------------- */
@media (max-width: 900px) {
  .service { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 12px; padding: 24px 0; }
  .service p { grid-column: 2; font-size: 15px; }
  .case__row { grid-template-columns: 72px 1fr auto 20px; gap: 16px; }
  .case__thumb { width: 72px; height: 40px; }
  .case__services { grid-column: 2 / 4; grid-row: 2; font-size: 14px; }
  .case__name { grid-column: 2; }
  .case__year { grid-column: 3; }
  .case__arrow { grid-column: 4; grid-row: 1 / 3; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  h1 br, .contact__title br { display: none; }
  .nav { display: none; }
  .header__inner { height: 64px; }
  .footer { flex-direction: column; align-items: flex-start; }
  .case__row:hover { padding-left: 0; }
}
