/* ============================================================
   NEWARK LAW OFFICES — FUNNEL DESIGN SYSTEM
   Concept: the page is built like a court filing. The hero is a
   pleading caption (the block at the top of every federal filing:
   "IN RE: ___"). Section labels read like exhibit tags. Data (dates,
   statutes, case types) sits in mono type, like docket entries.
   ============================================================ */

:root {
  --ink: #14213D;         /* primary text, dark sections */
  --paper: #FAF9F6;       /* page background */
  --paper-dim: #F1EFE9;   /* alt section background */
  --brass: #A6873E;       /* accent — courthouse hardware */
  --brass-dark: #8A6F30;
  --slate: #4B5A6A;       /* secondary text */
  --rule: #D8D3C6;        /* hairline rules */
  --rust: #7A2E2E;        /* urgency / deadline accent, used sparingly */
  --rust-bg: #F6ECEA;

  --font-display: "Source Serif 4", Georgia, serif;
  --font-body: "IBM Plex Sans", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brass-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--brass);
  outline-offset: 2px;
}

.wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- Top bar ---------- */
.topbar {
  border-bottom: 1px solid var(--rule);
  background: var(--paper);
  position: sticky; top: 0; z-index: 20;
}
.topbar-inner {
  max-width: 880px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.firm-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.firm-name span { color: var(--brass-dark); }
.topbar-cta {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.85rem;
}
.topbar-phone { color: var(--ink); text-decoration: none; white-space: nowrap; }
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 10px 20px;
  background: var(--ink);
  color: var(--paper) !important;
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background 0.15s ease;
}
.btn:hover { background: var(--brass-dark); }
.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper) !important; }

/* ---------- Urgency banner ---------- */
.urgency {
  background: var(--rust-bg);
  border-bottom: 1px solid var(--rust);
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ---------- Hero: the pleading caption ---------- */
.caption {
  padding: 64px 24px 48px;
  text-align: center;
  border-bottom: 3px double var(--ink);
}
.caption-court {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--slate);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.caption-inre {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  color: var(--brass-dark);
  margin-bottom: 18px;
}
.caption-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.4vw, 3rem);
  line-height: 1.12;
  font-weight: 600;
  max-width: 720px;
  margin: 0 auto 20px;
}
.caption-sub {
  font-size: 1.08rem;
  color: var(--slate);
  max-width: 620px;
  margin: 0 auto 32px;
}
.caption-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.caption-meta {
  margin-top: 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--slate);
}

/* ---------- Exhibit sections ---------- */
.exhibit { padding: 56px 24px; border-bottom: 1px solid var(--rule); }
.exhibit.alt { background: var(--paper-dim); }
.exhibit-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  color: var(--brass-dark);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.exhibit-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 18px;
  max-width: 640px;
}
.exhibit p { color: var(--ink); max-width: 640px; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 24px; }
@media (max-width: 640px) { .grid-2 { grid-template-columns: 1fr; } }

.docket-list { list-style: none; margin: 0; padding: 0; }
.docket-list li {
  display: flex; gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.docket-list li:last-child { border-bottom: 1px solid var(--rule); }
.docket-num {
  font-family: var(--font-mono);
  color: var(--brass-dark);
  font-size: 0.85rem;
  flex-shrink: 0;
  padding-top: 2px;
}
.docket-body h4 { margin: 0 0 4px; font-size: 1rem; }
.docket-body p { margin: 0; font-size: 0.94rem; color: var(--slate); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  border: 1px solid var(--rule);
  padding: 5px 12px;
  color: var(--slate);
}

/* ---------- Lead form ---------- */
.form-section { padding: 56px 24px 72px; background: var(--ink); color: var(--paper); }
.form-section .exhibit-label { color: var(--brass); }
.form-section .exhibit-title { color: var(--paper); }
.form-section p.lead-sub { color: #C7CDD6; max-width: 560px; }
form.lead-form {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: 640px;
}
form.lead-form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { form.lead-form { grid-template-columns: 1fr; } }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #A9B1BC;
  margin-bottom: 6px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #3A4658;
  background: #1C2A44;
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.field textarea { min-height: 90px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #6E7A8A; }
.lead-form .btn { grid-column: 1 / -1; justify-self: start; background: var(--brass); color: var(--ink) !important; }
.lead-form .btn:hover { background: var(--brass-dark); color: var(--paper) !important; }
.form-note { font-family: var(--font-mono); font-size: 0.74rem; color: #8892A0; margin-top: 14px; max-width: 560px; }
.form-success { display: none; font-family: var(--font-mono); font-size: 0.9rem; color: #9FE8B4; margin-top: 16px; }

/* ---------- Footer ---------- */
footer {
  padding: 32px 24px 48px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--slate);
  line-height: 1.7;
}
footer .disclaimer { max-width: 720px; }
footer a { color: var(--slate); }

/* ---------- Submission failure notice ---------- */
.form-error {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #FFC9C9;
  background: rgba(122, 46, 46, 0.35);
  border-left: 3px solid #E88;
  padding: 12px 14px;
  margin-top: 16px;
  max-width: 560px;
}
.form-error a { color: #FFC9C9; }

/* ---------- Firm name as home link ---------- */
a.firm-name {
  color: var(--ink);
  text-decoration: none;
  display: inline-block;
}
a.firm-name:hover span { color: var(--ink); }
a.firm-name:hover { color: var(--brass-dark); }

/* Keep the chat widget clear of the sticky top bar and the form CTA */
#newark-chat-widget, [data-site="newarkfirm"] + div { z-index: 15; }

/* ---------- Federal-practice-only notice ---------- */
.fed-notice {
  background: var(--paper-dim);
  border-bottom: 1px solid var(--rule);
  border-left: 4px solid var(--rust);
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.6;
  padding: 14px 24px;
  max-width: 880px;
  margin: 0 auto;
}
.fed-notice strong { color: var(--rust); }

/* ---------- Contingent fee terms ---------- */
.exhibit p.fee-terms {
  font-size: 0.88rem;
  color: var(--slate);
  border-left: 3px solid var(--rule);
  padding-left: 16px;
  margin-top: 16px;
}
