/* ── CASE STUDY SHARED STYLES ──────────────────────────────────────────── */
/* Loaded after tokens.css and nav.css                                       */

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--charcoal);
  line-height: 1.7;
}

/* ── HERO ── */
.hero {
  padding: 90px 80px 80px;
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 50px 80px;
  align-items: end;
}

.hero-tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 0.5rem;
  display: flex; align-items: center; justify-content: space-between;
  grid-column: 1 / -1;
}
.hero-tag span { display: none; }
.hero-tag a {
  color: var(--teal);
  text-decoration: none;
}
.hero-tag a:hover {
  text-decoration: underline;
}

.hero-eyebrow {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 0.75rem;
}

.hero h1 {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 1.1;
  color: var(--charcoal);
  margin-bottom: 1.5rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--plum);
}

.hero-desc {
  font-size: 1.125rem;
  color: var(--mid);
  max-width: 560px;
  line-height: 1.75;
}

.hero-meta {
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem;
  background: var(--ivory);
  border-radius: 4px;
  border-left: 3px solid var(--teal);
}
.meta-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  margin-bottom: 0.3rem;
}
.meta-value {
  font-size: 0.9rem;
  color: var(--charcoal);
  font-weight: 500;
}

/* ── HERO IMAGE ── */
.hero-image-full {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 0;
  padding: 0 80px 80px;
}
.hero-image-full .img-placeholder {
  width: 100%;
  height: 480px;
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── DIVIDER ── */
.divider {
  width: 100%; height: 1px;
  background: var(--border);
  max-width: 1200px; margin: 0 auto;
  padding: 0 80px;
}
.divider-inner { height: 1px; background: var(--border); }

/* ── CONTENT SECTIONS ── */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 80px;
}

.section {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 60px;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-child { border-bottom: none; }

.section-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--teal);
  padding-top: 0.4rem;
  position: sticky; top: 100px;
  align-self: start;
}

.section-body h2 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem; line-height: 1.25;
  color: var(--charcoal);
  margin-bottom: 1.25rem;
}
.section-body h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 1.2rem;
  color: var(--plum);
  margin: 2rem 0 0.75rem;
}
.section-body p {
  font-size: 1rem; line-height: 1.8;
  color: #3D3936;
  margin-bottom: 1.25rem;
}
.section-body p:last-child { margin-bottom: 0; }
.section-body strong { color: var(--charcoal); font-weight: 600; }

/* ── CALLOUT / QUOTE ── */
.callout {
  background: var(--ivory);
  border-left: 3px solid var(--plum);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}
.callout p {
  font-family: 'DM Serif Display', serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--plum);
  line-height: 1.6;
  margin: 0;
}
.callout cite {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.78rem; font-weight: 500;
  color: var(--mid);
  margin-top: 0.75rem;
  font-style: normal;
  letter-spacing: 0.05em;
}

/* ── STAT ROW ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 2rem 0;
}
.stat-card {
  background: var(--ivory);
  padding: 1.75rem 1.5rem;
}
.stat-card:first-child { border-radius: 4px 0 0 4px; }
.stat-card:last-child { border-radius: 0 4px 4px 0; }
.stat-num {
  font-family: 'DM Serif Display', serif;
  font-size: 2.5rem;
  color: var(--plum);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.stat-desc {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem; font-weight: 500;
  color: var(--mid);
  line-height: 1.4;
}

/* ── IMAGE PLACEHOLDERS ── */
.img-placeholder {
  width: 100%;
  background: var(--ivory);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--mid);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
}
.img-placeholder.tall { height: 400px; }
.img-placeholder.medium { height: 280px; }
.img-placeholder.short { height: 200px; }

.img-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; margin: 2rem 0;
}
.img-grid-3 {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin: 2rem 0;
}
.img-caption {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.75rem; color: var(--mid);
  margin-top: 0.75rem; line-height: 1.5;
}

/* ── PROCESS STEPS ── */
.process-steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 1.5rem 0;
}
.process-step {
  display: flex; gap: 1.5rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child { border-bottom: none; }
.step-num {
  font-family: 'DM Serif Display', serif;
  font-size: 1.5rem; color: var(--teal);
  min-width: 2rem; line-height: 1.4;
}
.step-content h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem; font-weight: 600;
  color: var(--charcoal); margin-bottom: 0.4rem;
}
.step-content p {
  font-size: 0.9rem; color: var(--mid);
  margin: 0; line-height: 1.6;
}

/* ── TAG CHIPS ── */
.tags {
  display: flex; flex-wrap: wrap; gap: 0.5rem;
  margin: 1.5rem 0;
}
.tag {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--ivory);
  color: var(--mid);
  border: 1px solid var(--border);
}
.tag.highlight {
  background: var(--plum);
  color: white;
  border-color: var(--plum);
}

/* ── CASE NAVIGATION (prev / next) ── */
.case-nav {
  display: flex;
  background: var(--charcoal);
}
.case-nav-item {
  flex: 1;
  padding: 60px 80px;
  text-decoration: none;
  transition: background 0.3s;
  display: block;
}
.case-nav-prev { border-right: 1px solid rgba(255,255,255,0.08); }
.case-nav-next:only-child,
.case-nav-prev:only-child {
  border-right: none;
}
.case-nav-item:not(.case-nav--disabled):hover {
  background: var(--plum);
  cursor: pointer;
}
.case-nav--disabled {
  opacity: 0.35;
  cursor: default;
  filter: grayscale(0.4);
  pointer-events: none;
}
.case-nav-direction {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.case-nav-title {
  font-family: 'DM Serif Display', serif;
  font-size: 1.75rem; color: white;
  line-height: 1.2;
}
.case-nav-wip {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-top: 0.6rem;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 99;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(30, 26, 24, 0.12);
  color: var(--charcoal);
  text-decoration: none;
  font-size: 1.25rem;
  line-height: 1;
  border: 2px solid var(--charcoal);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.2s ease,
              background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.back-to-top.visible {
  opacity: 0.7;
  visibility: visible;
}
.back-to-top:hover {
  transform: translateY(-3px);
  background: rgba(30, 26, 24, 0.25);
  color: var(--charcoal);
}
.back-to-top.over-dark {
  background: rgba(245, 239, 224, 0.15);
  color: var(--ivory);
  border-color: rgba(245, 239, 224, 0.7);
}
.back-to-top.over-dark:hover {
  background: rgba(245, 239, 224, 0.28);
  color: var(--ivory);
  border-color: var(--ivory);
}

/* ── REVEAL ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 120px 24px 48px; gap: 40px; }
  .hero-image-full { padding: 0 24px 48px; }
  .content { padding: 0 24px; }
  .section { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .section-label { position: static; }
  .stat-row { grid-template-columns: 1fr; gap: 2px; }
  .img-grid-2 { grid-template-columns: 1fr; }
  .img-grid-3 { grid-template-columns: 1fr 1fr; }
  .case-nav { flex-direction: column; }
  .case-nav-prev { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .case-nav-item { padding: 40px 24px; }
}
