/* Rider's Ledger — burnt orange, gunmetal, cream; condensed sans.
   Oceanside Personal Injury Attorney · Law Office of Angelo Reyes, APC */

@font-face {
  font-family: "Oswald";
  src: url("oswald-latin.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #F3EEE3;
  --paper: #FAF7F1;
  --paper-2: #F7F2E8;
  --ink: #2B2723;
  --muted: #6E675B;
  --gunmetal: #24272E;
  --gunmetal-deep: #181B20;
  --gunmetal-soft: #31353E;
  --orange: #B0440E;
  --orange-deep: #8A350B;
  --orange-soft: #E8CDAF;
  --tint: #F1DFC8;
  --hairline: rgba(43,39,35,.16);
  --hairline-dark: rgba(243,238,227,.16);
  --cond: "Oswald", "Arial Narrow", "Helvetica Neue Condensed", sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange-deep); }
::selection { background: var(--orange); color: var(--paper); }

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

/* ---------- type ---------- */
.cond { font-family: var(--cond); }
.overline {
  font-family: var(--cond);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
h1 { font-family: var(--cond); font-weight: 700; line-height: 1.04; }
h2 { font-family: var(--cond); font-weight: 600; line-height: 1.12; }
h3 { font-family: var(--cond); font-weight: 600; line-height: 1.2; }

/* roller-chain rule — rails + link pins, the rider's ledger underline */
.h2-rule {
  margin-top: 14px; width: 64px; height: 7px;
  border-top: 2px solid var(--orange); border-bottom: 2px solid var(--orange);
  background-image: repeating-linear-gradient(90deg, var(--orange) 0 2px, transparent 2px 13px);
  background-size: 13px 3px; background-position: 0 2px; background-repeat: repeat-x;
}
.h2-rule.cream-rule { border-color: var(--orange-soft); background-image: repeating-linear-gradient(90deg, var(--orange-soft) 0 2px, transparent 2px 13px); }

/* sprocket marker for section overlines */
.overline.gear::before {
  content: "";
  display: inline-block; width: 13px; height: 13px; margin-right: 9px; vertical-align: -2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23B0440E' stroke-width='1.6' stroke-linecap='square'%3E%3Ccircle cx='8' cy='8' r='3.2'/%3E%3Cpath d='M8 1v2M8 13v2M1 8h2M13 8h2M3.05 3.05l1.4 1.4M11.55 11.55l1.4 1.4M12.95 3.05l-1.4 1.4M4.45 11.55l-1.4 1.4'/%3E%3Ccircle cx='8' cy='8' r='1'/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain;
}
.sec.dark .overline.gear::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='none' stroke='%23E8CDAF' stroke-width='1.6' stroke-linecap='square'%3E%3Ccircle cx='8' cy='8' r='3.2'/%3E%3Cpath d='M8 1v2M8 13v2M1 8h2M13 8h2M3.05 3.05l1.4 1.4M11.55 11.55l1.4 1.4M12.95 3.05l-1.4 1.4M4.45 11.55l-1.4 1.4'/%3E%3Ccircle cx='8' cy='8' r='1'/%3E%3C/g%3E%3C/svg%3E"); }

/* trip-number chip on section overlines */
.trip {
  display: inline-block;
  font-family: var(--cond); font-weight: 700; font-size: .68rem; letter-spacing: .16em;
  color: var(--paper); background: var(--orange); padding: 2px 9px; margin-right: 10px; vertical-align: 1px;
}
.sec.dark .trip { color: var(--gunmetal); background: var(--orange-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 14px 30px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn-orange { background: var(--orange); color: var(--paper); }
.btn-orange:hover { background: var(--orange-deep); color: var(--paper); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-ghost-cream { border-color: var(--hairline-dark); color: var(--paper); background: transparent; }
.btn-ghost-cream:hover { background: var(--paper); color: var(--gunmetal); }
.btn-paper { background: var(--paper); color: var(--gunmetal); }
.btn-paper:hover { background: var(--orange-soft); }

a:focus-visible, .btn:focus-visible, summary:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- header ---------- */
header.site { background: var(--cream); border-bottom: 3px solid var(--gunmetal); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { width: 46px; height: 46px; flex: none; }
.brand .bname {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1.1;
  color: var(--gunmetal);
}
.brand .bsub { display: block; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.topright { display: flex; align-items: center; gap: 26px; }
.topright .phone { font-family: var(--cond); font-weight: 700; font-size: 1.28rem; letter-spacing: .04em; color: var(--orange-deep); text-decoration: none; }
.topright .phone:hover { color: var(--orange); }
nav.main { background: var(--gunmetal); }
nav.main .wrap { display: flex; align-items: stretch; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
nav.main a {
  font-family: var(--cond);
  font-weight: 500;
  font-size: .86rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--cream);
  text-decoration: none;
  padding: 12px 14px 10px;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { border-bottom-color: var(--orange); color: #fff; }
nav.main a[aria-current="page"] { border-bottom-color: var(--orange); color: #fff; }

/* ---------- odometer tick ruler ---------- */
.ticks { display: block; width: 100%; height: 26px; margin: 0; }
.ticks.gun { background: var(--gunmetal); }
.ticks.cream-bg { background: var(--cream); }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .grid { display: grid; grid-template-columns: 1.06fr .94fr; gap: 60px; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.1rem); margin: 18px 0 22px; color: var(--gunmetal); letter-spacing: .005em; }
.hero h1 .accent { color: var(--orange); }
.hero .lede { font-size: 1.1rem; max-width: 34rem; color: #4A443A; }
.hero .lede strong { color: var(--gunmetal); }
.hero .ctas { display: flex; gap: 16px; margin-top: 36px; flex-wrap: wrap; }
.hero .fine { margin-top: 24px; font-size: .84rem; color: var(--muted); display: flex; gap: 8px 22px; flex-wrap: wrap; font-family: var(--cond); letter-spacing: .06em; text-transform: uppercase; }
.hero .fine span::before { content: "—"; margin-right: 8px; color: var(--orange); }

/* ride-sheet panel — ledger sheet with punched binder holes */
.sheet { background: var(--gunmetal); border: 1px solid var(--gunmetal-soft); position: relative; }
.sheet .holes { position: absolute; left: 11px; top: 0; bottom: 0; width: 12px; display: flex; flex-direction: column; justify-content: space-evenly; }
.sheet .holes i { width: 9px; height: 9px; border-radius: 50%; background: var(--cream); border: 1px solid var(--gunmetal-soft); display: block; }
.sheet .sheet-inner { padding: 26px 26px 22px 42px; }
.sheet .sheet-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--hairline-dark); margin-bottom: 18px; }
.sheet .sheet-title { font-family: var(--cond); font-weight: 700; font-size: .82rem; letter-spacing: .24em; text-transform: uppercase; color: var(--paper); }
.sheet .sheet-sub { font-family: var(--cond); font-weight: 500; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--orange-soft); }
.sheet .sheet-row { display: flex; justify-content: space-between; gap: 14px; padding: 9px 0; border-bottom: 1px solid var(--hairline-dark); font-family: var(--cond); letter-spacing: .1em; text-transform: uppercase; font-size: .76rem; color: var(--cream); }
.sheet .sheet-row:last-of-type { border-bottom: none; }
.sheet .sheet-row .k { color: var(--orange-soft); font-weight: 600; }
.sheet .sheet-row .v { text-align: right; color: var(--cream); }
.sheet .sheet-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline-dark); font-size: .72rem; font-family: var(--cond); letter-spacing: .12em; text-transform: uppercase; color: var(--cream); opacity: .75; }

/* ---------- sections ---------- */
.sec { padding: 84px 0; }
.sec-head { max-width: 46rem; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); color: var(--gunmetal); margin-top: 12px; }
.sec-head p.lede { margin-top: 18px; color: #4A443A; font-size: 1.03rem; }

.sec.dark { background: var(--gunmetal); color: var(--cream); }
.sec.dark h2 { color: var(--paper); }
.sec.dark p { color: #D9D2C4; }
.sec.dark .overline { color: var(--orange-soft); }

/* practice cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-left: 4px solid var(--orange);
  padding: 26px 24px 24px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(24,27,32,.12); }
.card .icon { width: 42px; height: 42px; color: var(--orange); }
.card h3 { font-size: 1.28rem; color: var(--gunmetal); text-transform: uppercase; letter-spacing: .03em; }
.card p { font-size: .93rem; color: #4A443A; flex: 1; }
.card .chip {
  align-self: flex-start;
  font-family: var(--cond);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange-deep);
  border: 1px solid var(--orange);
  padding: 3px 10px;
}
.card.card-cta { background: var(--orange); border-left-color: var(--orange-deep); color: var(--paper); justify-content: center; }
.card.card-cta h3 { color: var(--paper); }
.card.card-cta p { color: var(--orange-soft); }
.card.card-cta .phone-big { font-family: var(--cond); font-weight: 700; font-size: 1.7rem; letter-spacing: .03em; color: var(--paper); text-decoration: none; }
.card.card-cta .phone-big:hover { text-decoration: underline; }

/* the Oceanside angle */
.angle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 8px; }
.angle .cell { border-top: 2px solid var(--orange); padding-top: 22px; }
.angle .cell h3 { font-size: 1.24rem; color: var(--paper); text-transform: uppercase; letter-spacing: .04em; }
.angle .cell h3 .mi {
  display: inline-block;
  font-family: var(--cond);
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: .12em;
  color: var(--gunmetal);
  background: var(--orange);
  padding: 2px 8px;
  margin-right: 10px;
  vertical-align: 2px;
}
.angle .cell p { margin-top: 12px; font-size: .95rem; }
.angle .cell .cite { display: block; margin-top: 14px; font-family: var(--cond); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-soft); }

/* firm */
.firm { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.portrait-frame { position: relative; }
.portrait-frame::before { content: ""; position: absolute; inset: 0; transform: translate(12px, 12px); border: 2px solid var(--orange); z-index: 0; }
.portrait-frame img { position: relative; z-index: 1; border: 1px solid var(--hairline); }
.portrait-frame figcaption { margin-top: 26px; font-family: var(--cond); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pillars { display: flex; flex-direction: column; }
.pillar { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.pillar:last-of-type { border-bottom: none; }
.pillar .sq { flex: none; width: 12px; height: 12px; background: var(--orange); margin-top: 7px; }
.pillar h3 { font-size: 1.22rem; color: var(--gunmetal); text-transform: uppercase; letter-spacing: .03em; }
.pillar p { margin-top: 6px; font-size: .96rem; color: #4A443A; }

/* criminal strip */
.strip { background: var(--gunmetal-deep); padding: 22px 0; }
.strip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.strip p { font-family: var(--cond); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); }
.strip a { color: var(--orange-soft); font-weight: 600; text-decoration: none; }
.strip a:hover { text-decoration: underline; }

/* CTA band */
.cta { background: var(--orange); padding: 64px 0; }
.cta .wrap { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--paper); text-transform: uppercase; letter-spacing: .02em; }
.cta p { color: var(--orange-soft); margin-top: 8px; font-size: .98rem; }
.cta .cta-phone { font-family: var(--cond); font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: .04em; color: var(--paper); text-decoration: none; }
.cta .cta-phone:hover { text-decoration: underline; }

/* ---------- article pages ---------- */
.pagehead { padding: 64px 0 40px; border-bottom: 1px solid var(--hairline); background: var(--paper); }
.pagehead .crumbs { font-family: var(--cond); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.pagehead .crumbs a { color: var(--orange-deep); text-decoration: none; }
.pagehead .crumbs a:hover { text-decoration: underline; }
.pagehead h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); color: var(--gunmetal); margin-top: 10px; }
.pagehead .lede { margin-top: 18px; font-size: 1.12rem; color: #4A443A; max-width: 42rem; }

.article { padding: 56px 0 20px; }
.article .body { max-width: 46rem; }
.article .body section { margin-bottom: 48px; }
.article .body h2 { font-size: 1.72rem; color: var(--gunmetal); margin-bottom: 6px; }
.article .body p { margin-top: 14px; color: #3D382F; }
.article .body ul { margin: 14px 0 0 22px; color: #3D382F; }
.article .body li { margin-top: 8px; }
.article .body li::marker { color: var(--orange); }
.stat {
  display: inline-block;
  font-family: var(--cond);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-deep);
  border: 1px solid var(--orange);
  background: var(--paper);
  padding: 1px 9px;
  white-space: nowrap;
}
.statbox {
  background: var(--gunmetal);
  color: var(--cream);
  padding: 24px 26px;
  margin-top: 26px;
}
.statbox .sb-title { font-family: var(--cond); font-weight: 700; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-soft); }
.statbox ul { list-style: none; margin: 12px 0 0; }
.statbox li { font-family: var(--cond); letter-spacing: .08em; font-size: .95rem; padding: 7px 0; border-bottom: 1px solid var(--hairline-dark); color: var(--paper); }
.statbox li:last-child { border-bottom: none; }
.statbox li .k { color: var(--orange-soft); font-weight: 600; }

/* FAQ */
.faq-item { border: 1px solid var(--hairline); border-left: 4px solid var(--orange); background: var(--paper); margin-bottom: 18px; }
.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 18px 22px;
  font-family: var(--cond);
  font-weight: 600;
  font-size: 1.14rem;
  color: var(--gunmetal);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .qmark { font-family: var(--cond); font-weight: 700; color: var(--orange); font-size: 1.3rem; }
.faq-item .faq-a { padding: 0 22px 20px 58px; color: #3D382F; font-size: .97rem; }
.faq-item .faq-a p { margin-top: 12px; }
.faq-item[open] summary { border-bottom: 1px solid var(--hairline); }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.office { border-top: 2px solid var(--orange); padding-top: 18px; margin-top: 26px; }
.office .city { font-family: var(--cond); font-weight: 700; font-size: 1.4rem; text-transform: uppercase; color: var(--gunmetal); }
.office .addr { margin-top: 8px; color: #4A443A; }
.office .addr a { text-decoration: none; color: var(--orange-deep); }
.office .addr a:hover { text-decoration: underline; }
.direct { margin-top: 34px; border-top: 1px solid var(--hairline); padding-top: 24px; display: flex; gap: 18px 40px; flex-wrap: wrap; align-items: center; }
.direct a.ph { font-family: var(--cond); font-weight: 700; font-size: 1.35rem; text-decoration: none; color: var(--orange-deep); }
.direct a.ph:hover { color: var(--orange); }
.direct .mail { color: var(--ink); }
.formbox { background: var(--paper); border: 1px solid var(--hairline); padding: 30px 28px; }
.formbox form { display: flex; flex-direction: column; gap: 16px; }
.formbox label { font-family: var(--cond); font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gunmetal); display: block; margin-bottom: 5px; }
.formbox input, .formbox textarea, .formbox select {
  width: 100%;
  font-family: var(--body);
  font-size: .98rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--hairline);
  padding: 11px 13px;
}
.formbox input:focus, .formbox textarea:focus, .formbox select:focus { border-color: var(--orange); outline: 2px solid var(--orange-soft); }
.formbox .note { font-size: .82rem; color: var(--muted); }
.langline { margin-top: 26px; font-size: .88rem; color: var(--muted); }

/* ---------- footer ---------- */
footer.site { background: var(--gunmetal-deep); color: var(--cream); padding: 60px 0 0; }
.foot-grid { display: grid; grid-template-columns: 1.15fr 1fr 1.5fr; gap: 44px; padding-bottom: 48px; }
.foot-grid h3 { font-size: .82rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--orange-soft); margin-bottom: 16px; }
.foot-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.foot-brand img { width: 40px; height: 40px; }
.foot-brand .fn { font-family: var(--cond); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: .95rem; color: var(--paper); }
footer.site p, footer.site a { font-size: .9rem; color: #CFC8B9; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: var(--orange-soft); text-decoration: underline; }
.foot-contact p { margin-top: 8px; line-height: 1.7; }
.fam { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 22px; }
.fam a { font-size: .8rem; }
.fam .fam-self { font-size: .8rem; color: var(--orange-soft); font-family: var(--cond); letter-spacing: .04em; }
.foot-legal { border-top: 1px solid var(--hairline-dark); padding: 20px 0 26px; font-size: .76rem; color: #9A948A; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }

/* ---------- 404 ---------- */
.oops { min-height: 55vh; display: flex; align-items: center; padding: 90px 0; }
.oops .wrap { text-align: center; }
.oops .code { font-family: var(--cond); font-weight: 700; font-size: clamp(4rem, 10vw, 7rem); color: var(--gunmetal); line-height: 1; }
.oops .code span { color: var(--orange); }
.oops h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 16px 0 10px; text-transform: uppercase; letter-spacing: .04em; }
.oops p { color: #4A443A; max-width: 30rem; margin: 0 auto 30px; }
.oops .ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero .grid { grid-template-columns: 1fr; gap: 44px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .angle { grid-template-columns: 1fr; gap: 22px; }
  .firm { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 20px; }
  .cards { grid-template-columns: 1fr; }
  .topbar { flex-wrap: wrap; }
  .topright { gap: 14px; }
  .topright .btn { display: none; }
  .hero { padding: 52px 0 40px; }
  .sec { padding: 64px 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 34px; }
  .article .body h2 { font-size: 1.45rem; }
  .sheet .sheet-inner { padding: 20px 18px 16px; }
}

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