/* ============================================================
   מרכז השמיעה — design system v2
   Premium, warm, senior-friendly. RTL Hebrew.
   Palette honors the original logo: red / green / blue.
   ============================================================ */

/* ---------- Self-hosted variable fonts (no third-party requests) ---------- */
@font-face {
  font-family: 'Frank Ruhl Libre';
  font-style: normal;
  font-weight: 500 900;
  font-display: swap;
  src: url('assets/fonts/FrankRuhlLibre-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: 500 900;
  font-display: swap;
  src: url('assets/fonts/FrankRuhlLibre-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: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/Heebo-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: 'Heebo';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/Heebo-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;
}

:root {
  /* Brand palette — derived from the original logo */
  --red: #C9251A;          /* logo red, tuned for white-text contrast — primary CTA */
  --red-deep: #A51A10;
  --green: #1F6F1A;        /* logo green, darkened for contrast — success / checks */
  --green-light: #7BD974;  /* green on dark backgrounds */
  --blue: #2747A8;         /* logo blue — accents and links */
  --blue-light: #B4C5F8;   /* blue on dark backgrounds */

  --ink: #1F2F5C;          /* deep navy — headings, dark sections */
  --ink-soft: #2C4185;
  --paper: #FAF7F2;        /* warm cream background */
  --paper-deep: #ECE3D3;   /* alt section background — deepened for clearer block separation */
  --white: #FFFFFF;
  --text: #28324A;
  --text-soft: #46506A;
  --line: #E2DCD0;
  --focus: #1668E3;

  /* Type scale — generous for senior readability */
  --fs-base: 1.175rem;       /* ~18.8px */
  --fs-lg: 1.35rem;
  --fs-h3: 1.45rem;
  --fs-h2: clamp(1.9rem, 4vw, 2.6rem);
  --fs-h1: clamp(2.15rem, 6vw, 3.8rem);

  --radius: 18px;
  --shadow: 0 10px 30px rgba(31, 47, 92, .10);
  --shadow-soft: 0 4px 14px rgba(31, 47, 92, .07);
  --maxw: 1140px;
}

* { box-sizing: border-box; }

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

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: 'Heebo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container { max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

/* anchor targets clear the sticky header (incl. top utility bar) */
[id] { scroll-margin-top: 150px; }
@media (max-width: 720px) {
  [id] { scroll-margin-top: 96px; }
}

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

.skip-link {
  position: absolute; top: -60px; inset-inline-start: 16px;
  background: var(--ink); color: #fff;
  padding: 12px 22px; border-radius: 0 0 12px 12px;
  z-index: 200; transition: top .2s;
  text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 0; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 14px 30px;
  border-radius: 999px; border: 2px solid transparent;
  font: inherit; font-weight: 700; font-size: var(--fs-base);
  text-decoration: none; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red); color: #fff;
  box-shadow: 0 6px 18px rgba(217, 43, 32, .32);
}
.btn-primary:hover { background: var(--red-deep); }

.btn-outline {
  background: transparent; color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-call {
  background: var(--ink); color: #fff;
  font-size: 1.2rem; letter-spacing: .5px;
  direction: ltr; white-space: nowrap;
  padding-inline: 22px;
}
.btn-call:hover { background: var(--ink-soft); }

.btn-block { width: 100%; }

.center { text-align: center; margin-top: 34px; }

/* ---------- Language dropdown (header) ---------- */
.lang-dd { position: relative; }
.lang-dd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 12px;
  font: inherit; font-weight: 700; font-size: .95rem;
  color: var(--ink); cursor: pointer;
}
.lang-dd-btn:hover { background: var(--paper-deep); }
.lang-dd-btn[aria-expanded="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.lang-menu {
  position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
  min-width: 160px; z-index: 130;
  background: var(--white);
  border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
}
.lang-menu.open { display: block; }
.lang-menu .lang-btn {
  display: block; width: 100%; text-align: start;
  min-height: 50px; padding: 12px 18px;
  border: 0; background: transparent;
  font: inherit; font-weight: 600; font-size: 1.02rem;
  color: var(--text); cursor: pointer;
}
.lang-menu .lang-btn + .lang-btn { border-top: 1px solid var(--paper-deep); }
.lang-menu .lang-btn:hover { background: var(--paper-deep); color: var(--ink); }
.lang-menu .lang-btn[aria-checked="true"] {
  color: var(--ink); font-weight: 800;
  background: rgba(39, 71, 168, .07);
}
.lang-menu .lang-btn[aria-checked="true"]::before { content: "✓ "; color: var(--green); }

.util-cluster { display: flex; align-items: center; gap: 10px; }

.lang-switch, .size-switch {
  display: flex;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.lang-switch button, .size-switch button {
  min-width: 44px; min-height: 44px; padding: 0 6px;
  border: 0; background: transparent;
  font: inherit; font-weight: 700; font-size: .98rem;
  color: var(--text-soft); cursor: pointer;
}
.header-actions .size-switch { border-radius: 12px; }
.lang-switch button + button, .size-switch button + button {
  border-inline-start: 1px solid var(--line);
}
.lang-switch button:hover, .size-switch button:hover { background: var(--paper-deep); color: var(--ink); }
.lang-switch button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.size-switch button { font-weight: 800; }
.size-switch button:disabled { color: #B9B2A5; cursor: default; background: transparent; }

/* mobile menu tools live inside the overlay (.mnav-tools) — styled below */

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 247, 242, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 24px;
  padding-block: 10px;
  /* full-width header: brand sits at the true screen edge on one side,
     the language/size controls at the true screen edge on the other */
  max-width: none;
  padding-inline: clamp(12px, 1.8vw, 28px);
  position: relative;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
}
.brand img { width: 40px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; white-space: nowrap; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; }
.brand-text small { color: var(--text-soft); font-size: .85rem; }

.main-nav {
  display: flex; gap: clamp(8px, 1.2vw, 18px);
  flex-wrap: nowrap;
  /* the five links sit at the true center of the screen
     (physical left/transform works identically in RTL and LTR) */
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}
.main-nav a {
  color: var(--text); text-decoration: none; font-weight: 600;
  font-size: clamp(.92rem, 1.05vw, 1rem); white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 2px; border-bottom: 3px solid transparent;
}
.main-nav a:hover { color: var(--blue); border-bottom-color: var(--green); }
.main-nav a.active { color: var(--blue); border-bottom-color: var(--blue); }

.header-actions { display: flex; align-items: center; gap: 12px; margin-inline-start: auto; }

/* a slim divider separates the phone CTA from the utility pills */
.header-actions .util-sep {
  width: 1px; align-self: stretch; margin-block: 8px;
  background: var(--line);
}

/* unify control heights so the header reads as one cohesive bar */
.header-actions .btn-call { min-height: 46px; font-size: 1.1rem; padding-inline: 20px; }
.header-actions .lang-dd-btn,
.header-actions .size-switch { min-height: 46px; }
.header-actions .size-switch button { min-height: 44px; }

/* Hamburger — mobile nav */
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--ink);
  cursor: pointer; place-items: center;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle:active { background: rgba(31, 47, 92, .06); }
.nav-toggle svg { display: block; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-burger { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Mobile menu: side drawer ---------- */
.mnav-backdrop {
  display: none;
  position: fixed; inset: 0; z-index: 290;
  background: rgba(17, 28, 63, .5);
  opacity: 0; transition: opacity .25s ease;
}
.mnav-backdrop.open { display: block; opacity: 1; }

.mobile-nav {
  display: none;                             /* drawer exists on mobile only */
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 300;
  width: min(85vw, 350px); max-width: 100%;
  background: var(--paper);
  flex-direction: column;
  padding: 14px 20px calc(24px + env(safe-area-inset-bottom));
  overflow-y: auto; -webkit-overflow-scrolling: touch;
  box-shadow: 12px 0 40px rgba(17, 28, 63, .22);
  transform: translateX(-105%);              /* RTL (Hebrew): anchored left, hidden off the left edge */
  visibility: hidden;
  transition: transform .26s ease, visibility .26s;
}
[dir="ltr"] .mobile-nav { transform: translateX(105%); box-shadow: -12px 0 40px rgba(17, 28, 63, .22); }  /* LTR: from the right */
@media (max-width: 1199px) { .mobile-nav { display: flex; } }
.mobile-nav.open { transform: none; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .mobile-nav { transition: none; } }

.mnav-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 4px 14px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.mnav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ink); font-size: 1.1rem; }
.mnav-brand img { width: 30px; height: 36px; }
.mnav-close {
  width: 48px; height: 48px; flex-shrink: 0;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--ink);
  display: grid; place-items: center; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mnav-close:active { background: rgba(31, 47, 92, .06); }

.mnav-links { display: flex; flex-direction: column; padding-block: 6px; }
.mnav-links a {
  display: flex; align-items: center;
  min-height: 58px; padding: 0 8px;
  font-size: 1.16rem; font-weight: 500;
  color: var(--ink); text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.mnav-links a::after {
  content: "‹"; margin-inline-start: auto;
  color: var(--blue); font-size: 1.5rem; opacity: .6;
}
.mnav-links a:active { color: var(--blue); }

.mnav-cta { display: grid; gap: 12px; margin: 22px 0 8px; }
.mnav-cta .btn { width: 100%; min-height: 60px; font-size: 1.18rem; }
.mnav-cta .btn-call { direction: ltr; }

.mnav-tools {
  margin-top: auto; padding-top: 20px;
  display: grid; gap: 16px;
}
.mnav-tool-group { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.mnav-tool-label { font-weight: 500; color: var(--text-soft); font-size: 1rem; }
.mnav-tools .lang-switch button, .mnav-tools .size-switch button { min-height: 50px; min-width: 56px; font-weight: 500; }
.mnav-tools .lang-switch button[aria-pressed="true"] { font-weight: 600; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(217, 43, 32, .07), transparent 60%),
    radial-gradient(900px 600px at -10% 110%, rgba(39, 71, 168, .07), transparent 55%),
    var(--paper);
  padding-block: 72px 84px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 48px; align-items: center;
}
.eyebrow {
  display: inline-block;
  background: rgba(39, 71, 168, .09);
  color: var(--blue); font-weight: 700; font-size: 1rem;
  padding: 8px 18px; border-radius: 999px; margin: 0 0 22px;
}
.hero h1 {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: var(--fs-h1); font-weight: 900;
  line-height: 1.15; color: var(--ink); margin: 0 0 20px;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero-sub {
  font-size: var(--fs-lg); color: var(--text-soft);
  max-width: 34em; margin: 0 0 32px;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-reassure {
  margin: 0 0 24px; color: var(--text-soft);
  font-size: 1.02rem; font-weight: 500;
}
.hero-trust {
  list-style: none; display: flex; gap: 10px 26px; flex-wrap: wrap;
  margin: 0; padding: 0; color: var(--green); font-weight: 600; font-size: 1.05rem;
}

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--white);
  border-radius: 28px; box-shadow: var(--shadow);
  padding: 48px 42px; text-align: center;
  border: 1px solid var(--line);
}
.wave-rings {
  position: relative; width: 220px; height: 220px;
  margin-inline: auto; display: grid; place-items: center;
}
.wave-rings img { position: relative; z-index: 2; width: 100px; height: 120px; }
.wave-rings span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(217, 43, 32, .4);
  animation: ring 3.2s ease-out infinite;
}
.wave-rings span:nth-child(2) { animation-delay: 1.05s; border-color: rgba(63, 165, 53, .4); }
.wave-rings span:nth-child(3) { animation-delay: 2.1s; border-color: rgba(39, 71, 168, .4); }
@keyframes ring {
  0%   { transform: scale(.55); opacity: 0; }
  30%  { opacity: .9; }
  100% { transform: scale(1.15); opacity: 0; }
}
.hero-card-title {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.6rem; font-weight: 700; color: var(--ink);
  margin: 22px 0 6px;
}
.hero-card-sub { color: var(--text-soft); margin: 0; }

/* ---------- Trust strip ---------- */
.trust-strip {
  background: var(--ink); color: #fff;
  padding-block: 30px;
}
.trust-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
  text-align: center;
}
.trust-item strong {
  display: block; font-size: 1.55rem; font-weight: 800;
  color: var(--green-light); margin-bottom: 4px;
}
.trust-item span { color: rgba(255,255,255,.85); font-size: 1rem; }

/* ---------- Sections ---------- */
.section { padding-block: 84px; }
.section.alt { background: var(--paper-deep); }

.section-title {
  font-family: 'Frank Ruhl Libre', 'Heebo', serif;
  font-size: var(--fs-h2); font-weight: 900; color: var(--ink);
  margin: 0 0 14px; line-height: 1.25;
}
/* short brand accent under each title — marks the start of every block */
.section-title::after {
  content: ""; display: block;
  width: 52px; height: 4px; margin-top: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--green) 33% 66%, var(--blue) 66% 100%);
}
.section-lead {
  font-size: var(--fs-lg); color: var(--text-soft);
  margin: 0 0 44px; max-width: 38em;
}

/* ---------- Steps ---------- */
.steps-grid {
  list-style: none; counter-reset: step;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin: 0; padding: 0;
}
.step-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow-soft);
}
.step-num {
  display: inline-grid; place-items: center;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--green); color: #fff;
  font-weight: 800; font-size: 1.5rem; margin-bottom: 18px;
}
.step-card h3 { margin: 0 0 10px; font-size: var(--fs-h3); color: var(--ink); }
.step-card p { margin: 0; color: var(--text-soft); }

/* ---------- Services ---------- */
.cards-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px;
}
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 36px 30px;
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-icon {
  width: 64px; height: 64px; border-radius: 16px;
  display: grid; place-items: center;
  background: rgba(39, 71, 168, .08); color: var(--blue);
  margin-bottom: 18px;
}
.card h3 { margin: 0 0 10px; font-size: var(--fs-h3); color: var(--ink); }
.card p { margin: 0; color: var(--text-soft); }

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px;
  align-items: start;
}
.about-copy p { font-size: var(--fs-lg); }
.about-person {
  float: inline-start;
  width: 220px; margin: 4px 0 18px;
  margin-inline-end: 28px;
}
.about-photo {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 16px; box-shadow: var(--shadow);
  display: block;
}
.about-person figcaption {
  margin-top: 10px; font-size: .98rem; color: var(--text-soft);
  text-align: center; line-height: 1.4;
}
.about-quote {
  margin: 30px 0 0; padding: 24px 28px;
  background: rgba(63, 165, 53, .10);
  border-inline-start: 5px solid var(--green);
  border-radius: 12px;
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 1.35rem; color: var(--ink); font-weight: 500;
}
.about-cred {
  background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 36px 32px;
  box-shadow: var(--shadow);
}
.about-cred h3 { margin: 0 0 18px; font-size: 1.5rem; color: var(--green-light); }
.cred-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cred-list li { padding-inline-start: 30px; position: relative; color: rgba(255,255,255,.9); }
.cred-list li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 0;
  color: var(--green-light); font-weight: 800;
}
.cred-list strong { color: #fff; }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 880px; }
.quiz-details { border: 0; }
/* author display rules on children defeat native <details> hiding — re-assert it */
.quiz-details:not([open]) > :not(summary) { display: none; }
.quiz-toggle {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 58px; padding: 14px 26px;
  background: var(--white); border: 2px solid var(--ink);
  border-radius: 999px;
  font-weight: 800; font-size: var(--fs-base); color: var(--ink);
  transition: background .15s, color .15s;
}
.quiz-toggle::-webkit-details-marker { display: none; }
.quiz-toggle::before {
  content: "›"; font-size: 1.5rem; line-height: 1; transition: transform .2s;
}
.quiz-details[open] .quiz-toggle::before { transform: rotate(-90deg); }
.quiz-toggle:hover { background: var(--ink); color: #fff; }
.quiz-details[open] .quiz-toggle {
  background: var(--ink); color: #fff;
  border-radius: 16px; margin-bottom: 18px;
}
.quiz-details[open] .quiz-toggle::before { content: "−"; }
.quiz-details:not([open]) .quiz-toggle::before { content: "+"; }
.benefit-chips {
  list-style: none; margin: -24px 0 34px; padding: 0;
  display: flex; gap: 12px; flex-wrap: wrap;
}
.benefit-chips li {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 20px;
  font-weight: 600; color: var(--green); font-size: 1.02rem;
}
.benefit-chips li::before { content: "✓ "; }
.quiz-list { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 14px; }
.quiz-item {
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px;
}
.quiz-q { font-weight: 500; }
.quiz-controls { display: flex; gap: 10px; flex-shrink: 0; }
.quiz-controls label { position: relative; cursor: pointer; }
.quiz-controls input {
  position: absolute; opacity: 0; width: 100%; height: 100%; cursor: pointer;
}
.quiz-controls span {
  display: inline-grid; place-items: center;
  min-width: 64px; min-height: 50px; padding-inline: 16px;
  border-radius: 999px; border: 2px solid var(--ink);
  color: var(--ink); font-weight: 700;
  transition: background .15s, color .15s;
}
.quiz-controls input:checked + span { background: var(--ink); color: #fff; }
.quiz-controls input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }

.quiz-result {
  margin-top: 26px; padding: 24px 28px; border-radius: 14px;
  background: var(--white); border: 2px solid var(--green);
  font-size: var(--fs-lg); color: var(--ink); font-weight: 600;
}
.quiz-result a { color: var(--red); font-weight: 800; }

/* ---------- Tech / Widex ---------- */
.tech-grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start;
}
.tech-list { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 14px; }
.tech-list li { padding-inline-start: 32px; position: relative; }
.tech-list li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .45em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--blue);
}
.tech-note {
  background: var(--paper-deep); border-radius: 12px;
  padding: 18px 22px; color: var(--text-soft); margin-bottom: 28px;
}
.tech-visual { display: flex; justify-content: center; }
.widex-card {
  background: linear-gradient(150deg, #25356B, #131C3F);
  color: #fff; border-radius: 24px;
  padding: clamp(30px, 5vw, 52px) clamp(24px, 5vw, 48px);
  text-align: center;
  box-shadow: var(--shadow);
  width: 100%; max-width: 460px;
}
.widex-wordmark {
  display: block;
  font-family: 'Heebo', sans-serif;
  font-size: clamp(2rem, 7vw, 3rem); font-weight: 800;
  letter-spacing: .32em; padding-inline-start: .32em;
  line-height: 1;
}
.widex-tagline {
  display: block; margin-top: 10px;
  color: var(--blue-light); letter-spacing: .12em; font-size: .78rem;
  text-transform: uppercase;
}
.widex-lead {
  margin: 16px 0 0; color: rgba(255,255,255,.82);
  font-size: 1.02rem; line-height: 1.5;
}
.widex-stats {
  list-style: none; margin: 22px 0 0; padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid; gap: 16px; text-align: start;
}
.widex-stats li {
  display: grid; gap: 2px;
  padding-inline-start: 16px; position: relative;
}
.widex-stats li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 3px; bottom: 3px;
  width: 4px; border-radius: 999px;
  background: linear-gradient(var(--red), var(--green), var(--blue-light));
}
.widex-stats strong { font-size: 1.35rem; font-weight: 800; color: #fff; line-height: 1.15; }
.widex-stats span { font-size: .94rem; color: var(--blue-light); line-height: 1.4; }
/* Real device photo showcase */
.device-showcase {
  margin: 40px auto 0; max-width: 900px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px 24px;
  box-shadow: var(--shadow-soft); text-align: center;
}
.device-showcase img {
  width: 100%; height: auto; display: block; border-radius: 10px;
}
.device-showcase figcaption {
  margin-top: 14px; color: var(--text-soft); font-size: 1.02rem;
}

/* Widex official video — click-to-load facade (no third-party request until play) */
.video-embed {
  margin: 40px auto 0; max-width: 860px;
  border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow);
}
/* two copies: desktop sits full-width below the grid, mobile sits above the note */
.video-mobile { display: none; }
.video-embed .video-play {
  position: relative; display: block; width: 100%;
  aspect-ratio: 16 / 9; border: 0; cursor: pointer; padding: 0;
  background: radial-gradient(120% 120% at 50% 0%, #25356B, #0E1530);
  color: #fff;
}
.video-poster {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 10px; padding: 22px; text-align: center;
}
.video-poster-brand {
  font-weight: 800; font-size: clamp(2rem, 7vw, 3.4rem);
  letter-spacing: .3em; padding-inline-start: .3em;
}
.video-poster-brand em { font-style: normal; color: var(--blue-light); }
.video-poster-text { color: var(--blue-light); font-size: clamp(.95rem, 2.4vw, 1.15rem); max-width: 26em; }
.video-play-btn {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);          /* centered in the rectangle */
  width: 76px; height: 76px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  transition: transform .15s ease, background .15s ease;
}
.video-embed .video-play:hover .video-play-btn { transform: translate(-50%, -50%) scale(1.08); background: var(--red-deep); }
.video-play-btn svg { margin-inline-start: 4px; } /* optical centering of the triangle */
.video-embed iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video-embed figcaption {
  background: var(--ink); color: rgba(255,255,255,.7);
  font-size: .9rem; text-align: center; padding: 10px 16px;
}

/* ---------- Funds ---------- */
.funds-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.fund-card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 30px;
  box-shadow: var(--shadow-soft);
}
.fund-card.fund-meuhedet { border-top: 6px solid var(--green); }
.fund-card.fund-pricing { border-top: 6px solid var(--red); }
.fund-card.fund-private { border-top: 6px solid var(--blue); }
.fund-card h3 { margin: 0 0 12px; font-size: var(--fs-h3); color: var(--ink); }
.fund-card p { margin: 0; color: var(--text-soft); }

.price-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; }
.price-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.price-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.price-name { font-weight: 600; color: var(--ink); }
.price-name small { color: var(--text-soft); font-weight: 400; font-size: .85em; }
.price-tag {
  font-weight: 800; font-size: 1.3rem; color: var(--red); white-space: nowrap;
}
.price-note { font-size: 1rem; color: var(--text-soft); }
.funds-note {
  margin-top: 26px; text-align: center; color: var(--text-soft);
  font-size: 1.05rem;
}

/* ---------- FAQ ---------- */
.faq-wrap { max-width: 820px; }
.faq-item {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 22px 26px; font-weight: 700; font-size: var(--fs-lg); color: var(--ink);
  position: relative; padding-inline-end: 60px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; position: absolute; inset-inline-end: 24px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.8rem; color: var(--blue); font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { margin: 0; padding: 0 26px 24px; color: var(--text-soft); }

/* ---------- Contact ---------- */
.contact { padding-bottom: 0; }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  margin-bottom: 64px;
}
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.contact-line {
  display: flex; align-items: center; gap: 16px;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; padding: 18px 22px;
  text-decoration: none; color: var(--text);
  transition: transform .15s, box-shadow .15s;
}
.contact-line > span:last-child { overflow-wrap: anywhere; }
a.contact-line:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.contact-ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 52px; height: 52px; border-radius: 14px;
  background: rgba(39, 71, 168, .08); color: var(--blue);
}
.contact-line strong { color: var(--ink); }

.contact-form {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 38px 34px;
  box-shadow: var(--shadow);
}
.contact-form h3 { margin: 0 0 24px; font-size: var(--fs-h3); color: var(--ink); }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--text-soft); font-size: .95rem; }
.field input, .field textarea, .field select {
  width: 100%; padding: 16px 18px;
  border: 2px solid var(--line); border-radius: 12px;
  font: inherit; font-size: var(--fs-base);
  background: var(--paper);
  color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--focus);
}
.form-note { color: var(--text-soft); font-size: 1rem; margin: 16px 0 0; }
.form-status { font-weight: 700; color: var(--green); margin: 12px 0 0; }

.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: var(--red);
}
.field-error {
  display: none;
  color: var(--red); font-weight: 600; font-size: 1rem;
  margin: 6px 0 0;
}
.field-error.show { display: block; }

/* honeypot — visually hidden from humans, present for bots */
.hp-field {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}

/* ---------- Map + branch selector ---------- */
.branch-tabs {
  display: flex; gap: 0;
  background: var(--ink);
}
.branch-tab {
  flex: 1; min-height: 64px; padding: 10px 16px;
  border: 0; background: transparent; cursor: pointer;
  color: rgba(255,255,255,.7); font: inherit; font-weight: 700; font-size: 1.1rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border-bottom: 4px solid transparent;
  transition: background .15s, color .15s;
}
.branch-tab small { font-weight: 400; font-size: .85rem; color: rgba(255,255,255,.55); }
.branch-tab:hover { background: rgba(255,255,255,.06); color: #fff; }
.branch-tab.is-active { color: #fff; border-bottom-color: var(--red); background: rgba(255,255,255,.08); }
.branch-tab.is-active small { color: var(--blue-light); }

.map-wrap {
  height: 420px;
  background: var(--paper-deep) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cpath fill='none' stroke='%23E2DCD0' stroke-width='1' d='M0 40h80M40 0v80'/%3E%3C/svg%3E");
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.85);
  padding-block: 48px 110px;
}
.footer-grid { display: grid; gap: 20px; text-align: center; justify-items: center; }
.footer-logo {
  background: #fff; border-radius: 14px; padding: 8px;
  width: 44px; height: 52px;
}
.site-footer a { color: var(--blue-light); }
.footer-legal { color: rgba(255,255,255,.55); font-size: .95rem; margin: 0; }
.footer-contact { font-style: normal; }

.footer-social a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #fff; text-decoration: none; font-weight: 600;
  transition: background .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.16); }
.footer-social svg { flex-shrink: 0; }

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 150;
  display: none;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px rgba(31,47,92,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.sticky-btn {
  flex: 1; min-height: 62px;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.sticky-btn svg { display: block; }
.sticky-btn + .sticky-btn,
.sticky-nav-wrap + .sticky-btn { border-inline-start: 1px solid var(--line); }

/* navigate chooser */
.sticky-nav-wrap { flex: 1; position: relative; display: flex; }
.sticky-nav-wrap .sticky-btn { flex: 1; width: 100%; background: transparent; border: 0; cursor: pointer; }
.nav-choice {
  position: absolute; bottom: calc(100% + 10px); inset-inline-start: 6px;
  min-width: 190px; z-index: 320;
  background: var(--white); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 12px 32px rgba(17,28,63,.22);
  padding: 8px;
}
.nav-choice[hidden] { display: none; }
.nav-choice-title { margin: 4px 8px 8px; font-size: .82rem; color: var(--text-soft); font-weight: 700; }
.nav-choice a {
  display: flex; align-items: center; justify-content: center;
  min-height: 52px; border-radius: 10px;
  font-weight: 800; font-size: 1.05rem; color: var(--ink); text-decoration: none;
}
.nav-choice a + a { margin-top: 4px; }
.nav-choice a:active { background: var(--paper-deep); }
.sticky-btn:active { background: var(--paper-deep); }
/* icon colors */
.sticky-nav  { color: var(--red); }
.sticky-call { color: var(--ink); }
.sticky-wa   { color: #128C4B; }
.sticky-mail { color: var(--blue); }
.sticky-fb   { color: #1877F2; }

/* ---------- Scroll reveal (no-JS safe: hidden state only added by JS) ---------- */
.reveal-init {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.reveal-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal-init { opacity: 1; transform: none; }
}
/* safety net: never let the reveal state hide content on phones */
@media (max-width: 720px) {
  .reveal-init { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Responsive
   ============================================================ */
/* The full nav collapses to a hamburger well before it could ever
   collide with the header controls — overlap is structurally impossible. */
@media (max-width: 1199px) {
  .main-nav { display: none; }
  .nav-toggle { display: grid; }
}

/* JS collision guard: applied whenever the measured header content
   (any language, any text-size setting) would not fit on one line */
.force-burger .main-nav { display: none; }
.force-burger .nav-toggle { display: grid; }

@media (max-width: 1024px) {
  .hero-grid, .about-grid, .tech-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   Mobile (≤720px) — research-led: shorter page, less decoration,
   tighter rhythm, no scroll animations. Mobile ≠ desktop here.
   ============================================================ */
@media (max-width: 720px) {
  /* ===== Mobile-native scale: tighter type so it doesn't feel oversized ===== */
  :root { --fs-base: 1rem; --fs-lg: 1.06rem; --fs-h3: 1.12rem; }
  /* crisp divider between every block so it reads as distinct cards, not an endless list */
  .section { padding-block: 38px; border-top: 1px solid var(--line); }
  .section.alt { border-top-color: rgba(0,0,0,.06); }
  .section-title::after { width: 44px; height: 3px; margin-top: 12px; }
  .container { padding-inline: 16px; }
  .section-title { font-size: 1.55rem; margin-bottom: 10px; }
  .section-lead { font-size: 1.06rem; margin-bottom: 22px; }

  /* ---- Header ---- */
  .header-inner { gap: 12px; padding-block: 7px; }
  .header-actions .btn-call { display: none; }
  .header-actions .size-switch, .header-actions .lang-dd, .header-actions .util-sep { display: none; }
  .brand img { width: 32px; height: 38px; }
  .brand-text strong { font-size: 1.05rem; }
  .brand-text small { font-size: .76rem; }

  /* ---- Hero: compact, message-first ---- */
  .hero { padding-block: 24px 34px; }
  .hero-visual { display: none; }
  .hero h1 { font-size: 2rem; margin-bottom: 14px; }
  .hero-sub { font-size: 1.08rem; margin-bottom: 18px; }
  /* reorder on mobile: message → green trust lines → reassurance → buttons */
  .hero-copy { display: flex; flex-direction: column; }
  .hero-trust { order: 1; gap: 6px 16px; font-size: .95rem; margin-bottom: 16px; }
  .hero-reassure { order: 2; font-size: .92rem; margin-bottom: 12px; }
  .hero-ctas { order: 3; flex-flow: row nowrap; gap: 10px; margin-bottom: 0; }
  /* two compact CTAs side by side */
  .hero-ctas .btn { width: auto; flex: 1; min-height: 50px; font-size: .94rem; padding: 10px 8px; gap: 6px; }
  .hero-ctas .btn-outline .num { display: none; }   /* hide the number on mobile; it's in the bottom bar */
  .eyebrow { font-size: .8rem; padding: 5px 13px; margin-bottom: 12px; }

  /* ---- Trust strip: compact 2×2 ---- */
  .trust-strip { padding-block: 22px; }
  .trust-grid { gap: 16px 14px; }
  .trust-item strong { font-size: 1.2rem; margin-bottom: 2px; }
  .trust-item span { font-size: .85rem; }

  /* ---- How it works: compact inline rows (number · title · text) ---- */
  .steps-grid { grid-template-columns: 1fr; gap: 10px; }
  .step-card {
    display: grid; grid-template-columns: auto 1fr; align-items: start;
    column-gap: 14px; row-gap: 2px; padding: 16px 18px;
  }
  .step-num { grid-row: span 2; width: 40px; height: 40px; font-size: 1.2rem; margin: 0; }
  .step-card h3 { font-size: 1.08rem; margin: 2px 0 0; align-self: center; }
  .step-card p { grid-column: 2; font-size: .95rem; margin: 0; }

  /* ---- Services: 2-column tile grid (breaks the "endless list") ---- */
  .cards-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .card { padding: 18px 15px; }
  .card-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 10px; }
  .card-icon svg { width: 26px; height: 26px; }
  .card h3 { font-size: 1.04rem; margin-bottom: 6px; }
  .card p { font-size: .9rem; line-height: 1.5; }

  /* ---- About: centered header on mobile ---- */
  .about #about-title { text-align: center; }
  .about #about-title::after { margin-inline: auto; }   /* center the accent too */
  .about-person { float: none; width: 150px; margin: 0 auto 18px; }
  .about-copy p { font-size: 1.02rem; }
  .about-quote { font-size: 1.08rem; padding: 18px 20px; }
  .about-cred { padding: 24px 20px; margin-top: 22px; }
  .cred-list { gap: 12px; }

  /* ---- Less repetition on mobile: each area keeps a unique message ---- */
  .cred-list li:nth-child(2) { display: none; }    /* "ותק משנת 1991" already told in the bio */

  /* ---- Fewer buttons funnelling to the form ---- */
  #funds .center { display: none; }                /* "בדיקת זכאות" duplicates the booking CTA */
  .tech-copy .btn-outline { display: none; }       /* "דברו איתנו" — covered by the bottom bar */

  /* Facebook lives in the bottom bar on mobile, so drop the footer one */
  .footer-social { display: none; }

  /* ---- Reorder: FAQ drops to the bottom, just above the map ---- */
  main { display: flex; flex-direction: column; }
  #contact { order: 1; }
  #faq { order: 2; }
  #mapSection { order: 3; }

  /* ---- Footer: smaller text on the navy background ---- */
  .footer-brand p { font-size: .9rem; }
  .footer-contact { font-size: .82rem; line-height: 1.55; }
  .footer-legal { font-size: .8rem; }
  .footer-logo { width: 38px; height: 46px; }

  /* ---- Quiz: compact rows ---- */
  .benefit-chips { margin: -12px 0 20px; gap: 8px; }
  .benefit-chips li { padding: 7px 13px; font-size: .9rem; }
  .quiz-item { gap: 10px 12px; padding: 13px 15px; }
  .quiz-q { font-size: .98rem; }
  .quiz-controls span { min-width: 58px; min-height: 46px; }
  .quiz-submit { min-height: 54px; }

  /* ---- Tech / Widex ---- */
  .tech-visual { display: none; }          /* hide the WIDEX card (incl. device photo) on phone */
  .video-desktop { display: none; }        /* mobile uses the in-flow copy above the note */
  .video-mobile { display: block; }
  .video-embed { margin-top: 22px; }
  .video-play-btn { width: 58px; height: 58px; }
  .video-poster { padding: 16px; }
  .video-poster-brand { font-size: 1.5rem; letter-spacing: .14em; }   /* compact so the centered play stays clear */
  .video-poster-text { font-size: .82rem; }
  .tech-list { gap: 12px; }
  .tech-note { padding: 16px 18px; }

  /* ---- Funds: compact stacked ---- */
  .funds-grid { grid-template-columns: 1fr; gap: 14px; }
  .fund-card { padding: 22px 18px; }

  /* ---- FAQ ---- */
  .faq-item { margin-bottom: 10px; }
  .faq-item summary { padding: 15px 16px; padding-inline-end: 48px; font-size: 1.06rem; }
  .faq-item p { padding: 0 16px 16px; }

  /* ---- Contact ---- */
  .contact-grid { grid-template-columns: 1fr; gap: 18px; margin-bottom: 36px; }
  .contact-form { padding: 20px 16px; }
  .contact-form h3 { margin-bottom: 14px; font-size: 1.2rem; }
  .contact-line { padding: 13px 15px; gap: 13px; }
  .contact-ico { width: 44px; height: 44px; }
  .map-wrap { height: 260px; }
  .branch-tab { min-height: 54px; font-size: .98rem; }

  /* compact form fields so the whole form fits one screen */
  .field { margin-bottom: 12px; }
  .field label { margin-bottom: 5px; font-size: .98rem; }
  .field input, .field textarea, .field select { padding: 11px 14px; border-radius: 10px; }
  .field textarea { min-height: 60px; }
  .contact-form .btn-block { min-height: 52px; }
  .form-note { font-size: .9rem; margin-top: 12px; }

  /* ---- Quick-action bar + footer clearance ---- */
  .sticky-cta { display: flex; }
  .sticky-btn { min-height: 60px; }
  .site-footer { padding-block: 32px 124px; }
}

@media (max-width: 380px) {
  :root { --fs-base: .96rem; }
  .hero h1 { font-size: 1.82rem; }
  .section-title { font-size: 1.42rem; }
  .quiz-controls span { min-width: 52px; padding-inline: 10px; }
  .card p { font-size: .86rem; }
}
