/* Dolan Law, dolanlawct.com. One stylesheet, no frameworks. Brand: navy #161940, red #c40e0e. */

@font-face { font-family: "Libre Baskerville"; src: url("fonts/LibreBaskerville-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/Lato-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Lato"; src: url("fonts/Lato-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --navy: #161940;
  --navy-deep: #0e1030;
  --red: #c40e0e;
  --red-deep: #9c0b0b;
  --ink: #1d2036;
  --muted: #5a5f78;
  --paper: #ffffff;
  --tint: #f4f3ef;
  --line: #e1dfd8;
  --serif: "Libre Baskerville", Georgia, "Times New Roman", serif;
  --sans: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 32px);
  --radius: 10px;
  --tabbar-h: 62px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.7 var(--sans);
  padding-left: env(safe-area-inset-left); padding-right: env(safe-area-inset-right);
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--red); text-underline-offset: 3px; }
a:hover { color: var(--red-deep); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.25; margin: 0 0 .6em; font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); }
p { margin: 0 0 1.1em; }
ul { padding: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.wrap { width: 100%; max-width: 1140px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 780px; }
.ico { width: 1.25em; height: 1.25em; flex: none; }

/* Top utility strip (desktop) */
.topbar { background: var(--navy); color: #e8e9f5; font-size: .9rem; }
.topbar-in { display: flex; gap: 22px; align-items: center; min-height: 42px; }
.topbar a { color: #fff; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.topbar a:hover { text-decoration: underline; }
.topbar-q { opacity: .8; }
.topbar-open { margin-left: auto; font-weight: 700; letter-spacing: .02em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(8px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: 28px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); }
.brand img { height: 44px; width: auto; }
.brand-name { font-family: var(--serif); font-size: 1.45rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--navy); }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 6px; margin: 0; }
.nav a { display: block; padding: 10px 14px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .98rem; border-radius: 6px; position: relative; }
.nav a:hover { background: var(--tint); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 3px; background: var(--red); border-radius: 2px; }
.nav a.nav-cta { background: var(--red); color: #fff; margin-left: 8px; }
.nav a.nav-cta:hover { background: var(--red-deep); }
.nav a.nav-cta[aria-current="page"]::after { display: none; }
.bar-call { display: none; font-weight: 700; text-decoration: none; color: var(--navy); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px; border-radius: 8px; font: 700 1rem var(--sans); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-deep); color: #fff; }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: rgba(255,255,255,.7); color: #fff; }
.btn-ghost:hover { background: #fff; color: var(--navy); }

/* Hero */
.hero { position: relative; color: #fff; background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,16,48,.92) 0%, rgba(22,25,64,.78) 55%, rgba(22,25,64,.55) 100%); z-index: -1; }
.hero-in { padding-block: clamp(56px, 11vw, 132px); max-width: 1140px; }
.hero h1 { color: #fff; max-width: 17ch; margin-bottom: .45em; font-size: clamp(2rem, 1.2rem + 3.6vw, 3.6rem); }
.hero .lead { font-size: clamp(1.05rem, 1rem + .5vw, 1.3rem); max-width: 40ch; color: #e8e9f5; margin-bottom: 1.6em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-hero { background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; color: #fff; position: relative; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(14,16,48,.93), rgba(22,25,64,.7)); z-index: -1; }
.page-hero .wrap { padding-block: clamp(36px, 7vw, 76px); }
.page-hero h1 { color: #fff; margin: 0; max-width: 22ch; font-size: clamp(1.7rem, 1.1rem + 2.6vw, 2.8rem); }
.page-hero .lead { color: #e8e9f5; margin: .8em 0 0; max-width: 56ch; }

/* Sections */
.section { padding-block: clamp(44px, 7vw, 84px); }
.tint { background: var(--tint); }
.band { background: var(--navy); color: #e8e9f5; }
.band h2 { color: #fff; max-width: 30ch; margin-inline: auto; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--red); margin-bottom: .5em; }
.split { display: grid; gap: clamp(24px, 5vw, 64px); align-items: center; grid-template-columns: 1fr; }
.split-media img, .split-media video { width: 100%; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,16,48,.16); }
.split-media video { background: #000; }
.split-media img.art { box-shadow: none; max-width: 230px; margin-inline: auto; border-radius: 0; }
.split-media video { aspect-ratio: auto; }
.note { font-style: italic; font-weight: 700; color: var(--navy); }

.checks { list-style: none; margin: 0 0 1.4em; }
.checks li { position: relative; padding: .55em 0 .55em 1.9em; border-top: 1px solid var(--line); }
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: .15em; top: 1.05em; width: .8em; height: .45em; border-left: 3px solid var(--red); border-bottom: 3px solid var(--red); transform: rotate(-45deg) scale(.9); }

.cards { list-style: none; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 28px 0 0; }
.cards a { display: flex; flex-direction: column; align-items: center; gap: 12px; height: 100%; padding: 26px 14px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; box-shadow: 0 1px 2px rgba(14,16,48,.05); transition: box-shadow .15s, transform .15s, border-color .15s; }
.cards a:hover { box-shadow: 0 8px 22px rgba(14,16,48,.12); transform: translateY(-2px); border-color: #cfcdc4; }
.cards img { width: 62px; height: auto; }
.cards h3 { margin: 0; font-size: 1rem; font-family: var(--sans); font-weight: 700; color: var(--navy); }

.press { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; margin: 28px 0 32px; }
.press a { display: block; background: #fff; border-radius: 8px; padding: 10px 18px; }
.press img { height: 38px; width: auto; max-width: 150px; object-fit: contain; }

.overview { display: grid; gap: 28px; grid-template-columns: 1fr; }
.overview article { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.overview h2 { font-size: 1.35rem; }
.towns { color: var(--muted); font-style: italic; }
.split-body h3 { margin-top: 1.2em; }

/* Biography */
.bio { display: grid; gap: 36px; grid-template-columns: 1fr; align-items: start; }
.portrait { width: 100%; max-width: 420px; border-radius: var(--radius); box-shadow: 0 10px 30px rgba(14,16,48,.16); }
blockquote.pull { margin: 22px 0 0; padding: 20px 22px; background: var(--tint); border-left: 4px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; font-family: var(--serif); font-style: italic; color: var(--navy); }
blockquote.pull p { margin: 0 0 .6em; }
blockquote.pull footer { font: 700 .9rem var(--sans); font-style: normal; color: var(--muted); }
blockquote.pull img { width: 56px; height: 56px; margin-bottom: 10px; }
.prose p { max-width: 68ch; }
.cta-line { font-weight: 700; color: var(--navy); }

/* Contact */
.contact-grid { display: grid; gap: 32px; grid-template-columns: 1fr; align-items: start; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.contact-list { list-style: none; margin: 0; }
.contact-list li { padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list li:first-child { border-top: 0; padding-top: 0; }
.contact-list small { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; font-weight: 700; color: var(--muted); }
.contact-list a { font-weight: 700; text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map { display: block; margin-top: 24px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.map img { width: 100%; }
.map span { display: block; padding: 10px 14px; background: #fff; font-weight: 700; font-size: .95rem; }
form .field { margin-bottom: 18px; }
label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; color: var(--navy); }
input[type=text], input[type=email], input[type=password], input[type=url], input[type=file], textarea {
  width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #bdbbb2; border-radius: 8px; padding: 12px 14px; min-height: 48px;
}
textarea { min-height: 160px; resize: vertical; }
input:focus, textarea:focus { outline: 3px solid rgba(196,14,14,.25); border-color: var(--red); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .88rem; color: var(--muted); margin-top: 14px; }
.alert { padding: 14px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.alert-ok { background: #edf7ee; border-color: #8cc79a; color: #14501f; }
.alert-err { background: #fdeeee; border-color: #e3a1a1; color: #7a0a0a; }
.alert ul { margin: 6px 0 0; padding-left: 1.2em; }

/* News */
.articles { list-style: none; display: grid; gap: 22px; grid-template-columns: 1fr; margin: 0; }
.article { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: 0 1px 2px rgba(14,16,48,.05); }
.article-img { background: var(--tint); aspect-ratio: 16 / 10; overflow: hidden; }
.article-img img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 20px 22px 22px; }
.article time { display: block; font-size: .82rem; color: var(--muted); letter-spacing: .04em; margin-bottom: 6px; }
.article h2 { font-size: 1.15rem; margin-bottom: .5em; }
.article h2 a { color: var(--navy); text-decoration: none; }
.article h2 a:hover { color: var(--red); }
.article p { color: #3d4156; font-size: .98rem; }
.more-link { font-weight: 700; text-decoration: none; }
.article-full .prose video { width: 100%; border-radius: var(--radius); }
.article-full .prose h5, .article-full .prose h6 { font-size: 1.1rem; }
.article-full img { width: 100%; border-radius: var(--radius); margin: 0 0 24px; }
.crumbs { font-size: .92rem; margin-bottom: 18px; }
.crumbs a { font-weight: 700; text-decoration: none; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c9cbe0; font-size: .98rem; }
.site-footer a { color: #fff; text-decoration-color: rgba(255,255,255,.35); }
.site-footer a:hover { color: #fff; text-decoration-color: #fff; }
.site-footer h2 { font-family: var(--sans); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1em; }
.foot-grid { display: grid; gap: 34px; grid-template-columns: 1fr; padding-block: clamp(40px, 6vw, 64px); }
.foot-about img { margin-bottom: 14px; width: 74px; height: auto; }
.foot-about h2 { font-family: var(--serif); text-transform: none; letter-spacing: 0; font-size: 1.1rem; }
.foot-about p { font-size: .94rem; }
.plain { list-style: none; margin: 0; }
.plain li { padding: 3px 0; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { text-decoration: underline; }
.site-footer address { font-style: normal; margin-bottom: .9em; }
.legal { border-top: 1px solid rgba(255,255,255,.12); padding-block: 22px 28px; font-size: .85rem; color: #9fa2c2; }
.legal p { margin: 0 0 .5em; }

/* App chrome (phones) */
.tabbar, .sheet { display: none; }

@media (min-width: 760px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split.flip .split-media { order: 2; }
  .cards { grid-template-columns: repeat(4, 1fr); }
  .overview { grid-template-columns: repeat(3, 1fr); }
  .bio { grid-template-columns: minmax(260px, 380px) 1fr; gap: 56px; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; gap: 44px; }
  .articles { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
  .foot-links { grid-column: 1 / -1; }
}
@media (min-width: 1100px) {
  .articles { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1.1fr 1fr; }
  .foot-links { grid-column: auto; }
}

@media (max-width: 899px) {
  :root { --header-h: 58px; }
  .topbar, .nav { display: none; }
  .bar { gap: 12px; }
  .brand img { height: 34px; }
  .brand-name { font-size: 1.12rem; }
  .bar-call { display: inline-flex; margin-left: auto; font-size: .95rem; padding: 9px 14px; border: 1.5px solid var(--line); border-radius: 999px; }
  .site-header { padding-top: env(safe-area-inset-top); }
  body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); font-size: 1.03rem; }
  html { scroll-padding-top: calc(var(--header-h) + 8px); }
  .site-footer { padding-bottom: 8px; }
  .btn { width: 100%; }
  .actions .btn { width: 100%; }
  .press a { padding: 8px 14px; }

  .tabbar {
    display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    background: rgba(255,255,255,.97); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    min-height: var(--tabbar-h);
  }
  .tab { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .02em; -webkit-tap-highlight-color: transparent; }
  .tab .ico { width: 24px; height: 24px; }
  .tab[aria-current="page"] { color: var(--red); }
  .tab:active { background: var(--tint); }
  .tab-call { color: #fff; background: var(--red); margin: 0 4px; }
  .tab-call:active { background: var(--red-deep); }

  .sheet { position: fixed; inset: 0; z-index: 60; display: none; }
  .sheet:not([hidden]) { display: block; }
  .sheet-backdrop { position: absolute; inset: 0; background: rgba(14,16,48,.55); }
  .sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; background: #fff; border-radius: 18px 18px 0 0; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); box-shadow: 0 -10px 40px rgba(0,0,0,.25); }
  .sheet-panel ul { list-style: none; margin: 0 0 12px; }
  .sheet-panel li a { display: block; padding: 15px 6px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 700; color: var(--navy); }
  .sheet-close { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--tint); font: 700 1rem var(--sans); color: var(--navy); }
}
@media (max-width: 380px) { .brand-name { letter-spacing: .04em; } .bar-call { display: none; } }
@media (display-mode: standalone) { .topbar { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
