/* ============================================================
   Exit Readiness Scorecard Dashboard — Shared Styles
   Navy #0B1F35 | Gold #C9A84C | Matching exitstrategyscorecard.com
   ============================================================ */

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

:root {
  --navy:    #0B1F35;
  --navy-mid:#153050;
  --gold:    #C9A84C;
  --gold-lt: #e6c97a;
  --white:   #ffffff;
  --off-white:#f8f6f1;
  --gray-lt: #f0f0f0;
  --gray:    #888;
  --text:    #1a1a1a;
  --border:  #ddd;
  --red:     #c0392b;
  --yellow:  #d4ac0d;
  --green:   #1a6b3c;
  --radius:  8px;
  --shadow:  0 2px 12px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
}

body {
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
}

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

/* ── NAV ─────────────────────────────────────────────────── */
.app-nav {
  background: var(--navy);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.app-nav .brand {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.app-nav .brand span { color: var(--gold); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.75);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); text-decoration: none; }
.nav-btn {
  background: var(--gold);
  color: var(--navy) !important;
  padding: 8px 18px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.85rem !important;
}
.nav-btn:hover { background: var(--gold-lt); text-decoration: none !important; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-align: center;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--navy);
}
.btn-primary:hover { background: var(--gold-lt); text-decoration: none; color: var(--navy); }
.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 2px solid var(--gold);
}
.btn-secondary:hover { background: rgba(201,168,76,0.1); text-decoration: none; }
.btn-navy {
  background: var(--navy);
  color: var(--white);
}
.btn-navy:hover { background: var(--navy-mid); text-decoration: none; color: var(--white); }
.btn-sm { padding: 8px 18px; font-size: 0.875rem; }
.btn-lg { padding: 18px 36px; font-size: 1.1rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ── CARDS ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 20px 24px; }

/* ── FORMS ───────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--navy);
}
.form-input, .form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  background: var(--white);
}
.form-input:focus, .form-select:focus {
  outline: none;
  border-color: var(--gold);
}
.form-hint {
  font-size: 0.8rem;
  color: var(--gray);
  margin-top: 4px;
}
.form-error {
  background: #fdecea;
  color: var(--red);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  margin-bottom: 16px;
  display: none;
}
.form-error.show { display: block; }

/* ── BADGES / PILLS ──────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── SCORE RING ──────────────────────────────────────────── */
.score-ring-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto;
}
.score-ring-wrap canvas { position: absolute; top: 0; left: 0; }
.score-ring-inner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}
.score-ring-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.score-ring-label {
  font-size: 0.7rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── PILLAR BARS ─────────────────────────────────────────── */
.pillar-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.pillar-bar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  width: 175px;
  flex-shrink: 0;
}
.pillar-bar-track {
  flex: 1;
  height: 10px;
  background: var(--gray-lt);
  border-radius: 100px;
  overflow: hidden;
}
.pillar-bar-fill {
  height: 100%;
  border-radius: 100px;
  transition: width 1s ease;
}
.pillar-bar-score {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}
.pillar-bar-health {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 100px;
  width: 80px;
  text-align: center;
  flex-shrink: 0;
}

/* ── PROGRESS BAR (assessment) ───────────────────────────── */
.progress-bar-wrap {
  background: var(--gray-lt);
  height: 6px;
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 8px;
}
.progress-bar-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 100px;
  transition: width 0.3s ease;
}

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid var(--border); margin: 32px 0; }

/* ── SECTION ─────────────────────────────────────────────── */
.section { padding: 64px 24px; }
.section-sm { padding: 32px 24px; }
.container { max-width: 960px; margin: 0 auto; }
.container-sm { max-width: 600px; margin: 0 auto; }
.container-md { max-width: 760px; margin: 0 auto; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}
.hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; }
.hero h1 span { color: var(--gold); }
.hero p { font-size: 1.1rem; color: rgba(255,255,255,0.8); max-width: 600px; margin: 0 auto 32px; }

/* ── ALERT ───────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
}
.alert-success { background: #e8f5ee; color: var(--green); border-left: 4px solid var(--green); }
.alert-warning { background: #fef3e8; color: #8a4a00; border-left: 4px solid var(--gold); }
.alert-error   { background: #fdecea; color: var(--red);   border-left: 4px solid var(--red); }

/* ── GRID ────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }

/* ── STAT BOX ────────────────────────────────────────────── */
.stat-box {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow);
}
.stat-box .stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .stat-label {
  font-size: 0.8rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── ANSWER OPTIONS (assessment) ─────────────────────────── */
.answer-options { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.answer-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.15s;
  background: var(--white);
}
.answer-option:hover { border-color: var(--gold); background: #fdf8ed; }
.answer-option.selected {
  border-color: var(--gold);
  background: #fdf8ed;
}
.answer-option input[type="radio"] { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; }
.answer-option .answer-text { font-size: 0.95rem; }

/* ── QUESTION CARD ───────────────────────────────────────── */
.question-card { display: none; }
.question-card.active { display: block; }
.question-pillar-tag {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.question-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.4;
}
.question-why {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 0;
  font-style: italic;
}

/* ── DOLLAR GAP DISPLAY ──────────────────────────────────── */
.gap-box {
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
}
.gap-box .gap-label { font-size: 0.85rem; color: rgba(255,255,255,0.65); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.gap-box .gap-amount { font-family: 'Playfair Display', serif; font-size: 2.4rem; font-weight: 700; color: var(--gold); line-height: 1; }

/* ── FOOTER ──────────────────────────────────────────────── */
.app-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.5);
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  margin-top: auto;
}
.app-footer a { color: var(--gold); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 640px) {
  .app-nav { padding: 0 16px; }
  .app-nav .brand { font-size: 0.9rem; }
  .nav-links { gap: 12px; }
  .section { padding: 40px 16px; }
  .card { padding: 20px; }
  .pillar-bar-label { width: 120px; font-size: 0.78rem; }
}
