/* UAE National DRS - Segen x Earth Care Consulting
   Brand: navy #1B2A4A - gold #C9A227 - stone #4A6580 - cream #F5F1E8
   Serif display: Fraunces (Georgia fallback). Body: Archivo (system fallback). */

:root {
  --navy: #1B2A4A;
  --navy-deep: #14203a;
  --gold: #C9A227;
  --stone: #4A6580;
  --cream: #F5F1E8;
  --paper: #fbf9f4;
  --ink: #24304a;
  --muted: #5d6b82;
  --line: #e3dccb;
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Archivo', 'Segoe UI', Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
  font-size: 16.5px;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); line-height: 1.2; font-weight: 600; }
a { color: var(--stone); }
img { max-width: 100%; display: block; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
section { padding: 88px 0; }
.section-alt { background: var(--cream); }

.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 14px;
}
.section-title { font-size: clamp(30px, 4vw, 44px); margin-bottom: 10px; }
.section-rule { width: 64px; height: 3px; background: var(--gold); border: 0; margin: 18px 0 30px; }
.lede { font-size: 19px; color: var(--muted); max-width: 760px; }

/* ---------- LOGIN GATE ---------- */
#gate {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
#gate.hidden { display: none; }
.gate-card { text-align: center; max-width: 420px; width: 100%; }
.gate-card img.wordmark { width: 230px; margin: 0 auto 8px; }
.gate-sub {
  color: #c8d2e4; font-size: 13.5px; letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 42px;
}
.gate-card h1 { color: #fff; font-size: 30px; margin-bottom: 8px; }
.gate-card p.gate-line { color: #9fb0cc; font-size: 14.5px; margin-bottom: 30px; }
#gateForm { display: flex; gap: 10px; }
#gateForm input {
  flex: 1; padding: 14px 16px; font-size: 15px;
  border: 1px solid #3a4c70; background: #223355; color: #fff;
  border-radius: 3px; outline: none; font-family: var(--sans);
}
#gateForm input:focus { border-color: var(--gold); }
#gateForm button {
  padding: 14px 22px; background: var(--gold); color: var(--navy);
  border: 0; border-radius: 3px; font-weight: 700; font-size: 14px;
  letter-spacing: 0.06em; cursor: pointer; font-family: var(--sans);
}
#gateForm button:hover { background: #d8b53d; }
#gateError { color: #e8a0a0; font-size: 13.5px; margin-top: 14px; min-height: 20px; }
.gate-note { color: #6f81a3; font-size: 12px; margin-top: 40px; line-height: 1.6; }

/* ---------- NAV ---------- */
header.site-nav {
  position: sticky; top: 0; z-index: 500;
  background: rgba(27, 42, 74, 0.97);
  border-bottom: 2px solid var(--gold);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between;
  height: 66px;
}
.nav-brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.nav-brand img { height: 26px; width: auto; }
.nav-brand span { color: #c8d2e4; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; border-left: 1px solid #3a4c70; padding-left: 14px; }
nav.links { display: flex; gap: 26px; }
nav.links a {
  color: #dce4f2; text-decoration: none; font-size: 13.5px;
  letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600;
  padding: 6px 0; border-bottom: 2px solid transparent;
}
nav.links a:hover, nav.links a.active { color: var(--gold); border-bottom-color: var(--gold); }
#lockBtn {
  background: none; border: 1px solid #4a5d84; color: #c8d2e4;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 7px 14px; border-radius: 3px; cursor: pointer; font-family: var(--sans);
}
#lockBtn:hover { border-color: var(--gold); color: var(--gold); }
@media (max-width: 860px) {
  nav.links { display: none; }
  .nav-brand span { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  background: var(--navy);
  color: #eef2f9;
  padding: 110px 0 90px;
  position: relative;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px;
  background: var(--gold);
}
.hero .eyebrow { color: var(--gold); }
.hero h1 {
  color: #fff; font-size: clamp(36px, 5.2vw, 60px);
  max-width: 900px; margin-bottom: 24px; font-weight: 500;
}
.hero h1 em { color: var(--gold); font-style: normal; }
.hero p.hero-line { font-size: 20px; color: #b9c6dd; max-width: 780px; margin-bottom: 42px; }
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; font-size: 13.5px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  border-radius: 3px; cursor: pointer; font-family: var(--sans); border: 0;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8b53d; }
.btn-outline { border: 1px solid #6c7fa5; color: #e6ecf6; background: transparent; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- KPI STRIP ---------- */
.kpi-strip { background: var(--cream); padding: 64px 0; }
.kpi-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.kpi {
  padding: 26px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.kpi .num { font-family: var(--serif); font-size: 34px; color: var(--navy); font-weight: 600; }
.kpi .num small { font-size: 18px; color: var(--stone); }
.kpi .lbl { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 6px; font-weight: 600; }

/* ---------- ASKS ---------- */
.asks { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 44px; margin-top: 34px; }
@media (max-width: 800px) { .asks { grid-template-columns: 1fr; } }
.ask { display: flex; gap: 18px; }
.ask .n {
  font-family: var(--serif); font-size: 26px; color: var(--gold);
  border: 1.5px solid var(--gold); width: 52px; height: 52px; flex: 0 0 52px;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
}
.ask h3 { font-size: 19px; margin-bottom: 4px; }
.ask p { font-size: 14.5px; color: var(--muted); }

/* ---------- FINANCIAL MODEL ---------- */
.scenario-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin: 26px 0 8px; }
.scenario-tabs button {
  padding: 11px 22px; border: 1px solid var(--line); background: #fff;
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--stone);
  cursor: pointer; border-radius: 3px;
}
.scenario-tabs button.active {
  background: var(--navy); color: #fff; border-color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.scenario-tagline { color: var(--muted); font-size: 14.5px; margin-bottom: 30px; font-style: italic; }
.model-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
@media (max-width: 900px) { .model-grid { grid-template-columns: 1fr; } }
.chart-panel {
  background: #fff; border: 1px solid var(--line); padding: 26px 24px 18px;
}
.chart-panel h3 { font-size: 18px; margin-bottom: 4px; }
.chart-panel .src { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.chart-box { position: relative; height: 300px; }
.metrics-panel { grid-column: 1 / -1; }
.metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.metric-cell { padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.metric-cell .k { font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 6px; }
.metric-cell .v { font-family: var(--serif); font-size: 28px; color: var(--navy); }
.revenue-note { font-size: 13px; color: var(--muted); margin-top: 12px; border-left: 3px solid var(--gold); padding-left: 12px; }

/* ---------- STUDY ---------- */
.study-layout { display: grid; grid-template-columns: 250px 1fr; gap: 44px; margin-top: 30px; }
@media (max-width: 900px) { .study-layout { grid-template-columns: 1fr; } }
.study-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 90px; align-self: start; }
@media (max-width: 900px) { .study-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 8px; } }
.study-nav button {
  text-align: left; background: none; border: 0; border-left: 3px solid transparent;
  padding: 11px 16px; font-family: var(--sans); font-size: 14px; color: var(--stone);
  cursor: pointer; font-weight: 600;
}
.study-nav button.active { border-left-color: var(--gold); color: var(--navy); background: #fff; }
.study-nav button:hover { color: var(--navy); }
.study-chapter { display: none; }
.study-chapter.active { display: block; }
.study-chapter h3 { font-size: 26px; margin-bottom: 16px; }
.study-chapter p { margin-bottom: 16px; max-width: 760px; }
.study-chapter ul { margin: 0 0 16px 22px; max-width: 760px; }
.study-chapter li { margin-bottom: 8px; }
.study-chapter table { border-collapse: collapse; width: 100%; max-width: 760px; margin: 18px 0; font-size: 14.5px; }
.study-chapter th { background: var(--navy); color: #fff; text-align: left; padding: 10px 14px; font-family: var(--sans); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; }
.study-chapter td { padding: 10px 14px; border-bottom: 1px solid var(--line); }

/* ---------- EXHIBITS ---------- */
.exhibit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 36px; }
@media (max-width: 860px) { .exhibit-grid { grid-template-columns: 1fr; } }
.exhibit { background: #fff; border: 1px solid var(--line); padding: 18px; }
.exhibit img { width: 100%; height: auto; border: 1px solid #eee7d5; }
.exhibit .cap { font-size: 13px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.exhibit .cap strong { color: var(--navy); }
.badge {
  display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold);
  padding: 3px 9px; border-radius: 2px; margin-bottom: 6px;
}

/* ---------- DECK VIEWER ---------- */
.deck-viewer { max-width: 920px; margin: 30px auto 0; }
.deck-frame {
  background: var(--navy); padding: 18px; border-radius: 4px;
  box-shadow: 0 18px 50px rgba(20, 32, 58, 0.25);
}
.deck-frame img { width: 100%; height: auto; border-radius: 2px; }
.deck-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 18px; gap: 14px; flex-wrap: wrap;
}
.deck-controls .nav-btns { display: flex; gap: 10px; }
.deck-controls button {
  padding: 11px 22px; background: var(--navy); color: #fff; border: 0;
  font-family: var(--sans); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; cursor: pointer; border-radius: 3px;
}
.deck-controls button:hover { background: var(--stone); }
.deck-controls button:disabled { opacity: 0.35; cursor: default; }
#slideCounter { font-family: var(--serif); font-size: 18px; color: var(--navy); }
#slideTitle { font-size: 13.5px; color: var(--muted); }
.deck-hint { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }

/* ---------- DOCUMENTS ---------- */
.doc-list { margin-top: 34px; border-top: 1px solid var(--line); }
.doc-row {
  display: grid; grid-template-columns: 44px 1fr auto auto; gap: 20px;
  align-items: center; padding: 20px 8px; border-bottom: 1px solid var(--line);
}
@media (max-width: 700px) { .doc-row { grid-template-columns: 34px 1fr; } .doc-row .size, .doc-row .dl { grid-column: 2; } }
.doc-icon {
  width: 40px; height: 40px; background: var(--navy); color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.06em; border-radius: 3px;
}
.doc-row h3 { font-size: 16.5px; margin-bottom: 2px; }
.doc-row p { font-size: 13.5px; color: var(--muted); }
.doc-row .size { font-size: 13px; color: var(--stone); font-weight: 600; white-space: nowrap; }
.doc-row .dl {
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; border: 1px solid var(--navy);
  padding: 9px 18px; border-radius: 3px; white-space: nowrap;
}
.doc-row .dl:hover { background: var(--navy); color: #fff; }

/* ---------- FOOTER ---------- */
footer {
  background: var(--navy); color: #b9c6dd; padding: 70px 0 40px;
  border-top: 4px solid var(--gold);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 44px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }
footer img.wordmark { width: 190px; margin-bottom: 18px; }
footer h4 { color: #fff; font-size: 15px; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--sans); font-weight: 700; margin-bottom: 14px; }
footer p, footer li { font-size: 14px; line-height: 1.8; list-style: none; }
footer a { color: var(--gold); text-decoration: none; }
.confidential {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid #33466a;
  font-size: 12px; color: #7e90b2; letter-spacing: 0.06em; text-transform: uppercase;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
}

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
