/**
 * styles.css
 * DISC 2.0 Behavioral Intelligence Assessment
 *
 * Design tokens:
 *   Black:        #0B0B0B
 *   Charcoal:     #2E2E2E
 *   Dark Charcoal:#1A1A1A
 *   Gold:         #C9A44C
 *   Soft Gold:    #E2C675
 *   Warm White:   #F7F4EE
 *   Light Gray:   #E5E1D8
 *
 * Typography:
 *   Display: 'Playfair Display' (serif, authoritative)
 *   Body:    'Inter' (sans-serif, legible)
 */

/* ─── Reset & Base ─────────────────────────────────────────────────────────── */

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

:root {
  --black:      #0B0B0B;
  --charcoal:   #2E2E2E;
  --dark:       #1A1A1A;
  --gold:       #C9A44C;
  --soft-gold:  #E2C675;
  --warm-white: #F7F4EE;
  --light-gray: #E5E1D8;
  --radius:     6px;
  --shadow:     0 2px 16px rgba(0,0,0,0.12);
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--warm-white);
  color: var(--charcoal);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  min-height: 100vh;
}

/* ─── Typography ────────────────────────────────────────────────────────────── */

h1, h2, h3 { font-family: 'Playfair Display', Georgia, serif; }
h1 { font-size: clamp(1.5rem, 4vw, 2.2rem); color: #F7F4EE !important; }
h2 { font-size: clamp(1.2rem, 3vw, 1.7rem); color: var(--black); }
h3 { font-size: 1.1rem; color: var(--black); }

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

#disc2-assessment-wrap h1 {
  color: #F7F4EE !important;
}

/* ─── Header / Nav ──────────────────────────────────────────────────────────── */

.site-header {
  background: var(--black);
  border-bottom: 2px solid var(--gold);
  padding: 0 1.5rem;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.header-brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.header-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1rem;
  color: var(--warm-white);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-subtitle {
  font-size: 0.7rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header-disc-tag {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.15em;
}

/* ─── Progress Bar (assessment only) ───────────────────────────────────────── */

.progress-wrap {
  background: var(--dark);
  padding: 0.6rem 1.5rem;
  border-bottom: 1px solid #333;
}

.progress-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: #333;
  border-radius: 3px;
  overflow: hidden;
}

#progress-bar {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  width: 0%;
  transition: width 0.4s ease;
}

#progress-label {
  font-size: 0.75rem;
  color: var(--soft-gold);
  min-width: 80px;
  text-align: right;
}

.timer-wrap {
  font-size: 0.75rem;
  color: #777;
  min-width: 48px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ─── Main Layout ───────────────────────────────────────────────────────────── */

.page-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ─── Landing / Intro Card ──────────────────────────────────────────────────── */

.intro-hero {
  background: var(--black);
  color: var(--warm-white);
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  border: 1px solid #222;
  position: relative;
  overflow: hidden;
}

.intro-hero::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--soft-gold), var(--gold));
}

.intro-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.intro-hero h1 {
  margin-bottom: 0.4rem;
}

.intro-hero .subtitle {
  font-size: 0.95rem;
  color: var(--light-gray);
  margin-bottom: 1.5rem;
}

.intro-details {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  margin: 1.5rem 0;
  padding: 1.25rem 0;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.intro-detail {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.detail-label {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.detail-value {
  font-size: 0.9rem;
  color: var(--warm-white);
}

.intro-instructions {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.intro-instructions h3 {
  color: var(--gold);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.intro-instructions ol {
  padding-left: 1.25rem;
  color: var(--light-gray);
  font-size: 0.9rem;
  line-height: 1.8;
}

.disclaimer-mini {
  font-size: 0.78rem;
  color: #888;
  line-height: 1.5;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #333;
}

/* ─── Start Button ──────────────────────────────────────────────────────────── */

.btn-gold {
  display: inline-block;
  background: var(--gold);
  color: var(--black);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn-gold:hover { background: var(--soft-gold); text-decoration: none; transform: translateY(-1px); }
.btn-gold:active { transform: translateY(0); }

.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--charcoal);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.85rem 2rem;
  border-radius: var(--radius);
  border: 2px solid var(--light-gray);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.btn-outline:hover { border-color: var(--gold); color: var(--gold); text-decoration: none; }

/* ─── Question Card ─────────────────────────────────────────────────────────── */

.question-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  margin-bottom: 1.5rem;
}

.question-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

#question-number {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}

#question-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--black);
  line-height: 1.4;
  margin-bottom: 1.75rem;
}

/* ─── Selection Instructions ────────────────────────────────────────────────── */

.selection-instructions {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.instruction-tag {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: #555;
}

.instruction-tag .tag-demo {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 2px 8px;
  border-radius: 3px;
}

.tag-demo.most { background: var(--gold); color: var(--black); }
.tag-demo.least { background: var(--charcoal); color: var(--warm-white); }

/* ─── Option Rows ───────────────────────────────────────────────────────────── */

.option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--light-gray);
  margin-bottom: 0.75rem;
  background: var(--warm-white);
  transition: border-color 0.2s, background 0.2s;
}

.option-row:hover { border-color: #ccc; }

.option-row.selected-most {
  border-color: var(--gold);
  background: #fdf8ed;
}

.option-row.selected-least {
  border-color: var(--charcoal);
  background: #f2f0ed;
}

.option-row.selected-most.selected-least {
  /* Should not occur due to validation, but just in case */
  border-color: #e00;
}

.option-text {
  flex: 1;
  font-size: 0.9rem;
  color: var(--charcoal);
  line-height: 1.5;
}

.option-controls {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ─── MOST / LEAST Tag Buttons ──────────────────────────────────────────────── */

.tag-btn {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 5px 12px;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  font-family: 'Inter', sans-serif;
}

.most-btn {
  background: transparent;
  border-color: var(--light-gray);
  color: #999;
}
.most-btn:hover { border-color: var(--gold); color: var(--gold); }
.most-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.least-btn {
  background: transparent;
  border-color: var(--light-gray);
  color: #999;
}
.least-btn:hover { border-color: var(--charcoal); color: var(--charcoal); }
.least-btn.active {
  background: var(--charcoal);
  border-color: var(--charcoal);
  color: var(--warm-white);
}

/* ─── Validation Message ────────────────────────────────────────────────────── */

#validation-message {
  color: #c0392b;
  font-size: 0.82rem;
  min-height: 1.2em;
  margin-top: 0.5rem;
  transition: opacity 0.3s;
}

/* ─── Navigation Buttons ────────────────────────────────────────────────────── */

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.btn-nav {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  border: 2px solid var(--light-gray);
  background: transparent;
  color: var(--charcoal);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-nav:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); }
.btn-nav:disabled { opacity: 0.35; cursor: not-allowed; }

#btn-next {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  font-weight: 700;
  letter-spacing: 0.03em;
}

#btn-next:hover:not(:disabled) { background: var(--soft-gold); border-color: var(--soft-gold); }
#btn-next:disabled { background: var(--light-gray); border-color: var(--light-gray); color: #aaa; }

#btn-next.submit-btn {
  background: var(--black);
  border-color: var(--gold);
  color: var(--gold);
  letter-spacing: 0.05em;
}

#btn-next.submit-btn:hover:not(:disabled) { background: var(--dark); }

/* ─── ── ── ── ── RESULTS PAGE ── ── ── ── ── */

/* ─── Results Header Banner ─────────────────────────────────────────────────── */

.results-hero {
  background: var(--black);
  color: var(--warm-white);
  text-align: center;
  padding: 2.5rem 1.5rem 2rem;
  border-bottom: 3px solid var(--gold);
  margin-bottom: 2.5rem;
}

.results-hero .eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.results-hero h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.4rem, 4vw, 2rem);
  color: var(--warm-white);
  margin-bottom: 0.25rem;
}

.results-hero .sub {
  font-size: 0.9rem;
  color: var(--light-gray);
}

/* ─── Result Sections ───────────────────────────────────────────────────────── */

.result-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.25rem;
  margin-bottom: 1.75rem;
}

.section-eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.section-heading {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: var(--black);
  border-bottom: 1.5px solid var(--light-gray);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
}

.report-summary {
  font-size: 0.92rem;
  line-height: 1.75;
  color: var(--charcoal);
}

.report-summary-small {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 1rem;
}

/* ─── Snapshot Cards ────────────────────────────────────────────────────────── */

.snapshot-section { position: relative; }

.snapshot-meta {
  display: flex;
  gap: 1.5rem;
  font-size: 0.75rem;
  color: #888;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.snapshot-card {
  border-radius: var(--radius);
  padding: 1.25rem 1rem;
  text-align: center;
}

.primary-card {
  background: var(--black);
  color: var(--warm-white);
  border: 1px solid var(--gold);
}

.secondary-card {
  background: var(--dark);
  color: var(--warm-white);
  border: 1px solid #444;
}

.pattern-card {
  background: var(--charcoal);
  color: var(--warm-white);
}

.card-label {
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}

.card-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.card-style-name {
  font-size: 0.75rem;
  color: var(--light-gray);
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.card-pct {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--soft-gold);
}

.card-pattern {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.card-pattern-title {
  font-size: 0.72rem;
  color: var(--light-gray);
  line-height: 1.3;
}

.blend-statement {
  font-size: 0.88rem;
  color: var(--charcoal);
  background: var(--warm-white);
  border-left: 3px solid var(--gold);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-bottom: 1.5rem;
  line-height: 1.55;
}

/* ─── Score Graph ───────────────────────────────────────────────────────────── */

.score-graph {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--light-gray);
}

.graph-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 1rem;
}

.graph-bars { display: flex; flex-direction: column; gap: 0.75rem; }

.graph-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.graph-dim-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 200px;
}

.dim-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--black);
  min-width: 18px;
}

.dim-name {
  font-size: 0.78rem;
  color: #666;
}

.graph-bar-track {
  flex: 1;
  height: 28px;
  background: #eee;
  border-radius: 4px;
  overflow: hidden;
}

.graph-bar-fill {
  height: 100%;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding-left: 8px;
  min-width: 32px;
  transition: width 0.6s ease;
}

.bar-pct {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--black);
  white-space: nowrap;
}

/* ─── Two-Column Lists ──────────────────────────────────────────────────────── */

.two-col-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 1.5rem 0;
}

.list-heading {
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.styled-list {
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.6;
}

.styled-list li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
  border-bottom: 1px solid var(--light-gray);
}

.strengths-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.blindspot-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #aaa;
}

.tip-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.3;
}

/* ─── Report Callouts ───────────────────────────────────────────────────────── */

.report-callout {
  background: #fdf8ed;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--charcoal);
}

.secondary-callout { background: var(--warm-white); }

/* ─── Growth Block ──────────────────────────────────────────────────────────── */

.growth-block {
  background: var(--dark);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-top: 1.25rem;
}

.growth-label {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}

.growth-text {
  font-size: 0.9rem;
  color: var(--warm-white);
  line-height: 1.65;
  margin-bottom: 0.5rem;
}

.growth-question {
  font-size: 0.85rem;
  color: var(--soft-gold);
  line-height: 1.5;
}

/* ─── Section Accents ───────────────────────────────────────────────────────── */

.drives-section { border-left: 4px solid var(--gold); }
.derails-section { border-left: 4px solid var(--charcoal); }
.lead-section { border-left: 4px solid var(--soft-gold); }

/* ─── Adapt Grid ────────────────────────────────────────────────────────────── */

.adapt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

.adapt-card {
  background: var(--warm-white);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1.5px solid var(--light-gray);
}

.adapt-card.adapt-primary {
  border-color: var(--gold);
  background: #fdf8ed;
}

.adapt-letter {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.adapt-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.adapt-tips {
  list-style: none;
  padding: 0;
  font-size: 0.82rem;
  color: var(--charcoal);
  line-height: 1.55;
}

.adapt-tips li {
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
  border-bottom: 1px solid #ddd;
}

.adapt-tips li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-size: 1.2rem;
  line-height: 1.2;
}

.adapt-note {
  font-size: 0.72rem;
  color: var(--gold);
  margin-top: 0.5rem;
  font-style: italic;
}

/* ─── Disclaimer Section ────────────────────────────────────────────────────── */

.disclaimer-section {
  background: var(--warm-white);
  border: 1px solid var(--light-gray);
  box-shadow: none;
}

.disclaimer-heading {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-bottom: 0.75rem;
}

.disclaimer-text {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.disclaimer-book {
  font-size: 0.8rem;
  color: #888;
}

/* ─── Action Bar ────────────────────────────────────────────────────────────── */

.action-bar {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: center;
  margin-top: 2rem;
  flex-wrap: wrap;
}

/* ─── No Result State ───────────────────────────────────────────────────────── */

.no-result {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--charcoal);
}

.no-result h2 { margin-bottom: 0.75rem; }
.no-result p { margin-bottom: 1.5rem; color: #666; }

/* ─── Footer ────────────────────────────────────────────────────────────────── */

.site-footer {
  background: var(--black);
  border-top: 1px solid #222;
  color: #666;
  text-align: center;
  font-size: 0.75rem;
  padding: 1.5rem 1rem;
  line-height: 1.7;
}

.site-footer a { color: var(--gold); }
.site-footer strong { color: #aaa; }

/* ─── Responsive ────────────────────────────────────────────────────────────── */

@media (max-width: 640px) {
  .snapshot-grid { grid-template-columns: 1fr; }
  .two-col-lists { grid-template-columns: 1fr; }
  .adapt-grid { grid-template-columns: 1fr; }
  .graph-dim-label { min-width: 120px; }
  .dim-name { display: none; }
  .question-card { padding: 1.25rem; }
  .result-section { padding: 1.25rem; }
  .intro-hero { padding: 1.75rem 1.25rem; }
  .header-inner { height: 56px; }
  .option-row { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .option-controls { align-self: flex-end; }
}

@media (max-width: 400px) {
  .snapshot-card { padding: 1rem 0.75rem; }
  .card-letter, .card-pattern { font-size: 2rem; }
}

/* ─── Reduced Motion ────────────────────────────────────────────────────────── */

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