/* ============================================================
   CASE STUDY — RAMA (ראמ״ה)
   National Authority for Measurement & Evaluation in Education
   ============================================================ */

/* ── FONT (SimplerPro — same family the product uses) ──────── */
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Light.otf') format('opentype');
  font-weight: 300; font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Regular.otf') format('opentype');
  font-weight: 400; font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Bold.otf') format('opentype');
  font-weight: 700; font-style: normal;
}
@font-face {
  font-family: 'SimplerPro';
  src: url('../assets/social school/SimplerPro_V3 copy/SimplerPro_V3-Black.otf') format('opentype');
  font-weight: 900; font-style: normal;
}

/* ── PAGE-SCOPED TOKENS (RAMA palette) ─────────────────────── */
:root {
  --rm-navy:     #18267A;   /* deep royal blue — primary */
  --rm-purple:   #6C5CE0;   /* violet */
  --rm-teal:     #12C7A6;   /* emerald / teal */
  --rm-lime:     #CDDC28;   /* lime */
  --rm-sky:      #8BD0EE;   /* light sky blue */
  --rm-lavender: #C9C3F3;   /* lavender */
  --rm-cream:    #FAF8F5;   /* off-white */
  --rm-ink:      #141a3c;   /* near-black navy text */
}

body {
  font-family: 'SimplerPro', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #fff;
}

/* ── SCROLL-REVEAL ANIMATIONS ──────────────────────────────── */
.rm-anim-up    { opacity: 0; transform: translateY(40px); transition: opacity .75s ease, transform .75s ease; }
.rm-anim-left  { opacity: 0; transform: translateX(-50px); transition: opacity .75s ease, transform .75s ease; }
.rm-anim-right { opacity: 0; transform: translateX(50px);  transition: opacity .75s ease, transform .75s ease; }
.rm-anim-up.in,
.rm-anim-left.in,
.rm-anim-right.in { opacity: 1; transform: none; }

/* ── HERO ──────────────────────────────────────────────────── */
.rm-hero {
  width: 100%;
  line-height: 0;
  background: var(--rm-cream);
}
.rm-hero video,
.rm-hero img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── PROJECT OVERVIEW ──────────────────────────────────────── */
.rm-info {
  background: #fff;
  padding: 90px 48px;
  border-bottom: 1px solid rgba(24,38,122,.1);
}
.rm-info-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 80px;
  align-items: start;
  max-width: 1280px;
  margin: 0 auto;
}
.rm-title {
  font-weight: 900;
  font-size: clamp(46px, 6vw, 92px);
  color: var(--rm-navy);
  line-height: .98;
  letter-spacing: -.01em;
  margin-bottom: 28px;
}
.rm-tagline {
  font-weight: 900;
  font-size: clamp(24px, 2.6vw, 36px);
  line-height: 1.25;
  color: var(--rm-navy);
  margin-bottom: 18px;
  max-width: 620px;
}
.rm-lead {
  font-size: 19px;
  line-height: 1.7;
  color: var(--rm-navy);
  margin-bottom: 40px;
  max-width: 620px;
}

.rm-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--rm-teal);
  margin-bottom: 18px;
}
.rm-desc {
  font-size: 17px;
  line-height: 1.9;
  color: var(--rm-ink);
  opacity: .78;
  margin-bottom: 20px;
  max-width: 620px;
}
.rm-desc strong { color: var(--rm-navy); opacity: 1; font-weight: 700; }

.rm-meta-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--rm-navy);
  opacity: .4;
  margin-bottom: 20px;
}
.rm-meta-rows {
  display: flex;
  flex-direction: column;
  border-top: 1px solid rgba(24,38,122,.14);
}
.rm-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(24,38,122,.14);
  gap: 16px;
}
.rm-meta-key {
  font-size: 12px;
  font-weight: 700;
  color: var(--rm-navy);
  opacity: .5;
  flex-shrink: 0;
}
.rm-meta-val {
  font-size: 14px;
  color: var(--rm-navy);
  font-weight: 400;
  text-align: left;
}
a.rm-meta-val {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity .2s;
}
a.rm-meta-val:hover { opacity: .6; }

.rm-live-link {
  display: inline-block;
  margin-top: 22px;
  background: var(--rm-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 15px 34px;
  border-radius: 40px;
  text-decoration: none;
  transition: background .25s, transform .2s;
}
.rm-live-link:hover { background: #10173f; transform: translateY(-2px); }

/* ── LINEAR MEDIA FLOW (02 → 29, by file order) ────────────
   Landscape assets run edge to edge; portrait assets pair up
   in a two-column grid that collapses to one on small screens.
   ─────────────────────────────────────────────────────────── */
.rm-flow { background: #fff; }

/* landscape / wide — full screen width */
.rm-wide { width: 100%; line-height: 0; }
.rm-wide img,
.rm-wide video {
  width: 100%;
  height: auto;
  display: block;
}

/* portrait / vertical — balanced two-column grid */
.rm-pairs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  padding: 24px 48px;
  max-width: 1680px;
  margin: 0 auto;
  align-items: start;
}
.rm-pairs > * { line-height: 0; }
.rm-pairs img,
.rm-pairs video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ── חקירה חזותית: נכס נעוץ + כרטיסיות ──────────────────────
   הנכס הסטטי יושב בתחילת השורה (בימין, כיוון שהדף RTL) ונשאר
   במקומו כהקשר; כיווני העיצוב מוצגים לצידו בכרטיסיות.
   ─────────────────────────────────────────────────────────── */
.rm-explore {
  padding: 90px 48px;
  background: var(--rm-cream);
}
.rm-explore-head {
  max-width: 820px;
  margin: 0 0 48px;
}
.rm-explore-h {
  font-weight: 900;
  font-size: clamp(26px, 3.2vw, 44px);
  line-height: 1.18;
  color: var(--rm-navy);
  margin-bottom: 18px;
}
.rm-explore-p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--rm-ink);
  opacity: .78;
}

.rm-explore-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: start;
  max-width: 1680px;
  margin: 0 auto;
}

/* left/static column — pinned while the carousel sits alongside */
.rm-explore-static {
  position: sticky;
  top: 90px;
  line-height: 0;
}
.rm-explore-static img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* carousel column — min-width:0 lets the track shrink inside the grid */
.rm-explore-slider { min-width: 0; }

/* tabs: one button per design direction */
/* beats the site-wide `body * { cursor: none }` that hides the native
   cursor for the bird — these targets are too small to aim the bird at */
.rm-tabs,
.rm-tabs * { cursor: pointer !important; }

.rm-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}
.rm-tab {
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--rm-navy);
  background: transparent;
  border: 1px solid rgba(24,38,122,.22);
  border-radius: 40px;
  padding: 15px 30px;
  min-width: 110px;
  cursor: pointer;
  transition: background .22s ease, color .22s ease, border-color .22s ease;
}
.rm-tab:hover { border-color: var(--rm-navy); }
.rm-tab.is-active {
  background: var(--rm-navy);
  border-color: var(--rm-navy);
  color: #fff;
}
.rm-tab:focus-visible { outline: 2px solid var(--rm-teal); outline-offset: 3px; }

/* panels share one grid cell, so the height never jumps between them */
.rm-tab-panels { display: grid; }
.rm-tab-panel {
  grid-area: 1 / 1;
  margin: 0;
  line-height: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease;
}
.rm-tab-panel.is-active { opacity: 1; visibility: visible; }
.rm-tab-panel img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* headings inside the media flow */
.rm-flow-head {
  max-width: 1680px;
  margin: 0 auto;
  padding: 76px 48px 30px;
}
.rm-flow-h {
  font-weight: 900;
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  color: var(--rm-navy);
}

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 900px) {
  .rm-info { padding: 60px 24px; }
  .rm-info-grid { grid-template-columns: 1fr; gap: 44px; }
  .rm-pairs { gap: 18px; padding: 18px 24px; }

  .rm-explore { padding: 60px 24px; }
  .rm-explore-head { margin-bottom: 32px; }
  .rm-explore-grid { grid-template-columns: 1fr; gap: 24px; }
  .rm-explore-static { position: static; }

  .rm-flow-head { padding: 48px 24px 22px; }
}

@media (max-width: 700px) {
  .rm-pairs { grid-template-columns: 1fr; gap: 16px; }
  .rm-pairs > * { transition-delay: 0s !important; }
}


/* The nav is fixed, so on a phone it sits on top of the opening image.
   Reserve its height here — clears the fixed nav. */
@media (max-width: 900px) {
  .rm-hero {
    padding-top: 70px;
  }
}
