/* Layout: a deep ink "court band" carries headers; content sits on cool paper in a single 1120px column,
   practice pages add a sticky contact rail. Logical properties throughout so the same sheet serves LTR and RTL. */
:root {
  --bg: #F3F4F7;
  --surface: #FFFFFF;
  --ink: #13203A;
  --muted: #55607A;
  --line: #D8DCE4;
  --accent: #8A5F1C;
  --band: #14233F;
  --band-ink: #EDF0F6;
  --band-muted: #A9B3C8;
  --band-line: #2C3C5C;
  --band-accent: #D9B06A;
  --alert: #7A2E1F;
  --alert-bg: #F6EBE6;
  --f-display: "Frank Ruhl Libre", "Times New Roman", Georgia, serif;
  --f-body: "Assistant", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1422; --surface: #141E31; --ink: #E5E9F1; --muted: #9AA4BA; --line: #26314A;
    --accent: #D9B06A; --band: #09101C; --band-ink: #EDF0F6; --band-muted: #9AA4BA; --band-line: #1F2A40;
    --band-accent: #D9B06A; --alert: #F2A58F; --alert-bg: #2A1813; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1422; --surface: #141E31; --ink: #E5E9F1; --muted: #9AA4BA; --line: #26314A;
  --accent: #D9B06A; --band: #09101C; --band-ink: #EDF0F6; --band-muted: #9AA4BA; --band-line: #1F2A40;
  --band-accent: #D9B06A; --alert: #F2A58F; --alert-bg: #2A1813; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.65;
}
[lang="he"] body, body[lang="he"] { font-size: 1.125rem; }
img { max-width: 100%; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.15; text-wrap: balance; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1120px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 16px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 10; }

/* Utility strip */
.strip { background: var(--band); color: var(--band-muted); font-size: 0.875rem; border-bottom: 1px solid var(--band-line); }
.strip .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-block: 8px; }
.strip a { color: var(--band-ink); text-decoration: none; }
.strip a:hover { text-decoration: underline; }
.clocks { display: flex; gap: 18px; font-variant-numeric: tabular-nums; }
.clocks b { color: var(--band-ink); font-weight: 600; }
.strip-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* Header */
.site-head { background: var(--band); color: var(--band-ink); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 18px; }
.brand { color: var(--band-ink); text-decoration: none; display: grid; line-height: 1.1; }
.brand-name { font-family: var(--f-display); font-size: 1.6rem; font-weight: 500; letter-spacing: 0.01em; }
.brand-sub { font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-muted); margin-top: 4px; }
[dir="rtl"] .brand-sub { letter-spacing: 0.02em; }
.nav { min-width: 0; max-width: 100%; overflow-x: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; white-space: nowrap; }
.nav a { display: block; padding: 6px 10px; color: var(--band-ink); text-decoration: none; font-size: 0.96rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--band-muted); }
.nav a[aria-current="page"] { border-bottom-color: var(--band-accent); color: var(--band-accent); }
.nav .lang a { border: 1px solid var(--band-line); border-radius: var(--radius); margin-inline-start: 8px; }
.nav .lang a:hover { border-color: var(--band-accent); }

/* Hero */
.hero { background: var(--band); color: var(--band-ink); padding-block: 48px 64px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--band-accent); font-weight: 600; }
[dir="rtl"] .eyebrow { letter-spacing: 0.04em; font-size: 0.9rem; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-top: 14px; }
.hero .lede { color: var(--band-muted); font-size: 1.15rem; margin-top: 20px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: var(--radius); font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-primary { background: var(--band-accent); color: #14233F; }
.btn-primary:hover { filter: brightness(1.07); }
.btn-ghost { color: var(--band-ink); border: 1px solid var(--band-line); }
.btn-ghost:hover { border-color: var(--band-ink); }

/* Jurisdiction ledger (signature element) */
.ledger { border: 1px solid var(--band-line); padding: 24px 26px; }
.ledger-mark { font-family: var(--f-display); font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--band-ink); display: flex; align-items: baseline; gap: 14px; }
.ledger-mark span { color: var(--band-accent); font-size: 0.5em; }
.ledger dl { margin: 22px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; border-top: 1px solid var(--band-line); padding-top: 18px; }
.ledger dt { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-muted); padding-top: 3px; }
[dir="rtl"] .ledger dt { letter-spacing: 0.02em; font-size: 0.85rem; }
.ledger dd { margin: 0; color: var(--band-ink); }

/* Page head (inner pages) */
.page-head { background: var(--band); color: var(--band-ink); padding-block: 36px 44px; }
.crumb { font-size: 0.9rem; color: var(--band-muted); }
.crumb a { color: var(--band-muted); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 10px; }
.page-head .lede { color: var(--band-muted); font-size: 1.12rem; margin-top: 16px; max-width: 42em; }

/* Alert */
.alert { background: var(--alert-bg); border-bottom: 1px solid var(--line); }
.alert .wrap { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: baseline; padding-block: 16px; }
.alert strong { color: var(--alert); font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; }
.alert a { color: var(--alert); font-weight: 600; }

/* Sections */
.section { padding-block: 64px; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 32px; max-width: 44em; }
.section-head .eyebrow { color: var(--accent); }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.section-head p { color: var(--muted); }

.areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.area { background: var(--surface); padding: 28px 30px; display: grid; gap: 12px; align-content: start; }
.area h3 { font-size: 1.5rem; }
.area p { color: var(--muted); }
.area ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; }
.more { font-weight: 600; text-decoration: none; margin-top: 4px; }
.more::after { content: " \2192"; }
[dir="rtl"] .more::after { content: " \2190"; }
.more:hover { text-decoration: underline; }

.reasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.reason { display: grid; gap: 10px; align-content: start; padding-top: 18px; border-top: 2px solid var(--ink); }
.reason h3 { font-size: 1.3rem; }
.reason p { color: var(--muted); }

.offices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.office { background: var(--surface); border: 1px solid var(--line); padding: 26px 28px; display: grid; gap: 8px; }
.office h3 { font-size: 1.4rem; }
.office .time { font-variant-numeric: tabular-nums; color: var(--accent); font-weight: 600; }
.office address { font-style: normal; color: var(--muted); }

/* Practice page body */
.body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 56px; align-items: start; }
.prose { display: grid; gap: 40px; max-width: 42em; min-width: 0; }
.prose section { display: grid; gap: 10px; }
.prose h2 { font-size: 1.6rem; }
.prose p, .prose li { color: var(--ink); }
.prose ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }
.term { font-style: italic; color: var(--muted); }
.rail { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 20px); background: var(--surface); border: 1px solid var(--line); padding: 24px; display: grid; gap: 14px; }
.rail h2 { font-size: 1.3rem; }
.rail p { color: var(--muted); font-size: 0.98rem; }
.rail .btn-primary { background: var(--ink); color: var(--surface); justify-content: center; }
.rail .btn-ghost { color: var(--ink); border-color: var(--line); justify-content: center; }
.rail .btn-ghost:hover { border-color: var(--ink); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--line); padding: 26px 28px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card h2 { font-size: 1.45rem; }
.rows { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; }
.rows dt { color: var(--muted); }
.rows dd { margin: 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.note { color: var(--muted); font-size: 0.95rem; }

/* CTA band */
.cta { background: var(--band); color: var(--band-ink); padding-block: 48px; }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); max-width: 22em; }

/* Footer */
.site-foot { background: var(--bg); border-top: 1px solid var(--line); padding-block: 40px; font-size: 0.93rem; color: var(--muted); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.foot-grid h3 { font-size: 1.05rem; color: var(--ink); margin-bottom: 8px; }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-grid a { color: var(--muted); }
.disclaimer { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.disclaimer strong { color: var(--ink); }

@media (max-width: 900px) {
  .hero .wrap, .body-grid { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; }
  .reasons { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .areas, .offices, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .area, .office, .card { padding: 22px 20px; }
  .hero { padding-block: 32px 44px; }
  .section { padding-block: 44px; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .strip .clocks { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Client reviews */
.quotes { columns: 3 300px; column-gap: 24px; }
.quote { break-inside: avoid; margin: 0 0 24px; background: var(--surface); border: 1px solid var(--line); padding: 24px 26px; display: grid; gap: 14px; }
.quote blockquote { margin: 0; font-family: var(--f-display); font-size: 1.12rem; line-height: 1.5; text-align: start; }
.quote blockquote p::before { content: "\201C"; color: var(--accent); }
.quote blockquote p::after { content: "\201D"; color: var(--accent); }
.quote figcaption { font-size: 0.92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 10px; }
.quote figcaption b { color: var(--ink); font-weight: 600; }
[dir="rtl"] .quote blockquote { text-align: left; }

/* Photos */
.portrait { display: block; margin: -24px -26px 22px; }
.portrait img, .about-photo img { display: block; width: 100%; height: auto; object-fit: cover; }
.portrait img { aspect-ratio: 4 / 3; object-position: 50% 30%; }
.about-photo { display: block; max-width: 360px; border: 1px solid var(--line); }
@media (max-width: 900px) { .portrait img { aspect-ratio: 16 / 10; object-position: 50% 28%; } }
.photo-cap { margin-top: 8px; }
.wide-photo { margin: 0; } .wide-photo img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }

/* Video tour (click-to-load YouTube) */
.tour .yt { position: relative; display: block; width: min(100%, 340px); aspect-ratio: 3 / 4; overflow: hidden; border: 1px solid var(--line); background: #000; color: #fff; text-decoration: none; }
.tour .yt img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(20, 35, 63, 0.85); }
.yt-play::after { content: ""; position: absolute; inset-inline-start: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
[dir="rtl"] .yt-play::after { inset-inline-start: auto; left: 29px; }
.yt-label { position: absolute; inset-inline: 0; bottom: 0; padding: 10px 14px; background: linear-gradient(transparent, rgba(0,0,0,.7)); font-weight: 600; }
.yt:hover .yt-play { background: var(--accent); }
.tour iframe { display: block; width: min(100%, 340px); aspect-ratio: 9 / 16; border: 0; }

/* Video grid */
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 28px; }
.vcard { margin: 0; display: grid; gap: 12px; align-content: start; min-width: 0; }
.vcard figcaption { display: grid; gap: 6px; }
.vcard h3 { font-size: 1.25rem; }
.vcard p { color: var(--muted); }
.yt.wide { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line); background: #000; }
.yt.wide img { display: block; width: 100%; height: 100%; object-fit: cover; }
.yt-len { position: absolute; inset-inline-end: 8px; bottom: 8px; background: rgba(0,0,0,.75); color: #fff; font-size: 0.82rem; padding: 2px 6px; border-radius: 3px; direction: ltr; }
iframe.wide { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.prose .vcard { max-width: 560px; }
