/* ═══════════════════════════════════════════════════════
   case-study.css  —  Shared layout for all case study pages
   (nordic-home, actura, dear-beany, salong)
   Brand colors come from each page's own CSS :root vars.
   ═══════════════════════════════════════════════════════ */

/* ── NAV LINKS (outside <nav> to avoid backdrop-filter stacking context bug) ── */
/* Desktop only — do NOT set display here at all; nav.css mobile media query hides it */
@media (min-width: 769px) {
  .nav-links {
    position: fixed;
    top: 1.5rem;
    right: 3rem;
    z-index: 9001;
    background: none;
    display: flex;
    align-items: center;
    gap: 2.5rem;
    list-style: none;
  }
}

/* ── CASE HERO ── */
.case-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 5vw 6rem;
  background: var(--bg-dark, #1E2A35);
  position: relative;
  overflow: hidden;
}
.case-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.3;
  transform: scale(1.04);
  transition: transform 8s ease;
}
.case-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.45;
}
.case-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.case-hero-content { position: relative; z-index: 2; }

.case-eyebrow {
  font-family: 'Cousine', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand-lt);
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.case-eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--brand-lt);
}
.case-title {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: clamp(4.5rem, 12vw, 10rem);
  color: var(--white);
  line-height: 0.88;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.case-title em { font-style: italic; color: var(--brand-lt); }
.case-tagline {
  font-family: 'Cousine', monospace;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── INTRO STRIP ── */
.intro-strip {
  background: var(--brand-dk);
  color: var(--white);
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}
.meta-label {
  font-family: 'Cousine', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.3rem;
}
.meta-value {
  font-family: 'Cousine', monospace;
  font-size: 0.8rem;
  color: var(--white);
}

/* ── SECTIONS ── */
.section { padding: 7rem 5vw; max-width: 1300px; margin: 0 auto; }

.section-dark {
  background: var(--bg-dark, #1E2A35);
  color: var(--white);
  max-width: 100%;
  padding: 7rem 5vw;
}
.section-dark .section-inner { max-width: 1300px; margin: 0 auto; }

.section-alt {
  background: var(--bg-alt);
  max-width: 100%;
  padding: 7rem 5vw;
}
.section-alt .section-inner { max-width: 1300px; margin: 0 auto; }

/* ── SECTION LABELS & HEADINGS ── */
.section-label {
  font-family: 'Cousine', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.section-label::before { content: ''; display: block; width: 20px; height: 1px; background: var(--brand); }
.section-label-light { color: var(--brand-lt); }
.section-label-light::before { background: var(--brand-lt); }

.section-heading {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}
.section-heading-light { color: var(--white); }

.section-body {
  font-family: 'Cousine', monospace;
  font-size: 0.78rem;
  line-height: 1.9;
  color: var(--ink-soft);
  max-width: 600px;
}
.section-body-light { color: rgba(255,255,255,0.72); }
.section-body p + p { margin-top: 1.2rem; }

/* ── TWO-COLUMN LAYOUT ── */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }

/* ── MOCKUP CARDS ── */
.mockup-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2rem; margin-top: 4rem; }
.mockup-card {
  border-radius: 1.5rem;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.mockup-card.tall { grid-row: span 2; aspect-ratio: auto; }
.mockup-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mockup-placeholder {
  font-family: 'Cousine', monospace;
  font-size: 0.65rem;
  color: rgba(160,186,164,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  padding: 2rem;
}

/* ── FULL-WIDTH SHOWCASE ── */
.showcase-full {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: 1.5rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4rem;
}
.showcase-full img { width: 100%; height: 100%; object-fit: cover; }
.showcase-placeholder {
  font-family: 'Cousine', monospace;
  font-size: 0.65rem;
  color: rgba(160,186,164,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ── PROCESS STEPS ── */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 3rem; }
.step-num {
  font-family: 'Fraunces', serif;
  font-optical-sizing: auto;
  font-size: 3.5rem;
  color: var(--brand-lt);
  line-height: 1;
  margin-bottom: 0.75rem;
  font-style: italic;
}
.step-title {
  font-family: 'Cousine', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.6rem;
}
.step-body {
  font-family: 'Cousine', monospace;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
}

/* ── CASE NAV ── */
.case-nav {
  background: var(--bg-alt);
  padding: 3rem 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.case-nav a {
  font-family: 'Cousine', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
  transition: color 0.2s;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.case-nav a:hover { color: var(--brand-dk); }
.case-nav-center {
  font-family: 'Cousine', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(26,31,36,0.35);
}

/* ── COLOUR SWATCHES ── */
.colour-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem; margin-top: 3rem; }
.colour-swatch { border-radius: 1rem; overflow: hidden; }
.swatch-block { height: 120px; width: 100%; }
.swatch-label { padding: 0.75rem 0.6rem; }
.swatch-name {
  font-family: 'Cousine', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.2rem;
}
.swatch-hex { font-family: 'Cousine', monospace; font-size: 0.58rem; color: var(--ink-soft); }

/* ── VIDEO PLAYER ── */
.video-wrap { position: relative; border-radius: 1.5rem; overflow: hidden; cursor: pointer; }
.video-wrap video { display: block; width: 100%; height: auto; }
.video-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0);
  transition: background 0.25s ease;
}
.video-btn-icon {
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.92);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.video-btn-icon svg { width: 22px; height: 22px; fill: var(--brand); }
.video-wrap:hover .video-btn { background: rgba(0,0,0,0.18); }
.video-wrap:hover .video-btn-icon { opacity: 1; transform: scale(1); }
.video-wrap.paused .video-btn { background: rgba(0,0,0,0.35); }
.video-wrap.paused .video-btn-icon { opacity: 1; transform: scale(1); }

/* ── PARALLAX HELPERS ── */
.parallax-wrap { position: relative; overflow: hidden; }
.parallax-img { will-change: transform; }

/* ── VISIT BUTTON (Dear Beany) ── */
.btn-visit {
  display: inline-block;
  margin-top: 2rem;
  background: var(--brand);
  color: var(--white);
  font-family: 'Cousine', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 2rem;
  border-radius: 999px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}
.btn-visit:hover { background: var(--brand-dk); transform: translateY(-2px); }

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .section { padding: 4rem 5vw; }
  .section-dark, .section-alt { padding: 4rem 5vw; }
  .two-col, .two-col.reverse { grid-template-columns: 1fr; direction: ltr; }
  .design-detail-grid { grid-template-columns: 1fr !important; }
  .mockup-grid { grid-template-columns: 1fr; }
  .mockup-card.tall { grid-row: auto; }
  .process-steps { grid-template-columns: 1fr; }
  .colour-grid { grid-template-columns: repeat(2, 1fr); }
  .colour-video-row { grid-template-columns: 1fr !important; }
  .colour-video-col { width: 100% !important; }
  .case-nav { flex-direction: column; gap: 1.5rem; text-align: center; }
  .intro-strip { flex-direction: column; gap: 1.5rem; align-items: center; text-align: center; }
}
@media (max-width: 480px) {
  .section { padding: 3rem 5vw; }
  .section-dark, .section-alt { padding: 3rem 5vw; }
  .case-hero { padding: 0 5vw 3.5rem; }
}
