/* ============================================================
   DISC VAREJO & Co — Stylesheet
   Identidade visual: elegante, minimalista, preto & branco + dourado
   ============================================================ */

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

:root {
  --black:       #1a1a1a;
  --black-soft:  #2d2d2d;
  --white:       #ffffff;
  --cream:       #f7f5f0;
  --cream-dark:  #f0ede6;
  --border:      #e0dcd5;
  --border-soft: #ece9e3;
  --text:        #1a1a1a;
  --text-mid:    #444444;
  --text-light:  #888888;
  --gold:        #c9a84c;
  --gold-light:  #dfc07a;

  /* DISC */
  --disc-d: #C03A3A;
  --disc-i: #E8A020;
  --disc-s: #2E9B5F;
  --disc-c: #2B6CB0;

  --radius:  3px;
  --shadow:  0 2px 16px rgba(0,0,0,0.08);
  --shadow-hover: 0 6px 24px rgba(0,0,0,0.13);

  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* --- Tipografia ------------------------------------------- */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 700; }

/* --- Layout Geral ----------------------------------------- */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--black);
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-link { display: block; text-decoration: none; }

.logo-img { height: 36px; width: auto; display: block; }

.logo-text {
  text-align: center;
  text-decoration: none;
}
.logo-text .brand-name {
  display: block;
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 5px;
  line-height: 1;
}
.logo-text .brand-sub {
  display: block;
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 3px;
  margin-top: 4px;
}

/* ============================================================
   PROGRESS BAR (quiz)
   ============================================================ */
.progress-wrapper {
  background: var(--black-soft);
  padding: 12px 0;
}

.progress-inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.progress-track {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.15);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 2px;
  transition: width 0.4s ease;
  width: 0%;
}

#progress-text {
  color: rgba(255,255,255,0.5);
  font-size: 12px;
  white-space: nowrap;
  min-width: 90px;
  text-align: right;
}

/* ============================================================
   HERO / LANDING (index.html)
   ============================================================ */
.hero {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 60px 0;
}

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

.hero-badge {
  display: inline-block;
  background: var(--black);
  color: var(--gold);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 16px;
}

.hero h1 .accent { color: var(--gold); }

.hero-description {
  color: var(--text-mid);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 40px;
  text-align: left;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.features-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-mid);
}

.features-list .check {
  width: 20px;
  height: 20px;
  background: var(--black);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex-shrink: 0;
}

/* ============================================================
   FORMULÁRIO (Lead Capture)
   ============================================================ */
.form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-card .form-title {
  font-size: 20px;
  margin-bottom: 6px;
  text-align: center;
}

.form-card .form-subtitle {
  color: var(--text-light);
  font-size: 13px;
  text-align: center;
  margin-bottom: 28px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mid);
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--text);
  background: var(--cream);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--black);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,26,26,0.06);
}

.form-group input::placeholder { color: #bbb; }

.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 24px;
}

.privacy-note .lock-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 15px 32px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  width: 100%;
}

.btn-primary:hover {
  background: var(--black-soft);
  transform: translateY(-1px);
  box-shadow: var(--shadow-hover);
}

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

.btn-primary.btn-gold {
  background: var(--gold);
  color: var(--black);
}
.btn-primary.btn-gold:hover { background: var(--gold-light); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--text-mid);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 12px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--black);
  color: var(--black);
  background: var(--cream);
}

.btn-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz-main {
  flex: 1;
  padding: 40px 0 60px;
}

.block-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.question-group {
  padding: 28px 32px;
}

.question-label {
  font-size: 15px;
  color: var(--text-mid);
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.5;
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--black);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 1px;
}

.words-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.word-btn {
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  padding: 16px 12px;
  border: 1.5px solid var(--border-soft);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.18s;
  text-align: center;
  letter-spacing: 0.3px;
}

.word-btn:hover:not(:disabled) {
  background: var(--cream-dark);
  border-color: var(--black);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
}

.word-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  border-style: dashed;
}

.word-btn.selected-mais {
  background: #e8f5e9;
  border-color: #2E9B5F;
  color: #1b6b40;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(46,155,95,0.15);
}

.word-btn.selected-menos {
  background: #fdecea;
  border-color: #C03A3A;
  color: #9b1f1f;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(192,58,58,0.15);
}

.divider {
  height: 1px;
  background: var(--border-soft);
}

/* Navegação do quiz */
.quiz-nav {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  align-items: center;
}

.quiz-nav .btn-primary { flex: 1; }

.validation-message {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-radius: var(--radius);
  color: #7a6000;
  font-size: 13px;
  padding: 10px 16px;
  margin-top: 12px;
  text-align: center;
}

.error-message {
  background: #fdecea;
  border: 1px solid #f5c6c6;
  border-radius: var(--radius);
  color: #9b1f1f;
  font-size: 13px;
  padding: 10px 16px;
  margin-top: 12px;
  text-align: center;
}

/* Loading state */
.loading-state {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 60px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}

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

.loading-text {
  font-size: 17px;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 6px;
}

.loading-sub {
  font-size: 13px;
  color: var(--text-light);
}

/* ============================================================
   RESULTADO
   ============================================================ */
.resultado-main {
  flex: 1;
  padding: 48px 0 60px;
}

.result-hero {
  text-align: center;
  margin-bottom: 32px;
}

.result-congrats {
  display: inline-block;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.result-hero h1 {
  font-size: clamp(22px, 4vw, 32px);
  color: var(--black);
  margin-bottom: 8px;
  line-height: 1.3;
}

.result-hero .result-subtitle {
  color: var(--text-light);
  font-size: 14px;
}

/* Profile card */
.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}

.profile-header {
  background: var(--black);
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.profile-code {
  font-family: var(--font-serif);
  font-size: 44px;
  color: var(--gold);
  line-height: 1;
  font-weight: 700;
}

.profile-labels {
  text-align: right;
}

.profile-type {
  color: rgba(255,255,255,0.4);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.profile-name {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
}

/* DISC Chart */
.chart-section {
  padding: 36px 32px 28px;
  border-bottom: 1px solid var(--border-soft);
}

.chart-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: center;
}

.disc-chart {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 28px;
  height: 160px;
  padding: 0 16px;
}

.disc-bar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
  max-width: 72px;
}

.disc-bar-track {
  width: 100%;
  background: var(--cream-dark);
  border-radius: 2px 2px 0 0;
  position: relative;
  height: 110px;
  display: flex;
  align-items: flex-end;
}

.disc-bar-fill {
  width: 100%;
  border-radius: 2px 2px 0 0;
  transition: height 1s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 4px;
}

.disc-bar-fill[data-factor="D"] { background: var(--disc-d); }
.disc-bar-fill[data-factor="I"] { background: var(--disc-i); }
.disc-bar-fill[data-factor="S"] { background: var(--disc-s); }
.disc-bar-fill[data-factor="C"] { background: var(--disc-c); }

.disc-bar-score {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mid);
}

.disc-bar-letter {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 1px;
}

.disc-bar-letter[data-factor="D"] { color: var(--disc-d); }
.disc-bar-letter[data-factor="I"] { color: var(--disc-i); }
.disc-bar-letter[data-factor="S"] { color: var(--disc-s); }
.disc-bar-letter[data-factor="C"] { color: var(--disc-c); }

/* Perfil descrição preview */
.profile-intro {
  padding: 28px 32px;
}

.profile-intro p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.75;
  margin-bottom: 12px;
}

.profile-intro p:last-child { margin-bottom: 0; }

/* CTA Buttons */
.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

/* Footer note */
.result-footer-note {
  text-align: center;
  color: var(--text-light);
  font-size: 12px;
  line-height: 1.6;
}

.result-footer-note a {
  color: var(--black);
  text-decoration: underline;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  padding: 24px 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-brand .brand-name {
  color: var(--white);
  font-family: var(--font-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 3px;
  display: block;
}
.footer-brand .brand-sub {
  color: var(--gold);
  font-size: 10px;
  letter-spacing: 2px;
  display: block;
  margin-top: 2px;
}

.footer-copy {
  color: rgba(255,255,255,0.3);
  font-size: 11px;
}

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-24 { margin-bottom: 24px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .container { padding: 0 16px; }

  .form-card { padding: 28px 20px; }

  .words-grid { grid-template-columns: 1fr 1fr; gap: 8px; }

  .word-btn { font-size: 14px; padding: 14px 8px; }

  .question-group { padding: 20px; }

  .profile-header {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  .profile-labels { text-align: center; }

  .profile-intro { padding: 20px; }
  .chart-section { padding: 20px; }

  .hero { padding: 40px 0; }
  .hero h1 { font-size: 26px; }

  .footer-inner { justify-content: center; text-align: center; }
}
