/* =========================================================
   סהר בירי – משרד עורכי דין · Sahar Biri Law Office
   Design concept: "Clarity" (בהירות) · RTL Hebrew
   Dark cinematic openings dissolve into calm ivory paper —
   the page enacts the firm's promise: complexity made clear.
   Navy = ink + masthead + colophon · Gold = the quiet accent
   (bright for decoration, bronze #7d5c2e for text on paper).
   ========================================================= */

:root {
  /* Paper surfaces */
  --paper: #f6f2e9;
  --paper-2: #efe8d8;        /* parchment — alt sections */
  --card: #fffdf7;           /* elevated paper panel */
  /* Ink — the brand navy, re-purposed as text color */
  --ink: #1a2740;
  --ink-2: #47536b;
  --ink-3: #5f6b84;          /* ≥ 4.5:1 on paper */
  --line: rgba(26, 39, 64, .16);
  --line-soft: rgba(26, 39, 64, .09);
  /* Gold — bright only for decor; bronze passes AA on paper */
  --gold: #c9a063;
  --gold-light: #e8cb95;
  --gold-deep: #9c7440;
  --gold-text: #7d5c2e;      /* ~5.7:1 on paper */
  --gold-grad: linear-gradient(100deg, #a97c3f 0%, #e8cb95 45%, #c9a063 80%);
  /* Dark islands (hero, page-hero, CTA band, footer, mobile nav) */
  --navy: #0d1728;
  --navy-2: #0a111e;
  --on-dark: #f4f7fa;
  --on-dark-2: #aebdd0;
  --on-dark-3: #8497ad;
  --line-dark: rgba(201, 160, 99, .28);
  --line-dark-soft: rgba(201, 160, 99, .14);
  /* Depth on paper — soft navy-tinted shadows */
  --shadow-lg: 0 30px 60px -22px rgba(26, 39, 64, .28);
  --shadow-md: 0 16px 36px -16px rgba(26, 39, 64, .18);
  --radius: 10px;
  /* Type + motion */
  --font-serif: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --font-sans: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  /* Spacing scale */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;
  --sp-7: 140px;
  --header-h: 78px;
  /* Focus ring — bronze on paper, bright gold on dark islands */
  --focus: #7d5c2e;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 14px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
strong, b { font-weight: 600; }

::selection { background: rgba(201, 160, 99, .4); color: #14202f; }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Utilities ---------- */
.container { width: min(1180px, 92vw); margin-inline: auto; }
.container.narrow { width: min(880px, 92vw); }

.section { padding-block: clamp(84px, 10vw, 136px); position: relative; }
.section.tight { padding-block: clamp(52px, 7vw, 84px); }

/* Alt sections: parchment + hairlines (rhythm, not bands) */
.section.alt {
  background:
    radial-gradient(64% 52% at 86% 0%, rgba(201, 160, 99, .07), transparent 58%),
    var(--paper-2);
  border-block: 1px solid var(--line-soft);
}

/* Gradient gold text is reserved for dark islands; on paper it becomes
   solid bronze so small numerals keep their contrast */
.section .gold-text {
  background: none;
  -webkit-text-fill-color: var(--gold-text);
  color: var(--gold-text);
  filter: none;
}
.about-badge .gold-text,
.cta-inner .gold-text {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .45));
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--gold-text);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .2em;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 44px; height: 1px;
  background: linear-gradient(to left, var(--gold), transparent);
}
.eyebrow.center::after {
  content: "";
  width: 44px; height: 1px;
  background: linear-gradient(to right, var(--gold), transparent);
}
/* Eyebrows sitting on dark islands stay bright */
.page-hero .eyebrow, .cta-band .eyebrow { color: var(--gold-light); }

.section-head { max-width: 720px; margin-bottom: clamp(42px, 5.5vw, 68px); }
.section-head.center { margin-inline: auto; text-align: center; }

h1, h2, h3, h4 { font-weight: 600; line-height: 1.3; color: var(--ink); }

.section-head h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.95rem, 3.4vw, 2.7rem);
  letter-spacing: -.01em;
  line-height: 1.22;
  text-wrap: balance;
}
.section-head p {
  color: var(--ink-2);
  margin-top: 16px;
  font-size: 1.08rem;
  line-height: 1.8;
  max-width: 62ch;
}
.section-head.center p { margin-inline: auto; }

/* Editorial two-column section head — title / hairline / lead */
@media (min-width: 901px) {
  .section-head:not(.center):has(> p) {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    column-gap: clamp(30px, 4.5vw, 64px);
    align-items: end;
    max-width: none;
  }
  .section-head:not(.center):has(> p) .eyebrow { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 14px; }
  .section-head:not(.center):has(> p) h2 { grid-column: 1; grid-row: 2; }
  .section-head:not(.center):has(> p) p {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: end;
    margin-top: 0;
    padding-bottom: 4px;
    padding-inline-start: clamp(22px, 3vw, 38px);
    border-inline-start: 1px solid var(--line);
  }
}


/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 34px;
  min-height: 52px;
  border-radius: 3px;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .02em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background-color .25s ease, color .25s ease, border-color .25s ease, filter .25s ease;
}
.btn:active { transform: translateY(0) scale(.985); }
.btn svg { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(-4px); }

/* Gold stays the universal primary — works on paper and on navy */
.btn-gold {
  position: relative;
  overflow: hidden;
  background: linear-gradient(178deg, #eed29a 0%, #d6ae6e 38%, #c9a063 62%, #a67c40 100%);
  color: #14202f;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .45),
    inset 0 -2px 4px rgba(105, 76, 34, .5),
    0 12px 26px -10px rgba(125, 92, 46, .5);
}
.btn-gold::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: -70%;
  width: 50%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .5), transparent);
  transform: skewX(-18deg);
  transition: left .55s ease;
  pointer-events: none;
}

/* Outline — ink on paper */
.btn-outline {
  border: 1px solid rgba(26, 39, 64, .32);
  color: var(--ink);
  background: transparent;
}

/* Quiet text-link — keeps one dominant CTA per view */
.btn-quiet {
  position: relative;
  padding: 14px 6px;
  min-height: 0;
  color: var(--ink-2);
  font-weight: 500;
}
.btn-quiet::after {
  content: "";
  position: absolute;
  bottom: 7px;
  inset-inline: 6px;
  height: 1px;
  background: currentColor;
  opacity: .45;
  transition: opacity .3s ease;
}
.btn-quiet:hover { color: var(--gold-text); }
.btn-quiet:hover::after { opacity: .95; }

/* Buttons that live on dark islands */
.hero .btn-quiet { color: var(--gold-light); }
.hero .btn-quiet:hover { color: var(--gold); }
.cta-band .btn-outline {
  color: var(--gold-light);
  border-color: var(--line-dark);
  background: rgba(201, 160, 99, .05);
}
.cta-band .btn-outline:hover { border-color: var(--gold); background: rgba(201, 160, 99, .12); }

@media (hover: hover) {
  .btn-gold:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, .5),
      inset 0 -2px 4px rgba(105, 76, 34, .45),
      0 18px 34px -10px rgba(125, 92, 46, .55);
  }
  .btn-gold:hover::after { left: 125%; }
  .btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--gold-deep);
    color: var(--gold-text);
    background: rgba(201, 160, 99, .08);
  }
  .cta-band .btn-outline:hover { color: var(--gold-light); }
}

/* ---------- Header — always a dark masthead, over paper or video ---------- */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  --focus: #e8cb95;
  transition: background-color .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: rgba(10, 17, 30, .94);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom-color: rgba(201, 160, 99, .18);
  box-shadow: 0 12px 32px -14px rgba(10, 17, 30, .5);
}
/* בזמן שהתפריט פתוח אסור שלהדר יהיה backdrop-filter:
   פילטר על אב הופך אותו ל-containing block של ה-nav ה-fixed,
   וה-overlay מתכווץ לגובה ההדר (התפריט נראה שקוף אחרי גלילה) */
body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; }
/* הלוגו ואייקון הטלפון נשארים גלויים מעל התפריט הפתוח, כמו כפתור הסגירה */
body.nav-open .brand,
body.nav-open .header-phone { position: relative; z-index: 130; }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand { display: flex; align-items: center; gap: 13px; flex-shrink: 0; }
.brand img { height: 40px; width: auto; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand .brand-text b {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: .01em;
  color: var(--on-dark);
}
.brand .brand-text span {
  font-size: .68rem;
  letter-spacing: .3em;
  color: var(--gold);
  font-weight: 400;
}


.main-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.main-nav a {
  font-size: .98rem;
  font-weight: 400;
  color: var(--on-dark-2);
  padding: 6px 2px;
  position: relative;
  white-space: nowrap;
  transition: color .25s ease;
}
.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 1px;
  background: var(--gold-grad);
  transform: scaleX(0);
  transform-origin: right; /* RTL: grows from the reading start */
  transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--on-dark); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  color: var(--gold-light);
  font-weight: 500;
  font-size: .98rem;
  direction: ltr;
}
.header-phone svg { width: 16px; height: 16px; }
.header-cta .btn { padding: 12px 26px; font-size: .95rem; min-height: 44px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 130;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--gold-light);
  transition: transform .3s var(--ease), opacity .3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero (home) — the dark opening that dissolves into paper ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--navy-2);
  --focus: #e8cb95;
}
.hero-media, .hero-media video, .hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video.vid-fade { opacity: 0; transition: opacity 1.2s ease; }
.hero-media video.vid-fade.is-playing { opacity: 1; }
.hero-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(50% 45% at 76% 34%, rgba(201, 160, 99, .15), transparent 62%);
  mix-blend-mode: screen;
  pointer-events: none;
}
/* The signature move: the footage literally fades into the paper page */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(to left, rgba(10, 17, 30, .82) 0%, rgba(10, 17, 30, .45) 38%, rgba(10, 17, 30, .14) 66%, rgba(10, 17, 30, .28) 100%),
    linear-gradient(to bottom, rgba(10, 17, 30, .55) 0%, rgba(10, 17, 30, .1) 32%, rgba(13, 23, 40, .5) 74%, var(--paper) 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: 130px;
  max-width: 800px;
}
.hero h1 {
  color: var(--on-dark);
  font-size: clamp(1.45rem, 2.9vw, 2.05rem);
  font-weight: 400;
  line-height: 1.35;
  letter-spacing: 0;
  text-shadow: 0 2px 34px rgba(4, 9, 18, .6);
}
.hero h1 .serif-line {
  display: block;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.55rem, 6.2vw, 4.5rem);
  letter-spacing: -.015em;
  margin-top: 14px;
  line-height: 1.14;
  text-wrap: balance;
}
.hero-sub {
  margin-top: 26px;
  max-width: 56ch;
  color: var(--on-dark-2);
  font-size: clamp(1.06rem, 1.5vw, 1.2rem);
  font-weight: 300;
  line-height: 1.85;
  text-shadow: 0 1px 18px rgba(4, 9, 18, .5);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 42px; }


/* Trust strip — now a paper ledger bar at the hero's foot:
   the first piece of "clarity" the visitor touches */
.hero-trust {
  position: absolute;
  z-index: 3;
  bottom: 0;
  inset-inline: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}
.hero-trust .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 22px 10px;
  text-align: right;
}
.trust-item + .trust-item { border-inline-start: 1px solid var(--line-soft); }
.trust-item .t-num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.2vw, 1.95rem);
  line-height: 1;
}
.hero-trust .gold-text {
  background: none;
  -webkit-text-fill-color: var(--gold-text);
  color: var(--gold-text);
  filter: none;
}
.trust-item .t-label { font-size: .82rem; color: var(--ink-2); line-height: 1.5; }

/* ---------- Page hero (inner pages) — dark prologue, dissolves to paper ---------- */
.page-hero {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(64px, 9vw, 110px));
  padding-bottom: clamp(64px, 8vw, 104px);
  overflow: hidden;
  background: var(--navy);
  --focus: #e8cb95;
}
.page-hero .bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 62%;
  opacity: .32;
}
.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(56% 60% at 84% 10%, rgba(201, 160, 99, .08), transparent 55%),
    linear-gradient(to bottom, rgba(10, 17, 30, .68) 0%, rgba(10, 17, 30, .82) 62%, var(--paper) 100%);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 {
  max-width: 800px;
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.05rem, 4vw, 3.1rem);
  letter-spacing: -.015em;
  line-height: 1.18;
  text-wrap: balance;
}
.page-hero .lead {
  margin-top: 20px;
  max-width: 64ch;
  color: var(--on-dark-2);
  font-size: 1.16rem;
  font-weight: 300;
  line-height: 1.85;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .84rem;
  letter-spacing: .04em;
  color: var(--on-dark-3);
  margin-bottom: 24px;
}
.breadcrumb a:hover { color: var(--gold-light); }
.breadcrumb .sep { color: var(--gold); opacity: .7; }


/* ---------- Practice areas — an editorial "ledger", not cards ----------
   Alternating photo/text rows, driven entirely by grid-template-areas
   on the EXISTING markup (no wrapper divs, no HTML changes). */
.practice-grid {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
}
.practice-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(260px, 340px) 1fr;
  grid-template-areas:
    "media title"
    "media desc"
    "media points"
    "media link";
  column-gap: clamp(28px, 4.5vw, 64px);
  padding: clamp(30px, 4vw, 48px) 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  transition: background .35s ease;
}
.practice-card:nth-child(even) {
  grid-template-columns: 1fr minmax(260px, 340px);
  grid-template-areas:
    "title media"
    "desc media"
    "points media"
    "link media";
}
.practice-card:hover { background: rgba(201, 160, 99, .05); }
.practice-card > h3 {
  grid-area: title;
  font-family: var(--font-serif);
  font-size: clamp(1.45rem, 2.2vw, 1.75rem);
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 10px;
}
.practice-card > p { grid-area: desc; color: var(--ink-2); max-width: 58ch; }

.p-flag {
  position: absolute;
  top: 18px;
  inset-inline-start: 18px;
  z-index: 3;
  font-size: .7rem;
  letter-spacing: .16em;
  color: var(--gold-light);
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  padding: 5px 13px;
  background: rgba(8, 14, 25, .8);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* Ledger photo — hairline-framed, gently graded, full row height */
.p-media {
  grid-area: media;
  position: relative;
  height: 100%;
  min-height: 250px;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow-md);
}
.p-media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(.8) contrast(1.02);
  transition: transform .7s var(--ease);
}
.p-media-link { position: absolute; inset: 0; display: block; }
.practice-card:hover .p-media img { transform: scale(1.045); }
.p-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 23, 40, .4), transparent 55%);
  pointer-events: none;
}

.p-points {
  grid-area: points;
  margin: 18px 0 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  gap: 9px;
  max-width: 58ch;
}
.p-points li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: .95rem;
  color: var(--ink-2);
}
.p-points li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-deep);
  flex-shrink: 0;
  translate: 0 -2px;
}

.card-link {
  grid-area: link;
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-text);
  font-weight: 600;
  font-size: .96rem;
}
.card-link svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.card-link:hover { color: var(--gold-deep); }
.card-link:hover svg { transform: translateX(-4px); }

/* ---------- Icon medallions — on paper they read as embossed seals ---------- */
.v-icon, .st-ico, .s-icon, .i-icon, .faq-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(130% 130% at 32% 22%, #2a537f 0%, #17314f 50%, #0c1a2e 100%);
  border: 1px solid rgba(201, 160, 99, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .14),
    inset 0 -7px 12px rgba(0, 0, 0, .5),
    0 8px 18px -8px rgba(26, 39, 64, .5),
    0 0 0 5px rgba(201, 160, 99, .1);
}
.v-icon { width: 56px; height: 56px; margin-bottom: 18px; }
.v-icon .ico { width: 27px; height: 27px; }
.st-ico { width: 58px; height: 58px; margin-bottom: 18px; }
.st-ico .ico { width: 27px; height: 27px; }
.s-icon { width: 48px; height: 48px; }
.s-icon .ico { width: 24px; height: 24px; }
.i-icon { width: 48px; height: 48px; }
.i-icon .ico { width: 22px; height: 22px; }
.faq-icon { width: 32px; height: 32px; transition: transform .3s var(--ease), background .3s ease; }


/* ---------- Values — hairline columns on paper ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.value-item {
  padding: 6px clamp(20px, 2.4vw, 32px);
  transition: background .35s ease;
}
.value-item + .value-item { border-inline-start: 1px solid var(--line-soft); }
.value-item:first-child { padding-inline-start: 0; }
.value-item:last-child { padding-inline-end: 0; }
.value-item:hover { background: linear-gradient(to bottom, rgba(201, 160, 99, .07), transparent 80%); }
.value-item h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: 10px; }
.value-item p { color: var(--ink-2); font-size: .94rem; line-height: 1.7; }

/* ---------- About split ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 76px);
  align-items: center;
}
.about-media { position: relative; }
.about-media .photo-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about-media .photo-frame img { width: 100%; height: auto; filter: saturate(.85) contrast(1.02); }
.about-media::before {
  content: "";
  position: absolute;
  inset: 26px -22px -22px 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  z-index: -1;
}
/* The rating badge stays a dark "seal" — deliberate contrast on paper */
.about-badge {
  position: absolute;
  bottom: -26px;
  inset-inline-start: -14px;
  background: linear-gradient(150deg, #1b3a60, #10243f);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 18px 26px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.about-badge b {
  font-family: var(--font-serif);
  font-size: 1.9rem;
  font-weight: 700;
  display: block;
  line-height: 1.1;
}
.about-badge span { font-size: .82rem; color: var(--on-dark-2); }

.about-text h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 3.1vw, 2.55rem);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.about-text .role { color: var(--gold-text); letter-spacing: .1em; font-size: .92rem; font-weight: 500; margin-bottom: 22px; }
.about-text p { color: var(--ink-2); margin-bottom: 16px; max-width: 62ch; }
.about-text .about-quote {
  border-inline-start: 2px solid var(--gold-deep);
  padding-inline-start: 18px;
  margin: 26px 0;
  font-family: var(--font-serif);
  font-size: 1.16rem;
  line-height: 1.7;
  color: var(--ink);
  font-style: italic;
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: clamp(24px, 4vw, 54px);
  margin: 32px 0 36px;
  padding-block: 24px;
  border-block: 1px solid var(--line-soft);
}
.stat .num {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 2.2rem;
  display: block;
  line-height: 1.15;
}
.stat .label { color: var(--ink-2); font-size: .9rem; }

/* ---------- Process — open timeline: ink rule, gold nodes, numerals ---------- */
.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
.process-step {
  position: relative;
  padding: 30px clamp(16px, 1.8vw, 24px) 14px;
  border-top: 1px solid var(--line);
  transition: background .35s ease, border-color .35s ease;
}
.process-step::before {
  content: "";
  position: absolute;
  top: -5px;
  inset-inline-start: clamp(16px, 1.8vw, 24px);
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gold-grad);
  box-shadow: 0 0 0 4px rgba(201, 160, 99, .18);
}
.process-step:hover {
  background: linear-gradient(to bottom, rgba(201, 160, 99, .07), transparent 80%);
  border-top-color: var(--gold-deep);
}
.process-step h3 { font-size: 1.04rem; font-weight: 600; margin-bottom: 8px; }
.process-step p { font-size: .9rem; color: var(--ink-2); line-height: 1.65; }


/* ---------- Testimonials — paper quote cards ---------- */
.testi-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(430px, 84vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 18px;
  scrollbar-width: none;
  direction: rtl;
}
@media (min-width: 1101px) {
  .testi-track { grid-auto-columns: calc((100% - 40px) / 3); overflow-x: visible; }
}
@media (max-width: 1100px) {
  .testi-track { margin-inline: -4vw; padding-inline: 4vw; scroll-padding-inline: 4vw; }
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
  scroll-snap-align: center;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px 32px 30px;
  display: flex;
  flex-direction: column;
  transition: transform .4s var(--ease), border-color .35s ease, box-shadow .4s var(--ease);
}
@media (hover: hover) {
  .testi-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-md); }
}
.testi-card .quote-mark {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: .6;
  color: var(--gold);
  margin-bottom: 22px;
}
.testi-card blockquote { color: var(--ink); font-size: 1.04rem; line-height: 1.85; flex-grow: 1; }
.testi-card blockquote p + p { margin-top: .85em; }
/* הכרטיס מציג פתיח באורך אחיד; חוות הדעת המלאה נפתחת בחלון */
.testi-card { position: relative; }
.testi-card blockquote { max-height: 13em; overflow: hidden; }
.testi-card.is-long blockquote::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 3.4em;
  background: linear-gradient(to bottom, transparent, var(--card));
  pointer-events: none;
}
.testi-card.is-long blockquote { position: relative; }
.testi-open {
  position: absolute;
  inset: 0;
  width: 100%;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
  color: transparent;
  border-radius: var(--radius);
}
.testi-open:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.testi-card .stars { display: flex; gap: 3px; margin: 20px 0 12px; }
.testi-card .stars svg { width: 15px; height: 15px; fill: var(--gold-deep); }
.testi-card cite { font-style: normal; color: var(--ink-2); font-size: .9rem; }
.testi-card cite b { color: var(--gold-text); font-weight: 600; display: block; }
.testi-note { text-align: center; color: var(--ink-3); font-size: .85rem; margin-top: 20px; }
.testi-note a { color: var(--gold-text); border-bottom: 1px solid var(--line); }

/* ---------- Testimonials marquee (חוות דעת רצות) — בית ועמודי התמחות ----------
   משך המחזור נקבע ב-JS לפי מספר הכרטיסים, כדי שמהירות הגלילה תהיה זהה
   בכל העמודים גם כשמספר חוות הדעת שונה. */
.testi-marquee.is-animated { overflow: hidden; }
.testi-marquee.is-animated .testi-track {
  display: flex;
  width: max-content;
  overflow: visible;
  gap: 22px;
  animation: testi-scroll var(--testi-duration, 65s) linear infinite;
}
.testi-marquee.is-animated .testi-card { width: min(400px, 82vw); flex: 0 0 auto; }
.testi-marquee.is-animated:hover .testi-track,
.testi-marquee.is-animated.is-paused .testi-track,
.testi-marquee.is-animated.is-offscreen .testi-track { animation-play-state: paused; }
/* ההשהיה בפוקוס מנוהלת ב-JS (‎.is-paused) ולא ב-:focus-within — אחרת פוקוס
   שנשאר על כרטיס אחרי סגירת חלון חוות הדעת היה מקפיא את הקרוסלה לתמיד */
@keyframes testi-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}

/* ---------- Articles — magazine grid, first story featured ---------- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 26px;
}
.article-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: transform .4s var(--ease), border-color .35s ease, box-shadow .4s var(--ease);
  display: flex;
  flex-direction: column;
}
@media (hover: hover) {
  .article-card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-md); }
}
.article-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.article-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .7s var(--ease);
  filter: saturate(.8) contrast(1.02);
}
.article-card:hover .article-media img { transform: scale(1.05); }
.article-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 17, 30, .4), transparent 55%);
}
.article-tag {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  font-size: .74rem;
  letter-spacing: .1em;
  color: var(--gold-light);
  background: rgba(8, 14, 25, .78);
  border: 1px solid var(--line-dark);
  border-radius: 99px;
  padding: 5px 13px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.article-body { padding: 26px 26px 24px; display: flex; flex-direction: column; flex-grow: 1; }
.article-body h3 { font-family: var(--font-serif); font-size: 1.24rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; margin-bottom: 10px; }
.article-body p { color: var(--ink-2); font-size: .94rem; flex-grow: 1; margin-bottom: 18px; }

/* Featured first story — horizontal, larger */
.article-card:first-child {
  grid-column: 1 / -1;
  flex-direction: row;
}
.article-card:first-child .article-media { flex: 0 0 46%; aspect-ratio: auto; min-height: 280px; }
.article-card:first-child .article-media img { position: absolute; inset: 0; }
.article-card:first-child .article-body { justify-content: center; padding: clamp(28px, 4vw, 52px); }
.article-card:first-child .article-body h3 { font-size: clamp(1.5rem, 2.4vw, 1.85rem); }
.article-card:first-child .article-body p { font-size: 1.02rem; }

/* ---------- CTA band — a dark island mid-page, before the colophon ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(100deg, rgba(10, 17, 30, .95) 25%, rgba(13, 30, 52, .85)),
    url("../img/hero-poster.jpg") center 60% / cover no-repeat;
  border-block: 1px solid var(--line-dark-soft);
  padding-block: clamp(60px, 7.5vw, 100px);
  --focus: #e8cb95;
}
.cta-inner {
  position: relative;
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  padding: clamp(24px, 3.5vw, 40px) clamp(22px, 4vw, 56px);
}
.cta-inner h2 {
  color: var(--on-dark);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  letter-spacing: -.01em;
  line-height: 1.25;
  margin-bottom: 14px;
  text-wrap: balance;
}
.cta-inner p { color: var(--on-dark-2); margin-bottom: 32px; font-size: 1.06rem; }
.cta-inner .btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }


/* ---------- Service list (inner pages) — ruled index ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: clamp(24px, 3vw, 40px);
  row-gap: 0;
}
.service-item {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 26px 4px;
  border-top: 1px solid var(--line-soft);
  transition: background .35s ease, border-color .35s ease;
}
.service-item:hover {
  background: linear-gradient(to bottom, rgba(201, 160, 99, .07), transparent 85%);
  border-top-color: var(--line);
}
.service-grid.two-col { grid-template-columns: repeat(2, 1fr); }
.service-item h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: 6px; }
.service-item p { color: var(--ink-2); font-size: .92rem; line-height: 1.65; }

/* ---------- Feature split (inner pages) ---------- */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: center;
}
.feature-split .feature-media {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.feature-split .feature-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) contrast(1.02); }
.feature-split h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  letter-spacing: -.01em;
  line-height: 1.28;
  margin-bottom: 18px;
  text-wrap: balance;
}
.feature-split p { color: var(--ink-2); margin-bottom: 16px; max-width: 62ch; }

.check-list { display: grid; gap: 14px; margin-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); font-size: .98rem; }
.check-list li .ico-check {
  width: 21px; height: 21px;
  flex-shrink: 0;
  margin-top: 4px;
}
.check-list li span b { color: var(--gold-text); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
  transition: border-color .3s ease, box-shadow .3s ease;
}
.faq-item[open] {
  border-color: var(--line);
  box-shadow: inset 2px 0 0 var(--gold-deep); /* physical right = RTL start */
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .faq-icon svg {
  width: 13px; height: 13px;
  stroke: url(#gGold);
  stroke-width: 2.4;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35));
}
.faq-item[open] summary .faq-icon { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 26px 24px; color: var(--ink-2); font-size: .98rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(30px, 5vw, 60px);
  align-items: start;
}

.contact-form {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-md);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: .84rem;
  font-weight: 600;
  color: var(--gold-text);
  letter-spacing: .05em;
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  background: #fffef9;
  border: 1px solid rgba(26, 39, 64, .2);
  border-radius: 8px;
  padding: 15px 16px;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237d5c2e' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(201, 160, 99, .22);
}
.field input.error, .field textarea.error { border-color: #b04848; }

.form-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 8px;
  background: rgba(90, 160, 110, .14);
  border: 1px solid rgba(60, 122, 78, .35);
  color: #2f5c3c;
  font-size: .95rem;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.form-note[hidden] { display: none; }
.form-note svg { width: 20px; height: 20px; stroke: #3d7a4e; flex-shrink: 0; margin-top: 3px; }
.form-note a { color: #2f5c3c; text-decoration: underline; }
.form-disclaimer { margin-top: 14px; font-size: .8rem; color: var(--ink-3); }


/* Contact aside — open ruled rows next to the elevated form */
.contact-aside { display: grid; gap: 0; }
.info-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 4px;
  border-top: 1px solid var(--line-soft);
  transition: background .3s ease;
}
.info-card:first-child { border-top: 0; padding-top: 2px; }
.info-card:hover { background: linear-gradient(to bottom, rgba(201, 160, 99, .06), transparent 85%); }
.info-card b { display: block; font-weight: 600; font-size: .98rem; margin-bottom: 3px; }
.info-card a, .info-card span { color: var(--ink-2); font-size: .95rem; }
.info-card a:hover { color: var(--gold-text); }
.info-card .ltr { direction: ltr; display: inline-block; }

.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  height: 300px;
  filter: grayscale(.5) contrast(1.02) brightness(1.02);
  box-shadow: var(--shadow-md);
}
.map-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Footer — the dark colophon ---------- */
.site-footer {
  position: relative;
  background: var(--navy-2);
  border-top: 1px solid var(--line-dark-soft);
  padding-top: clamp(56px, 7vw, 88px);
  --focus: #e8cb95;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline-start: max(4vw, calc((100vw - 1180px) / 2));
  width: 150px;
  height: 2px;
  background: var(--gold-grad);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(30px, 4vw, 54px);
  padding-bottom: 48px;
}
.footer-brand img { height: 112px; width: auto; margin-bottom: 18px; }
.footer-brand p { color: var(--on-dark-2); font-size: .93rem; max-width: 300px; }
.site-footer h4 {
  color: var(--gold);
  font-size: .82rem;
  letter-spacing: .18em;
  font-weight: 500;
  margin-bottom: 20px;
}
.site-footer h4::after {
  content: "";
  display: block;
  width: 26px;
  height: 1px;
  background: var(--gold);
  opacity: .55;
  margin-top: 12px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col span { color: var(--on-dark-2); font-size: .95rem; transition: color .25s ease; }
.footer-col a:hover { color: var(--gold-light); }
.footer-col .ltr { direction: ltr; display: inline-block; }

.footer-social { display: flex; gap: 12px; margin-top: 22px; }
.footer-social a {
  width: 42px; height: 42px;
  border: 1px solid var(--line-dark-soft);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: border-color .25s ease, background-color .25s ease, transform .3s var(--ease);
}
.footer-social a svg { width: 17px; height: 17px; fill: var(--on-dark-2); transition: fill .25s ease; }
.footer-social a:hover { border-color: var(--gold); background: rgba(201, 160, 99, .1); }
.footer-social a:hover svg { fill: var(--gold-light); }
@media (hover: hover) {
  .footer-social a:hover { transform: translateY(-3px); }
}

.footer-bottom {
  border-top: 1px solid rgba(201, 160, 99, .1);
  padding-block: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--on-dark-3);
  font-size: .84rem;
}
.footer-bottom a { color: var(--on-dark-2); border-bottom: 1px solid var(--line-dark-soft); }
.footer-bottom a:hover { color: var(--gold-light); }
.footer-bottom .bd-credit { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--on-dark-3); border-bottom: 0; }
.footer-bottom .bd-credit:hover { color: var(--gold-light); }
.bd-credit .logo-icon { width: 16px; height: auto; display: block; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed;
  bottom: 26px;
  inset-inline-start: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #1eb757;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px -8px rgba(30, 183, 87, .45);
  transition: transform .3s var(--ease), box-shadow .3s ease;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
@media (hover: hover) {
  .wa-float:hover { transform: translateY(-4px) scale(1.05); box-shadow: 0 20px 40px -8px rgba(30, 183, 87, .55); }
}

/* ---------- 3D icon glyphs ---------- */
.ico {
  display: block;
  width: 28px; height: 28px;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .3));
}

/* ---------- Reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  transition-delay: var(--d, 0s);
}
.reveal.visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}


/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .header-phone span { display: none; }

  /* Ledger tightens: slimmer photo column */
  .practice-card { grid-template-columns: minmax(220px, 280px) 1fr; column-gap: clamp(22px, 3vw, 36px); }
  .practice-card:nth-child(even) { grid-template-columns: 1fr minmax(220px, 280px); }

  .values-grid { grid-template-columns: 1fr 1fr; }
  .value-item { padding: 26px 18px 10px; border-top: 1px solid var(--line-soft); }
  .value-item + .value-item { border-inline-start: 0; }
  .value-item:first-child { padding-inline-start: 18px; }
  .value-item:last-child { padding-inline-end: 18px; }

  .process-grid { grid-template-columns: repeat(3, 1fr); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Desktop nav with the longer practice-area labels */
@media (min-width: 1201px) and (max-width: 1460px) {
  .main-nav { gap: clamp(10px, 1.2vw, 20px); }
  .main-nav a { font-size: .92rem; }
}

@media (max-width: 1200px) {
  /* Mobile menu — dark, numbered, staggered */
  .main-nav {
    position: fixed;
    inset: 0;
    z-index: 120;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background:
      radial-gradient(80% 60% at 50% 0%, rgba(22, 64, 107, .22), transparent 60%),
      rgba(6, 11, 20, .98);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .38s ease;
    counter-reset: nav;
    --focus: #e8cb95;
  }
  .main-nav.open { opacity: 1; pointer-events: auto; }
  .main-nav a {
    display: flex;
    align-items: baseline;
    gap: 16px;
    font-family: var(--font-serif);
    font-size: clamp(1.4rem, 5.5vw, 1.75rem);
    font-weight: 600;
    color: var(--on-dark);
    padding: 14px 22px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity .4s ease, transform .5s var(--ease), color .25s ease;
  }
  .main-nav a::before {
    counter-increment: nav;
    content: "0" counter(nav) / "";
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .12em;
    color: var(--gold);
  }
  .main-nav.open a { opacity: 1; transform: none; }
  .main-nav.open a:nth-child(1) { transition-delay: .05s; }
  .main-nav.open a:nth-child(2) { transition-delay: .1s; }
  .main-nav.open a:nth-child(3) { transition-delay: .15s; }
  .main-nav.open a:nth-child(4) { transition-delay: .2s; }
  .main-nav.open a:nth-child(5) { transition-delay: .25s; }
  .main-nav.open a:nth-child(6) { transition-delay: .3s; }
  .main-nav a::after { display: none; }
  .main-nav a.active { color: var(--gold-light); }
  .nav-toggle { display: flex; }
}

@media (max-width: 900px) {
  .header-cta .btn { display: none; }

  /* Ledger becomes a single-column story */
  .practice-card, .practice-card:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "title"
      "media"
      "desc"
      "points"
      "link";
    row-gap: 14px;
  }
  .p-media { min-height: 0; height: 200px; }

  .articles-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .article-card:first-child { flex-direction: column; }
  .article-card:first-child .article-media { flex: none; min-height: 0; aspect-ratio: 3 / 2; }
  .article-card:first-child .article-body { padding: 26px 26px 24px; }

  .about-grid, .feature-split, .contact-grid { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .about-media::before { display: none; }
  .about-badge { inset-inline-start: 12px; bottom: -20px; }

  .hero-content { padding-bottom: 190px; }
  .hero-trust .container { grid-template-columns: repeat(2, 1fr); gap: 0; width: 100%; }
  .trust-item { justify-content: flex-start; padding: 16px 5vw; }
  .trust-item:nth-child(3) { border-inline-start: 0; }
  .trust-item:nth-child(n+3) { border-top: 1px solid var(--line-soft); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .section { padding-block: clamp(60px, 15vw, 84px); }

  .process-grid { grid-template-columns: 1fr 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .value-item { padding: 24px 4px 8px; }
  .value-item:first-child { padding-inline-start: 4px; }
  .value-item:last-child { padding-inline-end: 4px; }
  .service-grid, .service-grid.two-col, .form-row { grid-template-columns: 1fr; }

  .about-stats { grid-template-columns: repeat(3, auto); gap: 18px; }
  .stat .num { font-size: 1.6rem; }

  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-actions .btn-quiet { justify-content: center; }
  .trust-item .t-num { font-size: 1.35rem; }
  .trust-item .t-label { font-size: .76rem; }

  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
  .wa-float { width: 52px; height: 52px; bottom: 18px; inset-inline-start: 18px; }
}

/* ---------- SB living seal — מדליון מונוגרמה חי (ללא פטיש) ---------- */
.sb-seal { width: clamp(104px, 12vw, 138px); margin-inline: auto; }
.cta-band .sb-seal { margin-bottom: 16px; }
.sb-seal svg { width: 100%; height: auto; display: block; overflow: visible; filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .38)); }
.seal-float, .seal-orbit, .seal-pulse { transform-box: view-box; transform-origin: 110px 110px; }
.seal-sheen, .seal-pulse { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .seal-float { animation: seal-float 7s ease-in-out infinite; }
  .seal-orbit { animation: seal-orbit 9s linear infinite; }
  .seal-sheen { animation: seal-sheen 7s ease-out infinite; }
  .sb-seal:hover .seal-pulse { animation: seal-pulse .9s ease-out both; }
}
@keyframes seal-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes seal-orbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes seal-sheen {
  0%, 8% { transform: translateX(-26px); opacity: 0; }
  11% { opacity: .8; }
  24%, 100% { transform: translateX(130px); opacity: 0; }
}
@keyframes seal-pulse {
  0% { transform: scale(1); opacity: .8; }
  100% { transform: scale(1.16); opacity: 0; }
}

/* ---------- Certificates rail (about) — the documents themselves ---------- */
.certs-block { margin-top: clamp(48px, 6vw, 76px); }
.certs-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}
.certs-head h3 {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 2.1vw, 1.65rem);
  font-weight: 700;
}
.certs-head p { margin-top: 6px; color: var(--ink-2); font-size: .95rem; }
.certs-nav { display: flex; gap: 10px; flex: 0 0 auto; }
.certs-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.certs-btn svg { width: 20px; height: 20px; }
.certs-btn:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 8px 20px rgba(26, 39, 64, .12); }
.certs-rail {
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 6px 2px 20px;
  list-style: none;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--gold) transparent;
}
.cert-card { flex: 0 0 auto; scroll-snap-align: center; }
/* frame is baked into the images (brushed-silver gallery frame) — no card chrome */
.cert-open {
  display: block;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 14px 32px rgba(26, 39, 64, .18);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.cert-open img {
  display: block;
  height: 340px;
  width: auto;
}
.cert-open:hover { transform: translateY(-5px); box-shadow: 0 22px 46px rgba(26, 39, 64, .28); }
.cert-name {
  margin-top: 10px;
  max-width: 250px;
  margin-inline: auto;
  text-align: center;
  font-size: .84rem;
  line-height: 1.55;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .cert-open img { height: 290px; }
}

/* Certificate lightbox */
.cert-lightbox {
  margin: auto; /* the global reset zeroes dialog margins — restore centering */
  border: none;
  border-radius: 14px;
  padding: 0;
  background: var(--paper);
  max-width: min(92vw, 700px);
  box-shadow: 0 30px 80px rgba(4, 9, 18, .5);
}
.cert-lightbox::backdrop { background: rgba(10, 17, 30, .74); backdrop-filter: blur(4px); }
.cert-lightbox figure { margin: 0; }
.cert-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 14px 14px 0 0;
}
.cert-lightbox figcaption {
  padding: 14px 20px 18px;
  text-align: center;
  font-size: .92rem;
  color: var(--ink-2);
}
.cert-lb-close {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 17, 30, .55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.cert-lb-close:hover { background: rgba(10, 17, 30, .8); }
.cert-lb-close svg { width: 18px; height: 18px; }
.cert-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 17, 30, .55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.cert-lb-nav:hover { background: rgba(10, 17, 30, .8); }
.cert-lb-nav svg { width: 22px; height: 22px; }
.cert-lb-nav[data-dir="prev"] { inset-inline-start: 10px; }
.cert-lb-nav[data-dir="next"] { inset-inline-end: 10px; }
@media (max-width: 560px) {
  .cert-lb-nav { width: 40px; height: 40px; }
}

/* Testimonial lightbox — חוות הדעת המלאה, עם ניווט בין ההמלצות */
.testi-lightbox {
  margin: auto; /* the global reset zeroes dialog margins — restore centering */
  border: none;
  border-radius: 14px;
  padding: 0;
  background: var(--paper);
  max-width: min(92vw, 620px);
  width: min(92vw, 620px);
  box-shadow: 0 30px 80px rgba(4, 9, 18, .5);
}
.testi-lightbox::backdrop { background: rgba(10, 17, 30, .74); backdrop-filter: blur(4px); }
/* הריפוד העליון מפנה מקום לכפתור הסגירה (10px + 40px) שיושב באותה פינה:
   גליף המרכאות חורג כ-10px מעל תיבת השורה שלו (line-height ‎.6‎), ובלי
   המרווח הזה הכפתור מכסה אותו */
.testi-lb-body { padding: 68px 38px 30px; max-height: 82vh; overflow-y: auto; }
.testi-lb-body .quote-mark {
  display: block;
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: .6;
  color: var(--gold);
  margin-bottom: 22px;
}
.testi-lb-body blockquote { color: var(--ink); font-size: 1.04rem; line-height: 1.85; }
.testi-lb-body blockquote p + p { margin-top: .85em; }
.testi-lb-body .stars { display: flex; gap: 3px; margin: 22px 0 12px; }
.testi-lb-body .stars svg { width: 15px; height: 15px; fill: var(--gold-deep); }
.testi-lb-body cite { font-style: normal; color: var(--ink-2); font-size: .9rem; }
.testi-lb-body cite b { color: var(--gold-text); font-weight: 600; display: block; }
.testi-lb-count {
  padding: 0 38px 20px;
  text-align: center;
  font-size: .82rem;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.testi-lb-close,
.testi-lb-nav {
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 17, 30, .55);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s var(--ease);
}
.testi-lb-close:hover,
.testi-lb-nav:hover { background: rgba(10, 17, 30, .8); }
.testi-lb-close { top: 10px; inset-inline-start: 10px; }
.testi-lb-close svg { width: 18px; height: 18px; }
.testi-lb-nav { bottom: 14px; width: 44px; height: 44px; }
.testi-lb-nav svg { width: 22px; height: 22px; }
.testi-lb-nav[data-dir="prev"] { inset-inline-start: 14px; }
.testi-lb-nav[data-dir="next"] { inset-inline-end: 14px; }
@media (max-width: 560px) {
  .testi-lb-body { padding: 66px 22px 26px; }
  .testi-lb-count { padding: 0 22px 18px; }
  .testi-lb-nav { width: 38px; height: 38px; bottom: 10px; }
}

/* =============================================================
   סבב 6 — סרטוני ראיונות ומדיה (מוטמעים, נטענים רק בלחיצה)
   .vid-frame משותף לכרטיס המגדילים בבית, לרצועות המדיה ולנדל"ן
   ============================================================= */
.vid-frame { position: relative; background: #05080f; overflow: hidden; }
.vid-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.vid-frame.ratio-wide { aspect-ratio: 16 / 9; }
.vid-frame.ratio-tall { aspect-ratio: 9 / 16; }

.vid-play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  background: linear-gradient(to top, rgba(5, 8, 15, .58), rgba(5, 8, 15, .06) 55%);
  border: 0; padding: 0; cursor: pointer;
  transition: opacity .4s ease, visibility .4s ease;
}
.vid-play-btn {
  width: clamp(56px, 7vw, 72px); height: clamp(56px, 7vw, 72px);
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(13, 23, 40, .58);
  border: 1px solid rgba(232, 203, 149, .75);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .18);
  backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  transition: transform .3s ease, background .3s ease;
}
.vid-play-btn svg { width: 42%; height: 42%; fill: var(--gold-light); margin-inline-start: 5%; }
.vid-play:hover .vid-play-btn, .vid-play:focus-visible .vid-play-btn { transform: scale(1.07); background: rgba(13, 23, 40, .8); }
.vid-play:focus-visible { outline: 2px solid var(--gold-light); outline-offset: -3px; }
.vid-dur {
  position: absolute; bottom: 12px; inset-inline-start: 12px;
  font-size: .78rem; font-weight: 600; letter-spacing: .06em;
  color: var(--on-dark); background: rgba(5, 8, 15, .62);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px; padding: 3px 10px;
  direction: ltr;
}
.vid-frame.playing .vid-play { opacity: 0; visibility: hidden; pointer-events: none; }

/* רצועת מדיה כהה — אותה שפה של סקשן ההוקרות בדף הבית */
.media-band {
  position: relative; overflow: hidden;
  background: linear-gradient(175deg, var(--navy) 0%, var(--navy-2) 100%);
  border-block: 1px solid var(--line-dark-soft);
  padding-block: clamp(84px, 10vw, 128px);
  --focus: #e8cb95;
}
.media-band .section-head h2 { color: var(--on-dark); }
.media-band .section-head p { color: var(--on-dark-2); }
.media-band .eyebrow { color: var(--gold-light); }
.media-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(18px, 2.4vw, 30px); }
.vid-card {
  display: flex; flex-direction: column;
  background: rgba(255, 255, 255, .045);
  border: 1px solid rgba(201, 160, 99, .28);
  border-radius: calc(var(--radius) + 4px);
  overflow: hidden;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.vid-card:hover { transform: translateY(-3px); border-color: rgba(201, 160, 99, .55); box-shadow: 0 18px 44px rgba(0, 0, 0, .35); }
.vid-body { padding: 24px 26px 26px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; flex-grow: 1; }
.vid-tag {
  font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  color: var(--gold-light);
  border: 1px solid rgba(201, 160, 99, .45);
  border-radius: 999px; padding: 5px 14px;
}
.vid-body h3 { color: var(--on-dark); font-size: 1.25rem; }
.vid-body p { color: var(--on-dark-2); font-size: .95rem; line-height: 1.75; flex-grow: 1; }

/* סיפור מקרה (נדל"ן) — רִיל אנכי לצד הנרטיב */
.case-split { display: grid; grid-template-columns: 1.15fr minmax(250px, 330px); gap: clamp(34px, 5vw, 70px); align-items: center; }
.case-split h2 {
  color: var(--on-dark);
  font-family: var(--font-serif); font-weight: 700;
  font-size: clamp(1.75rem, 2.9vw, 2.35rem);
  letter-spacing: -.01em; line-height: 1.28;
  margin-bottom: 18px; text-wrap: balance;
}
.case-copy p { color: var(--on-dark-2); margin-bottom: 16px; max-width: 62ch; }
.case-stat { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 24px 0 10px; }
.case-stat b {
  font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; line-height: 1;
  background: var(--gold-grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  white-space: nowrap;
}
.case-stat span { color: var(--on-dark-2); font-size: .98rem; max-width: 34ch; }
.case-note { color: var(--on-dark-3); font-size: .88rem; }
.case-credit { display: block; margin-top: 8px; font-size: .8rem; opacity: .85; }
.case-split .vid-frame {
  border-radius: 18px;
  border: 1px solid rgba(232, 203, 149, .3);
  box-shadow: 0 26px 64px rgba(0, 0, 0, .5);
}
/* בלי כפתור מסך מלא לריל בדסקטופ (משלים את controlsList עבור וובקיט) */
@media (min-width: 901px) {
  .case-split .vid-frame video::-webkit-media-controls-fullscreen-button { display: none; }
}

/* וידאו בתוך feature-media (התחדשות עירונית) */
.feature-media .vid-frame { aspect-ratio: 16 / 9; }
.vid-note {
  display: block; padding: 12px 16px 14px;
  font-size: .88rem; line-height: 1.7; color: var(--ink-2);
  background: linear-gradient(to bottom, rgba(201, 160, 99, .08), transparent);
  border-top: 1px solid var(--line-soft);
}

@media (max-width: 900px) {
  .media-grid { grid-template-columns: 1fr; }
  .case-split { grid-template-columns: 1fr; }
  .case-split .vid-frame { width: min(300px, 82vw); margin-inline: auto; }
}

/* מסילות ביקורות מורחבות (6-7 חוות דעת) — בדסקטופ נפרשות כגריד, בנייד נשארת מסילה */
@media (min-width: 1101px) {
  .testi-track.wrap {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    overflow: visible;
  }
}
