/* ============================================================
   EMPLOYER SHIELD — SHARED STYLES
   Loaded by all pages. Toolkit-specific styles remain inline.
   ============================================================ */

/* Variables */
:root {
  --navy: #0f1b3d;
  --navy-light: #1a2d5a;
  --blue: #1a56a0;
  --blue-light: #2563eb;
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #dcfce7;
  --white: #ffffff;
  --off-white: #f7f8fb;
  --grey: #64748b;
  --grey-light: #e2e8f0;
  --grey-dark: #334155;
  --amber: #f59e0b;
  --amber-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --text: #000000;
  --text-mid: #1a1a1a;
  --text-muted: #4a4a4a;
}

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

/* Typography — follows Home Office Design System */
body {
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  font-size: 19px;
  color: var(--text);
  line-height: 1.6;
  background: var(--off-white);
  min-height: 100vh;
}
@media (max-width: 768px) {
  body { font-size: 16px; }
}

/* ── Site Navigation ─────────────────────────────────────── */
.site-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.nav-inner {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}
.nav-links {
  display: flex;
  list-style: none;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
}
.nav-links a {
  display: block;
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover,
.nav-links a.current {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.25rem;
}
@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--navy);
    flex-direction: column;
    padding: 0.5rem 1rem 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 0.6rem 0.75rem; }
}

/* ── Modal ────────────────────────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  justify-content: center;
  align-items: center;
}
.modal-overlay.active { display: flex; }
.modal-box {
  background: var(--white);
  border-radius: 12px;
  width: 90%;
  max-width: 480px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: modalIn 0.2s ease-out;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
  background: var(--navy);
  color: var(--white);
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  font-size: 1.05rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0 0.25rem;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.15s;
}
.modal-close:hover { opacity: 1; }
.modal-body {
  padding: 1.5rem 1.25rem;
  color: var(--navy);
  font-size: 1rem;
  line-height: 1.6;
}
.modal-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  text-align: right;
}
.modal-btn {
  background: var(--navy);
  color: var(--white);
  border: none;
  padding: 0.6rem 1.5rem;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}
.modal-btn:hover { background: var(--navy-light); }

/* ── Shared Buttons ──────────────────────────────────────── */
.btn-primary {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy-light); }

.btn-green {
  display: inline-block;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}
.btn-green:hover { background: var(--green-dark); }

/* ── Footer ──────────────────────────────────────────────── */
/* ── Footer ──────────────────────────────────────────────── */
footer, .site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
}
footer a, .site-footer a {
  color: #bfdbfe;
  text-decoration: none;
}
footer a:hover, .site-footer a:hover { color: #fff; }
.footer-inner { max-width: 1100px; margin: 0 auto; }
.footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem 1.5rem; margin-bottom: 1rem; }
.footer-disclaimer { color: #64748b; font-size: 0.8rem; line-height: 1.6; }
.footer-links { margin-bottom: 0.75rem; }
.footer-links a { margin: 0 0.75rem; }

/* ── Honesty Box (shared across toolkits) ────────────────── */
.honesty-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 12px;
  padding: 2rem;
  max-width: 800px;
  margin: 2rem auto;
}
.honesty-box h3 { color: #92400e; font-size: 1.1rem; margin-bottom: 0.75rem; }
.honesty-box p { color: #78350f; font-size: 0.9rem; line-height: 1.7; }

/* ── Status Badges ───────────────────────────────────────── */
.status-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
}
.status-live { background: rgba(34,197,94,0.1); color: var(--green-dark); }
.status-soon { background: rgba(234,179,8,0.1); color: #a16207; }
