/* Shir Law Group — site styles */
:root {
  --ink: #0d1726;
  --navy: #13233a;
  --navy-2: #1b3150;
  --gold: #b8935a;
  --gold-2: #d4b27c;
  --gold-ink: #7a5a28;
  --cream: #f6f2ea;
  --paper: #ffffff;
  --text: #1c2431;
  --muted: #5a6475;
  --line: #e5dfd3;
  --focus: #2f6fdb;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(13, 23, 38, .06), 0 8px 28px rgba(13, 23, 38, .08);
  --shadow-lg: 0 20px 60px rgba(13, 23, 38, .22);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--sans); color: var(--text); background: var(--paper); text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-2); text-underline-offset: 3px; }
a:hover { color: var(--gold-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); margin: 0 0 .6em; }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
.icon { width: 22px; height: 22px; flex: none; }
.icon.sm { width: 17px; height: 17px; }
.eyebrow { font: 600 .78rem/1.2 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: .9rem; }
.eyebrow.light, .page-hero .eyebrow { color: var(--gold-2); }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 46rem; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .85rem 1.35rem; border-radius: 999px; font: 600 .97rem/1 var(--sans); text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background .15s, color .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: .6rem 1rem; font-size: .9rem; }
.btn-block { width: 100%; margin-top: .6rem; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-2); color: var(--ink); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: var(--cream); color: var(--navy); }
.btn-ghost:hover { background: #ece5d6; color: var(--ink); }
.btn-ghost-light { border-color: rgba(255,255,255,.35); color: #fff; background: rgba(255,255,255,.06); }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.12); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 23, 38, .92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid rgba(255,255,255,.08); }
.header-row { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; }
.brand img { border-radius: 8px; width: 40px; height: 40px; object-fit: cover; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font: 600 1.12rem var(--serif); letter-spacing: .01em; }
.brand-text small { font-size: .72rem; color: rgba(255,255,255,.62); letter-spacing: .06em; }
.brand:hover { color: #fff; }
.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li > a, .main-nav button { display: block; padding: .55rem .8rem; color: rgba(255,255,255,.86); text-decoration: none; font: 500 .95rem var(--sans); background: none; border: 0; cursor: pointer; border-radius: 8px; }
.main-nav > ul > li > a:hover, .main-nav button:hover, .main-nav [aria-current="page"] { color: #fff; background: rgba(255,255,255,.08); }
.main-nav button::after { content: ''; display: inline-block; width: 6px; height: 6px; margin-left: .45rem; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.has-menu { position: relative; }
.menu { position: absolute; top: calc(100% + 10px); left: -10px; width: 330px; list-style: none; margin: 0; padding: .5rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.has-menu.open .menu { opacity: 1; visibility: visible; transform: none; }
.menu a { display: flex; align-items: center; gap: .7rem; padding: .6rem .7rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .95rem; }
.menu a:hover { background: var(--cream); color: var(--ink); }
.menu .icon { color: var(--gold-ink); }
.menu-all { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }
.menu-all a { font-weight: 600; color: var(--navy-2); }
.header-actions { display: flex; align-items: center; gap: .9rem; }
.header-phone { display: flex; align-items: center; gap: .4rem; color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem; }
.header-phone:hover { color: var(--gold-2); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; padding: .4rem; cursor: pointer; }
.nav-cta-mobile { display: none; }

/* hero */
.hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background:
  radial-gradient(900px 500px at 85% -10%, rgba(184,147,90,.28), transparent 60%),
  radial-gradient(700px 500px at -10% 110%, rgba(47,111,219,.18), transparent 60%),
  linear-gradient(160deg, #0d1726 0%, #13233a 60%, #0d1726 100%); }
.hero-bg::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(to bottom, #000 30%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.hero h1 { color: #fff; }
.hero .lead { color: rgba(255,255,255,.78); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.8rem 0 2rem; }
.hero-ask { max-width: 560px; padding: 1rem; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.hero-ask label { display: flex; align-items: center; gap: .45rem; font-weight: 600; font-size: .92rem; color: var(--gold-2); margin-bottom: .6rem; }
.hero-ask-row { display: flex; gap: .5rem; }
.hero-ask input { flex: 1; min-width: 0; padding: .75rem .95rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); background: rgba(13,23,38,.6); color: #fff; font: inherit; font-size: .97rem; }
.hero-ask input::placeholder { color: rgba(255,255,255,.5); }
.hero-media { margin: 0; position: relative; }
.hero-media img { border-radius: 22px; aspect-ratio: 4 / 4.2; object-fit: cover; object-position: 62% center; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.12); }
.hero-media figcaption { position: absolute; left: 1rem; bottom: 1rem; display: flex; gap: .4rem; align-items: center; padding: .5rem .85rem; border-radius: 999px; background: rgba(13,23,38,.78); backdrop-filter: blur(8px); font-size: .85rem; }

/* trust strip */
.trust { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.08); }
.trust-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.trust-grid > div { padding: 1.6rem 1.2rem; border-left: 1px solid rgba(255,255,255,.1); }
.trust-grid > div:first-child { border-left: 0; padding-left: 0; }
.trust strong { display: block; font: 500 1.45rem var(--serif); color: var(--gold-2); }
.trust span { font-size: .9rem; color: rgba(255,255,255,.72); }

/* sections */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section-tint { background: var(--cream); }
.section-head { max-width: 720px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { color: var(--muted); }
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { display: flex; flex-direction: column; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d8ccb5; color: var(--text); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--muted); font-size: .96rem; }
.card-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: var(--cream); color: var(--gold-ink); margin-bottom: 1.1rem; }
.card-link { margin-top: auto; display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--navy-2); }
.card:hover .card-link { color: var(--gold-ink); }

/* split / why */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3.5rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: .75rem; }
.checks li { display: flex; gap: .65rem; align-items: flex-start; }
.checks .icon { color: var(--gold-ink); margin-top: .3rem; }
.ai-card { padding: 2rem; border-radius: 22px; background: linear-gradient(160deg, var(--ink), var(--navy-2)); color: #fff; box-shadow: var(--shadow-lg); }
.ai-card h3 { color: #fff; font-size: 1.6rem; }
.ai-card p { color: rgba(255,255,255,.78); }
.ai-card-head { display: inline-flex; gap: .45rem; align-items: center; padding: .35rem .8rem; border-radius: 999px; background: rgba(184,147,90,.18); color: var(--gold-2); font-size: .82rem; font-weight: 600; margin-bottom: 1.1rem; }
.ai-prompts { display: grid; gap: .55rem; margin: 1.3rem 0; }
.ai-prompts button { text-align: left; padding: .8rem 1rem; border-radius: 12px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); color: #fff; font: 500 .95rem var(--sans); cursor: pointer; transition: .15s; }
.ai-prompts button:hover { background: rgba(255,255,255,.12); border-color: var(--gold-2); }
.fine { font-size: .78rem; color: rgba(255,255,255,.55) !important; margin: 0; }

/* attorneys */
.attorney-card { padding: 0; overflow: hidden; }
.attorney-photo { background: linear-gradient(160deg, #e9e2d4, #d9cdb7); aspect-ratio: 4 / 3.3; display: grid; place-items: center; overflow: hidden; }
.attorney-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.attorney-body { padding: 1.4rem 1.5rem 1.6rem; }
.role { color: var(--gold-ink) !important; font-weight: 600; font-size: .85rem !important; letter-spacing: .04em; text-transform: uppercase; margin-bottom: .6rem; }
.photo-fallback { display: grid; place-items: center; width: 108px; height: 108px; border-radius: 50%; background: var(--navy); color: var(--gold-2); font: 500 2.2rem var(--serif); }
.photo-fallback.lg { width: 220px; height: 220px; font-size: 4rem; }
.compact .attorney-photo { aspect-ratio: 16 / 9; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 2.5rem 1.2rem 0; position: relative; font: 500 1.12rem var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); font: 400 1.6rem var(--sans); color: var(--gold-ink); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-right: 2rem; }

/* page hero */
.page-hero { background: linear-gradient(160deg, var(--ink), var(--navy) 70%); color: #fff; padding: 2.2rem 0 3.4rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0, rgba(184,147,90,.25), transparent 60%); }
.page-hero .wrap { position: relative; }
.page-hero h1 { color: #fff; max-width: 52rem; }
.page-hero .lead { color: rgba(255,255,255,.78); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0 0 2rem; padding: 0; font-size: .85rem; color: rgba(255,255,255,.6); }
.crumbs li + li::before { content: '/'; margin-right: .4rem; opacity: .5; }
.crumbs a { color: rgba(255,255,255,.75); text-decoration: none; }
.crumbs a:hover { color: #fff; }
.attorney-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; }
.attorney-portrait img, .attorney-portrait .photo-fallback { width: 240px; height: auto; border-radius: 18px; border: 4px solid rgba(255,255,255,.12); box-shadow: var(--shadow-lg); }
.attorney-portrait .photo-fallback { height: 240px; border-radius: 18px; }

/* content + sidebar */
.with-side { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 3.5rem; align-items: start; }
.prose { max-width: 760px; }
.prose h2 { margin-top: 2.2rem; font-size: 1.7rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .45rem; }
.prose figure { margin: 2rem 0; }
.prose figure img { border-radius: var(--radius); }
.prose figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }
.service-list { list-style: none; padding: 0 !important; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; }
.service-list li { display: flex; gap: .55rem; align-items: flex-start; margin: 0; }
.service-list .icon { color: var(--gold-ink); margin-top: .3rem; }
.side-card { position: sticky; top: 96px; padding: 1.7rem; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); }
.side-card h2 { font-size: 1.4rem; }
.side-card p { color: var(--muted); }
.side-card .icon { color: var(--gold-ink); vertical-align: -3px; }
.side-address { margin: 1.1rem 0 0; font-size: .9rem; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); background: #fff7e8; border: 1px solid #ecd3a4; margin-bottom: 1.8rem; font-size: .96rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 3rem; align-items: start; }
.contact-form { padding: 2rem; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; padding: .8rem .95rem; border-radius: var(--radius-sm); border: 1.5px solid var(--line); font: inherit; font-size: 1rem; background: #fff; color: var(--text); transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy-2); outline: none; box-shadow: 0 0 0 3px rgba(47,111,219,.15); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .err { color: #b3261e; font-size: .85rem; margin: .35rem 0 0; }
.hint { font-size: .85rem; color: var(--muted); margin: .35rem 0 0; }
.field.check { display: flex; gap: .65rem; align-items: flex-start; }
.field.check input { width: 20px; height: 20px; margin-top: .2rem; flex: none; accent-color: var(--navy); }
.field.check label { font-weight: 400; font-size: .92rem; }
.form-status { margin: 1rem 0 0; font-weight: 500; }
.form-status.ok { color: #1d6b3a; }
.form-status.bad { color: #b3261e; }
.contact-info .side-card { position: static; }
.contact-info p .icon { margin-right: .3rem; }
.contact-photo { margin: 1.2rem 0 0; }
.contact-photo img { border-radius: var(--radius); }

/* CTA band + footer */
.cta-band { background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 100%); }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: 2.6rem 0; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: #3b2c14; }
.cta-band-actions { display: flex; flex-wrap: wrap; gap: .7rem; }
.cta-band .btn-gold { background: var(--ink); color: #fff; }
.cta-band .btn-gold:hover { background: var(--navy-2); }
.cta-band .btn-ghost-light { color: var(--ink); border-color: rgba(13,23,38,.4); background: transparent; }
.site-footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 4rem 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr .7fr; gap: 2.5rem; }
.site-footer h3 { color: #fff; font: 600 .8rem var(--sans); letter-spacing: .12em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer ul { list-style: none; margin: 0 0 1.6rem; padding: 0; display: grid; gap: .45rem; }
.site-footer a { color: rgba(255,255,255,.78); text-decoration: none; }
.site-footer a:hover { color: var(--gold-2); }
.site-footer address { font-style: normal; margin-top: 1.4rem; line-height: 2; }
.site-footer address .icon { color: var(--gold-2); vertical-align: -3px; margin-right: .2rem; }
.brand-light small { max-width: 220px; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding: 1.8rem 0 6rem; font-size: .8rem; color: rgba(255,255,255,.52); }

/* chat */
.chat-launch { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; align-items: center; gap: .55rem; padding: .85rem 1.2rem .85rem 1rem; border-radius: 999px; border: 1px solid rgba(255,255,255,.15); background: var(--ink); color: #fff; font: 600 .95rem var(--sans); box-shadow: var(--shadow-lg); cursor: pointer; transition: transform .2s; }
.chat-launch .icon { color: var(--gold-2); }
.chat-launch:hover { transform: translateY(-2px); }
.chat-launch[aria-expanded="true"] { display: none; }
.chat-panel { position: fixed; right: 20px; bottom: 20px; z-index: 70; width: min(400px, calc(100vw - 24px)); height: min(640px, calc(100vh - 40px)); display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.chat-panel[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.1rem; background: linear-gradient(140deg, var(--ink), var(--navy-2)); color: #fff; }
.chat-head h2 { font: 600 1rem var(--sans); color: #fff; margin: 0; }
.chat-head p { margin: 0; font-size: .78rem; color: rgba(255,255,255,.65); }
.chat-avatar { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(184,147,90,.22); color: var(--gold-2); }
.chat-close { margin-left: auto; background: none; border: 0; color: #fff; cursor: pointer; padding: .3rem; border-radius: 8px; }
.chat-close:hover { background: rgba(255,255,255,.1); }
.chat-log { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .75rem; background: #fbfaf7; }
.msg { max-width: 88%; padding: .75rem .95rem; border-radius: 16px; font-size: .95rem; line-height: 1.55; }
.msg p { margin: 0 0 .5em; }
.msg p:last-child { margin: 0; }
.msg ul { margin: .3em 0 .5em; padding-left: 1.1rem; }
.msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.msg.bot a { color: var(--navy-2); font-weight: 500; }
.msg-note { font-size: .8rem; color: var(--muted); }
.msg.typing { display: flex; gap: 4px; align-items: center; }
.msg.typing span { width: 7px; height: 7px; border-radius: 50%; background: #b9b2a3; animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .15s; }
.msg.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-suggest { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1.1rem .7rem; background: #fbfaf7; }
.chat-suggest button { padding: .45rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: 500 .82rem var(--sans); color: var(--navy-2); cursor: pointer; }
.chat-suggest button:hover { border-color: var(--gold); }
.chat-form { display: flex; gap: .5rem; padding: .75rem; border-top: 1px solid var(--line); background: #fff; }
.chat-form textarea { flex: 1; resize: none; max-height: 120px; padding: .7rem .9rem; border-radius: 14px; border: 1.5px solid var(--line); font: inherit; font-size: .95rem; }
.chat-form textarea:focus { outline: none; border-color: var(--navy-2); }
.chat-form button { width: 44px; border-radius: 12px; border: 0; background: var(--gold); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.chat-form button:disabled { opacity: .5; cursor: wait; }

/* responsive */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .header-phone span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .header-actions .btn { display: none; }
  .main-nav { position: fixed; inset: 72px 0 0; background: var(--ink); padding: 1rem 16px 2rem; overflow-y: auto; transform: translateX(100%); transition: transform .25s; margin: 0; }
  .main-nav.open { transform: none; }
  .main-nav > ul { flex-direction: column; }
  .main-nav > ul > li > a, .main-nav button { font-size: 1.1rem; padding: .9rem .5rem; width: 100%; text-align: left; }
  .menu { position: static; width: auto; opacity: 1; visibility: visible; transform: none; display: none; background: rgba(255,255,255,.04); box-shadow: none; }
  .has-menu.open .menu { display: block; }
  .menu a { color: rgba(255,255,255,.86); }
  .menu a:hover { background: rgba(255,255,255,.06); color: #fff; }
  .menu .icon { color: var(--gold-2); }
  .menu-all { border-color: rgba(255,255,255,.1); }
  .menu-all a { color: var(--gold-2); }
  .nav-cta-mobile { display: block; margin-top: 1.5rem; }
  .nav-cta-mobile .btn { width: 100%; }
  .hero-grid, .split, .with-side, .contact-grid, .attorney-hero-grid { grid-template-columns: 1fr; }
  .hero-media img { aspect-ratio: 16 / 10; }
  .side-card { position: static; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .attorney-portrait { order: -1; }
  .attorney-portrait img, .attorney-portrait .photo-fallback { width: 160px; }
  .attorney-portrait .photo-fallback { height: 160px; }
}
@media (max-width: 620px) {
  body { font-size: 1rem; }
  .grid-4, .grid-3, .grid-2, .form-row, .service-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-ask-row { flex-direction: column; }
  .contact-form { padding: 1.3rem; }
  .chat-launch span { display: none; }
  .chat-launch { padding: .95rem; }
  .chat-panel { right: 12px; bottom: 12px; height: calc(100vh - 24px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .chat-launch, .chat-panel, .cta-band, .side-card { display: none !important; }
}
.mt-lg { margin-top: 2.5rem; }
.main-nav a, .main-nav button, .btn, .header-phone, .brand-text small { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 901px) {
  .brand-text small { display: none; }
  .main-nav > ul > li > a, .main-nav button { padding-inline: .55rem; }
}
.field.check { flex-wrap: wrap; } .field.check .err { flex-basis: 100%; margin-left: 2rem; }
@media (max-width: 900px) {
  /* backdrop-filter would make the header the containing block of the fixed drawer */
  .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--ink); }
  .main-nav { visibility: hidden; }
  .main-nav.open { visibility: visible; }
}
@media (max-width: 400px) { .brand-text small { display: none; } }

/* client login (header + mobile menu) */
.header-login { display: flex; align-items: center; gap: .35rem; color: rgba(255,255,255,.75); text-decoration: none; font-size: .88rem; font-weight: 500; white-space: nowrap; padding: .4rem .6rem; border-radius: 8px; }
.header-login:hover { color: #fff; background: rgba(255,255,255,.08); }
.nav-cta-mobile .btn + .btn { margin-top: .7rem; }
@media (max-width: 1180px) { .header-login span { display: none; } }
@media (max-width: 900px) { .header-login { display: none; } }
