/* EletromecanicaKVA — limpo, claro, elegante */

:root {
  --ink: #142033;
  --muted: #5c6b7a;
  --line: #e4e8ee;
  --paper: #fbfcfd;
  --soft: #f1f4f8;
  --navy: #16314f;
  --gold: #c99200;
  --gold-hi: #dba618;
  --gold-shadow: 0 1px 2px rgba(20, 32, 51, 0.35);
  --white: #ffffff;
  --header: 72px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --sans: "Instrument Sans", sans-serif;
  --serif: "Newsreader", Georgia, serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header) + 12px);
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

.shell {
  width: min(1120px, calc(100% - 3rem));
  margin-inline: auto;
}

/* ---------- Vinheta ---------- */

.vignette {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #09131c;
  transition: opacity 0.9s var(--ease), visibility 0.9s;
}

.vignette.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#vignette-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.vignette__ui {
  position: relative;
  z-index: 2;
  width: min(320px, 84vw);
  text-align: center;
  color: #fff;
  pointer-events: none;
}

.vignette__frame {
  position: absolute;
  inset: -36px -28px;
  border: 1px solid rgba(201, 146, 0, 0.22);
  pointer-events: none;
  mask:
    linear-gradient(#000 0 0) top left / 28px 28px no-repeat,
    linear-gradient(#000 0 0) top right / 28px 28px no-repeat,
    linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat,
    linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat;
  -webkit-mask:
    linear-gradient(#000 0 0) top left / 28px 28px no-repeat,
    linear-gradient(#000 0 0) top right / 28px 28px no-repeat,
    linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat,
    linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat;
  opacity: 0;
  animation: vignetteFrameIn 0.6s 0.15s var(--ease) forwards;
}

.vignette__status {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--gold-shadow);
  margin-bottom: 1.6rem;
  min-height: 1em;
  opacity: 0;
  animation: vignetteFadeIn 0.5s 0.1s forwards;
}

.vignette__core {
  width: 120px;
  height: 120px;
  margin: 0 auto 1.15rem;
  display: grid;
  place-items: center;
  position: relative;
}

.vignette__core::before {
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: 50%;
  border: 1px solid rgba(201, 146, 0, 0.28);
  opacity: 0;
  animation: vignetteRing 4.8s linear infinite, vignetteFadeIn 0.5s 0.7s forwards;
}

.vignette__mark {
  width: 92px;
  margin: 0;
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.4));
}

.vignette__mark.is-on {
  opacity: 1;
  transform: scale(1);
}

.vignette__name {
  font-size: clamp(1.15rem, 3.5vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}

.vignette__name span {
  color: var(--gold);
  text-shadow: var(--gold-shadow);
}

.vignette__name.is-on {
  opacity: 1;
  transform: none;
}

.vignette__meter {
  width: 148px;
  height: 2px;
  margin: 1.4rem auto 0;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  border-radius: 2px;
}

.vignette__meter i {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #e8c45a);
  transition: width 0.08s linear;
}

@media (max-width: 720px) {
  .vignette__core {
    margin-bottom: 1rem;
  }

  .vignette__meter {
    margin-top: 3rem;
  }
}

@keyframes vignetteFrameIn {
  to { opacity: 1; }
}

@keyframes vignetteFadeIn {
  to { opacity: 1; }
}

@keyframes vignetteRing {
  to { transform: rotate(360deg); }
}

/* ---------- Header ---------- */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header);
  background: rgba(251, 252, 253, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 30px rgba(20, 32, 51, 0.04);
}

.header__bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo img {
  height: 42px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav__top,
.nav__label {
  display: none;
}

.nav__links {
  display: contents;
}

.nav__icon {
  display: none;
}

.nav a {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--gold);
  text-shadow: var(--gold-shadow);
}

.nav__cta {
  margin-left: 0.35rem;
  border: 1px solid var(--navy);
  border-radius: 8px;
  padding: 0.4rem 0.85rem !important;
}

.nav__cta:hover {
  background: var(--navy);
  color: #fff !important;
  text-shadow: none;
}

.nav__x,
.burger,
.dim {
  display: none;
}

.burger {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 7px;
}

.burger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--navy);
}

/* ---------- UI primitives ---------- */

.kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  text-shadow: var(--gold-shadow);
  margin-bottom: 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  border: 1px solid var(--navy);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}

.btn:hover {
  background: #0f2438;
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--navy);
}

.btn--ghost:hover {
  background: var(--navy);
  color: #fff;
}

.link {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--navy);
  border-bottom: 1px solid rgba(22, 49, 79, 0.25);
  padding-bottom: 2px;
  transition: border-color 0.2s, color 0.2s;
}

.link:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-shadow: var(--gold-shadow);
}

/* ---------- Hero claro e elegante ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header) + 3rem) 0 4.5rem;
  overflow: hidden;
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 85% 20%, rgba(201, 146, 0, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 55% at 10% 90%, rgba(22, 49, 79, 0.06), transparent 55%),
    linear-gradient(180deg, #f7f9fb 0%, #eef2f6 55%, #fbfcfd 100%);
  z-index: -1;
}

.hero__wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cpath d='M0 80H160M80 0V160' stroke='%2316314f' stroke-opacity='0.035'/%3E%3C/svg%3E");
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  opacity: 0.9;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}

.hero__copy {
  max-width: 34rem;
  animation: up 0.9s var(--ease) both;
}

.brandline {
  display: block;
  font-size: clamp(1.65rem, 3.2vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.25rem;
}

.brandline span {
  color: var(--gold);
  text-shadow: var(--gold-shadow);
}

.hero__h {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.35rem, 5vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.hero__p {
  margin: 1.35rem 0 2rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 34ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem;
}

.hero__art {
  display: grid;
  place-items: center;
  animation: up 0.9s 0.15s var(--ease) both;
  min-height: 380px;
}

.line {
  width: min(380px, 100%);
  position: relative;
  user-select: none;
}

.line__hud {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  padding: 0 0.35rem;
}

.line__tag {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.line__tag--pulse {
  color: var(--gold);
  text-shadow: var(--gold-shadow);
  animation: linePulse 2.4s ease-in-out infinite;
}

.line__stage {
  position: relative;
  height: 280px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.line__product {
  position: relative;
  z-index: 3;
  width: 210px;
  height: 210px;
  display: grid;
  place-items: center;
  animation: lineCarry 6s ease-in-out infinite;
  will-change: transform;
}

.line__icon {
  width: 78%;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 18px 36px rgba(22, 49, 79, 0.14));
  animation: lineTilt 6s ease-in-out infinite;
  transform-origin: center 70%;
}

.line__glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 146, 0, 0.16), transparent 70%);
  z-index: 1;
  opacity: 0.35;
  animation: lineGlow 6s ease-in-out infinite;
}

.line__laser {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 12%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  box-shadow: 0 0 10px rgba(201, 146, 0, 0.45);
  opacity: 0;
  z-index: 4;
  animation: lineScan 6s ease-in-out infinite;
}

/* Braços robóticos laterais */
.line__arm {
  position: absolute;
  top: 42%;
  width: 72px;
  height: 10px;
  z-index: 4;
  pointer-events: none;
}

.line__arm--left {
  left: 0;
  transform-origin: left center;
  animation: armLeft 6s ease-in-out infinite;
}

.line__arm--right {
  right: 0;
  transform-origin: right center;
  animation: armRight 6s ease-in-out infinite;
}

.line__arm i {
  position: absolute;
  top: 0;
  height: 3px;
  background: var(--navy);
  opacity: 0.55;
  border-radius: 2px;
}

.line__arm--left i:first-child {
  left: 0;
  width: 42px;
}

.line__arm--left i:nth-child(2) {
  left: 36px;
  width: 28px;
  top: -10px;
  transform: rotate(28deg);
  transform-origin: left center;
}

.line__arm--right i:first-child {
  right: 0;
  width: 42px;
}

.line__arm--right i:nth-child(2) {
  right: 36px;
  width: 28px;
  top: -10px;
  transform: rotate(-28deg);
  transform-origin: right center;
}

.line__arm b {
  position: absolute;
  top: -15px;
  width: 12px;
  height: 18px;
  border: 1.5px solid var(--gold);
  background: rgba(201, 146, 0, 0.08);
  border-radius: 2px;
}

.line__arm--left b { left: 54px; }
.line__arm--right b { right: 54px; }

/* Peças na esteira */
.line__parts {
  position: absolute;
  inset: auto 0 28px;
  height: 18px;
  overflow: hidden;
  z-index: 1;
}

.line__chip {
  position: absolute;
  top: 2px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--navy);
  background: var(--soft);
  border-radius: 2px;
  opacity: 0.55;
  animation: lineChip 14s linear infinite;
  animation-delay: calc(var(--i) * -3.5s);
}

.line__chip:nth-child(2) {
  width: 10px;
  height: 10px;
  top: 4px;
  border-color: var(--gold);
  background: rgba(201, 146, 0, 0.15);
}

.line__chip:nth-child(3) {
  border-radius: 50%;
  width: 11px;
  height: 11px;
}

.line__chip:nth-child(4) {
  width: 18px;
  height: 8px;
  top: 5px;
}

/* Esteira */
.line__conveyor {
  position: relative;
  margin-top: -6px;
  height: 36px;
}

.line__belt {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 8px;
  border-radius: 4px;
  background:
    repeating-linear-gradient(
      90deg,
      var(--navy) 0 10px,
      #1f4060 10px 20px
    );
  background-size: 40px 100%;
  opacity: 0.35;
  animation: beltMove 1.1s linear infinite;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.line__rollers {
  position: absolute;
  inset: 18px 4px auto;
  display: flex;
  justify-content: space-between;
}

.line__rollers span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(22, 49, 79, 0.35);
  background: var(--paper);
  animation: rollSpin 1.1s linear infinite;
}

.line__stations {
  position: absolute;
  inset: -2px 12% auto;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.line__stations em {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 1px;
  opacity: 0.35;
  box-shadow: 0 0 0 3px rgba(201, 146, 0, 0.12);
  animation: stationPulse 6s ease-in-out infinite;
}

.line__stations em:nth-child(1) {
  animation-delay: 0s;
}

.line__stations em:nth-child(2) {
  animation-delay: -2s;
}

.line__stations em:nth-child(3) {
  animation-delay: -4s;
}

.line__status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.line__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(201, 146, 0, 0.45);
  animation: lineDot 1.6s ease-out infinite;
}

/* Vai-e-vem: direita + tilt → esquerda + tilt */
@keyframes lineCarry {
  0%   { transform: translate3d(-28px, 0, 0); }
  50%  { transform: translate3d(28px, 0, 0); }
  100% { transform: translate3d(-28px, 0, 0); }
}

@keyframes lineTilt {
  0%   { transform: rotate(-12deg); }
  50%  { transform: rotate(12deg); }
  100% { transform: rotate(-12deg); }
}

@keyframes lineCarrySm {
  0%   { transform: translate3d(-14px, 0, 0); }
  50%  { transform: translate3d(14px, 0, 0); }
  100% { transform: translate3d(-14px, 0, 0); }
}

@keyframes lineTiltSm {
  0%   { transform: rotate(-8deg); }
  50%  { transform: rotate(8deg); }
  100% { transform: rotate(-8deg); }
}

@keyframes armLeftSm {
  0%, 100% { transform: translate3d(2px, 0, 0); opacity: 0.55; }
  50% { transform: translate3d(-4px, 0, 0); opacity: 0.3; }
}

@keyframes armRightSm {
  0%, 100% { transform: translate3d(4px, 0, 0); opacity: 0.3; }
  50% { transform: translate3d(-2px, 0, 0); opacity: 0.55; }
}

@keyframes lineGlow {
  0%, 100% { opacity: 0.25; transform: scale(0.95); }
  50% { opacity: 0.55; transform: scale(1.05); }
}

@keyframes lineScan {
  0%, 100% { opacity: 0; top: 18%; }
  45% { opacity: 0; top: 18%; }
  50% { opacity: 0.85; top: 50%; }
  55% { opacity: 0; top: 78%; }
}

@keyframes armLeft {
  0%, 100% { transform: translate3d(8px, 0, 0); opacity: 0.7; }
  50% { transform: translate3d(-6px, 0, 0); opacity: 0.35; }
}

@keyframes armRight {
  0%, 100% { transform: translate3d(6px, 0, 0); opacity: 0.35; }
  50% { transform: translate3d(-8px, 0, 0); opacity: 0.7; }
}

@keyframes lineChip {
  0% { left: -8%; opacity: 0; }
  8% { opacity: 0.55; }
  92% { opacity: 0.55; }
  100% { left: 108%; opacity: 0; }
}

@keyframes beltMove {
  to { background-position: 40px 0; }
}

@keyframes rollSpin {
  to { transform: rotate(360deg); }
}

@keyframes stationPulse {
  0%, 100% { opacity: 0.25; box-shadow: 0 0 0 3px rgba(201, 146, 0, 0.1); }
  50% { opacity: 1; box-shadow: 0 0 0 4px rgba(201, 146, 0, 0.2); }
}

@keyframes linePulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes lineDot {
  0% { box-shadow: 0 0 0 0 rgba(201, 146, 0, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(201, 146, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 146, 0, 0); }
}

@keyframes up {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

/* ---------- Sections ---------- */

.block {
  padding: 6.5rem 0;
}

.block--soft {
  background: var(--soft);
}

.block__head {
  max-width: 28rem;
  margin-bottom: 3.5rem;
}

.block h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
  color: var(--ink);
}

.lede {
  margin-top: 0.85rem;
  color: var(--muted);
}

/* Serviços */

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
}

.services article {
  padding: 2rem 1.75rem 2rem 0;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.services article:nth-child(3n) {
  border-right: 0;
  padding-right: 0;
}

.services article:nth-child(3n + 1) {
  padding-left: 0;
}

.services article:nth-child(3n + 2) {
  padding-left: 1.75rem;
}

.services article:nth-child(3n + 3) {
  padding-left: 1.75rem;
}

.services span {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-shadow: var(--gold-shadow);
  margin-bottom: 1rem;
}

.services h3 {
  font-size: 1.12rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.55rem;
  letter-spacing: -0.015em;
}

.services p {
  color: var(--muted);
  font-size: 0.97rem;
  max-width: 28ch;
}

/* Quem somos */

.about {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
}

.about p {
  margin-top: 1.15rem;
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42ch;
}

.about strong {
  color: var(--navy);
  font-weight: 600;
}

.checks {
  list-style: none;
  margin-top: 2rem;
  display: grid;
  gap: 0.75rem;
}

.checks li {
  position: relative;
  padding-left: 1.25rem;
  font-weight: 500;
  color: var(--navy);
}

.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  background: var(--gold);
}

.about__figure {
  display: grid;
  place-items: center;
  min-height: 300px;
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 146, 0, 0.1), transparent 62%);
}

.about__figure img {
  width: min(250px, 68%);
}

/* Contato — mesma linguagem clara */

.contact {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: start;
}

.contact__side {
  display: grid;
  gap: 0;
}

.contact__side > a {
  display: block;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  transition: color 0.2s;
}

.contact__side > a:hover span {
  color: var(--gold);
  text-shadow: var(--gold-shadow);
}

.contact__side small {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.3rem;
}

.contact__side > a > span {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.2s;
}

.contact__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  margin-top: 1.75rem;
  padding-top: 0.25rem;
}

.contact__action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0 !important;
  border: 0 !important;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  color: var(--navy);
  letter-spacing: -0.01em;
  transition: color 0.25s;
}

.contact__action span {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.2;
  color: inherit !important;
}

.contact__action span::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  opacity: 0.22;
  transform: scaleX(1);
  transform-origin: left;
  transition: opacity 0.25s, background 0.25s, transform 0.25s var(--ease);
}

.contact__action:hover {
  color: var(--gold);
  text-shadow: var(--gold-shadow);
}

.contact__action:hover span::after {
  opacity: 1;
  background: var(--gold);
}

.contact__icon {
  display: block;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--gold);
  overflow: visible;
  transition: color 0.25s;
}

.contact__icon--wa {
  /* compensa o “tail” do balão para o telefone parecer centralizado com o texto */
  transform: translateY(0.5px);
}

.contact__action:hover .contact__icon {
  color: var(--gold-hi);
}

.form {
  display: grid;
  gap: 1rem;
  padding: 1.75rem;
  background: var(--white);
  border: 1px solid var(--line);
}

.form label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
}

.form input,
.form textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--paper);
  outline: none;
  resize: vertical;
  transition: border-color 0.2s;
}

.form input:focus,
.form textarea:focus {
  border-color: var(--navy);
}

.form .btn {
  margin-top: 0.25rem;
}

.form__ok {
  text-align: center;
  color: var(--gold);
  text-shadow: var(--gold-shadow);
  font-size: 0.9rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  background: var(--white);
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer__logo {
  height: 34px;
  width: auto;
}

.footer p {
  font-size: 0.88rem;
  color: var(--muted);
}

/* ---------- Botão voltar ao topo ---------- */

.to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s var(--ease), background 0.25s, color 0.25s;
  box-shadow: 0 8px 24px rgba(20, 32, 51, 0.18);
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}

.to-top:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.to-top svg {
  width: 20px;
  height: 20px;
  display: block;
}

@media (max-width: 720px) {
  .to-top {
    right: 1rem;
    bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }
}

/* Reveal */

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsivo ---------- */

@media (max-width: 960px) {
  .hero__grid,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero__art {
    order: -1;
    min-height: 280px;
    width: 100%;
    display: grid;
    place-items: center;
    justify-items: center;
  }

  .line {
    width: 90%;
    max-width: 420px;
    margin-inline: auto;
  }

  .line__hud {
    justify-content: center;
  }

  .line__stage {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 0.85;
    min-height: 220px;
  }

  .line__product {
    width: 90%;
    max-width: 240px;
    height: auto;
    aspect-ratio: 1;
    animation-name: lineCarrySm;
  }

  .line__icon {
    width: 78%;
    animation-name: lineTiltSm;
  }

  .line__arm {
    width: 44px;
    top: 40%;
  }

  .line__arm--left {
    left: -2px;
    animation-name: armLeftSm;
  }

  .line__arm--right {
    right: -2px;
    animation-name: armRightSm;
  }

  .line__arm--left i:first-child,
  .line__arm--right i:first-child {
    width: 28px;
  }

  .line__arm--left i:nth-child(2),
  .line__arm--right i:nth-child(2) {
    width: 18px;
  }

  .line__arm--left i:nth-child(2) {
    left: 24px;
  }

  .line__arm--right i:nth-child(2) {
    right: 24px;
  }

  .line__arm--left b {
    left: 34px;
  }

  .line__arm--right b {
    right: 34px;
  }

  .line__arm b {
    width: 10px;
    height: 14px;
    top: -12px;
  }

  .hero {
    text-align: left;
    padding-top: calc(var(--header) + 2rem);
  }

  .hero__copy {
    width: 100%;
    max-width: 34rem;
    margin-inline: 0;
    align-items: flex-start;
  }

  .hero__p {
    margin-inline: 0;
  }

  .hero__actions {
    justify-content: flex-start;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .services article,
  .services article:nth-child(3n),
  .services article:nth-child(3n + 1),
  .services article:nth-child(3n + 2),
  .services article:nth-child(3n + 3) {
    padding: 1.75rem 1.25rem 1.75rem 0;
    border-right: 0;
  }

  .services article:nth-child(odd) {
    padding-right: 1.25rem;
    border-right: 1px solid var(--line);
  }

  .services article:nth-child(even) {
    padding-left: 1.25rem;
  }
}

@media (max-width: 720px) {
  :root {
    --header: 64px;
  }

  .line {
    width: 90%;
    margin-inline: auto;
  }

  .line__stage {
    min-height: 200px;
  }

  .line__product {
    width: 90%;
    max-width: 200px;
  }

  .line__arm {
    opacity: 0.85;
  }

  .hero__art {
    width: 100%;
    place-items: center;
  }

  .shell {
    width: min(1120px, calc(100% - 2rem));
  }

  .logo img {
    height: 34px;
  }

  .burger {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(320px, calc(100vw - 2.5rem));
    height: 100dvh;
    max-height: 100dvh;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1.25rem 1.35rem calc(1.75rem + env(safe-area-inset-bottom, 0px));
    padding-right: calc(1.35rem + env(safe-area-inset-right, 0px));
    background:
      linear-gradient(180deg, #ffffff 0%, #f7f9fb 100%);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.45s var(--ease);
    z-index: 110;
    box-shadow: -24px 0 60px rgba(20, 32, 51, 0.12);
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
  }

  .nav.is-open {
    transform: translateX(0);
  }

  .nav__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav__label {
    display: block;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    text-shadow: var(--gold-shadow);
  }

  .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
  }

  .nav__links a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    box-sizing: border-box;
    padding: 0.95rem 0.35rem;
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.01em;
    border-bottom: 1px solid var(--line);
    color: var(--navy);
    transition: color 0.2s, padding-left 0.25s var(--ease);
  }

  .nav__icon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--gold);
  }

  .nav__links a:hover .nav__icon,
  .nav__links a:active .nav__icon {
    color: var(--gold-hi);
  }

  .nav__links a:hover,
  .nav__links a:active {
    color: var(--gold);
    padding-left: 0.55rem;
  }

  .nav__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    margin: 1.75rem 0 0 !important;
    margin-left: 0 !important;
    padding: 0.75rem 1rem !important;
    text-align: center;
    border: 1.5px solid var(--navy);
    border-radius: 8px;
    background: var(--navy);
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-shadow: none !important;
    transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  }

  .nav__cta:hover,
  .nav__cta:active {
    background: #0f2438;
    border-color: #0f2438;
    color: #fff !important;
    transform: translateY(-1px);
  }

  .nav__x {
    display: flex;
    position: static;
    width: 40px;
    height: 40px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
  }

  .nav__x:hover {
    border-color: var(--navy);
  }

  .nav__x span {
    position: absolute;
    width: 14px;
    height: 1.5px;
    background: var(--navy);
  }

  .nav__x span:first-child { transform: rotate(45deg); }
  .nav__x span:last-child { transform: rotate(-45deg); }

  .dim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(20, 32, 51, 0.35);
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s, visibility 0.35s;
    z-index: 105;
  }

  .dim.is-open {
    opacity: 1;
    visibility: visible;
  }

  .services {
    grid-template-columns: 1fr;
  }

  .services article,
  .services article:nth-child(odd),
  .services article:nth-child(even) {
    padding: 1.5rem 0;
    border-right: 0;
  }

  .block {
    padding: 4.5rem 0;
  }

  .form {
    padding: 1.25rem;
  }

  .footer__row {
    flex-direction: column;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
  }

  .line__product {
    opacity: 1 !important;
    transform: none !important;
  }

  .line__icon {
    filter: drop-shadow(0 18px 36px rgba(22, 49, 79, 0.14)) !important;
    transform: none !important;
  }
}
