/* ============ Shete Taka Law Office — design tokens ============ */
:root {
  --burgundy-900: #4a0b0e;
  --burgundy-700: #7a1418;
  --burgundy-600: #93191e;
  --burgundy-50: #f8eeee;
  --gold: #c8a55f;
  --gold-text: #7f6227; /* זהב כהה לטקסט על רקע בהיר (ניגודיות AA) */
  --ink: #14161b;
  --ink-2: #23262d;
  --muted: #565b65;
  --line: #e4ddd2;
  --ivory: #faf7f2;
  --sand: #f2ece2;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 18px 50px -24px rgba(20, 22, 27, 0.35);
  --font-body: "Heebo", "Noto Sans Ethiopic", Arial, sans-serif;
  --font-display: "Frank Ruhl Libre", "Noto Serif Ethiopic", Georgia, serif;
  --fs: 1rem;
  --max: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
}
html[lang="am"] {
  --font-body: "Noto Sans Ethiopic", "Heebo", Arial, sans-serif;
  --font-display: "Noto Serif Ethiopic", "Frank Ruhl Libre", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: calc(100% * var(--a11y-scale, 1)); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ivory); line-height: 1.75; font-size: 1.0625rem; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--burgundy-700); text-underline-offset: 3px; }
a:hover { color: var(--burgundy-600); }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; color: var(--ink); margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-inline-start: 1.2em; }

/* focus — חובה לנגישות מקלדת */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none; }
.skip-link:focus { top: 12px; color: #fff; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 104px); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #e9e6e1; }
.section--ink h2, .section--ink h3 { color: #fff; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; margin-bottom: 14px; }
.section--ink .eyebrow, .hero .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 62ch; }
.section--ink .lead { color: #c9c5be; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; font-family: inherit; font-size: 1rem; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn--primary { background: var(--burgundy-700); color: #fff; }
.btn--primary:hover { background: var(--burgundy-600); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn--outline { border-color: var(--burgundy-700); color: var(--burgundy-700); }
.btn--outline:hover { background: var(--burgundy-700); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ============ header ============ */
.topbar { background: var(--ink); color: #cfcac2; font-size: .88rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; flex-wrap: wrap; }
.topbar a { color: #e9e3d8; text-decoration: none; }
.topbar a:hover { color: var(--gold); }
.topbar__items { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.topbar__items a { display: inline-flex; align-items: center; gap: 6px; }
.topbar svg { width: 14px; height: 14px; }
.hero__badges { list-style: none; padding: 0; margin-bottom: 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .96); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); }
.brand img { width: 54px; height: 54px; border-radius: 4px; box-shadow: 0 6px 18px -8px rgba(74, 11, 14, .6); }
.brand__name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; line-height: 1.1; display: block; }
.brand__sub { font-size: .8rem; color: var(--muted); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 14px; border-radius: 8px; text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: .98rem; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--burgundy-700); background: var(--burgundy-50); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; background: #fff; }
.lang-switch:hover { border-color: var(--gold); color: var(--burgundy-700); }
.lang-switch .globe { width: 17px; height: 17px; }
.menu-toggle { display: none; background: none; border: 1.5px solid var(--line); border-radius: 10px; width: 46px; height: 46px; cursor: pointer; }
.menu-toggle span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px auto; transition: transform .2s; }
@media (max-width: 1020px) {
  .menu-toggle { display: inline-block; }
  .nav { position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--ivory); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 20px; display: none; }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px; font-size: 1.05rem; }
  .header-actions .btn--primary { display: none; }
}
@media (max-width: 520px) {
  .brand__sub { display: none; }
  .brand img { width: 46px; height: 46px; }
  .topbar__items .hide-sm { display: none; }
}

/* ============ hero ============ */
.hero { position: relative; color: #fff; background: radial-gradient(ellipse at 80% 0%, rgba(147, 25, 30, .55), transparent 55%), linear-gradient(120deg, #0f1115 0%, #1b1d23 45%, #3a0a0d 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../img/city.jpg") center/cover; opacity: .14; mix-blend-mode: luminosity; }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; min-height: min(78vh, 720px); padding-top: 64px; }
.hero__text { padding-bottom: clamp(48px, 8vw, 96px); }
.hero h1 { color: #fff; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero__lead { font-size: 1.2rem; color: #d8d3cb; max-width: 56ch; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__photo { align-self: end; justify-self: center; position: relative; }
.hero__photo::before { content: ""; position: absolute; inset: 12% 8% 0; border: 1px solid rgba(200, 165, 95, .55); border-radius: 220px 220px 0 0; }
.hero__photo img { position: relative; width: min(440px, 100%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .45)); }
.hero__badges { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 40px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .14); color: #cfc9bf; font-size: .95rem; }
.hero__badges strong { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; min-height: auto; }
  .hero__photo { order: -1; max-width: 300px; }
  .hero__text { padding-bottom: 56px; }
}

/* page hero (inner pages) */
.page-hero { background: linear-gradient(120deg, #111318, #2a0b0e); color: #fff; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.page-hero h1 { color: #fff; margin-bottom: .3em; }
.page-hero p { color: #d3cec6; max-width: 64ch; font-size: 1.12rem; margin: 0; }
.breadcrumbs { font-size: .9rem; margin-bottom: 18px; color: #b9b3a9; }
.breadcrumbs a { color: var(--gold); text-decoration: none; }
.breadcrumbs ol { list-style: none; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: .5; }

/* ============ cards / grids ============ */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; box-shadow: var(--shadow); transition: transform .25s, border-color .25s; display: flex; flex-direction: column; }
.card:hover { transform: translateY(-4px); border-color: var(--gold); }
.card__icon { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: var(--burgundy-50); color: var(--burgundy-700); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 1.2em; }
.card .more { margin-top: auto; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card .more::after { content: "←"; transition: transform .2s; }
html[dir="ltr"] .card .more::after { content: "→"; }
.card a.stretched::before { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait { position: relative; border-radius: var(--radius); background: linear-gradient(160deg, var(--sand), #e7dccb); overflow: hidden; }
.portrait img { margin-inline: auto; width: min(420px, 100%); }
.portrait::after { content: ""; position: absolute; inset: 14px; border: 1px solid rgba(127, 98, 39, .35); border-radius: calc(var(--radius) - 6px); pointer-events: none; }

.values { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 18px; }
.values li { display: flex; gap: 14px; align-items: flex-start; }
.values .dot { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--burgundy-700); color: #fff; display: grid; place-items: center; font-size: .9rem; margin-top: 2px; }
.values strong { display: block; font-family: var(--font-display); font-size: 1.08rem; }
.values span { color: var(--muted); }

.quote-band { text-align: center; }
.quote-band blockquote { margin: 0 auto; max-width: 820px; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.5; color: #fff; }
.quote-band .rule { width: 60px; height: 1px; background: var(--gold); margin: 26px auto; }

.recognition { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.recognition .seal { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--gold-text); }
.recognition .seal svg { width: 30px; height: 30px; }

/* prose (inner content) */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: #2d3038; }
.prose li { margin-bottom: .5em; }
.layout-aside { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(32px, 5vw, 64px); align-items: start; }
@media (max-width: 960px) { .layout-aside { grid-template-columns: 1fr; } }
.aside-card { position: sticky; top: 110px; background: var(--ink); color: #ddd8cf; border-radius: var(--radius); padding: 30px 26px; }
.aside-card h2, .aside-card h3 { color: #fff; font-size: 1.35rem; }
.aside-card a:not(.btn) { color: var(--gold); }
.aside-card .btn { width: 100%; margin-top: 10px; }
.aside-card .btn--outline { border-color: rgba(255,255,255,.5); color: #fff; }

.notice { border-inline-start: 3px solid var(--gold); background: #fff; padding: 16px 20px; border-radius: 0 10px 10px 0; color: var(--muted); font-size: .95rem; }
html[dir="ltr"] .notice { border-radius: 10px 0 0 10px; }

/* articles */
.article-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; position: relative; transition: border-color .2s; }
.article-card:hover { border-color: var(--gold); }
.article-card h3 { font-size: 1.15rem; margin: 0; }
.article-card h3 a { color: var(--ink); text-decoration: none; }
.article-card h3 a::before { content: ""; position: absolute; inset: 0; }
.article-card p { color: var(--muted); font-size: .95rem; margin: 0; }
.article-meta { font-size: .85rem; color: var(--gold-text); font-weight: 600; }

/* contact */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 56px); }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 16px; }
.contact-list li { display: flex; gap: 14px; align-items: center; }
.contact-list .ic { width: 46px; height: 46px; border-radius: 50%; background: var(--burgundy-50); color: var(--burgundy-700); display: grid; place-items: center; flex: none; }
.section--ink .contact-list .ic { background: rgba(200,165,95,.14); color: var(--gold); }
.contact-list .ic svg { width: 20px; height: 20px; }
.contact-list small { display: block; color: var(--muted); font-size: .82rem; }
.section--ink .contact-list small { color: #a9a49b; }
.contact-list a { color: inherit; text-decoration: none; font-weight: 600; }
.form { background: #fff; color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); border: 1px solid var(--line); }
.form h3 { margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field input, .field textarea { width: 100%; padding: 13px 15px; border: 1.5px solid #cfc7ba; border-radius: 10px; font: inherit; background: var(--ivory); color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--burgundy-700); outline: 3px solid rgba(200, 165, 95, .45); outline-offset: 1px; }
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.form .privacy-note { font-size: .85rem; color: var(--muted); margin: 14px 0 18px; line-height: 1.6; }
.form-status { margin-top: 14px; font-weight: 600; }
.form-status.ok { color: #1d6b3a; }
.form-status.err { color: #a3181d; }
.hp { position: absolute; inset-inline-start: -9999px; }
.req { color: var(--burgundy-700); }

/* map */
.map-frame { border: 0; width: 100%; height: 320px; border-radius: var(--radius); filter: grayscale(.25); }

/* ============ footer ============ */
.site-footer { background: #0e0f13; color: #b8b2a8; padding-top: 72px; font-size: .95rem; }
.site-footer h2 { color: #fff; font-size: 1.1rem; font-family: var(--font-body); letter-spacing: .04em; }
.site-footer a { color: #e1dbd0; text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.footer-brand img { width: 58px; height: 58px; border-radius: 4px; }
.footer-brand strong { color: #fff; font-family: var(--font-display); font-size: 1.25rem; display: block; }
.disclaimer { margin-top: 48px; padding-block: 22px; border-top: 1px solid #24262d; font-size: .85rem; color: #9b958b; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* floating actions */
.fab { position: fixed; bottom: 20px; z-index: 60; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); border: 0; cursor: pointer; }
.fab svg { width: 28px; height: 28px; }
.fab--wa { inset-inline-end: 20px; background: #1f8f4e; color: #fff; }
.fab--a11y { inset-inline-start: 20px; background: #0b3d91; color: #fff; }

/* ============ accessibility panel ============ */
.a11y-panel { position: fixed; bottom: 88px; inset-inline-start: 20px; z-index: 70; width: min(330px, calc(100vw - 40px)); max-height: calc(100vh - 120px); overflow: auto; background: #fff; color: var(--ink); border-radius: 16px; box-shadow: 0 24px 60px -20px rgba(0,0,0,.5); border: 1px solid var(--line); padding: 20px; }
.a11y-panel[hidden] { display: none; }
.a11y-panel h2 { font-size: 1.2rem; font-family: var(--font-body); margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.a11y-panel .close { background: none; border: 0; font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 4px 8px; color: var(--ink); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button { min-height: 62px; border: 1.5px solid var(--line); background: var(--ivory); border-radius: 10px; font: inherit; font-size: .88rem; cursor: pointer; color: var(--ink); padding: 8px; }
.a11y-grid button[aria-pressed="true"] { border-color: #0b3d91; background: #e8efff; font-weight: 700; }
.a11y-panel .a11y-links { margin-top: 14px; font-size: .9rem; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* a11y modes */
html.a11y-contrast body { background: #000 !important; color: #fff !important; }
html.a11y-contrast body *:not(svg):not(path):not(img) { background-color: #000 !important; color: #fff !important; border-color: #fff !important; box-shadow: none !important; }
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; text-decoration: underline !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .hero::after { display: none; }
html.a11y-grayscale body > *:not(.a11y-panel):not(.fab) { filter: grayscale(1); }
html.a11y-links a { text-decoration: underline !important; outline: 2px dashed currentColor; outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { font-family: Arial, "Noto Sans Ethiopic", sans-serif !important; letter-spacing: .02em; }
html.a11y-spacing body { line-height: 2 !important; word-spacing: .16em; letter-spacing: .04em; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
html.a11y-noanim .reveal, html.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

@media print {
  .topbar, .site-header, .fab, .a11y-panel, .site-footer, .hero__actions { display: none !important; }
  body { background: #fff; }
}
