/* ═══════════════════════════════════════════════════════════════
   Roya — Polotano Phase D · Slide-deck presentation
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg:           #0f1a23;
  --bg-elevated:  #1a2733;
  --panel:        #1f2d3a;
  --panel-2:      #283745;
  --border:       #344554;
  --gold:         #d4af6a;
  --gold-bright:  #f0c878;
  --gold-glow:    rgba(212, 175, 106, 0.35);
  --sand:         #e9d8b8;
  --sea:          #4fb3c4;
  --text:         #f0ebe0;
  --text-dim:     #a0a8b0;
  --text-muted:   #6b7785;
  --error:        #e57373;
  --success:      #81c784;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Cairo", -apple-system, "Segoe UI", Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
  overflow: hidden;       /* deck-stage scrolls slides itself */
  height: 100vh;
}
body[dir="ltr"] { font-family: "Inter", -apple-system, "Segoe UI", Tahoma, sans-serif; }
img { max-width: 100%; height: auto; display: block; }

/* ═══ Top bar ═══ */
.deck-topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex; align-items: center;
  padding: 12px 22px;
  background: rgba(15, 26, 35, 0.78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  gap: 16px;
  height: 58px;
}
.deck-brand {
  display: flex; align-items: center; gap: 12px;
  flex: 1 1 auto; min-width: 0;
}
.deck-logo {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: #1a1410;
  font-family: serif; font-size: 17px;
}
.deck-title {
  font-weight: 700; font-size: 16px; color: var(--gold);
  white-space: nowrap;
}
.deck-subtitle {
  font-size: 11px; color: var(--text-muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: -1px;
}
.deck-controls { display: flex; gap: 8px; flex: 0 0 auto; }
.deck-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 12px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  min-width: 38px;
  transition: border-color 0.15s, color 0.15s;
}
.deck-btn:hover { border-color: var(--gold); color: var(--gold); }

/* ═══ Stage + slides ═══ */
.deck-stage {
  position: fixed;
  top: 58px;
  left: 0; right: 0; bottom: 64px;
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 36px 56px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  overflow-y: auto;
}
.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 1;
}
.slide-content {
  width: 100%; max-width: 1280px;
  margin: auto;
  position: relative;
}
.slide-content--centered {
  display: flex; flex-direction: column; justify-content: center;
  align-items: flex-start;
  min-height: 100%;
}

/* ═══ Slide chrome ═══ */
.slide-number {
  position: absolute;
  top: -8px; right: 0;
  font-size: 13px; font-weight: 800;
  color: var(--text-muted);
  letter-spacing: 3px;
  font-family: "Inter", monospace;
}
body[dir="rtl"] .slide-number { right: auto; left: 0; }

.slide-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}
.slide-h {
  font-size: 42px; font-weight: 800;
  line-height: 1.15; margin: 0 0 14px;
  color: var(--text);
}
.slide-h .gold { color: var(--gold); }
.slide-lede {
  font-size: 17px;
  color: var(--text-dim);
  margin: 0 0 28px;
  max-width: 820px;
  line-height: 1.7;
}
.slide-footnote {
  margin-top: 22px;
  padding: 12px 16px;
  background: rgba(79,179,196,0.07);
  border: 1px solid rgba(79,179,196,0.25);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ═══ Slide 1 — Title ═══ */
.slide-title {
  padding: 0;
  align-items: stretch;
}
.slide-title .slide-content {
  padding: 0 80px;
  display: flex; flex-direction: column; justify-content: center;
  min-height: 100%;
}
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.slide-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,26,35,0.25), rgba(15,26,35,0.92));
}
.slide-title .slide-content { position: relative; z-index: 1; }
.title-main {
  font-size: 68px; font-weight: 800;
  line-height: 1.05; margin: 0 0 22px;
  color: #fff;
  text-shadow: 0 4px 30px rgba(0,0,0,0.55);
}
.title-main .gold {
  color: var(--gold-bright);
  font-style: italic;
}
.title-sub {
  font-size: 20px;
  color: rgba(255,255,255,0.9);
  margin: 0 0 36px;
  font-weight: 300;
}
.title-meta {
  display: flex; gap: 12px;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
}
.title-meta .dot { color: var(--gold); }

/* ═══ Slide 2 — Agenda ═══ */
.agenda-list {
  list-style: none;
  padding: 0; margin: 10px 0 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 36px;
}
.agenda-list li {
  display: flex; gap: 16px; align-items: baseline;
  padding: 14px 18px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  color: var(--text);
  transition: border-color 0.15s;
}
.agenda-list li:hover { border-color: var(--gold); }
.agenda-n {
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  font-family: "Inter", monospace;
  flex: 0 0 auto;
}

/* ═══ Slide 3 — Context ═══ */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  align-items: start;
}
.fact-stack {
  display: flex; flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.fact-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.fact-row:last-child { border-bottom: none; }
.fact-k {
  color: var(--text-muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
}
.fact-v { color: var(--text); }
.fact-v strong { color: var(--gold-bright); }
.fact-note { color: var(--text-muted); font-size: 12px; }
.gold-text { color: var(--gold); font-style: italic; }
.slide-img {
  border-radius: 10px;
  border: 1px solid var(--border);
}
.img-caption {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 6px;
  text-align: center;
}

/* ═══ Slide 4 — Opportunity ═══ */
.hub-diagram-wrap {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex; align-items: center; justify-content: center;
}
.hub-diagram-wrap svg { width: 100%; max-width: 420px; height: auto; }
.bullet-stack {
  display: flex; flex-direction: column; gap: 12px;
}
.bullet-item {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
  display: flex; gap: 14px; align-items: flex-start;
}
.bullet-marker {
  font-size: 22px; line-height: 1; flex: 0 0 auto;
}
.bullet-h { font-weight: 700; color: var(--gold); margin-bottom: 3px; font-size: 15px; }
.bullet-p { font-size: 13px; color: var(--text-dim); line-height: 1.6; }

/* ═══ Slide 5 — Commitment (quotes) ═══ */
.quote-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 22px 30px;
  margin-bottom: 16px;
}
body[dir="rtl"] .quote-card {
  border-left: 1px solid var(--border);
  border-right: 4px solid var(--gold);
}
.quote-source {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}
.quote-text {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
  font-style: italic;
  font-weight: 300;
}
.quote-text strong { color: var(--gold-bright); font-weight: 600; }

/* ═══ Slide 6 — Proposal (facility grid) ═══ */
.facility-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.facility-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  transition: border-color 0.2s;
}
.facility-card:hover { border-color: var(--gold); }
.facility-icon { font-size: 32px; line-height: 1; margin-bottom: 10px; }
.facility-name { font-size: 16px; font-weight: 700; color: var(--gold); margin-bottom: 3px; }
.facility-en { font-size: 12px; color: var(--text-muted); }

/* ═══ Slide 7 — Gallery ═══ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}
.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.gallery-item::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.7));
}
.gallery-caption {
  position: absolute; bottom: 10px; left: 14px; right: 14px;
  color: #fff; font-size: 13px; font-weight: 600;
  z-index: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8);
}

/* ═══ Slide 8 — Financial Model ═══ */
.slide-model .slide-content { padding-bottom: 12px; }
.model-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr;
  gap: 22px;
  align-items: flex-start;
  margin-top: 6px;
}
.model-inputs, .model-outputs {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
}
.input-group { margin-bottom: 12px; }
.input-group:last-of-type { margin-bottom: 16px; }
.input-label {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  margin-bottom: 4px;
}
.input-label .name { font-weight: 600; color: var(--text); }
.input-label .value { color: var(--gold-bright); font-weight: 700; font-variant-numeric: tabular-nums; font-family: "Inter", monospace; }
.input-group input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 5px;
  background: var(--panel-2);
  border-radius: 3px;
  outline: none;
}
.input-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%; cursor: pointer;
  box-shadow: 0 0 0 4px rgba(212,175,106,0.2);
}
.input-group input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--gold);
  border-radius: 50%; cursor: pointer;
  border: none;
  box-shadow: 0 0 0 4px rgba(212,175,106,0.2);
}
.kpi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.kpi-card {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
}
.kpi-card.big {
  grid-column: 1 / -1;
  border-color: var(--gold);
}
.kpi-label {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.kpi-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  font-family: "Inter", monospace;
}
.kpi-value.small { font-size: 15px; }
.chart-wrap {
  height: 160px;
  margin-top: 8px;
}
.benchmark-card {
  background: rgba(79, 179, 196, 0.08);
  border: 1px solid rgba(79, 179, 196, 0.3);
  border-radius: 8px;
  padding: 10px 14px;
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-dim);
  line-height: 1.6;
}
.benchmark-card strong { color: var(--sea); }

/* ═══ Slide 9 — Recommendation ═══ */
.recommendation-card {
  background: linear-gradient(135deg, rgba(212,175,106,0.10), rgba(212,175,106,0.03));
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 26px 30px;
  margin-bottom: 26px;
}
.rec-tag {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 10px;
}
.rec-body {
  font-size: 18px;
  line-height: 1.65;
  color: var(--text);
}
.next-steps { background: var(--panel); border: 1px solid var(--border); border-radius: 10px; padding: 20px 24px; }
.next-h {
  font-size: 13px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.step-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.step-list li {
  display: flex; gap: 14px;
  font-size: 14px;
  align-items: baseline;
  line-height: 1.55;
}
.step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  background: var(--gold);
  color: #1a1410;
  border-radius: 50%;
  font-weight: 700;
  font-size: 12px;
  flex: 0 0 auto;
  font-family: "Inter", monospace;
}

/* ═══ Deck nav (bottom) ═══ */
.deck-nav {
  position: fixed;
  bottom: 18px; left: 50%;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  background: rgba(15, 26, 35, 0.88);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 8px;
  z-index: 30;
}
.nav-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 18px; font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.nav-btn:hover:not(:disabled) { background: var(--gold); color: #1a1410; border-color: var(--gold); }
.nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.deck-progress {
  font-family: "Inter", monospace;
  font-size: 14px;
  color: var(--text);
  font-weight: 700;
  min-width: 60px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.deck-progress-sep { color: var(--text-muted); margin: 0 4px; }
.deck-hint {
  position: fixed;
  bottom: 28px;
  right: 22px;
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  z-index: 30;
  font-family: "Inter", monospace;
}
body[dir="rtl"] .deck-hint { right: auto; left: 22px; }

/* ═══ Fullscreen tweaks ═══ */
body.is-fullscreen .deck-topbar {
  background: rgba(15, 26, 35, 0.45);
  border-bottom-color: transparent;
}
body.is-fullscreen .deck-nav { background: rgba(15, 26, 35, 0.7); }

/* ═══ Responsive ═══ */
@media (max-width: 1000px) {
  .slide { padding: 28px 30px; }
  .slide-h { font-size: 32px; }
  .title-main { font-size: 48px; }
  .two-col { grid-template-columns: 1fr; }
  .agenda-list { grid-template-columns: 1fr; }
  .facility-grid { grid-template-columns: 1fr 1fr; }
  .model-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .deck-stage { bottom: 70px; }
  .slide { padding: 20px 18px; }
  .slide-h { font-size: 24px; }
  .slide-lede { font-size: 14px; }
  .title-main { font-size: 32px; }
  .title-sub { font-size: 15px; }
  .facility-grid, .gallery { grid-template-columns: 1fr 1fr; }
  .deck-hint { display: none; }
  .deck-subtitle { display: none; }
  .deck-topbar { padding: 10px 14px; height: 52px; }
  .deck-stage { top: 52px; }
}
