/* ═══════════════════════════════════════════════════════════════
   Mio Collateral — Shared Styles
   Magazine-quality layout with fixed sidebar navigation
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --navy: #1a2332;
  --navy-mid: #2a3a4e;
  --navy-light: #3d5068;
  --amber: #d4943a;
  --amber-light: #f0c67a;
  --amber-pale: #fdf4e8;
  --cream: #faf6f0;
  --cream-dark: #f0ebe3;
  --text: #2c3e50;
  --text-light: #6b7c93;
  --text-muted: #9ca3af;
  --white: #ffffff;
  --border: #e8e2d8;
  --green: #2d8a6e;
  --purple: #7b68ee;
  --sidebar-w: 260px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}

/* ── Sidebar ─────────────────────────────────────────────────── */

.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  z-index: 100;
  overflow-y: auto;
}

.sidebar-logo {
  padding: 28px 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.sidebar-logo .logo-line {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sidebar-logo .logo-mark {
  width: 32px; height: 32px;
  background: var(--amber);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 14px;
}
.sidebar-logo .logo-text {
  font-size: 18px; font-weight: 700; color: white;
}
.sidebar-logo .logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
  padding-left: 42px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
}
.sidebar-nav .nav-section {
  padding: 8px 24px 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.3);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 24px;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.sidebar-nav a:hover {
  color: white;
  background: rgba(255,255,255,0.05);
}
.sidebar-nav a.active {
  color: white;
  background: rgba(212,148,58,0.1);
  border-left-color: var(--amber);
}
.sidebar-nav a .nav-icon {
  font-size: 16px;
  width: 20px;
  text-align: center;
}
.sidebar-nav .nav-divider {
  height: 1px;
  background: rgba(255,255,255,0.06);
  margin: 12px 24px;
}

.sidebar-footer {
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sidebar-footer p {
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  font-style: italic;
}

/* ── Main Content ────────────────────────────────────────────── */

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  background: var(--white);
}

/* ── Hero Section ────────────────────────────────────────────── */

.hero-section {
  background: var(--navy);
  color: white;
  padding: 80px 64px 72px;
  position: relative;
  overflow: hidden;
}
.hero-section::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: linear-gradient(135deg, transparent 0%, rgba(212,148,58,0.06) 100%);
}
.hero-badge {
  display: inline-block;
  background: rgba(212,148,58,0.15);
  border: 1px solid rgba(212,148,58,0.3);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 600;
  color: var(--amber-light);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.hero-section h1 {
  font-size: 40px;
  font-weight: 800;
  line-height: 1.15;
  color: white;
  letter-spacing: -0.5px;
  max-width: 680px;
  position: relative;
  z-index: 1;
}
.hero-section .subtitle {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  font-weight: 400;
  line-height: 1.6;
  max-width: 600px;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

/* ── Content Sections ────────────────────────────────────────── */

.content-section {
  padding: 64px;
  border-bottom: 1px solid var(--border);
}
.content-section:last-child { border-bottom: none; }

.section-label {
  font-size: 11px;
  color: var(--amber);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.content-section h2 {
  font-size: 28px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}

.content-section h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  margin-top: 32px;
}

.content-section p {
  margin-bottom: 16px;
  max-width: 640px;
}

/* ── Full-bleed sections (alternating backgrounds) ───────────── */

.section-dark {
  background: var(--navy);
  color: white;
  padding: 64px;
  border-bottom: none;
}
.section-dark h2 { color: white; }
.section-dark p { color: rgba(255,255,255,0.7); }
.section-dark .section-label { color: var(--amber-light); }

.section-cream {
  background: var(--cream);
  padding: 64px;
}

/* ── SVG Diagram Containers ──────────────────────────────────── */

.diagram-container {
  margin: 40px -24px;
  padding: 32px;
  background: var(--cream);
  border-radius: 16px;
  border: 1px solid var(--border);
}
.diagram-container svg {
  width: 100%;
  height: auto;
}
.diagram-caption {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  font-style: italic;
}

.section-dark .diagram-container {
  background: rgba(255,255,255,0.05);
  border-color: rgba(255,255,255,0.1);
}

/* ── Pull Quotes ─────────────────────────────────────────────── */

.pull-quote {
  border-left: 4px solid var(--amber);
  padding: 24px 32px;
  margin: 32px 0;
  background: var(--amber-pale);
  border-radius: 0 12px 12px 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--navy);
  max-width: 100%;
}
.pull-quote strong { color: var(--navy); }
.pull-quote em { color: var(--amber); }

.section-dark .pull-quote {
  background: rgba(212,148,58,0.1);
  border-left-color: var(--amber);
  color: white;
}

/* ── Feature Grids ───────────────────────────────────────────── */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.feature-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px;
  border: 1px solid var(--border);
}
.feature-card h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.feature-card p {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
  max-width: none;
}

.section-dark .feature-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.section-dark .feature-card h4 { color: white; }
.section-dark .feature-card p { color: rgba(255,255,255,0.6); }

/* ── Layer Cards ─────────────────────────────────────────────── */

.layer-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin: 16px 0;
}
.layer-card.lucca { border-left: 4px solid var(--navy); }
.layer-card.mocca { border-left: 4px solid var(--amber); }
.layer-card.crema { border-left: 4px solid #c9a87c; }
.layer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.layer-emoji { font-size: 22px; }
.layer-name { font-size: 18px; font-weight: 700; color: var(--navy); }
.layer-role { font-size: 12px; color: var(--text-light); margin-left: auto; font-weight: 500; }
.layer-card ul { list-style: none; padding: 0; }
.layer-card li {
  font-size: 14px;
  padding: 5px 0;
  padding-left: 16px;
  position: relative;
}
.layer-card li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  position: absolute;
  left: 0; top: 12px;
}
.lucca li::before { background: var(--navy); }
.mocca li::before { background: var(--amber); }
.crema li::before { background: #c9a87c; }
.layer-insight {
  margin-top: 14px;
  padding: 10px 16px;
  background: var(--cream);
  border-radius: 8px;
  font-size: 12px;
  color: var(--navy);
  font-weight: 500;
}

/* ── Tables ──────────────────────────────────────────────────── */

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}
th {
  text-align: left;
  padding: 10px 16px;
  background: var(--navy);
  color: white;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
th:first-child { border-radius: 8px 0 0 0; }
th:last-child { border-radius: 0 8px 0 0; }
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
td:first-child { font-weight: 500; color: var(--navy); }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--cream); }
.winner { color: var(--green); font-weight: 600; }

.section-dark table th { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.6); }
.section-dark table td { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.7); }
.section-dark table td:first-child { color: rgba(255,255,255,0.9); }

/* ── Metric Cards ────────────────────────────────────────────── */

.metric-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.metric-card {
  background: var(--cream);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  border: 1px solid var(--border);
}
.metric-value {
  font-size: 24px;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
}
.metric-label {
  font-size: 10px;
  color: var(--text-light);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 500;
}

.section-dark .metric-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.1);
}
.section-dark .metric-value { color: white; }
.section-dark .metric-label { color: rgba(255,255,255,0.4); }

/* ── Phase Steps ─────────────────────────────────────────────── */

.phase-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  margin: 20px 0;
  align-items: start;
}
.phase-number {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--navy);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px;
}
.phase-content h4 { font-size: 16px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.phase-content p { font-size: 14px; color: var(--text-light); margin: 0; max-width: none; }

/* ── Ownership Grid ──────────────────────────────────────────── */

.own-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 24px 0;
}
.own-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  padding: 16px 20px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}
.own-check {
  width: 24px; height: 24px;
  background: var(--navy);
  border-radius: 6px;
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

/* ── Roadmap ─────────────────────────────────────────────────── */

.roadmap-item {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
}
.roadmap-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-live { background: var(--green); }
.dot-next { background: var(--amber); }
.dot-future { background: var(--text-muted); }

/* ── Option Cards ────────────────────────────────────────────── */

.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0;
}
.option-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.option-card h4 { font-size: 14px; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.option-card .option-sub { font-size: 12px; color: var(--text-light); margin-bottom: 12px; }
.option-card ul { list-style: none; padding: 0; }
.option-card li { font-size: 13px; padding: 3px 0; display: flex; gap: 6px; }
.option-card li::before { content: '✕'; color: #c0392b; font-size: 11px; margin-top: 2px; }

/* ── CTA Section ─────────────────────────────────────────────── */

.cta-section {
  background: var(--navy);
  color: white;
  border-radius: 16px;
  padding: 48px;
  text-align: center;
  margin: 32px 0;
}
.cta-section h2 { color: white; margin-bottom: 12px; }
.cta-section p { color: rgba(255,255,255,0.6); margin-bottom: 24px; max-width: none; }
.cta-contact { font-size: 17px; color: var(--amber-light); font-weight: 600; }

/* ── Summary Box ─────────────────────────────────────────────── */

.summary-box {
  background: var(--navy);
  border-radius: 12px;
  padding: 32px;
  color: white;
  margin: 24px 0;
}
.summary-box table { margin: 0; }
.summary-box td { border-color: rgba(255,255,255,0.1); color: rgba(255,255,255,0.85); }
.summary-box td:first-child { color: rgba(255,255,255,0.45); font-weight: 400; }

/* ── Big Stat ────────────────────────────────────────────────── */

.big-stat {
  font-size: 22px;
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  margin: 36px 0;
}

.section-dark .big-stat { color: white; }

/* ── Two Column ──────────────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ── Brochure Footer ─────────────────────────────────────────── */

.brochure-footer {
  padding: 48px 64px;
  text-align: center;
  color: var(--text-light);
  font-size: 14px;
  border-top: 1px solid var(--border);
}
.brochure-footer .tagline-final {
  font-size: 16px;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 4px;
}
.brochure-footer .tagline-sub {
  font-size: 15px;
  color: var(--amber);
  font-style: italic;
}

/* ── Print Styles ────────────────────────────────────────────── */

@media print {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  body { font-size: 11px; background: white; }
  .hero-section { padding: 48px; }
  .content-section { padding: 36px 48px; }
  .diagram-container { margin: 24px 0; padding: 16px; }
  .page-break { page-break-before: always; }
  section { page-break-inside: avoid; }
}

/* ── Responsive ──────────────────────────────────────────────── */

@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .hero-section { padding: 48px; }
  .content-section { padding: 48px; }
  .hero-section h1 { font-size: 32px; }
}

@media (max-width: 768px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .hero-section { padding: 32px; }
  .content-section { padding: 32px; }
  .feature-grid, .option-grid, .two-col, .own-grid { grid-template-columns: 1fr; }
  .metric-row { grid-template-columns: 1fr 1fr; }
}
