/* ELAD — clean cream premium theme. One stylesheet, all languages (RTL + LTR via logical properties).
   Brand palette from the original site: charcoal #1D1D1B, white, amber #EDAB03. */

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

:root {
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --ink: #161512;
  --ink-2: #35332D;
  --muted: #6E6A61;
  --muted-2: #9B968B;
  --line: #E8E4DA;
  --accent: #EDAB03;
  --accent-dark: #C98F02;
  --accent-text: #A87E08;
  --accent-dim: rgba(237, 171, 3, 0.12);
  --dark: #161512;
  --dark-2: #1D1D1B;
  --on-dark: #F7F5F0;
  --on-dark-muted: rgba(247, 245, 240, 0.66);
  --ok: #3E7C52;
  --err: #B4423E;
  /* קאליברי לפי בקשת אלעד: קאליברי אמיתי אצל מי שמותקן, קרליטו (תאום מדויק) מהרשת, אסיסטנט לעברית כגיבוי */
  --font-body: 'Calibri', 'Carlito', 'Assistant', 'Segoe UI', sans-serif;
  --font-display: 'Calibri', 'Carlito', 'Assistant', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.19, 0.7, 0.22, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  overflow-x: hidden;
  animation: pageIn 0.6s ease both;
}
@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; }

.container { max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.container.narrow { max-width: 800px; }
.section { padding-block: 100px; }

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  filter: blur(7px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease);
}
.reveal.delay-1 { transition-delay: 0.13s; }
.reveal.delay-2 { transition-delay: 0.26s; }
.reveal.delay-3 { transition-delay: 0.39s; }
.revealed { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
  body { animation: none; }
}

/* ── Type ── */
.section-label {
  font-size: 12px; font-weight: 700; color: var(--accent-text);
  letter-spacing: 4px; text-transform: uppercase; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700; line-height: 1.15; margin-bottom: 18px;
}
.section-subtitle {
  font-size: 17px; color: var(--muted); max-width: 660px; line-height: 1.8;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 34px; border-radius: 3px;
  font-weight: 700; font-size: 15px; letter-spacing: 0.03em;
  border: none;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s, color 0.3s, border-color 0.3s;
}
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn-lg { padding: 17px 42px; font-size: 16px; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: var(--accent-dark); transform: translateY(-3px); box-shadow: 0 14px 34px rgba(237, 171, 3, 0.3); }
.btn-outline { background: transparent; color: var(--on-dark); border: 1px solid rgba(255,255,255,0.45); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-3px); }

/* ── Nav ── */
.nav {
  position: fixed; top: 0; inset-inline: 0; z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav-inner {
  max-width: 1200px; margin-inline: auto; padding-inline: 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 78px;
}
.nav-logo img { height: 32px; width: auto; }
.nav .logo-dark { display: none; }
.nav-links { display: flex; gap: 30px; }
.nav-links a {
  font-size: 14.5px; font-weight: 600; color: var(--on-dark-muted);
  transition: color 0.2s; position: relative; padding-block: 6px;
}
.nav-links a:hover, .nav-links a.active { color: var(--on-dark); }
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--accent); transition: width 0.3s var(--ease);
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-side { display: flex; align-items: center; gap: 14px; }
.nav-social { display: flex; gap: 4px; }
.nav-social a {
  width: 30px; height: 30px; border-radius: 3px;
  display: flex; align-items: center; justify-content: center;
  color: var(--on-dark-muted); transition: color 0.2s, background 0.2s;
}
.nav-social a:hover { color: var(--accent); }
.nav.scrolled .nav-social a { color: var(--muted-2); }
.nav.scrolled .nav-social a:hover { color: var(--accent-text); }
@media (max-width: 1150px) { .nav-social { display: none; } }
.nav-mobile-social { display: flex; gap: 10px; margin-top: 14px; }
.nav-mobile-social a {
  width: 40px; height: 40px; border-radius: 3px;
  border: 1px solid var(--line); color: var(--muted);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.nav-mobile-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }
.nav-lang { display: flex; gap: 3px; border: 1px solid rgba(255,255,255,0.25); border-radius: 3px; padding: 3px; transition: border-color 0.4s; }
.nav-lang a, .nav-mobile-lang a {
  padding: 4px 6px; border-radius: 2px; display: flex; align-items: center;
  transition: all 0.2s;
}
.nav-lang svg, .nav-mobile-lang svg {
  display: block; width: 22px; height: auto; border-radius: 2px;
  opacity: 0.5; filter: saturate(0.7);
  transition: opacity 0.2s, filter 0.2s;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.12);
}
.nav-lang a:hover svg, .nav-mobile-lang a:hover svg { opacity: 0.85; filter: none; }
.nav-lang a.active, .nav-mobile-lang a.active { background: var(--accent); }
.nav-lang a.active svg, .nav-mobile-lang a.active svg { opacity: 1; filter: none; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 8px; }
.nav-burger span { width: 22px; height: 2px; background: var(--on-dark); transition: all 0.3s; }

/* scrolled nav: cream, dark text, logo swap */
.nav.scrolled {
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
.nav.scrolled .logo-light { display: none; }
.nav.scrolled .logo-dark { display: block; }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav.scrolled .nav-links a:hover, .nav.scrolled .nav-links a.active { color: var(--ink); }
.nav.scrolled .nav-lang { border-color: var(--line); }
.nav.scrolled .nav-lang a { color: var(--muted-2); }
.nav.scrolled .nav-lang a:hover { color: var(--ink); }
.nav.scrolled .nav-lang a.active { color: var(--ink); }
.nav.scrolled .nav-burger span { background: var(--ink); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none; flex-direction: column; gap: 4px;
  background: var(--bg); border-bottom: 1px solid var(--line);
  padding: 12px 24px 24px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a { padding: 13px 0; font-size: 16px; font-weight: 600; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.nav-mobile a:last-of-type { border-bottom: none; }
.nav-mobile-lang { display: flex; gap: 8px; margin-top: 14px; }
.nav-mobile-lang a { color: var(--muted); border: 1px solid var(--line); }

/* ── Hero (home) ── */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(16,15,13,0.94) 0%, rgba(16,15,13,0.55) 45%, rgba(16,15,13,0.62) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 1200px; margin-inline: auto; padding: 150px 24px 130px;
  width: 100%; color: var(--on-dark);
}
.hero-kicker {
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 7px; text-transform: uppercase; margin-bottom: 28px;
  animation: riseIn 1s var(--ease) 0.1s both;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 6.5vw, 80px);
  font-weight: 700; line-height: 1.1;
  max-width: 880px; margin-bottom: 28px;
  overflow-wrap: break-word;
  animation: riseIn 1.1s var(--ease) 0.25s both;
}
.hero h1 .accent { color: var(--accent); }
.hero-sub {
  font-size: 18px; color: var(--on-dark-muted);
  max-width: 580px; line-height: 1.85; margin-bottom: 44px;
  animation: riseIn 1.1s var(--ease) 0.45s both;
}
.hero-buttons { display: flex; gap: 16px; flex-wrap: wrap; animation: riseIn 1.1s var(--ease) 0.6s both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(34px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
.hero-scroll {
  position: absolute; bottom: 34px; inset-inline-start: 50%;
  transform: translateX(-50%); z-index: 2;
  width: 26px; height: 44px; border: 1px solid rgba(255,255,255,0.35); border-radius: 14px;
  display: flex; justify-content: center; padding-top: 8px;
}
[dir="rtl"] .hero-scroll { transform: translateX(50%); }
.hero-scroll span { width: 3px; height: 9px; border-radius: 2px; background: var(--accent); animation: scrollHint 1.8s infinite; }
@keyframes scrollHint {
  0% { opacity: 1; transform: translateY(0); }
  70% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 0; }
}

/* ── Page hero (inner pages) ── */
.page-hero {
  position: relative; min-height: 46vh;
  display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
  color: var(--on-dark);
}
.page-hero-sm { min-height: 38vh; }
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,15,13,0.9) 0%, rgba(16,15,13,0.45) 60%, rgba(16,15,13,0.6) 100%);
}
.page-hero-content { position: relative; z-index: 1; padding-block: 64px 56px; width: 100%; }
.page-hero-content .section-label { color: var(--accent); animation: riseIn 0.9s var(--ease) 0.1s both; }
.page-hero-content h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 58px); font-weight: 700; line-height: 1.12;
  margin-bottom: 12px; max-width: 800px;
  animation: riseIn 1s var(--ease) 0.2s both;
}
.page-hero-content p {
  font-size: 17px; color: var(--on-dark-muted); max-width: 620px; line-height: 1.75;
  animation: riseIn 1s var(--ease) 0.35s both;
}

/* ── Stats ── */
.stats { background: var(--surface); border-block: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 64px; }
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ''; position: absolute; inset-block: 12%; inset-inline-start: -12px;
  width: 1px; background: var(--line);
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(38px, 4.5vw, 60px); font-weight: 700; color: var(--ink);
  line-height: 1.1;
}
.stat-num [data-count] { color: var(--ink); }
.stat-label { font-size: 14px; color: var(--muted); margin-top: 8px; letter-spacing: 0.04em; }

/* ── Manifesto ── */
.manifesto { padding-block: 120px; text-align: center; }
.manifesto-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.5vw, 50px);
  font-weight: 700; line-height: 1.22; margin-bottom: 28px;
  max-width: 780px; margin-inline: auto;
}
.manifesto-text { font-size: 19px; color: var(--muted); line-height: 1.9; max-width: 700px; margin-inline: auto; }

/* ── Branches ── */
.branches-label {
  text-align: center; font-size: 13px; font-weight: 700;
  color: var(--accent-text); letter-spacing: 5px; text-transform: uppercase;
  margin-bottom: 36px;
}
.branches-grid { display: grid; grid-template-columns: 1fr 1fr; }
.branch {
  position: relative; min-height: 560px;
  background-size: cover; background-position: center;
  display: flex; align-items: flex-end;
  overflow: hidden; color: var(--on-dark);
}
.branch::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(16,15,13,0.92) 10%, rgba(16,15,13,0.2) 62%, rgba(16,15,13,0.12));
  transition: background 0.5s;
}
.branch::after {
  content: ''; position: absolute; inset: 0;
  background-image: inherit; opacity: 0;
}
.branch:hover::before { background: linear-gradient(to top, rgba(16,15,13,0.94) 10%, rgba(20,16,6,0.35) 62%, rgba(16,15,13,0.08)); }
.branch-inner { position: relative; z-index: 1; padding: 52px; transition: transform 0.5s var(--ease); }
.branch:hover .branch-inner { transform: translateY(-10px); }
.branch h3 { font-family: var(--font-display); font-size: 31px; font-weight: 700; margin-bottom: 12px; }
.branch p { font-size: 15px; color: var(--on-dark-muted); max-width: 430px; margin-bottom: 18px; }
.branch-cta {
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase;
}
.branch-cta::after { content: ' →'; }
[dir="rtl"] .branch-cta::after { content: ' ←'; }

/* ── Courses ── */
.courses-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.course-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 4px; overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); border-color: rgba(237, 171, 3, 0.55); box-shadow: 0 30px 60px rgba(22, 21, 18, 0.12); }
.course-card.featured { border-color: rgba(237, 171, 3, 0.55); }
.course-img { height: 215px; overflow: hidden; background: var(--line); }
.course-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.course-card:hover .course-img img { transform: scale(1.06); }
.course-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.course-body h3 { font-family: var(--font-display); font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.course-body p { font-size: 14.5px; color: var(--muted); line-height: 1.75; margin-bottom: 20px; flex: 1; }
.course-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.course-tag {
  font-size: 12.5px; font-weight: 700; color: var(--accent-text);
  background: var(--accent-dim); padding: 6px 12px; border-radius: 3px;
}
.extras-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 24px; }
.extra {
  background: transparent; border: 1px solid var(--line); border-radius: 4px;
  padding: 26px 28px; text-align: start; color: inherit;
  transition: border-color 0.3s, background 0.3s, transform 0.3s var(--ease);
}
.extra:hover { border-color: rgba(237, 171, 3, 0.55); background: var(--surface); transform: translateY(-4px); }
.extra h4 { font-family: var(--font-display); font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.extra p { font-size: 14px; color: var(--muted); }

/* ── Service cards (home + services index) ── */
.services-home { background: var(--surface); border-block: 1px solid var(--line); }
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.svc-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s;
}
.services-home .svc-card, .page-services .svc-card { background: var(--surface); }
.svc-card:hover { transform: translateY(-8px); border-color: rgba(237, 171, 3, 0.55); box-shadow: 0 28px 56px rgba(22, 21, 18, 0.12); }
.svc-img { height: 205px; overflow: hidden; background: var(--line); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.06); }
.svc-body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.svc-body h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.svc-body p { font-size: 14.5px; color: var(--muted); line-height: 1.7; flex: 1; }
.svc-more {
  margin-top: 16px; font-size: 13px; font-weight: 700; color: var(--accent-text);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.svc-more::after { content: ' →'; }
[dir="rtl"] .svc-more::after { content: ' ←'; }
.svc-all-wrap { text-align: center; margin-top: 46px; }
.btn-outline-dark { background: transparent; color: var(--ink); border: 1px solid var(--ink-2); }
.btn-outline-dark:hover { border-color: var(--accent-dark); color: var(--accent-text); transform: translateY(-3px); }

/* ── Topic pages ── */
.topic-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; }
.topic-text p { font-size: 17px; color: var(--ink-2); line-height: 1.9; margin-bottom: 20px; max-width: 680px; }
.topic-aside {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 14px;
  padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
}
.topic-back { font-size: 13.5px; font-weight: 700; color: var(--accent-text); }
.topic-back::before { content: '← '; }
[dir="rtl"] .topic-back::before { content: '→ '; }
.topic-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 48px; }
.topic-strip figure { overflow: hidden; border-radius: 4px; aspect-ratio: 16 / 10; }
.topic-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.topic-strip figure:hover img { transform: scale(1.05); }

/* ── Live calendar ── */
.calendar-section { background: var(--surface); border-block: 1px solid var(--line); }
.calendar-list { margin-top: 46px; display: flex; flex-direction: column; gap: 12px; }
.calendar-status {
  color: var(--muted-2); font-size: 15px; padding: 30px; text-align: center;
  border: 1px dashed var(--line); border-radius: 4px;
}
.cal-item {
  display: flex; align-items: center; gap: 22px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 4px;
  padding: 18px 22px;
  transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s;
}
.cal-item:hover { border-color: rgba(237, 171, 3, 0.55); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(22,21,18,0.07); }
.cal-date { width: 68px; flex-shrink: 0; text-align: center; border-inline-end: 1px solid var(--line); padding-inline-end: 18px; }
.cal-day { display: block; font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--accent-text); line-height: 1.1; }
.cal-month { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.cal-info { flex: 1; min-width: 0; }
.cal-title { font-size: 16.5px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-type {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--accent-text); background: var(--accent-dim); padding: 3px 9px; border-radius: 2px;
}
.cal-meta { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.cal-side { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.cal-spots { font-size: 12.5px; color: var(--muted); }
.cal-spots.few { color: var(--accent-text); font-weight: 700; }
.cal-spots.full { color: var(--err); font-weight: 700; }
.cal-item .btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

/* ── Capabilities / International cards ── */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.intl-band { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-block: 56px; }
.intl-band img {
  width: 100%; height: 330px; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.intl-band img:hover { transform: scale(1.03); }
.intl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.intl-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 38px;
  transition: transform 0.4s var(--ease), border-color 0.4s, box-shadow 0.4s;
}
.intl-card:hover { transform: translateY(-6px); border-color: rgba(237, 171, 3, 0.55); box-shadow: 0 24px 50px rgba(22,21,18,0.09); }
.intl-card h3 { font-family: var(--font-display); font-size: 21px; font-weight: 700; margin-bottom: 10px; }
.intl-card p { font-size: 15px; color: var(--muted); line-height: 1.8; }
.intl-cta-wrap { text-align: center; margin-top: 48px; }

/* ── Founder ── */
.founder-section { background: var(--surface); border-block: 1px solid var(--line); }
.founder-grid {
  display: grid; grid-template-columns: minmax(220px, 300px) 1fr;
  gap: 56px; align-items: start;
}
.founder-img {
  border-radius: 4px; overflow: hidden; border: 1px solid var(--line);
  max-width: 300px;
}
.founder-img img { width: 100%; height: auto; }
.founder-text p { font-size: 16.5px; color: var(--ink-2); line-height: 1.9; margin-bottom: 16px; max-width: 640px; }
.founder-creds { margin-top: 26px; display: flex; flex-direction: column; gap: 0; max-width: 520px; }
.founder-creds li {
  padding: 14px 4px; font-size: 15px; font-weight: 600; color: var(--ink);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px;
}
.founder-creds li::before {
  content: ''; width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.testimonial {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  padding: 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.testimonial:hover { transform: translateY(-6px); box-shadow: 0 24px 50px rgba(22,21,18,0.08); }
.stars { color: var(--accent); letter-spacing: 3px; margin-bottom: 14px; font-size: 15px; }
.testimonial p { font-size: 15px; color: var(--muted); line-height: 1.8; margin-bottom: 18px; }
.testimonial footer strong { display: block; font-size: 14.5px; }
.testimonial footer span { font-size: 12.5px; color: var(--muted-2); }

/* ── Gallery ── */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.g-item {
  overflow: hidden; border-radius: 4px; cursor: zoom-in;
  aspect-ratio: 4 / 3; background: var(--line);
}
.g-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.8s var(--ease), filter 0.5s;
}
.g-item:hover img { transform: scale(1.06); filter: brightness(1.06); }
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(12, 11, 9, 0.95);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 3px; }
.lb-close, .lb-prev, .lb-next {
  position: absolute; background: none; border: none;
  color: rgba(255,255,255,0.8); font-size: 40px; line-height: 1; padding: 14px;
  transition: color 0.2s;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover { color: var(--accent); }
.lb-close { top: 18px; inset-inline-end: 22px; }
.lb-prev { inset-inline-start: 14px; top: 50%; transform: translateY(-50%); font-size: 54px; }
.lb-next { inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-size: 54px; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-items { margin-top: 34px; display: flex; flex-direction: column; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding-block: 17px; border-bottom: 1px solid var(--line);
  font-size: 15px; color: var(--muted); transition: color 0.2s;
}
a.contact-item:hover { color: var(--ink); }
.contact-item strong { color: var(--ink); font-size: 13.5px; }
.contact-icon {
  width: 42px; height: 42px; border-radius: 3px; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent-text);
  display: flex; align-items: center; justify-content: center; font-size: 17px;
}
.form-box {
  background: var(--surface); border: 1px solid var(--line); border-radius: 5px;
  padding: 38px; box-shadow: 0 24px 60px rgba(22, 21, 18, 0.06);
}
.form-box h3 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.form-box-sub { font-size: 13.5px; color: var(--muted-2); margin-bottom: 26px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 7px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line); border-radius: 3px;
  font-size: 15px; font-family: inherit;
  background: var(--bg); color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--muted-2); }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim);
}
.form-field select { appearance: none; }
.form-field textarea { resize: vertical; min-height: 90px; }
.form-field input.invalid { border-color: var(--err); }
.form-submit { width: 100%; margin-top: 10px; }
.form-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.form-success { text-align: center; color: var(--ok); font-weight: 700; margin-top: 18px; font-size: 15px; }
.form-error { text-align: center; color: var(--err); font-weight: 500; margin-top: 18px; font-size: 14px; }
.form-error a { color: var(--accent-text); font-weight: 700; }

/* ── CTA band ── */
.cta-band { background: var(--dark); color: var(--on-dark); padding-block: 90px; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-display); font-size: clamp(28px, 4vw, 44px); font-weight: 700; margin-bottom: 10px; }
.cta-band p { font-size: 16.5px; color: var(--on-dark-muted); max-width: 560px; }

/* ── Footer ── */
.footer { background: var(--dark); border-top: 1px solid rgba(255,255,255,0.08); padding: 72px 0 34px; color: rgba(247,245,240,0.5); }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr 0.8fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { margin-bottom: 18px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; max-width: 300px; }
.footer h4 {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 16px;
}
.footer ul li { margin-bottom: 10px; }
.footer ul li a { font-size: 13.5px; color: rgba(247,245,240,0.5); transition: color 0.2s; }
.footer ul li a:hover { color: var(--accent); }
.footer-langs a { display: inline-flex; align-items: center; gap: 8px; }
.footer-langs .flag svg { display: block; width: 18px; height: auto; border-radius: 2px; }
.footer-bottom {
  padding-top: 26px; border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  flex-wrap: wrap; font-size: 12.5px;
}
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 3px;
  border: 1px solid rgba(255,255,255,0.16); color: rgba(247,245,240,0.55);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
  transition: all 0.25s;
}
.footer-social a:hover { background: var(--accent); border-color: var(--accent); color: var(--ink); }

/* ── נגישות ── */
.skip-link {
  position: absolute; top: -60px; inset-inline-start: 12px; z-index: 300;
  background: var(--ink); color: var(--on-dark);
  padding: 12px 22px; border-radius: 0 0 4px 4px;
  font-weight: 700; font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

:focus-visible {
  outline: 3px solid #1A6FD4;
  outline-offset: 2px;
  border-radius: 2px;
}

.a11y-btn {
  position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 250;
  width: 52px; height: 52px; border-radius: 50%;
  background: #1A6FD4; color: #fff; border: 2px solid #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
  transition: transform 0.2s;
}
.a11y-btn:hover { transform: scale(1.08); }
.a11y-panel {
  position: fixed; bottom: 84px; inset-inline-start: 22px; z-index: 250;
  width: 240px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.25);
  padding: 14px; display: flex; flex-direction: column; gap: 6px;
}
.a11y-panel[hidden] { display: none; }
.a11y-head { font-weight: 700; font-size: 15px; margin-bottom: 4px; color: var(--ink); }
.a11y-opt {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600;
  text-align: start; transition: border-color 0.2s, background 0.2s;
}
.a11y-opt:hover { border-color: #1A6FD4; }
.a11y-opt[aria-pressed="true"] { background: #E3EEFB; border-color: #1A6FD4; }
.a11y-reset { color: var(--err); }
.a11y-statement-link { font-size: 13px; color: #1A6FD4; text-decoration: underline; margin-top: 4px; }
.footer-a11y-link { text-decoration: underline; }

/* מצבי נגישות (מופעלים דרך התפריט) */
body.a11y-contrast {
  --bg: #FFFFFF; --surface: #FFFFFF; --ink: #000000; --ink-2: #000000;
  --muted: #1c1c1c; --muted-2: #333333; --line: #757575;
  --accent-text: #6b4f00; --on-dark: #FFFFFF; --on-dark-muted: #FFFFFF;
}
body.a11y-contrast .hero-overlay, body.a11y-contrast .page-hero-overlay { background: rgba(0,0,0,0.82); }
body.a11y-links a { text-decoration: underline !important; }
body.a11y-noanim *, body.a11y-noanim *::before, body.a11y-noanim *::after {
  animation: none !important; transition: none !important;
}
body.a11y-noanim .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }

/* הצהרת נגישות */
.acc-content h2 { font-family: var(--font-display); font-size: 26px; font-weight: 700; margin: 34px 0 12px; }
.acc-content p { font-size: 16.5px; color: var(--ink-2); line-height: 1.85; margin-bottom: 14px; }
.acc-list { padding-inline-start: 6px; margin-bottom: 10px; }
.acc-list li { padding: 7px 0; font-size: 15.5px; color: var(--ink-2); display: flex; gap: 10px; }
.acc-list li::before { content: '•'; color: var(--accent-text); font-weight: 700; }
.acc-list a { color: #1A6FD4; text-decoration: underline; }
.acc-updated { font-size: 13.5px; color: var(--muted-2); margin-top: 26px; }

/* ── Responsive ── */
@media (max-width: 1020px) {
  .founder-grid { grid-template-columns: 1fr; gap: 40px; }
  .founder-img { max-width: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .section { padding-block: 68px; }
  .nav-links, .nav-lang, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .nav.menu-open { background: var(--bg); border-bottom-color: var(--line); }
  .nav.menu-open .logo-light { display: none; }
  .nav.menu-open .logo-dark { display: block; }
  .nav.menu-open .nav-burger span { background: var(--ink); }
  .branches-grid { grid-template-columns: 1fr; }
  .branch { min-height: 420px; }
  .courses-grid, .testimonials-grid, .cap-grid { grid-template-columns: 1fr; }
  .extras-grid, .intl-grid, .svc-grid { grid-template-columns: 1fr; }
  .topic-layout { grid-template-columns: 1fr; gap: 30px; }
  .topic-aside { position: static; }
  .topic-strip { grid-template-columns: 1fr; }
  .intl-band { grid-template-columns: 1fr; }
  .intl-band img { height: 230px; }
  .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px; padding-block: 46px; }
  .stat + .stat::before { display: none; }
  .manifesto { padding-block: 80px; }
  .form-box { padding: 26px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-hero { min-height: 40vh; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 520px) {
  .gallery-grid { grid-template-columns: 1fr; }
}

/* ── FAQ (עמודי נחיתה לקידום אורגני) ── */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 4px;
  margin-bottom: 12px; transition: border-color 0.3s;
}
.faq-item[open] { border-color: rgba(237, 171, 3, 0.55); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 22px;
  font-weight: 700; color: var(--ink); position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; inset-inline-end: 22px; top: 50%;
  transform: translateY(-50%); color: var(--accent-text); font-size: 1.3rem; font-weight: 400;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { padding: 0 22px 20px; margin: 0; color: var(--muted); line-height: 1.7; }

/* רשת 4 מפגשי הסילבוס — 4 עמודות במסך רחב, 2×2 בבינוני */
.syllabus-grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .syllabus-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .syllabus-grid { grid-template-columns: 1fr; } }
.syl-note { margin-top: 36px; margin-bottom: 0; }
