*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-snap-type: y proximity;
}

html, body {
  width: 100%;
  background: #000;
  color: #fff;
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  overscroll-behavior-y: none;
}

body {
  overflow-x: hidden;
}

/* ─── SEÇÃO 1 — HERO (VÍDEO) ─── */
#hero {
  position: relative;
  width: 100%;
  height: 100vh;
  height: max(var(--vh, 100svh), 620px);
  overflow: hidden;
  background: #000;
  scroll-snap-align: start;
}

#hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.8s ease;
}

#play-button {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 96px;
  height: 96px;
  margin: auto;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

#play-button img {
  width: 100%;
  height: 100%;
  display: block;
}

#play-button.visible {
  opacity: 1;
  pointer-events: auto;
}

#logo-wrapper {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 1.5s ease;
  pointer-events: none;
}

#logo-wrapper.visible {
  opacity: 1;
}

#hero-logo {
  /* logo centralizado verticalmente, com 70px de folga no topo e embaixo */
  height: calc(var(--vh, 100svh) - 140px);
  width: auto;
  max-width: calc(100vw - 33.85417vw);
  aspect-ratio: 203 / 150;
  display: block;
}

/*
 * O clique só deve funcionar quando a logo está de fato visível.
 * pointer-events:auto direto em #hero-logo (independente do wrapper)
 * fazia o clique "vazar" mesmo com opacidade 0, reiniciando o vídeo
 * prematuramente — por isso fica restrito a este seletor.
 */
#logo-wrapper.visible #hero-logo {
  pointer-events: auto;
  cursor: pointer;
}

/* ─── HERO EM DISPOSITIVOS TOUCH (MOBILE) ─── */
@media (hover: none) and (pointer: coarse) {
  #hero.is-playing {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Durante a reprodução: vídeo por inteiro (sem corte), largura 100%,
     mantido mesmo após rotacionar o aparelho. */
  #hero.is-playing #hero-video {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  #hero-video.video-dimmed {
    opacity: 0.5;
  }
}

/* ─── SEÇÃO 2 — CONTATO ─── */
#contato {
  --logo-w: clamp(63.35px, 7vw, 134.4px);
  --logo-h: calc(var(--logo-w) * 150 / 203);
  --logo-mb: clamp(39.6px, 4.63889vh, 82.5px);

  position: relative;
  height: 100vh;
  height: max(var(--vh, 100svh), 620px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 6vw 4vh;
  scroll-snap-align: start;
}

#contato-top-bar {
  position: relative;
  z-index: 2;
  width: calc(100% + 12vw);
  height: 6.5vh;
  background: #fff;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin: 0 -6vw;
}

#contato-carousel {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#contato-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}

#contato-carousel .slide.active {
  opacity: 1;
}

#contato-carousel .slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#contato-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.55);
  pointer-events: none;
}

#contato-heading {
  color: #000;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(1.5rem, 4.44444vh, 2.75rem); /* 48px em relação a 1080px */
  letter-spacing: 0;
  text-transform: uppercase;
  font-weight: 900;
  text-align: center;
}

.contato-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  /* 24.53704vh (265px em relação a 1080px) descontando a altura real da logo + sua margem */
  margin-top: calc(24.53704vh - var(--logo-h) - var(--logo-mb));
}

.contato-logo {
  display: flex;
  justify-content: center;
  margin-bottom: var(--logo-mb);
}

.contato-logo img {
  width: var(--logo-w);
  height: auto;
  aspect-ratio: 203 / 150;
  display: block;
}

#contact-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.form-row {
  display: flex;
  gap: 65px;
}

.form-row .field {
  flex: 1;
}

#contact-form input,
#contact-form textarea {
  width: 100%;
  background: rgba(102, 102, 102, 0);
  border: solid #fff;
  border-radius: 0;
  color: #fff;
  padding: 0 1rem;
  font-size: 0.95rem;
  font-family: inherit;
  text-transform: uppercase;
  outline: none;
}

#contact-form input {
  height: 50px;
}

#contact-form input::placeholder,
#contact-form textarea::placeholder {
  color: #fff;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(0.9rem, 1.4vw, 1.1rem);
  letter-spacing: 0;
}

#contact-form textarea {
  height: 150px;
  padding-top: 0.9rem;
  resize: none;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-footer-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 1rem;
}

#form-status {
  font-size: 0.8rem;
  color: #ccc;
  text-align: right;
}

#submit-button {
  width: 60px;
  height: 60px;
  min-width: 60px;
  border-radius: 50%;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-right: 4px;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

#submit-button:hover {
  transform: scale(1.05);
}

#submit-button:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

#submit-button .icon-check {
  width: 100%;
  height: 100%;
  display: block;
  filter: brightness(0) invert(1);
}

#submit-button .spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

#site-footer {
  /* display: none; */
  position: relative;
  z-index: 2;
  text-align: center;
  color: #888888;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 500;
  font-size: clamp(0.7rem, 1vw, 0.9rem);
  letter-spacing: 0;
  text-transform: uppercase;
  margin-top: auto;
  padding-top: 2rem;
  padding-bottom: 14.44444vh; /* 156px em relação a 1080px */
}

@media (max-width: 640px) {
  #contato {
    --logo-w: clamp(48px, 16vw, 90px);
    --logo-mb: clamp(16px, 3vh, 32px);
  }

  .form-row {
    flex-direction: column;
    gap: 36px;
  }

  #contact-form input,
  #contact-form textarea {
    border-width: 1px;
  }

  .contato-content {
    margin-top: 0;
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .contato-content #contact-form {
    width: 100%;
    padding: 0 4vw;
  }

  #submit-button {
    margin-right: 4px;
    width: 30px;
    height: 30px;
    min-width: 30px;
  }

  #contato-top-bar {
    justify-content: center;
  }

  #contato-heading {
    width: 100%;
    margin-left: 0;
    font-size: clamp(0.79rem, 3.77vw, 1.1rem);
    text-align: center;
  }
}
