/* ============================================================
   MedVR Education — Page styles: index.html  (FIXED)
   assets/css/pages/index.css
   ============================================================ */

/* ─── GLOBAL RESET / CSS VARS ────────────────────────────────────────────── */
:root {
  --navy: #0a1c3a;
  --blue: #2d9dd6;
  --blue-lt: #e5f4fb;
  --green-lt: #e4f5e7;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--gray-700);
  background: #fff;
}

/* ─── HERO — full-bleed background video ────────────────────────────────── */
.hero {
  position: relative;
  padding: 120px 0 90px;
  overflow: hidden;
  min-height: 680px;
  display: flex;
  align-items: center;
  background: var(--navy);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Stronger overlay so text reads clearly regardless of video content */
  background: linear-gradient(
    105deg,
    rgba(10, 28, 58, 0.90) 0%,
    rgba(10, 28, 58, 0.75) 50%,
    rgba(10, 28, 58, 0.55) 100%
  );
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16.8px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.hero-eyebrow::before {
  content: '';
  width: 20px; height: 2px;
  background: var(--blue);
  border-radius: 2px;
}
.hero h1 {
  font-size: clamp(36px, 3.8vw, 60px);
  font-weight: 700;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}
.hero h1 strong { color: var(--blue); }
.hero-sub {
  font-size: 20.4px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 32px;
  max-width: 480px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 44px; flex-wrap: wrap; }
.hero-trust   { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trust-label  {
  font-size: 16.8px;
  color: rgba(255,255,255,0.40);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.trust-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.trust-pill  {
  font-size: 16.8px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 5px;
  padding: 5px 14px;
}

/* ─── BUTTONS ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16.8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}
.btn-blue {
  background: var(--blue);
  color: white;
}
.btn-blue:hover { opacity: .88; transform: translateY(-1px); }
.btn-outline-w {
  border: 1.5px solid rgba(255,255,255,0.35);
  color: white;
  background: transparent;
}
.btn-outline-w:hover { background: rgba(255,255,255,0.1); }
.btn-outline {
  border: 1.5px solid var(--gray-200);
  color: var(--navy);
  background: white;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16.8px;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ─── PLATFORM PREVIEW CARD ─────────────────────────────────────────────── */
.platform-card {
  background: var(--white);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.pc-header {
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
  padding: 12px 18px;
  display: flex; align-items: center; gap: 6px;
}
.macdot { width:10px; height:10px; border-radius:50%; }
.macdot.r { background:#ff5f57; }
.macdot.y { background:#ffbd2e; }
.macdot.g { background:#28c840; }
.pc-tabs {
  margin-left: auto;
  display: flex;
  background: var(--gray-200);
  padding: 3px; border-radius: 6px; gap: 2px;
}
.pc-tab { font-size: 16.8px; font-weight: 600; padding: 4px 12px; border-radius: 4px; color: var(--gray-500); cursor: pointer; }
.pc-tab.active { background: var(--white); color: var(--navy); box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.pc-body { padding: 22px; }
.mini-lib-label { font-size: 16.8px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.09em; margin-bottom: 12px; }
.mini-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin-bottom: 18px; }
.mini-item { border: 1px solid var(--gray-200); border-radius: 9px; overflow: hidden; cursor: pointer; transition: box-shadow 0.2s; }
.mini-item:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.09); }
.mini-thumb { height: 62px; display: flex; align-items: center; justify-content: center; }
.mini-thumb i { font-size: 26.4px; }
.mini-thumb.c1 { background: #dde8f5; } .mini-thumb.c1 i { color: #2255a0; }
.mini-thumb.c2 { background: #d8f0da; } .mini-thumb.c2 i { color: #1a6627; }
.mini-thumb.c3 { background: #f0e0da; } .mini-thumb.c3 i { color: #8a3010; }
.mini-thumb.c4 { background: #e0daf0; } .mini-thumb.c4 i { color: #4a2090; }
.mini-thumb.c5 { background: #d8edf5; } .mini-thumb.c5 i { color: #0a5a7a; }
.mini-thumb.c6 { background: #f5dad0; } .mini-thumb.c6 i { color: #8a2010; }
.mini-name { font-size: 12px; font-weight: 600; color: var(--gray-700); padding: 6px 7px; line-height: 1.3; }
.pc-stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--gray-200); border-radius: 10px; overflow: hidden; }
.pc-stat { padding: 14px; text-align: center; border-right: 1px solid var(--gray-200); }
.pc-stat:last-child { border-right: none; }
.pc-stat-num { font-size: 25.2px; font-weight: 700; color: var(--navy); line-height: 1; }
.pc-stat-lbl { font-size: 12px; color: var(--gray-500); margin-top: 3px; }

/* ─── PARTNER LOGOS — scrolling strip ───────────────────────────────────── */
.partners {
  padding: 32px 0 28px;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}
.partners-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; margin-bottom: 20px; text-align: center; }
.partners-label { font-size: 16.8px; font-weight: 700; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.09em; }
.partners-scroll-wrap {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
          mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}
.partners-track {
  display: flex;
  align-items: center;
  gap: 48px;
  flex-shrink: 0;
  padding-right: 48px;
  animation: scroll-partners 200s linear infinite;
}
.partners-track:hover { animation-play-state: paused; }
@keyframes scroll-partners {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}
.ps-item { display: flex; align-items: center; flex-shrink: 0; }
.ps-item img {
  height: 125px;
  width: auto;
  object-fit: contain;
  /* ✅ FIXED: Natural colors, no dark filter — just slight desaturation for unity */
  filter: grayscale(20%) opacity(0.85);
  transition: filter 0.25s, transform 0.25s;
}
.ps-item img:hover {
  filter: grayscale(0%) opacity(1);
  transform: scale(1.05);
}

/* ─── STATS ROW ──────────────────────────────────────────────────────────── */
.stats-row { padding: 64px 0; background: var(--white); }
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4,1fr);
}
.stat-item { text-align: center; padding: 8px 24px; border-right: 1px solid var(--gray-200); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 52.8px; font-weight: 700; color: var(--navy); line-height: 1; letter-spacing: -0.03em; }
.stat-num sup { font-size: 26.4px; color: var(--blue); }
.stat-lbl { font-size: 16.8px; color: var(--gray-500); margin-top: 8px; }
.stat-sub { font-size: 14.4px; color: var(--gray-400); margin-top: 4px; }

/* ─── GENERIC SECTION + BG VARIANTS ─────────────────────────────────────── */
.section { padding: 80px 0; }
.section.bg-g  { background: #f6f8fb; }
.section.bg-navy { background: var(--navy); }
.inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }

.sec-header.center { text-align: center; margin-bottom: 48px; }
.sec-label {
  display: inline-block;
  font-size: 16.8px;
  font-weight: 700;
  color: var(--blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.sec-h2 { font-size: clamp(26.4px,2.6vw,40.8px); font-weight: 700; color: var(--navy); margin-bottom: 12px; letter-spacing: -0.02em; }
.sec-desc { font-size: 19.2px; color: var(--gray-500); line-height: 1.7; max-width: 560px; margin: 0 auto; }

/* ─── TWO-COL LAYOUT ─────────────────────────────────────────────────────── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.two-col.flip { direction: rtl; }
.two-col.flip > * { direction: ltr; }
.ft { display: flex; flex-direction: column; gap: 16px; }
.ft h2 { font-size: clamp(26.4px,2.4vw,38.4px); font-weight: 700; color: var(--navy); line-height: 1.2; letter-spacing: -0.02em; }
.ft p  { font-size: 18px; color: var(--gray-600); line-height: 1.75; }

.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { font-size: 16.8px; color: var(--gray-600); display: flex; align-items: flex-start; gap: 10px; }
.check-list li i { color: var(--blue); font-size: 19.2px; flex-shrink: 0; margin-top: 1px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 16.8px;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  margin-top: 4px;
}
.link-more.light { color: var(--blue); }
.link-more:hover { gap: 10px; }

/* ─── WHY MEDVR — 4 image cards ─────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 20px;
}
.why-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
  transition: box-shadow 0.22s, transform 0.22s;
}
.why-card:hover { box-shadow: 0 10px 32px rgba(0,0,0,0.11); transform: translateY(-3px); }
.why-img-wrap {
  height: 190px;
  overflow: hidden;
  background: var(--gray-100);
}
.why-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s;
}
.why-card:hover .why-img-wrap img { transform: scale(1.05); }
.why-card-body { padding: 20px; }
.why-icon {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.why-icon i { color: #1260a0; font-size: 19.2px; }
.why-card-body h3 { font-size: 18px; font-weight: 700; color: var(--navy); margin-bottom: 7px; }
.why-card-body p  { font-size: 15.6px; color: var(--gray-600); line-height: 1.6; margin-bottom: 12px; }

/* ─── FEATURE IMAGE (2-col sections) ────────────────────────────────────── */
.feat-img-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  background: var(--gray-100);
}
.feat-img-wrap img { width: 100%; height: auto; display: block; }
.feat-img {
  width: 100%; height: auto; display: block;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
}

/* ─── XR FEATURES SECTION — full-width bg image + overlaid icon grid ──────*/
.xr-features-section {
  position: relative;
  overflow: hidden;
  padding: 80px 0 88px;
  background: #0e2040;
}
/* ── background photo — FIXED: proper sizing ── */
.xrf-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 0;
}
.xrf-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 22, 48, 0.70);
  z-index: 1;
}
.xrf-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.xrf-title {
  font-size: clamp(26.4px, 2.6vw, 38.4px);
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.015em;
  margin-bottom: 56px;
  line-height: 1.25;
}
.xrf-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 56px;
}
.xrf-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.xrf-icon-ring {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background 0.2s, border-color 0.2s;
}
.xrf-item:hover .xrf-icon-ring {
  background: rgba(45, 157, 214, 0.25);
  border-color: var(--blue);
}
.xrf-icon-ring i {
  font-size: 33.6px;
  color: var(--white);
  transition: color 0.2s;
}
.xrf-item:hover .xrf-icon-ring i { color: var(--blue); }
.xrf-item h4 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  line-height: 1.35;
}
.xrf-item p {
  font-size: 15.6px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.65;
  max-width: 240px;
  margin: 0 auto;
}

/* ─── VIDEO EMBED ─────────────────────────────────────────────────────────── */
.video-embed-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 36px rgba(0,0,0,0.20);
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}
.video-embed-wrap video,
.video-embed-wrap iframe {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  display: block; border: none;
}

/* ─── CATEGORY GRID ──────────────────────────────────────────────────────── */
.cat-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 14px; }
.cat-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s;
}
.cat-card:hover { border-color: var(--blue); box-shadow: 0 4px 16px rgba(45,157,214,0.16); transform: translateY(-2px); }
.cat-icon-wrap {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 10px;
}
.cat-icon-wrap i { color: #1260a0; font-size: 21.6px; }
.cat-icon-wrap.g { background: var(--green-lt); } .cat-icon-wrap.g i { color: #1a6427; }
.cat-icon-wrap.n { background: #dde5f0; }         .cat-icon-wrap.n i { color: var(--navy); }
.cat-name  { font-size: 16.8px; font-weight: 600; color: var(--gray-700); line-height: 1.4; }
.cat-count { font-size: 12px; color: var(--blue); font-weight: 600; margin-top: 3px; }

/* ─── TESTIMONIALS ───────────────────────────────────────────────────────── */
.test-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.test-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 30px;
  transition: box-shadow 0.2s;
}
.test-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.08); }
.test-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 18px; }
.test-org { font-size: 16.8px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 0.08em; }
.test-quote-mark i { font-size: 26.4px; color: #b8ddf4; }
.test-body {
  font-size: 18px; color: var(--gray-600); line-height: 1.75;
  margin-bottom: 20px; font-style: italic; font-family: 'Merriweather', serif;
}
.test-attr { display: flex; align-items: center; gap: 14px; padding-top: 16px; border-top: 1px solid var(--gray-200); }
.test-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-size: 15.6px; font-weight: 700; color: white; flex-shrink: 0;
}
.test-name { font-size: 15.6px; font-weight: 600; color: var(--navy); }
.test-role { font-size: 14.4px; color: var(--gray-500); }

/* ─── CTA BAND ────────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #0d3060 100%);
  padding: 72px 0;
}
.cta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
  text-align: center;
}
.cta-inner h2 { font-size: clamp(28.8px,3vw,45.6px); font-weight: 700; color: white; margin-bottom: 12px; letter-spacing: -0.02em; }
.cta-inner p  { font-size: 20.4px; color: rgba(255,255,255,0.65); margin-bottom: 32px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ─── FOOTER ─────────────────────────────────────────────────────────────── */
.sitefooter { background: var(--navy); padding: 64px 0 32px; }
.sf-inner { max-width: var(--max-w); margin: 0 auto; padding: 0 40px; }
.sf-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.sf-brand-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 21.6px; font-weight: 700; color: white;
  margin-bottom: 14px;
}
.sf-brand-logo em { color: var(--blue); font-style: normal; }
.sf-brand-logo i { font-size: 26.4px; color: var(--blue); }
.sf-brand p { font-size: 15.6px; color: rgba(255,255,255,0.50); line-height: 1.7; margin-bottom: 20px; }
.sf-contact { display: flex; flex-direction: column; gap: 8px; }
.sf-contact-item { font-size: 14.4px; color: rgba(255,255,255,0.45); display: flex; align-items: center; gap: 8px; }
.sf-contact-item i { color: var(--blue); width: 14px; }
.sf-col h4 { font-size: 16.8px; font-weight: 700; color: rgba(255,255,255,0.35); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 16px; }
.sf-col a { display: block; font-size: 15.6px; color: rgba(255,255,255,0.55); text-decoration: none; margin-bottom: 10px; transition: color .2s; }
.sf-col a:hover { color: white; }
.sf-bottom { border-top: 1px solid rgba(255,255,255,0.10); padding-top: 24px; display: flex; justify-content: space-between; }
.sf-bottom p { font-size: 14.4px; color: rgba(255,255,255,0.30); }

/* ─── NAVY SECTION text overrides ────────────────────────────────────────── */
.section.bg-navy .ft h2   { color: var(--white); }
.section.bg-navy .ft p    { color: rgba(255,255,255,0.62); }

/* ─── SCROLL REVEAL (simple CSS) ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.from-l { transform: translateX(-24px); }
.reveal.from-l.visible { transform: translateX(0); }
.reveal.from-r { transform: translateX(24px); }
.reveal.from-r.visible { transform: translateX(0); }

/* ─── RESPONSIVE ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner     { grid-template-columns: 1fr; }
  .platform-card  { display: none; }
  .why-grid       { grid-template-columns: repeat(2,1fr); }
  .stats-inner    { grid-template-columns: repeat(2,1fr); }
  .cat-grid       { grid-template-columns: repeat(4,1fr); }
  .test-grid      { grid-template-columns: 1fr; }
  .two-col        { grid-template-columns: 1fr; }
  .two-col.flip   { direction: ltr; }
  .sf-grid        { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 768px) {
  .nav-links      { display: none; }
  .sitenav-inner  { padding: 0 20px; }
  .hero-inner     { padding: 0 20px; }
  .inner          { padding: 0 20px; }
  .partners-inner { padding: 0 20px; }
  .stats-inner    { grid-template-columns: repeat(2,1fr); padding: 0 20px; }
  .why-grid       { grid-template-columns: 1fr; }
  .cat-grid       { grid-template-columns: repeat(3,1fr); }
  .xrf-grid       { grid-template-columns: repeat(2,1fr); gap: 32px; }
  .sf-grid        { grid-template-columns: 1fr; }
  .sf-bottom      { flex-direction: column; gap: 8px; }
}