/* SAGH Law redesign. Mobile first; system fonts; no external requests. */
:root {
  --navy-950: #0b1830;
  --navy-900: #0e1f3a;
  --navy-800: #13294b;
  --navy-700: #1d3c6e;
  --navy-100: #e6ecf5;
  --tint: #f3f6fa;
  --ink: #18202f;
  --muted: #4f5b70;
  --line: #d5dce7;
  --paper: #ffffff;
  --brass: #c4a46b;
  --amber-bg: #fff4d6;
  --amber-line: #d49b1f;
  --radius: 6px;
  --shadow: 0 1px 2px rgba(14, 31, 58, .06), 0 8px 24px rgba(14, 31, 58, .08);
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --header-h: 64px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; font-family: var(--sans); font-size: 1.0625rem; line-height: 1.65; color: var(--ink); background: var(--paper); padding-bottom: 64px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-700); text-underline-offset: 3px; }
a:hover { color: var(--navy-900); }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.01em; color: var(--navy-900); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 7vw, 3.9rem); font-weight: 400; }
h1 em, h2 em { font-style: normal; font-weight: 700; }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 2px; }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--navy-900); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-inline: 16px; }
.icon { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Preview banner (shown only off the canonical host) */
.preview-banner { background: var(--amber-bg); border-bottom: 1px solid var(--amber-line); color: #4a3505; font-size: .9rem; padding: 8px 16px; text-align: center; }

/* Top bar */
.topbar { display: none; background: var(--navy-950); color: #cfd8e6; font-size: .875rem; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 24px; }
.topbar span, .topbar a { display: inline-flex; align-items: center; gap: 8px; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }
.topbar-links { gap: 24px !important; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header[data-scrolled] { box-shadow: 0 6px 18px rgba(14, 31, 58, .08); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.logo-frame { display: block; overflow: hidden; width: 94px; }
.logo-frame img { height: 27px; width: auto; max-width: none; }
.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav a { text-decoration: none; color: var(--ink); font-weight: 550; }
.primary-nav a[aria-current="page"] { color: var(--navy-700); box-shadow: inset 0 -2px 0 var(--brass); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.header-cta .header-consult, .header-cta .header-call span { display: none; }
.primary-nav a, .btn { white-space: nowrap; }
.header-call { padding: 10px; }
.menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); color: var(--navy-900); cursor: pointer; }
.menu-toggle .icon { width: 24px; height: 24px; }
.nav-open .primary-nav { display: block; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(14, 31, 58, .12); padding: 8px 16px 20px; max-height: calc(100vh - var(--header-h)); overflow-y: auto; }
.nav-open .primary-nav li a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--tint); font-size: 1.125rem; }
.nav-cta-mobile { display: grid; gap: 10px; margin-top: 16px; }
.primary-nav .btn-primary, .primary-nav .btn-primary:hover { color: #fff; }
.primary-nav .btn-outline { color: var(--navy-800); }
.primary-nav .btn-outline:hover { color: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: var(--radius); font-weight: 650; font-size: 1rem; line-height: 1.2; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: background-color .15s, color .15s, border-color .15s, transform .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--navy-800); color: #fff; }
.btn-primary:hover { background: var(--navy-950); color: #fff; }
.btn-light { background: #fff; color: var(--navy-900); }
.btn-light:hover { background: var(--navy-100); color: var(--navy-900); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-outline-light { border-color: rgba(255, 255, 255, .7); color: #fff; background: transparent; }
.btn-outline-light:hover { background: #fff; color: var(--navy-900); }
.btn-quiet { background: transparent; color: var(--navy-800); border-color: var(--line); }
.btn-text { min-height: 44px; padding: 8px 0; color: var(--navy-700); }
.btn-text:hover { color: var(--navy-950); }

/* Hero */
.hero, .page-hero { position: relative; overflow: hidden; color: #fff; background: radial-gradient(120% 90% at 85% 10%, #24467c 0%, var(--navy-800) 45%, var(--navy-950) 100%); isolation: isolate; }
.hero-art { position: absolute; inset: auto 0 0 0; height: 70%; z-index: -1; pointer-events: none; }
.skyline { width: 100%; height: 100%; }
.sky-back { color: rgba(255, 255, 255, .05); }
.sky-mid { color: rgba(196, 164, 107, .22); }
.sky-lines { color: rgba(11, 24, 48, .55); }
.sky-front { color: rgba(255, 255, 255, .08); }
.hero-inner { padding-block: 56px 72px; }
.hero h1, .page-hero h1 { color: #fff; max-width: 15ch; }
.hero .lead { font-size: clamp(1.08rem, 2.4vw, 1.3rem); max-width: 60ch; color: #dde5f1; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 700; color: var(--navy-700); margin-bottom: .9em; }
.hero .eyebrow, .page-hero .eyebrow, .cta-band .eyebrow { color: var(--brass); }
.hero-actions, .inline-actions, .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions .btn, .cta-actions .btn { flex: 1 1 240px; }
.hero-facts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.hero-facts li { border-left: 2px solid var(--brass); padding-left: 14px; color: #fff; font-weight: 550; }
.page-hero .wrap { padding-block: 40px 48px; }
.page-hero .hero-art { height: 100%; opacity: .8; }
.page-hero h1 { max-width: 22ch; margin-bottom: .2em; }
.page-hero .lead { color: #dde5f1; max-width: 60ch; margin-top: 12px; }
.page-hero.muted { background: linear-gradient(180deg, #3a4456, #262e3c); }
.page-hero.muted .eyebrow { color: #d9d2c3; }
.crumbs ol { list-style: none; margin: 0 0 20px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: .875rem; color: #c7d2e3; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .6; }
.crumbs a { color: #fff; }

/* Sections */
.section { padding-block: 64px; }
.section.tint, .contact-section { background: var(--tint); }
.section-head { margin-bottom: 32px; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.section-head h2 { margin-bottom: 0; }
.split-grid { display: grid; gap: 40px; align-items: center; }
.prose { max-width: 72ch; }
.prose.large p { font-size: 1.125rem; }
.prose h3 { margin-top: 1.6em; color: var(--navy-800); }
.photo { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19, 41, 75, .05), rgba(19, 41, 75, .45)); mix-blend-mode: multiply; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 70% 50%; filter: saturate(.75); }

/* Practice area cards */
.area-grid { display: grid; gap: 16px; }
.area-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px 24px; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s, border-color .2s; }
.area-card:hover, .area-card:focus-within { box-shadow: var(--shadow); transform: translateY(-2px); border-color: #b9c6da; }
.area-card h2, .area-card h3 { font-size: 1.35rem; margin-bottom: .5em; }
.area-card h2 a, .area-card h3 a { color: var(--navy-900); text-decoration: none; }
.area-card h2 a::after, .area-card h3 a::after { content: ""; position: absolute; inset: 0; }
.area-card p { color: var(--muted); flex: 1; }
.area-icon { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy-100); color: var(--navy-700); margin-bottom: 18px; }
.area-icon .icon { width: 26px; height: 26px; }
.area-card.cta-card { background: var(--navy-800); border-color: var(--navy-800); color: #dde5f1; justify-content: space-between; }
.area-card.cta-card:hover { transform: none; }
.cta-card h3 { color: #fff; }
.cta-card p { color: #dde5f1; }
.cta-card .btn { margin-top: 10px; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--navy-700); text-decoration: none; }

/* CTA band */
.cta-band { background: var(--navy-800); color: #fff; border-top: 3px solid var(--brass); }
.cta-inner { display: grid; gap: 8px; padding-block: 44px; }
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3.6vw, 2.2rem); margin-bottom: .3em; }
.cta-band p { color: #dde5f1; margin: 0; }
.cta-actions { margin-top: 16px; }

/* People */
.people { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.person-row { display: flex; align-items: center; gap: 16px; padding: 16px 4px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.person-row:hover { background: rgba(255, 255, 255, .6); }
.person-row > .icon { margin-left: auto; color: var(--navy-700); transition: transform .15s; }
.person-row:hover > .icon { transform: translateX(3px); }
.person-text { display: flex; flex-direction: column; }
.person-name { font-weight: 650; font-size: 1.125rem; color: var(--navy-900); }
.person-role { color: var(--muted); font-size: .95rem; }
.person-row.memorial .person-name { color: #3a4456; }
.monogram { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--navy-800); color: #fff; font-weight: 700; letter-spacing: .04em; font-size: .95rem; }
.monogram.large { width: 64px; height: 64px; font-size: 1.15rem; margin-bottom: 16px; }
.monogram.muted, .person-row.memorial .monogram { background: #d9dde5; color: #3a4456; }
.memoriam-label { font-size: .85rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 28px 0 8px; }
.attorney-grid { display: grid; gap: 16px; }
.attorney-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; }
.attorney-card h3 { margin-bottom: .15em; font-size: 1.4rem; }
.attorney-card h3 a { text-decoration: none; color: var(--navy-900); }
.attorney-card .person-role { margin-bottom: 1em; }
.attorney-card > p:not(.person-role):not(.card-links) { color: var(--muted); flex: 1; }
.card-links { display: grid; gap: 6px; font-size: .95rem; }
.card-links a, .contact-list a { overflow-wrap: anywhere; }
.card-links a { display: inline-flex; align-items: center; gap: 8px; }
.memoriam { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.memoriam h2 { font-size: 1.5rem; font-family: var(--serif); font-weight: 500; }
.memoriam-grid { display: grid; gap: 12px; }
.memoriam-card { display: flex; gap: 16px; align-items: center; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.memoriam-card strong { display: block; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #262e3c; }
.memoriam-card span span { color: var(--muted); font-size: .95rem; }

/* Detail pages */
.detail-grid { display: grid; gap: 40px; }
.checklist { list-style: none; margin: 0 0 1.4em; padding: 0; display: grid; gap: 10px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--navy-700); border-bottom: 2px solid var(--navy-700); transform: rotate(-45deg); }
.related { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.related h2 { font-size: 1.3rem; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips a { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--navy-100); text-decoration: none; font-weight: 600; }
.side { display: grid; gap: 16px; align-content: start; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.side-card h2 { font-size: 1.2rem; }
.consult-card { background: var(--navy-800); border-color: var(--navy-800); color: #dde5f1; }
.consult-card h2 { color: #fff; }
.consult-card .btn { width: 100%; background: #fff; color: var(--navy-900); }
.side-call { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; color: #fff; font-weight: 700; font-size: 1.15rem; text-decoration: none; }
.side-call:hover { color: #fff; text-decoration: underline; }
.side-links { list-style: none; margin: 0; padding: 0; }
.side-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--tint); text-decoration: none; font-weight: 600; }

/* Memorial */
.memorial-wrap { max-width: 800px; }
.memorial-note { font-family: var(--serif); font-size: 1.2rem; line-height: 1.75; color: #262e3c; }
mark.review { font-family: var(--sans); background: var(--amber-bg); color: #4a3505; border-bottom: 2px solid var(--amber-line); padding: 1px 4px; font-size: .95rem; }
.back-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; text-decoration: none; }
.back-link .icon { transform: rotate(180deg); }

/* Contact */
.contact-section { padding-block: 64px; }
.contact-grid { display: grid; gap: 24px; align-items: start; }
.contact-form { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px; border-top: 4px solid var(--navy-800); }
.contact-form h2, .contact-form h3 { font-size: 1.5rem; }
.form-intro { color: var(--muted); }
.fields { display: grid; gap: 16px; }
.field label { display: block; font-weight: 650; font-size: .95rem; margin-bottom: 6px; color: var(--navy-900); }
.field input, .field textarea { width: 100%; font: inherit; color: var(--ink); background: #fff; border: 1.5px solid #b9c3d3; border-radius: var(--radius); padding: 12px 14px; min-height: 48px; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(29, 60, 110, .18); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .875rem; color: var(--muted); margin: 14px 0 18px; }
.contact-form .btn { width: 100%; }
.form-status { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--navy-100); color: var(--navy-900); font-weight: 550; }
.form-status[data-kind="preview"] { background: var(--amber-bg); color: #4a3505; border: 1px solid var(--amber-line); }
.contact-details { background: var(--navy-900); color: #dde5f1; border-radius: var(--radius); padding: 28px 24px; }
.contact-details h3 { color: #fff; font-size: 1.4rem; }
.contact-details .firm-line { color: #fff; font-weight: 600; }
.contact-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 18px; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; }
.contact-list .icon { margin-top: 3px; color: var(--brass); }
.contact-list .label { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #9fb0c9; }
.contact-details a { color: #fff; font-weight: 600; }
.contact-list.tight { margin-top: 8px; gap: 12px; }
.contact-list.tight .icon { color: var(--navy-700); }
.small-link { font-size: .95rem; }

/* Footer */
.site-footer { background: var(--navy-950); color: #b7c3d6; font-size: .95rem; }
.footer-grid { display: grid; gap: 32px; padding-block: 56px 32px; }
.site-footer h2 { color: #fff; font-size: .85rem; text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.logo-invert { width: 100%; max-width: 340px; margin-bottom: 18px; }
.logo-invert img { width: 100%; height: auto; filter: grayscale(1) invert(1); mix-blend-mode: screen; }
.footer-brand p { max-width: 42ch; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 20px 28px; font-size: .85rem; }
.footer-base p { margin: 0; }

/* Mobile action bar */
.action-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: 1fr 1.4fr 1fr; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(14, 31, 58, .08); padding-bottom: env(safe-area-inset-bottom); }
.action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 60px; font-size: .8rem; font-weight: 650; text-decoration: none; color: var(--navy-900); }
.action-bar .icon { width: 22px; height: 22px; }
.action-bar .action-primary { background: var(--navy-800); color: #fff; }

@media (min-width: 640px) {
  .wrap { padding-inline: 24px; }
  .hero-facts { grid-template-columns: repeat(3, auto); justify-content: start; gap: 12px 32px; }
  .area-grid, .attorney-grid, .memoriam-grid { grid-template-columns: repeat(2, 1fr); }
  .fields { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .contact-form .btn { width: auto; }
  .hero-actions .btn, .cta-actions .btn { flex: 0 0 auto; }
}
@media (min-width: 900px) {
  body { font-size: 1.125rem; }
  .hero-inner { padding-block: 104px 120px; }
  .page-hero .wrap { padding-block: 64px 72px; }
  .section, .contact-section { padding-block: 96px; }
  .split-grid { grid-template-columns: 1.1fr .9fr; gap: 64px; }
  .team-split { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .contact-grid { grid-template-columns: 1.35fr 1fr; gap: 32px; }
  .contact-form { padding: 40px; }
  .contact-details { padding: 40px 32px; }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; gap: 32px; padding-block: 52px; }
  .cta-actions { margin-top: 0; }
  .detail-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; }
  .side { position: sticky; top: calc(var(--header-h) + 24px); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1.2fr 1.2fr; }
}
@media (min-width: 1024px) {
  :root { --header-h: 76px; }
  body { padding-bottom: 0; }
  .action-bar, .menu-toggle, .nav-cta-mobile { display: none !important; }
  .topbar { display: block; }
  .primary-nav { display: block; margin-right: auto; }
  .primary-nav ul { display: flex; gap: 24px; }
  .primary-nav a { font-size: 1rem; padding: 8px 0; }
  .header-cta .header-consult { display: inline-flex; }
  .header-call { padding: 10px 12px; }
  .brand { margin-right: 20px; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .attorney-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1360px) {
  .logo-frame { width: 312px; }
  .logo-frame img { height: 23px; }
  .header-cta .header-call span { display: inline; }
  .header-call { padding: 10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
  .btn:hover, .area-card:hover { transform: none; }
}
@media print {
  .site-header, .topbar, .action-bar, .cta-band, .contact-form, .preview-banner { display: none !important; }
  body { padding: 0; }
}
