/* Immigr8 Client Portal - shared styles (IMMIGR8-338).
 * Mirrors Polarity's clients site pattern with Immigr8 brand-spice
 * (orange #f97316 + Sora typography). Pages share this stylesheet
 * so visual consistency holds across the district roster + each
 * district's proposal page. */

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

:root {
  --brand: #f97316;          /* Immigr8 orange */
  --brand-dark: #c2410c;
  --brand-light: #fff7ed;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --muted: #6b7280;
  --line: #e5e7eb;
  --bg: #fafaf9;
  --bg-alt: #f5f5f4;
  --card: #ffffff;
  --success: #16a34a;
  --warning: #d97706;
  --danger: #dc2626;
  --client-accent: var(--brand);
}

html, body {
  font-family: 'Sora', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: 36px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 20px; line-height: 1.3; }

p { color: var(--ink-soft); }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.section { padding: 56px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--ink); color: #fff; }
.section-dark p { color: rgba(255,255,255,0.75); }

.text-xs { font-size: 12px; }
.text-sm { font-size: 14px; }
.text-muted { color: var(--muted); }
.text-light { color: rgba(255,255,255,0.6); }
.text-center { text-align: center; }
.uppercase { text-transform: uppercase; }
.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }

.flex { display: flex; }
.gap-2 { gap: 12px; }
.gap-4 { gap: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mb-4 { margin-bottom: 16px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 720px) {
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 8px;
  background: var(--brand); color: #fff;
  font-weight: 600; font-size: 14px;
  border: none; cursor: pointer;
  transition: background 120ms;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn-outline:hover { background: var(--bg-alt); }

.site-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px; background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-header img { height: 32px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.stat-card { text-align: center; }
.stat-card .value { font-size: 32px; font-weight: 700; color: var(--client-accent); }
.stat-card .label { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Portal roster */
.portal-title { font-size: 40px; margin-bottom: 8px; }
.portal-subtitle { font-size: 16px; color: var(--muted); }
.portal-search {
  max-width: 560px; margin: 32px auto 24px;
}
.portal-search input {
  width: 100%; padding: 14px 18px; font-size: 15px;
  border: 1px solid var(--line); border-radius: 10px;
  font-family: inherit;
}
.portal-search input:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.portal-results { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.client-card {
  display: block; padding: 20px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; text-decoration: none; color: var(--ink);
  transition: transform 150ms, box-shadow 150ms;
}
.client-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  text-decoration: none;
}
.client-card h3 { font-size: 17px; margin-bottom: 4px; }
.client-card .meta { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.client-card .pill {
  display: inline-block; padding: 3px 10px; font-size: 11px;
  border-radius: 999px; font-weight: 600;
  background: var(--brand-light); color: var(--brand-dark);
}
.client-card .pill.active { background: #d1fae5; color: #047857; }
.client-card .pill.negotiation { background: #fef3c7; color: #92400e; }
.client-card .pill.proposal { background: #dbeafe; color: #1e40af; }
.client-card .pill.closed { background: #f3f4f6; color: var(--muted); }

.portal-footer {
  text-align: center; padding: 32px 24px 56px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 13px; color: var(--muted);
}
.portal-footer-meta { font-size: 12px; margin-top: 6px; }

/* Proposal stage tracker */
.stage-tracker {
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px; background: #fff;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap; gap: 8px;
}
.stage-step {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted);
  white-space: nowrap;
}
.stage-step.done { color: var(--ink); font-weight: 600; }
.stage-step.current .stage-dot { background: var(--client-accent); animation: pulse 1.8s ease-in-out infinite; }
.stage-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--line);
}
.stage-step.done .stage-dot { background: var(--client-accent); }
.stage-line {
  width: 32px; height: 2px; background: var(--line);
}
.stage-line.done { background: var(--client-accent); }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }

.no-print { /* visible on screen; hidden when printing */ }
@media print { .no-print { display: none; } }
