/* ============================================================
   Yehonatan Cohen — Attorney & Notary, Jerusalem
   Design direction C: ivory & navy (light), gold accents.
   One stylesheet for both languages: direction comes from the
   html dir attribute; layout uses logical properties.
   ============================================================ */

/* ---------- 0. Fonts (merged from fonts.css 2026-07-09 — one blocking request fewer) ---------- */
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/assistant-var-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Assistant';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/assistant-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/frank-ruhl-libre-var-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('/assets/fonts/frank-ruhl-libre-var-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
/* Design direction A "Engraved Brass Threshold" (2026-07-09 upgrade session):
   near-black navy frame (header/hero/footer) around ivory content, richer brass. */
:root {
  --bg: #FAF7F1;
  --bg-soft: #F2EDE1;
  --surface: #FFFDF8;

  --ink: #101F35;
  --ink-soft: #3D4E66;

  --navy: #10233F;
  --navy-deep: #081527;
  --on-navy: #F4EFE4;
  --on-navy-soft: #C3CCDA;

  --gold: #B08A3E;
  --gold-deep: #7C6428;
  --gold-soft: #D6C296;
  --gold-bright: #CFA85C;

  --line: #E4DCC9;
  --line-strong: #948356;
  --line-dark: rgba(207, 168, 92, 0.32);

  --surface-navy: #12263F;

  --wa: #0E6F5C;

  --font-serif: 'Frank Ruhl Libre', 'David', Georgia, serif;
  --font-sans: 'Assistant', 'Segoe UI', Arial, sans-serif;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 2px 10px rgba(8, 21, 39, 0.08);
  --shadow-md: 0 10px 30px rgba(8, 21, 39, 0.14);

  --container: 1140px;
  --header-h: 80px;
}

/* ---------- 2. Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0 0 0.6em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.4em; }

a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--ink); }

::selection { background: var(--gold-soft); color: var(--navy-deep); }

[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

/* ---------- 3. Typography ---------- */
/* Hebrew keeps letter-spacing 0 (negative tracking damages Hebrew letterforms);
   Latin-only refinements are scoped to html[lang="en"]. */
h1, .h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2.3rem, 1.5rem + 2.7vw, 3.3rem);
  line-height: 1.15;
}
h2, .h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 1.25rem + 1.1vw, 2.15rem);
}
h3, .h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.28rem;
}
html[lang="en"] h1, html[lang="en"] .h1,
html[lang="en"] h2, html[lang="en"] .h2 { letter-spacing: -0.01em; }

.eyebrow {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--gold-deep);
  margin-bottom: 0.9rem;
}
html[lang="en"] .eyebrow { text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.8rem; }

.lead {
  font-size: 1.17rem;
  color: var(--ink-soft);
  max-width: 32em;
}

.section-head { max-width: 620px; margin-bottom: 3.1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--ink-soft); margin-bottom: 0; }

/* Engraved rule ornament above section heads (direction-neutral: symmetric) */
.section-head::before {
  content: "◆" / "";
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(220px, 70%);
  height: 13px;
  color: var(--gold);
  font-size: 9px;
  line-height: 1;
  background:
    linear-gradient(90deg, transparent, var(--line-strong) 14%, var(--line-strong) 42%, transparent 46%),
    linear-gradient(90deg, transparent 54%, var(--line-strong) 58%, var(--line-strong) 86%, transparent);
  background-repeat: no-repeat;
  margin-bottom: 1.5rem;
}
.section-head--center::before { margin-inline: auto; }
.section--navy .section-head::before {
  color: var(--gold-bright);
  background:
    linear-gradient(90deg, transparent, var(--line-dark) 14%, var(--line-dark) 42%, transparent 46%),
    linear-gradient(90deg, transparent 54%, var(--line-dark) 58%, var(--line-dark) 86%, transparent);
}

/* ---------- 4. Layout utilities ---------- */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.1rem, 4vw, 2rem);
}

.section { padding-block: clamp(3.8rem, 7.5vw, 6rem); }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: var(--navy);
  color: var(--on-navy);
  border-block-start: 2px solid var(--gold-bright);
}
.section--navy h2, .section--navy h3 { color: var(--on-navy); }
.section--navy p { color: var(--on-navy-soft); }
.section--navy .eyebrow { color: var(--gold-bright); }
.section--navy a:not(.btn) { color: var(--gold-soft); }
.section--navy a:not(.btn):hover { color: var(--on-navy); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  padding: 0.82em 1.7em;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--navy); color: var(--on-navy); }
.btn--primary:hover { background: var(--navy-deep); color: #FFFFFF; }

.btn--outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--outline:hover { background: var(--navy); color: var(--on-navy); }

.btn--gold { background: var(--gold); color: var(--navy-deep); border-color: var(--gold-deep); }
.btn--gold:hover { background: var(--gold-soft); color: var(--navy-deep); border-color: var(--gold-deep); }

.btn--ghost-light { border-color: rgba(244, 239, 228, 0.55); color: var(--on-navy); background: transparent; }
.btn--ghost-light:hover { border-color: var(--on-navy); background: rgba(244, 239, 228, 0.08); color: var(--on-navy); }

.btn--sm { padding: 0.6em 1.25em; font-size: 0.95rem; }

.btn .icon { width: 18px; height: 18px; flex: none; }

/* ---------- 6. Focus & skip link ---------- */
:focus-visible {
  outline: 3px solid var(--gold-deep);
  outline-offset: 2px;
  border-radius: 2px;
}
.section--navy :focus-visible,
.site-header :focus-visible,
.hero :focus-visible,
.page-header :focus-visible,
.site-footer :focus-visible,
.float-stack :focus-visible,
.to-top:focus-visible {
  outline-color: var(--gold-soft);
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--navy);
  color: var(--on-navy);
  border: 1px solid var(--gold-bright);
  border-top: none;
  padding: 0.7em 1.3em;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; color: var(--on-navy); }

/* ---------- 7. Header / navigation (dark frame) ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 21, 39, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--gold-bright);
}
.site-header .btn--primary { background: var(--gold); color: var(--navy-deep); }
.site-header .btn--primary:hover { background: var(--gold-soft); color: var(--navy-deep); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--on-navy);
  margin-inline-end: auto;
}
.brand:hover { color: var(--on-navy); }
.brand-mark { width: 44px; height: 44px; flex: none; }
.brand-name {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.18rem;
  line-height: 1.15;
  display: block;
}
.brand-sub {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}

.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-list {
  display: flex;
  align-items: center;
  gap: 1.45rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-list a {
  position: relative;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--on-navy-soft);
  text-decoration: none;
  white-space: nowrap;
  padding-block: 0.4em;
  transition: color 0.15s ease;
}
/* Brass underline grows from center — direction-neutral for RTL/LTR */
.nav-list a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease-out;
}
.nav-list a:hover { color: var(--on-navy); }
.nav-list a:hover::after { transform: scaleX(1); }
.nav-list a[aria-current] { color: var(--gold-bright); }
.nav-list a[aria-current]::after { transform: scaleX(1); background: var(--gold-bright); }

.header-actions { display: flex; align-items: center; gap: 0.9rem; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--on-navy-soft);
  text-decoration: none;
  border: 1px solid rgba(207, 168, 92, 0.62);
  border-radius: 999px;
  padding: 0.35em 0.9em;
  white-space: nowrap;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.lang-switch:hover { color: var(--on-navy); border-color: var(--gold-bright); }

@media (min-width: 1121px) {
  .site-nav .btn { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(207, 168, 92, 0.62);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--on-navy);
}
.nav-toggle .icon { width: 22px; height: 22px; display: block; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1120px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    inset-inline: 0;
    background: var(--surface-navy);
    border-bottom: 2px solid var(--gold-bright);
    box-shadow: var(--shadow-md);
    padding: 1.2rem clamp(1.1rem, 4vw, 2rem) 1.6rem;
  }
  body.nav-open .site-nav { display: block; }
  body.nav-open .nav-toggle .icon-menu { display: none; }
  body.nav-open .nav-toggle .icon-close { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a {
    display: block;
    padding: 0.75em 0.2em;
    border-bottom: 1px solid var(--line-dark);
    font-size: 1.05rem;
  }
  .nav-list a::after { content: none; }
  .nav-list a[aria-current] { color: var(--gold-bright); }
  .site-nav .btn { margin-top: 1.1rem; width: 100%; }
  .header-cta { display: none; }
}

/* ---------- 8. Hero (dark band with brass threshold) ---------- */
.hero {
  position: relative;
  padding-block: clamp(3.6rem, 7.5vw, 6rem);
  background: radial-gradient(120% 90% at 50% 0%, var(--navy) 0%, var(--navy-deep) 62%);
  color: var(--on-navy);
}
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: 2px;
  background: var(--gold-bright);
  transform-origin: center;
  animation: rule-draw 650ms ease-out 150ms both;
}
@keyframes rule-draw {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.hero .eyebrow { color: var(--gold-bright); }
.hero .lead { color: var(--on-navy-soft); }
.hero .btn--primary { background: var(--gold); color: var(--navy-deep); }
.hero .btn--primary:hover { background: var(--gold-soft); color: var(--navy-deep); }
.hero .btn--outline { border-color: rgba(244, 239, 228, 0.55); color: var(--on-navy); }
.hero .btn--outline:hover { border-color: var(--on-navy); background: rgba(244, 239, 228, 0.08); color: var(--on-navy); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero h1 { margin-bottom: 0.5em; }
.hero .lead { margin-bottom: 1.6em; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 1.7rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  padding: 0;
  margin: 0;
  list-style: none;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--on-navy-soft);
}
.hero-trust li { display: inline-flex; align-items: center; gap: 0.45em; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--gold-bright); flex: none; }

.hero-media { position: relative; }
.hero-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  background: var(--surface-navy);
  box-shadow: var(--shadow-md);
}
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-dark);
  border-radius: 6px;
  pointer-events: none;
}
.hero-frame svg { width: 100%; height: auto; display: block; }

.placeholder-chip {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 22px;
  z-index: 2;
  background: rgba(20, 42, 71, 0.85);
  color: var(--on-navy);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.35em 0.9em;
  border-radius: 999px;
}

/* ---------- 9. Cards (practice areas / posts) ---------- */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.75rem 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.card h3 { margin-bottom: 0.45em; }
.card p { color: var(--ink-soft); font-size: 0.98rem; margin-bottom: 1rem; }

.card-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: var(--bg-soft);
  color: var(--gold-deep);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.1rem;
}
.card-icon .icon { width: 28px; height: 28px; }

.card-link {
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--gold-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
}
.card-link::after { content: ""; position: absolute; inset: 0; }
.card-link .icon { width: 16px; height: 16px; transition: transform 0.18s ease; }
[dir="ltr"] .card:hover .card-link .icon { transform: translateX(3px); }
[dir="rtl"] .card-link .icon { transform: scaleX(-1); }
[dir="rtl"] .card:hover .card-link .icon { transform: scaleX(-1) translateX(3px); }

.chip {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--gold-deep);
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 0.25em 0.85em;
  border-radius: 999px;
  margin-bottom: 0.95rem;
}

.post-card h3, .post-card .h3 { font-family: var(--font-serif); font-weight: 700; font-size: 1.22rem; line-height: 1.35; }
.post-card h3 a, .post-card .h3 a { color: var(--ink); text-decoration: none; }
.post-card h3 a::after, .post-card .h3 a::after { content: ""; position: absolute; inset: 0; }
.post-card:hover h3 a, .post-card:hover .h3 a { color: var(--gold-deep); }

/* ---------- 10. Why us / stats ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2.8rem;
}
.feature { display: flex; gap: 1rem; align-items: flex-start; }
.feature .card-icon { margin-bottom: 0; flex: none; background: var(--surface); border: 1px solid var(--line); }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.3em; }
.feature p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }

.stats-panel {
  background: var(--navy);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: clamp(1.8rem, 4vw, 2.8rem) clamp(1.4rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.6rem;
  text-align: center;
}
.stat-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: clamp(2rem, 1.6rem + 1.5vw, 2.9rem);
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--gold-soft);
  line-height: 1.1;
  display: block;
}
.stat-label {
  color: var(--on-navy-soft);
  font-size: 0.98rem;
  font-weight: 600;
}
.stats-note {
  grid-column: 1 / -1;
  color: var(--on-navy-soft);
  font-size: 0.82rem;
  margin: 0;
  opacity: 0.85;
}

/* ---------- 11. Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; }
.quote-mark { width: 34px; height: 34px; color: var(--gold-soft); margin-bottom: 0.8rem; }
.quote-text { color: var(--ink-soft); font-size: 1rem; flex: 1; }
.quote-person { display: flex; align-items: center; gap: 0.75rem; margin-top: 1.2rem; }
.quote-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--on-navy);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.quote-name { font-weight: 600; font-size: 0.95rem; line-height: 1.3; }
.quote-meta { color: var(--ink-soft); font-size: 0.85rem; }

/* ---------- 12. FAQ ---------- */
.faq-list { max-width: 780px; margin-inline: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding-block: 0.25rem;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.05rem;
  font-weight: 600;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--gold-deep); }
.faq-icon {
  width: 22px;
  height: 22px;
  flex: none;
  color: var(--gold-deep);
  transition: transform 0.2s ease;
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }
.faq-body { padding-block: 0 1.3rem; color: var(--ink-soft); max-width: 62ch; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-more { text-align: center; margin-top: 2.2rem; }

/* ---------- 13. Contact band ---------- */
.contact-band { text-align: center; }
.contact-band .section-head { margin-inline: auto; margin-bottom: 2rem; }
.contact-band h2 { margin-bottom: 0.4em; }
.contact-ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 2.4rem;
}
.contact-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.7rem 2rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  font-size: 0.98rem;
  color: var(--on-navy-soft);
}
.contact-info li { display: inline-flex; align-items: center; gap: 0.5em; }
.contact-info .icon { width: 18px; height: 18px; color: var(--gold-soft); flex: none; }
.legal-note {
  font-size: 0.85rem;
  color: var(--on-navy-soft);
  opacity: 0.85;
  margin: 0;
}

/* ---------- 14. Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  border-block-start: 2px solid var(--gold-bright);
  padding-block: 4rem 1.6rem;
  font-size: 0.95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.2rem;
  padding-bottom: 2.4rem;
  border-bottom: 1px solid rgba(244, 239, 228, 0.14);
}
.footer-brand .brand { color: var(--on-navy); margin-bottom: 0.9rem; }
.footer-brand .brand-sub { color: var(--gold-soft); }
.footer-brand p { margin: 0; font-size: 0.92rem; }

.footer-title {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--gold-soft);
  margin-bottom: 1rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.55rem; }
.footer-col a {
  color: var(--on-navy-soft);
  text-decoration: none;
}
.footer-col a:hover { color: var(--on-navy); text-decoration: underline; text-underline-offset: 3px; }
.footer-col .icon { width: 16px; height: 16px; color: var(--gold-soft); flex: none; }
.footer-contact li { display: flex; align-items: center; gap: 0.6em; }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.6rem;
  padding-top: 1.5rem;
  font-size: 0.84rem;
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-legal a { color: var(--on-navy-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--on-navy); text-decoration: underline; }
.footer-disclaimer { flex-basis: 100%; margin: 0; opacity: 0.75; font-size: 0.84rem; }
.footer-credit a { color: var(--gold-soft); text-decoration: none; font-weight: 600; }
.footer-credit a:hover { color: var(--on-navy); }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.8rem; }
}

/* ---------- 15. Floating buttons + back to top ---------- */
.float-stack {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.float-btn {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none;
}
.float-btn:hover { transform: translateY(-3px) scale(1.05); color: #FFFFFF; }
.float-btn .icon { width: 24px; height: 24px; }
.float-btn--tel { background: var(--navy); }
.float-btn--wa { background: var(--wa); }
.float-btn--mail { background: var(--gold-deep); }

.to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 40;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--gold-deep); border-color: var(--gold); }
.to-top .icon { width: 20px; height: 20px; }

@media (max-width: 640px) {
  .float-btn { width: 48px; height: 48px; }
  .to-top { width: 44px; height: 44px; }
}

/* ---------- 16. Responsive: hero & sections ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { max-width: 560px; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
}

/* ---------- 17. Icon defaults ---------- */
.icon { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- 17b. Scroll reveal (JS adds classes only when motion is allowed) ---------- */
html.reveal-on .will-reveal { opacity: 0; transform: translateY(14px); }
html.reveal-on .will-reveal.is-in { animation: reveal-in 0.4s ease-out both; }
@keyframes reveal-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
html.a11y-noanim .will-reveal { opacity: 1 !important; transform: none !important; }

/* ---------- 17c. Print: the dark frame must not print as ink floods ---------- */
@media print {
  .site-header, .hero, .page-header, .section--navy, .stats-panel, .site-footer {
    background: #ffffff !important;
    color: #000000 !important;
  }
  .float-stack, .to-top, .a11y-widget { display: none !important; }
}

/* ---------- 20. Accessibility widget & modes ---------- */
.a11y-btn {
  position: fixed;
  bottom: 78px;
  right: 20px;
  z-index: 46;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  background: var(--navy);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.a11y-btn:hover { background: var(--navy-deep); }
.a11y-btn .icon { width: 26px; height: 26px; }

.a11y-panel {
  position: fixed;
  bottom: 134px;
  right: 20px;
  z-index: 46;
  width: min(300px, calc(100vw - 40px));
  max-height: calc(100vh - 160px);
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 1rem;
}
.a11y-title { font-weight: 600; margin: 0 0 0.7rem; font-size: 1.02rem; color: var(--ink); }
.a11y-row { display: flex; gap: 0.45rem; }
.a11y-row .a11y-opt { flex: 1; justify-content: center; }
.a11y-opt {
  display: flex;
  align-items: center;
  gap: 0.5em;
  width: 100%;
  text-align: start;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.5em 0.8em;
  margin-bottom: 0.45rem;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.a11y-opt:hover { border-color: var(--gold-deep); }
.a11y-opt[aria-pressed="true"] { background: var(--navy); color: var(--on-navy); border-color: var(--navy); }
.a11y-opt[aria-disabled="true"] { opacity: 0.45; }
.a11y-statement { display: block; margin-top: 0.5rem; font-size: 0.87rem; text-align: center; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 640px) {
  .a11y-btn { bottom: 72px; width: 44px; height: 44px; }
  .a11y-panel { bottom: 124px; }
}

/* --- accessibility modes --- */
html.a11y-fs1 { font-size: 112.5%; }
html.a11y-fs2 { font-size: 125%; }
html.a11y-fs3 { font-size: 140%; }

html.a11y-contrast {
  --bg: #000000;
  --bg-soft: #0d0d0d;
  --surface: #000000;
  --ink: #ffffff;
  --ink-soft: #f2f2f2;
  --navy: #000000;
  --navy-deep: #000000;
  --on-navy: #ffffff;
  --on-navy-soft: #f2f2f2;
  --gold: #ffd700;
  --gold-deep: #ffd700;
  --gold-soft: #ffd700;
  --gold-bright: #ffd700;
  --line: #666666;
  --line-strong: #999999;
  --line-dark: #666666;
  --surface-navy: #000000;
  --shadow-sm: none;
  --shadow-md: none;
}
html.a11y-contrast .hero,
html.a11y-contrast .page-header { background: #000000; }
html.a11y-contrast .site-header { background: #000000; }
html.a11y-contrast .btn { border: 2px solid #ffd700 !important; }
html.a11y-contrast .btn--gold { background: #ffd700; color: #000000; }
html.a11y-contrast .section--navy,
html.a11y-contrast .stats-panel,
html.a11y-contrast .site-footer { border-block: 1px solid #666666; }
html.a11y-contrast .quote-avatar { border: 1px solid #999999; }
html.a11y-contrast .a11y-btn,
html.a11y-contrast .float-btn,
html.a11y-contrast .to-top { border: 2px solid #ffd700; background: #000000; color: #ffd700; }
html.a11y-contrast .a11y-opt[aria-pressed="true"] { background: #ffd700; color: #000000; border-color: #ffd700; }
html.a11y-contrast .req { color: #ff8a80; }
html.a11y-contrast form.show-errors input:invalid,
html.a11y-contrast form.show-errors select:invalid,
html.a11y-contrast form.show-errors textarea:invalid { border-color: #ff8a80; border-width: 2px; }
html.a11y-contrast .form-field input:not([type="checkbox"]):focus-visible,
html.a11y-contrast .form-field select:focus-visible,
html.a11y-contrast .form-field textarea:focus-visible { box-shadow: 0 0 0 3px #ffd700; }

html.a11y-grayscale .site-header,
html.a11y-grayscale main,
html.a11y-grayscale .site-footer,
html.a11y-grayscale .float-stack,
html.a11y-grayscale .to-top { filter: grayscale(1); }

html.a11y-invert .site-header,
html.a11y-invert main,
html.a11y-invert .site-footer,
html.a11y-invert .float-stack,
html.a11y-invert .to-top { filter: invert(1) hue-rotate(180deg); }

html.a11y-grayscale.a11y-invert .site-header,
html.a11y-grayscale.a11y-invert main,
html.a11y-grayscale.a11y-invert .site-footer,
html.a11y-grayscale.a11y-invert .float-stack,
html.a11y-grayscale.a11y-invert .to-top { filter: grayscale(1) invert(1) hue-rotate(180deg); }

html.a11y-links a:not(.btn):not(.float-btn):not(.brand) {
  background: #fff59a !important;
  color: #14263F !important;
  text-decoration: underline !important;
}

html.a11y-cursor,
html.a11y-cursor * { cursor: url('/assets/images/cursor-big.png') 2 2, auto !important; }
html.a11y-cursor a,
html.a11y-cursor a *,
html.a11y-cursor button,
html.a11y-cursor button *,
html.a11y-cursor summary,
html.a11y-cursor summary *,
html.a11y-cursor select,
html.a11y-cursor label,
html.a11y-cursor [role="button"] { cursor: url('/assets/images/cursor-hand.png') 23 3, pointer !important; }

html.a11y-readable * { font-family: 'Assistant', 'Segoe UI', Arial, sans-serif !important; }

html.a11y-noanim *,
html.a11y-noanim *::before,
html.a11y-noanim *::after { transition: none !important; animation: none !important; }
html.a11y-noanim { scroll-behavior: auto !important; }

/* ---------- 19. Forms ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 4vw, 3.2rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-layout { grid-template-columns: 1fr; } }

.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2.2rem);
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.3rem; }
.form-field--full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-field--full { grid-column: auto; } }

.form-field { display: flex; flex-direction: column; gap: 0.35rem; }
.form-field label { font-weight: 600; font-size: 0.95rem; }
.req { color: #A03A2E; }

.form-field input,
.form-field select,
.form-field textarea {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 0.65em 0.9em;
  width: 100%;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-field input:not([type="checkbox"]):focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(124, 100, 40, 0.55);
}
.form-field textarea { min-height: 140px; resize: vertical; }

form.show-errors input:invalid,
form.show-errors select:invalid,
form.show-errors textarea:invalid {
  border-color: #B3261E;
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.12);
}

.form-consent { display: flex; gap: 0.65em; align-items: flex-start; font-size: 0.92rem; color: var(--ink-soft); }
.form-consent input { width: 18px; height: 18px; margin-top: 0.22em; flex: none; accent-color: var(--navy); }
.form-consent a { color: var(--gold-deep); }

.form-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.form-card .btn { width: 100%; margin-top: 1.3rem; }

.hp-field {
  position: absolute !important;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-details { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.contact-details li { display: flex; gap: 0.7em; align-items: flex-start; padding-block: 0.55em; border-bottom: 1px solid var(--line); }
.contact-details li:last-child { border-bottom: none; }
.contact-details .icon { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: 0.2em; }

.map-frame {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.map-frame iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- 18. Inner pages ---------- */
/* Interior pages reuse a shallow version of the dark hero band for a consistent frame */
.page-header {
  background: radial-gradient(120% 120% at 50% 0%, var(--navy) 0%, var(--navy-deep) 70%);
  border-bottom: 2px solid var(--gold-bright);
  color: var(--on-navy);
  padding-block: clamp(2.2rem, 5vw, 3.4rem);
}
.page-header h1 { margin-bottom: 0.35em; }
.page-header .lead { margin-bottom: 0; color: var(--on-navy-soft); }
.page-header .chip { background: var(--surface-navy); color: var(--gold-bright); border-color: var(--line-dark); }
.page-header .post-meta { color: var(--on-navy-soft); }
.page-header .post-meta .icon { color: var(--gold-bright); }

.breadcrumbs { font-size: 0.85rem; margin-bottom: 1.1rem; }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4em; }
.breadcrumbs li { display: inline-flex; align-items: center; gap: 0.4em; color: var(--on-navy-soft); }
.breadcrumbs li + li::before { content: "/"; color: var(--line-dark); }
.breadcrumbs a { color: var(--on-navy-soft); text-decoration: none; }
.breadcrumbs a:hover { color: var(--gold-bright); text-decoration: underline; }
.breadcrumbs [aria-current="page"] { color: var(--gold-bright); font-weight: 600; }

/* Reading measure: capped for long legal articles (Hebrew is denser — slightly narrower) */
.prose { max-width: 65ch; line-height: 1.72; }
html[lang="he"] .prose { max-width: 40rem; }
.prose h2 { margin-top: 2.1em; font-size: clamp(1.35rem, 1.15rem + 0.8vw, 1.7rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.5em; }
.prose ul li, .prose ol li { margin-bottom: 0.45em; }
.prose .faq-list { margin-inline: 0; max-width: none; }

.check-list { list-style: none; padding: 0; }
.check-list li { display: flex; gap: 0.6em; align-items: flex-start; margin-bottom: 0.7em; }
.check-list .icon { width: 20px; height: 20px; color: var(--gold-deep); flex: none; margin-top: 0.25em; }

.steps { list-style: none; padding: 0; margin: 1.4rem 0 0; counter-reset: step; display: grid; gap: 1.15rem; }
.steps li { counter-increment: step; display: flex; gap: 1rem; align-items: flex-start; }
.steps li::before {
  content: counter(step);
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-soft);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.steps h3 { margin: 0.15em 0 0.2em; font-size: 1.08rem; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

.note-box {
  background: var(--bg-soft);
  border-inline-start: 3px solid var(--gold);
  border-radius: 0;
  padding: 1.1rem 1.4rem;
  margin: 1.8rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.note-box p:last-child { margin-bottom: 0; }

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(2rem, 4vw, 3.4rem);
  align-items: start;
}
.side-card {
  position: sticky;
  top: calc(var(--header-h) + 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.side-card .footer-title { color: var(--gold-deep); margin-bottom: 0.8rem; }
.side-card ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.side-card li { padding-block: 0.5em; border-bottom: 1px solid var(--line); font-size: 0.95rem; display: flex; gap: 0.55em; align-items: flex-start; }
.side-card li:last-child { border-bottom: none; }
.side-card .icon { width: 18px; height: 18px; color: var(--gold-deep); flex: none; margin-top: 0.2em; }
.side-card .btn { width: 100%; margin-bottom: 0.6rem; }
.side-card .btn:last-child { margin-bottom: 0; }
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
}

.portrait-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow-md);
  max-width: 380px;
}
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(169, 139, 79, 0.45);
  border-radius: 6px;
  pointer-events: none;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em 1.1em;
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-top: 0.9rem;
}
.post-meta .icon { width: 16px; height: 16px; color: var(--gold-deep); flex: none; }
.post-meta > span { display: inline-flex; align-items: center; gap: 0.45em; }

.article-cta {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  margin-top: 2.6rem;
  text-align: center;
}
.article-cta h2 { margin-top: 0 !important; font-size: 1.35rem; }
.article-cta p { color: var(--ink-soft); max-width: 46em; margin-inline: auto; }
.article-cta .hero-ctas { justify-content: center; margin-bottom: 0; margin-top: 1.2rem; }

.post-card .post-meta { margin-top: 0.6rem; font-size: 0.85rem; }

.disclaimer-line {
  font-size: 0.85rem;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  padding-top: 1.2rem;
  margin-top: 2.6rem;
}

.cta-strip { text-align: center; }
.cta-strip h2 { margin-bottom: 0.4em; }
.cta-strip p { max-width: 560px; margin-inline: auto; }
.cta-strip .contact-ctas { margin-bottom: 0; margin-top: 1.8rem; }
