/* ===== Neo Química Impulso — LP (réplica fiel do site Wix) ===== */

:root {
  --blue: #0031a7;
  --navy: #0b1c4d;
  --yellow: #ffd100;
  --amber: #f2a900;
  --white: #ffffff;
  --font-title: 'Poppins', Arial, Helvetica, sans-serif;
  --font-body: 'Questrial', Arial, Helvetica, sans-serif;
  --font-display: 'Anton', Arial, Helvetica, sans-serif;
  --font-section: 'Spinnaker', Arial, Helvetica, sans-serif;
  --container: 1265px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  background: var(--blue) url('assets/img/logo-neoquimica-header.png') right bottom / cover no-repeat;
  padding: 40px 0 60px;
  min-height: 640px;
  overflow: hidden;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 10, 60, 0.55) 0%, rgba(0, 10, 60, 0.25) 35%, rgba(0, 10, 60, 0.1) 60%, rgba(0, 10, 60, 0.35) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-badge {
  position: absolute;
  top: clamp(10px, 2.2vw, 43px);
  right: clamp(10px, 2vw, 40px);
  width: clamp(90px, 10.3vw, 197px);
  z-index: 2;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.9vw, 50px);
  line-height: 1.15;
  max-width: min(76%, 768px);
  margin: 0 0 24px;
  color: var(--white);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero h1 span { color: var(--yellow); }

.hero p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.95vw, 25px);
  line-height: 1.4;
  max-width: min(94%, 980px);
  color: var(--white);
  margin: 0 0 18px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}

.hero p strong {
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--yellow);
}

.hero-video {
  width: min(55%, 696px);
  margin: 32px auto 0;
  background: #000;
}

.hero-video video {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 9;
}

/* ===== COMO FUNCIONA + CTA ===== */
.how-it-works {
  background: var(--blue);
  padding: 60px 0 70px;
}

.section-title {
  font-family: var(--font-section);
  font-weight: 700;
  font-size: clamp(28px, 3.8vw, 48px);
  text-align: center;
  margin: 0 0 60px;
}

/* Layout de precisão: posições em % extraídas do site oficial (referência 975x1514px) */
.steps {
  position: relative;
  max-width: 975px;
  margin: 0 auto;
  aspect-ratio: 975 / 1514;
}

.step {
  display: contents;
}

.step-mark,
.step-body,
.step-check,
.step-arrow,
.step-plus {
  position: absolute;
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
  transition-delay: var(--step-delay, 0s);
}

.steps.in-view .step-mark,
.steps.in-view .step-body,
.steps.in-view .step-check,
.steps.in-view .step-arrow,
.steps.in-view .step-plus {
  opacity: 1;
}

.step-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  transform: scale(0.7);
}

.steps.in-view .step-mark { transform: scale(1); }

.step-num-left .step-mark { justify-content: flex-start; }
.step-num-right .step-mark { justify-content: flex-end; }
.step-num-left .step-body { text-align: left; }
.step-num-right .step-body { text-align: left; }

.step-icon {
  width: clamp(40px, 5.5vw, 90px);
  height: clamp(40px, 5.5vw, 90px);
  color: var(--amber);
  flex-shrink: 0;
}

.step-icon-ribbon { color: var(--yellow); }
.step-icon-outline { color: var(--amber); }

.step-number {
  font-family: var(--font-section);
  font-weight: 700;
  font-size: clamp(56px, 8vw, 140px);
  line-height: 1;
  color: var(--white);
  flex-shrink: 0;
}

.step-check {
  width: 3.69%;
  height: 2.44%;
  color: var(--yellow);
}

.step-plus {
  width: 2.77%;
  height: 1.78%;
  color: var(--yellow);
}

.step-arrow {
  width: 21.64%;
  height: 10.7%;
  color: var(--yellow);
}

.step-arrow-2 { transform: scaleX(-1); }

/* Passo 1 */
.step-1 .step-mark { left: 57.33%; top: 3.9%; width: 32.1%; height: 10.9%; }
.step-1 .step-body { left: 11.9%; top: 5.22%; width: 48.1%; height: 11.3%; }
.step-1 .step-check { left: 83.79%; top: 7.2%; }
.step-1 .step-arrow { left: 52.31%; top: 15.72%; }
.step-1 .step-plus { left: 97.23%; top: 23.05%; }

/* Passo 2 */
.step-2 .step-mark { left: 9.44%; top: 30.05%; width: 33.03%; height: 10.9%; }
.step-2 .step-body { left: 58.97%; top: 30.12%; width: 30.87%; height: 16.18%; }
.step-2 .step-arrow { left: 30.05%; top: 47.69%; }
.step-2 .step-plus { left: 0%; top: 58.19%; }

/* Passo 3 */
.step-3 .step-mark { left: 58.26%; top: 59.97%; width: 36.2%; height: 10.9%; }
.step-3 .step-body { left: 11.9%; top: 58.65%; width: 34.46%; height: 11.95%; }
.step-3 .step-arrow { left: 54.87%; top: 75.43%; }
.step-3 .step-plus { left: 93.03%; top: 81.37%; }

/* Passo 4 */
.step-4 .step-mark { left: 11.9%; top: 89.1%; width: 34.87%; height: 10.9%; }
.step-4 .step-body { left: 62.05%; top: 89.1%; width: 37.13%; height: 9.91%; }

.step-body h3 {
  display: inline-block;
  font-family: var(--font-section);
  font-weight: 700;
  font-size: clamp(24px, 2.8vw, 34px);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--yellow);
  color: var(--white);
}

.step-body p {
  font-family: var(--font-body);
  font-size: clamp(14px, 1.5vw, 17px);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.step-body a {
  color: var(--yellow);
  text-decoration: underline;
}

/* ===== CTA ===== */
.cta-inner {
  max-width: 800px;
  margin: 90px auto 0;
  text-align: center;
}

.cta-heading {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.2;
  margin: 0 0 20px;
}

.cta-heading strong {
  font-weight: 700;
  color: var(--yellow);
}

.cta-text {
  font-family: var(--font-body);
  font-size: clamp(16px, 1.7vw, 25px);
  margin: 0 0 30px;
}

.btn-primary {
  display: inline-block;
  padding: 18px 44px;
  background: var(--yellow);
  color: var(--blue);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 20px);
  letter-spacing: 0.3px;
  border-radius: 50px;
  transition: transform 0.2s ease;
  animation: btn-glow-pulse 2.2s ease-in-out infinite;
}

.btn-primary:hover {
  transform: translateY(-2px);
  animation-play-state: paused;
  box-shadow: 0 1px 30px 6px var(--amber);
}

@keyframes btn-glow-pulse {
  0%, 100% { box-shadow: 0 1px 12px 0 var(--amber); }
  50% { box-shadow: 0 1px 26px 8px var(--amber); }
}

/* ===== SECTION DIVIDER (corte entre azul e navy) ===== */
.section-divider {
  position: relative;
  line-height: 0;
  background: var(--navy);
}

.section-divider::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 75.2%;
  background: var(--blue);
}

.section-divider svg {
  position: relative;
  z-index: 1;
  display: block;
  width: min(56%, 1080px);
  margin: 0 auto;
  height: auto;
}

.section-divider path {
  fill: var(--blue);
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--navy);
  padding: 48px 0 30px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-logo img { width: 168px; }

.footer-support {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--white);
  margin: 0;
}

.footer-support a { text-decoration: underline; }

.footer-copy {
  width: 100%;
  font-family: var(--font-body);
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
  margin: 16px 0 0;
}

.footer-copy a { text-decoration: underline; color: var(--white); }

.footer-credit {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  transition: color 0.2s ease;
}

.footer-credit:hover {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero h1 { max-width: 100%; }
  .hero p { max-width: 100%; }
  .hero-video { width: 90%; }

  .steps {
    position: static;
    max-width: 100%;
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding-bottom: 30px;
  }

  .step-mark,
  .step-body,
  .step-arrow {
    position: static;
    inset: auto;
    width: auto;
    height: auto;
  }

  .step-num-left .step-mark,
  .step-num-right .step-mark { order: 1; justify-content: center; flex-wrap: wrap; }
  .step-num-left .step-body,
  .step-num-right .step-body { order: 2; text-align: center; }

  .step-body h3 { border-bottom-width: 2px; }

  .step-arrow {
    display: block;
    order: 3;
    flex-basis: 100%;
    width: 60px;
    height: 45px;
    margin: 4px auto 0;
    transform: rotate(55deg);
  }

  .step-arrow-2 { transform: rotate(55deg) scaleX(-1); }

  .step-check,
  .step-plus { display: none; }

  .footer-inner { justify-content: center; text-align: center; }
  .footer-copy { text-align: center; }
}

@media (max-width: 560px) {
  .hero { padding: 90px 0 40px; }
  .hero h1 { text-align: left; }

  .hero-scrim {
    background: linear-gradient(180deg, rgba(0, 8, 50, 0.72) 0%, rgba(0, 8, 50, 0.5) 40%, rgba(0, 8, 50, 0.35) 65%, rgba(0, 8, 50, 0.6) 100%);
  }

  .hero h1, .hero p { text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6); }

  .cta-inner { margin-top: 60px; }
  .btn-primary { width: 100%; text-align: center; padding: 16px 20px; }

  .footer-logo img { width: 130px; }

  .section-divider svg { width: 92%; }
}

@media (prefers-reduced-motion: reduce) {
  .step, .step-mark {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn-primary {
    animation: none;
    box-shadow: 0 1px 20px 2px var(--amber);
  }
}
