/* Shared CSS for Apex Strata case study decks (Clear Prism style) */
:root {
  --bg: #0B0D0D;
  --bg-soft: #141716;
  --cream: #F5F2EB;
  --cream-muted: rgba(245, 242, 235, 0.7);
  --green: #2E8F5B;
  --green-soft: #3AAF6F;
  --green-deep: #1A6B3F;
  --green-glow: rgba(46, 143, 91, 0.15);
  --gray: #6B7280;
  --rule: rgba(245, 242, 235, 0.12);
}

@page { size: letter landscape; margin: 0; }

@media print {
  html, body { overflow: visible !important; height: auto !important; }
  .deck { height: auto !important; overflow: visible !important; scroll-snap-type: none !important; }
  .slide {
    width: 100vw; height: 100vh;
    scroll-snap-align: none !important;
    page-break-after: always;
    break-after: page;
  }
  .slide:last-child { page-break-after: auto; break-after: auto; }
}

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

html, body {
  background: var(--bg);
  color: var(--cream);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

body { overflow: hidden; }

.deck {
  height: 100vh;
  overflow-y: scroll;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
}

.slide {
  width: 100vw;
  height: 100vh;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vh 7vw;
  position: relative;
  overflow: hidden;
}

.slide.dark { background: var(--bg); }
.slide.soft { background: var(--bg-soft); }

.slide:not(#cover):not(#takeaway)::after {
  content: "";
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 26px;
  background-image: url("../assets/apexstrata-logo-light.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  opacity: 0.55;
  pointer-events: none;
  z-index: 3;
}

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 3vh;
}

.display {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.08;
}

.serif { font-family: 'Playfair Display', serif; }

.body-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--cream-muted);
  max-width: 36em;
}

.body-text + .body-text { margin-top: 1.6em; }

.rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--green);
  border: 0;
  margin: 2.5vh 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

/* ---- Cover ---- */
#cover .cover-inner { text-align: center; position: relative; z-index: 2; }
#cover::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--green-glow) 0%, transparent 60%);
  pointer-events: none;
}
#cover .logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6vh;
}
#cover .logo-apex-img { height: 56px; width: auto; display: block; }

#cover .cover-eyebrow {
  font-size: 10px;
  letter-spacing: 0.45em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4vh;
}

#cover .cover-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 9vw, 112px);
  font-weight: 400;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 3vh;
  letter-spacing: -0.02em;
}
#cover .cover-title em { font-style: italic; color: var(--green); }

#cover .cover-sub {
  font-size: 14px;
  color: var(--cream-muted);
  letter-spacing: 0.04em;
  line-height: 1.7;
  max-width: 30em;
  margin: 0 auto;
}

#cover .cover-foot {
  position: absolute;
  bottom: 5vh;
  left: 0; right: 0;
  text-align: center;
  font-size: 9px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: rgba(245, 242, 235, 0.3);
}

/* ---- Section title pattern ---- */
.section-inner { max-width: 1100px; width: 100%; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  margin-bottom: 3vh;
}
.section-title em { color: var(--green); }

/* ---- Stat row ---- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 4vh 0;
}
.stat-row.four-up { grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: rgba(46, 143, 91, 0.08);
  border: 1px solid rgba(46, 143, 91, 0.2);
  border-radius: 8px;
  padding: 3vh 1.5vw;
  text-align: center;
}
.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1vh;
}
.stat-label {
  font-size: 12px;
  color: var(--cream-muted);
  line-height: 1.4;
  letter-spacing: 0.02em;
}

/* ---- Two-col cards ---- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin: 3vh 0;
}
.col-card {
  background: var(--bg-soft);
  border: 1px solid var(--rule);
  border-radius: 8px;
  padding: 3.5vh 2.5vw;
}
.col-card h3 {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 22px;
  color: var(--green);
  margin-bottom: 2vh;
  font-weight: 400;
}
.col-card ul { list-style: none; }
.col-card ul li {
  padding: 0.6em 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--cream-muted);
  display: flex;
  align-items: baseline;
  gap: 0.8em;
  line-height: 1.5;
}
.col-card ul li:last-child { border-bottom: none; }
.col-card ul li::before {
  content: "\2022";
  color: var(--green);
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

/* ---- 3-step grid ---- */
.journey-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 4vh 0;
  border: 1px solid rgba(46, 143, 91, 0.25);
  border-radius: 8px;
  overflow: hidden;
}
.step {
  padding: 4vh 2.5vw;
  text-align: center;
  position: relative;
  background: rgba(46, 143, 91, 0.04);
}
.step:not(:last-child) { border-right: 1px solid rgba(46, 143, 91, 0.15); }
.step-num {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 500;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1.5vh;
}
.step-title {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--cream);
  margin-bottom: 1.5vh;
  text-transform: uppercase;
  font-size: 11px;
}
.step-body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--cream-muted);
}

/* ---- Pull-quote ---- */
.pullquote {
  background: rgba(46, 143, 91, 0.06);
  border-left: 3px solid var(--green);
  border-radius: 0 8px 8px 0;
  padding: 4vh 3.5vw;
  margin: 3vh 0;
}
.pullquote p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(22px, 2.4vw, 36px);
  color: var(--cream);
  line-height: 1.4;
  margin-bottom: 2vh;
}
.pullquote .attrib {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ---- Closing signature ---- */
.signature {
  margin-top: 4vh;
  padding-top: 3vh;
  border-top: 2px solid var(--green);
  display: inline-block;
}
.sig-name {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 0.3em;
}
.sig-title { font-size: 13px; color: var(--gray); }

/* ---- Snapshot table on takeaway slide ---- */
.takeaway-inner { max-width: 880px; width: 100%; text-align: center; }
.snapshot-table {
  width: 100%;
  margin: 4vh auto 3vh;
  text-align: left;
  max-width: 640px;
}
.snapshot-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  border-bottom: 1px solid var(--rule);
  padding: 1.4em 0;
}
.snapshot-row:last-child { border-bottom: none; }
.snapshot-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  padding-top: 0.15em;
}
.snapshot-value {
  font-size: 15px;
  color: var(--cream-muted);
  line-height: 1.5;
}
