/* ==========================================================================
   L A Steel Solicitors — modern stylesheet
   Palette: brand navy #001040, deep navy #0a1f5c, crimson accent #c8102e
   System font stack only (offline-safe, no webfonts).
   ========================================================================== */

:root {
  --navy: #001040;
  --navy-2: #0a1f5c;
  --navy-3: #132a6b;
  --accent: #c8102e;
  --accent-dark: #a10d25;
  --ink: #1d2537;
  --body: #39435a;
  --muted: #64708a;
  --line: #e2e7f1;
  --bg: #f5f7fb;
  --card: #ffffff;
  --gold: #f4e9cf;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(2, 16, 64, 0.08);
  --shadow-sm: 0 2px 10px rgba(2, 16, 64, 0.07);
  --font: "Segoe UI", "Helvetica Neue", Helvetica, Arial, "Noto Sans", "PingFang SC", "Microsoft YaHei", sans-serif;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; border: 0; }

/* ---------- layout ---------- */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 22px;
}

main { display: block; }

.section { padding: 56px 0; }
.section.tight { padding: 36px 0; }

.section-head { margin: 0 0 26px; }
.section-head h2 { margin: 0 0 8px; }
.section-head p { margin: 0; color: var(--muted); max-width: 720px; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 74px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
}

.brand-logo { height: 52px; width: auto; display: block; }

.brand-text { line-height: 1.2; }
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: 0.2px; }
.brand-text small { display: block; font-size: 0.72rem; color: #b8c4e6; letter-spacing: 0.4px; }

.nav-toggle {
  display: none;
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 9px 16px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  display: block;
  color: #e8ecfa;
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 8px;
  transition: background 0.15s ease, color 0.15s ease;
}
.site-nav a:hover, .site-nav a:focus-visible { background: rgba(255, 255, 255, 0.12); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

/* ---------- hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--navy) 0%, var(--navy-2) 62%, var(--navy-3) 100%);
  color: #fff;
  padding: 72px 0 66px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -140px;
  top: -140px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.28), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 780px; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffd9de;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 999px;
  margin: 0 0 18px;
}
.hero h1 { margin: 0 0 16px; color: #fff; }
.hero p.lead { font-size: 1.13rem; color: #ccd6f2; margin: 0 0 28px; max-width: 640px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(200, 16, 46, 0.35); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.55); }
.btn-ghost:hover, .btn-ghost:focus-visible { border-color: #fff; background: rgba(255, 255, 255, 0.08); }
.btn-light { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-light:hover, .btn-light:focus-visible { background: #eef1fa; }

/* ---------- fact strip ---------- */
.facts {
  background: var(--navy-2);
  color: #dfe6f9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.facts ul {
  list-style: none;
  margin: 0;
  padding: 14px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.facts li::before { content: "✔"; color: #7fd39a; margin-right: 9px; font-size: 0.85rem; }

/* ---------- page head (inner pages) ---------- */
.page-head {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  padding: 44px 0 40px;
}
.page-head h1 { color: #fff; margin: 6px 0 10px; }
.page-head p { color: #c8d2ee; margin: 0; max-width: 720px; }

.breadcrumb { font-size: 0.82rem; color: #9fb0dd; margin: 0 0 4px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li { display: inline-flex; gap: 6px; align-items: center; }
.breadcrumb li + li::before { content: "›"; color: #6d7fb3; }
.breadcrumb a { color: #c3cdf0; text-decoration: none; }
.breadcrumb a:hover, .breadcrumb a:focus-visible { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: #fff; font-weight: 600; }

/* ---------- headings ---------- */
h1, h2, h3, h4 { color: var(--ink); line-height: 1.25; font-family: var(--font); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800; letter-spacing: -0.3px; }
h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: -0.2px; }
h3 { font-size: 1.13rem; font-weight: 700; }
p { margin: 0 0 1em; }

/* ---------- cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card .icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-3) 100%);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  margin: 0 0 16px;
}
.card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.card p { margin: 0 0 14px; font-size: 0.92rem; color: var(--body); }
.card .more { margin-top: auto; font-size: 0.9rem; font-weight: 700; color: var(--accent); text-decoration: none; }
.card .more:hover, .card .more:focus-visible { text-decoration: underline; }
.card ul { margin: 0 0 14px; padding-left: 18px; font-size: 0.92rem; }
.card ul li { margin-bottom: 4px; }

/* ---------- split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: start;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.panel.navy { background: var(--navy); color: #dfe6f9; border: 0; }
.panel.navy h2, .panel.navy h3 { color: #fff; }
.panel.navy a { color: #ffd9de; }

.check-list { list-style: none; margin: 0 0 18px; padding: 0; }
.check-list li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.check-list li::before {
  content: "✔";
  position: absolute; left: 0; top: 0;
  color: var(--accent);
  font-weight: 800;
}

/* ---------- steps ---------- */
.steps { counter-reset: step; list-style: none; margin: 0; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 22px 58px;
  min-height: 44px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -2px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.steps li::after {
  content: "";
  position: absolute; left: 19px; top: 42px; bottom: 4px;
  width: 2px; background: var(--line);
}
.steps li:last-child::after { display: none; }
.steps h3 { margin: 6px 0 4px; }
.steps p { margin: 0; font-size: 0.94rem; }

/* ---------- contact strip ---------- */
.contact-strip { background: var(--navy); color: #dfe6f9; padding: 46px 0; }
.contact-strip h2 { color: #fff; }
.contact-strip a { color: #ffd9de; text-decoration: none; font-weight: 700; }
.contact-strip a:hover, .contact-strip a:focus-visible { text-decoration: underline; }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
  margin-top: 20px;
}
.contact-grid .item strong { display: block; color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.faq-list summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 44px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  position: absolute; right: 18px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.3rem; color: var(--accent);
  transition: transform 0.15s ease;
}
.faq-list details[open] summary::after { content: "–"; }
.faq-list .answer { padding: 0 20px 18px; font-size: 0.95rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.data {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  font-size: 0.93rem;
}
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--navy); color: #fff; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.8px; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:nth-child(even) { background: #f8fafd; }

/* ---------- content prose ---------- */
.prose { max-width: 800px; }
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 26px; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.lead { font-size: 1.08rem; color: var(--body); }
.note {
  background: var(--gold);
  border: 1px solid #e8d5a4;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.92rem;
  color: #5c4a1a;
}

/* ---------- forms ---------- */
.form-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 34px;
  max-width: 860px;
}
fieldset {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 20px 20px;
  margin: 0 0 24px;
}
legend { font-weight: 800; color: var(--navy); padding: 0 8px; font-size: 1rem; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.88rem; font-weight: 700; color: var(--ink); margin-bottom: 5px; }
.field .hint { font-weight: 400; color: var(--muted); font-size: 0.8rem; }
input[type="text"], input[type="email"], input[type="tel"], input[type="date"], textarea, select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 11px 14px;
  border: 1.5px solid #ccd4e4;
  border-radius: 8px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--navy-3);
  box-shadow: 0 0 0 3px rgba(19, 42, 107, 0.15);
}
textarea { resize: vertical; min-height: 90px; }
.form-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.form-note { font-size: 0.85rem; color: var(--muted); }
.sent-note { display: none; background: #e8f7ee; border: 1px solid #b5e0c3; color: #1d6a3c; padding: 14px 18px; border-radius: 10px; margin-top: 18px; }
.sent-note.show { display: block; }

/* ---------- team / profile ---------- */
.person { border-left: 4px solid var(--accent); padding: 4px 0 4px 18px; margin: 0 0 26px; }
.person h3 { margin: 0 0 6px; font-size: 1.12rem; }
.person .role { color: var(--muted); font-size: 0.85rem; font-weight: 600; margin: 0 0 8px; }
.person p { margin: 0; font-size: 0.95rem; }

/* ---------- info grid (contact page) ---------- */
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: #b9c4e2; margin-top: 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 34px;
  padding: 50px 0 34px;
}
.site-footer h3 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 1.2px; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c9d3f0; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover, .site-footer a:focus-visible { color: #fff; text-decoration: underline; }
.site-footer .about-blurb { font-size: 0.92rem; line-height: 1.7; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 18px 0 22px;
  font-size: 0.82rem;
  color: #8fa0cc;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}
.footer-bottom a { color: #aebadf; }

/* ---------- misc ---------- */
.anchor-offset { scroll-margin-top: 90px; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.toc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 34px;
}
.toc h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 1.1px; color: var(--muted); margin: 0 0 10px; }
.toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.toc a { color: var(--navy-3); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.toc a:hover, .toc a:focus-visible { text-decoration: underline; }

address { font-style: normal; }

/* ---------- resources / recommended reading ---------- */
.rec-badge {
  display: inline-block;
  background: var(--gold);
  color: #5c4a1a;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}
.recommend-intro { margin-top: 8px; }
.resources-meta { margin-top: 16px; }

.resource-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.resource-list li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}
.resource-list .r-title {
  display: block;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.96rem;
  text-decoration: none;
  line-height: 1.4;
}
.resource-list .r-title::after {
  content: " \2197";
  font-size: 0.82em;
  color: var(--accent);
}
.resource-list .r-title:hover,
.resource-list .r-title:focus-visible { color: var(--navy-3); }
.resource-list .r-desc { margin: 0; font-size: 0.88rem; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    width: 100%;
    flex-basis: 100%;
    padding: 6px 0 14px;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 12px 14px; }
  .header-inner { min-height: 64px; }
  .brand-logo { height: 42px; }
  .hero { padding: 48px 0 44px; }
}

@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .section { padding: 40px 0; }
  .form-card { padding: 22px 18px; }
  .facts ul { gap: 8px 20px; font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}