/* ==========================================================================
   חיים אייזנקוט – משרד עורכי דין
   מערכת עיצוב: קרם חם · זהב · כחול עמוק. כותרות Frank Ruhl Libre, גוף Assistant.
   בלי אנימציות גלילה, בלי אייקוני תחומים ובלי אלמנטים דקורטיביים (הנחיות 2.11, סעיף 8).
   ========================================================================== */

:root {
  --ink: #172a46;        /* כחול עמוק – כותרות ומשטחים כהים (חיים ביקש לשלב כחול) */
  --ink-2: #1e3354;
  --ink-footer: #0f1d33;
  --text: #3d3832;
  --muted: #655d53;
  --gold: #a88a57;        /* קווים, אייקונים, טקסט גדול */
  --gold-deep: #7d6236;   /* טקסט קטן על רקע בהיר (ניגודיות AA) */
  --gold-soft: #c9ad7c;   /* טקסט על רקע כהה */
  --gold-pale: #e6d8bf;
  --cream: #f6f1e9;
  --cream-2: #efe7da;
  --paper: #fdfbf8;
  --line: #e4dacb;
  --white: #fff;
  --on-dark: #d9d2c6;
  --error: #a4262c;
  --success: #2f6b3a;

  --ff-display: "Frank Ruhl Libre", "David Libre", "Times New Roman", serif;
  --ff-body: "Assistant", "Heebo", "Segoe UI", Arial, sans-serif;
  --ff-latin: var(--ff-display);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 88px;
  --radius: 2px;
  --shadow: 0 18px 40px -22px rgba(15, 29, 51, .3);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* רשת ביטחון נגד גלילה אופקית – לא שובר position: sticky */
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.2em; }
h1, h2, h3, h4 {
  font-family: var(--ff-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.25;
  margin: 0 0 .6em;
}
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; }
::selection { background: var(--gold-pale); color: var(--ink); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); font-size: .95rem; }

.skip-link {
  position: fixed; top: -100px; inset-inline-start: 1rem; z-index: 200;
  background: var(--ink); color: #fff; padding: .8rem 1.25rem; font-weight: 600;
}
.skip-link:focus { top: 1rem; }

.ui-icon { width: 1.15em; height: 1.15em; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .65em;
  min-height: 50px; padding: .85em 1.9em;
  font-family: var(--ff-body); font-weight: 600; font-size: 1rem; line-height: 1.2; letter-spacing: .02em;
  border: 1px solid transparent; border-radius: var(--radius);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
  white-space: nowrap;
}
.btn .ui-icon { transition: transform .3s var(--ease); }
.btn:hover .ui-icon:last-child { transform: translateX(-3px); }
.btn-sm { min-height: 42px; padding: .6em 1.3em; font-size: .93rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--gold-deep); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-ghost:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: rgba(255, 255, 255, .45); color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s var(--ease);
}
/* הטשטוש יושב על פסאודו־אלמנט: backdrop-filter על ה־header עצמו היה הופך אותו
   ל־containing block של התפריט הנייד (position: fixed) ומקצר אותו לגובה ה־header */
@supports ((backdrop-filter: blur(8px)) or (-webkit-backdrop-filter: blur(8px))) {
  .site-header { background: transparent; }
  .site-header::before {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background: rgba(255, 255, 255, .9);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -14px rgba(15, 29, 51, .35); }
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  height: var(--header-h);
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .9rem; color: var(--ink); flex: none; }
.brand-mono { width: 34px; height: auto; color: var(--gold); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--ff-display); font-size: 1.45rem; font-weight: 500; letter-spacing: .01em; }
.brand-sub { font-size: .8rem; letter-spacing: .32em; color: var(--gold-deep); font-weight: 600; margin-top: .2rem; }

.main-nav { margin-inline-start: auto; }
.main-nav > ul { display: flex; align-items: center; list-style: none; }
.main-nav > ul > li { position: relative; display: flex; align-items: center; }
.main-nav > ul > li + li::before {
  content: ""; width: 1px; height: 14px; background: var(--line); /* מפרידים בסגנון klag */
}
.main-nav a {
  position: relative; display: block; padding: .6rem 1.15rem;
  font-size: .98rem; font-weight: 600; color: var(--text); letter-spacing: .01em;
  transition: color .25s;
}
.main-nav > ul > li > a::after {
  content: ""; position: absolute; inset-inline: 1.15rem; bottom: .2rem; height: 1px;
  background: var(--gold); transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.main-nav > ul > li > a:hover, .main-nav .is-active > a { color: var(--ink); }
.main-nav > ul > li > a:hover::after, .main-nav .is-active > a::after { transform: scaleX(1); }

.has-sub > a { padding-inline-end: .3rem; }
.sub-toggle {
  display: grid; place-items: center; width: 26px; height: 32px; padding: 0;
  background: none; border: 0; color: var(--muted); margin-inline-end: .6rem;
}
.sub-toggle .ui-icon { width: 15px; height: 15px; transition: transform .25s; }
.has-sub.open .sub-toggle .ui-icon { transform: rotate(180deg); }
.sub {
  position: absolute; top: calc(100% + 10px); inset-inline-start: .5rem; min-width: 330px;
  list-style: none; padding: .6rem 0; background: #fff;
  border-top: 2px solid var(--gold); box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
}
.sub::before { content: ""; position: absolute; inset-inline: 0; top: -14px; height: 14px; }
.has-sub:hover .sub, .has-sub:focus-within .sub, .has-sub.open .sub { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sub a { padding: .6rem 1.4rem; font-weight: 400; font-size: .95rem; }
.sub a:hover, .sub a[aria-current] { background: var(--cream); color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: 1.1rem; }
.header-phone { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); font-size: .98rem; }
.header-phone .ui-icon { color: var(--gold-deep); }
.header-phone:hover { color: var(--gold-deep); }

.nav-toggle {
  display: none; width: 46px; height: 46px; place-items: center;
  background: none; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
}
.nav-toggle .ui-icon { width: 22px; height: 22px; }
.nav-toggle .i-close { display: none; }
.nav-open .nav-toggle .i-open { display: none; }
.nav-open .nav-toggle .i-close { display: block; }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
  background: var(--paper); overflow-y: auto; padding-block: 1.5rem 7rem;
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  /* visibility מתעדכנת מיד בפתיחה (כדי שאפשר יהיה להעביר פוקוס) ובהשהיה בסגירה */
  transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s linear .3s;
}
.nav-open .mobile-nav { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav-open body { overflow: hidden; }
.m-main { list-style: none; }
.m-main a {
  display: block; padding: .9rem 0; border-bottom: 1px solid var(--line);
  font-family: var(--ff-display); font-size: 1.6rem; color: var(--ink);
}
.m-main a[aria-current] { color: var(--gold-deep); }
.m-label { margin: 2rem 0 .5rem; font-size: .8rem; letter-spacing: .25em; color: var(--gold-deep); font-weight: 700; }
.m-areas { list-style: none; }
.m-areas a { display: block; padding: .55rem 0; color: var(--text); }
.m-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 2rem; }

/* ---------- Hero: הדיוקן של עו"ד אייזנקוט כבר בפתיחה ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--cream); }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
.hero::before {   /* מרכך את צל החלון מאחורי הטקסט */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to left, rgba(246, 241, 233, .93) 0%, rgba(246, 241, 233, .74) 50%, rgba(246, 241, 233, .4) 100%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 6vw, 5rem);
}
.hero-content { max-width: 620px; }
.hero-title {
  margin: 0; font-weight: 400; color: var(--ink);
  font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.04; letter-spacing: -.01em;
}
.hero-sub {
  display: block; margin-top: 1.2rem;
  font-family: var(--ff-body); font-size: clamp(1.05rem, 1.7vw, 1.3rem); font-weight: 600;
  letter-spacing: .38em; color: var(--gold-deep); line-height: 1.3;
}
.hero-sub::before { content: ""; display: block; width: 76px; height: 1px; background: var(--gold); margin-bottom: 1.1rem; }
.hero-headline {
  margin: 1.7rem 0 2.1rem; max-width: 26ch;
  font-family: var(--ff-display); font-size: clamp(1.45rem, 2.4vw, 1.95rem); line-height: 1.45; color: var(--ink);
}
.hero-cta { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero-portrait { margin: 0; justify-self: center; width: min(100%, 400px); }
.hero-portrait .portrait-img::before { inset-block: 18px -18px; inset-inline: 18px -18px; }
.hero-caption { margin: 1.9rem auto 0; text-align: center; text-wrap: balance; font-size: .95rem; line-height: 1.6; color: var(--muted); }

/* שורת פרטי התקשרות קומפקטית (פתיחה ופס הפנייה) */
.contact-inline {
  list-style: none; display: flex; flex-wrap: wrap; gap: .45rem 1.4rem;
  margin-top: 1.9rem; padding-top: 1.3rem; border-top: 1px solid var(--line); font-size: .95rem;
}
.contact-inline a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink); font-weight: 600; transition: color .2s; }
.contact-inline a:hover { color: var(--gold-deep); }
.contact-inline .ui-icon { width: 1.05em; height: 1.05em; color: var(--gold-deep); }
.contact-inline--dark { margin-top: 1rem; padding-top: 1rem; border-top-color: rgba(255, 255, 255, .12); }
.contact-inline--dark a { color: #fff; }
.contact-inline--dark a:hover { color: var(--gold-soft); }
.contact-inline--dark .ui-icon { color: var(--gold-soft); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-cream { background: var(--cream); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(2rem, 4vw, 3rem); }
.section-head h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); margin: 0; }
.title-rule { display: block; width: 48px; height: 2px; background: var(--gold); margin: 1.1rem auto 0; }
.section-head .intro { margin: 1.4rem auto 0; font-size: 1.1rem; color: var(--muted); max-width: 64ch; }
.section-head--start { text-align: start; margin-inline: 0; }
.section-head--start .title-rule { margin-inline: 0; }

.lead { font-family: var(--ff-display); font-size: clamp(1.28rem, 2.1vw, 1.55rem); line-height: 1.65; color: var(--ink); }
.prose p { margin-bottom: 1.25em; }
.prose--narrow { max-width: 820px; margin-inline: auto; }
@media (min-width: 900px) {
  .prose--justify p:not(.lead) { text-align: justify; text-justify: inter-word; }
}

.portrait-frame { margin: 0; position: relative; }
.portrait-img { position: relative; isolation: isolate; }
.portrait-img::before {
  content: ""; position: absolute; z-index: -1;
  inset-block: 26px -26px; inset-inline: 26px -26px;
  border: 1px solid var(--gold);
}
.portrait-img picture, .portrait-img img { width: 100%; }
.portrait-img img { aspect-ratio: 900 / 967; object-fit: cover; background: var(--cream-2); }
.portrait-caption { margin-top: 2.2rem; display: flex; flex-direction: column; gap: .15rem; }
.portrait-caption strong { font-family: var(--ff-display); font-weight: 500; font-size: 1.2rem; color: var(--ink); }
.portrait-caption span { font-size: .9rem; letter-spacing: .12em; color: var(--gold-deep); font-weight: 600; }

/* ---------- אודות קצר בעמוד הבית ---------- */
.about-short { padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.about-short-inner { max-width: 900px; text-align: center; }
.about-short .section-head { margin-bottom: 1.6rem; }
.lead-block { margin: 0 auto; max-width: 62ch; font-family: var(--ff-display); font-size: clamp(1.25rem, 2vw, 1.5rem); line-height: 1.7; color: var(--ink); }
.link-more { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; font-weight: 700; color: var(--gold-deep); }
.link-more .ui-icon { transition: transform .3s var(--ease); }
.link-more:hover .ui-icon { transform: translateX(-4px); }

/* ---------- תחומי עיסוק: רשימה רציפה אחת (בלי כרטיסים שחוזרים על עצמם) ---------- */
.practice-list {
  list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 5vw, 4rem);
  border-top: 1px solid var(--line);
}
.pl-item {
  display: grid; grid-template-columns: 1fr auto; gap: 1.2rem; align-items: start;
  padding: 1.5rem .35rem; border-bottom: 1px solid var(--line); color: var(--text);
  transition: background-color .25s;
}
.pl-item:hover { background: rgba(255, 255, 255, .6); }
.pl-title { display: block; margin-bottom: .3rem; font-family: var(--ff-display); font-size: 1.25rem; line-height: 1.35; color: var(--ink); }
.pl-sum { display: block; font-size: .96rem; line-height: 1.65; color: var(--muted); }
.pl-arrow { margin-top: .45rem; color: var(--gold-deep); transition: transform .3s var(--ease); }
.pl-item:hover .pl-arrow { transform: translateX(-5px); }
.pc-more { display: inline-flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 700; color: var(--gold-deep); }
.pc-more .ui-icon { transition: transform .3s var(--ease); }
.pa-item:hover .pc-more .ui-icon { transform: translateX(-5px); }

/* ---------- Quote band: רקע כחול חלק ---------- */
.quote-band {
  position: relative; isolation: isolate; overflow: hidden;
  padding-block: clamp(3.5rem, 8vw, 6rem);
  background: var(--ink); color: var(--on-dark); text-align: center;
}
.quote-band picture { position: absolute; inset: 0; z-index: -1; }
.quote-band img { width: 100%; height: 100%; object-fit: cover; opacity: .18; }
.quote-band figure { margin: 0 auto; max-width: 860px; }
.quote-band blockquote { margin: 0; }
.quote-band .q-main {
  font-family: var(--ff-display); font-size: clamp(1.7rem, 3.2vw, 2.5rem); line-height: 1.35; color: #fff; margin: 0 0 1.2rem;
}
.quote-band blockquote p:not(.q-main) { font-size: clamp(1.05rem, 1.6vw, 1.15rem); max-width: 60ch; margin: 0 auto; }

/* ---------- אופן העבודה: ארבעה שלבים ---------- */
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 3vw, 2.5rem); max-width: 1080px; margin-inline: auto; }
.step { border-top: 1px solid var(--gold); padding-top: 1.3rem; }
.step-letter { display: block; font-family: var(--ff-display); font-size: 1.5rem; line-height: 1; color: var(--gold-deep); margin-bottom: .75rem; }
.step p { margin: 0; font-family: var(--ff-display); font-size: 1.22rem; line-height: 1.5; color: var(--ink); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: start; }
.contact-info > p { font-size: 1.08rem; }
.contact-solo { max-width: 760px; margin-inline: auto; }
.contact-list { list-style: none; margin: 1.8rem 0 0; }
.contact-list a, .contact-list .ci-static {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 0;
  border-bottom: 1px solid var(--line); color: var(--ink); transition: color .25s;
}
.contact-list li:first-child a { border-top: 1px solid var(--line); }
.contact-list a:hover { color: var(--gold-deep); }
.ci-icon {
  display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--gold-pale); color: var(--gold-deep); background: #fff;
  transition: background-color .25s, color .25s;
}
.contact-list a:hover .ci-icon { background: var(--ink); color: var(--gold-soft); border-color: var(--ink); }
.ci-text { display: flex; flex-direction: column; line-height: 1.35; }
.ci-label { font-size: .82rem; color: var(--muted); font-weight: 600; letter-spacing: .04em; }
.ci-value { font-size: 1.06rem; font-weight: 600; }
.ci-value .ltr { text-align: right; }

.contact-list--dark a, .contact-list--dark .ci-static { color: #fff; border-color: rgba(255, 255, 255, .1); }
.contact-list--dark li:first-child a { border-top-color: rgba(255, 255, 255, .1); }
.contact-list--dark .ci-icon { background: transparent; border-color: rgba(201, 173, 124, .4); color: var(--gold-soft); }
.contact-list--dark .ci-label { color: #a59d90; }
.contact-list--dark a:hover { color: var(--gold-soft); }
.contact-list--dark a:hover .ci-icon { background: var(--gold); color: var(--ink); border-color: var(--gold); }

.form-card { background: #fff; padding: clamp(1.75rem, 4vw, 3rem); box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.form-title { font-size: 1.55rem; margin-bottom: .4rem; }
.form-intro { color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem 1.25rem; margin: 1.6rem 0 1.6rem; }
.field { position: relative; }
.field--full { grid-column: 1 / -1; }
.field label { display: block; margin-bottom: .4rem; font-size: .93rem; font-weight: 600; color: var(--ink); }
.req { color: var(--gold-deep); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font-size: 1rem; color: var(--ink); background: var(--paper);
  border: 1px solid #d3c7b4; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.field select {
  appearance: none; -webkit-appearance: none; padding-inline-start: 2.4rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237d6236' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-size: 18px; background-position: left .8rem center;
}
.field input[dir="ltr"] { text-align: right; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-deep); background: #fff;
  box-shadow: 0 0 0 3px rgba(125, 98, 54, .2);
}
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { margin: .35rem 0 0; font-size: .87rem; color: var(--error); font-weight: 600; }
.field-check { display: grid; grid-template-columns: auto 1fr; gap: .25rem .8rem; align-items: start; }
.field-check input { width: 20px; height: 20px; min-height: 0; margin: .3rem 0 0; accent-color: var(--gold-deep); }
.field-check label { font-weight: 400; font-size: .92rem; line-height: 1.6; color: var(--text); margin: 0; }
.field-check label a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.field-check .field-error { grid-column: 2; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.form-note { margin: 1rem 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.form-status:empty { display: none; }
.form-status { margin-top: 1.2rem; padding: 1rem 1.2rem; font-weight: 600; border-inline-start: 3px solid var(--gold); background: var(--cream); color: var(--ink); }
.form-status.is-success { border-color: var(--success); background: #eef4ec; color: var(--success); }
.form-status.is-error { border-color: var(--error); background: #f8eceb; color: var(--error); }
.contact-form.is-sending button[type="submit"] { opacity: .7; pointer-events: none; }

.map-wrap { margin-top: clamp(3rem, 6vw, 4.5rem); border: 1px solid var(--line); }
.map-wrap iframe { display: block; width: 100%; height: 380px; border: 0; filter: grayscale(.4) sepia(.15); }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden;
  padding-block: clamp(3rem, 7vw, 5.25rem) clamp(3rem, 6vw, 4.5rem);
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); margin: 1rem 0 0; max-width: 22ch; }
.page-hero .title-rule { margin-inline: 0; }
.page-hero-lead { margin: 1.5rem 0 0; max-width: 62ch; font-size: 1.15rem; color: var(--muted); }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; font-size: .9rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin-inline-end: .45rem; color: var(--gold); }
.breadcrumbs a:hover { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current] { color: var(--ink); font-weight: 600; }

/* ---------- About page ---------- */
.about-page-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.about-aside { position: sticky; top: calc(var(--header-h) + 2rem); }

.diamond-list { list-style: none; }
.diamond-list li { position: relative; padding: .65rem 0; padding-inline-start: 1.5rem; border-bottom: 1px solid var(--line); }
.diamond-list li:last-child { border-bottom: 0; }
.diamond-list li::before {
  content: ""; position: absolute; inset-inline-start: .15rem; top: 1.35rem;
  width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg);
}
.diamond-list a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold-pale); text-underline-offset: 4px; }
.diamond-list--cols { display: grid; grid-template-columns: 1fr 1fr; column-gap: 2.5rem; }
.diamond-list--cols li:nth-last-child(2):nth-child(odd) { border-bottom: 0; }

/* ---------- Practice index ---------- */
.pa-list { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.pa-item {
  position: relative; display: block;
  padding: 2.1rem 2.2rem; background: #fff; border: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s var(--ease), transform .3s var(--ease);
}
.pa-item:hover { border-color: var(--gold-pale); box-shadow: var(--shadow); transform: translateY(-2px); }
.pa-item:last-child:nth-child(odd) { grid-column: 1 / -1; }
.pa-item h2 { font-size: 1.4rem; margin: 0 0 .6rem; line-height: 1.35; }
.pa-item h2 a::after { content: ""; position: absolute; inset: 0; } /* כל הכרטיס לחיץ */
.pa-item p { color: var(--muted); margin-bottom: 1rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.3rem; }
.chips li { font-size: .82rem; padding: .25rem .8rem; border: 1px solid var(--gold-pale); border-radius: 100px; color: var(--gold-deep); background: var(--paper); }

/* ---------- Practice detail ---------- */
.practice-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
.h-sub { font-size: 1.5rem; margin: 2.6rem 0 1rem; }
.h-group { font-size: 1.15rem; margin: 1.4rem 0 .2rem; color: var(--gold-deep); font-family: var(--ff-body); font-weight: 700; }
.h-sub--first { margin-top: 0; }

.practice-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.5rem; }
.aside-nav { background: #fff; border: 1px solid var(--line); }
.aside-nav h2 { margin: 0; padding: 1.05rem 1.5rem; font-size: 1.1rem; background: var(--cream); border-bottom: 1px solid var(--line); }
.aside-nav ul { list-style: none; }
.aside-nav a { position: relative; display: block; padding: .8rem 1.5rem; font-size: .95rem; line-height: 1.5; border-bottom: 1px solid var(--line); transition: background-color .2s, color .2s; }
.aside-nav li:last-child a { border-bottom: 0; }
.aside-nav a:hover { background: var(--paper); color: var(--ink); }
.aside-nav a[aria-current] { color: var(--ink); font-weight: 700; background: var(--paper); }
.aside-nav a[aria-current]::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 3px; background: var(--gold); }
.aside-contact { background: var(--ink); color: var(--on-dark); padding: 2rem 1.75rem; }
.aside-contact h2 { color: #fff; font-size: 1.35rem; margin-bottom: .4rem; }
.aside-contact .contact-list { margin: 1.25rem 0 1.5rem; }
.aside-contact .ci-icon { width: 40px; height: 40px; }

/* ---------- CTA band ---------- */
.cta-band { background: var(--ink); color: var(--on-dark); padding-block: clamp(3.5rem, 7vw, 5rem); position: relative; overflow: hidden; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem 3rem; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.35rem); margin: 0 0 .4rem; }
.cta-band p { margin: 0; font-size: 1.08rem; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .9rem; }

/* ---------- Prose pages ---------- */
.prose-page { max-width: 820px; }
.prose-page h2 { font-size: 1.5rem; margin: 2.6rem 0 .9rem; }
.prose-page ul:not(.diamond-list) { padding-inline-start: 1.3rem; margin-bottom: 1.2em; }
.prose-page li { margin-bottom: .45rem; }
.prose-page a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
.plain-list { list-style: none; padding: 0 !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-footer); color: #b4ac9f; padding-top: clamp(4rem, 7vw, 5.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .8fr 1.25fr 1.1fr; gap: clamp(2rem, 4vw, 3.5rem); }
.brand--light { color: #fff; margin-bottom: 1.4rem; }
.brand--light .brand-sub { color: var(--gold-soft); }
.footer-brand p { max-width: 34ch; line-height: 1.75; }
.latin { font-family: var(--ff-latin); font-size: .98rem; letter-spacing: .14em; white-space: nowrap; max-width: none !important; color: var(--gold-soft); text-transform: uppercase; text-align: right; }
.footer-title { color: #fff; font-size: 1.1rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #b4ac9f; transition: color .2s; line-height: 1.5; display: inline-block; }
.footer-links a:hover { color: var(--gold-soft); }
.site-footer .contact-list { margin-top: 0; }
.site-footer .ci-icon { width: 40px; height: 40px; }
.site-footer :focus-visible, .section-dark :focus-visible, .cta-band :focus-visible, .aside-contact :focus-visible,
.quote-band :focus-visible, .mobile-bar :focus-visible { outline-color: var(--gold-soft); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  margin-top: clamp(3rem, 6vw, 4.5rem); padding-block: 1.5rem; border-top: 1px solid rgba(255, 255, 255, .09); font-size: .88rem;
}
.footer-bottom p { margin: 0; }
.legal-links { list-style: none; display: flex; gap: 1.5rem; }
.legal-links a { color: #b4ac9f; text-decoration: underline; text-decoration-color: rgba(201, 173, 124, .35); text-underline-offset: 4px; }
.legal-links a:hover { color: var(--gold-soft); }
.disclaimer { font-size: .82rem; color: #9b9387; padding-bottom: 2rem; margin-bottom: 0; line-height: 1.7; }

/* ---------- Floating: WhatsApp, mobile bar, accessibility ---------- */
.wa-float {
  position: fixed; left: 24px; bottom: 24px; z-index: 50;
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #1f9e55; color: #fff; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .45);
  transition: transform .3s var(--ease), background-color .3s;
}
.wa-float .ui-icon { width: 28px; height: 28px; }
.wa-float:hover { transform: translateY(-3px); background: #178a48; }

.mobile-bar { display: none; }

.a11y-toggle {
  position: fixed; left: 0; top: 42%; z-index: 55;
  display: grid; place-items: center; width: 46px; height: 50px; padding: 0;
  background: var(--ink); color: var(--gold-soft); border: 0; border-radius: 0 6px 6px 0;
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .5);
}
.a11y-toggle .ui-icon { width: 26px; height: 26px; }
.a11y-toggle:hover, .a11y-toggle[aria-expanded="true"] { background: var(--gold-deep); color: #fff; }
.a11y-panel {
  position: fixed; left: 54px; top: 50%; transform: translateY(-50%); z-index: 80;
  width: min(330px, calc(100vw - 70px)); max-height: 92vh; overflow-y: auto;
  background: #fff; border-top: 3px solid var(--gold); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .45);
  padding: 1.2rem 1.2rem 1.4rem;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.a11y-head h2 { font-size: 1.2rem; margin: 0; }
.a11y-close { display: grid; place-items: center; width: 38px; height: 38px; background: none; border: 1px solid var(--line); border-radius: var(--radius); }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.a11y-grid button, .a11y-reset {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: .8rem .4rem; min-height: 76px; font-size: .9rem; font-weight: 600; line-height: 1.3;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink);
  transition: background-color .2s, color .2s, border-color .2s;
}
.a11y-grid button:hover { border-color: var(--gold); }
.a11y-grid button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.a11y-ic { font-size: 1.15rem; line-height: 1; font-family: var(--ff-body); font-weight: 700; color: var(--gold-deep); }
.a11y-grid button[aria-pressed="true"] .a11y-ic { color: var(--gold-soft); }
.a11y-reset { width: 100%; min-height: 0; margin-top: .6rem; flex-direction: row; justify-content: center; }
.a11y-statement { display: block; margin-top: .9rem; text-align: center; font-size: .9rem; color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- ציורים בתוך התוכן (חתוכים מהמסגרת, בלי כיתוב) ---------- */
.art-figure { margin: 2.2rem 0; }
.art-figure img { display: block; width: 100%; height: auto; box-shadow: var(--shadow); }
.art-figure--side { margin: 0; }
/* דיוקן גבוה בעמוד תחום: צף לצד פסקת הפתיחה (בעברית – בצד שמאל) */
.practice-article .art-figure--tall { float: left; width: 40%; max-width: 280px; margin: .3rem 2.2rem 1.2rem 0; }
.practice-article .h-sub, .practice-article .diamond-list { clear: both; }
.approach-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; max-width: 1080px; margin-inline: auto;
}
.approach-grid .prose p:last-child { margin-bottom: 0; }
.quote-band--art img { opacity: .4; filter: sepia(.15) saturate(.8) blur(1px); transform: scale(1.03); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1180px) {
  .header-phone span { display: none; }
  .header-phone { width: 42px; height: 42px; justify-content: center; border: 1px solid var(--line); border-radius: 50%; }
  .main-nav a { padding-inline: .8rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 1023px) {
  :root { --header-h: 72px; }
  .site-header.is-scrolled .header-inner { height: var(--header-h); }
  .main-nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .nav-toggle { display: grid; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; padding-block: 2rem 3rem; }
  .hero-portrait { order: -1; width: min(100%, 330px); }   /* הדיוקן נראה מיד בפתיחה */
  .hero-content { max-width: none; }
  .about-page-grid, .contact-grid, .practice-layout { grid-template-columns: 1fr; }
  .about-aside { position: static; max-width: 360px; }
  .practice-aside { position: static; }
  .pa-list { grid-template-columns: 1fr; }

  .approach-grid { grid-template-columns: 1fr; }
  .art-figure--side { max-width: 460px; }
}

/* טאבלט (761–1023): הדיוקן לצד הטקסט ולא מעליו, כדי שהפתיחה לא תתפוס מסך שלם */
@media (min-width: 761px) and (max-width: 1023px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 2.5rem; padding-block: 2.5rem 3rem; }
  .hero-portrait { order: 0; width: 100%; }
  .hero-caption { font-size: .88rem; }
  .wa-float { width: 50px; height: 50px; left: 16px; bottom: 16px; }
}

@media (max-width: 760px) {
  body { font-size: 1.03rem; padding-bottom: 64px; }
  .brand-mono { width: 28px; }
  .brand-name { font-size: 1.25rem; }
  .brand-sub { font-size: .72rem; }
  .header-cta { display: none; }

  .hero-portrait, .about-aside .portrait-frame { width: min(72vw, 290px); margin-inline: auto; }
  /* המסגרת הזהובה שמאחורי הדיוקן: היסט קטן יותר, כדי שלא תבלוט מעבר לשולי המסך (16px) */
  .portrait-img::before, .hero-portrait .portrait-img::before { inset-block: 12px -12px; inset-inline: 12px -12px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .contact-inline { gap: .55rem 1.1rem; font-size: .92rem; }

  .practice-list { grid-template-columns: 1fr; }
  .pl-item { gap: .9rem; padding-block: 1.25rem; }
  /* בנייד: קודם פסקת הפתיחה ואז הדיוקן, קטן יותר – כדי שהמסך הראשון יציג טקסט ולא רק תמונה */
  .practice-article { display: flex; flex-direction: column; }
  .practice-article > * { order: 2; }
  .practice-article > .lead { order: 0; }
  .practice-article > .art-figure--tall { order: 1; float: none; width: min(68%, 230px); margin: 0 auto 1.8rem; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .step { display: grid; grid-template-columns: 2.4rem 1fr; align-items: baseline; padding-block: 1rem; }
  .step-letter { margin: 0; font-size: 1.3rem; }
  .form-grid { grid-template-columns: 1fr; }
  .diamond-list--cols { grid-template-columns: 1fr; }
  .diamond-list--cols li:nth-last-child(2):nth-child(odd) { border-bottom: 1px solid var(--line); }
  .pa-item { padding: 1.7rem 1.4rem; }
  .cta-actions, .cta-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }


  .wa-float { display: none; }
  .mobile-bar {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 58;
    display: grid; grid-template-columns: repeat(3, 1fr);
    background: var(--ink); border-top: 1px solid rgba(255, 255, 255, .08);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .2rem; min-height: 60px; color: #efe9df; font-size: .8rem; font-weight: 600; }
  .mobile-bar a + a { border-inline-start: 1px solid rgba(255, 255, 255, .1); }
  .mobile-bar .ui-icon { width: 21px; height: 21px; color: var(--gold-soft); }
  .mobile-bar .mb-primary { background: var(--gold); color: var(--ink); }
  .mobile-bar .mb-primary .ui-icon { color: var(--ink); }
  .a11y-toggle { top: auto; bottom: 84px; width: 42px; height: 44px; }
  .a11y-panel { left: 50%; top: auto; bottom: 76px; transform: translateX(-50%); width: calc(100vw - 32px); max-height: 75vh; }
}

/* ==========================================================================
   Accessibility modes (תפריט נגישות)
   ========================================================================== */
html.a11y-font-m1 { font-size: 93.75%; }
html.a11y-font-1 { font-size: 112.5%; }
html.a11y-font-2 { font-size: 125%; }
html.a11y-font-3 { font-size: 140%; }

html.a11y-links a { text-decoration: underline !important; text-underline-offset: 3px; outline: 1px dashed currentColor; outline-offset: 2px; }
html.a11y-readable body, html.a11y-readable body *:not(svg):not(path):not(rect) {
  font-family: Arial, "Segoe UI", Tahoma, sans-serif !important; letter-spacing: .01em !important;
}
html.a11y-contrast body, html.a11y-contrast body *:not(svg):not(path):not(rect):not(img):not(picture) {
  background-color: #000 !important; color: #fff !important; border-color: #fff !important;
  box-shadow: none !important; text-shadow: none !important;
}
html.a11y-contrast a, html.a11y-contrast a * { color: #ffeb3b !important; }
html.a11y-contrast .hero::before, html.a11y-contrast .quote-band::before { background: rgba(0, 0, 0, .82) !important; }
html.a11y-contrast .hero-media img, html.a11y-contrast .quote-band img { opacity: .25; }
html.a11y-contrast .title-rule, html.a11y-contrast .hero-sub::before { background: #fff !important; }
html.a11y-contrast :focus-visible { outline: 3px solid #ffeb3b !important; }

html.a11y-motion *, html.a11y-motion *::before, html.a11y-motion *::after {
  animation: none !important; transition: none !important; scroll-behavior: auto !important;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .site-header, .site-footer, .wa-float, .mobile-bar, .a11y-toggle, .a11y-panel, .cta-band, .hero-media, .quote-band picture { display: none !important; }
  body { color: #000; padding: 0; }
}
