/* צבעי המותג – נלקחו מהלוגו */
:root {
  --navy: #0b2038;
  --navy-2: #163256;
  --gold: #c49d75;
  --gold-soft: #e7d6c1;
  --cream: #faf7f1;
  --ink: #0b2038;
  --text: #2b3445;
  --line: rgba(11, 32, 56, .18);
  --pad: clamp(18px, 4.5vw, 64px);
  --font: "Heebo", system-ui, sans-serif;
}
html[lang="ar"] { --font: "Tajawal", "Heebo", system-ui, sans-serif; }

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); font-weight: 300; background: var(--cream); color: var(--text); line-height: 1.75; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.2; color: var(--ink); }
html[lang="en"] .h-section, html[lang="en"] .hero-name h1 { text-transform: uppercase; letter-spacing: .02em; }

/* ===== כפתורים ===== */
.btn {
  display: inline-block; padding: 10px 24px; font: inherit; font-size: .92rem; font-weight: 500;
  border: 1px solid currentColor; border-radius: 2px; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn-gold { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn-navy { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-navy:hover { background: transparent; color: var(--navy); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--gold); }

.h-section { font-size: clamp(1.9rem, 3.2vw, 2.8rem); margin-bottom: 28px; }

/* ===== כותרת ===== */
.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px var(--pad); background: var(--navy); color: #fff;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 400; font-size: 1rem; white-space: nowrap; }
.brand img { height: 44px; width: auto; }
.header-end { display: flex; align-items: center; gap: 22px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: .93rem; }
.site-nav a:not(.btn) { opacity: .88; transition: color .2s, opacity .2s; }
.site-nav a:not(.btn):hover { color: var(--gold); opacity: 1; }
.lang-switch { display: flex; border: 1px solid rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.lang-switch button {
  background: none; border: 0; color: #fff; font: inherit; font-size: .8rem; font-weight: 400;
  padding: 4px 10px; cursor: pointer; opacity: .7; min-width: 36px;
}
.lang-switch button[aria-pressed="true"] { background: var(--gold); color: var(--navy); opacity: 1; }
.lang-switch button:hover { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: #fff; margin: 5px 0; }

/* ===== תמונות (עם רקע חלופי כשאין קובץ) ===== */
.photo {
  background:
    var(--photo, none) center 22% / cover no-repeat,
    url("images/logo-mark-light.png") center / 38% no-repeat,
    linear-gradient(150deg, var(--navy-2), var(--navy));
}

/* ===== פתיחה ===== */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: min(84vh, 760px); }
.hero-text { display: grid; grid-template-rows: 1.1fr 1fr; }
.hero-name {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: var(--pad);
}
.hero-name h1 { font-size: clamp(1.5rem, 4.6vw, 4.6rem); white-space: nowrap; }
html[lang="en"] .hero-name h1 { font-size: clamp(1.2rem, 3.1vw, 3.2rem); }
@media (max-width: 760px) {
  .hero-name h1 { font-size: 9vw; }
  html[lang="en"] .hero-name h1 { font-size: 7vw; }
}
.hero-sub { margin-top: 16px; letter-spacing: .06em; color: var(--gold); font-weight: 400; }
.hero-band {
  background: var(--gold); color: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: var(--pad);
}
.hero-tagline { font-size: clamp(1.3rem, 2.2vw, 1.75rem); font-weight: 400; }
.hero-desc { max-width: 40ch; margin-bottom: 8px; }
/* לוח התמונה: לוגו גדול ברקע + לילה (תמונה חתוכה, בלי רקע) לצדו */
.hero-media {
  position: relative; overflow: hidden; min-height: 420px;
  background: linear-gradient(160deg, #15305a 0%, var(--navy) 70%);
}
.hero-logo {
  position: absolute; z-index: 0; height: 58%; width: auto;
  top: 46%; inset-inline-end: 6%; transform: translateY(-50%);
  opacity: .95;
}
.hero-portrait {
  position: absolute; z-index: 1; bottom: 0; inset-inline-start: 6%;
  height: 94%; max-width: 62%;
}
.hero-portrait::before {           /* הילה רכה מאחורי לילה, להפרדה מהרקע */
  content: ""; position: absolute; inset: 8% -12% 0;
  background: radial-gradient(closest-side, rgba(196, 157, 117, .22), transparent 70%);
  z-index: -1;
}
.hero-portrait img {
  height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45));
}
.hero-portrait.missing img { visibility: hidden; }

/* ===== מספרים ===== */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; padding: 8px; }
.stat {
  background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 20px; min-height: 200px;
}
.stat-num { font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1; color: var(--gold); font-weight: 300; }
.stat-label { margin-top: 14px; font-size: .95rem; }

/* ===== אודות ===== */
.about { display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--pad); padding: 96px var(--pad); align-items: stretch; }
.about-text > p { max-width: 58ch; margin-bottom: 16px; }
.about-pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 36px; }
.about-pillars > div { border-top: 2px solid var(--gold); padding-top: 16px; }
.about-pillars h3 { font-size: 1.3rem; margin-bottom: 8px; font-weight: 400; }
.about-pillars p { font-size: .95rem; }
.about-media { min-height: 520px; }

/* ===== תחומי עיסוק – רשת עם מסגרת ===== */
.areas { padding: 24px var(--pad) 96px; }
.areas-grid { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--navy); }
.area {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 56px clamp(20px, 5vw, 80px);
}
.area:nth-child(odd) { border-inline-end: 1px solid var(--navy); }
.area:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
.area h3 { font-size: 1.45rem; font-weight: 400; }
.area h3::after {
  content: ""; display: block; width: 180px; max-width: 60vw; margin: 16px auto 18px;
  border-bottom: 2px dotted var(--gold);
}
.area p { max-width: 42ch; font-size: .97rem; }

/* ===== התמחויות ===== */
.expertise { background: var(--navy); color: var(--cream); padding: 96px var(--pad); }
.expertise .h-section, .expertise h3, .expertise h4 { color: #fff; }
.expertise-head p { opacity: .8; margin-top: -12px; margin-bottom: 32px; }
.accordion { border-top: 1px solid rgba(196,157,117,.45); }
.accordion details { border-bottom: 1px solid rgba(196,157,117,.45); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 22px 0; font-size: 1.35rem; font-weight: 300;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; color: var(--gold); font-size: 1.6rem; line-height: 1; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion summary:hover { color: var(--gold); }
.accordion details p { padding: 0 0 26px; max-width: 80ch; opacity: .9; }
.more-title { font-size: 1.5rem; margin: 64px 0 24px; color: var(--gold) !important; font-weight: 400; }
.more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.more-grid > div { border-top: 1px solid var(--gold); padding-top: 16px; }
.more-grid h4 { font-size: 1.15rem; font-weight: 400; margin-bottom: 8px; }
.more-grid p { font-size: .94rem; opacity: .85; }

/* ===== צוות ===== */
.team { padding: 96px var(--pad); }
.lead-lawyer { display: grid; grid-template-columns: minmax(240px, 380px) 1fr; gap: var(--pad); align-items: center; margin-bottom: 64px; }
.lead-photo {
  aspect-ratio: 3 / 4;
  background:
    url("images/laila-cutout-2.webp") center bottom / auto 94% no-repeat,
    radial-gradient(closest-side at 50% 45%, rgba(196, 157, 117, .22), transparent 75%),
    linear-gradient(160deg, #15305a 0%, var(--navy) 70%);
}
.lead-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.lead-text .role { color: var(--gold); font-weight: 400; margin: 6px 0 18px; }
.lead-text p:last-child { max-width: 62ch; }
.team-grid { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.team-grid li { background: var(--cream); padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.team-grid h4 { font-size: 1.1rem; font-weight: 400; }
.team-grid p { font-size: .9rem; flex: 1; }
.team-grid a { font-size: .9rem; color: var(--navy); font-weight: 500; align-self: flex-start; border-bottom: 1px solid var(--gold); }
.team-grid a:hover { color: var(--gold); }
.team-grid .dept {
  grid-column: 1 / -1; background: var(--navy); color: var(--cream);
  flex-direction: row; align-items: baseline; gap: 14px;
}
.team-grid .dept h4 { color: var(--gold); }

/* ===== מאמרים ===== */
.articles { padding: 24px var(--pad) 96px; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.article-card { background: #fff; border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.article-card .meta { font-size: .82rem; color: #6b7280; }
.article-card h3 { font-size: 1.35rem; font-weight: 400; }
.article-card p:not(.meta) { font-size: .95rem; flex: 1; }
.link-arrow {
  align-self: flex-start; background: none; border: 0; border-bottom: 1px solid var(--navy);
  font: inherit; font-weight: 500; color: var(--navy); cursor: pointer; padding: 0;
}
.link-arrow:hover { color: var(--gold); border-color: var(--gold); }

.article-dialog {
  margin: auto; width: min(760px, 92vw); max-height: 88vh; border: 0; border-top: 4px solid var(--gold);
  padding: 44px clamp(20px, 5vw, 56px); background: var(--cream); color: var(--text);
}
.article-dialog::backdrop { background: rgba(11, 32, 56, .7); }
.dialog-close {
  position: sticky; top: 0; float: inline-end; margin-top: -20px; background: none; border: 0;
  font-size: 2rem; line-height: 1; cursor: pointer; color: var(--navy);
}
.dialog-note:empty { display: none; }
.dialog-note { font-size: .88rem; background: var(--gold-soft); padding: 8px 14px; margin-bottom: 18px; }
.dialog-body { font-family: "Heebo", system-ui, sans-serif; }
.dialog-body h2 { font-size: 1.9rem; margin-bottom: 16px; }
.dialog-body h3 { font-size: 1.25rem; font-weight: 500; margin: 24px 0 8px; }
.dialog-body p { margin-bottom: 14px; }
.dialog-body .lede { font-size: 1.1rem; color: var(--navy); font-weight: 400; }

/* ===== צור קשר ===== */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: var(--pad); padding: 96px var(--pad); background: var(--gold); color: var(--navy); }
.contact-info ul { list-style: none; margin-top: 24px; }
.contact-info li { display: flex; gap: 16px; padding: 13px 0; border-bottom: 1px solid rgba(11,32,56,.25); }
.contact-info li span { min-width: 120px; font-weight: 500; }
.contact-info li em { font-style: normal; }
.contact-info a { border-bottom: 1px solid transparent; }
.contact-info a:hover { border-color: var(--navy); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.contact-form label { display: flex; flex-direction: column; gap: 4px; font-size: .9rem; font-weight: 500; }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit; font-weight: 300; font-size: 1rem; padding: 10px 0; color: var(--navy);
  background: transparent; border: 0; border-bottom: 1px solid var(--navy); outline: none; border-radius: 0;
}
.contact-form select option { background: var(--cream); }
.contact-form :focus { border-bottom-width: 2px; }
.contact-form .invalid { border-bottom: 2px solid #9b1c1c; }
.contact-form button { align-self: flex-start; margin-top: 6px; }
.form-note { font-size: .82rem; opacity: .85; }

/* ===== תחתית ===== */
.site-footer {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding: 36px var(--pad); background: var(--navy); color: rgba(255,255,255,.75); font-size: .88rem;
}
.footer-logo { height: 64px; width: auto; }

/* ===== מסכים בינוניים ===== */
@media (max-width: 1100px) {
  .site-nav { gap: 18px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .articles-grid { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; top: 100%; inset-inline: 0; display: none;
    flex-direction: column; align-items: stretch; gap: 0; background: var(--navy);
    border-top: 1px solid rgba(255,255,255,.12);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 14px var(--pad); }
  .site-nav .btn { margin: 8px var(--pad) 18px; text-align: center; }
  .about { grid-template-columns: 1fr; }
  .about-media { min-height: 420px; }
}

/* ===== מובייל ===== */
@media (max-width: 760px) {
  .brand span { display: none; }
  .hero { grid-template-columns: 1fr; }
  .hero-media { order: -1; min-height: 70vh; }
  .hero-media { min-height: 62vh; }
  .hero-logo { height: 32%; inset-inline-end: 4%; top: 42%; }
  .hero-portrait { height: 90%; max-width: 60%; inset-inline-start: 4%; }
  .hero-text { grid-template-rows: auto auto; }
  .hero-name, .hero-band { padding: 48px var(--pad); }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { min-height: 140px; padding: 32px 20px; }
  .about, .team, .expertise, .contact { padding-top: 64px; padding-bottom: 64px; }
  .about-pillars, .more-grid { grid-template-columns: 1fr; }
  .areas-grid { grid-template-columns: 1fr; }
  .area { padding: 40px 22px; border-inline-end: 0 !important; border-bottom: 1px solid var(--line); }
  .area:last-child { border-bottom: 0; }
  .lead-lawyer { grid-template-columns: 1fr; }
  .lead-photo { max-width: 360px; }
  .team-grid { grid-template-columns: 1fr; }
  .contact { grid-template-columns: 1fr; }
  .contact-info li { flex-direction: column; gap: 2px; }
}

/* ================= נגישות ================= */
html { font-size: calc(100% * var(--a11y-scale, 1)); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* דילוג לתוכן */
.skip-link {
  position: absolute; top: -100px; inset-inline-start: 12px; z-index: 100;
  background: var(--gold); color: var(--navy); padding: 10px 18px; font-weight: 500;
}
.skip-link:focus { top: 10px; }
main:focus { outline: none; }

/* פוקוס בולט במקלדת */
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.contact :focus-visible, .hero-band :focus-visible { outline-color: var(--navy); }

/* קישורים בתחתית */
.footer-links { margin-top: 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.footer-links button {
  background: none; border: 0; padding: 0; font: inherit; color: var(--gold); cursor: pointer;
  border-bottom: 1px solid transparent;
}
.footer-links button:hover { border-color: var(--gold); }

/* חלון מסמך (תקנון / נגישות) */
.article-dialog.is-doc .dialog-note { display: none; }
.dialog-body ul { padding-inline-start: 1.4em; margin-bottom: 14px; }
.dialog-body li { margin-bottom: 6px; }
.dialog-body:lang(ar) { font-family: "Tajawal", "Heebo", system-ui, sans-serif; }

/* כפתור ותפריט הנגישות */
.a11y { position: fixed; bottom: 18px; inset-inline-end: 18px; z-index: 40; }
.a11y-toggle {
  width: 54px; height: 54px; border-radius: 50%; cursor: pointer;
  background: var(--navy); color: #fff; border: 2px solid var(--gold);
  display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .3);
}
.a11y-toggle:hover { background: var(--navy-2); }
.a11y-panel {
  position: absolute; bottom: 66px; inset-inline-end: 0; width: 240px;
  background: var(--cream); color: var(--navy); border-top: 4px solid var(--gold);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .3); padding: 16px; display: grid; gap: 8px;
}
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 500; font-size: 1.05rem; margin-bottom: 2px; }
.a11y-size { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-panel button {
  font: inherit; font-size: .92rem; text-align: start; cursor: pointer;
  background: #fff; color: var(--navy); border: 1px solid var(--line); padding: 8px 12px;
}
.a11y-size button { text-align: center; font-weight: 500; }
.a11y-panel button:hover { border-color: var(--navy); }
.a11y-panel button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.a11y-panel .a11y-reset { background: transparent; }
.a11y-panel .a11y-statement { background: transparent; border: 0; padding: 4px 0 0; text-decoration: underline; }

/* מצב: ניגודיות גבוהה */
html.a11y-contrast body, html.a11y-contrast body *:not(svg):not(path):not(circle) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important;
  text-shadow: none !important; box-shadow: none !important;
}
html.a11y-contrast body *:not(.lead-photo) { background-image: none !important; }
html.a11y-contrast a, html.a11y-contrast button, html.a11y-contrast summary { color: #ff0 !important; }
html.a11y-contrast .a11y-panel button[aria-pressed="true"] { background-color: #ff0 !important; color: #000 !important; }
html.a11y-contrast input, html.a11y-contrast select, html.a11y-contrast textarea { border-bottom: 2px solid #fff !important; }
html.a11y-contrast :focus-visible { outline-color: #ff0 !important; }

/* מצב: הדגשת קישורים */
html.a11y-links a, html.a11y-links .link-arrow, html.a11y-links .footer-links button {
  text-decoration: underline !important; text-underline-offset: 3px;
  outline: 2px dashed #e0a800; outline-offset: 2px;
}

/* מצב: גופן קריא */
html.a11y-font body, html.a11y-font body * { font-family: Arial, "Segoe UI", Tahoma, sans-serif !important; letter-spacing: .01em; }
html.a11y-font body { line-height: 1.9; }

/* מצב: עצירת אנימציות */
html.a11y-noanim { scroll-behavior: auto !important; }
html.a11y-noanim *, html.a11y-noanim *::before, html.a11y-noanim *::after {
  animation: none !important; transition: none !important;
}

@media (max-width: 760px) {
  .a11y { bottom: 12px; inset-inline-end: 12px; }
  .a11y-toggle { width: 48px; height: 48px; }
}
