/* Scarborough Lawyers - global stylesheet
   Navy + gold legal palette, system fonts only, mobile-first */

:root {
  --navy-900: #0a1f44;
  --navy-800: #0f2a5c;
  --navy-700: #14306e;
  --navy-500: #2a4a8a;
  --navy-100: #e6ecf6;
  --gold-500: #c9a24a;
  --gold-600: #b08c34;
  --bg: #ffffff;
  --surface: #f5f7fb;
  --surface-2: #eef2f9;
  --text: #0f1830;
  --muted: #4a5670;
  --border: #d9dfeb;
  --success: #1f7a4a;
  --radius: 6px;
  --container: 1200px;
  --shadow-sm: 0 1px 2px rgba(10, 31, 68, 0.06);
  --shadow-md: 0 6px 20px rgba(10, 31, 68, 0.10);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--navy-500); }
h1, h2, h3, h4 { color: var(--navy-900); line-height: 1.2; margin: 0 0 0.6em; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2rem); margin-top: 0.4em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin: 0.3em 0; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
small { font-size: 0.86em; color: var(--muted); }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 1.25rem; max-width: var(--container); margin: 0 auto; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--navy-900); }
.brand svg { width: 36px; height: 36px; flex-shrink: 0; }
.brand-text { font-weight: 700; font-size: 1.05rem; line-height: 1.1; }
.brand-text small { display: block; font-size: 0.7rem; color: var(--muted); font-weight: 500; letter-spacing: 0.04em; text-transform: uppercase; }
.nav-links { display: none; gap: 0.4rem; }
.nav-links a { padding: 0.45rem 0.8rem; border-radius: var(--radius); text-decoration: none; color: var(--navy-900); font-weight: 500; font-size: 0.96rem; }
.nav-links a:hover { background: var(--surface); }
.nav-cta { display: inline-flex; align-items: center; gap: 0.4rem; background: var(--navy-900); color: #fff !important; padding: 0.55rem 1rem; border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
.nav-cta:hover { background: var(--navy-700); color: #fff !important; }
.nav-toggle { display: inline-flex; background: none; border: 1px solid var(--border); border-radius: var(--radius); padding: 0.45rem 0.7rem; cursor: pointer; font-size: 1.2rem; color: var(--navy-900); }
.nav-toggle[aria-expanded="true"] + .nav-links-mobile { display: block; }
.nav-links-mobile { display: none; padding: 0.5rem 1.25rem 1rem; border-top: 1px solid var(--border); background: #fff; }
.nav-links-mobile a { display: block; padding: 0.7rem 0; color: var(--navy-900); text-decoration: none; font-weight: 500; border-bottom: 1px solid var(--border); }
.nav-links-mobile a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav-links { display: flex; align-items: center; }
  .nav-toggle { display: none; }
  .nav-links-mobile { display: none !important; }
}

/* dropdown */
.has-menu { position: relative; }
.has-menu > a::after { content: " ▾"; font-size: 0.7em; }
.menu {
  position: absolute; top: 100%; left: 0; min-width: 240px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 0.4rem; display: none;
}
.has-menu:hover .menu, .has-menu:focus-within .menu { display: block; }
.menu a { display: block; padding: 0.55rem 0.7rem; border-radius: 4px; text-decoration: none; color: var(--navy-900); font-size: 0.95rem; }
.menu a:hover { background: var(--surface); }

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff;
  background: linear-gradient(135deg, rgba(10,31,68,0.92), rgba(15,42,92,0.85)), url("/assets/hero.jpg") center/cover no-repeat;
  padding: 4.5rem 0 5rem;
}
.hero h1 { color: #fff; max-width: 22ch; }
.hero p.lead { font-size: 1.15rem; max-width: 60ch; opacity: 0.92; }
.hero .actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.85rem 1.3rem; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font-size: 1rem; }
.btn-primary { background: var(--gold-500); color: var(--navy-900); }
.btn-primary:hover { background: var(--gold-600); color: #fff; }
.btn-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.5); }
.btn-secondary:hover { background: rgba(255,255,255,0.18); color: #fff; }
.btn-outline { background: #fff; color: var(--navy-900); border: 1.5px solid var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }

/* ---------- Sections ---------- */
section { padding: 3.5rem 0; }
section.alt { background: var(--surface); }
.section-eyebrow { color: var(--gold-600); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.82rem; font-weight: 700; margin-bottom: 0.4rem; }

/* Service tile grid */
.grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none; color: inherit; display: block;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--navy-500); }
.card h3 { color: var(--navy-900); margin: 0 0 0.4rem; }
.card .price { color: var(--gold-600); font-weight: 700; font-size: 1.05rem; margin-bottom: 0.6rem; display: block; }
.card .icon { width: 44px; height: 44px; background: var(--navy-100); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--navy-700); margin-bottom: 0.8rem; font-size: 1.4rem; font-weight: 700; }

/* List highlights */
.checklist { list-style: none; padding: 0; }
.checklist li { padding-left: 1.7rem; position: relative; margin: 0.55rem 0; }
.checklist li::before { content: "✓"; color: var(--success); font-weight: 700; position: absolute; left: 0; top: 0; }

/* Step list */
.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.2rem 3.2rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2.3rem; height: 2.3rem; border-radius: 50%;
  background: var(--navy-900); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* CTA band */
.cta-band {
  background: var(--navy-900); color: #fff; padding: 3rem 0; text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { opacity: 0.9; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* FAQ details */
details {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 0.9rem 1.1rem; margin: 0.6rem 0;
}
details[open] { border-color: var(--navy-500); }
summary { cursor: pointer; font-weight: 600; color: var(--navy-900); list-style: none; position: relative; padding-right: 2rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 1.4rem; color: var(--navy-700); transition: transform 0.2s; }
details[open] summary::after { content: "−"; }
details > p, details > ul { margin-top: 0.7rem; }

/* Footer */
.site-footer {
  background: var(--navy-900); color: #c9d3e8; padding: 3rem 0 1.5rem; margin-top: 3rem;
}
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--gold-500); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.site-footer h4 { color: #fff; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.8rem; }
.site-footer ul { list-style: none; padding: 0; }
.site-footer li { margin: 0.4rem 0; font-size: 0.95rem; }
.legal-row { border-top: 1px solid rgba(255,255,255,0.15); margin-top: 2rem; padding-top: 1rem; font-size: 0.85rem; color: #8a9bbb; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }

/* Bio block */
.bio { display: grid; gap: 1.5rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 700px) { .bio { grid-template-columns: 240px 1fr; } }
.bio img { border-radius: var(--radius); width: 100%; }

/* Calculator */
.calc {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
}
.calc .field { margin-bottom: 1.1rem; }
.calc label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--navy-900); font-size: 0.95rem; }
.calc input[type="number"], .calc select {
  width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border);
  border-radius: var(--radius); font-size: 1rem; background: #fff; color: var(--text);
}
.calc input:focus, .calc select:focus { outline: 2px solid var(--navy-500); outline-offset: 1px; border-color: var(--navy-500); }
.calc .radio-row { display: flex; gap: 1.2rem; }
.calc .radio-row label { font-weight: 500; display: inline-flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.calc-results {
  background: var(--navy-100); border-radius: var(--radius); padding: 1.2rem;
  margin-top: 1rem;
}
.calc-results dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 0.5rem 1rem; }
.calc-results dt { color: var(--muted); }
.calc-results dd { margin: 0; font-weight: 600; color: var(--navy-900); text-align: right; }
.calc-results .total { font-size: 1.3rem; padding-top: 0.7rem; margin-top: 0.5rem; border-top: 2px solid var(--navy-700); }
.calc-results .total dt, .calc-results .total dd { color: var(--navy-900); }

/* Contact */
.info-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(2, 1fr); } }
.info-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.info-card h3 { font-size: 1.05rem; }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: 0.95rem; }
th, td { padding: 0.6rem 0.8rem; text-align: left; border-bottom: 1px solid var(--border); }
th { background: var(--surface); color: var(--navy-900); font-weight: 600; }

/* Trust badges row */
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.badge { background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); color: #fff; padding: 0.4rem 0.8rem; border-radius: 999px; font-size: 0.85rem; }

/* Skip link */
.skip-link { position: absolute; left: -9999px; top: 0; }
.skip-link:focus { left: 0.5rem; top: 0.5rem; background: var(--navy-900); color: #fff; padding: 0.5rem 1rem; z-index: 100; border-radius: var(--radius); }

/* Print */
@media print {
  .site-header, .site-footer, .cta-band, .nav-toggle { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

/* Wide multi-column dropdown menu */
.menu-wide {
  min-width: 720px;
  padding: 1rem;
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.has-menu:hover .menu-wide, .has-menu:focus-within .menu-wide { display: grid; }
.menu-wide .menu-col strong {
  display: block; font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gold-600); margin: 0 0 0.4rem 0.5rem;
}
.menu-wide .menu-col a {
  display: block; padding: 0.4rem 0.5rem; border-radius: 4px;
  font-size: 0.9rem; text-decoration: none; color: var(--navy-900);
}
.menu-wide .menu-col a:hover { background: var(--surface); }
@media (max-width: 1100px) { .menu-wide { min-width: 540px; grid-template-columns: repeat(2, 1fr); } }
