/* =========================================================================
   Mador Finance (מדור פיננסים) — site styles
   Requires css/tokens.css (loaded first). Mobile-first; RTL; logical properties.
   No inline styles anywhere (strict CSP) — every visual state lives here.
   Sections:
    1. Base & utilities        8. Cards & grids          15. Forms
    2. Layout                  9. Why us / values        16. Floating contact
    3. Header & navigation    10. Process steps          17. Accessibility toolbar
    4. Buttons & links        11. Case stories          17b. v2: photos, illustrated steps,
    5. Section heads          12. FAQ accordion               calculator, carousel, banners
    6. Home hero (photo)      13. Services page          18. Motion (reveal, hero)
    7. Page hero & breadcrumb 14. Contact / legal / 404  19. High contrast · 20. Print
   ========================================================================= */

/* ---------- 1. Base & utilities ---------- */
:root {
  --header-offset: 60px;
  --bar-h: 64px;
  --sec-bg: var(--color-bg);
}
@media (min-width: 1024px) {
  :root { --header-offset: 72px; }
  html.is-scrolled { --header-offset: 60px; }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-offset) + 1rem);
  /* keyboard focus scrolled into view must clear the fixed call/WhatsApp bar on phones */
  scroll-padding-bottom: calc(var(--bar-h) + 1rem + env(safe-area-inset-bottom));
}
@media (min-width: 768px) {
  html { scroll-padding-bottom: 96px; } /* clears the floating WhatsApp + accessibility buttons */
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
html.a11y-no-motion { scroll-behavior: auto; }
html.nav-open, html.nav-open body { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  line-height: var(--lh-tight);
  color: var(--color-heading);
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-snug); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-snug); }
html.a11y-readable-font :is(h1, h2, h3, h4, .brand-name, .step-num, .contact-big) { font-weight: var(--fw-bold); letter-spacing: 0; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
strong { font-weight: var(--fw-bold); }

a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover { color: var(--color-link-hover); text-decoration-thickness: 2px; }

:focus-visible {
  outline: var(--focus-outline-width) solid var(--color-focus);
  outline-offset: var(--focus-outline-offset);
}
.on-dark :focus-visible { outline-color: var(--color-focus-on-dark); }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

bdi { unicode-bidi: isolate; }
/* phone numbers never break at the hyphen; long emails may wrap anywhere instead of overflowing */
a[href^="tel:"] bdi { white-space: nowrap; }
a[href^="mailto:"] bdi { overflow-wrap: anywhere; min-width: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

::selection { background: var(--green-700); color: #fff; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  display: inline-block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-sm { width: 20px; height: 20px; stroke-width: 1.75; }
.icon-lg { width: 32px; height: 32px; stroke-width: 1.15; }
.icon-xl { width: 40px; height: 40px; stroke-width: 0.95; }

.skip-link {
  position: fixed;
  top: 12px;
  inset-inline-start: 12px;
  z-index: var(--z-skip);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--green-700);
  font-weight: var(--fw-bold);
  box-shadow: var(--shadow-3);
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

.scroll-sentinel {
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 1px;
  height: 80px;
  pointer-events: none;
}

/* ---------- 2. Layout ---------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container-narrow { max-width: calc(var(--container-narrow) + 2 * var(--gutter)); }

main:focus { outline: none; }

.section { position: relative; padding-block: var(--section-y); background: var(--sec-bg); }
.section-tight { padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.bg-ivory { --sec-bg: var(--color-bg); }
.bg-white { --sec-bg: var(--color-surface); }
.bg-tint  { --sec-bg: var(--color-surface-tint); }
.bg-sand  { --sec-bg: var(--color-surface-accent); }
.bg-dark  { --sec-bg: var(--color-surface-dark); color: var(--color-text-on-dark); }
.bg-dark :is(h1, h2, h3, h4) { color: var(--white); }

.split { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(3rem, 7vw, 6.5rem); align-items: start; }
}

.prose-measure { max-width: var(--measure); }
.muted { color: var(--color-text-muted); }
.small { font-size: var(--fs-xs); line-height: 1.6; }

/* ---------- 3. Header & navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 248, 243, 0.95);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow var(--dur-base) var(--ease-in-out);
}
.is-scrolled .site-header::before { box-shadow: var(--shadow-2); }

.header-inner {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  height: var(--header-offset);
  transition: height var(--dur-base) var(--ease-in-out);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  margin-inline-end: auto;
  color: var(--color-heading);
  text-decoration: none;
}
.brand:hover { color: var(--color-heading); }
.brand img {
  width: 44px;
  height: 44px;
  transition: width var(--dur-base) var(--ease-in-out), height var(--dur-base) var(--ease-in-out);
}
.brand-name {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

/* Enlarged text on small phones: the wordmark no longer fits beside the call + menu buttons.
   The logo image stays and the link keeps its aria-label, so nothing is lost. */
@media (max-width: 479.98px) {
  html.a11y-text-125 .brand-name, html.a11y-text-150 .brand-name { display: none; }
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: var(--tap-min);
  height: var(--tap-min);
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-heading);
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std);
}
.icon-btn:hover { background: var(--color-surface-tint); border-color: var(--green-700); color: var(--green-700); }
.header-call { color: var(--color-primary); }

/* Mobile navigation drawer (default) */
.main-nav {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: min(88vw, 380px);
  padding: 12px 24px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--color-surface-dark);
  color: var(--white);
  box-shadow: var(--shadow-3);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform var(--dur-base) var(--ease-in-out), visibility 0s linear var(--dur-base);
}
.nav-open .main-nav {
  transform: none;
  visibility: visible;
  transition: transform var(--dur-base) var(--ease-in-out), visibility 0s;
}
.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2;
  background: rgba(0, 48, 29, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--dur-base) var(--ease-in-out), visibility 0s linear var(--dur-base);
}
.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity var(--dur-base) var(--ease-in-out), visibility 0s; }

.nav-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--line-dark);
}
.nav-panel-title { font-family: var(--font-display); font-size: 1.375rem; color: var(--white); }
.nav-close { border-color: rgba(255, 255, 255, 0.35); background: transparent; color: var(--white); }
.nav-close:hover { background: rgba(255, 255, 255, 0.08); border-color: var(--white); color: var(--white); }

.nav-list { list-style: none; }
.nav-list > li { border-bottom: 1px solid var(--line-dark); }
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 56px;
  font-size: 1.25rem;
  font-weight: var(--fw-semibold);
  color: var(--white);
  text-decoration: none;
}
.nav-link:hover { color: var(--gold-300); }
.nav-link[aria-current="page"] { color: var(--color-accent-on-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
.has-sub { display: flex; flex-wrap: wrap; align-items: center; }
.has-sub > .nav-link { flex: 1; }
.sub-toggle { display: none; }
.sub-menu { list-style: none; width: 100%; padding: 0 0 12px; padding-inline-start: 16px; }
.sub-menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: var(--color-text-muted-on-dark);
  font-size: 1.0625rem;
  text-decoration: none;
}
.sub-menu a:hover { color: var(--white); text-decoration: underline; }
.nav-mobile-actions { display: grid; gap: 12px; margin-top: auto; padding-top: 28px; }

.header-actions { display: none; }

/* No-JS fallback: show the nav inline (wrapped) and hide the drawer controls */
html:not(.js) .nav-toggle,
html:not(.js) .nav-panel-head,
html:not(.js) .nav-mobile-actions { display: none; }
@media (max-width: 1023.98px) {
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html:not(.js) .main-nav { position: static; width: 100%; transform: none; visibility: visible; padding: 0; background: none; color: inherit; box-shadow: none; }
  html:not(.js) .nav-list { display: flex; flex-wrap: wrap; gap: 0 16px; }
  html:not(.js) .nav-list > li { border: 0; }
  html:not(.js) .nav-link { font-size: 1rem; min-height: 48px; color: var(--color-text); }
  html:not(.js) .sub-menu { display: none; }
}

@media (min-width: 1024px) {
  .brand img { width: 54px; height: 54px; }
  .is-scrolled .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.5rem; }
  .brand { margin-inline-end: 0; }

  .main-nav {
    position: static;
    z-index: auto;
    display: block;
    width: auto;
    padding: 0;
    margin-inline-start: clamp(1.5rem, 3vw, 3rem);
    overflow: visible;
    background: none;
    color: inherit;
    box-shadow: none;
    transform: none;
    visibility: visible;
    transition: none;
  }
  .nav-panel-head, .nav-mobile-actions, .nav-backdrop, .nav-toggle, .header-call { display: none; }

  .nav-list { display: flex; align-items: center; gap: 2px; }
  .nav-list > li { position: relative; border: 0; }
  .has-sub { flex-wrap: nowrap; }
  .nav-link {
    min-height: 48px;
    padding-inline: 12px;
    font-size: var(--fs-sm);
    color: var(--color-text);
  }
  .nav-link:hover { color: var(--color-primary); }
  .nav-link::after {
    content: "";
    position: absolute;
    inset-inline: 12px;
    bottom: 9px;
    height: 2px;
    background: var(--green-600);
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform var(--dur-fast) var(--ease-std);
  }
  .nav-link:hover::after, .nav-link[aria-current="page"]::after { transform: scaleX(1); }
  .nav-link[aria-current="page"] { color: var(--color-heading); text-decoration: none; }
  .has-sub > .nav-link { padding-inline-end: 4px; }
  .has-sub > .nav-link::after { inset-inline-end: 4px; }

  .sub-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--color-text);
  }
  .sub-toggle .icon { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-std); }
  .sub-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .sub-toggle:hover { color: var(--color-primary); }

  .sub-menu {
    position: absolute;
    top: 100%;
    inset-inline-start: 0;
    z-index: 5;
    width: auto;
    min-width: 270px;
    padding: 8px;
    border-top: 2px solid var(--color-accent);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: var(--color-surface);
    box-shadow: var(--shadow-3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity var(--dur-fast) var(--ease-std), transform var(--dur-fast) var(--ease-std), visibility 0s linear var(--dur-fast);
  }
  html:not(.js) .has-sub:hover .sub-menu,
  html:not(.js) .has-sub:focus-within .sub-menu,
  .has-sub.is-open .sub-menu {
    display: block;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity var(--dur-fast) var(--ease-std), transform var(--dur-fast) var(--ease-std), visibility 0s;
  }
  .sub-menu a {
    min-height: 48px;
    padding-inline: 14px;
    border-radius: var(--radius-xs);
    color: var(--color-text);
    font-size: var(--fs-sm);
    font-weight: var(--fw-semibold);
  }
  .sub-menu a:hover { background: var(--color-surface-tint); color: var(--color-primary); text-decoration: underline; }

  .header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }
  .header-actions .btn { min-height: 48px; padding-inline: 20px; font-size: var(--fs-sm); }
  .header-phone .num { display: none; }
}
@media (min-width: 1200px) {
  .header-phone .num { display: inline; }
}

/* ---------- 4. Buttons & links ---------- */
.btn {
  --btn-bg: var(--color-primary);
  --btn-fg: var(--white);
  --btn-bd: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--btn-height);
  padding: 10px 28px;
  border: 1.5px solid var(--btn-bd);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: var(--fw-bold);
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition:
    background-color var(--dur-fast) var(--ease-std),
    border-color var(--dur-fast) var(--ease-std),
    color var(--dur-fast) var(--ease-std),
    transform var(--dur-fast) var(--ease-std),
    box-shadow var(--dur-fast) var(--ease-std);
}
.btn:hover { color: var(--btn-fg); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: none; box-shadow: none; transition-duration: var(--dur-instant); }
.btn .icon { width: 20px; height: 20px; stroke-width: 1.75; }
.icon-arrow { transition: transform var(--dur-fast) var(--ease-std); }
:is(.btn, .text-link, .card-link):hover .icon-arrow { transform: translateX(-4px); }

.btn-primary:hover { --btn-bg: var(--color-primary-hover); }
.btn-primary:active { --btn-bg: var(--color-primary-active); }

.btn-outline { --btn-bg: transparent; --btn-fg: var(--color-primary); --btn-bd: var(--color-primary); }
.btn-outline:hover { --btn-bg: var(--color-surface-tint); --btn-bd: var(--green-800); --btn-fg: var(--green-800); }
.btn-outline:active { --btn-bg: var(--green-100); }

.btn-light { --btn-bg: var(--white); --btn-fg: var(--green-950); }
.btn-light:hover { --btn-bg: var(--sand); }
.btn-light:active { --btn-bg: var(--green-100); }

.btn-outline-light { --btn-bg: transparent; --btn-fg: var(--white); --btn-bd: rgba(255, 255, 255, 0.7); }
.btn-outline-light:hover { --btn-bg: rgba(255, 255, 255, 0.08); --btn-bd: var(--white); }

.btn-lg { min-height: var(--btn-height-lg); font-size: 1.125rem; }
.btn-block { display: flex; width: 100%; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  color: var(--color-link);
  font-weight: var(--fw-bold);
}
.text-link:hover { color: var(--color-link-hover); }
.text-link .icon { width: 20px; height: 20px; stroke-width: 1.75; }

.on-dark a:not(.btn) { color: var(--white); }
.on-dark a:not(.btn):hover { color: var(--gold-300); }
/* Light panels nested in dark bands (form panel) return to light-surface link + focus colours */
.on-dark .form-panel a:not(.btn) { color: var(--color-link); }
.on-dark .form-panel a:not(.btn):hover { color: var(--color-link-hover); }
.on-dark .form-panel :focus-visible { outline-color: var(--color-focus); }

.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }

/* ---------- 5. Section heads ---------- */
.section-head { max-width: 760px; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 + .lead, .section-head h2 + p { margin-top: 20px; }
.eyebrow + h2, .eyebrow + h1 { margin-top: 16px; }
h2 + .lead, h2 + .prose-measure { margin-top: 20px; }

.lead { font-size: var(--fs-lg); line-height: 1.6; color: var(--color-text-muted); }
.bg-dark .lead, .on-dark .lead { color: var(--color-text-muted-on-dark); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--tracking-eyebrow);
  line-height: 1.4;
  color: var(--color-accent-text);
}
.eyebrow::before,
.center > .eyebrow::after {
  content: "";
  flex: none;
  width: 32px;
  height: 1px;
  background: var(--color-accent);
  transform-origin: 100% 50%;
  transition: transform 900ms var(--ease-out);
}
.center > .eyebrow::after { transform-origin: 0 50%; }
.bg-dark .eyebrow, .on-dark .eyebrow { color: var(--color-accent-on-dark); }
/* gold-700 on sand is 4.23:1; a slightly deeper gold keeps small eyebrow text AA there (4.9:1) */
.bg-sand .eyebrow { color: #7D5F27; }
html.a11y-high-contrast .bg-sand .eyebrow { color: var(--color-accent-text); }
.bg-dark .eyebrow::before, .on-dark .eyebrow::before, .on-dark .eyebrow::after, .bg-dark .center > .eyebrow::after { background: var(--gold-500); }

.title-sm {
  font-family: var(--font-body);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  line-height: var(--lh-snug);
  color: var(--color-heading);
}

/* Dark textured band (guilloche), shared by page hero, CTA band and refused intro */
.textured { position: relative; isolation: isolate; overflow: hidden; }
.textured::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../assets/guilloche.svg") 0 0 / 120px 120px repeat;
  opacity: 0.05;
  pointer-events: none;
}

/* ---------- 6. Home hero (photo, v2) & trust strip ---------- */
/* Mobile (<1024): photo block on top, text on solid green-950 starting inside the photo's dark end.
   Desktop: full-bleed photo behind, text column at the inline start (right) over overlay alpha ≥ 0.86. */
.hero {
  position: relative;
  z-index: 1;
  isolation: isolate;
  background: var(--photo-bg);
  color: var(--white);
}
.hero-media {
  position: relative;
  aspect-ratio: var(--ratio-hero-mobile);
  overflow: hidden;
  background: var(--photo-bg);
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 35% 40%;
  filter: var(--photo-filter);
}
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--photo-overlay-hero-mobile);
  pointer-events: none;
}
/* One-time settle (never a loop): scale 1.04 → 1 with a fade. Zeroed by reduced motion / "stop animations". */
@keyframes hero-settle { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
.js .hero-img { animation: hero-settle var(--dur-hero-photo) var(--ease-out) both; }

.hero-inner { position: relative; margin-top: -56px; padding-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem); }
.hero h1 { margin-top: 16px; color: var(--white); font-size: var(--fs-h1); }
.hero-sub { margin-top: 20px; max-width: 36em; font-size: var(--fs-lg); line-height: 1.6; color: var(--white); }
.hero-benefits { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.hero-benefits li { display: flex; align-items: center; gap: 12px; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--white); }
.hero-benefit-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(216, 192, 143, 0.4);
  color: var(--color-accent-on-dark);
}
.hero-benefit-icon .icon { width: 22px; height: 22px; stroke-width: 1.6; }
.hero-actions { display: grid; gap: 12px; margin-top: 32px; }
.hero-phone { margin: 12px 0 0; }
.hero-phone a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: var(--fw-semibold); }
.hero-phone .icon { width: 20px; height: 20px; color: var(--color-accent-on-dark); }

@media (min-width: 480px) {
  .hero-actions { grid-template-columns: auto auto; justify-content: start; }
}
@media (min-width: 600px) and (max-width: 1023.98px) {
  .hero-media { aspect-ratio: 16 / 9; max-height: 56vh; }
}
@media (min-width: 1024px) {
  .hero { display: grid; align-items: center; min-height: min(88vh, 760px); }
  .hero-media { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
  .hero-img { object-position: 30% 50%; }
  .hero-media::after { background: var(--photo-overlay-hero); }
  .hero-inner { margin-top: 0; padding-block: clamp(3rem, 7vh, 5.5rem); }
  .hero-copy { max-width: 640px; }
  /* 2 + 1: two content-sized columns packed to the start; the third bullet spans both and sits centred
     between the two above it. Below 1024 the list stays a single right-aligned column. */
  .hero-benefits { grid-template-columns: repeat(2, auto); justify-content: start; gap: 14px 28px; margin-top: 32px; }
  .hero-benefits li:nth-child(3):last-child { grid-column: 1 / -1; justify-self: center; }
  .hero-actions { margin-top: 36px; }
}
/* ≥1280: the text column (max 640px) never reaches past 53% of the width from the right, so the overlay
   keeps ≥0.86 to 55% and then falls off faster than the token, keeping the couple on the left in the light. */
@media (min-width: 1280px) {
  .hero-media::after {
    background: linear-gradient(to left, rgba(0, 48, 29, 0.92) 0%, rgba(0, 48, 29, 0.86) 55%, rgba(0, 48, 29, 0.30) 70%, rgba(0, 48, 29, 0.06) 100%);
  }
}
/* 1024–1279: the text column takes a larger share of the viewport, so the ≥0.86 zone runs to 66% */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .hero-media::after {
    background: linear-gradient(to left, rgba(0, 48, 29, 0.92) 0%, rgba(0, 48, 29, 0.86) 66%, rgba(0, 48, 29, 0.30) 86%, rgba(0, 48, 29, 0.08) 100%);
  }
}

.trust { padding-block: 28px; background: var(--color-surface-accent); border-bottom: 1px solid var(--color-border); }
.trust-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; }
.trust-list li { display: flex; align-items: center; gap: 12px; font-weight: var(--fw-semibold); line-height: 1.35; color: var(--color-text); }
.trust-list .icon { color: var(--color-accent-text); }
@media (min-width: 1024px) {
  .trust { padding-block: 32px; }
  .trust-list { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .trust-list li { justify-content: center; padding-inline: 20px; border-inline-start: 1px solid var(--color-border); }
  .trust-list li:first-child { border-inline-start: 0; }
}

/* ---------- 7. Page hero & breadcrumb ---------- */
.page-hero {
  background: var(--color-surface-dark);
  color: var(--white);
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: radial-gradient(45% 80% at 85% 0%, rgba(0, 122, 73, 0.35), transparent 70%);
}
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); max-width: 24ch; }
.page-hero .lead { margin-top: 20px; max-width: 60ch; }
.page-hero .breadcrumb + h1, .page-hero .breadcrumb + .eyebrow { margin-top: 20px; }

.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 0.9375rem; color: var(--color-text-muted-on-dark); }
.breadcrumb li { display: inline-flex; align-items: center; gap: 10px; }
.breadcrumb li + li::before { content: "\2039" / ""; color: var(--color-accent-on-dark); }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 32px; }
.breadcrumb [aria-current="page"] { color: var(--white); }

/* ---------- 8. Cards & grids ---------- */
.grid-5, .grid-3, .grid-2 { list-style: none; display: grid; gap: 24px; }
@media (min-width: 768px) {
  .grid-2, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .grid-5 > li { grid-column: span 2; }
  .grid-5 > li:last-child { grid-column: 2 / span 2; }
}
@media (min-width: 1024px) {
  .grid-2, .grid-3, .grid-5 { gap: 32px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .grid-5 > li:nth-child(4) { grid-column: 2 / span 2; }
  .grid-5 > li:nth-child(5) { grid-column: 4 / span 2; }
}
.grid-5 > li, .grid-3 > li, .grid-2 > li { display: flex; }
.grid-5 > li > *, .grid-3 > li > *, .grid-2 > li > * { flex: 1; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
  transition: transform var(--dur-fast) var(--ease-std), box-shadow var(--dur-fast) var(--ease-std);
}
.card::before {
  content: "";
  position: absolute;
  top: -1px;
  inset-inline: -1px;
  height: 2px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: var(--color-accent);
  transition: height var(--dur-fast) var(--ease-std);
}
.card:hover, .card:focus-within { transform: translateY(var(--hover-lift)); box-shadow: var(--shadow-2); }
.card:hover::before, .card:focus-within::before { height: 3px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--color-text-muted); }

.card-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  border-radius: var(--radius-xs);
  background: var(--color-surface-tint);
  color: var(--color-primary);
}
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 20px;
  min-height: 48px;
  color: var(--color-link);
  font-weight: var(--fw-bold);
}
.card-link .icon { width: 20px; height: 20px; stroke-width: 1.75; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius-sm); }
.card-link:focus-visible { outline: none; }
.card-link:focus-visible::after { outline: var(--focus-outline-width) solid var(--color-focus); outline-offset: var(--focus-outline-offset); }

.card-dark { border-color: transparent; background: var(--color-surface-dark); color: var(--white); box-shadow: var(--shadow-2); }
.card-dark::before { background: var(--gold-400); }
.card-dark h3 { color: var(--white); }
.card-dark p { color: var(--color-text-muted-on-dark); }
.card-dark .card-icon { background: rgba(255, 255, 255, 0.06); color: var(--color-accent-on-dark); box-shadow: inset 0 0 0 1px rgba(216, 192, 143, 0.35); }
.card-dark .card-link { color: var(--white); }
.card-dark .card-link:hover { color: var(--gold-300); }
.card-dark .card-link:focus-visible::after { outline-color: var(--color-focus-on-dark); }

/* Problem section — situations list */
.situations-title { font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); margin-bottom: 20px; }
.situations { list-style: none; border-top: 1px solid var(--color-border); }
.situations a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding-block: 10px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 1.125rem;
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-std), padding var(--dur-fast) var(--ease-std);
}
.situations a > span { flex: 1; }
.situations .icon-check { width: 20px; height: 20px; color: var(--green-600); stroke-width: 2; }
.situations .icon-arrow { width: 20px; height: 20px; color: var(--color-accent-text); }
.situations a:hover { color: var(--color-primary); text-decoration: underline; padding-inline-start: 4px; }
.situations a:hover .icon-arrow { transform: translateX(-4px); }
.closer {
  margin-top: 28px;
  padding-inline-start: 18px;
  border-inline-start: 2px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--color-heading);
}

/* ---------- 9. Why us / values ---------- */
.why-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .why-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .why-intro { position: sticky; top: calc(var(--header-offset) + 2rem); }
}
.values { list-style: none; display: grid; gap: 0 40px; }
@media (min-width: 768px) { .values { grid-template-columns: 1fr 1fr; } }
.values li { padding-block: 28px; border-top: 1px solid var(--color-border); }
/* the last row needs no bottom padding: the section's own padding closes it (otherwise ~28px of extra empty band before the next section) */
.values li:last-child { padding-bottom: 0; }
@media (min-width: 768px) { .values li:nth-last-child(-n+2) { padding-bottom: 0; } }
.values .icon { color: var(--color-accent-text); margin-bottom: 16px; }
.values h3 { margin-bottom: 8px; }
.values p { color: var(--color-text-muted); }

/* ---------- 10. Process steps ---------- */
.steps { list-style: none; position: relative; display: grid; gap: 36px; }
.steps::before {
  content: "";
  position: absolute;
  top: 52px;
  bottom: 8px;
  inset-inline-start: 23px;
  width: 1px;
  background: var(--color-accent);
  transform-origin: 50% 0;
  transition: transform 900ms var(--ease-out);
}
.step { position: relative; padding-inline-start: 76px; }
.step-num {
  position: absolute;
  top: -4px;
  inset-inline-start: 0;
  display: block;
  min-width: 48px;
  padding-block: 4px;
  background: var(--sec-bg);
  font-family: var(--font-display);
  font-size: 2.5rem;
  line-height: 1;
  font-weight: var(--fw-regular);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--color-accent-text);
  text-align: center;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--color-text-muted); }
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(var(--steps, 3), minmax(0, 1fr)); gap: 48px; }
  .steps-4 { --steps: 4; gap: 40px; }
  .steps::before { top: 24px; bottom: auto; inset-inline: 0; width: auto; height: 1px; transform-origin: 100% 50%; }
  .step { padding-inline-start: 0; }
  .step-num { position: relative; top: 0; display: inline-block; min-width: 0; padding-inline-end: 20px; margin-bottom: 24px; text-align: start; }
}
.steps-cta { margin-top: clamp(2.5rem, 2rem + 2vw, 3.5rem); text-align: center; }
.steps-cta.btn-row { justify-content: center; }

/* ---------- 11. Case stories (illustrative — never styled as quotes) ---------- */
.case {
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-1);
}
.case-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 3px 10px;
  border: 1px solid var(--color-accent-text);
  border-radius: var(--radius-xs);
  color: var(--color-accent-text);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  line-height: 1.4;
}
.badge .icon { width: 16px; height: 16px; stroke-width: 1.75; }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 3px 10px;
  border-radius: var(--radius-xs);
  background: var(--color-surface-tint);
  color: var(--color-primary);
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  line-height: 1.4;
}
.case > p { color: var(--color-text); }
.case h3 { margin-bottom: 16px; }
.case-part + .case-part { margin-top: 16px; }
.case-part h4 { font-family: var(--font-body); font-size: 1rem; font-weight: var(--fw-bold); color: var(--color-primary); margin-bottom: 4px; }
.case-part p { color: var(--color-text-muted); }
.case .text-link { margin-top: auto; padding-top: 16px; }
.disclaimer {
  max-width: 760px;
  margin: 32px auto 0;
  color: var(--color-text-muted);
  font-size: var(--fs-xs);
  line-height: 1.6;
  text-align: center;
}
.disclaimer-box {
  display: flex;
  gap: 12px;
  max-width: 820px;
  margin: 0 auto 40px;
  padding: 16px 20px;
  border: 1px solid var(--color-border);
  border-inline-start: 2px solid var(--color-accent);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 1rem;
}
.disclaimer-box .icon { color: var(--color-accent-text); margin-top: 2px; }

/* ---------- 12. FAQ accordion ---------- */
.faq { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { margin: 0; font-family: var(--font-body); font-size: 1.25rem; font-weight: var(--fw-bold); line-height: 1.4; }
.faq-q button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  padding: 16px 0;
  border: 0;
  background: none;
  color: var(--color-text);
  font: inherit;
  text-align: start;
  transition: color var(--dur-fast) var(--ease-std);
}
.faq-q button:hover { color: var(--color-primary); }
.faq-q button[aria-expanded="true"] { color: var(--color-heading); }
.faq-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-primary);
  transition: transform var(--dur-base) var(--ease-in-out), background-color var(--dur-fast) var(--ease-std);
}
.faq-q button:hover .faq-icon { background: var(--color-surface-tint); }
.faq-q button[aria-expanded="true"] .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: grid;
  grid-template-rows: 1fr;
  transition: grid-template-rows var(--dur-base) var(--ease-in-out), opacity var(--dur-base) var(--ease-in-out), visibility 0s;
}
.faq-a-inner { min-height: 0; overflow: hidden; }
.faq-a-inner > :first-child { margin-top: 0; }
.faq-a p { max-width: var(--measure); padding-bottom: 24px; margin: 0; font-size: 1.0625rem; color: var(--color-text); }
.faq-ready .faq-item:not(.is-open) .faq-a {
  grid-template-rows: 0fr;
  opacity: 0;
  visibility: hidden;
  transition: grid-template-rows var(--dur-base) var(--ease-in-out), opacity var(--dur-base) var(--ease-in-out), visibility 0s linear var(--dur-base);
}

.faq-init .faq-a, .faq-init .faq-icon { transition: none !important; }

/* ---------- 13. Services page ---------- */
.subnav {
  position: sticky;
  top: var(--header-offset);
  z-index: calc(var(--z-sticky) - 1);
  background: rgba(250, 248, 243, 0.97);
  border-bottom: 1px solid var(--color-border);
  transition: top var(--dur-base) var(--ease-in-out);
}
.subnav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  padding: 8px 8px;
  margin-inline: -8px;
  overflow-x: auto;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.subnav ul::-webkit-scrollbar { display: none; }
/* Overflow hint: fade the tabs out toward the inline-end edge (left in RTL), where the strip scrolls.
   Extra padding-inline-end lets the last tab scroll fully clear of the fade, and scroll-padding keeps
   a keyboard-focused tab out of the faded zone. When the tabs fit, the faded zone is only that empty
   padding, so the fade appears only when there is something to scroll to. Purely visual. */
.subnav ul {
  --subnav-fade: 40px;
  padding-inline-end: calc(8px + var(--subnav-fade));
  scroll-padding-inline: var(--subnav-fade);
  -webkit-mask-image: linear-gradient(to left, transparent 0, #000 var(--subnav-fade));
  mask-image: linear-gradient(to left, transparent 0, #000 var(--subnav-fade));
}
[dir="rtl"] .subnav ul {
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--subnav-fade));
  mask-image: linear-gradient(to right, transparent 0, #000 var(--subnav-fade));
}.subnav li { flex: none; }
.subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 14px;
  border-radius: var(--radius-xs);
  color: var(--color-text);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  white-space: nowrap;
}
.subnav a::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 8px;
  height: 2px;
  background: var(--green-600);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform var(--dur-fast) var(--ease-std);
}
.subnav a:hover { color: var(--color-primary); }
.subnav a:hover::after, .subnav a[aria-current="true"]::after { transform: scaleX(1); }
.subnav a[aria-current="true"] { color: var(--color-heading); }

.anchor-target { scroll-margin-top: calc(var(--header-offset) + 80px); }

.svc-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .svc-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .svc-grid.flip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); }
  .svc-grid.flip .svc-main { grid-column: 2; grid-row: 1; }
  .svc-grid.flip .svc-aside { grid-column: 1; grid-row: 1; }
  .svc-aside { position: sticky; top: calc(var(--header-offset) + 96px); }
}
.svc-main h2 { margin-bottom: 24px; }
.svc-main h3 { margin-top: clamp(2.25rem, 2rem + 1.2vw, 3rem); margin-bottom: 18px; font-size: clamp(1.375rem, 1.2rem + 0.7vw, 1.75rem); }
.svc-main .lead { color: var(--color-text); font-size: var(--fs-lg); }

.check-list { list-style: none; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; padding-block: 12px; border-bottom: 1px solid var(--color-border); }
.check-list li:first-child { border-top: 1px solid var(--color-border); }
.check-list .icon { width: 20px; height: 20px; margin-top: 5px; color: var(--green-600); stroke-width: 2; }
.on-dark .check-list li, .bg-dark .check-list li { border-color: var(--line-dark); }

.mini-steps { list-style: none; display: grid; gap: 16px; }
@media (min-width: 768px) { .mini-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mini-steps li { padding: 20px; border: 1px solid var(--color-border); border-top: 2px solid var(--color-accent); border-radius: var(--radius-xs); background: var(--color-surface); }
.bg-white .mini-steps li { background: var(--color-bg); }
.mini-num { display: block; margin-bottom: 8px; font-family: var(--font-display); font-size: 1.5rem; line-height: 1; color: var(--color-accent-text); font-variant-numeric: tabular-nums lining-nums; }
.mini-steps h4 { font-family: var(--font-body); font-size: 1.125rem; font-weight: var(--fw-bold); margin-bottom: 6px; }
.mini-steps p { font-size: 1rem; color: var(--color-text-muted); }

.dot-list { list-style: none; display: grid; gap: 10px; }
.dot-list li { position: relative; padding-inline-start: 22px; }
.dot-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  inset-inline-start: 2px;
  width: 7px;
  height: 7px;
  background: var(--color-accent);
  transform: rotate(45deg);
}

.note {
  display: flex;
  gap: 14px;
  margin-top: 36px;
  padding: 20px 22px;
  border-inline-start: 2px solid var(--color-accent);
  border-radius: var(--radius-xs);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 1rem;
}
.bg-white .note { background: var(--color-bg); }
.note .icon { color: var(--color-primary); margin-top: 1px; }

.summary-card {
  position: relative;
  padding: clamp(1.75rem, 1.4rem + 1vw, 2.25rem);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-2);
}
.bg-white .summary-card { background: var(--color-bg); }
.summary-card::before { content: ""; position: absolute; top: -1px; inset-inline: -1px; height: 2px; background: var(--color-accent); border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.summary-card h3 { margin-bottom: 16px; }
.summary-card .check-list { margin-bottom: 24px; }
.summary-card .check-list li { font-weight: var(--fw-semibold); }
.summary-phone { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; margin-top: 12px; color: var(--color-link); font-weight: var(--fw-bold); font-size: 1.125rem; }
.summary-phone .icon { width: 20px; height: 20px; }

.refused-intro { background: var(--color-surface-dark); color: var(--white); padding-block: var(--section-y); }
.refused-intro .container { max-width: calc(880px + 2 * var(--gutter)); }
.refused-intro h2 { color: var(--white); margin-block: 16px 24px; }
.refused-intro p { color: var(--color-text-muted-on-dark); font-size: var(--fs-lg); line-height: 1.6; }
.discretion { display: flex; align-items: center; gap: 12px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); font-weight: var(--fw-semibold); color: var(--white); }
.discretion .icon { color: var(--color-accent-on-dark); }
.refused-intro .discretion { color: var(--white); font-size: 1.0625rem; }

.ref-card { scroll-margin-top: calc(var(--header-offset) + 80px); }
.ref-card h2 { font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: var(--lh-snug); margin-bottom: 20px; }
.ref-card h3 { font-family: var(--font-body); font-size: 1rem; font-weight: var(--fw-bold); letter-spacing: 0.02em; color: var(--color-primary); margin-bottom: 4px; }
.ref-card p { color: var(--color-text); }
.ref-card p + h3 { margin-top: 18px; }
.ref-card .text-link { margin-top: auto; padding-top: 16px; }
.ref-card:hover, .ref-card:focus-within { transform: none; }

.statement {
  max-width: 820px;
  margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  line-height: 1.55;
  text-align: center;
  color: var(--color-heading);
}

.doc-groups { list-style: none; display: grid; gap: 24px; }
@media (min-width: 768px) { .doc-groups { grid-template-columns: 1fr 1fr; gap: 32px; } }
.doc-groups > li { padding: 28px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: var(--color-surface); }
.doc-groups h3 { font-family: var(--font-body); font-size: var(--fs-h4); font-weight: var(--fw-bold); margin-bottom: 16px; }

/* ---------- 14. Contact / legal / 404 ---------- */
.contact-grid { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: start; }
  .details-card { position: sticky; top: calc(var(--header-offset) + 24px); }
  .contact-quick { display: none !important; }
}
.contact-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-quick .btn { padding-inline: 12px; }

.details-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem);
  border-radius: var(--radius-md);
  background: var(--color-surface-dark);
  color: var(--white);
  box-shadow: var(--shadow-3);
}
.details-card h2 { color: var(--white); font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-bottom: 24px; }
.details-card h3 { color: var(--white); font-family: var(--font-body); font-size: 1.0625rem; font-weight: var(--fw-bold); margin-bottom: 6px; }
.details-list { list-style: none; }
.details-list > li { padding-block: 16px; border-top: 1px solid var(--line-dark); }
.details-label { display: block; margin-bottom: 4px; color: var(--color-accent-on-dark); font-size: 0.9375rem; font-weight: var(--fw-semibold); }
.details-card a { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; font-weight: var(--fw-semibold); }
.details-card .icon { width: 20px; height: 20px; color: var(--color-accent-on-dark); }
.contact-big { font-family: var(--font-display); font-size: clamp(1.5rem, 1.1rem + 2vw, 2.25rem); font-weight: var(--fw-medium); line-height: 1.1; }
.details-card p { color: var(--color-text-muted-on-dark); }
.details-block { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line-dark); }
.details-block .discretion { margin: 0; padding: 0; border: 0; align-items: flex-start; font-weight: var(--fw-regular); color: var(--color-text-muted-on-dark); }

.link-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; margin-top: 40px; }

.legal-layout { display: grid; gap: 32px; }
@media (min-width: 1024px) {
  .legal-layout { grid-template-columns: minmax(0, 760px) minmax(0, 260px); gap: clamp(3rem, 6vw, 5rem); justify-content: space-between; align-items: start; }
  .legal-layout .toc { grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--header-offset) + 32px); }
  .legal-layout .prose { grid-column: 1; grid-row: 1; }
}
.toc { border: 1px solid var(--color-border); border-top: 2px solid var(--color-accent); border-radius: var(--radius-xs); background: var(--color-surface); }
.toc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 20px;
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  cursor: pointer;
  list-style: none;
}
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { width: 20px; height: 20px; transition: transform var(--dur-fast) var(--ease-std); }
.toc details[open] summary .icon { transform: rotate(180deg); }
.toc ol { list-style: none; padding: 0 20px 16px; }
.toc a { display: flex; align-items: center; min-height: 40px; padding-block: 4px; color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--color-primary); text-decoration: underline; }

.prose { max-width: 760px; }
.prose h2 { font-size: var(--fs-h3); line-height: var(--lh-snug); margin: clamp(2.5rem, 2rem + 1.5vw, 3.5rem) 0 16px; scroll-margin-top: calc(var(--header-offset) + 24px); }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--font-body); font-size: 1.25rem; font-weight: var(--fw-bold); margin: 28px 0 10px; }
.prose ul { list-style: none; display: grid; gap: 10px; margin: 0 0 1.25em; }
.prose ul > li { position: relative; padding-inline-start: 22px; }
.prose ul > li::before { content: ""; position: absolute; top: 0.72em; inset-inline-start: 2px; width: 6px; height: 6px; background: var(--color-accent); transform: rotate(45deg); }
.prose .kbd { display: inline-block; padding: 0 6px; border: 1px solid var(--color-border-input); border-radius: var(--radius-xs); background: var(--color-surface); font-weight: var(--fw-bold); font-size: 0.9375em; direction: ltr; unicode-bidi: isolate; }
.prose .updated { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--color-border); color: var(--color-text-muted); }

.data-table { width: 100%; margin: 8px 0 1.5em; border-collapse: collapse; font-size: 1rem; }
.data-table caption { text-align: start; font-weight: var(--fw-bold); margin-bottom: 8px; }
.data-table th, .data-table td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--color-border); }
.data-table thead th { background: var(--color-surface-tint); color: var(--color-heading); font-weight: var(--fw-bold); }
@media (max-width: 767.98px) {
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .data-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--color-border); }
  .data-table td { display: block; padding: 4px 0; border: 0; }
  .data-table td::before { content: attr(data-label) ": "; font-weight: var(--fw-bold); color: var(--color-heading); }
}

.notfound-links { list-style: none; display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.notfound-phone { margin-top: 20px; }
.notfound-phone a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: var(--fw-semibold); }
.notfound-phone .icon { width: 20px; height: 20px; color: var(--color-accent-on-dark); }

/* Testimonials page */
.section-tight { background: var(--sec-bg); }
.cases-h2 { margin-top: 40px; }
.tpriv-text { margin-top: 20px; color: var(--color-text); }
.bridge { border-block: 1px solid var(--color-border); }
.bridge-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.bridge-text { margin: 0; font-family: var(--font-display); font-size: clamp(1.375rem, 1.2rem + 0.8vw, 1.875rem); line-height: 1.4; color: var(--color-heading); }
@media (min-width: 1024px) {
  .bridge-inner { flex-direction: row; justify-content: space-between; text-align: start; }
}
/* Ready for real testimonials (see README) — a quote card, distinct from the illustrative case cards */
.quote-card { position: relative; background: var(--color-surface); }
.quote-card blockquote { margin: 0; }
.quote-card blockquote p { font-family: var(--font-display); font-size: clamp(1.25rem, 1.15rem + 0.4vw, 1.375rem); line-height: 1.6; color: var(--color-text); }
.quote-card blockquote::before { content: "\201D"; display: block; height: 0.6em; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--color-accent); }
.quote-card figcaption { margin-top: 20px; color: var(--color-text-muted); font-weight: var(--fw-semibold); }

/* Final CTA band */
.cta-band { background: var(--color-surface-dark); color: var(--white); padding-block: var(--section-y); }
.cta-grid { display: grid; gap: var(--space-7); }
@media (min-width: 1024px) {
  .cta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(3rem, 6vw, 6rem); align-items: center; }
}
.cta-band h2 { color: var(--white); }
.cta-band .lead { margin-top: 20px; }
.cta-points { list-style: none; display: grid; gap: 12px; margin-top: 28px; }
.cta-points li { display: flex; align-items: center; gap: 12px; font-weight: var(--fw-semibold); }
.cta-points .icon { width: 22px; height: 22px; color: var(--color-accent-on-dark); stroke-width: 1.75; }
.cta-contact { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line-dark); }
.cta-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; font-weight: var(--fw-semibold); }
.cta-contact .icon { width: 20px; height: 20px; color: var(--color-accent-on-dark); }

/* Home closing band: no form, copy + an action card that sends visitors to #lead-form */
.cta-closing-grid { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 1024px) {
  .cta-closing-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(3rem, 6vw, 6rem); }
}
.cta-actions { padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line-dark); border-radius: var(--radius-md); background: rgba(255, 255, 255, 0.04); }
.cta-actions .cta-points { margin-top: 0; }
.cta-actions .btn { margin-top: 28px; }
.cta-actions .cta-contact { margin-top: 24px; padding-top: 16px; flex-direction: column; gap: 0; }
@media (min-width: 480px) and (max-width: 1023px) {
  .cta-actions .cta-contact { flex-direction: row; flex-wrap: wrap; gap: 4px 28px; }
}

.cta-light { text-align: center; }
.cta-light h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.cta-light .form-panel { max-width: 640px; margin: 32px auto 0; text-align: start; }

/* Footer */
.site-footer {
  position: relative;
  background: var(--color-surface-dark);
  color: var(--color-text-muted-on-dark);
  border-top: 1px solid var(--gold-500);
  padding-top: clamp(3.5rem, 2.5rem + 3vw, 5.5rem);
  padding-bottom: calc(var(--bar-h) + 40px + env(safe-area-inset-bottom));
  font-size: 1rem;
}
@media (min-width: 768px) { .site-footer { padding-bottom: 112px; } }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.25fr 1.25fr; } }
/* The full logo has dark text, so on the green footer it sits on an ivory plaque with a gold hairline */
.footer-plaque {
  display: inline-block;
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px rgba(184, 151, 90, 0.55), 0 0 0 4px rgba(216, 192, 143, 0.08);
}
.footer-plaque img { width: 240px; height: auto; }
.footer-about { margin-top: 24px; max-width: 34em; }
.footer-col h2 { margin-bottom: 12px; font-family: var(--font-body); font-size: 1rem; font-weight: var(--fw-bold); letter-spacing: 0.04em; color: var(--white); }
.footer-links { list-style: none; }
.footer-links a, .footer-contact a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--color-text-muted-on-dark); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--white); text-decoration: underline; }
.footer-contact { list-style: none; }
.footer-contact li { display: flex; flex-wrap: wrap; align-items: center; column-gap: 6px; }
.footer-contact .label { color: var(--white); font-weight: var(--fw-semibold); }
.footer-contact .icon { width: 18px; height: 18px; color: var(--color-accent-on-dark); }
.footer-contact .plain { display: inline-flex; align-items: center; min-height: 44px; }
.legal-row { display: grid; gap: 14px; margin-top: clamp(3rem, 2.5rem + 2vw, 4rem); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.loan-warning { margin: 0; color: var(--white); font-size: 1rem; font-weight: var(--fw-semibold); }
.legal-row p { font-size: var(--fs-xs); }
.legal-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: var(--fs-xs); }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--white); }

/* ---------- 15. Forms ---------- */
.form-panel {
  position: relative;
  padding: clamp(1.5rem, 1rem + 1.5vw, 2rem);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-3);
}
.form-panel::before { content: ""; position: absolute; top: 0; inset-inline: 28px; height: 2px; background: var(--color-accent); }
.form-panel.flat { box-shadow: var(--shadow-2); border: 1px solid var(--color-border); }
.form-title { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); line-height: var(--lh-snug); color: var(--color-heading); }
.form-sub { margin-top: 6px; color: var(--color-text-muted); }
.form-legend { margin: 12px 0 0; color: var(--color-text-muted); font-size: var(--fs-xs); }

.lead-form .fields { display: grid; gap: 14px; margin-top: 12px; }
/* the Turnstile slot stays empty unless a site key is configured: don't let it add a grid gap */
.cf-turnstile-slot:empty { display: none; }
.two-up { display: grid; gap: 20px; }
@media (min-width: 480px) { .two-up { grid-template-columns: 1fr 1fr; } }

.field label, .field .label { display: block; margin-bottom: 6px; color: var(--color-text); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: var(--lh-ui); }
.req { margin-inline-start: 2px; color: var(--color-text); }
.optional { color: var(--color-text-muted); font-weight: var(--fw-regular); }
.hint { margin: 4px 0 0; color: var(--color-text-muted); font-size: var(--fs-xs); line-height: 1.5; }

.input, .select, .textarea {
  display: block;
  width: 100%;
  min-height: var(--input-height);
  padding: 14px 16px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--color-text);
  font-size: 1.125rem;
  line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease-std), box-shadow var(--dur-fast) var(--ease-std);
}
.textarea { min-height: 128px; resize: vertical; }
.input[dir="ltr"] { text-align: right; }
.input::placeholder, .textarea::placeholder { color: #66706A; opacity: 1; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--color-text-muted); }
.input:focus-visible, .select:focus-visible, .textarea:focus-visible { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); outline-offset: 2px; }
.select-wrap { position: relative; }
.select { padding-inline-end: 48px; appearance: none; -webkit-appearance: none; cursor: pointer; }
.select-wrap .icon { position: absolute; top: 50%; inset-inline-end: 16px; width: 20px; height: 20px; margin-top: -10px; color: var(--color-text-muted); pointer-events: none; }

.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--error); box-shadow: inset 0 0 0 1px var(--error); }
.field-error { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: var(--error); font-size: 0.9375rem; font-weight: var(--fw-semibold); line-height: 1.45; }
.field-error .icon { width: 18px; height: 18px; margin-top: 2px; stroke-width: 2; }
.counter { margin: 6px 0 0; color: var(--color-text-muted); font-size: var(--fs-xs); }

.notice { margin: 0; color: var(--color-text-muted); font-size: var(--fs-xs); line-height: 1.55; }
.checks { display: grid; gap: 4px; }
.check { display: flex; align-items: flex-start; gap: 12px; min-height: 48px; padding-block: 4px; color: var(--color-text); font-size: 0.9375rem; line-height: 1.55; cursor: pointer; }
.field label.check { display: flex; margin-bottom: 0; font-size: 0.9375rem; font-weight: var(--fw-regular); line-height: 1.55; }
.check input {
  display: grid;
  place-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 1.5px solid var(--color-border-input);
  border-radius: var(--radius-xs);
  background: var(--white);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std);
}
.check input::before {
  content: "";
  width: 12px;
  height: 7px;
  border: solid var(--white);
  border-width: 0 0 2.5px 2.5px;
  transform: translateY(-2px) rotate(-45deg);
  opacity: 0;
}
.check input:checked { background: var(--color-primary); border-color: var(--color-primary); }
.check input:checked::before { opacity: 1; }
.check input:hover { border-color: var(--color-text-muted); }
.check input:focus-visible { outline: var(--focus-outline-width) solid var(--color-focus); outline-offset: 2px; }
.field.has-error .check input { border-color: var(--error); border-width: 2px; }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }

.submit-wrap { margin-top: 4px; }
.btn-submit .spinner { display: none; width: 20px; height: 20px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: var(--white); border-radius: 50%; animation: spin 0.8s linear infinite; }
.btn-submit.is-loading { cursor: progress; }
.btn-submit.is-loading .spinner { display: inline-block; }
.btn-submit.is-loading .icon-arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-meta { display: grid; gap: 8px; margin-top: 12px; }
.privacy-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 0; color: var(--color-text-muted); font-size: var(--fs-xs); }
.privacy-line .icon { width: 16px; height: 16px; stroke-width: 1.75; color: var(--color-primary); }
.form-warning { margin: 0; padding-top: 10px; border-top: 1px solid var(--color-border); color: var(--color-text); font-size: var(--fs-xs); line-height: 1.6; text-align: center; }

.error-summary { margin-top: 20px; padding: 16px 20px; border-inline-start: 4px solid var(--error); border-radius: var(--radius-xs); background: var(--error-bg); color: var(--color-text); }
.error-summary h3, .error-summary .summary-title { margin: 0 0 8px; font-family: var(--font-body); font-size: 1.0625rem; font-weight: var(--fw-bold); color: var(--error); }
.error-summary ul { list-style: none; display: grid; gap: 4px; }
.error-summary a { color: var(--error); font-weight: var(--fw-semibold); }

.form-fail.is-shown { margin-top: 20px; padding: 18px 20px; border-inline-start: 4px solid var(--error); border-radius: var(--radius-xs); background: var(--error-bg); color: var(--color-text); }
.form-fail p { margin: 0 0 8px; }
.form-fail .fail-links { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 4px 0 12px; }
.form-fail .fail-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: var(--fw-bold); color: var(--green-800); }
.form-fail .fail-links .icon { width: 18px; height: 18px; }
.form-fail .btn { min-height: 48px; }

.form-success { padding: 12px 0; text-align: center; }
.form-success:focus { outline: none; }
.success-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--success-bg); color: var(--success); }
.success-icon .icon { width: 32px; height: 32px; stroke-width: 2; }
.form-success h3, .form-success h2 { font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.875rem); margin-bottom: 12px; }
.form-success p { color: var(--color-text-muted); }
.form-success.is-shown { animation: fade-in var(--dur-base) var(--ease-std) both; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- 16. Floating contact ---------- */
.mobile-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: var(--z-fab);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  min-height: var(--bar-h);
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: 0 -4px 14px rgba(0, 48, 29, 0.08);
}
.mobile-bar .btn { min-height: 48px; padding-inline: 12px; }
.fab-wa { display: none; }
@media (min-width: 768px) {
  .mobile-bar { display: none; }
  .fab-wa {
    position: fixed;
    bottom: 24px;
    inset-inline-end: 24px;
    z-index: var(--z-fab);
    display: grid;
    place-items: center;
    width: var(--fab-size);
    height: var(--fab-size);
    border-radius: var(--radius-pill);
    background: var(--color-primary);
    color: var(--white);
    box-shadow: var(--shadow-float);
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s, background-color var(--dur-fast) var(--ease-std);
  }
  .fab-wa:hover { background: var(--color-primary-hover); color: var(--white); }
  .fab-wa .icon { width: 28px; height: 28px; }
  .fab-wa.is-hidden { opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out), visibility 0s linear var(--dur-base); }
  .fab-tip {
    position: absolute;
    top: 50%;
    inset-inline-end: calc(100% + 12px);
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    background: var(--green-950);
    color: var(--white);
    font-size: 0.9375rem;
    font-weight: var(--fw-semibold);
    white-space: nowrap;
    box-shadow: var(--shadow-2);
    opacity: 0;
    transform: translate(-4px, -50%);
    pointer-events: none;
    transition: opacity var(--dur-fast) var(--ease-std), transform var(--dur-fast) var(--ease-std);
  }
  .fab-wa:hover .fab-tip, .fab-wa:focus-visible .fab-tip { opacity: 1; transform: translate(0, -50%); }
}
.nav-open :is(.mobile-bar, .fab-wa, .a11y-trigger) { visibility: hidden; }

/* ---------- 17. Accessibility toolbar ---------- */
.a11y-trigger {
  position: fixed;
  bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom));
  inset-inline-start: 16px;
  z-index: var(--z-a11y);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--color-surface-dark);
  color: var(--white);
  box-shadow: 0 0 0 1.5px var(--gold-400), var(--shadow-float);
  transition: background-color var(--dur-fast) var(--ease-std), transform var(--dur-fast) var(--ease-std);
}
.a11y-trigger:hover { background: var(--green-800); transform: translateY(-1px); }
.a11y-trigger .icon { width: 30px; height: 30px; stroke-width: 1.6; }
html:not(.js) .a11y-trigger { display: none; }
/* Phones: right-aligned Hebrew lines start at the right edge, so the button sits at the left (inline end),
   above the call/WhatsApp bar, where it covers only ragged line ends. */
@media (max-width: 767.98px) {
  .a11y-trigger { inset-inline-start: auto; inset-inline-end: 12px; }
}
@media (min-width: 768px) {
  .a11y-trigger { bottom: 28px; inset-inline-start: 24px; }
}
/* Tablets / narrow laptops: the side margin is too small, so the right-corner button would sit on the
   start of text lines. Stack it above the WhatsApp button at the left instead. */
@media (min-width: 768px) and (max-width: 1359.98px) {
  .a11y-trigger { inset-inline-start: auto; inset-inline-end: 28px; bottom: 100px; }
}

.a11y-panel {
  position: fixed;
  bottom: calc(var(--bar-h) + 88px + env(safe-area-inset-bottom));
  inset-inline: 16px;
  z-index: var(--z-modal);
  /* stays below the sticky header: viewport − bottom bar − trigger area − header − gap */
  max-height: calc(100vh - var(--bar-h) - 88px - var(--header-offset) - 12px - env(safe-area-inset-bottom));
  max-height: calc(100dvh - var(--bar-h) - 88px - var(--header-offset) - 12px - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 20px 20px 16px;
  border-top: 2px solid var(--color-accent);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-3), 0 0 0 1px var(--color-border);
  font-size: 1rem;
}
.a11y-panel.is-open { animation: panel-in var(--dur-base) var(--ease-in-out) both; }
@keyframes panel-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (min-width: 768px) {
  .a11y-panel { inset-inline-start: 24px; inset-inline-end: auto; bottom: 96px; width: 344px; max-height: calc(100vh - 112px - var(--header-offset)); max-height: calc(100dvh - 112px - var(--header-offset)); }
}
@media (min-width: 768px) and (max-width: 1359.98px) {
  .a11y-panel { inset-inline-start: auto; inset-inline-end: 24px; bottom: 168px; max-height: calc(100vh - 184px - var(--header-offset)); max-height: calc(100dvh - 184px - var(--header-offset)); }
}
.a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.a11y-head h2 { font-size: 1.5rem; }
.a11y-close { border-color: var(--color-border); }
.a11y-intro { margin: 8px 0 12px; color: var(--color-text-muted); font-size: 0.9375rem; line-height: 1.5; }
.a11y-list { list-style: none; }
.a11y-list > li { border-top: 1px solid var(--color-border); }
.a11y-row { display: flex; align-items: center; gap: 12px; min-height: 60px; }
.a11y-row > .icon, .a11y-switch > .icon { color: var(--color-primary); }
.a11y-row .a11y-label { flex: 1; font-weight: var(--fw-semibold); }
.a11y-size { display: flex; align-items: center; gap: 8px; }
.a11y-size .icon-btn { width: 44px; height: 44px; }
.a11y-size .icon-btn[aria-disabled="true"] { color: var(--stone); background: var(--color-surface-tint); cursor: not-allowed; }
.a11y-status { min-width: 4.25em; text-align: center; font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold); color: var(--color-text-muted); font-size: 0.9375rem; }
.a11y-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 60px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--color-text);
  text-align: start;
}
.a11y-switch .a11y-label { flex: 1; font-weight: var(--fw-semibold); }
.a11y-state { min-width: 2.75em; color: var(--color-text-muted); font-size: 0.875rem; font-weight: var(--fw-semibold); text-align: end; }
.a11y-track { position: relative; flex: none; width: 46px; height: 26px; border: 1.5px solid var(--color-border-input); border-radius: var(--radius-pill); background: var(--color-surface); transition: background-color var(--dur-fast) var(--ease-std), border-color var(--dur-fast) var(--ease-std); }
.a11y-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 17px; height: 17px; border-radius: 50%; background: var(--stone); transition: transform var(--dur-fast) var(--ease-std), background-color var(--dur-fast) var(--ease-std); }
.a11y-switch[aria-checked="true"] .a11y-track { background: var(--color-primary); border-color: var(--color-primary); }
.a11y-switch[aria-checked="true"] .a11y-track::after { background: var(--white); transform: translateX(-20px); }
.a11y-switch[aria-checked="true"] .a11y-state { color: var(--color-primary); }
.a11y-switch:hover .a11y-label { color: var(--color-primary); }
.a11y-foot { display: grid; gap: 4px; margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.a11y-foot .btn { min-height: 48px; }
.a11y-foot .text-link { justify-content: center; }
.a11y-live { min-height: 1.5em; margin: 0; text-align: center; color: var(--color-primary); font-size: 0.875rem; font-weight: var(--fw-semibold); }

/* ---------- 17b. v2 components: photos, illustrations, calculator, carousel (design/redesign-v2.md) ---------- */
/* Photos without text: muted filter + decorative tint + gold hairline frame. Missing files: the wrapper
   colour stays and the broken-image icon is hidden (JS sets data-failed on error). */
img:not([src]), img[data-failed] { visibility: hidden; }
.photo-frame::after,
.card-media::after,
.form-split-media::after,
.refused-media::after,
.svc-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--photo-tint);
  box-shadow: var(--photo-frame);
  pointer-events: none;
}

/* Problem section: path illustration row (decorative; the caption is real text) */
.path-figure { max-width: 640px; margin: 0 auto clamp(2.5rem, 1.5rem + 3vw, 4rem); text-align: center; }
.path-figure img { width: 100%; height: auto; aspect-ratio: 480 / 200; }
.path-figure figcaption {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--color-accent);
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 1.1rem + 0.4vw, 1.375rem);
  line-height: 1.5;
  color: var(--color-heading);
}
.path-figure-wide { max-width: 680px; }

/* Services: photo cards */
.card-photo { padding: 0; overflow: hidden; }
.card-photo::before { display: none; }
.card-media { position: relative; aspect-ratio: var(--ratio-card); overflow: hidden; background: var(--photo-bg-light); }
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  filter: var(--photo-filter);
  transition: transform var(--dur-photo) var(--ease-out);
}
.card-media-business img { object-position: 50% 35%; }
.card-media-mortgage img, .card-media-family img { object-position: 50% 40%; }
.card-photo:hover .card-media img, .card-photo:focus-within .card-media img { transform: scale(var(--photo-zoom-hover)); }
.card-body {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 clamp(1.5rem, 1.2rem + 1vw, 2rem) clamp(1.5rem, 1.2rem + 1vw, 2rem);
  border-top: 2px solid var(--color-accent);
}
.card-photo .card-icon {
  position: relative;
  z-index: 1;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  margin-bottom: 18px;
  background: var(--green-50);
  box-shadow: var(--shadow-1);
}
.card-photo .card-icon .icon-xl { width: 30px; height: 30px; stroke-width: 1.1; }
.card-photo.card-dark .card-body { border-top-color: var(--gold-400); }
.card-photo.card-dark .card-icon { background: var(--green-800); }

/* Home: main lead form + side photo */
.form-split { display: grid; gap: 20px; }
.form-split-aside { order: -1; display: grid; gap: 16px; }
.form-split-media {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--photo-radius);
  background: var(--photo-bg-light);
}
.form-split-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: var(--photo-filter); }
.reassure {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-2);
}
.reassure-icon { width: 24px; height: 24px; margin-top: 2px; color: var(--color-primary); }
.reassure ul { list-style: none; display: grid; gap: 6px; }
.reassure li { position: relative; padding-inline-start: 16px; font-weight: var(--fw-semibold); line-height: 1.45; color: var(--color-text); }
.reassure li::before { content: ""; position: absolute; top: 0.6em; inset-inline-start: 0; width: 6px; height: 6px; background: var(--color-accent); transform: rotate(45deg); }
@media (max-width: 399.98px) {
  .form-split-media { display: none; }
}
@media (min-width: 1024px) {
  .form-split { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 5vw, 4.5rem); align-items: stretch; }
  .form-split-aside { order: 0; position: relative; display: block; }
  .form-split-media { height: 100%; min-height: 520px; max-height: none; aspect-ratio: auto; }
  .reassure { position: absolute; bottom: 24px; inset-inline-start: -24px; max-width: 330px; }
}

/* Process: 4 illustrated steps (home + services) */
.steps-ill { list-style: none; position: relative; display: grid; gap: 36px; }
.steps-ill::before {
  content: "";
  position: absolute;
  top: 20px;
  bottom: 20px;
  inset-inline-start: 19.5px;
  width: 1px;
  background: var(--color-accent);
  transform-origin: 50% 0;
  transition: transform 900ms var(--ease-out);
}
.step-ill { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 16px; }
.step-ill-num {
  position: relative;
  z-index: 1;
  grid-column: 1;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--gold-500);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums lining-nums;
  color: var(--gold-700);
}
.step-ill-art { grid-column: 2; grid-row: 1; width: 112px; }
.step-ill-art img { width: 100%; height: auto; }
.step-ill-text { grid-column: 2; grid-row: 2; margin-top: 8px; }
.step-ill h3 { margin-bottom: 8px; }
.step-ill p { color: var(--color-text-muted); }
@media (min-width: 768px) {
  .steps-ill { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 40px; }
  .steps-ill::before { display: none; }
  .step-ill { display: flex; flex-direction: column; align-items: center; text-align: center; }
  .step-ill-art { display: grid; place-items: center; width: 100%; max-width: 220px; height: 165px; }
  .step-ill-art img { max-height: 165px; width: auto; max-width: 100%; }
  .step-ill-num { margin-block: 20px; }
  .step-ill-text { margin-top: 0; max-width: 34ch; }
}
@media (min-width: 1024px) {
  .steps-ill { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  /* the hairline runs through the numeral circles: art 165 + margin 20 + half circle 20 */
  .steps-ill::before { display: block; top: 205px; bottom: auto; inset-inline: 0; width: auto; height: 1px; transform-origin: 100% 50%; }
}

/* Why us: shield illustration */
.why-shield { width: 120px; height: 120px; margin-bottom: 20px; }

/* Payment simulator */
.calc-card {
  display: grid;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-1);
}
.bg-ivory .calc-card { background: var(--color-surface); }
.calc { min-width: 0; padding: clamp(1.25rem, 0.8rem + 2vw, 2.5rem); }
.calc fieldset { display: grid; gap: 28px; min-width: 0; margin: 0; padding: 0; border: 0; }
.calc-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; }
.calc-row label { color: var(--color-text); font-size: 1.0625rem; font-weight: var(--fw-semibold); line-height: var(--lh-ui); }
.calc-num { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.calc-num-unit { order: 2; min-width: 1.25em; color: var(--color-text-muted); font-weight: var(--fw-semibold); }
.calc-input {
  flex: 0 1 auto;
  width: 9.5rem;
  min-width: 0;
  height: 48px;
  padding: 0 12px;
  border: 1px solid var(--color-border-input);
  border-radius: var(--radius-xs);
  background: var(--white);
  color: var(--color-heading);
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: var(--fw-medium);
  font-variant-numeric: tabular-nums lining-nums;
  text-align: right;
  transition: border-color var(--dur-fast) var(--ease-std), box-shadow var(--dur-fast) var(--ease-std);
}
.calc-input:hover { border-color: var(--color-text-muted); }
.calc-input:focus-visible { border-color: var(--color-primary); box-shadow: inset 0 0 0 1px var(--color-primary); outline-offset: 2px; }
.calc-hint { margin: 4px 0 0; color: var(--color-text-muted); font-size: var(--fs-xs); line-height: 1.5; }

.calc-range {
  --fill: 0%;
  display: block;
  width: 100%;
  height: 48px;
  margin: 4px 0 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
.calc-range::-webkit-slider-runnable-track {
  height: var(--range-track-h);
  border-radius: var(--radius-pill);
  /* RTL: the minimum is at the right, so the filled part grows from the right */
  background: linear-gradient(to left, var(--range-fill) var(--fill), var(--range-track) var(--fill));
}
.calc-range::-moz-range-track {
  height: var(--range-track-h);
  border-radius: var(--radius-pill);
  background: linear-gradient(to left, var(--range-fill) var(--fill), var(--range-track) var(--fill));
}
.calc-range::-webkit-slider-thumb {
  width: var(--range-thumb);
  height: var(--range-thumb);
  margin-top: calc((var(--range-track-h) - var(--range-thumb)) / 2);
  border: 2px solid var(--range-thumb-border);
  border-radius: 50%;
  background: var(--range-thumb-bg);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-fast) var(--ease-std);
  -webkit-appearance: none;
  appearance: none;
}
.calc-range::-moz-range-thumb {
  box-sizing: border-box;
  width: var(--range-thumb);
  height: var(--range-thumb);
  border: 2px solid var(--range-thumb-border);
  border-radius: 50%;
  background: var(--range-thumb-bg);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-fast) var(--ease-std);
}
.calc-range:hover::-webkit-slider-thumb, .calc-range:active::-webkit-slider-thumb { transform: scale(1.1); }
.calc-range:hover::-moz-range-thumb, .calc-range:active::-moz-range-thumb { transform: scale(1.1); }
.calc-range:focus-visible { outline: var(--focus-outline-width) solid var(--color-focus); outline-offset: 2px; border-radius: var(--radius-xs); }
.calc-scale { display: flex; justify-content: space-between; gap: 12px; margin-top: -6px; color: var(--color-text-muted); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.calc-note:empty { display: none; }
.calc-note { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: var(--color-text-muted); font-size: 0.9375rem; font-weight: var(--fw-semibold); line-height: 1.45; }
.calc-note .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent-text); stroke-width: 2; }

.calc-sum, .calc-details { background: var(--color-surface-dark); color: var(--white); }
.calc-sum { padding: 20px clamp(1.5rem, 1rem + 2vw, 2rem) 12px; }
.calc-sum-label { margin: 0; color: var(--color-text-muted-on-dark); font-size: var(--fs-sm); font-weight: var(--fw-semibold); }
.calc-monthly {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: var(--fw-medium);
  line-height: 1.1;
  color: var(--white);
  font-variant-numeric: tabular-nums lining-nums;
}
.calc-cur { margin-inline-end: 0.12em; font-size: 0.62em; }
.calc-details { padding: 4px clamp(1.5rem, 1rem + 2vw, 2rem) clamp(1.5rem, 1rem + 2vw, 2rem); border-radius: 0 0 var(--radius-md) var(--radius-md); }
.calc-cta-lead { margin: 0 0 12px; padding-top: 16px; border-top: 1px solid var(--gold-500); color: var(--white); font-weight: var(--fw-semibold); }
.calc-micro { margin: 12px 0 0; color: var(--color-text-muted-on-dark); font-size: var(--fs-xs); text-align: center; }
.calc-disclaimer { display: flex; gap: 8px; margin: 16px 0 0; padding-top: 16px; border-top: 1px solid var(--line-dark); color: var(--color-text-muted-on-dark); font-size: var(--fs-xs); line-height: 1.6; }
.calc-disclaimer .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--color-accent-on-dark); }
.calc-warning { margin: 10px 0 0; color: var(--white); font-size: var(--fs-xs); font-weight: var(--fw-semibold); line-height: 1.6; }
/* Phones/tablets: controls first; the monthly figure sticks to the bottom of the screen while the
   controls are in view (above the call/WhatsApp bar), so the number changes in sight while dragging. */
@media (max-width: 1023.98px) {
  .calc-sum {
    position: sticky;
    bottom: calc(var(--bar-h) + env(safe-area-inset-bottom));
    z-index: 2;
    box-shadow: 0 -8px 18px rgba(0, 48, 29, 0.16);
  }
  .calc-monthly { font-size: clamp(2rem, 1.6rem + 2vw, 2.75rem); }
  /* keyboard focus scrolled into view must clear the sticky result (and the call bar below it) */
  .calc :is(.calc-input, .calc-range) { scroll-margin-bottom: 150px; }
}
@media (min-width: 768px) and (max-width: 1023.98px) {
  .calc-sum { bottom: 0; }
}
@media (min-width: 1024px) {
  .calc-card { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-rows: auto 1fr; overflow: hidden; }
  .calc { grid-column: 1; grid-row: 1 / span 2; padding: 40px; }
  .calc-sum { grid-column: 2; grid-row: 1; padding: 32px 32px 16px; }
  .calc-details { grid-column: 2; grid-row: 2; padding: 4px 32px 32px; border-radius: 0; }
}

/* Carousels (cases, services): native scroll-snap, no autoplay. One component; each carousel only sets
   --slide-w (the slide width, % of the track's content box = the container width). In RTL the first slide
   sits on the right and the track scrolls leftward. The track bleeds out to the edges of the screen so the
   next card peeks right up to the edge; equal padding + scroll-padding keep the first card aligned with
   the text. The bleed is measured with container units on the section (exact, unlike 100vw, which
   includes the scrollbar); older browsers fall back to bleeding into the gutter only. */
.carousel {
  --slide-w: calc(100% - var(--carousel-peek));                      /* mobile: one card + peek */
  --track-pad: var(--gutter);
  position: relative;
}
@supports (width: 1cqw) and selector(:has(*)) {
  section:has(.carousel) { container-type: inline-size; }
  /* = the space between the container's content box and the screen edge */
  .carousel { --track-pad: max(var(--gutter), (100cqw - var(--container)) / 2); }
}
@media (min-width: 768px) {
  .carousel { --slide-w: calc((100% - 2 * var(--carousel-gap)) * 0.42); }   /* tablet: two cards + peek */
}
@media (min-width: 1024px) {
  .carousel { --slide-w: calc((100% - 2 * var(--carousel-gap)) / 3); }      /* desktop: three cards */
  .carousel-services { --slide-w: calc((100% - 3 * var(--carousel-gap)) * 0.31); }   /* three cards + peek */
}
.carousel-track {
  list-style: none;
  display: flex;
  gap: var(--carousel-gap);
  margin: -12px calc(-1 * var(--track-pad)) -8px;
  padding: 12px var(--track-pad) 20px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--track-pad);
  scrollbar-width: thin;
  scrollbar-color: var(--gold-500) transparent;
}
.carousel-track:focus-visible { outline: var(--focus-outline-width) solid var(--color-focus); outline-offset: -4px; }
.carousel-slide { display: flex; flex: 0 0 var(--slide-w); min-width: 0; scroll-snap-align: start; }
.carousel-slide > * { flex: 1; min-width: 0; }   /* equal-height cards: every slide stretches to the tallest */
.carousel.is-static .carousel-track { overflow-x: visible; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 16px; }
@media (min-width: 768px) { .carousel-controls { gap: 16px; margin-top: 20px; } }
.carousel-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--green-700);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--green-700);
  transition: background-color var(--dur-fast) var(--ease-std), color var(--dur-fast) var(--ease-std);
}
.carousel-btn:hover { background: var(--green-50); color: var(--green-800); }
.carousel-btn .icon { width: 20px; height: 20px; stroke-width: 1.75; }
@media (min-width: 768px) {
  .carousel-btn { width: 48px; height: 48px; }
  .carousel-btn .icon { width: 22px; height: 22px; }
}
.carousel-prev .icon { transform: scaleX(-1); } /* the sprite arrow points left (forward in RTL) */
.carousel-btn[aria-disabled="true"] { border-color: var(--color-border); background: var(--white); color: var(--stone); cursor: not-allowed; }
html:not(.a11y-high-contrast) .carousel-btn[aria-disabled="true"]:hover { background: var(--white); color: var(--stone); }
/* fixed width so the buttons don't shift when the text changes ("שירות 1 מתוך 5" / "שירותים 1–3 מתוך 5") */
.carousel-btn { flex: none; }   /* never squeezed by a long status (150% text) */
.carousel-status { min-width: min(8em, 100% - 120px); margin: 0; color: var(--color-text-muted); font-size: 1rem; text-align: center; font-variant-numeric: tabular-nums; }
.carousel[data-carousel-many] .carousel-status { min-width: min(10.5em, 100% - 120px); }
.case-art { display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px; overflow: hidden; border-radius: 50%; background: var(--sand); }
.case-art img { width: 84px; max-width: none; height: auto; }

/* Services: photo banner per product section */
.svc-section { padding-top: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.svc-banner { position: relative; margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 3rem); }
.svc-banner-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--photo-radius); background: var(--photo-bg-light); }
.svc-banner-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; filter: var(--photo-filter); }
.svc-banner-business img { object-position: 50% 35%; }
.svc-banner-mortgage img, .svc-banner-family img { object-position: 50% 40%; }
.svc-banner-text { margin-top: 28px; }
@media (min-width: 768px) {
  /* Text over the photo. The text block carries its own overlay: ≥0.86 green-950 under every line,
     fading out above it, so it holds whatever the line count or text size. The banner grows with it. */
  .svc-banner {
    display: grid;
    align-content: end;
    min-height: min(420px, calc((100vw - 2 * var(--gutter)) * 0.4286));
    overflow: hidden;
    isolation: isolate;
    border-radius: var(--photo-radius);
    background: var(--photo-bg);
  }
  .svc-banner::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--photo-frame); pointer-events: none; }
  .svc-banner-media { position: absolute; inset: 0; z-index: -1; aspect-ratio: auto; border-radius: 0; }
  .svc-banner-media::after { display: none; }
  .svc-banner-text {
    position: relative;
    margin: 0;
    padding: 80px var(--space-7) var(--space-6);
    background: linear-gradient(to top, rgba(0, 48, 29, 0.92) 0%, rgba(0, 48, 29, 0.86) calc(100% - 80px), rgba(0, 48, 29, 0.3) calc(100% - 28px), rgba(0, 48, 29, 0) 100%);
  }
  .svc-banner-text h2 { max-width: 40ch; color: var(--white); }
  .svc-banner-text .eyebrow { color: var(--color-accent-on-dark); }
  .svc-banner-text .eyebrow::before { background: var(--gold-500); }
}

/* Services: bank-refused intro split with photo */
.refused-intro .refused-split { display: grid; gap: var(--space-7); max-width: calc(var(--container) + 2 * var(--gutter)); }
.refused-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--photo-radius); background: var(--photo-bg); }
.refused-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; filter: var(--photo-filter); }
@media (min-width: 1024px) {
  .refused-intro .refused-split { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(3rem, 6vw, 5rem); }
}

/* ---------- 18. Motion: reveal + hero entrance ---------- */
.reveal-ready .reveal { transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.reveal-ready .reveal:not(.is-in) { opacity: 0; transform: translateY(var(--reveal-distance)); }
.reveal-ready .stagger > .reveal:nth-child(2) { transition-delay: calc(var(--reveal-stagger) * 1); }
.reveal-ready .stagger > .reveal:nth-child(3) { transition-delay: calc(var(--reveal-stagger) * 2); }
.reveal-ready .stagger > .reveal:nth-child(4) { transition-delay: calc(var(--reveal-stagger) * 3); }
.reveal-ready .stagger > .reveal:nth-child(n+5) { transition-delay: calc(var(--reveal-stagger) * 4); }
.reveal-ready .reveal:not(.is-in) .eyebrow::before,
.reveal-ready .reveal:not(.is-in) .eyebrow::after { transform: scaleX(0); }
/* Process line draws with the first step's reveal (mobile: top→down; desktop: right→left) */
.reveal-ready .steps:has(> .step:first-child:not(.is-in))::before { transform: scaleY(0); }
@media (min-width: 1024px) {
  .reveal-ready .steps:has(> .step:first-child:not(.is-in))::before { transform: scaleX(0); }
}
html.a11y-no-motion .reveal { opacity: 1 !important; transform: none !important; }
html.a11y-no-motion .steps::before, html.a11y-no-motion .reveal .eyebrow::before, html.a11y-no-motion .reveal .eyebrow::after { transform: none !important; }
/* v2: illustrations settle in with their step; the hairline draws through the numerals; banner text follows its photo */
.reveal-ready .step-ill-art { transition: transform 700ms var(--ease-out); }
.reveal-ready .step-ill:not(.is-in) .step-ill-art { transform: scale(0.96); }
.reveal-ready .steps-ill:has(> .step-ill:first-child:not(.is-in))::before { transform: scaleY(0); }
@media (min-width: 1024px) {
  .reveal-ready .steps-ill:has(> .step-ill:first-child:not(.is-in))::before { transform: scaleX(0); }
}
.reveal-ready .svc-banner-text { transition: opacity var(--dur-slow) var(--ease-out) 120ms, transform var(--dur-slow) var(--ease-out) 120ms; }
.reveal-ready .svc-banner:not(.is-in) .svc-banner-text { opacity: 0; transform: translateY(16px); }
html.a11y-no-motion :is(.step-ill-art, .svc-banner-text) { transform: none !important; }
html.a11y-no-motion .svc-banner-text { opacity: 1 !important; }
html.a11y-no-motion .steps-ill::before { transform: none !important; }

@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.js .rise { animation: rise var(--dur-slow) var(--ease-out) both; }
.js .rise-1 { animation-delay: 120ms; }
.js .rise-2 { animation-delay: 240ms; }
.js .rise-3 { animation-delay: 360ms; }
/* LCP guard (SEO audit H2): the hero H1 and lead text move but never start at opacity 0,
   so they are painted (and counted for LCP) on the first frame. */
@keyframes rise-lcp { from { transform: translateY(16px); } to { transform: none; } }
.js .page-hero h1.rise, .js .hero h1.rise,
.js .page-hero .lead.rise, .js .hero .hero-sub.rise { animation-name: rise-lcp; animation-delay: 0ms; }
@media (prefers-reduced-motion: reduce) {
  .js .page-hero h1.rise, .js .hero h1.rise,
  .js .page-hero .lead.rise, .js .hero .hero-sub.rise { animation: none; }
  .js .rise, .js .hero-img, .a11y-panel.is-open, .form-success.is-shown, .btn-submit .spinner { animation: none; }
  /* static "busy" ring instead of a spinning one; the label "בשליחה…" carries the state */
  .btn-submit .spinner { border-top-color: rgba(255, 255, 255, 0.35); }
}

/* ---------- 19. High contrast (toolbar) ---------- */
html.a11y-high-contrast body { background: #FFFFFF; color: #000000; }
html.a11y-high-contrast .site-header::before { background: #FFFFFF; border-bottom-color: #000000; -webkit-backdrop-filter: none; backdrop-filter: none; }
html.a11y-high-contrast .subnav { background: #FFFFFF; border-bottom-color: #000000; }
html.a11y-high-contrast :is(.textured::after, .page-hero::before) { display: none; }
html.a11y-high-contrast :is(.hero, .page-hero, .cta-band, .refused-intro, .site-footer, .details-card, .card-dark, .bg-dark) { background: #000000; color: #FFFFFF; }
html.a11y-high-contrast :is(.hero, .page-hero, .cta-band, .refused-intro, .site-footer, .details-card, .card-dark, .bg-dark) :is(p, li, span, .lead, .hero-sub) { color: #FFFFFF; }
html.a11y-high-contrast :is(.hero, .page-hero, .cta-band, .refused-intro, .site-footer, .details-card, .card-dark) a:not(.btn) { color: #FFFF00; text-decoration: underline; }
/* mobile drawer only — on desktop the nav sits inside the white header */
@media (max-width: 1023.98px) {
  html.a11y-high-contrast .main-nav { background: #000000; color: #FFFFFF; }
  html.a11y-high-contrast .main-nav :is(p, li, span) { color: #FFFFFF; }
  html.a11y-high-contrast .main-nav a:not(.btn) { color: #FFFF00; text-decoration: underline; }
}
@media (min-width: 1024px) {
  html.a11y-high-contrast .nav-link { color: #000000; }
  html.a11y-high-contrast .nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.35em; }
}
html.a11y-high-contrast :is(.hero, .cta-band) .form-panel :is(p, li, span) { color: #000000; }
html.a11y-high-contrast .form-panel a:not(.btn) { color: #00301D; }
/* ...but not the labels inside buttons (submit = white on near-black) */
html.a11y-high-contrast .form-panel .btn :is(span, bdi) { color: inherit; }
html.a11y-high-contrast .btn-light { --btn-bg: #FFFFFF; --btn-fg: #000000; --btn-bd: #FFFFFF; }
html.a11y-high-contrast .btn-outline-light { --btn-fg: #FFFFFF; --btn-bd: #FFFFFF; }
html.a11y-high-contrast .btn-outline { --btn-fg: #000000; --btn-bd: #000000; }
html.a11y-high-contrast :is(.card, .case, .summary-card, .mini-steps li, .doc-groups > li, .toc, .note, .form-panel, .disclaimer-box) { border: 2px solid #000000; box-shadow: none; }
html.a11y-high-contrast .card-dark { border-color: #FFFFFF; }
html.a11y-high-contrast :is(.situations a, .check-list .icon, .values .icon, .trust-list .icon, .card-icon, .step-num, .mini-num) { color: #000000; }
html.a11y-high-contrast .card-dark .card-icon, html.a11y-high-contrast .details-card .icon { color: #FFFFFF; }
html.a11y-high-contrast .mobile-bar { border-top: 2px solid #000000; }
html.a11y-high-contrast .a11y-trigger { background: #000000; box-shadow: 0 0 0 2px #FFFF00; }
html.a11y-high-contrast .fab-wa { background: #000000; box-shadow: 0 0 0 2px #FFFFFF; }
html.a11y-high-contrast .a11y-panel { border: 2px solid #000000; }
html.a11y-high-contrast .eyebrow::before, html.a11y-high-contrast .center > .eyebrow::after { background: currentColor; }
/* v2: photos never carry the text in high contrast (solid black overlays come from tokens.css) */
html.a11y-high-contrast .hero-media::after { background: var(--photo-overlay-hero-mobile); }
@media (min-width: 1024px) {
  html.a11y-high-contrast .hero-media::after { background: var(--photo-overlay-hero); }
}
html.a11y-high-contrast .hero-benefit-icon { background: #000000; box-shadow: inset 0 0 0 1.5px #FFFFFF; color: #FFFFFF; }
@media (min-width: 768px) {
  html.a11y-high-contrast .svc-banner-text { background: #000000; }
  html.a11y-high-contrast .svc-banner-text :is(h2, p) { color: #FFFFFF; }
}
html.a11y-high-contrast :is(.calc-sum, .calc-details) { background: #000000; color: #FFFFFF; }
html.a11y-high-contrast :is(.calc-sum, .calc-details) :is(p, span) { color: #FFFFFF; }
html.a11y-high-contrast :is(.calc-sum, .calc-details) .btn-light :is(span, bdi) { color: inherit; }
html.a11y-high-contrast .calc-cta-lead { border-top-color: #FFFFFF; }
html.a11y-high-contrast :is(.calc-card, .reassure) { border: 2px solid #000000; box-shadow: none; background: #FFFFFF; }
html.a11y-high-contrast .calc-input { border-color: #000000; color: #000000; }
html.a11y-high-contrast .carousel-btn { border-color: #000000; color: #000000; }
html.a11y-high-contrast .carousel-btn[aria-disabled="true"] { border-style: dashed; color: #000000; }
html.a11y-high-contrast .step-ill-num { box-shadow: inset 0 0 0 2px #000000; color: #000000; }
html.a11y-high-contrast .card-photo .card-body, html.a11y-high-contrast .path-figure figcaption { border-top-color: #000000; }
html.a11y-high-contrast .card-photo .card-icon { background: #FFFFFF; box-shadow: 0 0 0 2px #000000; }
html.a11y-high-contrast .card-photo.card-dark .card-body { border-top-color: #FFFFFF; }
html.a11y-high-contrast .card-photo.card-dark .card-icon { background: #000000; box-shadow: 0 0 0 2px #FFFFFF; }
html.a11y-high-contrast .reassure li::before { background: #000000; }

/* ---------- 20. Print ---------- */
@media print {
  .site-header, .subnav, .mobile-bar, .fab-wa, .a11y-trigger, .a11y-panel, .lead-form, .cta-band, .skip-link, .carousel-controls, [data-calc], .hero-media { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .page-hero, .site-footer { background: #fff; color: #000; }
}
