/* ==========================================================================
   DIAGNÓSTICO ESTRATÉGICO — TRÁFEGO IMOBILIÁRIO
   Design system: fundo branco, verde-musgo, Lato, alinhamento à esquerda
   ========================================================================== */

:root {
  /* Cores */
  --color-bg: #FFFFFF;
  --color-ink: #1A1A1A;
  --color-ink-soft: #4A4A4A;
  --color-muted: #8A8A8A;
  --color-line: #E8E6E1;
  --color-sand: #F5F1EA;
  --color-brand: #2D3F2B;
  --color-brand-deep: #1F2D1E;
  --color-brand-soft: #E8EDE6;
  --color-accent: #C9B17A;
  --color-error: #B23A3A;

  /* Tipografia */
  --font-sans: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.375rem;
  --fs-xl: 2rem;
  --fs-2xl: 2.75rem;
  --fs-3xl: 3.5rem;

  /* Espaçamento */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 3rem;
  --sp-8: 4rem;
  --sp-9: 6rem;

  /* Layout */
  --max-content: 680px;
  --radius: 6px;
  --radius-lg: 10px;

  /* Transições */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: left;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

/* ==========================================================================
   LAYOUT BASE
   ========================================================================== */

.page {
  width: 100%;
  overflow-x: hidden;
}

/* ==========================================================================
   HERO
   ========================================================================== */

.hero {
  padding: var(--sp-9) var(--sp-5) var(--sp-7);
  background: var(--color-bg);
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 6px; height: 100%;
  background: var(--color-brand);
}

.hero__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--sp-2);
}

.hero__eyebrow {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand);
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) forwards;
}

.hero__headline {
  font-size: clamp(2rem, 6vw, var(--fs-3xl));
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: var(--sp-6);
  max-width: 16ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.1s forwards;
}

.hero__emoji {
  display: inline-block;
  margin-right: var(--sp-2);
  font-size: 0.85em;
  transform: translateY(-0.05em);
}

.hero__bullets {
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero__bullets li {
  font-size: var(--fs-md);
  font-weight: 400;
  color: var(--color-ink-soft);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--color-line);
  line-height: 1.4;
}

.hero__bullets li:last-child { border-bottom: 0; }

.hero__footer {
  font-size: var(--fs-sm);
  color: var(--color-muted);
  margin-bottom: var(--sp-7);
  padding-left: 0;
  max-width: 48ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.3s forwards;
}

.hero__footer em {
  font-style: italic;
  font-weight: 400;
}

.hero__cta {
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.4s forwards;
}

/* ==========================================================================
   FORM SECTION
   ========================================================================== */

.form-section {
  padding: var(--sp-8) var(--sp-5) var(--sp-9);
  background: var(--color-sand);
  position: relative;
}

.form-section__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--sp-2);
}

.form-section__header {
  margin-bottom: var(--sp-7);
}

.form-section__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand);
  margin-bottom: var(--sp-3);
}

.form-section__title {
  font-size: clamp(1.5rem, 4vw, var(--fs-xl));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.015em;
  color: var(--color-ink);
  margin-bottom: var(--sp-3);
  max-width: 18ch;
}

.form-section__sub {
  font-size: var(--fs-base);
  color: var(--color-ink-soft);
  max-width: 42ch;
  line-height: 1.55;
}

/* ==========================================================================
   FORM
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  border: 0;
  padding: 0;
}

.field__label {
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--color-ink);
  letter-spacing: 0.01em;
}

.field__input {
  width: 100%;
  background: var(--color-bg);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-4);
  font-size: var(--fs-base);
  color: var(--color-ink);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  outline: none;
}

.field__input::placeholder {
  color: var(--color-muted);
}

.field__input:focus {
  border-color: var(--color-brand);
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.field__input.is-invalid {
  border-color: var(--color-error);
}

.field__error {
  font-size: var(--fs-xs);
  color: var(--color-error);
  min-height: 1em;
  font-weight: 700;
}

/* Choices (radios estilizados) */
.choices {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.choices--stack {
  grid-template-columns: 1fr;
}

.choice {
  cursor: pointer;
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice__box {
  display: block;
  background: var(--color-bg);
  border: 1.5px solid var(--color-line);
  border-radius: var(--radius);
  padding: var(--sp-4);
  font-size: var(--fs-base);
  color: var(--color-ink);
  transition: all 0.2s var(--ease);
  text-align: left;
  user-select: none;
}

.choice:hover .choice__box {
  border-color: var(--color-brand);
  color: var(--color-brand);
}

.choice input:checked + .choice__box {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: var(--color-bg);
  font-weight: 700;
}

.choice input:focus-visible + .choice__box {
  box-shadow: 0 0 0 3px var(--color-brand-soft);
}

.field--choices.is-invalid .choice__box {
  border-color: var(--color-error);
}

.form__note {
  font-size: var(--fs-xs);
  color: var(--color-muted);
  margin-top: var(--sp-2);
  font-style: italic;
}

.form__submit {
  margin-top: var(--sp-3);
  width: 100%;
  justify-content: center;
}

/* ==========================================================================
   BUTTON
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  font-size: var(--fs-base);
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
  border: 1.5px solid transparent;
  text-align: center;
  position: relative;
  min-height: 56px;
}

.btn--primary {
  background: var(--color-brand);
  color: var(--color-bg);
  border-color: var(--color-brand);
}

.btn--primary:hover {
  background: var(--color-brand-deep);
  border-color: var(--color-brand-deep);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:disabled,
.btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
  pointer-events: none;
}

.btn__loading { display: none; }

.btn.is-loading .btn__label { display: none; }
.btn.is-loading .btn__loading { display: inline; }

/* ==========================================================================
   PÁGINAS DE OBRIGADO / AGENDADO
   ========================================================================== */

.thanks {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: var(--sp-7) var(--sp-5);
  background: var(--color-bg);
}

.thanks__inner {
  max-width: var(--max-content);
  margin: 0 auto;
  padding-left: var(--sp-2);
  border-left: 4px solid var(--color-brand);
  padding-left: var(--sp-5);
}

.thanks__kicker {
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-brand);
  margin-bottom: var(--sp-4);
}

.thanks__title {
  font-size: clamp(1.75rem, 5vw, var(--fs-2xl));
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  margin-bottom: var(--sp-5);
  max-width: 20ch;
}

.thanks__body {
  font-size: var(--fs-md);
  color: var(--color-ink-soft);
  line-height: 1.55;
  max-width: 46ch;
  margin-bottom: var(--sp-4);
}

.thanks__body + .thanks__body { margin-top: var(--sp-4); }

.thanks__signature {
  margin-top: var(--sp-7);
  font-size: var(--fs-sm);
  color: var(--color-muted);
  font-style: italic;
}

/* ==========================================================================
   ANIMAÇÕES
   ========================================================================== */

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

/* ==========================================================================
   RESPONSIVO
   ========================================================================== */

@media (max-width: 640px) {
  .hero { padding: var(--sp-7) var(--sp-5) var(--sp-6); }
  .form-section { padding: var(--sp-7) var(--sp-5); }
  .hero__bullets li { font-size: var(--fs-base); }
  .choices { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .hero { padding: var(--sp-9) var(--sp-7) var(--sp-8); }
  .form-section { padding: var(--sp-9) var(--sp-7); }
}
