/* FutureProof — Case Study detail page styles */

:root {
  --bg-dark:        #0D1B1B;
  --bg-dark-2:      #112524;
  --bg-cta:         #081414;
  --bg-light:       #F5F5F0;
  --bg-white:       #FFFFFF;
  --accent:         #00E676;
  --accent-dim:     #00A86B;
  --accent-active:  #009B60;
  --text-dark:      #1A1A1A;
  --text-light:     #FFFFFF;
  --text-muted:     #6B7A8D;
  --text-muted-lt:  #A8B5C4;
  --border:         #E2E8F0;
  --border-dark:    #1E3048;
  --display:        'Fraunces', Georgia, serif;
  --body:           'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono:           'Space Mono', 'SF Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body);
  color: var(--text-dark);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

.container { max-width: 1120px; margin: 0 auto; padding: 0 32px; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px; font-weight: 400; letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: inline-block;
}
.eyebrow--on-dark { color: var(--accent); }
.eyebrow--on-light { color: var(--text-muted); }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.02; }
h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.1; }
h3 { font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; line-height: 1.25; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  font-family: var(--body); font-weight: 600; font-size: 15px; line-height: 1;
  border-radius: 6px;
  border: 1.5px solid transparent;
  transition: all 200ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg-dark);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dim);
  border-color: var(--accent-dim);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,230,118,0.3);
}
.btn-primary:active { background: var(--accent-active); transform: translateY(0); }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.arrow-link {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  color: var(--accent-dim);
  background: rgba(0,230,118,0.10);
  border: 1px solid rgba(0,230,118,0.25);
  border-radius: 6px;
  line-height: 1;
  transition: all 150ms ease;
  cursor: pointer;
  white-space: nowrap;
}
.arrow-link--dark { color: var(--text-dark); background: transparent; border-color: var(--border); }
.arrow-link .arrow { display: inline-block; transition: transform 150ms ease; }
.arrow-link:hover {
  background: rgba(0,230,118,0.18);
  border-color: rgba(0,230,118,0.5);
  color: var(--accent-active);
}
.arrow-link:hover .arrow { transform: translateX(3px); }

/* ── Nav (matches homepage) ── */
nav.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: var(--bg-dark);
  transition: background-color 300ms ease, border-color 300ms ease;
  border-bottom: 1px solid var(--border-dark);
}
nav.site-nav.scrolled { background: var(--bg-dark); border-bottom-color: var(--border-dark); }
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 700; font-size: 18px;
  color: var(--text-light);
  letter-spacing: -0.01em;
}
.nav-logo img { height: 28px; width: 28px; object-fit: contain; border-radius: 4px; }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted-lt);
  position: relative; padding: 4px 0;
  transition: color 200ms ease;
}
.nav-links a.current { color: var(--text-light); }
.nav-links a::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  height: 2px; background: var(--accent);
  width: 100%; transform: scaleX(0); transform-origin: left;
  transition: transform 200ms ease;
}
.nav-links a.current::after { transform: scaleX(1); }
.nav-links a:hover { color: var(--text-light); }
.nav-links a:hover::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.country-switcher {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--text-muted-lt);
}
.country-switcher .current { color: var(--text-light); font-weight: 700; }
.country-switcher a { color: inherit; opacity: 0.7; }
.country-switcher a:hover { opacity: 1; color: var(--text-light); }
.country-switcher .sep { opacity: 0.3; }

@media (max-width: 900px) { .nav-links { display: none; } }

/* ── Case hero ── */
.case-hero {
  background: var(--bg-dark);
  color: var(--text-light);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.case-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 15% 30%, rgba(0,230,118,0.08), transparent 55%);
  pointer-events: none;
}
.case-hero .container { position: relative; z-index: 1; }
.case-back {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-muted-lt);
  margin-bottom: 32px;
  transition: color 150ms ease;
}
.case-back:hover { color: var(--accent); }

.case-hero h1 {
  color: var(--text-light);
  max-width: 900px;
}
.case-subtitle {
  margin-top: 20px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--text-muted-lt);
  max-width: 760px;
  line-height: 1.45;
}

.case-meta {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px 40px;
  max-width: 960px;
}
.case-meta-row { display: flex; flex-direction: column; gap: 6px; }
.case-meta-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
}
.case-meta-value {
  font-size: 15px; font-weight: 500;
  color: var(--text-light);
  line-height: 1.5;
}

/* ── Case body (the PNG drop-in) ── */
.case-body {
  background: var(--bg-light);
  padding: 80px 0;
}
.case-figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.04);
  background: var(--bg-white);
  border: 1px solid var(--border);
}
.case-figure img { width: 100%; height: auto; display: block; }
.case-figure-placeholder { display: none; }
.case-figure--missing .case-figure-placeholder {
  display: block;
  padding: 80px 40px;
  text-align: center;
}
.case-figure--missing .case-figure-placeholder-inner {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.case-figure--missing h3 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-dark);
}
.case-figure--missing p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Case CTA ── */
.case-cta {
  background: var(--bg-cta);
  color: var(--text-light);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.case-cta::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 50% 50%, rgba(0,230,118,0.05), transparent 60%);
  pointer-events: none;
}
.case-cta-inner {
  position: relative; z-index: 1;
  max-width: 680px; margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
.case-cta h2 {
  color: var(--text-light);
  font-style: italic;
}
.case-cta h2::after { content: ""; }
.case-cta p {
  font-size: clamp(16px, 1.4vw, 20px);
  color: var(--text-muted-lt);
  line-height: 1.6;
  max-width: 520px;
}

/* ── Footer (matches homepage) ── */
footer {
  background: var(--bg-dark);
  color: var(--text-muted-lt);
  padding: 72px 0 32px;
  border-top: 1px solid var(--border-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 48px;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; gap: 32px; } }
.footer-logo {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 16px;
}
.footer-logo img { width: 32px; height: 32px; border-radius: 4px; }
.footer-logo-text {
  font-family: var(--display);
  font-weight: 700; font-size: 20px;
  color: var(--text-light);
}
.footer-tag {
  font-size: 14px; color: var(--text-muted-lt);
  max-width: 320px; line-height: 1.6;
}
.footer-email {
  display: inline-block; margin-top: 14px;
  font-size: 14px; color: var(--accent);
  transition: color 150ms ease;
}
.footer-email:hover { color: var(--accent-dim); }
.footer-col-label {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a {
  font-size: 14px; color: var(--text-muted-lt);
  transition: color 150ms ease;
}
.footer-col a:hover { color: var(--text-light); }
.footer-bottom {
  margin-top: 56px; padding-top: 28px;
  border-top: 1px solid var(--border-dark);
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-muted);
}
@media (max-width: 720px) {
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

/* ════════════════════════════════════════════════════
   RICH CASE STUDY LAYOUT
   Used for fully-built case studies (DocJuris, Dr. Katz).
   Mirrors Figma colored hero + narrative + artifact panels.
   ════════════════════════════════════════════════════ */

.cs-hero {
  position: relative;
  color: var(--text-light);
  padding: 140px 0 96px;
  overflow: hidden;
}
.cs-hero--blue      { background: #007FFF; }
.cs-hero--teal      { background: #0199A3; }
.cs-hero--navy      { background: #0E194F; }
.cs-hero--green     { background: #00E979; color: var(--text-dark); }
.cs-hero--lightblue { background: #6ABBFF; color: var(--text-dark); }

.cs-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .cs-hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

.cs-hero-copy { }
.cs-hero .case-back { color: inherit; opacity: 0.8; }
.cs-hero .case-back:hover { opacity: 1; color: inherit; }
.cs-hero .eyebrow { color: inherit; opacity: 0.9; font-weight: 600; }
.cs-hero h1 {
  color: inherit;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  margin-top: 8px;
}
.cs-hero-subtitle {
  margin-top: 18px;
  font-family: var(--body);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 400;
  line-height: 1.5;
  max-width: 440px;
  opacity: 0.95;
}

.cs-hero-shot {
  justify-self: end;
  max-width: 100%;
}
.cs-hero-shot img {
  width: 100%;
  max-width: 560px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.28), 0 3px 8px rgba(0,0,0,0.14);
  display: block;
}
@media (max-width: 900px) {
  .cs-hero-shot { justify-self: stretch; }
  .cs-hero-shot img { max-width: 100%; }
}

/* ── Narrative sections (white background) ── */
.cs-narrative {
  background: var(--bg-white);
  padding: 72px 0;
  color: var(--text-dark);
}
.cs-narrative h2 {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
  line-height: 1.2;
  max-width: 860px;
}
.cs-narrative h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
}
.cs-narrative p {
  font-size: 17px;
  line-height: 1.65;
  color: #374151;
  max-width: 880px;
  margin-top: 16px;
}

.cs-meta {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.cs-meta-row {
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
}
.cs-meta-row b {
  font-weight: 700;
  color: var(--text-dark);
  margin-right: 6px;
}

.cs-bullets {
  list-style: disc;
  margin: 18px 0 0 22px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 960px;
}
.cs-bullets li {
  font-size: 17px;
  line-height: 1.6;
  color: #374151;
}
.cs-bullets li b {
  font-weight: 700;
  color: var(--text-dark);
}

/* ── Colored artifact panels ── */
.cs-block {
  padding: 72px 0 80px;
  color: var(--text-light);
  position: relative;
}
.cs-block--blue      { background: #007FFF; }
.cs-block--teal      { background: #0199A3; }
.cs-block--navy      { background: #0E194F; }
.cs-block--green     { background: #00E979; color: var(--text-dark); }
.cs-block--lightblue { background: #6ABBFF; color: var(--text-dark); }

.cs-block h3 {
  font-family: var(--display);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  color: inherit;
  margin-bottom: 36px;
  max-width: 760px;
  line-height: 1.2;
}
.cs-block-figure {
  display: block;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.08);
  min-height: 280px;
  position: relative;
}
.cs-block-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.cs-block-figure--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  border: 1px dashed rgba(255,255,255,0.35);
}
.cs-block--green .cs-block-figure--missing,
.cs-block--lightblue .cs-block-figure--missing {
  border-color: rgba(0,0,0,0.25);
}
.cs-block-figure-empty {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.75;
  text-align: center;
  line-height: 1.8;
}
.cs-block-caption {
  margin-top: 16px;
  font-size: 12px;
  opacity: 0.8;
  font-style: italic;
}
