/* ============================================
   Case Study — Social Media (estilo agência/mosaico)
   Reaproveita tokens de style.css
   ============================================ */

.case-social {
  --deep: #04202E;
  --hairline: rgba(247,248,250,.10);
}

.case-social body,
body.case-social {
  background: var(--color-bg);
  color: var(--color-text);
}

.cs-wrap {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Hero ---- */
.cs-hero {
  background: var(--color-dark);
  padding: 64px 0 0;
}
.cs-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: end;
  padding-bottom: 56px;
}
.cs-tag {
  font-size: .95rem;
  color: var(--color-primary);
  margin: 0 0 20px;
}
.cs-hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
  background: linear-gradient(180deg, #FFFFFF 0%, #A9B1BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.cs-hero-visual {
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--deep), var(--color-dark-soft));
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-hero-visual img { width: 100%; height: 100%; object-fit: cover; }
.cs-hero-visual .cs-placeholder { color: var(--color-text-on-dark-muted); font-size: .85rem; text-align: center; padding: 24px; }

/* ---- Intro clara ---- */
.cs-intro {
  background: var(--color-bg);
  padding: 88px 0;
}
.cs-intro-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 64px;
}
.cs-intro h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 14ch;
}
.cs-intro .accent { color: var(--color-primary); }
.cs-intro-copy {
  color: var(--color-text-muted);
  font-size: 1.05rem;
  max-width: 46ch;
  align-self: end;
}

/* ---- Processo (fundo escuro, mockup + tiras) ---- */
.cs-process {
  background: var(--color-dark);
  padding: 96px 0;
}
.cs-process-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: 56px;
}
.cs-process-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0;
  max-width: 12ch;
  background: linear-gradient(180deg, #FFFFFF 0%, #A9B1BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.cs-process-note {
  color: var(--color-text-on-dark-muted);
  max-width: 32ch;
  font-size: .98rem;
}

.cs-process-stage {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 56px;
  align-items: center;
  margin-bottom: 48px;
}
.cs-stage-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.cs-stage-tab {
  border: 1px solid var(--color-dark-border);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: .88rem;
  color: var(--color-text-on-dark-muted);
}
.cs-stage-tab.is-active {
  border-color: var(--color-primary);
  color: var(--color-text-on-dark);
  background: rgba(0,111,156,.12);
}
.cs-stage-label {
  font-size: .85rem;
  color: var(--color-primary);
  margin: 0 0 10px;
}
.cs-stage-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 0 0 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, #A9B1BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.cs-stage-desc {
  color: var(--color-text-on-dark-muted);
  font-size: .96rem;
  max-width: 40ch;
}

.cs-phone-mock {
  justify-self: center;
  width: 100%;
  max-width: 300px;
  aspect-ratio: 9 / 17.5;
  border-radius: 32px;
  overflow: hidden;
  background: var(--color-dark-soft);
  border: 1px solid var(--color-dark-border);
  box-shadow: 0 40px 80px rgba(0,0,0,.4);
}
.cs-phone-mock img { width: 100%; height: 100%; object-fit: cover; }

.cs-thumb-strip {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}
.cs-thumb {
  flex: 0 0 auto;
  width: 132px;
  aspect-ratio: 4/5;
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-dark-soft);
  border: 1px solid var(--color-dark-border);
  opacity: .55;
  transition: opacity .15s ease;
}
.cs-thumb.is-active { opacity: 1; border-color: var(--color-primary); }
.cs-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Mosaico ---- */
.cs-mosaic-section {
  background: var(--color-bg);
  padding: 96px 0;
}
.cs-mosaic-head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
  max-width: 15ch;
}
.cs-mosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.cs-mosaic-item {
  border-radius: 4px;
  overflow: hidden;
  background: var(--color-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cs-mosaic-item--wide { grid-column: span 2; aspect-ratio: 16/8; }
.cs-mosaic-item--tall { aspect-ratio: 4/5; }
.cs-mosaic-item--square { aspect-ratio: 1/1; }
.cs-mosaic-item .cs-placeholder {
  color: var(--color-text-on-dark-muted);
  font-size: .82rem;
  text-align: center;
  padding: 16px;
}

/* ---- Princípios ---- */
.cs-principles {
  background: var(--color-bg);
  padding: 0 0 96px;
  border-top: 1px solid rgba(11,15,20,.08);
  margin-top: 96px;
  padding-top: 80px;
}
.cs-principles h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
  max-width: 16ch;
}
.cs-principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.cs-principle h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 10px;
}
.cs-principle p {
  color: var(--color-text-muted);
  font-size: .96rem;
  margin: 0;
}

/* ---- CTA final ---- */
.cs-cta {
  background: var(--color-dark);
  padding: 96px 0 56px;
}
.cs-cta-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}
.cs-cta h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 16ch;
  background: linear-gradient(180deg, #FFFFFF 0%, #A9B1BC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  padding-bottom: .08em;
}
.cs-cta-footer {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-top: 56px;
  margin-top: 32px;
  border-top: 1px solid var(--color-dark-border);
}
.cs-cta-footer .cs-topbar-all { font-weight: 500; }

/* ---- Responsivo ---- */
@media (max-width: 860px) {
  .cs-hero-grid,
  .cs-intro-grid,
  .cs-process-head,
  .cs-process-stage {
    grid-template-columns: 1fr;
  }
  .cs-intro-copy { align-self: auto; }
  .cs-phone-mock { max-width: 240px; }
  .cs-mosaic-item--wide { grid-column: span 2; }
  .cs-principles-grid { grid-template-columns: 1fr; gap: 32px; }
  .cs-cta-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 560px) {
  .cs-mosaic { grid-template-columns: 1fr; }
  .cs-mosaic-item--wide { grid-column: span 1; aspect-ratio: 4/5; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
