/* Know Your Rights at Work — shared design system (.com + .org, keep both copies identical)
   2026-07-29 redesign: kmm.com-inspired layout (typographic hero, spaced nav,
   calm organized footer) on the warm navy+gold palette — approachable, bilingual-
   forward, no photos, no JS, no external fonts. */

:root {
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --paper: #fdfbf7;
  --card: #ffffff;
  --accent: #b45309;        /* warm amber — actions */
  --accent-dark: #92400e;
  --brand: #1e3a5f;         /* deep navy — headers */
  --brand-deep: #162b47;    /* hero gradient floor */
  --brand-light: #eaf1f8;
  --gold: #e8b566;          /* warm gold — accents, hero rules */
  --gold-soft: #f5c98a;
  --line: #e2e0d8;
  --notice-bg: #fff7ed;
  --notice-line: #fdba74;
  --serif: Georgia, "Times New Roman", "Noto Serif", serif;
}

* { box-sizing: border-box; }

html { font-size: 17px; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
}

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  background: var(--brand);
  color: #fff;
  padding: 1.3rem 1.2rem;
}
.site-header .inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.site-title {
  font-family: var(--serif);
  font-size: 1.55rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.site-title span { color: var(--gold-soft); }
.lang-switch {
  color: var(--gold-soft);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--gold);
  border-radius: 999px;
  padding: 0.3rem 1rem;
  transition: background 0.15s, color 0.15s;
}
.lang-switch:hover { background: var(--gold); color: var(--brand-deep); }
.site-byline {
  /* LC 5433(b)/(d): the true advertiser identified with the brand on every page */
  flex-basis: 100%;
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: #c7d2e0;
}

/* ── Nav — uppercase, letter-spaced, sticky ─────────────────────────────── */
.site-nav {
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 1.2rem;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 3px rgba(30,58,95,0.06);
}
.site-nav .inner {
  max-width: 64rem;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.9rem;
}
.site-nav a {
  color: var(--brand);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  padding: 0.85rem 0 0.7rem;
  border-bottom: 3px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--gold); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--accent); }

/* ── Hero (home pages) ──────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(170deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff;
  padding: 3.2rem 1.2rem 2.8rem;
}
.hero .inner { max-width: 64rem; margin: 0 auto; }
.hero h1 {
  font-family: var(--serif);
  font-size: 2.5rem;
  line-height: 1.18;
  color: #fff;
  margin: 0 0 1rem;
  max-width: 46rem;
}
.hero h1::before {
  content: "";
  display: block;
  width: 4rem;
  height: 5px;
  background: var(--gold);
  border-radius: 2px;
  margin-bottom: 1.3rem;
}
.hero .lede {
  color: #d9e4f0;
  font-size: 1.2rem;
  max-width: 44rem;
  margin: 0 0 1.4rem;
}
.hero .cta-row { margin: 1.6rem 0 0.2rem; }
.hero .btn { margin: 0.3rem 0.7rem 0.3rem 0; }

/* ── Main content ───────────────────────────────────────────────────────── */
main {
  max-width: 64rem;
  margin: 0 auto;
  padding: 1.8rem 1.2rem 3.2rem;
}
h1 {
  font-family: var(--serif);
  font-size: 2.15rem;
  line-height: 1.22;
  color: var(--brand);
  margin: 0.7rem 0 0.9rem;
}
main > h1::after {
  content: "";
  display: block;
  width: 3.5rem;
  height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin-top: 0.7rem;
}
h2 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--brand);
  margin-top: 2.2rem;
}
h3 { font-size: 1.08rem; margin-top: 1.4rem; }
a { color: var(--accent-dark); }
.lede { font-size: 1.16rem; color: var(--ink-soft); max-width: 46rem; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 1.1rem;
  margin: 1.7rem 0;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  display: block;
  box-shadow: 0 1px 2px rgba(30,58,95,0.05);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.card:hover {
  border-top-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30,58,95,0.12);
}
.card h3 { margin: 0 0 0.45rem; font-family: var(--serif); font-size: 1.12rem; color: var(--brand); }
.card p { margin: 0; font-size: 0.95rem; color: var(--ink-soft); }

/* ── Photo band + headshot (photos carried over from the 2012 site) ─────── */
.photo-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 1rem;
  margin: 2rem 0 0.5rem;
}
.photo-band img {
  width: 100%;
  height: 13rem;
  object-fit: cover;
  border-radius: 8px;
  border-bottom: 4px solid var(--gold);
  display: block;
}
.headshot {
  float: right;
  width: 12rem;
  max-width: 42%;
  margin: 0.3rem 0 0.9rem 1.3rem;
}
.headshot img {
  width: 100%;
  border-radius: 8px;
  border-bottom: 4px solid var(--gold);
  display: block;
}
@media (max-width: 480px) {
  .photo-band img { height: 9rem; }
}

/* ── Mileage tool spotlight ─────────────────────────────────────────────── */
.tool-spotlight {
  background: linear-gradient(135deg, #fdf6e9 0%, #faefd9 100%);
  border: 1px solid var(--gold);
  border-left: 6px solid var(--gold);
  border-radius: 8px;
  padding: 1.2rem 1.4rem;
  margin: 1.8rem 0;
}
.tool-spotlight h2 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
}
.tool-spotlight p { margin: 0 0 0.9rem; }
.tool-spotlight .btn { margin: 0; }
.hero .btn.gold {
  background: var(--gold);
  color: var(--brand-deep);
  border: 0;
}
.hero .btn.gold:hover { background: var(--gold-soft); }

/* ── Triage callout ─────────────────────────────────────────────────────── */
.triage {
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
  border-left: 5px solid var(--accent);
  border-radius: 6px;
  padding: 1.1rem 1.3rem;
  margin: 2.2rem 0 1rem;
}
.triage h2, .triage h3 { margin-top: 0; color: var(--accent-dark); font-size: 1.12rem; }
.triage p:last-child { margin-bottom: 0; }

/* ── Steps ──────────────────────────────────────────────────────────────── */
ol.steps { padding-left: 1.4rem; }
ol.steps > li { margin-bottom: 0.9rem; }
ol.steps > li::marker { font-weight: 700; color: var(--accent-dark); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.7rem 1.5rem;
  border-radius: 6px;
  margin: 0.4rem 0.6rem 0.4rem 0;
  transition: background 0.15s;
}
.btn:hover { background: var(--accent-dark); }
.btn.secondary {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn.secondary:hover { background: var(--brand-light); }
.hero .btn.secondary {
  color: #fff;
  border-color: rgba(255,255,255,0.65);
}
.hero .btn.secondary:hover { background: rgba(255,255,255,0.12); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--brand-deep);
  border-top: 4px solid var(--gold);
  color: #c7d2e0;
  font-size: 0.88rem;
  padding: 2.2rem 1.2rem 2.6rem;
  margin-top: 2.5rem;
  line-height: 1.75;
}
.site-footer .inner { max-width: 64rem; margin: 0 auto; }
.site-footer a { color: var(--gold-soft); }
.fraud-notice {
  /* Labor Code § 5432: >= 12pt roman boldface. 1pt = 1.333px; 16px ≈ 12pt.
     The statute prescribes the heading "NOTICE" as part of the statement. */
  font-size: 16px;
  font-weight: 700;
  font-style: normal;
  color: #ffffff;
  background: rgba(255,255,255,0.06);
  border: 1px solid #46536a;
  border-radius: 6px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
}
.site-footer p { margin: 0.55rem 0; }
.fraud-notice-label { letter-spacing: 0.08em; }

/* ── Intake form (firm site only) ───────────────────────────────────────── */
.intake-form { margin: 1.5rem 0; }
.intake-form fieldset {
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  background: var(--card);
  padding: 1.1rem 1.35rem 1.3rem;
  margin: 0 0 1.4rem;
}
.intake-form legend {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--brand);
  padding: 0 0.5rem;
}
.intake-form label { display: block; font-weight: 600; margin: 0.8rem 0 0.3rem; }
.intake-form label .opt { font-weight: 400; color: var(--ink-soft); font-size: 0.9rem; }
.intake-form input[type="text"], .intake-form input[type="tel"],
.intake-form input[type="email"], .intake-form input[type="date"],
.intake-form select, .intake-form textarea {
  width: 100%; box-sizing: border-box; padding: 0.6rem 0.75rem;
  border: 1px solid #b9c0ca; border-radius: 6px; font: inherit; background: #fff;
}
.intake-form input:focus, .intake-form textarea:focus {
  outline: 2px solid var(--gold); outline-offset: 1px;
}
.intake-form textarea { min-height: 6.5rem; resize: vertical; }
.intake-form .choices { display: flex; flex-wrap: wrap; gap: 0.4rem 1.25rem; margin-top: 0.25rem; }
.intake-form .choices label { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 400; margin: 0; }
.intake-form .submit-row { margin-top: 0.6rem; }
.intake-form button {
  font: inherit; font-weight: 700; font-size: 1.05rem; color: #fff;
  background: var(--accent); border: 0; border-radius: 6px;
  padding: 0.9rem 1.9rem; cursor: pointer; transition: background 0.15s;
}
.intake-form button:hover { background: var(--accent-dark); }
.intake-form .fine { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.8rem; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ── Small screens ──────────────────────────────────────────────────────── */
@media (max-width: 480px) {
  html { font-size: 16px; }
  .hero { padding: 2.3rem 1.2rem 2.1rem; }
  .hero h1 { font-size: 1.75rem; }
  h1 { font-size: 1.6rem; }
  .site-nav .inner { gap: 0 1.1rem; }
  .site-nav a { font-size: 0.74rem; padding: 0.7rem 0 0.55rem; }
}
