:root {
  --red: #CE0023;
  --white: #FFFFFF;
  --black: #0A0003;
  --input-bg: #EBEBEB;
  --font: 'Funnel Display', sans-serif;
  --gutter: 24px;
  --max-width: 1200px;
}

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

body {
  font-family: var(--font);
  background: var(--black);
  color: var(--white);
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---------- Nav ---------- */

.nav {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  padding-top: 36px;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo img {
  width: 163px;
  height: auto;
}

.nav__whatsapp {
  display: grid;
  place-items: center;
  width: 56px;
  height: 42px;
  border-radius: 21px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav__whatsapp:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.nav__whatsapp img {
  width: 22px;
  height: 22px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 130px 0 64px;
  background: url('../assets/img/bg-hero.png') center top / cover no-repeat;
  overflow: hidden;
}

/* Escurece a base da imagem para fundir com a próxima seção */
.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--black));
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
}

.hero__title {
  display: flex;
  flex-direction: column;
  gap: 1.042em;
  /* 48px no layout de 375px; reduz proporcionalmente em telas menores */
  font-size: min(48px, 12.4vw);
  font-weight: 800;
  line-height: 1.042;
  text-transform: uppercase;
}

.hero__block > span {
  display: block;
  white-space: nowrap;
}

.text-outline {
  color: var(--red);
  -webkit-text-stroke: 3px var(--white);
  paint-order: stroke fill;
}

.hero__subtitle {
  margin-top: 56px;
  font-size: 16px;
  font-weight: 400;
  line-height: 20px;
  text-align: center;
}

/* Setinha que leva ao formulário */
.hero__scroll {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: 28px auto 0;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.85);
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  animation: fade-in 0.8s ease-out 1.2s both, bob 2s ease-in-out 2s infinite;
}

.hero__scroll:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(6px); }
}

/* ---------- Desktop ---------- */

@media (min-width: 900px) {
  :root {
    --gutter: 48px;
  }

  .nav {
    padding-top: 40px;
  }

  .nav__logo img {
    width: 200px;
  }

  /* A imagem é vertical: no desktop ela ocupa o lado direito
     e se funde ao fundo escuro pela borda esquerda */
  .hero {
    background: var(--black);
  }

  .hero::before {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: min(60%, 860px);
    background: url('../assets/img/bg-hero.png') left top / cover no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
    mask-image: linear-gradient(to right, transparent, #000 45%);
  }

  .hero__title {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5em 1em;
    font-size: clamp(48px, 5vw, 72px);
    line-height: 1.04;
  }

  .text-outline {
    -webkit-text-stroke-width: 4px;
  }

  .hero__scroll {
    margin-left: 0;
  }

  .hero__subtitle {
    max-width: 420px;
    font-size: 18px;
    line-height: 24px;
    text-align: left;
  }
}

/* ---------- Formulário ---------- */

.lead {
  background: var(--white);
  padding: 32px 0 64px;
}

.lead-form {
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 16px;
  background: var(--white);
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.field + .field {
  margin-top: 24px;
}

.field label {
  display: block;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 18px;
  color: #000000;
}

.required {
  color: var(--red);
}

.field input,
.field select {
  width: 100%;
  height: 52px;
  padding: 0 48px 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background-color: var(--input-bg);
  font-family: var(--font);
  font-size: 14px;
  color: #000000;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input {
  padding-right: 14px;
}

.field input::placeholder {
  color: var(--red);
  opacity: 1;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23CE0023' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}

/* Placeholder do select (opção vazia selecionada) */
.field select.is-empty {
  color: var(--red);
  text-decoration: underline;
}

.field select option {
  color: #000000;
}

.field input:focus,
.field select:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(206, 0, 35, 0.12);
}

.field.has-error input,
.field.has-error select {
  border-color: var(--red);
}

.field__error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--red);
}

.btn-submit {
  display: block;
  width: 100%;
  max-width: 207px;
  height: 56px;
  margin: 40px auto 0;
  border: none;
  border-radius: 8px;
  background: var(--red);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 600;
  color: var(--white);
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.btn-submit:hover {
  background: #A8001C;
}

.btn-submit:active {
  transform: scale(0.98);
}

.btn-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.form-status {
  margin-top: 16px;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.form-status--success {
  color: #1A9E4B;
}

.form-status--error {
  color: var(--red);
}

@media (min-width: 900px) {
  .lead {
    padding: 80px 0 120px;
  }

  .lead-form {
    padding: 48px 40px;
  }
}

/* ---------- Contato direto ---------- */

.contact {
  position: relative;
  padding: 56px 0;
  overflow: hidden;
  text-align: center;
  isolation: isolate;
}

/* Foto desfocada; o inset negativo evita a borda clara que o blur cria */
.contact::before {
  content: '';
  position: absolute;
  inset: -20px;
  z-index: -2;
  background: url('../assets/img/carro01.png') center / cover no-repeat;
  filter: blur(6px);
}

.contact::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #00000099;
}

.contact__title {
  font-size: 24px;
  font-weight: 600;
  line-height: 30px;
}

.contact__text {
  max-width: 330px;
  margin: 16px auto 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
}

.contact__actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 210px;
  margin: 32px auto 0;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn--outline {
  border: 1px solid #25D366;
}

.btn--outline:hover {
  background: rgba(37, 211, 102, 0.15);
}

.btn--primary {
  background: var(--red);
}

.btn--primary:hover {
  background: #A8001C;
}

@media (min-width: 900px) {
  .contact {
    padding: 120px 0;
  }

  .contact__title {
    font-size: 40px;
    line-height: 48px;
  }

  .contact__text {
    max-width: 560px;
    font-size: 18px;
    line-height: 26px;
  }

  .contact__actions {
    flex-direction: row;
    justify-content: center;
    max-width: none;
  }

  .btn {
    width: 240px;
    height: 48px;
    font-size: 16px;
  }
}

/* ---------- Estoque ---------- */

.stock {
  background: var(--white);
  color: #000000;
  padding: 32px 0 48px;
}

.stock__inner {
  padding: 0 12px;
}

.stock__image {
  width: 100%;
  height: auto;
  aspect-ratio: 702 / 558;
  object-fit: cover;
  border-radius: 10px;
}

.stock__title {
  margin-top: 24px;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
}

.stock__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.stock__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  line-height: 20px;
}

.stock__list img {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.stock__cta {
  gap: 12px;
  width: 180px;
  height: 48px;
  margin: 36px auto 0;
  font-size: 16px;
  font-weight: 500;
}

.stock__cta svg {
  transition: transform 0.2s ease;
}

.stock__cta:hover svg {
  transform: translateX(3px);
}

@media (min-width: 900px) {
  .stock {
    padding: 120px 0;
  }

  .stock__inner {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: center;
    gap: 64px;
    padding: 0 var(--gutter);
  }

  .stock__image {
    border-radius: 16px;
  }

  .stock__title {
    margin-top: 0;
    font-size: 40px;
    line-height: 48px;
  }

  .stock__list {
    gap: 16px;
    margin-top: 28px;
  }

  .stock__list li {
    font-size: 18px;
    line-height: 24px;
  }

  .stock__list img {
    width: 22px;
    height: 22px;
  }

  .stock__cta {
    width: 220px;
    margin: 40px 0 0;
  }
}

/* ---------- Footer ---------- */

.footer {
  background: #000000;
  padding: 40px 0 48px;
}

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

.footer__info {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 28px;
}

.footer__info li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-left: 5px;
  font-size: 15px;
  line-height: 18px;
  color: #E5E5E5;
}

.footer__info img {
  flex-shrink: 0;
}

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

.footer__channels {
  margin-top: 48px;
}

.footer__heading {
  font-size: 14px;
  font-weight: 400;
  line-height: 16px;
  text-transform: uppercase;
  color: #E5E5E5;
}

.footer__channels ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.footer__channels a {
  font-size: 14px;
  font-weight: 500;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__info a:hover,
.footer__channels a:hover {
  color: var(--red);
}

@media (min-width: 900px) {
  .footer {
    padding: 80px 0;
  }

  .footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
  }

  .footer__logo {
    width: 260px;
  }

  .footer__info li {
    font-size: 16px;
  }

  .footer__channels {
    margin-top: 0;
  }

  .footer__channels ul {
    gap: 16px;
  }
}

/* ---------- Animações ---------- */

html {
  scroll-behavior: smooth;
}

@keyframes fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: none; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(40px) skewY(3deg); }
  to   { opacity: 1; transform: none; }
}

@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.45); }
  70%  { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* Entrada do hero */
.nav {
  animation: fade-down 0.7s ease-out both;
}

.hero__block > span {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero__block:first-child > span:nth-child(1) { animation-delay: 0.15s; }
.hero__block:first-child > span:nth-child(2) { animation-delay: 0.25s; }
.hero__block:first-child > span:nth-child(3) { animation-delay: 0.35s; }
.hero__block:last-child > span:nth-child(1)  { animation-delay: 0.5s; }
.hero__block:last-child > span:nth-child(2)  { animation-delay: 0.6s; }
.hero__block:last-child > span:nth-child(3)  { animation-delay: 0.7s; }

.hero__subtitle {
  animation: fade-in 0.8s ease-out 1s both;
}

.hero::before {
  animation: fade-in 1.2s ease-out both;
}

.nav__whatsapp {
  animation: pulse-ring 2.4s ease-out 1.5s infinite;
}

/* Elementos que aparecem ao rolar a página (ativado via JS).
   Usa animation (não transition) para não interferir no hover. */
@keyframes reveal-up {
  from { opacity: 0; transform: translateY(32px); }
}

@keyframes reveal-zoom {
  from { opacity: 0; transform: scale(0.94); }
}

:where(.js) [data-reveal]:not(.is-visible) {
  opacity: 0;
}

[data-reveal].is-visible {
  animation: reveal-up 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms) backwards;
}

[data-reveal="zoom"].is-visible {
  animation-name: reveal-zoom;
}

/* Zoom suave na foto do estoque */
.stock__image {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.stock__image:hover {
  transform: scale(1.02);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
}

.btn,
.btn-submit {
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(206, 0, 35, 0.3);
}

.btn-submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

.btn--outline:hover {
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.25);
}

/* ---------- Voltar ao topo ---------- */

.back-to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s, background 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top:hover {
  background: #A8001C;
}

.back-to-top:hover svg {
  animation: nudge-up 0.6s ease-in-out infinite alternate;
}

@keyframes nudge-up {
  to { transform: translateY(-3px); }
}

@media (min-width: 900px) {
  .back-to-top {
    right: 32px;
    bottom: 32px;
    width: 56px;
    height: 56px;
  }
}

/* Respeita quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  :where(.js) [data-reveal]:not(.is-visible) {
    opacity: 1;
  }
}
