/* ==========================================================================
   Law Office of Lonnie Hank Robin — Site Stylesheet
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  --navy-900: #081221;
  --navy-800: #0f1f38;   /* primary brand navy (carried over from prior site) */
  --navy-700: #172c4c;
  --navy-600: #233d64;

  --gold-600: #a97c34;
  --gold-500: #c08f3f;
  --gold-400: #d9ab60;
  --gold-100: #f6efe2;

  --sage-700: #46562f;
  --sage-600: #5a6d3c;   /* accent carried over from prior site */

  --ink: #16202c;
  --body: #414d5c;
  --muted: #6b7787;
  --line: #e1e6ed;
  --line-soft: #eef1f6;
  --surface: #ffffff;
  --surface-soft: #f6f8fb;
  --surface-tint: #eef2f7;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --wrap: 1180px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 2px rgba(16, 32, 56, .06), 0 2px 8px rgba(16, 32, 56, .05);
  --shadow-md: 0 4px 12px rgba(16, 32, 56, .09), 0 12px 32px rgba(16, 32, 56, .07);
  --shadow-lg: 0 18px 48px rgba(16, 32, 56, .16);

  --header-h: 92px;
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  overflow-x: clip; /* belt and braces: never allow sideways scrolling */
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.72;
  color: var(--body);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--serif);
  color: var(--ink);
  line-height: 1.22;
  margin: 0 0 .6em;
  font-weight: 600;
  letter-spacing: -.005em;
}

h1 { font-size: clamp(2rem, 1.5rem + 2.1vw, 3rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.3vw, 2.25rem); }
h3 { font-size: clamp(1.28rem, 1.14rem + .6vw, 1.6rem); }
h4 { font-size: 1.14rem; }
h5 { font-size: 1rem; }

p { margin: 0 0 1.15em; }
p:last-child, ul:last-child, ol:last-child { margin-bottom: 0; }

a { color: var(--navy-600); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--gold-600); }

strong { color: var(--ink); font-weight: 650; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

:focus-visible {
  outline: 3px solid var(--gold-500);
  outline-offset: 2px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--navy-800); color: #fff; padding: .8rem 1.2rem;
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* --- Layout helpers ----------------------------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 22px; }
.wrap--narrow { max-width: 880px; }

.section { padding: clamp(3.2rem, 2rem + 4vw, 5.5rem) 0; }
.section--tight { padding: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem) 0; }
.section--soft { background: var(--surface-soft); }
.section--tint { background: var(--surface-tint); border-block: 1px solid var(--line); }

.grid { display: grid; gap: clamp(1.5rem, 1rem + 2vw, 3rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--2-1 { grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr); align-items: start; }
.grid--1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.9fr); align-items: start; }

.stack > * + * { margin-top: 1.1rem; }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }

/* Section heading block */
.sec-head { max-width: 760px; margin: 0 auto clamp(2rem, 1.4rem + 1.6vw, 3rem); text-align: center; }
.sec-head p { color: var(--muted); font-size: 1.06rem; }
.sec-head--left { margin-inline: 0; text-align: left; }

.eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: .8rem;
}

.rule {
  width: 54px; height: 3px; border: 0; margin: 1.1rem 0 1.4rem;
  background: var(--gold-500);
}
.sec-head .rule, .rule--center { margin-inline: auto; }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--sans);
  font-size: .92rem; font-weight: 650; letter-spacing: .04em; text-transform: uppercase;
  padding: .95rem 1.7rem;
  border: 2px solid transparent; border-radius: var(--radius);
  text-decoration: none; cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--gold-500); border-color: var(--gold-500); color: #1d1405; }
.btn--primary:hover { background: var(--gold-400); border-color: var(--gold-400); color: #1d1405; box-shadow: var(--shadow-md); }

.btn--navy { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.btn--navy:hover { background: var(--navy-700); border-color: var(--navy-700); color: #fff; box-shadow: var(--shadow-md); }

.btn--ghost { border-color: rgba(255,255,255,.6); color: #fff; background: transparent; }
.btn--ghost:hover { background: #fff; border-color: #fff; color: var(--navy-800); }

.btn--outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn--outline:hover { background: var(--navy-800); color: #fff; }

.btn--sm { padding: .7rem 1.15rem; font-size: .8rem; }
.btn--lg { padding: 1.1rem 2.2rem; font-size: .98rem; }
.btn--block { display: flex; width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }

/* --- Header ------------------------------------------------------------- */
.topbar {
  background: var(--navy-900);
  color: #c6d0de;
  font-size: .845rem;
  letter-spacing: .01em;
}
.topbar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 42px; flex-wrap: wrap;
}
.topbar a { color: #dbe3ee; text-decoration: none; }
.topbar a:hover { color: var(--gold-400); }
.topbar__items { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.topbar__item { display: inline-flex; align-items: center; gap: .45rem; }
.topbar__item svg { flex: none; opacity: .75; }
.topbar__social { display: flex; align-items: center; gap: .35rem; }
.topbar__social a {
  display: grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid rgba(255,255,255,.18); border-radius: 3px;
}
.topbar__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }

/* Note: do NOT add backdrop-filter/transform/filter here. Any of them would
   make this element the containing block for the fixed mobile nav panel,
   which must be positioned against the viewport. */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.98);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: var(--header-h);
}

.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; flex: none; }
.brand__mark {
  flex: none; width: 46px; height: 46px; border-radius: 3px;
  background: var(--navy-800);
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.02rem; font-weight: 700; letter-spacing: .02em;
  color: var(--gold-400);
  border: 1px solid var(--navy-700);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.16; }
.brand__name {
  font-family: var(--serif); font-size: 1.24rem; font-weight: 650; color: var(--ink);
  letter-spacing: -.01em;
}
.brand__sub {
  font-size: .655rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase;
  color: var(--gold-600); margin-top: .25rem;
}

/* Primary nav */
.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav__list { display: flex; align-items: center; gap: 1.55rem; list-style: none; margin: 0; padding: 0; }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .875rem; font-weight: 600; letter-spacing: .045em; text-transform: uppercase;
  color: var(--ink); text-decoration: none;
  padding: .5rem 0;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--gold-500); transform: scaleX(0); transform-origin: left;
  transition: transform .2s ease;
}
.nav__link:hover, .nav__link[aria-expanded="true"] { color: var(--gold-600); }
.nav__link:hover::after, .nav__item--current > .nav__link::after { transform: scaleX(1); }
.nav__item--current > .nav__link { color: var(--gold-600); }
.nav__caret { transition: transform .2s ease; }
.nav__link[aria-expanded="true"] .nav__caret { transform: rotate(180deg); }

.nav__item { position: relative; }
.nav__sub {
  position: absolute; top: calc(100% + 10px); left: -18px;
  min-width: 274px; padding: .55rem 0; margin: 0; list-style: none;
  background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold-500);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub,
.nav__sub.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__sub a {
  display: block; padding: .62rem 1.25rem;
  font-size: .905rem; color: var(--body); text-decoration: none;
  border-left: 3px solid transparent;
}
.nav__sub a:hover { background: var(--surface-soft); color: var(--navy-800); border-left-color: var(--gold-500); }

.nav__mobile-cta { display: none; }

.header__cta { display: flex; align-items: center; gap: 1rem; flex: none; }
.header__phone {
  display: flex; flex-direction: column; line-height: 1.2; text-decoration: none;
}
.header__phone-label {
  font-size: .655rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.header__phone-num { font-family: var(--serif); font-size: 1.22rem; font-weight: 650; color: var(--navy-800); }
.header__phone:hover .header__phone-num { color: var(--gold-600); }

/* Mobile toggle */
.nav-toggle {
  display: none; width: 46px; height: 46px; flex: none;
  align-items: center; justify-content: center;
  background: var(--navy-800); border: 0; border-radius: var(--radius); cursor: pointer;
}
.nav-toggle__bar {
  display: block; position: relative; width: 20px; height: 2px; background: #fff;
  transition: background .2s ease;
}
.nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: #fff;
  transition: transform .22s ease, top .22s ease;
}
.nav-toggle__bar::before { top: -6px; }
.nav-toggle__bar::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after { top: 0; transform: rotate(-45deg); }

/* --- Hero (home) -------------------------------------------------------- */
.hero { position: relative; background: var(--navy-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(8,18,33,.94) 0%, rgba(8,18,33,.86) 42%, rgba(8,18,33,.55) 100%);
}
.hero__inner {
  position: relative; z-index: 1;
  padding: clamp(4rem, 2.5rem + 8vw, 8rem) 0 clamp(3.5rem, 2.5rem + 6vw, 7rem);
  max-width: 720px;
}
.hero .eyebrow { color: var(--gold-400); }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero__lede { color: #cad4e2; font-size: clamp(1.02rem, .96rem + .3vw, 1.16rem); max-width: 620px; }
.hero__meta {
  display: flex; flex-wrap: wrap; gap: 1.6rem 2.6rem;
  margin-top: 2.6rem; padding-top: 1.9rem;
  border-top: 1px solid rgba(255,255,255,.15);
}
.hero__stat-num {
  font-family: var(--serif); font-size: 1.85rem; font-weight: 650; color: var(--gold-400); line-height: 1;
}
.hero__stat-label {
  display: block; margin-top: .45rem;
  font-size: .74rem; font-weight: 650; letter-spacing: .13em; text-transform: uppercase; color: #9fadbf;
}

/* --- Page banner (interior) --------------------------------------------- */
.banner { position: relative; background: var(--navy-800); overflow: hidden; }
.banner__bg { position: absolute; inset: 0; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .34; }
.banner__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(95deg, rgba(15,31,56,.93), rgba(15,31,56,.72));
}
.banner__inner { position: relative; z-index: 1; padding: clamp(2.6rem, 1.8rem + 3.4vw, 4.6rem) 0; }
.banner h1 { color: #fff; margin-bottom: .35em; }
.banner__lede { color: #c3cfdf; max-width: 640px; font-size: 1.05rem; margin: 0; }
.banner .eyebrow { color: var(--gold-400); }

/* Breadcrumbs */
.crumbs { background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: .84rem; }
.crumbs ol {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  list-style: none; margin: 0; padding: .85rem 0; color: var(--muted);
}
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-600); text-decoration: underline; }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: #b6bfcc; }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* --- Cards -------------------------------------------------------------- */
.card-grid { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); }
.card-grid--five { grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 1.35rem; }

.card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfd8e4; }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
a.card:hover .card__media img { transform: scale(1.05); }
.card__body { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--ink); }
.card__text { font-size: .93rem; color: var(--muted); margin: 0 0 1.1rem; line-height: 1.62; }
.card__more {
  margin-top: auto;
  font-size: .78rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--gold-600); display: inline-flex; align-items: center; gap: .4rem;
}
a.card:hover .card__more { gap: .65rem; }
.card__more svg { transition: transform .2s ease; }

/* Action / icon boxes */
.action-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(224px, 1fr)); }
.action {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 1.4rem 1.7rem;
  transition: box-shadow .2s ease, transform .2s ease;
}
.action:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.action__icon {
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--navy-800); color: var(--gold-400);
}
.action h3 { font-size: 1.08rem; margin-bottom: .5rem; }
.action p { font-size: .91rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.6; }
.action .btn { margin-top: auto; }
.action__lawpay { margin: 0 auto 1.1rem; max-width: 176px; }

/* Feature list with check icons */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  position: relative; padding-left: 1.85rem; margin-bottom: .68rem; line-height: 1.6;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .48em;
  width: 12px; height: 7px; border-left: 2px solid var(--gold-500); border-bottom: 2px solid var(--gold-500);
  transform: rotate(-45deg);
}
.checklist--2 { columns: 2; column-gap: 2.4rem; }
.checklist--2 li { break-inside: avoid; }
.checklist a { color: var(--navy-600); text-decoration: none; }
.checklist a:hover { color: var(--gold-600); text-decoration: underline; }

/* Callout box */
.callout {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-500);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
}
.callout h3 { margin-bottom: .8rem; }
.callout--navy {
  background: var(--navy-800); border-color: var(--navy-700); border-left-color: var(--gold-500);
  color: #c3cfdf;
}
.callout--navy h3, .callout--navy strong { color: #fff; }
/* :not(.btn) so buttons keep their own foreground — otherwise gold-on-gold. */
.callout--navy a:not(.btn) { color: var(--gold-400); }

/* Image column helpers */
.img-stack { display: grid; gap: 1.1rem; }
.img-frame {
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  background: var(--surface-tint);
}
.img-frame img { width: 100%; }
.img-frame--tall img { aspect-ratio: 4 / 3; object-fit: cover; }

figure.figure { margin: 0; }
figure.figure figcaption {
  font-size: .82rem; color: var(--muted); margin-top: .55rem; text-align: center;
}

/* --- Accordion (FAQ) ---------------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.acc {
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.acc__btn {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
  width: 100%; text-align: left;
  padding: 1.35rem .4rem;
  background: none; border: 0; cursor: pointer;
  font-family: var(--serif); font-size: 1.06rem; font-weight: 600; line-height: 1.45;
  color: var(--ink);
}
.acc__btn:hover { color: var(--gold-600); }
.acc__icon {
  flex: none; position: relative; width: 22px; height: 22px; margin-top: .22rem;
  border: 1.5px solid var(--gold-500); border-radius: 50%;
}
.acc__icon::before, .acc__icon::after {
  content: ""; position: absolute; top: 50%; left: 50%; background: var(--gold-600);
  transform: translate(-50%, -50%); transition: opacity .2s ease, transform .2s ease;
}
.acc__icon::before { width: 10px; height: 1.5px; }
.acc__icon::after  { width: 1.5px; height: 10px; }
.acc__btn[aria-expanded="true"] .acc__icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.acc__panel { display: none; padding: 0 .4rem 1.6rem; }
.acc__panel.is-open { display: block; }
.acc__panel > *:first-child { margin-top: 0; }
.acc__panel p { font-size: .97rem; }

/* --- CTA band ----------------------------------------------------------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy-900); }
.cta-band__bg { position: absolute; inset: 0; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .32; }
.cta-band__bg::after { content: ""; position: absolute; inset: 0; background: rgba(8,18,33,.68); }
.cta-band__inner {
  position: relative; z-index: 1; text-align: center;
  padding: clamp(3rem, 2rem + 4vw, 5rem) 0;
}
.cta-band h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.cta-band p { color: #c3cfdf; max-width: 620px; margin: 0 auto 2rem; }

/* --- Contact ------------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }

.form-card {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.6vw, 2.4rem);
}
.field { margin-bottom: 1.15rem; }
.field label {
  display: block; margin-bottom: .42rem;
  font-size: .82rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--ink);
}
.field .req { color: #b0392f; }
.field input, .field select, .field textarea {
  width: 100%; padding: .82rem .95rem;
  font-family: inherit; font-size: .98rem; color: var(--ink);
  background: #fff; border: 1px solid #cfd7e2; border-radius: var(--radius);
  transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(192,143,63,.18);
}
.field textarea { min-height: 152px; resize: vertical; }
.field-row { display: grid; gap: 1.15rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field-note { font-size: .82rem; color: var(--muted); margin: -.35rem 0 1.1rem; }

.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--muted); line-height: 1.55; }
.consent input { width: auto; margin-top: .28rem; flex: none; }

.form-status {
  display: none; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: var(--radius);
  font-size: .92rem; border: 1px solid;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: #eef7f0; border-color: #bcdcc5; color: #245c33; }
.form-status--err { background: #fdf0ef; border-color: #f0c7c3; color: #8c2c24; }

.info-card {
  background: var(--navy-800); color: #c3cfdf;
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.1rem);
}
.info-card h3 { color: #fff; }
.info-card a:not(.btn) { color: #e5ebf3; text-decoration: none; }
.info-card a:not(.btn):hover { color: var(--gold-400); }
.info-block { display: flex; gap: .95rem; padding: 1.05rem 0; border-bottom: 1px solid rgba(255,255,255,.12); }
.info-block:last-of-type { border-bottom: 0; }
.info-block__icon { flex: none; color: var(--gold-400); margin-top: .2rem; }
.info-block__label {
  font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase;
  color: #8fa0b6; margin-bottom: .3rem;
}
.info-block__value { color: #fff; font-size: .99rem; line-height: 1.6; }
.info-block__value a { color: #fff; }

.map-embed { line-height: 0; border-top: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 420px; border: 0; display: block; filter: grayscale(.18); }

/* --- Article list ------------------------------------------------------- */
.article-list { display: grid; gap: 1.5rem; }
.article-item {
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.6rem;
  align-items: center;
  padding: 1.5rem; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: box-shadow .2s ease, border-color .2s ease;
}
.article-item:hover { box-shadow: var(--shadow-md); border-color: #cfd8e4; }
.article-item__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; }
.article-item__media img { width: 100%; height: 100%; object-fit: cover; }
.article-item h3 { margin-bottom: .45rem; font-size: 1.24rem; }
.article-item h3 a { color: var(--ink); text-decoration: none; }
.article-item h3 a:hover { color: var(--gold-600); }
.article-item p { font-size: .95rem; color: var(--muted); margin-bottom: .9rem; }

.prose { max-width: 760px; }
.prose h2 { margin-top: 2.4rem; }
.prose h3 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }

.pill {
  display: inline-block; padding: .3rem .75rem; border-radius: 100px;
  background: var(--gold-100); color: var(--gold-600);
  font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
}

/* --- Attorney bio ------------------------------------------------------- */
.bio-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); box-shadow: var(--shadow-sm);
  text-align: center;
}
.bio-card__photo {
  width: 200px; margin: 0 auto 1.2rem; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
}
.bio-card h3 { margin-bottom: .2rem; }
.bio-card__role { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); }
.bio-card__badge { margin: 1.5rem auto 0; max-width: 178px; }

.cred-group { margin-bottom: 1.9rem; }
.cred-group:last-child { margin-bottom: 0; }
.cred-group h4 {
  font-family: var(--sans); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600);
  margin-bottom: .8rem; padding-bottom: .55rem; border-bottom: 1px solid var(--line);
}
.cred-list { list-style: none; margin: 0; padding: 0; }
.cred-list li { display: flex; gap: 1rem; padding: .45rem 0; font-size: .97rem; }
.cred-list .yr { flex: none; width: 108px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }

/* --- Resources ---------------------------------------------------------- */
.res-block {
  display: grid; gap: clamp(1.4rem, 1rem + 1.6vw, 2.6rem);
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: start;
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem) 0;
  border-bottom: 1px solid var(--line);
}
.res-block:last-child { border-bottom: 0; }
.res-block--flip { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.res-block--flip .res-block__media { order: 2; }
.res-block h3 { font-size: 1.24rem; margin-bottom: 1rem; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--navy-900); color: #9dabbd; font-size: .93rem; }
.site-footer a { color: #cbd5e2; text-decoration: none; }
.site-footer a:hover { color: var(--gold-400); }
.footer__main {
  display: grid; gap: 2.4rem;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  padding: clamp(2.8rem, 2rem + 3vw, 4.2rem) 0 2.6rem;
}
.footer__brand .brand__name { color: #fff; }
.footer__brand .brand { margin-bottom: 1.1rem; }
.footer__brand p { font-size: .92rem; line-height: 1.7; }
.footer h4 {
  font-family: var(--sans); color: #fff; font-size: .76rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase; margin-bottom: 1.1rem;
}
.footer__list { list-style: none; margin: 0; padding: 0; }
.footer__list li { margin-bottom: .6rem; }
.footer__contact { list-style: none; margin: 0; padding: 0; }
.footer__contact li { display: flex; gap: .7rem; margin-bottom: .9rem; line-height: 1.6; }
.footer__contact svg { flex: none; margin-top: .28rem; color: var(--gold-500); }
.footer__social { display: flex; gap: .5rem; margin-top: 1.4rem; }
.footer__social a {
  display: grid; place-items: center; width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,.2); border-radius: var(--radius);
}
.footer__social a:hover { background: var(--gold-500); border-color: var(--gold-500); color: var(--navy-900); }
.footer__badges { display: flex; align-items: center; gap: 1rem; margin-top: 1.6rem; }
.footer__badges img { background: #fff; padding: .5rem; border-radius: var(--radius); max-width: 132px; }

.footer__legal {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.8rem 0 2.4rem;
  font-size: .82rem; line-height: 1.7; color: #7f8da0;
}
.footer__legal p { margin-bottom: .9rem; }
.footer__legal-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem;
  margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,.08);
}
.footer__legal-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }

/* --- 404 ---------------------------------------------------------------- */
.err {
  text-align: center; padding: clamp(4rem, 3rem + 5vw, 8rem) 0;
}
.err__code {
  font-family: var(--serif); font-size: clamp(4.5rem, 3rem + 9vw, 9rem); line-height: 1;
  color: var(--surface-tint); margin: 0 0 -.25em;
}
.err h1 { position: relative; }

/* --- Utilities ---------------------------------------------------------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.lede { font-size: 1.1rem; color: var(--ink); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1080px) {
  :root { --header-h: 78px; }
  .nav__list { gap: 1.1rem; }
  .nav__link { font-size: .8rem; }
  .header__phone { display: none; }
}

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  /* Off-canvas panel. It is anchored inside the viewport and revealed with
     opacity + a vertical nudge — never translated horizontally off-screen,
     which would widen the document and create a horizontal scrollbar. */
  .nav {
    position: fixed; inset: var(--header-h) 0 0 auto;
    width: min(360px, 86vw);
    display: block; overflow-y: auto;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: var(--shadow-lg);
    padding: 1.4rem 1.5rem 3rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity .22s ease, transform .22s ease, visibility .22s;
    z-index: 190;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__item { border-bottom: 1px solid var(--line-soft); }
  .nav__link { width: 100%; justify-content: space-between; padding: .95rem 0; font-size: .9rem; }
  .nav__link::after { display: none; }
  .nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: 0; border-left: 2px solid var(--gold-500);
    min-width: 0; margin: 0 0 .8rem .2rem; padding: 0;
    display: none;
  }
  .nav__sub.is-open { display: block; }
  .nav__sub a { padding: .55rem 0 .55rem 1rem; border-left: 0; }
  .nav__sub a:hover { background: none; }
  .nav__mobile-cta { margin-top: 1.6rem; display: grid; gap: .7rem; }

  .grid--2, .grid--3, .grid--2-1, .grid--1-2 { grid-template-columns: minmax(0, 1fr); }
  .grid--1-2 .grid__media, .res-block--flip .res-block__media { order: -1; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .res-block, .res-block--flip { grid-template-columns: minmax(0, 1fr); }
  .res-block--flip .res-block__media { order: -1; }
  .footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  body { font-size: 16.5px; }
  .topbar__inner { justify-content: center; min-height: 0; padding-block: .5rem; }
  .topbar__items { gap: .5rem 1.1rem; justify-content: center; font-size: .8rem; }
  .topbar__social { display: none; }
  .brand__name { font-size: 1.06rem; }
  .brand__mark { width: 40px; height: 40px; font-size: .92rem; }
  .article-item { grid-template-columns: minmax(0, 1fr); }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .checklist--2 { columns: 1; }
  .hero__meta { gap: 1.4rem 2rem; }
  .btn { padding: .88rem 1.4rem; font-size: .86rem; }
  .footer__main { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .map-embed iframe { height: 320px; }
  .cred-list li { flex-direction: column; gap: .1rem; }
  .cred-list .yr { width: auto; font-size: .84rem; color: var(--gold-600); }
}

/* --- Print -------------------------------------------------------------- */
@media print {
  .topbar, .site-header, .cta-band, .site-footer, .nav-toggle, .map-embed { display: none !important; }
  body { font-size: 11pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .acc__panel { display: block !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}
