/* Rapid Resolution Group — rapidresolutiongroup.com
   Type:  Spectral (display) / IBM Plex Sans (body) / IBM Plex Mono (document control)
   Ground: cool archival paper, biased toward the ink-blue accent. */

:root {
  --paper:     #f5f7f9;
  --paper-2:   #ffffff;
  --panel:     #e9edf2;
  --ink:       #131920;
  --ink-2:     #39434f;
  --muted:     #6b7583;
  --rule:      #ccd4dd;
  --rule-soft: #dfe5eb;
  --accent:    #1f4e79;
  --accent-lo: #4a7ba7;
  --deep:      #101720;
  --deep-ink:  #a7b3c1;
  --deep-pap:  #eef1f5;

  --serif: "Spectral", ui-serif, Georgia, "Times New Roman", serif;
  --sans:  "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --max: 70rem;
  --measure: 37rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.66 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.17;
  letter-spacing: -0.014em;
  color: var(--ink);
  margin: 0 0 .6em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.05rem, 5.2vw, 3.05rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.05rem); }
h3 { font-size: 1.16rem; }

p { margin: 0 0 1.1em; }
p, li { text-wrap: pretty; }

a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: .06em; }
a:hover { color: var(--ink); }
a:focus-visible, summary:focus-visible, .btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

strong { font-weight: 600; }
em { font-style: italic; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 1.25rem; }
.measure { max-width: var(--measure); }
/* a narrow column inside a full-width wrap stays flush left, like every other section */
.wrap.measure { max-width: var(--max); }
.wrap.measure > * { max-width: var(--measure); }

/* mono utility label — the document-control voice of the page */
.eyebrow {
  font-family: var(--mono);
  font-size: .715rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.lede { font-size: 1.19rem; line-height: 1.56; color: var(--ink-2); }

/* ---------- header ---------- */

.site-head {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.site-head .wrap {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .6rem 1.5rem; padding-block: .8rem;
}
.brand {
  font-family: var(--serif);
  font-size: 1.06rem; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
}
.brand .mark { color: var(--accent); }

.site-nav {
  margin-left: auto;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .3rem 1.2rem;
  font-size: .92rem;
}
.site-nav a {
  color: var(--ink-2); text-decoration: none;
  padding-block: .12rem; border-bottom: 1.5px solid transparent;
}
.site-nav a:hover { color: var(--ink); border-bottom-color: var(--accent); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- hero ---------- */

.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero h1 { max-width: 20ch; }
.hero .lede { max-width: 46ch; }

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }

.btn {
  display: inline-block;
  padding: .76rem 1.4rem;
  border-radius: 1px;
  font-family: var(--sans);
  font-size: .95rem; font-weight: 600;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

/* ---------- sections ---------- */

section { padding-block: clamp(2.75rem, 6vw, 4.25rem); }
section + section { border-top: 1px solid var(--rule-soft); }

.section-panel {
  background: var(--panel);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}

.grid { display: grid; gap: 1.5rem; }
@media (min-width: 46rem) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); }

/* ---------- service cards ---------- */
/* separation comes from a hairline top rule and the ground, not a box with a rail */

.card {
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 1.35rem 1.35rem 1.3rem;
  display: flex; flex-direction: column;
}
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); font-size: .97rem; margin-bottom: 1.1rem; }
.card .more {
  margin-top: auto;
  font-family: var(--mono);
  font-size: .78rem; font-weight: 500; letter-spacing: .06em;
  text-transform: uppercase; text-decoration: none;
  color: var(--accent);
}
.card .more::after { content: " \2192"; }
.card .more:hover { color: var(--ink); }
.card-quiet { border-top-color: var(--rule); background: transparent; }
.card-quiet h3 { color: var(--ink-2); }

/* ---------- process steps ---------- */
/* numbered because the sequence is real; mono numerals in a ruled left margin,
   after the line-numbered margin of California pleading paper */

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.6rem; }
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(2, 1fr); gap: 2rem 2.75rem; } }
.steps li {
  counter-increment: step;
  padding-left: 3.1rem;
  border-left: 1px solid var(--rule);
  position: relative;
}
.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute; left: .85rem; top: .12em;
  font-family: var(--mono);
  font-size: .8rem; font-weight: 500;
  color: var(--accent-lo);
  font-variant-numeric: tabular-nums;
}
.steps h3 { font-size: 1.04rem; margin-bottom: .3rem; }
.steps p { font-size: .96rem; color: var(--ink-2); margin: 0; }
.steps-stack { grid-template-columns: 1fr !important; }

/* ---------- checklist ---------- */

.ticks { list-style: none; margin: 0 0 1.2em; padding: 0; }
.ticks li { position: relative; padding-left: 1.5rem; margin-bottom: .6rem; color: var(--ink-2); }
.ticks li::before {
  content: "";
  position: absolute; left: .05rem; top: .6em;
  width: .5rem; height: .5rem;
  border-left: 1.5px solid var(--accent-lo);
  border-bottom: 1.5px solid var(--accent-lo);
  transform: rotate(-45deg);
}

/* ---------- callout ---------- */

.callout {
  border-top: 1px solid var(--ink);
  padding: 1rem 0 0;
  margin: 1.6rem 0;
}
.callout p { color: var(--ink-2); font-size: .97rem; }
.callout p:last-child { margin-bottom: 0; }

/* ---------- dark band ---------- */

.band { background: var(--deep); color: var(--deep-ink); border: 0; }
.band h2, .band h3 { color: var(--deep-pap); }
.band p { color: var(--deep-ink); }
.band a { color: #9dc4e6; }
.band .eyebrow { color: #9dc4e6; }
.band .btn-primary { background: var(--deep-pap); color: var(--deep); border-color: var(--deep-pap); }
.band .btn-primary:hover { background: #9dc4e6; border-color: #9dc4e6; color: var(--deep); }
.band .btn-ghost { color: var(--deep-pap); border-color: #48566a; }
.band .btn-ghost:hover { background: var(--deep-pap); color: var(--deep); border-color: var(--deep-pap); }

/* ---------- FAQ ---------- */

.faq { border-top: 1px solid var(--rule); max-width: 48rem; }
.faq details { border-bottom: 1px solid var(--rule); padding: 1rem 0; }
.faq summary {
  cursor: pointer;
  font-family: var(--serif);
  font-size: 1.06rem; font-weight: 600;
  color: var(--ink);
  list-style: none;
  position: relative;
  padding-right: 2rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: .25rem; top: -.05em;
  font-family: var(--mono);
  font-size: 1.1rem; font-weight: 400;
  color: var(--accent-lo);
}
.faq details[open] summary::after { content: "\2013"; }
.faq details > p { margin: .8rem 0 0; color: var(--ink-2); max-width: var(--measure); font-size: .99rem; }

/* ---------- contact ---------- */

.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { margin-bottom: 1.15rem; }
.contact-list .label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .25rem;
}
.contact-list .value { font-size: 1.06rem; }

/* ---------- footer ---------- */

.site-foot {
  border-top: 1px solid var(--rule);
  background: var(--panel);
  padding-block: 2.5rem 2rem;
  font-size: .92rem;
  color: var(--muted);
}
.foot-grid { display: grid; gap: 1.75rem; }
@media (min-width: 46rem) { .foot-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.site-foot h4 {
  font-family: var(--mono);
  font-size: .7rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 .7rem;
}
.site-foot ul { list-style: none; margin: 0; padding: 0; }
.site-foot li { margin-bottom: .4rem; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--accent); text-decoration: underline; }
.foot-lede { margin: 0 0 .5rem; }
.colophon {
  margin-top: 2rem; padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: .84rem; line-height: 1.6;
}

.skip {
  position: absolute; left: -9999px;
  background: var(--ink); color: var(--paper);
  padding: .6rem 1rem; z-index: 50;
}
.skip:focus { left: 1rem; top: .6rem; }

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

/* ---------- contact form ---------- */

.contact-form { margin: 0 0 .5rem; }
.contact-form .field { margin-bottom: 1.05rem; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 40rem) { .contact-form .field-row { grid-template-columns: 1fr; } }
.contact-form label {
  display: block;
  font-family: var(--mono);
  font-size: .7rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: .35rem;
}
.contact-form label .opt { text-transform: none; letter-spacing: 0; font-family: var(--sans); font-size: .78rem; }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%; box-sizing: border-box;
  font-family: var(--sans); font-size: 1rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--rule); border-radius: 1px;
  padding: .62rem .75rem;
  transition: border-color .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus {
  outline: none; border-color: var(--accent);
}
.contact-form textarea { resize: vertical; min-height: 8rem; line-height: 1.5; }
.contact-form button.btn { cursor: pointer; }
.contact-form button.btn[disabled] { opacity: .6; cursor: wait; }
.contact-form .hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.contact-form .cf-turnstile { margin: .25rem 0 .5rem; }
.form-msg { padding: .8rem 1rem; border-left: 3px solid var(--accent); background: var(--panel); font-size: .97rem; }
.form-msg.err { border-left-color: #a33a2a; }
.contact-form .hint { font-size: .9rem; color: var(--ink-2); margin: -.15rem 0 .45rem; }
