/* Civil Injury Lawyers — public website.
   Same-origin only: no web fonts, no remote assets, no inline styles. */

:root {
  --navy: #0c1a36;
  --navy-2: #132a52;
  --gold: #c9a227;
  --gold-hover: #d8b335;
  --gold-dark: #8a6d1f;
  --cream: #faf8f3;
  --paper: #ffffff;
  --ink: #1f2229;
  --muted: #5d6470;
  --line: #e2dccc;
  --line-strong: #c8bfa6;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(12, 26, 54, 0.1);
  --max: 1120px;
  --serif: Georgia, "Times New Roman", Times, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold-dark); }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
ul { margin: 0 0 1em; padding-left: 1.2em; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 0.7rem 1rem; font-weight: 700;
}
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ------------------------------------------------------------ top bar + header */
.topbar { background: var(--navy); color: #fff; font-size: 0.92rem; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; padding-bottom: 0.5rem; }
.topbar a { color: #fff; font-weight: 600; text-decoration: none; }
.topbar a:hover { color: var(--gold); }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 243, 0.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 72px; }
.brand img { height: 48px; width: auto; }

.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-strong); border-radius: 8px;
  padding: 0.5rem 0.8rem; font: inherit; font-weight: 600; color: var(--navy); cursor: pointer;
}
.site-nav ul { list-style: none; display: flex; align-items: center; gap: 1.6rem; margin: 0; padding: 0; }
.site-nav a { color: var(--navy); font-weight: 600; text-decoration: none; padding: 0.4rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--gold-dark); box-shadow: 0 2px 0 var(--gold); }
.site-nav .btn { color: var(--navy); box-shadow: none; padding: 0.6rem 1.1rem; }
/* Client Login: quieter than the gold consultation button, but easy to find. */
.site-nav .btn-line { border-color: var(--navy); }
.site-nav .btn-line:hover { background: var(--navy); color: #fff; box-shadow: none; }

/* ------------------------------------------------------------------- buttons */
.btn {
  display: inline-block; padding: 0.9rem 1.5rem; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; text-align: center;
  border: 2px solid transparent; cursor: pointer; line-height: 1.2;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-hover); color: var(--navy); }
.btn-outline { border-color: rgba(255, 255, 255, 0.75); color: #fff; }
.btn-outline:hover { background: #fff; color: var(--navy); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 1.6rem; }

/* ---------------------------------------------------------------------- hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(100deg, rgba(12, 26, 54, 0.94) 0%, rgba(12, 26, 54, 0.8) 48%, rgba(12, 26, 54, 0.4) 100%);
}
.hero .wrap { position: relative; z-index: 2; padding-top: 5.5rem; padding-bottom: 5.5rem; }
.hero h1 { color: #fff; max-width: 16ch; }
.hero .lede { font-size: 1.2rem; max-width: 52ch; color: #e8ecf5; }
.hero .creds { margin-top: 2rem; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; color: #cdd5e6; max-width: 70ch; }
.badge-row { display: flex; gap: 0.5rem; margin-bottom: 1.2rem; }
.badge {
  border: 1px solid var(--gold); color: var(--gold); border-radius: 6px;
  padding: 0.15rem 0.6rem; font-weight: 700; letter-spacing: 0.08em; font-size: 0.85rem;
}

.page-hero { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; }
.page-hero .wrap { padding-top: 4rem; padding-bottom: 4rem; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); }
.page-hero .lede { font-size: 1.15rem; max-width: 62ch; color: #e8ecf5; }
.crumbs { font-size: 0.9rem; margin-bottom: 1rem; color: #cdd5e6; }
.crumbs a { color: var(--gold); text-decoration: none; }

/* ------------------------------------------------------------------ sections */
.section { padding: 4.5rem 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--navy); color: #e8ecf5; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 62ch; margin-bottom: 2.2rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: block; margin-bottom: 0.7rem; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold-dark);
}
.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--gold); }
.muted { color: var(--muted); }

.grid { display: grid; gap: 1.4rem; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: 0.5em; }
.card p:last-child { margin-bottom: 0; }

.stats { background: var(--navy-2); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; padding-top: 2.2rem; padding-bottom: 2.2rem; text-align: center; }
.stat strong { display: block; font-family: var(--serif); font-size: 1.5rem; color: var(--gold); }
.stat span { font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; color: #cdd5e6; }

.pcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.pcard img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.pcard .body { padding: 1.6rem; display: flex; flex-direction: column; flex: 1; }
.pcard ul { columns: 2; column-gap: 1.5rem; }
.pcard .more { margin-top: auto; font-weight: 700; }

.profile { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 3rem; align-items: center; }
.profile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 18%; border-radius: var(--radius); box-shadow: var(--shadow); }

.checks { list-style: none; padding: 0; }
.checks li { position: relative; padding-left: 1.9rem; margin-bottom: 0.7rem; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 0.9rem; height: 0.5rem;
  border-left: 3px solid var(--gold-dark); border-bottom: 3px solid var(--gold-dark); transform: rotate(-45deg);
}

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.steps li { counter-increment: step; position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem 1.6rem 1.6rem 4.4rem; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 1.2rem; top: 1.4rem;
  font-family: var(--serif); font-size: 1.7rem; font-weight: 700; color: var(--gold-dark);
}
.steps h3 { margin-bottom: 0.3em; }

.quote { border-left: 4px solid var(--gold); padding: 0.4rem 0 0.4rem 1.4rem; font-family: var(--serif); font-size: 1.25rem; color: var(--navy); }
.quote cite { display: block; margin-top: 0.6rem; font-family: var(--sans); font-size: 0.95rem; font-style: normal; color: var(--muted); }

details { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 0 1.25rem; margin: 0.7rem 0; }
summary { cursor: pointer; font-weight: 700; color: var(--navy); padding: 1rem 0; }
details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 0.9rem; }
details p { margin-bottom: 1rem; }

.cta-band { background: var(--navy); color: #e8ecf5; text-align: center; }
.cta-band .wrap { padding-top: 4.2rem; padding-bottom: 4.2rem; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 60ch; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; }
.cta-band .fine { margin-top: 1.4rem; font-size: 0.9rem; color: #cdd5e6; }

/* --------------------------------------------------------------------- forms */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
label { display: block; margin: 1.1rem 0 0.35rem; font-weight: 600; font-size: 0.92rem; color: var(--navy); }
input, select, textarea {
  width: 100%; padding: 0.8rem 0.9rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line-strong); border-radius: 8px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold-dark); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fine-print { font-size: 0.88rem; color: var(--muted); margin-top: 1rem; }
.form-card .btn { margin-top: 1.4rem; width: 100%; }
.form-card .btn[disabled] { opacity: 0.6; cursor: wait; }

.notice { display: none; border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.2rem; font-weight: 600; }
.notice.ok { background: #e8f4ea; border: 1px solid #9ccaa4; color: #1d5a2b; }
.notice.err { background: #fbeaea; border: 1px solid #e3a3a3; color: #8a1f1f; }
.notice:target, .notice.show { display: block; }

.info-list { list-style: none; padding: 0; }
.info-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.info-list li:last-child { border-bottom: 0; }
.info-list strong { display: block; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-dark); }
.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; list-style: none; padding: 0; }
.pills li { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.85rem; font-size: 0.9rem; }
.contact-grid { display: grid; grid-template-columns: 1.3fr 0.9fr; gap: 2.4rem; align-items: start; }

/* ---------------------------------------------------------------- legal text */
.legal { max-width: 78ch; }
.legal h2 { font-size: 1.5rem; margin-top: 2em; }
.legal .updated { color: var(--muted); font-size: 0.92rem; }

/* -------------------------------------------------------------------- footer */
.site-footer { background: var(--navy); color: #cdd5e6; font-size: 0.95rem; }
.site-footer .wrap { padding-top: 3.4rem; padding-bottom: 1.6rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.4rem; }
.site-footer h3 { color: #fff; font-family: var(--sans); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.9rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.site-footer a { color: #e8ecf5; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.site-footer img { height: 44px; width: auto; margin-bottom: 1rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: 0.85rem; }
.footer-bottom nav a { margin-left: 1.2rem; }

.callbar { display: none; }

/* --------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .g3, .g4 { grid-template-columns: repeat(2, 1fr); }
  .profile, .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .profile img { max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; padding-bottom: 64px; }
  .topbar { display: none; } /* the sticky call bar below replaces it */
  .nav-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 1.25rem 1.2rem; }
  .site-nav li a { display: block; padding: 0.8rem 0; border-bottom: 1px solid var(--line); box-shadow: none; }
  .site-nav .btn { margin-top: 0.8rem; border-bottom: 0; }
  .site-nav .btn-line { border-bottom: 2px solid var(--navy); }
  .site-header .wrap { position: relative; }
  .hero .wrap { padding-top: 3.6rem; padding-bottom: 3.6rem; }
  .section { padding: 3.2rem 0; }
  .g2, .g3, .g4, .stats .wrap { grid-template-columns: 1fr; }
  .pcard ul { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 1.4rem; }
  .callbar {
    display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--gold); color: var(--navy); text-align: center; font-weight: 800;
    padding: 1rem; text-decoration: none; box-shadow: 0 -4px 16px rgba(12, 26, 54, 0.25);
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .topbar, .site-header, .callbar, .cta-band, .site-footer { display: none; } body { background: #fff; } }

/* ---------------------------------------------- modifiers (no inline styles: CSP) */
.footer-name { color: #fff; }
.badge-row .eyebrow { margin: 0 0 0 0.4rem; align-self: center; }
.badge.on-light { color: var(--gold-dark); border-color: var(--gold-dark); }
.quote.spaced { margin-top: 2.6rem; }
.wrap.narrow { max-width: 820px; }
.wrap.center-narrow { max-width: 640px; text-align: center; }
.card.stack { margin-top: 1.4rem; }
.btn-row.center { justify-content: center; }
