/* =========================================================
   NIPON SERVIÇOS — folha de estilo única
   ========================================================= */

:root {
  --navy-deep: #061122;
  --navy: #0b1d36;
  --navy-mid: #132d52;
  --navy-soft: #244470;

  --red: #d62833;
  --red-dark: #a31524;
  --red-light: #f0585c;
  --gold: #e2b35c;
  --green: #209c68;

  --ink: #0d192b;
  --body: #5e6d84;
  --muted: #8795aa;
  --line: #dfe6f0;
  --bg-soft: #f6f8fb;

  --container: 1320px;
  --radius: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 4px 16px rgba(12, 26, 48, .07);
  --shadow-md: 0 18px 44px rgba(12, 26, 48, .12);
  --shadow-lg: 0 30px 70px rgba(6, 17, 34, .28);

  --ease: cubic-bezier(.22, .68, .32, 1);

  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; line-height: 1.14; letter-spacing: -.02em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(100% - 48px, var(--container)); margin-inline: auto; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--red); color: #fff; padding: 12px 20px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--red-light); outline-offset: 3px; border-radius: 4px; }

.icon { width: 24px; height: 24px; flex: none; }
.icon--lg { width: 32px; height: 32px; }

/* ---------------------------------------------- tipografia de seção */
.eyebrow {
  margin-bottom: 14px;
  font-size: 13px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--red { color: var(--red); }

.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.section__head { max-width: 860px; margin-bottom: 44px; }
.section__head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 700; }
.section__lead { margin-top: 18px; color: var(--body); font-size: 19px; }
.section__lead--dark { color: #aabed8; }

/* ---------------------------------------------- botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 17px 34px; border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-size: 16px; font-weight: 600; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 12px 28px rgba(214, 40, 51, .32); }
.btn--primary:hover { background: #c31f2b; box-shadow: 0 16px 34px rgba(214, 40, 51, .42); }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .42); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .7); }
.btn--sm { padding: 12px 24px; font-size: 15px; }
.btn--block { width: 100%; margin-top: 8px; }
.btn .icon { width: 20px; height: 20px; }

/* ---------------------------------------------- header */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  padding: 20px 0;
  transition: padding .25s var(--ease), background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
.site-header.is-stuck {
  padding: 12px 0;
  background: rgba(6, 17, 34, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(6, 17, 34, .35);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.logo { display: inline-flex; align-items: center; gap: 14px; }
.logo__mark { width: 46px; height: 46px; }
.logo__text { display: flex; flex-direction: column; line-height: 1; color: #fff; }
.logo__text strong { font-size: 25px; font-weight: 900; letter-spacing: -.01em; }
.logo__text em {
  margin-top: 4px; font-style: normal; font-size: 10px; font-weight: 600;
  letter-spacing: .34em; color: #a9bdd8;
}

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; align-items: center; gap: 32px; }
.nav__link {
  position: relative; padding: 6px 0; font-size: 15.5px; font-weight: 600; color: #bacae2;
  transition: color .18s;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--red-light); transition: width .22s var(--ease);
}
.nav__link:hover { color: #fff; }
.nav__link.is-active { color: #fff; }
.nav__link.is-active::after { width: 100%; }

.nav-toggle {
  display: none; width: 46px; height: 42px; padding: 10px; gap: 5px;
  flex-direction: column; justify-content: center;
  background: rgba(255, 255, 255, .1); border: 0; border-radius: 12px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; background: #fff; border-radius: 2px; transition: transform .25s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------------------------------------------- hero + carousel */
.hero {
  position: relative; overflow: hidden;
  padding: 150px 0 56px;
  background: linear-gradient(150deg, var(--navy-deep) 0%, var(--navy-mid) 100%);
  color: #fff;
}
.hero__glow {
  position: absolute; top: -320px; right: -260px; width: 1000px; height: 1000px;
  background: radial-gradient(circle, rgba(214, 40, 51, .42) 0%, rgba(214, 40, 51, 0) 62%);
  pointer-events: none;
}
.hero__rings { position: absolute; top: 90px; right: -180px; pointer-events: none; }
.hero__rings span {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 50%;
}
.hero__rings span:nth-child(1) { width: 520px; height: 520px; border-color: rgba(255, 255, 255, .14); }
.hero__rings span:nth-child(2) { width: 720px; height: 720px; }
.hero__rings span:nth-child(3) { width: 940px; height: 940px; border-color: rgba(255, 255, 255, .06); }

.hero-carousel { position: relative; z-index: 1; }
.hero-carousel__track { position: relative; min-height: 560px; }

.hero-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transform: translateX(36px);
  transition: opacity .55s var(--ease), transform .55s var(--ease), visibility .55s;
  pointer-events: none;
}
.hero-slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  pointer-events: auto; position: relative;
}
.hero-slide.is-exit {
  opacity: 0; transform: translateX(-28px);
}

.hero__grid {
  display: grid; grid-template-columns: 1.02fr .98fr; gap: 52px; align-items: center;
  min-height: 520px;
}
.hero__copy h1 {
  margin: 0 0 22px;
  font-size: clamp(34px, 4.6vw, 62px); font-weight: 900; letter-spacing: -.03em; line-height: 1.06;
}
.hero__copy h1 .accent { color: var(--red-light); }
.hero__lead { max-width: 560px; font-size: 18.5px; color: #bccde4; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 32px 0 24px; }
.hero__trust { font-size: 14px; color: #8ea5c4; }

.hero__visual { position: relative; }

.hero-shot {
  position: relative; margin: 0;
  border-radius: 28px; overflow: hidden;
  box-shadow: 0 30px 70px rgba(6, 17, 34, .45);
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .04);
  aspect-ratio: 4 / 3;
}
.hero-shot img {
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  transition: transform 6.5s ease;
}
.hero-slide.is-active .hero-shot img { transform: scale(1); }
.hero-shot__caption {
  position: absolute; left: 18px; right: 18px; bottom: 18px;
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 18px; border-radius: 16px;
  background: rgba(6, 17, 34, .72); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16);
}
.hero-shot__caption span {
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold);
}
.hero-shot__caption strong { font-size: 16px; font-weight: 700; color: #fff; }

.hero-carousel__controls {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 24px;
  align-items: center; margin-top: 28px; padding-bottom: 8px;
}
.hero-carousel__dots { display: flex; gap: 10px; align-items: center; }
.hero-dot {
  width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .28); cursor: pointer;
  transition: width .25s var(--ease), background-color .2s;
}
.hero-dot.is-active { width: 34px; background: var(--red-light); }
.hero-dot:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.hero-carousel__arrows { display: flex; gap: 10px; }
.hero-arrow {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1.5px solid rgba(255, 255, 255, .28); border-radius: 50%;
  background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer;
  transition: background-color .18s, border-color .18s, transform .18s;
}
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .55); transform: translateY(-1px); }

.hero-carousel__progress {
  grid-column: 1 / -1; height: 3px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); overflow: hidden;
}
.hero-carousel__progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: inherit;
}
.hero-carousel__progress.is-running > span {
  animation: heroProgress linear forwards;
}
@keyframes heroProgress {
  from { width: 0%; }
  to { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide { transition: none; }
  .hero-shot img { transition: none; transform: none; }
  .hero-carousel__progress.is-running > span { animation: none; width: 100%; }
}

/* ---------------------------------------------- KPIs */
.kpis {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: -48px; margin-bottom: 84px;
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
}
.kpi { padding: 34px 24px; text-align: center; }
.kpi + .kpi { border-left: 1px solid var(--line); }
.kpi strong { display: block; font-size: 38px; font-weight: 900; letter-spacing: -.03em; }
.kpi span { font-size: 15px; color: var(--body); }

/* ---------------------------------------------- cards */
.grid { display: grid; gap: 24px; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--glass { gap: 18px; }

.card { border-radius: var(--radius); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s, background-color .25s; }

.card--feature {
  position: relative; overflow: hidden;
  padding: 34px 30px 32px; background: #fff; border: 1px solid var(--line);
}
.card--feature::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--red);
}
.card--feature:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card--feature .icon { color: var(--red); margin-bottom: 20px; }
.card--feature h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.card--feature p { font-size: 15.5px; color: var(--body); }

.card--glass {
  padding: 24px 26px;
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .16);
}
.card--glass:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .12); border-color: rgba(240, 88, 92, .5);
}
.card--glass .icon { color: var(--red-light); margin-bottom: 16px; }
.card--glass h3 { font-size: 17.5px; font-weight: 700; color: #fff; margin-bottom: 9px; }
.card--glass p { font-size: 14.5px; color: #a9bed6; }

/* ---------------------------------------------- faixa escura */
.section--dark {
  background: linear-gradient(170deg, var(--navy) 0%, var(--navy-deep) 100%);
  color: #fff;
}
.band { display: grid; grid-template-columns: minmax(300px, .84fr) 1.9fr; gap: 76px; align-items: start; }
.band h2 { font-size: clamp(28px, 2.9vw, 40px); font-weight: 700; }

.timeline { margin-top: 44px; }
.timeline li { position: relative; padding: 0 0 34px 74px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 25px; top: 52px; bottom: 4px; width: 2px;
  background: rgba(255, 255, 255, .16);
}
.timeline li:last-child::before { display: none; }
.timeline__num {
  position: absolute; left: 0; top: 0;
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 15px; font-weight: 900;
  box-shadow: 0 8px 20px rgba(214, 40, 51, .35);
}
.timeline h3 { font-size: 19px; font-weight: 700; margin: 11px 0 8px; }
.timeline p { font-size: 15px; color: #a9bed6; }

.band__main .grid { margin-top: 34px; }

/* ---------------------------------------------- CTA + formulário */
.section--cta {
  background: linear-gradient(100deg, var(--red-dark) 0%, var(--red) 100%);
  color: #fff;
}
.cta { display: grid; grid-template-columns: 1fr .86fr; gap: 68px; align-items: center; }
.cta__copy h2 { font-size: clamp(28px, 3.2vw, 42px); font-weight: 700; }
.cta__copy > p { margin-top: 18px; font-size: 18px; color: #ffd8da; }
.cta__list { margin-top: 30px; display: grid; gap: 14px; }
.cta__list li { display: flex; align-items: center; gap: 13px; font-size: 16px; }
.cta__list .icon { width: 22px; height: 22px; color: #ffd8da; }

.form {
  padding: 36px 34px; border-radius: var(--radius-lg);
  background: #fff; color: var(--ink); box-shadow: var(--shadow-lg);
}
.form h3 { font-size: 22px; font-weight: 700; margin-bottom: 22px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { font-size: 13.5px; font-weight: 600; color: #43526a; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 15px;
  font: inherit; font-size: 15.5px; color: var(--ink);
  background: #fbfcfe; border: 1.5px solid var(--line); border-radius: 12px;
  transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; background: #fff;
  border-color: var(--red); box-shadow: 0 0 0 4px rgba(214, 40, 51, .12);
}
.field.has-error input, .field.has-error select { border-color: #e0414c; background: #fff6f6; }
.field__error { min-height: 0; font-size: 13px; color: #cf1d2a; }
.field.has-error .field__error { min-height: 18px; }

.form__note { margin-top: 16px; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.form__status { margin-top: 14px; font-size: 15px; font-weight: 600; }
.form__status.is-ok { color: var(--green); }
.form__status.is-err { color: #cf1d2a; }

/* ---------------------------------------------- rodapé */
.site-footer { background: var(--navy-deep); color: #98adc8; padding: 76px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 56px; padding-bottom: 56px; }
.logo--footer { margin-bottom: 22px; }
.footer__about { font-size: 15px; max-width: 420px; }
.site-footer h4 { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: #fff; margin-bottom: 20px; }
.site-footer ul { display: grid; gap: 12px; font-size: 15px; }
.site-footer a { transition: color .18s; }
.site-footer a:hover { color: var(--red-light); }
.footer__bar {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  padding: 26px 0; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px;
}

/* ---------------------------------------------- voltar ao topo */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 90;
  width: 52px; height: 52px; display: grid; place-items: center;
  background: var(--red); color: #fff; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: 0 12px 28px rgba(214, 40, 51, .4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .25s, visibility .25s, transform .25s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* ---------------------------------------------- animação de entrada */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------------------------------------------- responsivo */
@media (max-width: 1180px) {
  .band { grid-template-columns: 1fr; gap: 56px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .hero__grid { gap: 40px; }
}

@media (max-width: 980px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute; inset: 100% 24px auto; flex-direction: column; align-items: stretch; gap: 8px;
    padding: 20px; border-radius: var(--radius);
    background: rgba(6, 17, 34, .98); backdrop-filter: blur(14px);
    box-shadow: var(--shadow-lg);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s, visibility .22s, transform .22s var(--ease);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { display: block; padding: 13px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__link::after { display: none; }
  .nav__cta { margin-top: 12px; }

  .hero { padding: 130px 0 40px; }
  .hero-carousel__track { min-height: 0; }
  .hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 28px; }
  .hero__visual { margin-top: 4px; }
  .hero-shot { border-radius: 22px; }
  .hero-carousel__controls { margin-top: 20px; }

  .kpis { grid-template-columns: repeat(2, 1fr); margin-top: 28px; }
  .kpi:nth-child(3) { border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line); }

  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; gap: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .container { width: min(100% - 32px, var(--container)); }
  .grid--4, .grid--3 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr; }
  .kpi + .kpi { border-left: 0; border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
  .form { padding: 26px 22px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; }
  .hero-shot__caption strong { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
