/* ============================================================
   ProvadorIA — style.css
   ============================================================ */

/* ---- Reset & Variáveis ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:     #0A0A0A;
  --white:     #FFFFFF;
  --cream:     #F7F5F0;
  --gold:      #C9A84C;
  --gold-lt:   #F5EDDA;
  --gray-700:  #3A3A3A;
  --gray-500:  #777570;
  --gray-200:  #E2DFD8;
  --gray-100:  #F0EDE8;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.14);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;
  --header-h: 64px;
  --max-w: 1200px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.65;
  color: var(--black);
  background: var(--cream);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
textarea { resize: vertical; }

/* ---- Container ---- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  height: var(--header-h);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--white);
}
.logo span { color: var(--gold); }

.nav { display: flex; gap: 2rem; }
.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--white); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
}
.hamburger span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--black);
  padding: 1rem 2rem 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  gap: 1rem;
}
.mobile-nav a { color: rgba(255,255,255,0.75); font-size: 15px; font-weight: 500; }
.mobile-nav.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--black);
  color: var(--white);
  padding: 5rem 0 4rem;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201,168,76,0.4);
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 1.25rem;
}
.hero-title em { color: var(--gold); font-style: italic; }

.hero-desc {
  font-size: 15px;
  color: rgba(255,255,255,0.6);
  max-width: 420px;
  margin-bottom: 2rem;
  line-height: 1.75;
}

.hero-cta {
  display: inline-block;
  padding: 13px 32px;
  background: var(--gold);
  color: var(--black);
  font-weight: 500;
  font-size: 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
  letter-spacing: 0.3px;
}
.hero-cta:hover { background: #b8963e; transform: translateY(-1px); }

/* Hero visual */
.hero-cards {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  min-width: 90px;
  backdrop-filter: blur(10px);
}
.hero-card.result {
  background: rgba(201,168,76,0.12);
  border-color: rgba(201,168,76,0.35);
}

.hero-card-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 8px;
}
.hero-card-img { font-size: 46px; line-height: 1; }

.hero-arrow {
  font-size: 20px;
  color: rgba(255,255,255,0.3);
  font-weight: 300;
}

/* ============================================================
   SEÇÃO PROVADOR
   ============================================================ */
.provador-section {
  padding: 5rem 0;
  background: var(--cream);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 300;
  text-align: center;
  margin-bottom: 0.4rem;
}
.section-sub {
  text-align: center;
  color: var(--gray-500);
  font-size: 14px;
  margin-bottom: 2.5rem;
}

/* Steps bar */
.steps-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 3rem;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gray-200);
  color: var(--gray-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 500;
  transition: all 0.3s;
}
.step.active .step-num, .step.done .step-num {
  background: var(--black);
  color: var(--white);
}
.step.done .step-num { background: var(--gold); }

.step-label {
  font-size: 11px;
  color: var(--gray-500);
  font-weight: 500;
  white-space: nowrap;
}
.step.active .step-label { color: var(--black); }

.step-line {
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: var(--gray-200);
  margin: 0 8px;
  margin-bottom: 22px;
}

/* Grid principal */
.provador-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

/* Upload cards */
.upload-col { display: flex; flex-direction: column; gap: 1.25rem; }

.upload-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.upload-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.upload-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--black);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 500; flex-shrink: 0;
}
.upload-card-header h3 { font-size: 15px; font-weight: 500; }

.upload-hint { font-size: 12px; color: var(--gray-500); margin-bottom: 1rem; }

/* Drop zone */
.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 1.75rem 1rem;
  border: 1.5px dashed var(--gray-200);
  border-radius: var(--radius-md);
  background: var(--gray-100);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
}
.drop-zone:hover { border-color: var(--gold); background: var(--gold-lt); }
.drop-zone.dragover { border-color: var(--gold); background: var(--gold-lt); transform: scale(1.01); }

.drop-icon { font-size: 26px; color: var(--gray-500); margin-bottom: 2px; }
.drop-zone strong { font-size: 13px; color: var(--gray-700); }
.drop-zone span { font-size: 11px; color: var(--gray-500); }

/* Preview */
.preview-wrap {
  margin-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.preview-wrap img {
  width: 100%;
  max-height: 200px;
  object-fit: contain;
  border-radius: var(--radius-md);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}

/* Category select */
.category-select { margin-top: 1rem; }
.form-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-500);
  margin-bottom: 5px;
}
.form-select, .form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--black);
  background: var(--white);
  transition: border-color 0.2s;
  appearance: none;
}
.form-select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.form-select:focus, .form-input:focus { outline: none; border-color: var(--gold); }
.form-input::placeholder { color: var(--gray-500); }

/* Botão gerar */
.btn-gerar {
  width: 100%;
  padding: 15px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.btn-gerar:not(:disabled):hover { background: var(--gray-700); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gerar:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-gerar.loading { background: var(--gray-700); }

.api-notice {
  font-size: 11px;
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  line-height: 1.6;
}
.api-notice code { font-size: 11px; background: var(--gray-200); padding: 1px 5px; border-radius: 3px; }

/* Result card */
.result-col { display: flex; flex-direction: column; gap: 1.25rem; }

.result-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.result-state { width: 100%; padding: 2rem; }

.result-placeholder {
  text-align: center;
  color: var(--gray-500);
}
.placeholder-icon { font-size: 40px; margin-bottom: 1rem; opacity: 0.3; }
.result-placeholder p { font-size: 13px; max-width: 220px; margin: 0 auto; line-height: 1.6; }

/* Loading */
.loading-anim { text-align: center; }
.spinner {
  width: 44px; height: 44px;
  border: 2px solid var(--gray-200);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.loading-sub { font-size: 12px; color: var(--gray-500); }

/* Error */
.error-box { text-align: center; }
.error-icon { font-size: 36px; margin-bottom: 0.75rem; }
.error-msg { font-size: 13px; color: var(--gray-500); margin-bottom: 1rem; }

/* Success */
.result-image-wrap { width: 100%; }
.result-image-wrap img {
  width: 100%;
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius-md);
}
.result-actions {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Tips */
.tips-box {
  background: var(--gold-lt);
  border: 1px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}
.tips-box h4 { font-size: 13px; font-weight: 500; margin-bottom: 0.75rem; color: var(--gray-700); }
.tips-box ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 5px; }
.tips-box li { font-size: 12px; color: var(--gray-700); line-height: 1.5; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block;
  padding: 10px 20px;
  background: var(--black);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-primary:hover { background: var(--gray-700); }

.btn-ghost {
  display: inline-block;
  padding: 10px 20px;
  background: transparent;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}
.btn-ghost:hover { background: var(--gray-100); }

.btn-remove {
  background: none;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 12px;
  color: var(--gray-500);
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-body);
}
.btn-remove:hover { border-color: #c0392b; color: #c0392b; }

/* ============================================================
   COMO FUNCIONA
   ============================================================ */
.how-section {
  padding: 5rem 0;
  background: var(--black);
  color: var(--white);
}
.how-section .section-title { color: var(--white); }
.how-section .section-sub { color: rgba(255,255,255,0.4); }

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1rem;
}

.how-card {
  padding: 2rem;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.03);
  transition: all 0.2s;
}
.how-card:hover { border-color: rgba(201,168,76,0.35); background: rgba(201,168,76,0.04); }

.how-num {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 1rem;
}
.how-card h3 { font-size: 17px; font-weight: 500; margin-bottom: 0.5rem; }
.how-card p { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }

/* ============================================================
   CONTATO
   ============================================================ */
.contact-section {
  padding: 5rem 0;
  background: var(--cream);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.contact-text h2 {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 300;
  margin-bottom: 1rem;
}
.contact-text p { color: var(--gray-500); font-size: 14px; line-height: 1.7; margin-bottom: 0.5rem; }
.contact-info-item { font-size: 14px; color: var(--gray-700); font-weight: 500; }

.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
}

.form-group { margin-bottom: 1rem; }
.form-input { display: block; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.35);
  padding: 2rem 0;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer .logo { font-size: 16px; }
.footer p { font-size: 12px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.upload-card, .result-card, .how-card { animation: fadeUp 0.4s ease both; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .provador-grid { grid-template-columns: 1fr; }
  .how-grid { grid-template-columns: 1fr; gap: 1rem; }
  .contact-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 640px) {
  .container { padding: 0 1.25rem; }
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero { padding: 3rem 0; }
  .hero-cards { flex-wrap: wrap; gap: 8px; }
  .provador-section, .how-section, .contact-section { padding: 3.5rem 0; }
  .steps-bar { gap: 0; }
  .step-line { max-width: 40px; }
}

/* ============================================================
   MODELOS VIRTUAIS
   ============================================================ */

/* Abas modelo/upload */
.model-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
  background: var(--gray-100);
  padding: 4px;
  border-radius: var(--radius-sm);
}

.model-tab {
  flex: 1;
  padding: 7px 10px;
  border-radius: 4px;
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.model-tab.active {
  background: var(--white);
  color: var(--black);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* Toggle gênero */
.gender-toggle {
  display: flex;
  gap: 6px;
  margin-bottom: 1rem;
}

.gender-btn {
  flex: 1;
  padding: 7px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  color: var(--gray-500);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.gender-btn:hover { border-color: var(--gold); color: var(--gold); }
.gender-btn.active {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}

/* Grid de modelos */
.models-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.model-card {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--white);
  position: relative;
}
.model-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.model-card.selected {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,0.25);
}
.model-card.selected::after {
  content: '✓';
  position: absolute;
  top: 6px; right: 6px;
  background: var(--gold);
  color: var(--white);
  width: 20px; height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
}

.model-card-img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
}
.model-card-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  object-position: top;
}
.model-card-avatar {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--gray-100);
}

.model-card-info {
  padding: 8px 10px;
  border-top: 1px solid var(--gray-200);
}
.model-card-name {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 1px;
}
.model-card-meta {
  font-size: 10px;
  color: var(--gray-500);
}
.model-card-tag {
  display: inline-block;
  font-size: 9px;
  padding: 1px 6px;
  border-radius: 8px;
  background: var(--gold-lt);
  color: #8a6e20;
  margin-top: 3px;
}

/* Preview da modelo selecionada */
.modelo-selected { flex-direction: column; gap: 8px; }

.modelo-preview-inner {
  display: flex;
  gap: 10px;
  align-items: center;
}
.modelo-preview-inner img {
  width: 70px;
  height: 100px;
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--gray-100);
}
.modelo-preview-info {
  flex: 1;
}
.modelo-preview-nome {
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 3px;
}
.modelo-preview-detalhe {
  font-size: 12px;
  color: var(--gray-500);
  line-height: 1.6;
}

/* Modelo indisponível */
.model-card.indisponivel {
  cursor: not-allowed;
  opacity: 0.6;
}
.model-card.indisponivel:hover {
  border-color: var(--gray-200);
  transform: none;
  box-shadow: none;
}

.em-breve-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--gray-700);
  color: var(--white);
  font-size: 9px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 8px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
