/* ============================================================
   Vista DUI Attorney — "Coastal Fog"
   Ink navy · mist gray · brass · strong grotesk display
   Static HTML/CSS only. No gradients, no blobs, no frameworks.
   ============================================================ */

:root {
  --ink: #14283a;
  --ink-deep: #0d1b28;
  --ink-soft: #1e3549;
  --fog: #f3f5f6;
  --fog-white: #fafbfc;
  --mist: #e6ebee;
  --mist-deep: #c9d2d8;
  --brass: #a9844a;
  --brass-bright: #b9945b;
  --brass-deep: #82622e;
  --brass-light: #d9c89f;
  --slate: #52616d;
  --slate-dark: #37444e;
  --slate-light: #9fb0bb;
  --text: #1b2833;
  --rule: #d8dfe3;
  --sans: "Avenir Next", Avenir, "Segoe UI", Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--fog);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection { background: var(--ink); color: var(--fog-white); }

img { max-width: 100%; }

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

/* ---------- focus & skip ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}
.skip {
  position: absolute; left: 14px; top: -64px; z-index: 200;
  background: var(--ink); color: var(--fog-white);
  padding: 10px 18px; font-size: .84rem; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 14px; }

/* ---------- shared type ---------- */
.kicker {
  display: flex; align-items: center; gap: 14px;
  font-size: .74rem; font-weight: 700; letter-spacing: .24em;
  text-transform: uppercase; color: var(--brass-deep);
}
.kicker::before { content: ""; width: 34px; height: 3px; background: var(--brass); }
.kicker.on-ink { color: var(--brass-light); }

.tide { width: 54px; height: 3px; background: var(--brass); }

.tag {
  display: inline-block;
  font-size: .68rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--brass-deep);
  border: 1px solid var(--mist-deep); background: var(--fog);
  padding: 5px 10px;
}

/* fog strata — stacked hairlines, the site signature */
.strata-block { display: flex; flex-direction: column; gap: 9px; width: 100%; }
.strata-block i { display: block; height: 1px; width: 100%; background: currentColor; }
.strata-block i:nth-child(1) { opacity: .16; }
.strata-block i:nth-child(2) { opacity: .10; }
.strata-block i:nth-child(3) { opacity: .05; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; padding: 15px 30px;
  font-weight: 700; font-size: .84rem; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent;
  transition: background-color .2s, border-color .2s, color .2s;
}
.btn-ink { background: var(--ink); color: var(--fog-white); }
.btn-ink:hover { background: var(--ink-soft); }
.prose .btn-ink { color: var(--fog-white); }
.btn-brass { background: var(--brass); color: var(--ink-deep); }
.btn-brass:hover { background: var(--brass-bright); }
.btn-ghost { border-color: var(--mist-deep); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(217, 200, 159, .5); color: var(--brass-light); }
.btn-ghost-light:hover { background: rgba(217, 200, 159, .12); }

/* ---------- top bar (sticky) ---------- */
.bar { background: var(--ink-deep); position: sticky; top: 0; z-index: 80; border-bottom: 1px solid rgba(217, 200, 159, .18); }
.bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 16px; text-decoration: none; }
.brand img { height: 38px; width: auto; display: block; }
.brand-name { font-size: .92rem; font-weight: 800; letter-spacing: .2em; color: var(--fog-white); line-height: 1.25; }
.brand-sub { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate-light); margin-top: 2px; }
.bar-right { display: flex; align-items: center; gap: 24px; }
.phone-link { color: var(--brass-light); font-weight: 800; font-size: .98rem; letter-spacing: .02em; text-decoration: none; white-space: nowrap; }
.phone-link:hover { color: var(--fog-white); }
.bar .btn { padding: 10px 18px; font-size: .72rem; }

/* ---------- nav ---------- */
.site-header { background: var(--ink-deep); }
.nav { display: flex; flex-wrap: wrap; gap: 4px 30px; padding: 14px 0; }
.nav a {
  color: #c3ced6; font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  padding: 4px 0; border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--brass-light); }
.nav a[aria-current="page"] { color: var(--brass-light); border-bottom-color: var(--brass); }

/* ---------- hero (home) ---------- */
.hero { background: var(--fog); border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.hero-strata {
  position: absolute; left: 48%; right: 0; bottom: 72px; z-index: 0;
  display: flex; flex-direction: column; gap: 10px; padding-right: 28px;
}
.hero-strata i { display: block; height: 1px; width: 100%; background: var(--ink); }
.hero-strata i:nth-child(1) { opacity: .13; }
.hero-strata i:nth-child(2) { opacity: .08; }
.hero-strata i:nth-child(3) { opacity: .045; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr .92fr; gap: 64px; align-items: center; padding: 88px 28px 96px; }
.hero h1 {
  font-size: clamp(2.5rem, 5.4vw, 4.4rem);
  font-weight: 800; line-height: 1.03; letter-spacing: -.028em;
  color: var(--ink); margin: 24px 0 22px;
}
.hero h1 .dot { color: var(--brass); }
.lede { font-size: 1.11rem; line-height: 1.75; color: var(--slate-dark); max-width: 36rem; }
.lede strong { color: var(--ink); }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.fine { display: flex; flex-wrap: wrap; margin-top: 26px; font-size: .8rem; color: var(--slate); }
.fine span::before { content: "·\00a0\00a0"; color: var(--mist-deep); }
.fine span:first-child::before { content: ""; }

.portrait-panel { position: relative; justify-self: end; width: 100%; max-width: 430px; }
.panel-offset { position: absolute; top: 16px; left: 16px; right: -16px; bottom: -16px; background: var(--mist); z-index: 0; }
.portrait-panel img.portrait { position: relative; z-index: 1; display: block; width: 100%; border: 1px solid var(--mist-deep); }
.coord {
  position: absolute; top: -13px; right: 8px; z-index: 2;
  font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--slate); background: var(--fog); border: 1px solid var(--mist-deep);
  padding: 5px 10px;
}
.caption-bar {
  position: relative; z-index: 1; background: var(--ink); border-top: 3px solid var(--brass);
  padding: 14px 18px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
}
.caption-bar .name { font-weight: 800; font-size: .94rem; letter-spacing: .03em; color: var(--fog-white); }
.caption-bar .role { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate-light); }

/* ---------- statute band ---------- */
.band { background: var(--ink); padding: 52px 0; }
.band-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.band-item { padding: 4px 40px 4px 0; border-right: 1px solid rgba(217, 200, 159, .22); }
.band-item:first-child { padding-left: 0; }
.band-item:last-child { border-right: none; padding-right: 0; }
.band-tag { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--brass-light); font-weight: 700; }
.band-main { font-size: 1.5rem; font-weight: 800; color: var(--fog-white); letter-spacing: -.01em; margin: 10px 0 8px; }
.band-sub { font-size: .86rem; line-height: 1.6; color: var(--slate-light); }

/* ---------- sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--fog-white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section-head { max-width: 44rem; margin-bottom: 50px; }
.section-head h2 { margin: 16px 0 14px; }
.section-head .sub { color: var(--slate-dark); font-size: 1.04rem; }

h2 { font-size: clamp(1.7rem, 2.9vw, 2.4rem); font-weight: 800; letter-spacing: -.018em; line-height: 1.14; color: var(--ink); }

/* split: text left, route right */
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: 72px; align-items: start; }
.split-copy .lede { margin-bottom: 18px; }

/* case route — vertical brass-ticked timeline */
.route { border-top: 1px solid var(--rule); list-style: none; margin-top: 34px; }
.route li { position: relative; padding: 0 0 22px 28px; border-left: 1px solid var(--mist-deep); margin-left: 5px; }
.route li::before { content: ""; position: absolute; left: -5px; top: 7px; width: 9px; height: 9px; background: var(--brass); }
.route li:last-child { border-left-color: transparent; padding-bottom: 0; }
.route .step-name { font-weight: 800; font-size: 1rem; color: var(--ink); }
.route .step-desc { font-size: .88rem; color: var(--slate); margin-top: 3px; line-height: 1.6; }

/* ---------- practice cards ---------- */
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.pcard {
  background: var(--fog-white); border: 1px solid var(--rule); border-top: 3px solid var(--brass);
  padding: 30px 28px 28px; display: flex; flex-direction: column;
  transition: border-color .2s;
}
.pcard:hover { border-color: var(--brass); }
.pcard h3 { font-size: 1.22rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); margin: 18px 0 10px; }
.pcard p { font-size: .93rem; color: var(--slate-dark); flex: 1; }
.more {
  align-self: flex-start; margin-top: 20px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  border-bottom: 2px solid var(--brass); padding-bottom: 3px;
}
.more:hover { color: var(--brass-deep); }

/* ---------- firm ---------- */
.firm-grid { display: grid; grid-template-columns: 340px 1fr; gap: 60px; align-items: start; }
.firm-portrait { position: relative; }
.firm-portrait img { display: block; width: 100%; border: 1px solid var(--mist-deep); }
.firm-copy h2 { margin: 16px 0 20px; }
.firm-copy p { color: var(--slate-dark); max-width: 38rem; margin-bottom: 16px; }
.pillars { list-style: none; margin-top: 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 40px; }
.pillars li { position: relative; padding-left: 22px; font-size: .93rem; color: var(--slate-dark); }
.pillars li::before { content: ""; position: absolute; left: 0; top: .66em; width: 9px; height: 2px; background: var(--brass); }
.pillars strong { display: block; color: var(--ink); font-size: 1rem; font-weight: 800; margin-bottom: 3px; }
.cred-row { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--rule); }
.cred-row img { height: 44px; width: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  font-size: .78rem; font-weight: 600; color: var(--ink);
  border: 1px solid var(--mist-deep); background: var(--fog); padding: 7px 14px;
}

/* ---------- PI strip ---------- */
.pi-strip { border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); background: var(--fog); }
.pi-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap; padding: 26px 28px; }
.pi-label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass-deep); font-weight: 700; }
.pi-text { color: var(--slate-dark); font-size: .95rem; max-width: 34rem; }
.pi-link { font-weight: 700; color: var(--ink); text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; font-size: .95rem; }
.pi-link:hover { color: var(--brass-deep); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); padding: 84px 0 88px; }
.cta-band .strata-block { color: var(--brass-light); margin-bottom: 42px; }
.cta-band h2 { color: var(--fog-white); margin: 16px 0 16px; font-size: clamp(1.9rem, 3.6vw, 3rem); }
.cta-sub { color: var(--slate-light); font-size: 1.04rem; max-width: 38rem; }
.cta-band .ctas { margin-top: 32px; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--slate-light); }
.footer-grid { display: grid; grid-template-columns: 1.35fr .9fr 1.25fr; gap: 56px; padding: 64px 0 56px; }
.f-brand img { height: 36px; width: auto; }
.f-brand .f-name { color: var(--fog-white); font-weight: 800; margin: 14px 0 4px; font-size: 1.02rem; }
.f-brand .f-firm { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-light); }
.f-addr { margin-top: 18px; font-size: .87rem; line-height: 1.85; }
.f-addr a { color: var(--slate-light); text-decoration: none; }
.f-addr a:hover { color: var(--fog-white); }
.f-col h3 { color: var(--brass-light); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; margin-bottom: 18px; }
.f-col ul { list-style: none; }
.f-col a { color: var(--slate-light); text-decoration: none; font-size: .88rem; line-height: 2.05; }
.f-col a:hover { color: var(--fog-white); }
.f-bottom {
  border-top: 1px solid rgba(217, 200, 159, .16);
  padding: 22px 0 28px; font-size: .76rem; line-height: 1.75;
  display: flex; justify-content: space-between; gap: 16px 32px; flex-wrap: wrap;
}
.f-bottom .legal { max-width: 46rem; }

/* ---------- subpage head ---------- */
.page-head { background: var(--fog); border-bottom: 1px solid var(--rule); padding: 56px 0 54px; }
.crumbs { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); margin-bottom: 24px; }
.crumbs a { color: var(--slate); text-decoration: none; border-bottom: 1px solid var(--mist-deep); padding-bottom: 1px; }
.crumbs a:hover { color: var(--brass-deep); border-color: var(--brass); }
.crumbs [aria-current="page"] { color: var(--brass-deep); font-weight: 700; }
.page-head h1 {
  font-size: clamp(2.1rem, 4vw, 3.3rem); font-weight: 800;
  letter-spacing: -.024em; line-height: 1.06; color: var(--ink); margin: 16px 0 18px;
}
.page-head .lede { max-width: 44rem; }
.page-head .strata-block { color: var(--ink); margin-top: 34px; max-width: 420px; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.fact { display: flex; gap: 10px; align-items: baseline; border: 1px solid var(--rule); background: var(--fog-white); padding: 9px 16px; }
.fact .f-label { font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.fact .f-value { font-weight: 800; color: var(--ink); font-size: .9rem; }

/* ---------- prose ---------- */
.page-body { padding: 72px 0 96px; }
.prose { max-width: 720px; }
.prose h2 { margin: 54px 0 16px; }
.prose h2:first-child { margin-top: 0; }
.prose h2.ruled::after { content: ""; display: block; width: 44px; height: 3px; background: var(--brass); margin-top: 14px; }
.prose h3 { margin: 32px 0 10px; font-size: 1.16rem; font-weight: 800; color: var(--ink); }
.prose p { margin-bottom: 18px; color: var(--slate-dark); }
.prose ul, .prose ol { margin: 0 0 20px 22px; color: var(--slate-dark); }
.prose li { margin-bottom: 10px; }
.prose strong { color: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--brass-deep); }
.vc { color: var(--brass-deep); font-weight: 700; }
.note { border-left: 3px solid var(--brass); background: var(--fog-white); padding: 20px 24px; margin: 28px 0; font-size: .94rem; color: var(--slate-dark); }
.note strong { color: var(--ink); }

/* ---------- penalty table ---------- */
.table-hint { display: none; }
.table-scroll { overflow-x: auto; margin: 28px 0; }
.tier-table { width: 100%; border-collapse: collapse; min-width: 660px; background: var(--fog-white); }
.tier-table th {
  text-align: left; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate); font-weight: 700; padding: 13px 16px;
  border-bottom: 1px solid var(--mist-deep); background: var(--mist);
}
.tier-table td { padding: 14px 16px; border-bottom: 1px solid var(--rule); color: var(--slate-dark); font-size: .9rem; vertical-align: top; }
.tier-table tr:last-child td { border-bottom: none; }
.tier-table td.tier-name { font-weight: 800; color: var(--ink); white-space: nowrap; }

/* ---------- FAQ ---------- */
.qa { border-top: 1px solid var(--rule); padding: 32px 0 10px; }
.qa:first-of-type { border-top: none; padding-top: 0; }
.qa h2 { font-size: 1.3rem; letter-spacing: -.01em; margin-bottom: 12px; }
.qa p { margin-bottom: 0; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.form label { display: block; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--slate); font-weight: 700; margin: 22px 0 8px; }
.form input, .form select, .form textarea {
  width: 100%; padding: 13px 14px; border: 1px solid var(--mist-deep);
  background: var(--fog-white); font: inherit; font-size: .96rem; color: var(--text);
  border-radius: 0;
}
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; border-color: var(--ink); }
.form textarea { min-height: 140px; resize: vertical; }
.form .btn { margin-top: 26px; cursor: pointer; }
.form-note { font-size: .82rem; color: var(--slate); margin-top: 16px; }
.office-block { border-top: 1px solid var(--rule); padding-top: 24px; margin-bottom: 32px; }
.office-block:first-child { border-top: none; padding-top: 0; }
.office-block .city { font-size: 1.35rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.office-block .addr { color: var(--slate-dark); margin-top: 8px; font-size: .96rem; line-height: 1.75; }
.contact-direct { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; }
.contact-direct a { font-weight: 800; color: var(--ink); font-size: 1.12rem; text-decoration: none; border-bottom: 2px solid var(--brass); padding-bottom: 2px; }
.contact-direct a:hover { color: var(--brass-deep); }
.contact-langs { margin-top: 26px; font-size: .88rem; color: var(--slate); }

/* ---------- 404 ---------- */
.four04 { padding: 96px 0 104px; }
.giant { font-size: clamp(5rem, 15vw, 10rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; color: var(--mist-deep); }
.four04 h1 { margin: 22px 0 16px; }
.four04 .lede { max-width: 34rem; }
.four04 .ctas { margin-top: 32px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding: 64px 28px 76px; }
  .portrait-panel { justify-self: start; max-width: 470px; }
  .hero-strata { left: 56%; }
  .band-grid { grid-template-columns: 1fr; gap: 0; }
  .band-item { border-right: none; padding: 0 0 26px; border-bottom: 1px solid rgba(217, 200, 159, .22); }
  .band-item:last-child { border-bottom: none; padding-bottom: 0; }
  .band-item + .band-item { padding-top: 26px; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .firm-grid { grid-template-columns: 1fr; gap: 44px; }
  .firm-portrait { max-width: 340px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .section { padding: 68px 0; }
}

@media (max-width: 640px) {
  .table-hint { display: block; margin: 22px 0 -20px; font-size: .82rem; font-weight: 700; color: var(--slate); }
}

@media (max-width: 620px) {
  .wrap { padding: 0 22px; }
  .hero-grid, .pi-inner { padding-left: 22px; padding-right: 22px; }
  .bar .btn { display: none; }
  .brand-sub { display: none; }
  .brand-name { font-size: .8rem; letter-spacing: .14em; }
  .nav { gap: 4px 20px; }
  .pgrid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero h1 { letter-spacing: -.02em; }
  .coord { font-size: .6rem; padding: 4px 8px; }
  .ctas .btn { width: 100%; text-align: center; }
  .page-head { padding: 44px 0 42px; }
  .page-body { padding: 52px 0 68px; }
  .cta-band { padding: 60px 0 64px; }
}
