/* ==========================================================
   Workshop de Luto — Landing Page
   ========================================================== */

@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-UltraLight.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-UltraLight.woff') format('woff');
  font-weight: 200;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-Light.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-Light.woff') format('woff');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-Regular.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-Regular.woff') format('woff');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-Medium.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-Medium.woff') format('woff');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-SemiBold.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-SemiBold.woff') format('woff');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-Bold.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-Bold.woff') format('woff');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'NewBlack';
  src: url('../fonts/NewBlackTypeface-ExtraBold.woff2') format('woff2'),
       url('../fonts/NewBlackTypeface-ExtraBold.woff') format('woff');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --marrom: #9f5e3b;
  --marrom-escuro: #4e382d;
  --bege: #e2c4b3;
  --branco: #ffffff;
  --erro: #b3261e;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'NewBlack', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--marrom-escuro);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================
   Tela 1 — Hero
   ========================================================== */

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #14100d;
}

.hero-bg {
  position: absolute;
  inset: -6%;
  background-image: url('../img/hero-bg.webp');
  background-size: cover;
  background-position: center 25%;
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 16, 13, 0.1) 0%, rgba(20, 16, 13, 0.3) 55%, rgba(20, 16, 13, 0.55) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  padding: 0 24px;
}

.hero-logo {
  opacity: 0;
  transform: scale(0.85);
  animation: logoEnter 1.2s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 0.2s;
}

.hero-logo img {
  display: block;
  width: 100%;
  max-width: 380px;
  height: auto;
  filter: drop-shadow(0 6px 26px rgba(0, 0, 0, 0.4));
}

@keyframes logoEnter {
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 6vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 8px;
  color: var(--branco);
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  animation: fadeIn 1s ease forwards;
  animation-delay: 1.3s;
}

.scroll-cue-text {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}

.scroll-cue-icon {
  width: 22px;
  height: 22px;
  animation: cueBounce 1.8s ease-in-out infinite;
}

@keyframes cueBounce {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  50% { transform: translateY(8px); opacity: 1; }
}

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

/* ==========================================================
   Tela 2 — Conteúdo / Formulário
   ========================================================== */

.content {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  padding: 64px 20px;
  background: linear-gradient(120deg, #ffffff, #e2c4b3, #ffffff);
  background-size: 250% 250%;
  animation: gradientShift 18s ease-in-out infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.container {
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Logomarca (revelada ao rolar para dentro da tela 2) */
.content .logo-wrap {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  margin-bottom: 32px;
}

.content.in-view .logo-wrap {
  opacity: 1;
  transform: scale(1);
}

.content .logo-wrap img {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

/* Descrição */
.intro {
  text-align: center;
  margin-bottom: 44px;
}

.intro p {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  line-height: 1.75;
  margin: 0 0 18px;
  color: var(--marrom-escuro);
}

.intro p:first-of-type {
  font-size: 1.15rem;
  font-weight: 500;
}

.intro p:not(:first-of-type) {
  font-size: 0.92rem;
  color: rgba(78, 56, 45, 0.7);
}

.content.in-view .intro p {
  opacity: 1;
  transform: translateY(0);
}

.content.in-view .intro p:nth-of-type(1) { transition-delay: 0.15s; }
.content.in-view .intro p:nth-of-type(2) { transition-delay: 0.28s; }
.content.in-view .intro p:nth-of-type(3) { transition-delay: 0.41s; }

/* Card do formulário */
.form-card {
  width: 100%;
  background: #fffdfb;
  border: 1px solid rgba(78, 56, 45, 0.12);
  border-top: 3px solid var(--marrom);
  border-radius: 6px;
  padding: 44px 40px;
  box-shadow: 0 24px 48px rgba(78, 56, 45, 0.08);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.8s ease, transform 0.8s ease;
  transition-delay: 0.55s;
}

.content.in-view .form-card {
  opacity: 1;
  transform: translateY(0);
}

.form-card-heading {
  margin-bottom: 30px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(78, 56, 45, 0.12);
}

.form-card-heading span {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--marrom);
}

.field {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
  color: rgba(78, 56, 45, 0.7);
}

.field input[type="text"],
.field input[type="number"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  font-family: inherit;
  font-size: 1rem;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid rgba(78, 56, 45, 0.25);
  border-radius: 0;
  background: transparent;
  color: var(--marrom-escuro);
  outline: none;
  transition: border-color 0.2s ease;
}

.field textarea {
  border: 1px solid rgba(78, 56, 45, 0.2);
  border-radius: 4px;
  padding: 12px 14px;
  resize: vertical;
  min-height: 90px;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239f5e3b' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 2px center;
  background-size: 14px;
  padding-right: 22px;
}

.field select:invalid {
  color: rgba(78, 56, 45, 0.55);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--marrom);
}

.checkbox-field {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 28px;
}

.checkbox-field input[type="checkbox"] {
  margin-top: 2px;
  width: 17px;
  height: 17px;
  accent-color: var(--marrom);
  flex-shrink: 0;
}

.checkbox-field label {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  margin-bottom: 0;
  line-height: 1.5;
  color: rgba(78, 56, 45, 0.85);
}

/* Honeypot — invisível para humanos */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.recaptcha-wrap {
  margin: 8px 0 20px;
  display: flex;
  justify-content: center;
}

.submit-btn {
  width: 100%;
  padding: 16px 20px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--branco);
  background: var(--marrom);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  background: #8a5033;
  box-shadow: 0 8px 20px rgba(159, 94, 59, 0.28);
}

.submit-btn:active {
  transform: translateY(1px);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-message {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  text-align: center;
  opacity: 0;
  display: none;
}

.form-message.show {
  display: block;
  animation: fadeIn 0.5s ease forwards;
}

.form-message.success {
  background: rgba(159, 94, 59, 0.12);
  color: var(--marrom-escuro);
  border: 1px solid rgba(159, 94, 59, 0.3);
}

.form-message.error {
  background: rgba(179, 38, 30, 0.08);
  color: var(--erro);
  border: 1px solid rgba(179, 38, 30, 0.25);
}

/* Painel de sucesso — substitui os campos dentro da mesma caixinha */
.success-panel {
  text-align: center;
  padding: 12px 0;
  display: none;
  opacity: 0;
}

.success-panel.show {
  display: block;
  animation: fadeIn 0.6s ease forwards;
}

.success-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
}

.success-icon-circle {
  stroke: var(--marrom);
  stroke-width: 2;
  stroke-dasharray: 145;
  stroke-dashoffset: 145;
  animation: circleDraw 0.6s ease forwards 0.15s;
}

.success-icon-check {
  stroke: var(--marrom);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 34;
  stroke-dashoffset: 34;
  animation: checkDraw 0.4s ease forwards 0.7s;
}

@keyframes circleDraw {
  to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
  to { stroke-dashoffset: 0; }
}

.success-panel h2 {
  color: var(--marrom-escuro);
  margin-bottom: 10px;
}

.success-panel p {
  color: var(--marrom-escuro);
  opacity: 0.85;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================
   Rodapé
   ========================================================== */

.site-footer {
  background: var(--marrom-escuro);
  padding: 22px 20px;
  display: flex;
  justify-content: center;
}

.footer-credit {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--bege);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
}

.footer-credit:hover,
.footer-credit:focus-visible {
  color: var(--branco);
}

.footer-credit-icon {
  width: 11px;
  height: 20px;
  flex-shrink: 0;
}

.footer-credit-divider {
  width: 1px;
  height: 16px;
  background: currentColor;
  opacity: 0.35;
}

.footer-credit-text strong {
  font-weight: 700;
  color: var(--branco);
}

@media (min-width: 960px) {
  .content {
    padding: 110px 48px;
  }

  .container {
    max-width: 1040px;
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
    column-gap: 80px;
    align-items: start;
  }

  .content .logo-wrap {
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 32px;
  }

  .intro {
    grid-column: 1;
    grid-row: 2;
    text-align: left;
    margin-bottom: 0;
  }

  .form-card {
    grid-column: 2;
    grid-row: 1 / 3;
  }
}

@media (max-width: 480px) {
  .content {
    padding: 48px 16px;
  }
  .form-card {
    padding: 32px 24px;
  }
  .hero-logo img {
    max-width: 280px;
  }
}
