/* Beacon Realty Law Group — shared visual identity.
   Deep navy + brushed gold, warm ivory background. Distinct from the
   pine/brass legal-intake look used elsewhere in this product family —
   this one is meant to read as "premium real estate," not generic law
   firm. */

:root {
  --navy: #13233f;
  --navy-dark: #0b1730;
  --navy-light: #24406b;
  --gold: #c8a15c;
  --gold-light: #e2c48b;
  --cream: #faf8f4;
  --cream-dark: #f0ebe0;
  --ink: #1c2430;
  --muted: #6b7280;
  --danger: #b1473a;
  --success: #2f6f4e;
  --warning: #b8823a;
  --info: #2f5f8f;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(19, 35, 63, 0.12);
  --shadow-sm: 0 2px 10px rgba(19, 35, 63, 0.08);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy);
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}

.mono { font-family: 'IBM Plex Mono', 'Courier New', monospace; }
a { color: var(--navy); }
button { font-family: inherit; cursor: pointer; }

/* ---------- Top brand bar ---------- */
.brand-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--cream);
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}

.brand-bar .firm-name {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.3rem;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-bar .firm-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-dark);
  font-weight: 700;
  font-size: 1.05rem;
  font-family: 'Playfair Display', Georgia, serif;
  flex-shrink: 0;
}

.brand-bar .firm-name small {
  display: block;
  font-family: 'Inter', sans-serif;
  font-size: 0.66rem;
  color: var(--gold-light);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
  font-weight: 500;
}

/* ---------- AI badge, used in several places ---------- */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, rgba(200,161,92,0.18), rgba(200,161,92,0.06));
  border: 1px solid rgba(200,161,92,0.45);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 10px 3px 8px;
  border-radius: 999px;
}
.ai-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,161,92,0.25);
}

/* ---------- Stage tracker ---------- */
.stage-tracker {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin: 18px 0;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage-step {
  flex: 1 1 0;
  min-width: 96px;
  text-align: center;
  position: relative;
  padding-top: 22px;
}

.stage-step .dot {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--cream-dark);
  border: 2px solid #c9c2b1;
  z-index: 2;
}

.stage-step .line {
  position: absolute;
  top: 7px; left: -50%;
  width: 100%; height: 2px;
  background: var(--cream-dark);
  z-index: 1;
}

.stage-step:first-child .line { display: none; }

.stage-step .label {
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
  overflow-wrap: break-word;
}

.stage-step.completed .dot { background: var(--navy); border-color: var(--navy); }
.stage-step.completed .line { background: var(--navy); }
.stage-step.completed .label { color: var(--navy); }

.stage-step.current .dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200, 161, 92, 0.28);
}
.stage-step.current .label { color: var(--navy); font-weight: 700; }

/* ---------- Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px 20px;
}

.case-number-badge {
  display: inline-block;
  background: var(--navy);
  color: var(--cream);
  font-family: 'IBM Plex Mono', monospace;
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

/* ---------- Priority badges ---------- */
.priority-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}
.priority-Urgent { background: rgba(177,71,58,0.12); color: var(--danger); }
.priority-High { background: rgba(184,130,58,0.14); color: var(--warning); }
.priority-Normal { background: rgba(47,95,143,0.12); color: var(--info); }
.priority-Low { background: rgba(107,114,128,0.12); color: var(--muted); }

/* ---------- Case type badges ---------- */
.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 7px;
  background: var(--cream-dark);
  color: var(--navy);
}
