/* ══════════════════════════════════════════════════════════════
   Arquétipo Quiz — Roberta Gollino
   Identidade visual: Rosa #e8426e · portal da cliente
   ══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --pink:        #e8426e;
  --pink-dark:   #c9305a;
  --pink-light:  #fde8ef;
  --pink-mid:    #f5b8cb;
  --bg:          #fdf8f9;
  --white:       #ffffff;
  --dark:        #1a0a0f;
  --text:        #1a0a10;
  --text-muted:  #7a5a65;
  --border:      #f0dde3;
  --shadow:      0 2px 16px rgba(232,66,110,.08);
  --shadow-md:   0 4px 24px rgba(232,66,110,.14);
  --radius:      14px;
  --radius-sm:   8px;
  --font-body:   'Inter', sans-serif;
  --font-title:  'Playfair Display', serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

/* ── Typography ──────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 300;
  color: var(--dark);
  line-height: 1.25;
}
h1 { font-size: 2rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.1rem; }
p  { margin-bottom: .75rem; }

/* ── Header ──────────────────────────────────────────────────── */
.site-header {
  background: var(--dark);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.3);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 0 auto;
  padding: .9rem 1.5rem;
}
.site-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-header__logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
.site-header__logo-text {
  font-family: var(--font-title);
  font-size: .95rem;
  color: #fff;
  opacity: .85;
}
.site-header__nav a {
  color: #fff;
  text-decoration: none;
  font-size: .82rem;
  opacity: .7;
  margin-left: 1.5rem;
  transition: opacity .2s;
}
.site-header__nav a:hover { opacity: 1; }

/* Barra rosa embaixo do header */
.accent-bar {
  height: 3px;
  background: var(--pink);
}

/* ── Progress ────────────────────────────────────────────────── */
.progress-wrap {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: .75rem 1.5rem;
}
.progress-bar {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  gap: 0;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  color: var(--text-muted);
  white-space: nowrap;
}
.progress-step--active { color: var(--pink); font-weight: 600; }
.progress-step--done   { color: var(--text-muted); }
.progress-step__num {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem; font-weight: 700;
  flex-shrink: 0;
}
.progress-step--active .progress-step__num {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.progress-step--done .progress-step__num {
  background: var(--pink-mid);
  border-color: var(--pink-mid);
  color: var(--dark);
}
.progress-sep {
  flex: 1;
  height: 2px;
  background: var(--border);
  margin: 0 .5rem;
  min-width: 20px;
}

/* ── Layout ──────────────────────────────────────────────────── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.container--narrow { max-width: 520px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--border);
}
.card--dark {
  background: var(--dark);
  color: #fff;
  border-color: transparent;
}
.card--dark h1,
.card--dark h2,
.card--dark h3 { color: #fff; }
.card--pink {
  background: var(--pink-light);
  border-color: var(--pink-mid);
}
/* Compat com código antigo */
.card--navy { background: var(--dark); color: #fff; border-color: transparent; }
.card--navy h1, .card--navy h2, .card--navy h3 { color: #fff; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .7rem 1.6rem;
  border-radius: 50px;
  border: 2px solid transparent;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all .2s;
  letter-spacing: .01em;
}
.btn--primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.btn--primary:hover {
  background: var(--pink-dark);
  border-color: var(--pink-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232,66,110,.35);
}
.btn--outline {
  background: transparent;
  border-color: var(--pink);
  color: var(--pink);
}
.btn--outline:hover {
  background: var(--pink-light);
}
.btn--accent  { background: var(--pink); color: #fff; border-color: var(--pink); }
.btn--full    { display: block; width: 100%; text-align: center; }
.btn--lg      { padding: .9rem 2.2rem; font-size: 1.05rem; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: .35rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: .65rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .95rem;
  background: var(--white);
  color: var(--text);
  transition: border-color .2s, box-shadow .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(232,66,110,.12);
}
.error-msg {
  background: #fde8ef;
  color: var(--pink-dark);
  border: 1px solid var(--pink-mid);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .88rem;
  margin-bottom: 1rem;
}

/* ── Admin table ─────────────────────────────────────────────── */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.admin-table th {
  background: var(--dark);
  color: #fff;
  padding: .75rem 1rem;
  text-align: left;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.admin-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--pink-light); }

.badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
}
.badge--green  { background: #e8f5e9; color: #2e7d32; }
.badge--grey   { background: #f5f5f5; color: #757575; }
.badge--orange { background: #fff3e0; color: #e65100; }

.link-copy {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem;
  color: var(--pink);
  cursor: pointer;
  text-decoration: underline;
  background: none; border: none;
  font-family: var(--font-body);
}
.link-copy:hover { color: var(--pink-dark); }

/* ── Step 1 — Wheel grid ─────────────────────────────────────── */
.wheel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem;
  margin-top: 1.2rem;
}
.wheel-item { position: relative; }
.wheel-item input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0; height: 0;
}
.wheel-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: .75rem .5rem;
  background: var(--white);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .88rem;
  cursor: pointer;
  transition: all .18s;
  min-height: 52px;
  line-height: 1.3;
  user-select: none;
}
.wheel-item label:hover {
  border-color: var(--pink);
  background: var(--pink-light);
  color: var(--pink-dark);
}
.wheel-item input:checked + label {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
  font-weight: 600;
}
.wheel-count {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  border-radius: 20px;
  padding: .15rem .7rem;
  font-size: .82rem;
  font-weight: 700;
  margin-left: .5rem;
}

/* ── Step 2 — Likert ─────────────────────────────────────────── */
.archetype-block {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
}
.archetype-block__header {
  background: var(--dark);
  color: #fff;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.archetype-block__num {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--pink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  flex-shrink: 0;
  color: #fff;
}
.archetype-block__title {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}
.archetype-block__body { padding: 1.5rem; }

.dimension-section { margin-bottom: 1.5rem; }
.dimension-section__title {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pink);
  border-bottom: 2px solid var(--pink-light);
  padding-bottom: .4rem;
  margin-bottom: 1rem;
}

.question-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--border);
}
.question-row:last-child { border-bottom: none; }
.question-row__text { font-size: .9rem; line-height: 1.4; }

.likert { display: flex; gap: .25rem; align-items: center; }
.likert input[type="radio"] { display: none; }
.likert label {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 600;
  cursor: pointer;
  transition: all .15s;
  background: var(--white);
  color: var(--text-muted);
}
.likert label:hover {
  border-color: var(--pink);
  color: var(--pink);
  background: var(--pink-light);
}
.likert input:checked + label {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.likert-labels {
  display: flex;
  justify-content: space-between;
  font-size: .7rem;
  color: var(--text-muted);
  margin-top: .2rem;
}

/* ── Step 3 — Hierarchy ──────────────────────────────────────── */
.hierarchy-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.hierarchy-table th {
  background: var(--dark);
  color: #fff;
  padding: .75rem 1rem;
  text-align: center;
  font-size: .78rem;
  font-weight: 600;
}
.hierarchy-table th:first-child { text-align: left; }
.hierarchy-table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: center;
  vertical-align: middle;
}
.hierarchy-table td:first-child { text-align: left; font-weight: 600; }
.hierarchy-table tr:first-child td { background: var(--pink-light); }
.hierarchy-table tr:last-child td { border-bottom: none; }

.score-bar { display: flex; align-items: center; gap: .5rem; }
.score-bar__track {
  flex: 1; height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.score-bar__fill {
  height: 100%;
  background: var(--pink);
  border-radius: 3px;
}

/* ── Done page ───────────────────────────────────────────────── */
.done-hero {
  text-align: center;
  padding: 3rem 2rem;
}
.done-hero__icon { font-size: 3rem; margin-bottom: 1rem; }
.done-hero__title {
  font-family: var(--font-title);
  font-size: 2.2rem;
  color: var(--dark);
  margin-bottom: .5rem;
}
.done-hero__sub {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2rem 1rem;
  font-size: .78rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  margin-top: 3rem;
}

/* ── Utilities ───────────────────────────────────────────────── */
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }
.text-small  { font-size: .85rem; color: var(--text-muted); }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: .5rem; }
.gap-2       { gap: 1rem; }
.accent-red   { color: var(--pink); }
.accent-pink  { color: var(--pink); }
.accent-orange{ color: var(--pink); }
.bg-navy      { background: var(--dark); }
.bg-cream     { background: var(--pink-light); }
.text-white   { color: #fff; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 600px) {
  .wheel-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .question-row { grid-template-columns: 1fr; }
  .likert { flex-wrap: wrap; }
  h1 { font-size: 1.5rem; }
  .site-header__logo-text { display: none; }
}
