/* ============================================================
   EduXal Deck — Shared Stylesheet
   All Reveal.js pitch deck HTML files link this file.
   ============================================================ */

/* ----------------------------------------------------------
   1. CSS Custom Properties (Brand Tokens)
   ---------------------------------------------------------- */
:root {
  --color-primary:   #3F1D94;   /* deep violet-purple */
  --color-accent:    #4DB848;   /* leaf green          */
  --color-light:     #F5F0FF;   /* near-white purple   */
  --color-dark-text: #1A0B2E;   /* very dark purple    */
  --color-muted:     #7B6FA0;   /* muted purple        */
  --color-white:     #FFFFFF;
  --color-light-purple-row: #EDE8FF;

  --radius-card: 12px;
  --shadow-card: 0 4px 18px rgba(63, 29, 148, 0.12);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);

  --font-sans: 'Trebuchet MS', 'Segoe UI', Arial, sans-serif;
}

/* ----------------------------------------------------------
   2. Reveal.js Base Overrides
   ---------------------------------------------------------- */

/* Every slide: left-aligned, top-anchored, padded */
.reveal .slides section {
  text-align: left;
  top: 0 !important;
  height: 100%;
  box-sizing: border-box;
  padding: 3rem 4rem;
  font-family: var(--font-sans);
  color: var(--color-dark-text);
}

/* Default h2 for slides */
.reveal h2 {
  font-size: 1.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
  line-height: 1.2;
}

/* Remove reveal default margins on p inside slides */
.reveal p {
  margin: 0;
  line-height: 1.5;
}

/* ----------------------------------------------------------
   3. Slide Layout Variants
   ---------------------------------------------------------- */

/* .slide-cover — full-bleed dark cover slide */
.reveal .slides section.slide-cover {
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: var(--color-white);
}

/* .slide-content — standard light-background content slide */
.reveal .slides section.slide-content {
  background-color: var(--color-light);
  color: var(--color-dark-text);
}

/* ----------------------------------------------------------
   4. Slide Title
   ---------------------------------------------------------- */

/* .slide-title — heading with a 4px green left accent bar */
.slide-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-primary);
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
}

.slide-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  min-width: 4px;
  height: 1.4em;
  background-color: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   5. Two-Column Grid
   ---------------------------------------------------------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ----------------------------------------------------------
   6. Stat Card
   ---------------------------------------------------------- */

.stat-card {
  background: var(--color-white);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
}

.stat-number {
  font-size: 4rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  font-family: var(--font-sans);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.4;
}

/* ----------------------------------------------------------
   7. Navy Card (dark purple card)
   ---------------------------------------------------------- */

.navy-card {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 2rem;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-dark);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.navy-card .card-label {
  color: var(--color-accent);
  font-size: 0.7rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.navy-card h3 {
  color: var(--color-white);
  font-size: 1.6rem;
  font-weight: 700;
  font-family: var(--font-sans);
  margin: 0;
  line-height: 1.2;
}

.navy-card p {
  color: var(--color-white);
  opacity: 0.88;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

/* ----------------------------------------------------------
   8. Benefit Rows
   ---------------------------------------------------------- */

.benefit-row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.benefit-dot {
  width: 12px;
  height: 12px;
  min-width: 12px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}

.benefit-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 1rem;
  line-height: 1.3;
}

.benefit-desc {
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-top: 0.2rem;
}

/* ----------------------------------------------------------
   9. Step Cards
   ---------------------------------------------------------- */

.step-cards {
  display: flex;
  flex-direction: row;
  gap: 1.5rem;
  align-items: stretch;
}

.step-card {
  flex: 1;
  background: var(--color-white);
  border-radius: var(--radius-card);
  padding: 2rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1;
  font-family: var(--font-sans);
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.3;
}

.step-desc {
  font-size: 0.85rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   10. CTA Box
   ---------------------------------------------------------- */

.cta-box {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.9rem 2rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.5;
  display: block;
}

/* ----------------------------------------------------------
   11. Callout Strip (green)
   ---------------------------------------------------------- */

.callout-strip {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 1rem 2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 600;
}

/* ----------------------------------------------------------
   12. Quote Strip (green, italic)
   ---------------------------------------------------------- */

.quote-strip {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding: 1.2rem 2.5rem;
  border-radius: 10px;
  font-style: italic;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   13. Vision Bullets
   ---------------------------------------------------------- */

.vision-bullet {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  margin-bottom: 0.9rem;
  align-items: flex-start;
}

.vision-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  background-color: var(--color-accent);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ----------------------------------------------------------
   14. Back Link (fixed top-right)
   ---------------------------------------------------------- */

.back-link {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 1000;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  color: var(--color-white);
  text-decoration: none;
  opacity: 0.6;
  font-family: var(--font-sans);
  background: rgba(63, 29, 148, 0.55);
  border-bottom-left-radius: 6px;
  transition: opacity 0.2s ease;
}

.back-link:hover {
  opacity: 1;
}

/* ----------------------------------------------------------
   15. Cover Elements
   ---------------------------------------------------------- */

.cover-logo {
  max-height: 120px;
  max-width: 120px;
  margin-bottom: 1.5rem;
  object-fit: contain;
}

.cover-title {
  font-size: 4.5rem;
  font-weight: 800;
  color: var(--color-white);
  line-height: 1.1;
  font-family: var(--font-sans);
  margin: 0;
}

.cover-tagline {
  font-size: 1.5rem;
  color: var(--color-accent);
  margin-top: 1rem;
  font-weight: 600;
  font-family: var(--font-sans);
}

.cover-desc {
  font-size: 1rem;
  color: var(--color-white);
  opacity: 0.85;
  font-style: italic;
  margin-top: 1.5rem;
  max-width: 800px;
  line-height: 1.6;
}

/* ----------------------------------------------------------
   16. KCSE Table
   ---------------------------------------------------------- */

.kcse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  font-family: var(--font-sans);
}

.kcse-table th {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 0.5rem 1rem;
  text-align: left;
  font-weight: 700;
}

.kcse-table td {
  padding: 0.4rem 1rem;
  border-bottom: 1px solid rgba(63, 29, 148, 0.1);
  color: var(--color-dark-text);
}

.kcse-table tr:nth-child(even) td {
  background-color: var(--color-light-purple-row);
}

.kcse-table tr.avg-row td {
  background-color: var(--color-accent);
  color: var(--color-white);
  font-weight: 700;
}

/* ----------------------------------------------------------
   17. Solution Step Grid (6-step cards inside slide-content)
   ---------------------------------------------------------- */

.solution-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

.solution-step {
  background: var(--color-white);
  border-radius: 10px;
  box-shadow: var(--shadow-card);
  padding: 1rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.solution-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: 0.8rem;
  font-weight: 800;
  border-radius: 50%;
  font-family: var(--font-sans);
}

.solution-step-title {
  font-weight: 700;
  color: var(--color-primary);
  font-size: 0.95rem;
  line-height: 1.3;
}

.solution-step-desc {
  font-size: 0.8rem;
  color: var(--color-muted);
  line-height: 1.5;
}

/* ----------------------------------------------------------
   18. Badge Pills (product type pills)
   ---------------------------------------------------------- */

.badge-row {
  display: flex;
  flex-direction: row;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.badge-pill {
  background-color: var(--color-accent);
  color: var(--color-white);
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-sans);
  white-space: nowrap;
}

/* ----------------------------------------------------------
   19. Vision Slide Overrides (left-aligned dark cover)
   ---------------------------------------------------------- */

.slide-vision {
  background-color: var(--color-primary) !important;
  color: var(--color-white) !important;
  text-align: left;
  align-items: flex-start;
}

.slide-vision .slide-title {
  color: var(--color-white);
}

.slide-vision .slide-title::before {
  background-color: var(--color-accent);
}

/* ----------------------------------------------------------
   20. Utility Helpers
   ---------------------------------------------------------- */

.mt-1  { margin-top: 0.5rem;  }
.mt-2  { margin-top: 1rem;    }
.mt-3  { margin-top: 1.5rem;  }
.mt-4  { margin-top: 2rem;    }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem;   }
.mb-3  { margin-bottom: 1.5rem; }

.text-muted   { color: var(--color-muted);     }
.text-primary { color: var(--color-primary);   }
.text-accent  { color: var(--color-accent);    }
.text-white   { color: var(--color-white);     }
.text-bold    { font-weight: 700;              }
.text-sm      { font-size: 0.85rem;            }
.text-xs      { font-size: 0.75rem;            }
.text-italic  { font-style: italic;            }
.opacity-85   { opacity: 0.85;                 }
.opacity-70   { opacity: 0.70;                 }

/* Vision bullet white text */
.vision-bullet-text strong {
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  line-height: 1.3;
}

.vision-bullet-text span {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  line-height: 1.5;
  display: block;
  margin-top: 0.2rem;
}

/* Vision white slide-title override */
.vision-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-white);
  font-family: var(--font-sans);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  line-height: 1.2;
}

.vision-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  min-width: 4px;
  height: 1.4em;
  background-color: var(--color-accent);
  border-radius: 2px;
  flex-shrink: 0;
}

/* Divider between two-col on dark slide */
.col-divider {
  border: none;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  align-self: stretch;
}

/* Full-height content wrapper inside a slide */
.slide-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Pilot pricing note */
.pilot-note {
  font-size: 0.82rem;
  color: var(--color-muted);
  font-style: italic;
  line-height: 1.6;
  margin-top: 0.75rem;
  padding: 0.75rem 1.2rem;
  border-left: 3px solid var(--color-accent);
  background: rgba(77, 184, 72, 0.06);
  border-radius: 0 6px 6px 0;
}
