/* ==========================================================================
   IS ARQUITETURA — Design System
   Formulário de Diagnóstico de Espaços
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. GOOGLE FONTS
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&family=Outfit:wght@300;400;500&display=swap');

/* --------------------------------------------------------------------------
   2. CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Paleta de cores */
  --bg-primary: #ffffff;
  --bg-secondary: #ffffff;
  --text-primary: #1A1A1A;
  --text-dark: #000000;
  --text-light: #6B6B6B;
  --accent-olive: #9A9A78;
  --accent-brown: #715549;
  --accent-sage: #D0D1C9;

  /* Cards */
  --card-bg: transparent;
  --card-border: #1A1A1A;
  --card-selected-bg: #000000;
  --card-selected-text: #FFFFFF;
  --card-hover-bg: rgba(0, 0, 0, 0.03);

  /* Feedback */
  --error-color: #9A3030;
  --error-bg: #FDF2F2;
  --success-color: #2D6A4F;
  --success-bg: #F0FDF4;

  /* Tipografia */
  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', 'Segoe UI', system-ui, sans-serif;

  /* Escala tipográfica (mobile-first) */
  --fs-hero: clamp(2rem, 6vw, 4.5rem);
  --fs-h1: clamp(1.75rem, 4vw, 3rem);
  --fs-h2: clamp(1.25rem, 3vw, 2rem);
  --fs-h3: clamp(1.1rem, 2.5vw, 1.5rem);
  --fs-body: clamp(0.938rem, 1.5vw, 1.063rem);
  --fs-small: clamp(0.813rem, 1.2vw, 0.875rem);
  --fs-caption: 0.75rem;

  /* Espaçamento */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;

  /* Layout */
  --max-width: 900px;
  --max-width-narrow: 680px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-padding: clamp(3rem, 8vh, 6rem);

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-reveal: 0.7s cubic-bezier(0.16, 1, 0.3, 1);

  /* Sombras */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.08);

  /* Bordas */
  --radius-sm: 2px;
  --radius-md: 6px;
  --radius-lg: 12px;
}

/* --------------------------------------------------------------------------
   3. CSS RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  user-select: none;
  -webkit-user-select: none;
}

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--text-primary);
  user-select: auto;
  -webkit-user-select: auto;
}

fieldset {
  border: none;
}

legend {
  font-family: var(--font-body);
  font-weight: 400;
}

::selection {
  background-color: var(--text-dark);
  color: var(--bg-primary);
}

/* Scrollbar sutil */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--accent-sage);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--text-light);
}

/* --------------------------------------------------------------------------
   4. TIPOGRAFIA
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

h1 { font-size: var(--fs-hero); }
h2 { font-size: var(--fs-h2); margin-bottom: var(--space-lg); }
h3 { font-size: var(--fs-h3); }

p {
  margin-bottom: var(--space-sm);
}

.subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-h3);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-light);
}

blockquote {
  font-family: var(--font-body);
  font-weight: 300;
  font-style: italic;
  font-size: var(--fs-body);
  color: var(--text-light);
  border-left: 2px solid var(--accent-olive);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  max-width: 38ch;
}

.required-mark {
  color: var(--accent-brown);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   5. LAYOUT — SEÇÕES
   -------------------------------------------------------------------------- */
.section {
  width: 100%;
  padding: var(--section-padding) var(--gutter);
}

.section__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section__inner--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
}

/* Alternância de fundo entre seções */
.section--alt {
  background-color: var(--bg-secondary);
}

/* Linha decorativa entre seções */
.section-divider {
  width: 60px;
  height: 1px;
  background-color: var(--accent-sage);
  margin: 0 auto var(--space-lg);
}

/* --------------------------------------------------------------------------
   6. HERO — BLOCO A
   -------------------------------------------------------------------------- */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  text-align: left;
  padding: var(--space-xl) var(--gutter);
  position: relative;
  background: url('fotofundo_mobile.jpg') center/cover no-repeat;
}

.hero__logo {
  width: clamp(200px, 40vw, 360px);
  max-width: 100%;
  height: auto;
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fadeInDown 1s ease 0.3s forwards;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #ffffff;
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 1s ease 0.6s forwards;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-small);
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.8s ease 0.9s forwards;
}

.hero__quotes {
  max-width: 520px;
  margin: 0 0 var(--space-xl) 0;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.1s forwards;
}

.hero__quotes blockquote {
  border-left: none;
  padding-left: 0;
  text-align: left;
  max-width: none;
  margin: var(--space-sm) 0;
}

.hero__quotes blockquote:first-child {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: #ffffff;
  font-style: italic;
}

.hero__quotes blockquote:last-child {
  font-style: normal;
  font-size: var(--fs-small);
  color: #ffffff;
}



.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ffffff;
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid #ffffff;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.6s forwards;
}

.hero__cta:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.hero__cta-arrow {
  display: inline-block;
  transition: transform var(--transition-base);
  font-size: 1.2em;
}

.hero__cta:hover .hero__cta-arrow {
  transform: translateY(3px);
}

/* Indicador de scroll no fundo do hero */
.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  animation: fadeInUp 0.8s ease 2s forwards, floatUpDown 2.5s ease-in-out 3s infinite;
}

.hero__scroll-hint span {
  display: block;
  width: 1px;
  height: 40px;
  background-color: var(--accent-sage);
  margin: 0 auto;
}

/* --------------------------------------------------------------------------
   7. PERGUNTAS — BLOCO B
   -------------------------------------------------------------------------- */
.question-group {
  margin-bottom: var(--space-xl);
}

.question-group__label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--text-dark);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.question-group__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--accent-sage);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--fs-caption);
  color: var(--text-light);
  margin-right: var(--space-xs);
  flex-shrink: 0;
  vertical-align: middle;
}

/* --------------------------------------------------------------------------
   8. CARDS DE SELEÇÃO
   -------------------------------------------------------------------------- */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
}

/* Esconder o radio button real */
.card-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Label como card clicável */
.card {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-md);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background-color: var(--card-bg);
  cursor: pointer;
  transition: all var(--transition-base);
  user-select: none;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--card-selected-bg);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.card__text {
  position: relative;
  z-index: 1;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  letter-spacing: 0.02em;
  transition: color var(--transition-base);
}

.card__indicator {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--card-border);
  border-radius: 50%;
  flex-shrink: 0;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card__indicator::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--bg-primary);
  transform: scale(0);
  transition: transform var(--transition-base);
}

/* Hover */
.card:hover {
  background-color: var(--card-hover-bg);
  transform: translateX(4px);
}

/* Estado selecionado */
.card-input:checked + .card {
  transform: scale(1.02);
  border-color: var(--card-selected-bg);
  box-shadow: var(--shadow-sm);
}

.card-input:checked + .card::before {
  transform: scaleX(1);
}

.card-input:checked + .card .card__text {
  color: var(--card-selected-text);
  font-weight: 400;
}

.card-input:checked + .card .card__indicator {
  border-color: var(--card-selected-text);
}

.card-input:checked + .card .card__indicator::after {
  transform: scale(1);
}

/* Focus acessibilidade */
.card-input:focus-visible + .card {
  outline: 2px solid var(--accent-olive);
  outline-offset: 3px;
}

/* --------------------------------------------------------------------------
   9. TEXTAREA
   -------------------------------------------------------------------------- */
.textarea-field {
  width: 100%;
  min-height: 140px;
  padding: var(--space-md);
  border: 1px solid var(--accent-sage);
  border-radius: var(--radius-sm);
  background-color: transparent;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: var(--fs-body);
  line-height: 1.7;
  color: var(--text-primary);
  resize: vertical;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.textarea-field::placeholder {
  color: var(--accent-sage);
  font-style: italic;
}

.textarea-field:focus {
  outline: none;
  border-color: var(--text-dark);
  box-shadow: 0 0 0 3px rgba(26, 26, 26, 0.06);
}

/* --------------------------------------------------------------------------
   10. UPLOAD ZONE — BLOCO C
   -------------------------------------------------------------------------- */
.upload-zone {
  border: 2px dashed var(--accent-sage);
  border-radius: var(--radius-md);
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  background-color: transparent;
}

.upload-zone:hover,
.upload-zone--dragover {
  border-color: var(--text-dark);
  background-color: rgba(0, 0, 0, 0.02);
}

.upload-zone--dragover {
  transform: scale(1.01);
  box-shadow: var(--shadow-md);
}

.upload-zone__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--accent-sage);
  transition: color var(--transition-base);
  line-height: 1;
}

.upload-zone:hover .upload-zone__icon,
.upload-zone--dragover .upload-zone__icon {
  color: var(--text-dark);
}

.upload-zone__title {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.upload-zone__hint {
  font-size: var(--fs-small);
  color: var(--text-light);
}

.upload-zone__input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

/* Grid de previews */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--accent-sage);
  animation: fadeInScale 0.4s ease forwards;
}

.preview-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item__remove {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  transition: all var(--transition-fast);
  opacity: 0;
  transform: scale(0.8);
}

.preview-item:hover .preview-item__remove {
  opacity: 1;
  transform: scale(1);
}

.preview-item__remove:hover {
  background-color: var(--error-color);
  transform: scale(1.1);
}

.preview-item__name {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 4px 8px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-size: var(--fs-caption);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Contador de fotos */
.upload-counter {
  font-size: var(--fs-small);
  color: var(--text-light);
  margin-top: var(--space-sm);
  text-align: center;
}

.upload-counter strong {
  font-weight: 500;
  color: var(--text-primary);
}

/* --------------------------------------------------------------------------
   11. INPUTS DE TEXTO — BLOCO D
   -------------------------------------------------------------------------- */
.form-field {
  margin-bottom: var(--space-md);
}

.form-field__label {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-small);
  color: var(--text-light);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.form-field__input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-bottom: 1px solid var(--accent-sage);
  border-radius: 0;
  background-color: transparent;
  font-weight: 300;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.form-field__input::placeholder {
  color: var(--accent-sage);
}

.form-field__input:focus {
  outline: none;
  border-bottom-color: var(--text-dark);
  box-shadow: 0 1px 0 0 var(--text-dark);
}

.form-field__hint {
  font-size: var(--fs-caption);
  color: var(--text-light);
  margin-top: 4px;
  font-style: italic;
}

/* --------------------------------------------------------------------------
   12. BOTÃO DE ENVIO
   -------------------------------------------------------------------------- */
.btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  width: 100%;
  max-width: 360px;
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) auto 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bg-primary);
  background-color: var(--text-dark);
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background-color: var(--accent-brown);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 0;
}

.btn-submit:hover::before {
  transform: scaleX(1);
}

.btn-submit span {
  position: relative;
  z-index: 1;
}

.btn-submit:hover {
  border-color: var(--accent-brown);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* Estado: Enviando */
.btn-submit--loading {
  pointer-events: none;
  opacity: 0.85;
}

.btn-submit--loading::before {
  transform: scaleX(1);
  background-color: var(--text-light);
}

/* Spinner */
.spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  position: relative;
  z-index: 1;
}

.btn-submit--loading .spinner {
  display: block;
}

/* --------------------------------------------------------------------------
   13. MENSAGENS DE VALIDAÇÃO
   -------------------------------------------------------------------------- */
.field-error {
  font-size: var(--fs-caption);
  color: var(--error-color);
  margin-top: 4px;
  opacity: 0;
  transform: translateY(-4px);
  transition: all var(--transition-fast);
}

.field-error--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Borda vermelha para campos inválidos */
.form-field__input--error {
  border-bottom-color: var(--error-color);
}

.card--error {
  border-color: var(--error-color) !important;
}

/* Toast de erro global */
.toast {
  position: fixed;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background-color: var(--text-dark);
  color: var(--bg-primary);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-md);
  font-size: var(--fs-small);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
  text-align: center;
}

.toast--visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast--error {
  background-color: var(--error-color);
}

/* --------------------------------------------------------------------------
   14. TELA DE AGRADECIMENTO
   -------------------------------------------------------------------------- */
.success-screen {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--gutter);
  background-color: var(--bg-primary);
}

.success-screen__check {
  width: 80px;
  height: 80px;
  border: 2px solid var(--text-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  animation: fadeInScale 0.6s ease forwards, pulseOnce 0.4s ease 0.6s;
}

.success-screen__check svg {
  width: 36px;
  height: 36px;
  stroke: var(--text-dark);
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.5s ease 0.4s forwards;
}

.success-screen__title {
  font-size: var(--fs-h2);
  margin-bottom: var(--space-sm);
  opacity: 0;
  animation: fadeInUp 0.6s ease 0.8s forwards;
}

.success-screen__message {
  font-size: var(--fs-body);
  color: var(--text-light);
  max-width: 440px;
  margin-bottom: var(--space-xl);
  opacity: 0;
  animation: fadeInUp 0.6s ease 1s forwards;
}

.success-screen__instagram {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--fs-body);
  color: var(--text-dark);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--text-dark);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  opacity: 0;
  animation: fadeInUp 0.6s ease 1.2s forwards;
}

.success-screen__instagram:hover {
  background-color: var(--text-dark);
  color: var(--bg-primary);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.success-screen__instagram svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* --------------------------------------------------------------------------
   15. UTILITÁRIOS
   -------------------------------------------------------------------------- */
.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center {
  text-align: center;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-xs);
}

.section-header p {
  font-size: var(--fs-small);
  color: var(--text-light);
  max-width: 420px;
  margin: 0 auto;
}

/* Flex wrapper para centralizar botão */
.btn-wrapper {
  display: flex;
  justify-content: center;
}

/* --------------------------------------------------------------------------
   16. ANIMAÇÕES — SCROLL REVEAL
   -------------------------------------------------------------------------- */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity var(--transition-reveal), transform var(--transition-reveal);
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Variações de delay para stagger */
.scroll-reveal[data-delay="1"] { transition-delay: 0.1s; }
.scroll-reveal[data-delay="2"] { transition-delay: 0.2s; }
.scroll-reveal[data-delay="3"] { transition-delay: 0.3s; }
.scroll-reveal[data-delay="4"] { transition-delay: 0.4s; }
.scroll-reveal[data-delay="5"] { transition-delay: 0.5s; }

/* --------------------------------------------------------------------------
   17. KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes floatUpDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes pulseOnce {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* --------------------------------------------------------------------------
   18. RESPONSIVIDADE — MEDIA QUERIES (Mobile-First)
   -------------------------------------------------------------------------- */

/* Tablet (≥ 768px) */
@media (min-width: 768px) {
  .hero {
    background: url('fotofundo.jpg') center/cover no-repeat;
  }

  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__quotes blockquote:first-child {
    font-size: 1.15rem;
  }

  .question-group {
    margin-bottom: var(--space-2xl);
  }

  .form-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }
}

/* Desktop (≥ 1024px) */
@media (min-width: 1024px) {
  .cards-grid--wide {
    grid-template-columns: repeat(3, 1fr);
  }

  .preview-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .card:hover {
    transform: translateX(6px);
  }

  .hero {
    padding: var(--space-2xl) var(--gutter);
  }
}

/* Telas grandes (≥ 1440px) */
@media (min-width: 1440px) {
  :root {
    --gutter: 4rem;
  }
}

/* Preferência de movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
}

/* Impressão */
@media print {
  .hero__cta,
  .hero__scroll-hint,
  .upload-zone,
  .btn-submit {
    display: none;
  }

  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }

  body {
    color: #000;
    background: #fff;
  }
}
