/* ============================================================
   ישראל 2.0 — Design System
   Premium RTL-first layout · Navy + Gold + Ivory
   ============================================================ */

/* ----- Root Variables ----- */
:root {
  --navy: #0A1628;
  --navy-mid: #0F1F3A;
  --navy-light: #162A4A;
  --gold: #C9A84C;
  --gold-light: #E8D5B7;
  --gold-dim: #8B7635;
  --gold-glow: rgba(201, 168, 76, 0.35);
  --ivory: #F5F1EB;
  --ivory-dark: #E8E0D5;
  --white: #FEFDFB;
  --text-primary: #1A1A2E;
  --text-secondary: #3D3D56;
  --text-muted: #6B6B80;
  --text-on-dark: #E8E0D5;
  --text-on-dark-muted: #9A96A6;
  --green: #2D6A4F;
  --amber: #B8751A;
  --amber-light: #F0C878;
  --surface-dark: #0D0D14;
  --surface-card-dark: rgba(255, 255, 255, 0.04);
  --surface-card-dark-border: rgba(255, 255, 255, 0.07);
  --surface-card-light: #FFFFFF;
  --surface-card-light-border: rgba(0, 0, 0, 0.06);

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.14);
  --shadow-gold: 0 4px 20px rgba(201, 168, 76, 0.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition: 0.35s var(--ease);
  --transition-fast: 0.2s var(--ease);

  --max-width: 1140px;
  --section-padding: clamp(4rem, 8vw, 7.5rem);
  --container-padding: clamp(1.25rem, 4vw, 2.5rem);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Heebo', 'Segoe UI', sans-serif;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-primary);
  background: var(--ivory);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { border: none; background: none; cursor: pointer; font: inherit; color: inherit; }

/* ----- Scroll Progress ----- */
.scroll-progress {
  position: fixed;
  top: 0;
  right: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(to left, var(--gold), var(--gold-light));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* ----- Navigation Sidebar ----- */
.nav-sidebar {
  position: fixed;
  top: 50%;
  left: 2rem;
  transform: translateY(-50%);
  z-index: 500;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  opacity: 0;
  transition: opacity 0.5s var(--ease);
}
.nav-sidebar.visible { opacity: 1; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  flex-direction: row-reverse;
}
.nav-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold-dim);
  background: transparent;
  transition: var(--transition);
  flex-shrink: 0;
}
.nav-item.active .nav-dot,
.nav-item:hover .nav-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 10px var(--gold-glow);
  transform: scale(1.3);
}
.nav-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-on-dark-muted);
  opacity: 0;
  transform: translateX(6px);
  transition: var(--transition);
  white-space: nowrap;
  pointer-events: none;
}
.nav-item:hover .nav-label,
.nav-item.active .nav-label {
  opacity: 1;
  transform: translateX(0);
}

/* on light backgrounds */
.nav-sidebar.on-light .nav-label { color: var(--text-muted); }
.nav-sidebar.on-light .nav-dot { border-color: var(--gold-dim); }

/* ----- Container ----- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 2rem var(--container-padding);
}
/* Subtle grid overlay */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 1;
}
/* Radial glow */
.hero::after {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 168, 76, 0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--gold);
  border: 1px solid var(--gold-dim);
  padding: 0.4rem 1.5rem;
  border-radius: 100px;
  margin-bottom: 2rem;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero h1 .gold {
  color: var(--gold);
  animation: goldPulse 4s ease-in-out infinite;
}
.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.35rem);
  font-weight: 300;
  color: var(--text-on-dark-muted);
  margin-bottom: 2.5rem;
  line-height: 1.6;
}
.hero-date {
  font-size: 0.8rem;
  color: var(--gold-dim);
  margin-bottom: 3rem;
  font-family: 'Inter', sans-serif;
}
.hero-summary {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  text-align: right;
  color: var(--text-on-dark);
  font-size: 0.95rem;
  line-height: 1.85;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hero-summary p { margin-bottom: 0; }

.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--gold-dim);
  font-size: 0.7rem;
  animation: scrollBounce 2.5s ease-in-out infinite;
}
.scroll-indicator-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, var(--gold-dim), transparent);
}

@keyframes goldPulse {
  0%, 100% { text-shadow: 0 0 20px rgba(201, 168, 76, 0.2); }
  50% { text-shadow: 0 0 50px rgba(201, 168, 76, 0.4), 0 0 80px rgba(201, 168, 76, 0.15); }
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  50% { transform: translateX(-50%) translateY(10px); opacity: 0.5; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-padding) 0;
  position: relative;
}
.section--dark {
  background: var(--navy);
  color: var(--text-on-dark);
}
.section--light {
  background: var(--ivory);
  color: var(--text-primary);
}
.section--ivory-dark {
  background: var(--ivory-dark);
  color: var(--text-primary);
}

.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}
.section--dark .section-header h2 { color: var(--white); }
.section--light .section-header h2 { color: var(--navy); }

.section-header .subtitle {
  font-size: 1.05rem;
  font-weight: 300;
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.7;
}
.section--dark .section-header .subtitle { color: var(--text-on-dark-muted); }
.section--light .section-header .subtitle { color: var(--text-muted); }

.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gold);
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ============================================================
   TIMELINE (Overview)
   ============================================================ */
.timeline-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  position: relative;
  padding-top: 3rem;
}
/* Horizontal connecting line */
.timeline-overview::before {
  content: '';
  position: absolute;
  top: 0;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: linear-gradient(to left, var(--gold), var(--gold-dim), var(--gold));
}
.timeline-phase {
  text-align: center;
  position: relative;
}
/* Dot on the line */
.timeline-phase::before {
  content: '';
  position: absolute;
  top: -3rem;
  left: 50%;
  transform: translate(-50%, -50%);
  top: -2.55rem;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--gold);
  border: 3px solid var(--ivory);
  box-shadow: 0 0 0 3px var(--gold-dim);
  z-index: 2;
}
.timeline-phase-number {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}
.timeline-phase-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.35rem;
  line-height: 1.4;
}
.timeline-phase-time {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: 'Inter', sans-serif;
}

/* ============================================================
   CHAPTER HEADERS
   ============================================================ */
.chapter-header {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.chapter-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  opacity: 0.3;
  flex-shrink: 0;
}
.chapter-meta h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.15rem);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.35rem;
}
.section--dark .chapter-meta h2 { color: var(--white); }
.section--light .chapter-meta h2 { color: var(--navy); }

.chapter-timeframe {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--gold);
  background: rgba(201, 168, 76, 0.1);
  border: 1px solid rgba(201, 168, 76, 0.2);
  padding: 0.25rem 0.9rem;
  border-radius: 100px;
}
.chapter-intro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 800px;
}
.section--dark .chapter-intro { color: var(--text-on-dark-muted); }
.section--light .chapter-intro { color: var(--text-secondary); }

/* ============================================================
   CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  padding: 2rem;
  border-radius: var(--radius-md);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
/* Dark section cards */
.section--dark .card {
  background: var(--surface-card-dark);
  border: 1px solid var(--surface-card-dark-border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.section--dark .card:hover {
  background: rgba(255, 255, 255, 0.065);
  border-color: rgba(201, 168, 76, 0.25);
  transform: translateY(-3px);
  box-shadow: var(--shadow-gold);
}
/* Light section cards */
.section--light .card,
.section--ivory-dark .card {
  background: var(--surface-card-light);
  border: 1px solid var(--surface-card-light-border);
  box-shadow: var(--shadow-xs);
}
.section--light .card:hover,
.section--ivory-dark .card:hover {
  border-color: rgba(201, 168, 76, 0.35);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), var(--shadow-gold);
}

/* Gold accent line on top */
.card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.card:hover::before { transform: scaleX(1); }

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  display: block;
  line-height: 1;
}
.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.section--dark .card-title { color: var(--white); }
.section--light .card-title,
.section--ivory-dark .card-title { color: var(--navy); }

.card-text {
  font-size: 0.9rem;
  line-height: 1.75;
}
.section--dark .card-text { color: var(--text-on-dark-muted); }
.section--light .card-text,
.section--ivory-dark .card-text { color: var(--text-secondary); }

/* ============================================================
   THE BROKEN SYSTEM — Special Section
   ============================================================ */
.broken-system {
  background: var(--surface-dark);
  color: var(--text-on-dark);
  padding: var(--section-padding) 0;
  position: relative;
}
/* Warm amber accent line at top */
.broken-system::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(to left, var(--amber), var(--amber-light), var(--amber));
}

.broken-intro {
  max-width: 800px;
  margin: 0 auto 3.5rem;
  text-align: center;
}
.broken-intro h2 {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 900;
  color: var(--white);
  margin-bottom: 0.75rem;
}
.broken-intro .subtitle {
  font-size: 1rem;
  color: var(--text-on-dark-muted);
  line-height: 1.8;
}
.broken-divider {
  width: 60px;
  height: 3px;
  background: var(--amber);
  border-radius: 2px;
  margin: 1rem auto 0;
}

.crisis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 3.5rem;
}
.crisis-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.crisis-item:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(184, 117, 26, 0.3);
  transform: translateY(-2px);
}
.crisis-item::before {
  content: '';
  position: absolute;
  top: 0; right: 0; left: 0;
  height: 2px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.crisis-item:hover::before { transform: scaleX(1); }

.crisis-icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  display: block;
}
.crisis-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.4rem;
}
.crisis-text {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text-on-dark-muted);
}

/* Core message block */
.core-message {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  padding: 3rem 2.5rem;
  border-radius: var(--radius-lg);
  background: rgba(184, 117, 26, 0.06);
  border: 1px solid rgba(184, 117, 26, 0.15);
}
.core-message h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--amber-light);
  margin-bottom: 1rem;
}
.core-message p {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-on-dark);
  margin-bottom: 1rem;
}
.core-message p:last-child { margin-bottom: 0; }

.core-message-highlight {
  color: var(--amber-light);
  font-weight: 600;
}

/* ============================================================
   CLOSING / SUMMARY
   ============================================================ */
.closing {
  text-align: center;
}
.closing-content {
  max-width: 750px;
  margin: 0 auto;
}
.closing h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.3;
}
.closing p {
  font-size: 1.05rem;
  line-height: 1.85;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.25rem;
}
.closing p:last-of-type { margin-bottom: 0; }

.closing-signature {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: #060A10;
  padding: 2.5rem 0;
  text-align: center;
}
.footer-domain {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.footer-note {
  font-size: 0.75rem;
  color: var(--text-on-dark-muted);
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.slide-right {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.slide-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Staggered children */
.stagger-children .fade-in:nth-child(1) { transition-delay: 0.05s; }
.stagger-children .fade-in:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .fade-in:nth-child(3) { transition-delay: 0.19s; }
.stagger-children .fade-in:nth-child(4) { transition-delay: 0.26s; }
.stagger-children .fade-in:nth-child(5) { transition-delay: 0.33s; }
.stagger-children .fade-in:nth-child(6) { transition-delay: 0.40s; }
.stagger-children .fade-in:nth-child(7) { transition-delay: 0.47s; }
.stagger-children .fade-in:nth-child(8) { transition-delay: 0.54s; }

/* Counter numbers */
.stat-number {
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.35rem;
}
.stat-label {
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--text-on-dark-muted);
}
.section--light .stat-label { color: var(--text-muted); }
.section--light .stat-number { color: var(--navy); }

.stats-row {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin: 3rem 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu-toggle {
  display: none;
  position: fixed;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 600;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  border: 1px solid rgba(201, 168, 76, 0.2);
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
}
.mobile-menu-toggle span {
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: block;
  position: relative;
  transition: var(--transition-fast);
}
.mobile-menu-toggle span::before,
.mobile-menu-toggle span::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 2px;
  background: var(--gold);
  transition: var(--transition-fast);
}
.mobile-menu-toggle span::before { top: -6px; }
.mobile-menu-toggle span::after { top: 6px; }

.mobile-menu-toggle.active span { background: transparent; }
.mobile-menu-toggle.active span::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle.active span::after { top: 0; transform: rotate(-45deg); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .timeline-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
  .timeline-overview::before { display: none; }
  .timeline-phase::before { display: none; }
  .stats-row { gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-sidebar { display: none; }
  .mobile-menu-toggle { display: flex; }

  .nav-sidebar.mobile-open {
    display: flex;
    top: 0;
    left: 0;
    right: auto;
    transform: none;
    width: 220px;
    height: 100vh;
    height: 100dvh;
    background: var(--navy);
    border-left: 1px solid rgba(201, 168, 76, 0.15);
    padding: 5rem 1.5rem 2rem;
    gap: 1.5rem;
    opacity: 1;
    z-index: 550;
  }
  .nav-sidebar.mobile-open .nav-label {
    opacity: 1;
    transform: translateX(0);
    font-size: 0.85rem;
  }

  .hero h1 { font-size: clamp(2.5rem, 10vw, 4rem); }
  .hero-summary { padding: 1.5rem; }

  .timeline-overview { grid-template-columns: 1fr; gap: 1.5rem; }
  .card-grid { grid-template-columns: 1fr; }
  .crisis-grid { grid-template-columns: 1fr; }

  .chapter-header { flex-direction: column; gap: 0.75rem; }
  .chapter-number { font-size: 2rem; }

  .stats-row { gap: 2rem; }
  .core-message { padding: 2rem 1.5rem; }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem;
    --container-padding: 1rem;
  }
  .hero-badge { font-size: 0.7rem; padding: 0.3rem 1rem; }
  .hero-summary { font-size: 0.88rem; }
  .stats-row { flex-direction: column; gap: 1.5rem; }
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in, .slide-right { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
