/* =========================================================
   NeoComex | Assessoria Aduaneira
   Estilos do site (HTML/CSS puro, sem framework)
   ========================================================= */

/* ---------- Fontes ---------- */
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/nohemi-light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/nohemi-medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Nohemi";
  src: url("../fonts/nohemi-semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Cores e variáveis ---------- */
:root {
  --bg: #131233;            /* azul-marinho do fundo */
  --purple: #8035fb;        /* roxo principal */
  --purple-deep: #5621ad;   /* roxo das bordas e dos cards de serviço */
  --purple-band: #7444c7;   /* texto da faixa NeoComex */
  --text: #ededed;
  --tint: rgba(87, 33, 173, 0.42);
  --tint-strong: rgba(84, 8, 207, 0.42);

  --font-display: "Nohemi", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: 20px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.03em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.menu-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
address { font-style: normal; }

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

.skip-link {
  position: absolute;
  left: 16px; top: -80px;
  z-index: 100;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

section[id] { scroll-margin-top: 96px; }

/* ---------- Botão "Fale conosco" ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 40px;
  padding: 0 6px 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--bg);
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s ease;
}
.btn__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--purple);
  transition: transform 0.45s var(--ease-out);
}
.btn__icon svg { width: 20px; height: 20px; fill: #fff; }
.btn:active { transform: scale(0.97); }

@media (hover: hover) {
  .btn:hover { box-shadow: 0 8px 28px rgba(128, 53, 251, 0.35); }
  .btn:hover .btn__icon { transform: rotate(30deg); }
}

.btn--sm { height: 31px; gap: 8px; padding: 0 6px 0 16px; font-size: 10px; }
.btn--sm .btn__icon { width: 19px; height: 19px; }
.btn--sm .btn__icon svg { width: 14px; height: 14px; }

.btn--lg { height: 54px; gap: 14px; padding: 0 8px 0 26px; font-size: 18px; }
.btn--lg .btn__icon { width: 38px; height: 38px; }
.btn--lg .btn__icon svg { width: 26px; height: 26px; }

/* ---------- Pílulas do menu ---------- */
.pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 33px;
  padding: 0 16px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0;
  white-space: nowrap;
}
.pill::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: var(--purple);
  transform: translateY(105%);
  transition: transform 0.4s var(--ease-out);
}
@media (hover: hover) {
  .pill:hover::before { transform: translateY(0); }
}
.pill--lg {
  height: 46px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.18);
  font-size: 15px;
  font-weight: 600;
}

/* ---------- Cabeçalho ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: 0;
}

.nav-full {
  position: absolute;
  top: 22px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(1181px, calc(100% - 48px));
  height: 53px;
  margin: 0 auto;
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0s;
}
.nav-full__logo img { width: 200px; }
.nav-full__links { display: flex; gap: 8px; margin-left: auto; }

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.menu-toggle svg { width: 26px; height: 26px; fill: #fff; }

.nav-compact {
  position: absolute;
  top: 22px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 32px;
  width: max-content;
  height: 54px;
  padding: 0 11px 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 33px;
  background: rgba(19, 18, 51, 0.45);
  -webkit-backdrop-filter: blur(29px);
  backdrop-filter: blur(29px);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -24px);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.nav-compact__logo img { width: 128px; }

.site-header.is-scrolled .nav-full {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-24px);
  transition: opacity 0.3s ease, transform 0.5s var(--ease-out), visibility 0s linear 0.5s;
}
.site-header.is-scrolled .nav-compact {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
  transition: opacity 0.35s ease, transform 0.5s var(--ease-out), visibility 0s;
}

/* ---------- Menu do celular ---------- */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 48px;
  overflow-y: auto;
  background: rgba(17, 17, 17, 0.98);
  animation: menu-in 0.35s var(--ease-out);
}
.mobile-menu[hidden] { display: none; }
.mobile-menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.mobile-menu__close {
  padding: 8px;
  border: 0;
  background: none;
  cursor: pointer;
}
.mobile-menu__close svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
}
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 64px;
}
.mobile-menu .btn--lg { margin-top: 56px; }

@keyframes menu-in {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid;
  place-items: center;
  height: 606px;
  overflow: hidden;
  /* Fundo de reserva, se o navegador não tiver WebGL */
  background:
    radial-gradient(55% 75% at 82% 62%, rgba(226, 210, 255, 0.9), transparent 62%),
    radial-gradient(70% 95% at 62% 35%, #8035fb, transparent 72%),
    var(--bg);
}
.hero__canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
.hero__content {
  position: relative;
  z-index: 1;
  width: min(1000px, calc(100% - 40px));
  padding-top: 56px;
  text-align: center;
}
.hero__title { font-weight: inherit; }
.hero__lead {
  display: block;
  max-width: 680px;
  margin: 0 auto;
  color: #fff;
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0;
}
.hero__rotator {
  position: relative;
  display: block;
  height: 1.1em;
  margin-top: 9px;
  color: #fff;
  font-family: var(--font-display);
  font-size: 78px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0.01em;
}
.rotator__word {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: center;
  white-space: pre;
}
.rotator__char {
  display: inline-block;
  opacity: 0;
  filter: blur(16px);
  transition: opacity 0.7s var(--ease-out), filter 0.7s var(--ease-out);
}
.rotator__word.is-in .rotator__char { opacity: 1; filter: blur(0); }

/* ---------- Faixa NeoComex ---------- */
.band {
  display: flex;
  justify-content: center;
  overflow: hidden;
  padding: 36px 0;
  background: var(--purple-deep);
  -webkit-mask-image: linear-gradient(#000 0%, #000 45%, transparent 100%);
  mask-image: linear-gradient(#000 0%, #000 45%, transparent 100%);
}
.band__row {
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.band__row--narrow { display: none; }
.scramble {
  color: var(--purple-band);
  font-family: var(--font-display);
  font-size: 84px;
  line-height: 1;
  letter-spacing: -0.01em;
}
.scramble--medium { font-weight: 500; }
.scramble--light { font-weight: 300; }
.scramble .is-scrambling { color: #ccc; }

/* ---------- Contêiner + números ---------- */
.showcase__img {
  width: 100%;
  aspect-ratio: 1425 / 847;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(#000 57%, rgba(0, 0, 0, 0.08) 90%, transparent 100%);
  mask-image: linear-gradient(#000 57%, rgba(0, 0, 0, 0.08) 90%, transparent 100%);
}
.numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  width: min(1069px, calc(100% - 40px));
  min-height: 179px;
  margin: 0 auto;
  padding: 24px 55px;
  border-radius: 38px;
  background: var(--tint);
}
.numbers__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 500;
}
.numbers__item strong {
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}
.numbers__item span {
  margin-top: 2px;
  font-size: 13px;
  line-height: 1;
  letter-spacing: 0.02em;
}

/* ---------- Frases digitadas ---------- */
.typewriter {
  display: flex;
  justify-content: center;
  padding: 85px 0 80px;
}
.typewriter__box { width: min(952px, calc(100% - 40px)); }
.typewriter__text {
  min-height: calc(1.2em * 5);
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(26px, 6vw, 64px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}
.typewriter__cursor {
  display: inline-block;
  margin-left: 2px;
  font-weight: 300;
  opacity: 0.7;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Blocos em duas colunas (Quem somos / Distribuição) ---------- */
.split {
  display: grid;
  grid-template-columns: 474fr 453fr;
  align-items: center;
  gap: 60px;
  width: min(987px, calc(100% - 40px));
  margin: 0 auto;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 407px;
  padding: 40px 47px;
  border: 3px solid var(--purple-deep);
  border-radius: 23px;
  text-align: center;
}
.card__text {
  margin-top: 27px;
  color: var(--text);
}
.card .btn { margin-top: 28px; }

.section-title {
  color: #fff;
  font-family: var(--font-display);
  font-size: 51px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.04em;
}

/* Quem somos */
.about {
  position: relative;
  isolation: isolate;
  padding: 101px 0 102px;
}
.about::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tint);
  -webkit-mask-image: linear-gradient(transparent 8%, #000 21%, #000 81%, transparent 96%);
  mask-image: linear-gradient(transparent 8%, #000 21%, #000 81%, transparent 96%);
}

/* Distribuição */
.distribution {
  padding: 164px 0;
  background: var(--tint-strong);
}
.card--flag { border-radius: 27px; }
.card--flag .card__text { margin-top: 29px; }
.card--flag .btn { margin-top: 30px; }
.card__flag {
  position: absolute;
  top: -78px;
  left: 50%;
  width: 220px;
  transform: translateX(-50%);
  pointer-events: none;
}

/* ---------- Carrossel de fotos ---------- */
.carousel {
  position: relative;
  width: 100%;
  aspect-ratio: 453 / 408;
}
.carousel__viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 14px;
  touch-action: pan-y;
}
.carousel__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s ease, transform 1.4s var(--ease-out);
  user-select: none;
  -webkit-user-drag: none;
}
.carousel__slide.is-active { opacity: 1; transform: scale(1); }

.carousel__btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(19, 18, 51, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s var(--ease-out);
}
.carousel__btn svg {
  width: 38px;
  height: 38px;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
.carousel__btn:active { transform: scale(0.92); }
@media (hover: hover) {
  .carousel__btn:hover { background: var(--purple); }
}

/* ---------- Serviços ---------- */
.services { padding: 91px 0 84px; }

.services__head {
  display: grid;
  grid-template-columns: 380px 467px;
  justify-content: space-between;
  align-items: center;
  width: min(1000px, calc(100% - 40px));
  min-height: 171px;
  margin: 0 auto;
  padding: 20px 39px 20px 38px;
  border: 3px solid var(--purple-deep);
  border-radius: 35px;
  text-align: center;
}
.services__head .section-title { color: var(--text); }
.services__head p { color: var(--text); }

.services__list {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: min(1004px, calc(100% - 40px));
  margin: 49px auto 0;
}
.service {
  display: grid;
  grid-template-columns: 34px 278px 34px 1fr;
  align-items: center;
  column-gap: 38px;
  min-height: 71px;
  padding: 9px 35px 9px 34px;
  border-radius: 24px;
  background: var(--purple-deep);
  transition: background-color 0.3s ease;
}
.service h3 {
  color: var(--text);
  font-family: var(--font-body);
  font-size: 20px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-wrap: balance;
}
.service p {
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}
.service svg { width: 34px; height: 34px; color: #fff; fill: #fff; }
.service__arrow { transition: transform 0.35s var(--ease-out); }

@media (hover: hover) {
  .service:hover { background: #6127c4; }
  .service:hover .service__arrow { transform: translateX(4px); }
}

/* ---------- Rodapé ---------- */
.footer {
  overflow: hidden;
  padding-top: 120px;
  background: var(--bg);
}
.footer__content {
  display: grid;
  grid-template-columns: minmax(0, 463px) 1px minmax(0, 167px);
  justify-content: center;
  column-gap: clamp(40px, 10vw, 147px);
  width: calc(100% - 40px);
  margin: 0 auto;
}
.footer__logo img { width: 200px; }
.footer address,
.footer__copy {
  margin-top: 20px;
  color: #fff;
}
.footer__copy { letter-spacing: 0; }
.footer__divider {
  width: 1px;
  height: 191px;
  background: rgba(255, 255, 255, 0.55);
}
.footer__title {
  color: #fff;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}
.footer__social {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}
.footer__social a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  letter-spacing: 0;
  transition: color 0.25s ease;
}
.footer__social svg { width: 24px; height: 24px; fill: currentColor; }
@media (hover: hover) {
  .footer__social a:hover { color: #c7a8ff; }
}
.footer__col > .btn { margin-top: 28px; }

.footer__wordmark {
  --wm: min(227.5px, calc((100vw - 40px) * 0.1896));
  width: min(1200px, calc(100% - 40px));
  height: calc(var(--wm) * 0.85);
  margin: 159px auto 0;
  overflow: hidden;
  color: var(--purple);
  opacity: 0.31;
  font-family: var(--font-display);
  font-size: var(--wm);
  line-height: 1.2;
  letter-spacing: -0.07px;
  text-align: center;
  white-space: nowrap;
}
.w-medium { font-weight: 500; }
.w-light { font-weight: 300; }

/* ---------- Animação de entrada ao rolar ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsivo
   ========================================================= */

@media (max-width: 1199px) {
  .band__row--wide { display: none; }
  .band__row--narrow { display: flex; }
}

@media (max-width: 1100px) {
  .split { gap: 40px; }
  .services__head { grid-template-columns: 1fr 1.3fr; gap: 32px; }
  .service { grid-template-columns: 34px minmax(160px, 240px) 34px 1fr; column-gap: 24px; }
}

@media (max-width: 899px) {
  .nav-full { top: 18px; width: calc(100% - 40px); }
  .nav-full__logo img { width: 160px; }
  .nav-full__links,
  .nav-full__cta { display: none; }
  .menu-toggle { display: block; }

  .nav-compact { gap: 20px; padding-left: 16px; }
  .nav-compact__logo img { width: 110px; }

  .hero { height: min(100svh, 760px); min-height: 560px; }
  .hero__content { padding-top: 40px; }
  .hero__lead { max-width: 520px; font-size: clamp(30px, 6.4vw, 44px); }
  .hero__rotator { font-size: clamp(44px, 11vw, 78px); }

  .scramble { font-size: clamp(64px, 21vw, 150px); }
  .band { padding: 28px 0; }

  .showcase__img { aspect-ratio: 16 / 11; }

  .split {
    grid-template-columns: 1fr;
    gap: 48px;
    width: min(560px, calc(100% - 40px));
  }
  .card { min-height: 0; padding: 56px 32px; }
  .distribution { padding: 140px 0 100px; }

  .services__head {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 44px 28px;
  }
  .service {
    grid-template-columns: 34px 1fr;
    column-gap: 20px;
    row-gap: 10px;
    padding: 20px 24px;
  }
  .service__dots { display: none; }
  .service p { grid-column: 2; }

  .footer { padding-top: 88px; }
  .footer__content { column-gap: 48px; }
}

@media (max-width: 640px) {
  body { font-size: 14px; }

  .numbers {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 24px;
    border-radius: 32px;
  }
  .numbers__item strong { font-size: 60px; }

  .typewriter { padding: 64px 0 48px; }

  .section-title { font-size: 42px; }
  .card { padding: 48px 22px; }

  .services { padding: 72px 0 72px; }
  .services__list { gap: 24px; margin-top: 40px; }
  .service {
    grid-template-columns: 1fr;
    justify-items: center;
    row-gap: 14px;
    padding: 30px 24px;
    text-align: center;
  }
  .service__arrow { display: none; }
  .service p { grid-column: auto; }
  .service h3 { font-size: 20px; line-height: 1.2; }

  .footer__content {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }
  .footer__divider { width: 100%; height: 1px; }
  .footer__wordmark { margin-top: 96px; }
}

/* Para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .typewriter__cursor { display: none; }
}
