/* ============================================
   5x ראיונות — "The Big Five" Design System
   Hebrew RTL, Editorial Dark Navy + Off-White
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700;800;900&family=Frank+Ruhl+Libre:wght@400;500;700;900&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-900: #060d24;
  --navy-800: #0a1230;
  --navy-700: #0b1b3d;
  --navy-600: #142a5c;
  --navy-500: #1f3d7a;
  --navy-300: #6478a8;
  --navy-100: #c5cee0;

  --paper:   #faf7f2;
  --paper-2: #f3eee5;
  --paper-3: #e8e1d4;
  --ink:     #0a1230;

  --gold:      #c9a961;
  --gold-soft: #e3d3a8;

  --serif: 'Frank Ruhl Libre', 'David Libre', Georgia, serif;
  --sans:  'Heebo', 'Helvetica Neue', system-ui, sans-serif;
  --mono:  'JetBrains Mono', 'IBM Plex Mono', monospace;

  --maxw: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.6;
}

button { font-family: inherit; cursor: pointer; border: none; }
a { color: inherit; text-decoration: none; }

/* ─── Shared primitives ─── */

.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: var(--gold);
  flex-shrink: 0;
}
.eyebrow.on-light::before,
.eyebrow.on-light::after { background: var(--navy-700); }
.eyebrow.on-light { color: var(--navy-700); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 28px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  border-radius: 2px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }

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

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border: 1px solid rgba(255,255,255,0.25);
}
.btn-ghost:hover { background: rgba(255,255,255,0.08); }

.btn-ghost-dark {
  background: transparent;
  color: var(--navy-700);
  border: 1px solid rgba(10,18,48,0.2);
}
.btn-ghost-dark:hover { background: rgba(10,18,48,0.05); }

/* ─── Top nav ─── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 64px;
  font-size: 17px;
  position: relative;
  z-index: 10;
}
.nav-brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.01em;
}
.nav-brand .num {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-900);
  padding: 3px 10px;
  border-radius: 2px;
  margin-left: 6px;
  font-family: var(--sans);
  font-weight: 800;
}
.nav-links {
  display: flex;
  gap: 40px;
  font-weight: 500;
  opacity: 0.85;
}
.nav-links a:hover { opacity: 1; }
.nav-cta {
  font-size: 16px;
  font-weight: 600;
  padding: 13px 24px;
  border: 1px solid currentColor;
  border-radius: 2px;
  opacity: 0.9;
  cursor: pointer;
}
.nav-cta:hover { opacity: 1; }

/* ─── Image slot placeholder ─── */
.img-slot {
  background:
    repeating-linear-gradient(135deg, rgba(10,18,48,0.04) 0 8px, rgba(10,18,48,0.08) 8px 16px),
    var(--paper-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--navy-700);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.img-slot.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, rgba(255,255,255,0.08) 8px 16px),
    var(--navy-600);
  color: var(--gold-soft);
}
.img-slot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px dashed currentColor;
  opacity: 0.3;
  pointer-events: none;
}
.img-slot .label {
  background: var(--paper);
  padding: 4px 10px;
  border-radius: 2px;
  z-index: 1;
}
.img-slot.dark .label { background: var(--navy-700); color: var(--gold-soft); }

/* ============================================
   HERO 3 — The Big Five
   ============================================ */
.hero-3 {
  background: var(--navy-700);
  color: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.hero-3::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at top left, rgba(201,169,97,0.12), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(20,42,92,0.6), transparent 60%);
  pointer-events: none;
}
.hero-3 .nav { color: var(--paper); }
.hero-3 .nav-cta { border-color: rgba(255,255,255,0.25); }

.hero-3-body {
  flex: 1;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  align-content: center;
  padding: 0 56px 220px;
  gap: 40px;
}

.hero-3-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-3-eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
}
.hero-3-eyebrow .badge {
  background: rgba(201,169,97,0.15);
  border: 1px solid var(--gold);
  padding: 5px 10px;
  border-radius: 2px;
  color: var(--gold);
}
.hero-3-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(48px, 5.6vw, 80px);
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
}
.hero-3-headline em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-soft);
}
.hero-3-sub {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-100);
  margin: 0 0 36px;
  max-width: 480px;
  font-weight: 300;
}
.hero-3-formula {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 36px;
  padding: 20px 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-right: 3px solid var(--gold);
  max-width: 480px;
  flex-wrap: wrap;
}
.hero-3-formula .step {
  text-align: center;
}
.hero-3-formula .step .n {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-3-formula .step .l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-100);
  margin-top: 4px;
  white-space: nowrap;
}
.hero-3-formula .arrow {
  color: var(--gold);
  font-size: 18px;
  opacity: 0.6;
}
.hero-3-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-3-tiny {
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.08em;
  color: var(--navy-100);
}

.hero-3-big {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 540px;
}
.hero-3-big .x-mark {
  font-family: var(--serif);
  font-size: clamp(260px, 38vw, 560px);
  font-weight: 900;
  line-height: 0.85;
  color: var(--gold);
  letter-spacing: -0.06em;
  text-shadow: 0 0 80px rgba(201,169,97,0.2);
  position: relative;
  user-select: none;
}
.hero-3-big .x-mark::after {
  content: "×";
  position: absolute;
  top: 38%;
  left: -0.18em;
  font-size: 0.42em;
  color: var(--paper);
  opacity: 0.85;
  font-weight: 300;
}
.hero-3-big .photo-card {
  position: absolute;
  width: 220px;
  height: 280px;
  bottom: 60px;
  right: 0;
  z-index: 3;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  transform: rotate(-3deg);
  overflow: hidden;
}
.hero-3-big .photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-3-big .ticket {
  position: absolute;
  top: 80px;
  left: 0;
  background: var(--paper);
  color: var(--navy-800);
  padding: 18px 24px;
  font-family: var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  transform: rotate(4deg);
  box-shadow: 0 14px 30px rgba(0,0,0,0.3);
  border-right: 4px solid var(--gold);
}
.hero-3-big .ticket span {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
}
.hero-3-big .ticket strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  margin-top: 6px;
  color: var(--navy-800);
}

/* ============================================
   Problem Section
   ============================================ */
.problem {
  background: var(--paper);
  border-top: 1px solid rgba(10,18,48,0.1);
  border-bottom: 1px solid rgba(10,18,48,0.1);
}
.problem-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 56px;
}
.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}
.problem .eyebrow,
.curriculum .eyebrow,
.about .eyebrow,
.final-cta .eyebrow {
  font-size: 36px;
  gap: 24px;
}
.problem .eyebrow::before,
.problem .eyebrow::after,
.curriculum .eyebrow::before,
.curriculum .eyebrow::after,
.about .eyebrow::before,
.about .eyebrow::after,
.final-cta .eyebrow::before,
.final-cta .eyebrow::after {
  width: 72px;
  height: 2px;
}

.problem h2 {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.problem h2 em { font-style: italic; color: var(--gold); }

.problem-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.problem-list li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(10,18,48,0.1);
  align-items: start;
}
.problem-list li:first-child { padding-top: 0; }
.problem-list .num {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.problem-list h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.problem-list p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-700);
  opacity: 0.8;
}

/* ============================================
   Curriculum Section
   ============================================ */
.curriculum {
  background: var(--navy-800);
  color: var(--paper);
}
.curriculum-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 56px;
}
.curriculum-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: end;
  margin-bottom: 64px;
}
.curriculum h2 {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 24px 0 0;
}
.curriculum-head p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy-100);
  margin: 0;
}
.curriculum-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.1);
}
.curriculum-card {
  padding: 36px 32px;
  background: var(--navy-800);
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 220px;
  transition: background 0.2s ease;
}
.curriculum-card:hover { background: var(--navy-700); }
.curriculum-card .ch {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.curriculum-card h3 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.curriculum-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy-100);
  margin: 0;
  opacity: 0.85;
}

/* ============================================
   About Section
   ============================================ */
.about {
  background: var(--paper-2);
}
.about-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 120px 56px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: center;
}
.about-photo {
  height: 560px;
  overflow: hidden;
}
.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.about-text h2 {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 24px 0 28px;
}
.about-text h2 em { font-style: italic; color: var(--gold); }
.about-text p {
  font-size: 17px;
  line-height: 1.7;
  margin: 0 0 18px;
  color: var(--navy-700);
}
.about-credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
  padding-top: 32px;
  border-top: 1px solid rgba(10,18,48,0.15);
}
.about-credentials .item .n {
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--navy-700);
  line-height: 1;
}
.about-credentials .item .l {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy-700);
  margin-top: 8px;
  opacity: 0.7;
}

/* ============================================
   Registration / Final CTA
   ============================================ */
.final-cta {
  background: var(--navy-900);
  color: var(--paper);
  padding: 120px 56px;
}
.final-cta-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.final-cta-copy h2 {
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 28px 0 24px;
}
.final-cta-copy h2 em { font-style: italic; color: var(--gold); }
.final-cta-copy p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy-100);
  margin: 0 0 16px;
  font-weight: 300;
}
.when {
  margin-top: 28px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--navy-100);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}
.when .dot {
  width: 8px;
  height: 8px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(74,222,128,0.18);
  flex-shrink: 0;
}

/* Registration form card */
.reg-card {
  background: var(--paper);
  border-radius: 4px;
  padding: 40px 44px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.28);
}
.reg-card-title {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-800);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}
.reg-card-sub {
  font-size: 14px;
  color: var(--navy-300);
  margin: 0 0 28px;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy-700);
  margin-bottom: 7px;
  letter-spacing: 0.01em;
  font-family: var(--mono);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.1em;
}
.form-group .optional {
  font-weight: 400;
  color: var(--navy-300);
  text-transform: none;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0;
}
.form-group input:not([type="checkbox"]) {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--paper-3);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--navy-800);
  background: var(--paper);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  direction: rtl;
  text-align: right;
  appearance: none;
  -webkit-appearance: none;
}
.form-group input:not([type="checkbox"]):focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201,169,97,0.18);
}
.form-group input::placeholder {
  color: var(--navy-100);
  font-weight: 300;
}

/* Volunteer checkbox */
.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  margin-bottom: 22px;
  background: var(--paper-2);
  border-right: 3px solid var(--gold);
  border-radius: 3px;
}
.form-checkbox input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--gold);
  cursor: pointer;
}
.form-checkbox label {
  display: block;
  margin-bottom: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--navy-800);
}
.form-checkbox .checkbox-label-text {
  display: block;
  font-weight: 700;
  color: var(--navy-800);
  margin-bottom: 6px;
  line-height: 1.4;
}
.form-checkbox .checkbox-help {
  display: block;
  font-size: 13px;
  color: var(--navy-300);
  line-height: 1.55;
  font-weight: 300;
}
.btn-submit {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 18px;
  font-size: 17px;
  margin-top: 8px;
  border-radius: 3px;
}
.form-note {
  text-align: center;
  margin-top: 14px;
  font-size: 12px;
  color: var(--navy-300);
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

/* Success state (shown after FormSubmit redirect with ?registered=1) */
.reg-success {
  text-align: center;
  padding: 56px 44px;
}
.reg-success-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy-900);
  font-size: 36px;
  font-weight: 700;
  line-height: 64px;
}
.reg-success .reg-card-title {
  margin-bottom: 18px;
  font-size: 30px;
}
.reg-success-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-700);
  margin: 0 0 14px;
}
.reg-success-sub {
  font-size: 13px;
  color: var(--navy-300);
  font-family: var(--mono);
  letter-spacing: 0.04em;
  margin: 0;
}

/* Sold-out state (shown when <body data-status="full">) */
.reg-full {
  text-align: center;
  padding: 56px 44px;
}
.reg-full .reg-card-title {
  margin-bottom: 16px;
  font-size: 30px;
}
.reg-full-text {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-700);
  margin: 0 0 14px;
}
.reg-full-sub {
  font-size: 14px;
  color: var(--navy-300);
  line-height: 1.6;
  margin: 0 0 28px;
}
.reg-full-btn {
  width: 100%;
  text-align: center;
  justify-content: center;
  padding: 16px;
  font-size: 16px;
  border-radius: 3px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  background: var(--navy-900);
  color: var(--navy-100);
  padding: 32px 56px;
  display: flex;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 900px) {
  .nav { padding: 18px 28px; }
  .nav-links { display: none; }

  .hero-3-body {
    grid-template-columns: 1fr;
    padding: 0 28px 48px;
    gap: 0;
  }
  .hero-3-big {
    min-height: 320px;
    order: -1;
  }
  .hero-3-big .x-mark {
    font-size: clamp(180px, 48vw, 280px);
  }
  .hero-3-big .photo-card {
    width: 140px;
    height: 180px;
    bottom: 20px;
  }
  .hero-3-big .ticket {
    top: 30px;
    padding: 10px 14px;
  }

  .problem-inner { padding: 72px 28px; }
  .problem-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .problem h2 { font-size: 44px; }

  .curriculum-inner { padding: 72px 28px; }
  .curriculum-head { grid-template-columns: 1fr; gap: 24px; }
  .curriculum h2 { font-size: 48px; }
  .curriculum-grid { grid-template-columns: 1fr; }

  .about-inner {
    grid-template-columns: 1fr;
    padding: 72px 28px;
    gap: 40px;
  }
  .about-photo { height: 320px; }
  .about-text h2 { font-size: 40px; }

  .final-cta { padding: 72px 28px; }
  .final-cta-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .final-cta-copy h2 { font-size: 44px; }
  .reg-card { padding: 28px 24px; }

  .footer {
    flex-direction: column;
    gap: 12px;
    padding: 28px;
    text-align: center;
  }
  .footer > * { text-align: center !important; }
}

@media (max-width: 600px) {
  .hero-3-formula { gap: 12px; padding: 16px; }
  .hero-3-formula .step .n { font-size: 22px; }
  .about-credentials { grid-template-columns: 1fr 1fr; }
}
