/* ============================================================
   INTERSTATE SCALE — weigh-station beige, interstate green,
   marker white; bold slab. North County 18 Wheeler Accident.
   Law Office of Angelo Reyes, APC. Zero external fonts. No JS.
   ============================================================ */

:root {
  --beige: #EAE3CE;        /* weigh-station beige ground */
  --beige-2: #F2EDDB;      /* raised beige */
  --beige-deep: #DCD3B8;   /* pressed beige */
  --card: #F7F3E6;         /* card surface */
  --white: #FBFAF3;        /* marker white */
  --white-pure: #FFFFFF;
  --green: #0A5C3F;        /* interstate green */
  --green-deep: #073F2B;   /* footer green */
  --green-ink: #052E1F;
  --green-mid: #14805A;
  --green-tint: #E3EDE2;
  --ink: #28251B;
  --muted: #6D6550;
  --hairline: #CEC5A8;
  --rule: 1px solid var(--hairline);

  --slab: "Rockwell Extra Bold", "Rockwell Bold", Rockwell, "Roboto Slab", Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--beige);
  color: var(--ink);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--green); }
::selection { background: var(--green); color: var(--white); }
:focus-visible { outline: 3px solid var(--green-mid); outline-offset: 2px; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---- scale top strip ---- */
.scale-top { height: 4px; background: var(--green); }

/* ---- kickers + headings ---- */
.kick {
  font-size: .72rem; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--green);
  display: inline-flex; align-items: center; gap: 10px;
}
.kick::before { content: ""; width: 10px; height: 10px; background: var(--green); flex: none; }
h1, h2, h3, .slab { font-family: var(--slab); font-weight: 800; color: var(--ink); }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); line-height: 1.06; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.45rem); line-height: 1.12; margin: 12px 0 18px; }
h3 { font-size: 1.22rem; line-height: 1.25; }

/* h2 rule: green bar over scale ticks */
.h2-rule { position: relative; margin: 10px 0 6px; }
.h2-rule .bar { width: 64px; height: 8px; background: var(--green); }
.h2-rule .ticks {
  height: 12px; margin-top: 6px;
  background: repeating-linear-gradient(90deg, var(--beige-deep) 0 2px, transparent 2px 10px);
}

/* ---- header ---- */
header.top { background: var(--beige); position: sticky; top: 0; z-index: 60; border-bottom: var(--rule); }
header.top .inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 78px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand .stack { line-height: 1.18; }
.brand .name { font-family: var(--slab); font-weight: 800; font-size: 1.06rem; letter-spacing: -.01em; }
.brand .sub { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
header.top .right { display: flex; align-items: center; gap: 20px; }
header.top .phone { font-family: var(--slab); font-weight: 800; font-size: 1.02rem; color: var(--green); text-decoration: none; letter-spacing: .01em; }
header.top .phone:hover { color: var(--green-mid); text-decoration: underline; }

/* placard buttons */
.placard {
  display: inline-block; background: var(--white-pure);
  border: 2px solid var(--green); border-radius: 2px;
  color: var(--green); font-weight: 700; font-size: .84rem;
  letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 20px; text-decoration: none;
  transition: background .2s, color .2s;
}
.placard:hover { background: var(--green); color: var(--white); }
.placard.solid { background: var(--green); color: var(--white); }
.placard.solid:hover { background: var(--green-mid); }

/* ---- nav ---- */
nav.main { background: var(--white); border-bottom: 2px solid var(--green); }
nav.main .inner { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 10px; padding-bottom: 10px; }
nav.main a {
  text-decoration: none; color: var(--ink); font-size: .82rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 2px; border-bottom: 3px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--green-mid); color: var(--green); }
nav.main a[aria-current="page"] { border-bottom-color: var(--green); color: var(--green); }

/* ---- page hero ---- */
.page-hero { background: var(--beige); padding: 52px 0 42px; border-bottom: var(--rule); }
.page-hero .crumbs { font-size: .8rem; color: var(--muted); margin-bottom: 18px; }
.page-hero .crumbs a { color: var(--green); text-decoration: none; }
.page-hero .crumbs a:hover { text-decoration: underline; }
.page-hero p.lede { font-size: 1.06rem; max-width: 46rem; color: #4A4433; margin-top: 16px; }

/* ---- index hero ---- */
.hero { background: var(--beige); padding: 74px 0 78px; }
.hero .grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 52px; align-items: center; }
.hero h1 { margin: 20px 0 20px; }
.hero h1 em { font-style: normal; color: var(--green); }
.hero .sub { font-size: 1.07rem; color: #4A4433; max-width: 34rem; }
.hero .sub strong { color: var(--ink); }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero .fine { margin-top: 24px; font-size: .83rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero .fine span::before { content: "\2014"; margin-right: 8px; color: var(--green); }
.scale-panel { background: var(--card); border: 2px solid var(--green); border-radius: 2px; padding: 18px; }
.scale-panel svg { width: 100%; height: auto; display: block; }
.scale-panel .cap {
  border-top: var(--rule); margin-top: 14px; padding-top: 12px;
  font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}

/* ---- scale band (weigh-scale tick rule) ---- */
.scaleband { height: 18px; border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); margin: 0 0 4px;
  background: repeating-linear-gradient(90deg, var(--green) 0 2px, transparent 2px 26px); }

/* ---- sections ---- */
.section { padding: 76px 0; }
.section.beige-2 { background: var(--beige-2); border-top: var(--rule); border-bottom: var(--rule); }
.section.white { background: var(--white); border-top: var(--rule); border-bottom: var(--rule); }
.section.green { background: var(--green); color: var(--green-tint); }
.section.green h2 { color: var(--white-pure); }
.section.green p { color: var(--green-tint); }
.section .head { max-width: 46rem; margin-bottom: 40px; }
.section .head p { color: var(--muted); }

/* ---- placard cards ---- */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  background: var(--white-pure); border: 2px solid var(--green);
  border-radius: 2px; display: flex; flex-direction: column;
  text-decoration: none; color: var(--ink);
  transition: transform .22s ease, box-shadow .22s ease;
}
.pcard:hover { transform: translateY(-4px); box-shadow: 6px 6px 0 rgba(10, 92, 63, .18); }
.pcard .band {
  background: var(--green); color: var(--white-pure); padding: 8px 16px;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  display: flex; justify-content: space-between; gap: 10px;
}
.pcard .body { padding: 22px 20px 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pcard .icon { width: 40px; height: 40px; color: var(--green); }
.pcard p { font-size: .92rem; color: #4A4433; }
.pcard .go { margin-top: auto; font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.pcard.plain { pointer-events: auto; }

/* ---- angle rows ---- */
.angle-rows { display: flex; flex-direction: column; }
.arow { display: grid; grid-template-columns: 150px 1fr; gap: 24px; padding: 22px 0; border-bottom: var(--rule); align-items: start; }
.arow:first-child { border-top: var(--rule); }
.arow .no { font-family: var(--slab); font-weight: 800; font-size: 1rem; color: var(--green); letter-spacing: .06em; text-transform: uppercase; }
.arow .no small { display: block; font-family: var(--sans); font-size: .68rem; font-weight: 700; color: var(--muted); letter-spacing: .16em; margin-top: 3px; }
.arow h3 { margin-bottom: 6px; }
.arow p { color: #4A4433; font-size: .96rem; }

/* ---- firm ---- */
.firm-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 52px; align-items: center; }
.portrait-frame { position: relative; max-width: 340px; }
.portrait-frame .offset { position: absolute; inset: 0; transform: translate(12px, 12px); border: 2px solid var(--green); }
.portrait-frame img { position: relative; border: 2px solid var(--green); }
.portrait-frame .tag {
  position: absolute; left: 0; bottom: -34px; font-family: var(--slab);
  font-size: .82rem; color: var(--green); letter-spacing: .04em;
}
.pillars { display: flex; flex-direction: column; margin-top: 28px; }
.pillar { display: grid; grid-template-columns: 44px 1fr; gap: 16px; padding: 16px 0; border-bottom: var(--rule); }
.pillar:first-child { border-top: var(--rule); }
.pillar .num { font-family: var(--slab); font-weight: 800; color: var(--green); font-size: 1.05rem; }
.pillar h4 { font-family: var(--slab); font-weight: 800; font-size: 1.02rem; margin-bottom: 3px; }
.pillar p { font-size: .92rem; color: #4A4433; }

/* ---- statute chips ---- */
.stat-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.stat-chip {
  display: inline-block; background: var(--white-pure); border: 1px solid var(--green);
  border-radius: 2px; padding: 8px 14px; font-size: .78rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--green);
}

/* ---- criminal mention strip ---- */
.strip {
  border-top: 2px solid var(--green); border-bottom: 2px solid var(--green);
  background: var(--white); padding: 30px 0;
}
.strip .inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.strip p { max-width: 44rem; color: #4A4433; }
.strip strong { font-family: var(--slab); font-weight: 800; color: var(--ink); }

/* ---- CTA band ---- */
.cta-band { background: var(--green); padding: 56px 0; }
.cta-band .inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.cta-band h2 { color: var(--white-pure); margin: 6px 0 6px; }
.cta-band p { color: var(--green-tint); max-width: 40rem; }
.cta-band .placard { background: var(--white-pure); border-color: var(--white-pure); color: var(--green); font-size: 1rem; padding: 16px 28px; }
.cta-band .placard:hover { background: var(--green-deep); border-color: var(--green-deep); color: var(--white); }

/* ---- article pages ---- */
.article { background: var(--beige-2); padding: 54px 0 76px; }
.article .grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.prose { background: var(--white-pure); border: 1px solid var(--hairline); border-radius: 2px; padding: 40px 44px; }
.prose h2 { margin-top: 36px; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #3E3A2C; }
.prose p + p { margin-top: 14px; }
.prose ul { margin: 14px 0 14px 22px; }
.prose li { margin-bottom: 8px; }
.prose .lawbox {
  background: var(--green-tint); border-left: 5px solid var(--green);
  padding: 18px 20px; margin: 22px 0; font-size: .94rem;
}
.prose .lawbox .lbl {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--green); margin-bottom: 6px;
}
.rail { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 18px; }
.rail .placard-box { background: var(--white-pure); border: 2px solid var(--green); border-radius: 2px; padding: 20px; }
.rail .placard-box h3 { font-size: 1.05rem; margin-bottom: 8px; }
.rail .placard-box p { font-size: .88rem; color: #4A4433; margin-bottom: 12px; }
.rail .placard-box .phone-link { font-family: var(--slab); font-weight: 800; color: var(--green); text-decoration: none; font-size: 1.05rem; }
.rail .placard-box .phone-link:hover { text-decoration: underline; }
.rail .rail-list { list-style: none; }
.rail .rail-list li { border-bottom: var(--rule); }
.rail .rail-list a { display: block; padding: 10px 2px; text-decoration: none; font-size: .9rem; font-weight: 600; color: var(--ink); }
.rail .rail-list a:hover { color: var(--green); }

/* ---- FAQ ---- */
.faq-list { display: flex; flex-direction: column; }
.faq-item { border: 2px solid var(--green); border-radius: 2px; background: var(--white-pure); margin-bottom: 18px; }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-family: var(--slab);
  font-weight: 800; font-size: 1.05rem; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--sans); font-size: 1.4rem; color: var(--green); font-weight: 400; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 22px 20px; color: #3E3A2C; font-size: .96rem; }

/* ---- contact ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.office { border: 2px solid var(--green); border-radius: 2px; background: var(--white-pure); padding: 26px; }
.office h3 { color: var(--green); }
.office p { color: #4A4433; margin-top: 6px; }
.form { border: 2px solid var(--green); border-radius: 2px; background: var(--white-pure); padding: 30px; }
.form label { display: block; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green); margin: 16px 0 6px; }
.form input, .form select, .form textarea {
  width: 100%; border: 1px solid var(--hairline); border-radius: 2px;
  background: var(--card); padding: 12px 14px; font: inherit; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green-mid); border-color: var(--green); }
.form .note { font-size: .8rem; color: var(--muted); margin-top: 12px; }
.band-label {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--green); border-bottom: var(--rule); padding-bottom: 10px; margin-bottom: 16px;
}
.band-label small { font-family: var(--sans); color: var(--muted); letter-spacing: .08em; font-weight: 600; }
.office h2 { font-size: 1.3rem; margin: 0 0 10px; }
.office .phone { font-family: var(--slab); font-weight: 800; font-size: 1.25rem; color: var(--green); text-decoration: none; }
.office .phone:hover { text-decoration: underline; }
.office .fine { margin-top: 14px; font-size: .8rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.office .fine span::before { content: "\2014"; margin-right: 6px; color: var(--green); }
.office.solid { background: var(--green); border-color: var(--green); }
.office.solid h2 { color: var(--white-pure); }
.office.solid p { color: var(--green-tint); }
.office.solid .band-label { color: var(--green-tint); border-bottom-color: rgba(251,250,243,.32); }
.office.solid .band-label small { color: var(--green-tint); opacity: .75; }
.office.solid .phone { color: var(--white-pure); }
.office.solid .fine { color: var(--green-tint); opacity: .88; }
.office.solid .fine span::before { color: var(--white-pure); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form button.placard { margin-top: 22px; cursor: pointer; font-family: inherit; font-size: .9rem; }
.form .fine { margin-top: 14px; font-size: .8rem; color: var(--muted); }

/* ---- 404 ---- */
.notfound { text-align: center; padding: 110px 0; }
.notfound .code { font-family: var(--slab); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); color: var(--green); line-height: 1; }
.notfound p { color: var(--muted); max-width: 30rem; margin: 18px auto 30px; }

/* ---- footer ---- */
footer { background: var(--green-deep); color: var(--green-tint); padding: 58px 0 40px; }
footer .cols { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 40px; }
footer h3 { color: var(--white-pure); font-size: 1rem; margin-bottom: 14px; }
footer p, footer li, footer a { font-size: .86rem; }
footer a { color: var(--green-tint); text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--white-pure); }
footer ul { list-style: none; columns: 2; column-gap: 26px; }
footer li { margin-bottom: 7px; break-inside: avoid; }
footer .f-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
footer .f-brand img { width: 40px; height: 40px; }
footer .f-brand span { font-family: var(--slab); font-weight: 800; color: var(--white-pure); font-size: 1rem; }
footer .legal { font-size: .76rem; color: var(--green-tint); opacity: .82; max-width: 30rem; margin-top: 30px; line-height: 1.7; }
footer .self { color: var(--white-pure); }

@media (max-width: 960px) {
  .hero .grid, .firm-grid, .contact-grid, .article .grid { grid-template-columns: 1fr; gap: 40px; }
  .pcards { grid-template-columns: 1fr 1fr; }
  footer .cols { grid-template-columns: 1fr; gap: 30px; }
  .rail { position: static; }
  header.top .placard { display: none; }
}
@media (max-width: 620px) {
  .pcards { grid-template-columns: 1fr; }
  .arow { grid-template-columns: 1fr; gap: 8px; }
  .prose { padding: 28px 22px; }
  .form .row { grid-template-columns: 1fr; }
  .hero { padding: 52px 0 58px; }
  .wrap { padding: 0 20px; }
  nav.main .inner { gap: 4px 16px; }
  footer ul { columns: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pcard { transition: none; }
}
