/* =====================================================================
 * JurisDeed · LA Collector Hub — Brand Foundation
 * ---------------------------------------------------------------------
 * Audience: Louisiana parish tax collectors.
 * Tone: institutional, calm, lawyerly, generous-with-information.
 * Brand: per CANONICAL JurisDeed Brand Kit (2026-06-06).
 *   Primary: JurisDeed Navy #111144 (true navy; replaces deprecated #131836)
 *   Accent:  Sandy Gold #D4BD8A
 *   Display: Lato 700/900 · Body/UI: Inter 400/500/600/700
 *   Pairing: navy + gold + white space — light-first layouts with
 *            navy/gold accents.
 * =====================================================================
 */

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(17, 17, 68, 0.25);
  text-underline-offset: 3px;
  transition: color 0.15s, text-decoration-color 0.15s;
}
a:hover {
  color: var(--navy-light);
  text-decoration-color: var(--gold);
}
button { font-family: inherit; cursor: pointer; }

/* ---------- Canonical Tokens (JurisDeed Brand Kit, 2026-06-06) ---------- */
:root {
  /* Primary — Navy */
  --navy: #111144;            /* JurisDeed Navy — primary */
  --navy-light: #1E1E7A;      /* hover / active */
  --navy-deep: #0B0F24;       /* deepest backgrounds / overlays */
  --hero-gradient-from: #0E0E3C;
  --hero-gradient-to:   #1C1C72;
  --navy-soft: rgba(17, 17, 68, 0.08);

  /* Accent — Gold */
  --gold: #D4BD8A;            /* Sandy Gold */
  --gold-dark: #A8915F;       /* hover / borders */
  --gold-light: #EFE6D2;      /* soft fills / chips */

  /* Neutrals */
  --ink: #0F172A;             /* primary text on light */
  --slate: #475569;           /* secondary text */
  --slate-light: #64748B;     /* tertiary text / labels */
  --blue-gray: #94A3B8;       /* muted / captions */
  --line: #E2E8F0;            /* borders */
  --line-soft: #EEF2F6;       /* subtle dividers */
  --white: #FFFFFF;
  --bg-soft: #F8F9FB;         /* alternating section background */
  --cream: #F8F7F2;           /* warm neutral background */

  /* Status / utility (kept minimal and tonal to brand) */
  --success: #1e6f5c;
  --warn: #b3791f;
  --danger: #9b2c2c;

  /* Typography stacks */
  --font-display: 'Lato', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'IBM Plex Mono', 'JetBrains Mono', ui-monospace, monospace;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 20px; --s-6: 24px; --s-7: 32px; --s-8: 40px;
  --s-9: 56px; --s-10: 80px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 22px;

  /* Shadow */
  --sh-1: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-2: 0 4px 18px rgba(15, 23, 42, 0.08);
  --sh-3: 0 12px 40px rgba(15, 23, 42, 0.14);
}

/* ---------- Heading defaults ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -0.015em;
  color: var(--navy);
  line-height: 1.15;
}

/* ---------- Layout shells ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--s-6); }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--s-6); }

/* ---------- Top brand bar ---------- */
.brandbar {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
  padding: var(--s-4) 0;
  position: sticky; top: 0; z-index: 50;
  box-shadow: var(--sh-2);
}
.brandbar-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--s-3); text-decoration: none; color: #fff; }
.brand:hover { color: #fff; text-decoration: none; }
.brand-mark { width: 36px; height: 36px; color: var(--gold); }
.brand-name {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.18rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.brand-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.72);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Personalized greeting on the right */
.greeting { text-align: right; font-size: 0.84rem; line-height: 1.4; min-width: 200px; }
.greeting-eyebrow {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.greeting-name {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fff;
  font-size: 0.98rem;
  letter-spacing: 0;
}
.greeting-parish { color: var(--gold-light); font-weight: 500; font-size: 0.84rem; }

/* ---------- Navigation ---------- */
.subnav {
  background: var(--navy-light);
  border-bottom: 1px solid var(--navy-deep);
  position: sticky; top: 78px; z-index: 40;
}
.subnav-inner { display: flex; align-items: center; gap: var(--s-2); overflow-x: auto; padding: 0; scrollbar-width: thin; }
.navlink {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  color: rgba(255, 255, 255, 0.80);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.navlink:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.navlink[aria-current="page"] {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: rgba(212, 189, 138, 0.08);
}

/* ---------- Page header ---------- */
.page-hero {
  padding: var(--s-9) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
}
.page-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--navy);
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.page-lede { font-size: 1.05rem; color: var(--slate); margin-top: var(--s-4); max-width: 720px; line-height: 1.6; }

/* ---------- Section ---------- */
.section { padding: var(--s-9) 0; }
.section-tight { padding: var(--s-7) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.section-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--navy);
  letter-spacing: -0.015em;
  margin-bottom: var(--s-4);
}
.section-lede { font-size: 1rem; color: var(--slate); max-width: 720px; margin-bottom: var(--s-6); }

/* ---------- Cards & tiles ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: var(--sh-1);
}
.card-tight { padding: var(--s-4); }
.card-feature {
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border-left: 4px solid var(--gold);
}

.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
}

.tile {
  display: flex; flex-direction: column; gap: var(--s-3);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
  text-decoration: none;
  color: inherit;
}
.tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-2);
  border-color: var(--gold);
  text-decoration: none;
}
.tile-icon { width: 40px; height: 40px; color: var(--gold-dark); }
.tile-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.005em;
}
.tile-body { font-size: 0.93rem; color: var(--slate); flex: 1; }
.tile-meta {
  font-size: 0.78rem;
  color: var(--slate-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  padding: var(--s-3) var(--s-5);
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.92rem;
  background: var(--white);
  color: var(--navy);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  letter-spacing: 0.01em;
}
.btn:hover {
  background: var(--bg-soft);
  border-color: var(--navy);
  color: var(--navy);
  text-decoration: none;
}
.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-primary:hover {
  background: var(--navy-light);
  color: #fff;
  border-color: var(--navy-light);
}
.btn-gold {
  background: var(--gold);
  color: var(--navy-deep);
  border-color: var(--gold-dark);
}
.btn-gold:hover {
  background: var(--gold-dark);
  color: var(--white);
  border-color: var(--gold-dark);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
  color: #fff;
}
.btn-lg { padding: var(--s-4) var(--s-6); font-size: 1rem; }
.btn-sm { padding: var(--s-2) var(--s-3); font-size: 0.82rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: var(--s-2); }
.field label { font-size: 0.82rem; font-weight: 600; color: var(--ink); letter-spacing: 0.01em; }
.field input, .field select, .field textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(17, 17, 68, 0.10);
}
.field input[readonly] { background: var(--bg-soft); color: var(--slate-light); }
.field-hint { font-size: 0.78rem; color: var(--slate-light); font-weight: 400; }

/* ---------- Pills & badges ---------- */
.pill {
  display: inline-flex; align-items: center; gap: var(--s-1);
  padding: var(--s-1) var(--s-3);
  background: var(--bg-soft);
  color: var(--slate);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
}
.pill-gold { background: var(--gold-light); color: var(--navy-deep); border-color: var(--gold); }
.pill-success { background: #d8f0e6; color: var(--success); border-color: #b8e3d2; }
.pill-warn { background: #fbe7c6; color: var(--warn); border-color: #f3d6a3; }
.pill-info { background: #dbe3fb; color: #1d4ed8; border-color: #c3d1f6; }
.pill-locked { background: var(--navy); color: var(--gold); border-color: var(--navy-deep); }

/* ---------- Stat blocks ---------- */
.stats { display: grid; gap: var(--s-4); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s-5); }
.stat-label { font-size: 0.74rem; font-weight: 600; color: var(--slate-light); text-transform: uppercase; letter-spacing: 0.08em; }
.stat-value { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; color: var(--navy); margin-top: var(--s-2); line-height: 1; letter-spacing: -0.01em; }
.stat-meta { font-size: 0.82rem; color: var(--slate-light); margin-top: var(--s-2); }

/* ---------- Timeline (cycle page) ---------- */
.timeline { position: relative; padding-left: 36px; }
.timeline::before {
  content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px;
  width: 2px; background: linear-gradient(180deg, var(--gold) 0%, var(--gold-dark) 50%, var(--navy) 100%);
  border-radius: 2px;
}
.timeline-month { position: relative; padding-bottom: var(--s-7); }
.timeline-month::before {
  content: ""; position: absolute; left: -28px; top: 10px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--navy);
  box-shadow: 0 0 0 3px var(--white);
}
.timeline-month-eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--gold-dark);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: var(--s-2);
}
.timeline-month-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.timeline-milestone {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4) var(--s-5);
  margin-top: var(--s-3);
  border-left: 4px solid var(--gold);
}
.timeline-milestone.is-critical { border-left-color: var(--danger); background: #fff8f6; }
.timeline-milestone.is-required { border-left-color: var(--warn); }
.timeline-milestone-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--s-2);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  letter-spacing: -0.005em;
}
.timeline-milestone-body { font-size: 0.92rem; color: var(--slate); }
.timeline-milestone-cite { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate-light); margin-top: var(--s-2); }

/* ---------- Calendar grid ---------- */
.calendar { display: grid; gap: var(--s-2); grid-template-columns: 1fr; }
@media (min-width: 720px) { .calendar { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .calendar { grid-template-columns: repeat(3, 1fr); } }
.cal-month {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
}
.cal-month-header {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-2);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  letter-spacing: -0.005em;
}
.cal-month-count { font-size: 0.78rem; color: var(--slate-light); font-weight: 600; }
.cal-row { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-2) 0; border-top: 1px dashed var(--line); font-size: 0.88rem; }
.cal-row:first-of-type { border-top: none; }
.cal-day { font-family: var(--font-mono); font-weight: 700; color: var(--navy); min-width: 36px; }
.cal-jur { flex: 1; }
.cal-jur a { color: var(--navy); }
.cal-platform { font-size: 0.74rem; padding: 2px 8px; border-radius: 999px; font-weight: 600; }

/* Platform color tags */
.plat-zeus { background: #dbe3fb; color: #1d4ed8; }
.plat-govease { background: #cdebde; color: #047857; }
.plat-bid4 { background: #e4d8f9; color: #6d28d9; }
.plat-laf { background: #cce7e4; color: #0f766e; }
.plat-inperson { background: #e2e6ed; color: #475569; }
.plat-tbd { background: #fbe7c6; color: #92400e; }

/* ---------- Footer ---------- */
.footer {
  padding: var(--s-9) 0 var(--s-7);
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: rgba(255, 255, 255, 0.80);
  margin-top: var(--s-9);
}
.footer a { color: var(--gold-light); }
.footer a:hover { color: var(--gold); }
.footer-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--s-3);
  font-weight: 700;
}
.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ---------- Gate page (index.html) ---------- */
.gate-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: var(--s-6);
  background: linear-gradient(180deg, var(--hero-gradient-from) 0%, var(--hero-gradient-to) 100%);
  color: #fff;
}
.gate-card {
  background: var(--white);
  color: var(--ink);
  max-width: 520px; width: 100%;
  padding: var(--s-9) var(--s-7);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-3);
  border-top: 6px solid var(--gold);
}
.gate-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.8rem;
  color: var(--navy);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}
.gate-lede { color: var(--slate); margin-bottom: var(--s-6); }
.gate-status {
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  margin-top: var(--s-4);
  font-size: 0.92rem;
}
.gate-status.is-error { background: #fdecea; color: var(--danger); border: 1px solid #f5b7b1; }
.gate-status.is-info { background: var(--bg-soft); color: var(--navy); border: 1px solid var(--line); }

/* ---------- Locked tiles (integrations) ---------- */
.locked-tile {
  position: relative;
  background: linear-gradient(180deg, var(--white) 0%, var(--bg-soft) 100%);
  border: 1px dashed var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  overflow: hidden;
}
.locked-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(17, 17, 68, 0.6);
  color: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
  border-radius: var(--r-lg);
  padding: var(--s-5);
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  flex-direction: column; gap: var(--s-3);
}
.locked-tile:hover .locked-overlay { opacity: 1; }
.locked-tile .tile-title { color: var(--slate-light); }

/* ---------- Print sheet (calculator) ---------- */
@media print {
  .brandbar, .subnav, .footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .container { max-width: 100%; padding: 0; }
  .card, .tile { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.tabular { font-variant-numeric: tabular-nums; }
.muted { color: var(--slate-light); }
.mono { font-family: var(--font-mono); }
.mt-1 { margin-top: var(--s-1); } .mt-2 { margin-top: var(--s-2); } .mt-3 { margin-top: var(--s-3); } .mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); } .mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.mb-1 { margin-bottom: var(--s-1); } .mb-2 { margin-bottom: var(--s-2); } .mb-3 { margin-bottom: var(--s-3); } .mb-4 { margin-bottom: var(--s-4); } .mb-5 { margin-bottom: var(--s-5); } .mb-6 { margin-bottom: var(--s-6); } .mb-7 { margin-bottom: var(--s-7); }
.hidden { display: none !important; }
.flex { display: flex; gap: var(--s-3); }
.flex-wrap { flex-wrap: wrap; }
.flex-between { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); }
