/* Gold Top Collective — case study pages. Shares the design system with index.html. */

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

:root {
  --cream: #FFEAC4;
  --cream-light: #FFF4E0;
  --cream-dark: #F4E8CB;
  --offwhite: #FCF9F2;
  --purple: #3E214D;
  --purple-deep: #2F003A;
  --pink: #CC3366;
  --pink-light: #F9E0EA;
  --gold: #BA924A;
  --gold-light: #D4B96E;
  --gold-dark: #9A7638;
  --ink: #3E214D;
  --ink-secondary: #6B4E7A;
  --ink-muted: #8D7499;
  --border: #3E214D;
  --font-body: 'Work Sans', -apple-system, sans-serif;
  --font-heading: 'Barlow Condensed', -apple-system, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius-card: 36px;
  --radius-btn: 9999px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream) url('/grain-texture.jpg') repeat;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ===== NAV (same as homepage) ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  transition: all 0.35s var(--ease);
  overflow: hidden;
}
.nav.scrolled {
  background: var(--purple);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}
.nav-logo .logo-cream { display: none; }
.nav.scrolled .nav-logo .logo-purple { display: none; }
.nav.scrolled .nav-logo .logo-cream { display: block; }
.nav.scrolled .nav-link { color: var(--cream); }
.nav.scrolled .nav-link:hover { color: var(--gold); }
.nav.scrolled .nav-cta { background: var(--cream); color: var(--purple); }
.nav.scrolled .nav-cta:hover { background: var(--gold); color: var(--purple); }
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  overflow: hidden;
}
.nav-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 1; min-width: 0; }
.nav-logo img { height: 32px; width: auto; max-width: 180px; }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  color: var(--ink-secondary);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.nav-link:hover { color: var(--pink); }
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  flex-shrink: 0;
  background: var(--purple);
  color: var(--cream);
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: var(--pink); transform: translateY(-1px); }
.nav-cta svg { width: 14px; height: 14px; }

/* ===== CASE HERO ===== */
.cs-hero {
  padding: 9.5rem 2rem 3.5rem;
  text-align: center;
}
.cs-hero-inner { max-width: 880px; margin: 0 auto; }
.cs-breadcrumb {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.5rem;
}
.cs-breadcrumb a { color: var(--ink-muted); text-decoration: none; }
.cs-breadcrumb a:hover { color: var(--pink); }
.cs-breadcrumb span { color: var(--ink-muted); margin: 0 0.4rem; }
.cs-client-logo {
  height: 44px;
  width: auto;
  max-width: 240px;
  margin: 0 auto 1.5rem;
  display: block;
}
.cs-industry {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cream);
  background: var(--gold);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-btn);
  margin-bottom: 1.25rem;
}
.cs-industry.pink { background: var(--pink); }
.cs-industry.purple { background: var(--purple); }
.cs-hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: var(--purple);
  margin-bottom: 1.25rem;
}
.cs-standfirst {
  font-size: 1.1rem;
  color: var(--ink-secondary);
  line-height: 1.55;
  max-width: 640px;
  margin: 0 auto;
}

/* ===== STATS BAND ===== */
.cs-stats {
  display: flex;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
  padding: 2.25rem 2rem;
  max-width: 880px;
  margin: 1rem auto 0;
}
.cs-stat { display: flex; flex-direction: column; align-items: center; text-align: center; }
.cs-stat-value {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 2.4rem;
  color: var(--pink);
  line-height: 1.1;
}
.cs-stat-label {
  font-size: 0.8rem;
  color: var(--ink-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ===== SCREENSHOT FRAME ===== */
.cs-shot {
  max-width: 980px;
  margin: 1.5rem auto;
  padding: 0 2rem;
}
.cs-shot-frame {
  background: var(--offwhite);
  border-radius: 20px;
  border: 2px solid var(--purple);
  box-shadow: 0 24px 60px -24px rgba(62, 33, 77, 0.35);
  overflow: hidden;
}
.cs-shot-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--purple);
}
.cs-shot-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--cream);
  opacity: 0.55;
}
.cs-shot-bar span:first-child { background: var(--pink); opacity: 1; }
.cs-shot-bar span:nth-child(2) { background: var(--gold); opacity: 1; }
.cs-shot-frame img { display: block; width: 100%; height: auto; }
.cs-shot-caption {
  text-align: center;
  font-size: 0.8rem;
  color: var(--ink-muted);
  margin-top: 0.75rem;
  font-style: italic;
}

/* ===== STORY BODY ===== */
.cs-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem 2rem 1rem;
  text-align: left;
}
.cs-body h2 {
  font-family: 'Damion', cursive;
  font-size: 1.9rem;
  font-weight: 400;
  color: var(--gold-dark);
  margin: 2.25rem 0 0.75rem;
}
.cs-body h2:first-child { margin-top: 0; }
.cs-body p {
  font-size: 0.95rem;
  color: var(--ink-secondary);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.cs-body strong { color: var(--purple); font-weight: 600; }

/* ===== HIGHLIGHTS ===== */
.cs-highlights {
  max-width: 720px;
  margin: 1rem auto 0;
  padding: 0 2rem;
}
.cs-highlights-card {
  background: var(--cream-light);
  border-radius: var(--radius-card);
  padding: 2rem 2.25rem;
  text-align: left;
}
.cs-highlights-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
  margin-bottom: 1rem;
}
.cs-highlights ul {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.cs-highlights li {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.45;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.cs-highlights li svg {
  width: 15px; height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--gold-dark);
}

/* ===== HUMAN NOTE ===== */
.cs-note {
  max-width: 720px;
  margin: 2rem auto 0;
  padding: 0 2rem;
}
.cs-note p {
  border-top: 1px dashed var(--gold);
  border-bottom: 1px dashed var(--gold);
  padding: 1.25rem 0.5rem;
  font-size: 0.95rem;
  color: var(--ink-secondary);
  font-style: italic;
  line-height: 1.6;
  text-align: center;
}

/* ===== PAGE CTA ===== */
.cs-cta { padding: 4.5rem 2rem 6rem; text-align: center; }
.cs-cta-card {
  max-width: 880px;
  margin: 0 auto;
  background: var(--purple);
  border-radius: var(--radius-card);
  padding: 3.5rem 2.5rem;
}
.cs-cta-heading {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  text-transform: uppercase;
  color: var(--cream);
  line-height: 1.05;
  margin-bottom: 0.75rem;
}
.cs-cta-desc {
  color: var(--cream);
  opacity: 0.85;
  font-size: 0.95rem;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 1.75rem;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.9rem;
  background: var(--pink);
  color: #fff;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: all 0.3s var(--ease);
}
.btn-primary:hover { background: var(--gold); color: var(--purple); transform: translateY(-2px); }
.btn-primary svg { width: 16px; height: 16px; }
.cs-cta-secondary {
  display: block;
  margin-top: 1.5rem;
  color: var(--cream);
  opacity: 0.7;
  font-size: 0.85rem;
}
.cs-cta-secondary a { color: var(--cream); }

/* ===== PREV/NEXT ===== */
.cs-pager {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.cs-pager a {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--purple);
  text-decoration: none;
}
.cs-pager a:hover { color: var(--pink); }

/* ===== INDEX GRID (case-studies/) ===== */
.cs-grid {
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 2rem 5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.cs-grid-card {
  background: var(--cream-light);
  border-radius: var(--radius-card);
  padding: 2.25rem;
  border: 2px solid transparent;
  transition: all 0.4s var(--ease);
  text-align: left;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(16px);
}
.cs-grid-card.visible { opacity: 1; transform: translateY(0); }
.cs-grid-card:hover { border-color: var(--gold); background: var(--offwhite); }
.cs-grid-logo { height: 34px; width: auto; max-width: 200px; margin-bottom: 1.25rem; align-self: flex-start; }
.cs-grid-card .cs-industry { align-self: flex-start; }
.cs-grid-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0.75rem 0;
  color: var(--purple);
}
.cs-grid-desc {
  font-size: 0.875rem;
  color: var(--ink-secondary);
  line-height: 1.5;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}
.cs-grid-link {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--pink);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--purple);
  padding: 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-text { color: var(--cream); opacity: 0.7; font-size: 0.8rem; }
.footer-links { display: flex; gap: 1.5rem; }
.footer-link { color: var(--cream); font-size: 0.8rem; text-decoration: none; opacity: 0.85; }
.footer-link:hover { opacity: 1; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav { padding: 0.75rem 1rem; }
  .nav-cta { font-size: 0.7rem; padding: 0.45rem 0.75rem; white-space: nowrap; }
  .cs-hero { padding: 7.5rem 1.5rem 2.5rem; }
  .cs-stats { gap: 2rem; padding: 1.5rem; }
  .cs-stat-value { font-size: 1.9rem; }
  .cs-grid { grid-template-columns: 1fr; }
  .cs-highlights ul { grid-template-columns: 1fr; }
  .cs-body, .cs-highlights, .cs-note { padding-left: 1.5rem; padding-right: 1.5rem; }
}
