/* ==========================================================================
   CASE ESTRATÉGICO UM CARA CARAMELO — ESTILOS OFICIAIS
   Design autoral, cinematográfico e compatível com @caramelo/design-system
   ========================================================================== */

/* Trava de scroll acessível durante modal aberto */
html.cm-case-viewer-active,
body.cm-case-viewer-active {
  overflow: hidden !important;
  touch-action: none;
}

/* --------------------------------------------------------------------------
   1. FEATURED CASE BANNER (HOME — #projetos)
   -------------------------------------------------------------------------- */

.cm-featured-case {
  position: relative;
  margin-bottom: 60px;
  background: linear-gradient(145deg, #16161b 0%, #1a1922 50%, #121217 100%);
  border: 1px solid rgba(255, 244, 232, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 244, 232, 0.15);
  transition: border-color var(--cm-dur-micro, 200ms) ease;
}

.cm-featured-case:hover {
  border-color: rgba(255, 112, 26, 0.35);
}

.cm-featured-case::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 112, 26, 0.15) 0%, rgba(118, 87, 255, 0.08) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cm-featured-case__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  padding: 48px;
  align-items: center;
}

.cm-featured-case__content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cm-featured-badge-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.cm-featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-family: var(--body, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
}

.cm-featured-badge--primary {
  background: rgba(255, 112, 26, 0.15);
  color: var(--orange, #FF701A);
  border: 1px solid rgba(255, 112, 26, 0.3);
}

.cm-featured-badge--secondary {
  background: rgba(255, 244, 232, 0.06);
  color: rgb(var(--cm-fg-muted, 200 195 190));
  border: 1px solid rgba(255, 244, 232, 0.1);
}

.cm-featured-case__title {
  font-family: var(--display, sans-serif);
  font-size: clamp(32px, 3.8vw, 54px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-featured-case__title span {
  color: var(--orange, #FF701A);
}

.cm-featured-case__desc {
  font-family: var(--body, sans-serif);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: rgb(var(--cm-fg-muted, 190 185 180));
  margin: 0;
  max-width: 540px;
}

.cm-featured-case__pillars-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 244, 232, 0.1);
  border-bottom: 1px solid rgba(255, 244, 232, 0.1);
}

.cm-featured-pillar-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cm-featured-pillar-item strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange, #FF701A);
}

.cm-featured-pillar-item span {
  font-size: 13px;
  color: var(--cream, #FFF4E8);
}

.cm-featured-case__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}

/* Layered Carousel Deck Visual */
.cm-featured-deck {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
  min-height: 380px;
}

.cm-deck-stack {
  position: relative;
  width: 250px;
  height: 333px; /* 3:4 ratio */
}

.cm-deck-card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 2px 6px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 244, 232, 0.15);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.3s ease;
  transform-origin: bottom center;
}

.cm-deck-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fan arrangement */
.cm-deck-card--1 {
  transform: translateX(-48px) translateY(12px) rotate(-8deg);
  z-index: 1;
}

.cm-deck-card--2 {
  transform: translateX(-16px) translateY(4px) rotate(-3deg);
  z-index: 2;
}

.cm-deck-card--3 {
  transform: translateX(18px) translateY(-2px) rotate(3deg);
  z-index: 3;
}

.cm-deck-card--4 {
  transform: translateX(50px) translateY(10px) rotate(8deg);
  z-index: 4;
}

.cm-featured-deck:hover .cm-deck-card--1 {
  transform: translateX(-80px) translateY(16px) rotate(-14deg) scale(0.96);
}

.cm-featured-deck:hover .cm-deck-card--2 {
  transform: translateX(-28px) translateY(0px) rotate(-5deg) scale(0.98);
}

.cm-featured-deck:hover .cm-deck-card--3 {
  transform: translateX(28px) translateY(-6px) rotate(5deg) scale(1.02);
}

.cm-featured-deck:hover .cm-deck-card--4 {
  transform: translateX(84px) translateY(14px) rotate(14deg) scale(0.98);
}

.cm-deck-badge {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(16, 16, 20, 0.88);
  backdrop-filter: blur(8px);
  color: var(--cream, #FFF4E8);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  white-space: nowrap;
  border: 1px solid rgba(255, 244, 232, 0.2);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.5);
}

.cm-deck-badge span.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange, #FF701A);
  animation: cm-pulse 2s infinite ease-in-out;
}

@keyframes cm-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

@media (max-width: 999px) {
  .cm-featured-case__inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 32px 24px;
  }

  .cm-featured-deck {
    min-height: 320px;
  }

  .cm-deck-stack {
    width: 210px;
    height: 280px;
  }
}

@media (max-width: 650px) {
  .cm-featured-case {
    margin-bottom: 40px;
    border-radius: 10px;
  }

  .cm-featured-case__inner {
    padding: 24px 18px;
    gap: 28px;
  }

  .cm-featured-case__title {
    font-size: 28px;
  }

  .cm-featured-case__pillars-strip {
    flex-direction: column;
    gap: 10px;
  }

  .cm-featured-case__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cm-featured-case__actions .pill {
    width: 100%;
    justify-content: center;
  }

  .cm-featured-deck {
    min-height: 280px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
  }

  .cm-deck-stack {
    width: 190px;
    height: 253px;
  }

  .cm-deck-card--1 { transform: translateX(-35px) translateY(8px) rotate(-6deg); }
  .cm-deck-card--2 { transform: translateX(-12px) translateY(2px) rotate(-2deg); }
  .cm-deck-card--3 { transform: translateX(12px) translateY(-2px) rotate(2deg); }
  .cm-deck-card--4 { transform: translateX(35px) translateY(8px) rotate(6deg); }
}

/* --------------------------------------------------------------------------
   2. PREVIEW NO SERVIÇO HEAD DE CONTEÚDO (/head-de-conteudo)
   -------------------------------------------------------------------------- */

.cm-head-preview-case {
  background: #16161b;
  border: 1px solid rgba(255, 244, 232, 0.12);
  border-radius: 12px;
  padding: 36px;
  margin-bottom: 40px;
  position: relative;
  overflow: hidden;
}

.cm-head-preview-case__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 28px 0;
}

.cm-head-preview-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #1e1e26;
  border: 1px solid rgba(255, 244, 232, 0.1);
  cursor: pointer;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cm-head-preview-card:hover {
  transform: translateY(-5px);
  border-color: var(--orange, #FF701A);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
}

.cm-head-preview-card__media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
}

.cm-head-preview-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cm-head-preview-card:hover .cm-head-preview-card__media img {
  transform: scale(1.05);
}

.cm-head-preview-card__caption {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.cm-head-preview-card__pillar {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange, #FF701A);
}

.cm-head-preview-card__title {
  font-family: var(--display, sans-serif);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-head-preview-card__meta {
  font-size: 11px;
  color: rgb(var(--cm-fg-muted, 160 155 150));
  margin-top: auto;
}

@media (max-width: 999px) {
  .cm-head-preview-case__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 650px) {
  .cm-head-preview-case {
    padding: 24px 16px;
  }

  .cm-head-preview-case__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

/* --------------------------------------------------------------------------
   3. PÁGINA DO ESTUDO DE CASO COMPLETO (/projetos/um-cara-caramelo-conteudo)
   -------------------------------------------------------------------------- */

.cm-case-page {
  background: var(--ink, #101014);
  color: var(--cream, #FFF4E8);
}

/* Hero do Estudo de Caso */
.cm-case-hero {
  padding: 150px 0 60px;
  position: relative;
  overflow: hidden;
}

.cm-case-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 112, 26, 0.12) 0%, rgba(118, 87, 255, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.cm-case-hero__container {
  position: relative;
  z-index: 1;
}

.cm-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgb(var(--cm-fg-muted, 170 165 160));
  margin-bottom: 24px;
}

.cm-breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}

.cm-breadcrumb a:hover {
  color: var(--orange, #FF701A);
}

.cm-case-hero__title {
  font-family: var(--display, sans-serif);
  font-size: clamp(48px, 8.5vw, 108px);
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: -0.065em;
  text-transform: uppercase;
  margin: 0 0 24px 0;
}

.cm-case-hero__subtitle {
  font-family: var(--body, sans-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.45;
  color: var(--cream, #FFF4E8);
  max-width: 820px;
  margin-bottom: 40px;
}

.cm-case-metadata-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 28px;
  background: #17171d;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 10px;
  margin-top: 36px;
}

.cm-case-metadata-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cm-case-metadata-item dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange, #FF701A);
}

.cm-case-metadata-item dd {
  margin: 0;
  font-size: 14px;
  color: var(--cream, #FFF4E8);
  line-height: 1.4;
}

@media (max-width: 800px) {
  .cm-case-metadata-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    padding: 20px;
  }
}

@media (max-width: 500px) {
  .cm-case-metadata-grid {
    grid-template-columns: 1fr;
  }
}

/* Seções de Texto e Storytelling */
.cm-case-section {
  padding: 90px 0;
  border-top: 1px solid rgba(255, 244, 232, 0.08);
}

.cm-case-section--highlight {
  background: #141419;
}

.cm-case-section-heading {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 44px;
}

.cm-case-section-num {
  font-family: var(--body, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--orange, #FF701A);
  text-transform: uppercase;
}

.cm-case-section-title {
  font-family: var(--display, sans-serif);
  font-size: clamp(34px, 4.5vw, 64px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin: 0;
}

.cm-case-prose {
  font-family: var(--body, sans-serif);
  font-size: 17px;
  line-height: 1.75;
  color: rgb(var(--cm-fg-muted, 195 190 185));
  max-width: 780px;
}

.cm-case-prose p {
  margin-bottom: 20px;
}

.cm-case-prose strong {
  color: var(--cream, #FFF4E8);
}

/* Diagrama de Premissa Estratégica */
.cm-journey-diagram {
  margin: 48px 0;
  padding: 32px;
  background: #17171d;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 12px;
}

.cm-journey-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.cm-journey-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 20px;
  border-radius: 8px;
  background: #1f1f27;
  border: 1px solid rgba(255, 244, 232, 0.08);
  min-width: 140px;
  flex: 1;
}

.cm-journey-node strong {
  font-family: var(--display, sans-serif);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--cream, #FFF4E8);
}

.cm-journey-node small {
  font-size: 11px;
  color: rgb(var(--cm-fg-dim, 150 145 140));
  margin-top: 4px;
}

.cm-journey-node.is-accent {
  background: rgba(255, 112, 26, 0.15);
  border-color: var(--orange, #FF701A);
}

.cm-journey-node.is-accent strong {
  color: var(--orange, #FF701A);
}

.cm-journey-arrow {
  color: var(--orange, #FF701A);
  font-size: 20px;
  user-select: none;
}

@media (max-width: 768px) {
  .cm-journey-steps {
    flex-direction: column;
    align-items: stretch;
  }

  .cm-journey-arrow {
    transform: rotate(90deg);
    align-self: center;
  }
}

/* Pilares Editoriais (3 Colunas) */
.cm-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 36px;
}

.cm-pillar-card {
  background: #181820;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.cm-pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 112, 26, 0.4);
}

.cm-pillar-card__day {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange, #FF701A);
}

.cm-pillar-card h3 {
  font-family: var(--display, sans-serif);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-pillar-card p {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(var(--cm-fg-muted, 185 180 175));
  margin: 0;
}

.cm-pillar-card__focus {
  padding-top: 14px;
  border-top: 1px solid rgba(255, 244, 232, 0.08);
  font-size: 12px;
  line-height: 1.5;
  color: rgb(var(--cm-fg-dim, 150 145 140));
}

@media (max-width: 850px) {
  .cm-pillars-grid {
    grid-template-columns: 1fr;
  }
}

/* Método HEAD e Diagrama de Carrossel */
.cm-method-diagram-box {
  background: #17171d;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 12px;
  padding: 32px;
  margin: 36px 0;
}

.cm-method-progression {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.cm-progression-step {
  padding: 20px;
  background: #1f1f28;
  border-radius: 8px;
  border: 1px solid rgba(255, 244, 232, 0.08);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cm-progression-step__badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--orange, #FF701A);
}

.cm-progression-step h4 {
  font-family: var(--display, sans-serif);
  font-size: 16px;
  font-weight: 800;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-progression-step p {
  font-size: 12px;
  line-height: 1.5;
  color: rgb(var(--cm-fg-muted, 175 170 165));
  margin: 0;
}

@media (max-width: 800px) {
  .cm-method-progression {
    grid-template-columns: 1fr;
  }
}

/* Grid das Séries & Visualizador */
.cm-series-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.cm-series-item {
  background: #17171e;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.cm-series-item:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 112, 26, 0.4);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.cm-series-item__media {
  position: relative;
  aspect-ratio: 16/10;
  overflow: hidden;
  background: #0f0f13;
}

.cm-series-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.cm-series-item:hover .cm-series-item__media img {
  transform: scale(1.04);
}

.cm-series-item__media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(16, 16, 20, 0.9) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.cm-series-item__slides-count {
  background: rgba(16, 16, 20, 0.85);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(255, 244, 232, 0.2);
  color: var(--cream, #FFF4E8);
}

.cm-series-item__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.cm-series-item__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.cm-series-item__pillar-badge {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange, #FF701A);
}

.cm-series-item h3 {
  font-family: var(--display, sans-serif);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.03em;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-series-item__message {
  font-size: 14px;
  line-height: 1.6;
  color: rgb(var(--cm-fg-muted, 185 180 175));
  margin: 0;
}

.cm-series-item__actions {
  display: flex;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 244, 232, 0.08);
}

.cm-series-item__actions .pill {
  flex: 1;
  font-size: 12px;
  min-height: 42px;
  padding: 10px 16px;
  justify-content: center;
}

@media (max-width: 850px) {
  .cm-series-showcase-grid {
    grid-template-columns: 1fr;
  }
}

/* Matriz de Competências */
.cm-competencies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.cm-competency-card {
  padding: 24px;
  background: #17171d;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cm-competency-card h3 {
  font-family: var(--display, sans-serif);
  font-size: 17px;
  font-weight: 800;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-competency-card p {
  font-size: 13px;
  line-height: 1.6;
  color: rgb(var(--cm-fg-muted, 180 175 170));
  margin: 0;
}

.cm-competency-card__evidence {
  font-size: 11px;
  line-height: 1.5;
  color: var(--orange, #FF701A);
  background: rgba(255, 112, 26, 0.08);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px dashed rgba(255, 112, 26, 0.25);
  margin-top: auto;
}

/* Seção de Fechamento Comercial */
.cm-case-closing-section {
  padding: 100px 0;
  background: linear-gradient(to bottom, #101014 0%, #17171f 100%);
  border-top: 1px solid rgba(255, 244, 232, 0.1);
  text-align: center;
}

.cm-case-closing-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.cm-case-closing-title {
  font-family: var(--display, sans-serif);
  font-size: clamp(36px, 5.5vw, 68px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-transform: uppercase;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-case-closing-desc {
  font-size: 16px;
  line-height: 1.7;
  color: rgb(var(--cm-fg-muted, 190 185 180));
  margin: 0;
}

.cm-case-closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 12px;
}


/* --------------------------------------------------------------------------
   4. MODAL CAROUSEL CASE VIEWER (#cm-case-viewer-modal)
   -------------------------------------------------------------------------- */

.cm-cv-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(16, 16, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.cm-cv-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.cm-cv-container {
  width: min(1360px, 96vw);
  height: 92vh;
  display: flex;
  flex-direction: column;
  background: #141419;
  border: 1px solid rgba(255, 244, 232, 0.12);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
}

/* Topbar */
.cm-cv-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 24px;
  background: #17171e;
  border-bottom: 1px solid rgba(255, 244, 232, 0.08);
  flex-shrink: 0;
}

.cm-cv-topbar__series-info {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.cm-cv-badge {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.cm-cv-series-title {
  font-family: var(--display, sans-serif);
  font-size: 15px;
  font-weight: 800;
  color: var(--cream, #FFF4E8);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Switcher Visual vs Estratégico */
.cm-cv-mode-toggle {
  display: flex;
  background: #101014;
  border: 1px solid rgba(255, 244, 232, 0.1);
  border-radius: 8px;
  padding: 3px;
  gap: 4px;
}

.cm-cv-mode-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 6px;
  background: transparent;
  color: rgb(var(--cm-fg-muted, 170 165 160));
  font-size: 12px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cm-cv-mode-btn.is-active {
  background: rgba(255, 112, 26, 0.15);
  color: var(--orange, #FF701A);
  border: 1px solid rgba(255, 112, 26, 0.3);
}

.cm-cv-close-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 244, 232, 0.06);
  border: 1px solid rgba(255, 244, 232, 0.1);
  color: var(--cream, #FFF4E8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.cm-cv-close-btn:hover {
  background: rgba(255, 112, 26, 0.2);
  color: var(--orange, #FF701A);
  border-color: rgba(255, 112, 26, 0.4);
}

/* Stage & Media */
.cm-cv-stage {
  flex: 1;
  display: flex;
  position: relative;
  overflow: hidden;
  background: #0f0f13;
}

.cm-cv-media-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  transition: flex 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-cv-media-inner {
  position: relative;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: 3/4;
  height: min(100%, 70vh);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
  background: #17171e;
}

.cm-cv-slide-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Nav Chevrons */
.cm-cv-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(16, 16, 20, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 244, 232, 0.15);
  color: var(--cream, #FFF4E8);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.cm-cv-nav-btn:hover {
  background: var(--orange, #FF701A);
  color: var(--ink, #101014);
  border-color: var(--orange, #FF701A);
  transform: translateY(-50%) scale(1.08);
}

.cm-cv-nav-btn--prev { left: 24px; }
.cm-cv-nav-btn--next { right: 24px; }

/* Painel Estratégico */
.cm-cv-strategic-panel {
  width: 0;
  opacity: 0;
  visibility: hidden;
  background: #16161c;
  border-left: 1px solid rgba(255, 244, 232, 0.08);
  overflow-y: auto;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cm-cv-stage.is-strategic .cm-cv-strategic-panel {
  width: clamp(380px, 35vw, 520px);
  opacity: 1;
  visibility: visible;
}

.cm-cv-strategic-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.cm-cv-strategic-header {
  border-bottom: 1px solid rgba(255, 244, 232, 0.08);
  padding-bottom: 18px;
}

.cm-cv-strategic-slide-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange, #FF701A);
}

.cm-cv-strategic-headline {
  font-family: var(--display, sans-serif);
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  color: var(--cream, #FFF4E8);
  margin: 8px 0 6px 0;
}

.cm-cv-strategic-lead {
  font-size: 13px;
  line-height: 1.5;
  color: rgb(var(--cm-fg-muted, 185 180 175));
  margin: 0;
}

.cm-cv-strategic-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cm-cv-fact-card {
  padding: 14px 16px;
  background: #1b1b23;
  border: 1px solid rgba(255, 244, 232, 0.06);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cm-cv-fact-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--cream, #FFF4E8);
}

.cm-cv-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
}

.cm-cv-dot--orange { background: #FF701A; }
.cm-cv-dot--sky { background: #25BFFF; }
.cm-cv-dot--violet { background: #7657FF; }
.cm-cv-dot--yellow { background: #FFD52A; }

.cm-cv-fact-card p {
  font-size: 13px;
  line-height: 1.55;
  color: rgb(var(--cm-fg-muted, 185 180 175));
  margin: 0;
}

/* Footer & Thumbnails */
.cm-cv-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 24px;
  background: #17171e;
  border-top: 1px solid rgba(255, 244, 232, 0.08);
  flex-shrink: 0;
}

.cm-cv-progress-indicator {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 140px;
}

.cm-cv-counter {
  font-family: var(--display, sans-serif);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--cream, #FFF4E8);
}

.cm-cv-progress-bar {
  flex: 1;
  height: 4px;
  background: rgba(255, 244, 232, 0.1);
  border-radius: 99px;
  overflow: hidden;
}

.cm-cv-progress-fill {
  height: 100%;
  width: 16.6%;
  background: linear-gradient(90deg, #FF701A, #FF3D8D);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cm-cv-thumbs-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0;
  scrollbar-width: thin;
}

.cm-cv-thumb-btn {
  position: relative;
  width: 44px;
  height: 58px;
  border-radius: 5px;
  overflow: hidden;
  background: #1e1e26;
  border: 1px solid rgba(255, 244, 232, 0.15);
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.2s, transform 0.2s;
}

.cm-cv-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  transition: opacity 0.2s;
}

.cm-cv-thumb-btn:hover img,
.cm-cv-thumb-btn.is-active img {
  opacity: 1;
}

.cm-cv-thumb-btn.is-active {
  border-color: var(--orange, #FF701A);
  box-shadow: 0 0 0 2px rgba(255, 112, 26, 0.35);
  transform: scale(1.05);
}

.cm-cv-thumb-num {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(16, 16, 20, 0.85);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 3px;
  border-radius: 3px;
  color: #FFF4E8;
}

/* Responsividade do Viewer */
@media (max-width: 900px) {
  .cm-cv-container {
    width: 100vw;
    height: 100vh;
    border-radius: 0;
    border: none;
  }

  .cm-cv-stage.is-strategic {
    flex-direction: column;
  }

  .cm-cv-stage.is-strategic .cm-cv-strategic-panel {
    width: 100%;
    height: 45vh;
    border-left: none;
    border-top: 1px solid rgba(255, 244, 232, 0.08);
  }

  .cm-cv-stage.is-strategic .cm-cv-media-wrapper {
    height: 40vh;
  }

  .cm-cv-media-inner {
    height: 100%;
  }

  .cm-cv-nav-btn {
    width: 40px;
    height: 40px;
  }

  .cm-cv-nav-btn--prev { left: 10px; }
  .cm-cv-nav-btn--next { right: 10px; }
}

@media (max-width: 650px) {
  .cm-cv-topbar {
    padding: 12px 16px;
  }

  .cm-cv-mode-btn span {
    display: none;
  }

  .cm-cv-mode-btn {
    padding: 7px 10px;
  }

  .cm-cv-footer {
    padding: 10px 16px;
  }

  .cm-cv-progress-indicator {
    min-width: 100px;
  }
}

/* --------------------------------------------------------------------------
   5. CONTATO DIRETO EXCLUSIVO VIA WHATSAPP (#contato)
   -------------------------------------------------------------------------- */

.cm-whatsapp-card {
  background: linear-gradient(145deg, #181822 0%, #15151b 100%);
  border: 1px solid rgba(255, 244, 232, 0.14);
  border-radius: 14px;
  padding: clamp(28px, 4vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 244, 232, 0.1);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.cm-whatsapp-card:hover {
  border-color: rgba(37, 211, 102, 0.4);
}

.cm-whatsapp-card::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 211, 102, 0.18) 0%, rgba(255, 112, 26, 0.08) 50%, transparent 70%);
  pointer-events: none;
}

.cm-whatsapp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.cm-whatsapp-badge {
  font-family: var(--body, sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange, #FF701A);
  background: rgba(255, 112, 26, 0.12);
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 112, 26, 0.25);
}

.cm-whatsapp-card h3 {
  font-family: var(--display, sans-serif);
  font-size: clamp(24px, 2.5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.04em;
  color: var(--cream, #FFF4E8);
  margin: 0;
}

.cm-whatsapp-card p {
  font-size: 15px;
  line-height: 1.65;
  color: rgb(var(--cm-fg-muted, 185 180 175));
  margin: 0;
}

.cm-whatsapp-number-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: #101014;
  border: 1px solid rgba(255, 244, 232, 0.12);
  border-radius: 8px;
  width: fit-content;
}

.cm-whatsapp-number-box svg {
  color: #25D366;
  flex-shrink: 0;
}

.cm-whatsapp-number-box strong {
  font-family: var(--display, sans-serif);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--cream, #FFF4E8);
}

.cm-whatsapp-card .pill {
  width: 100%;
  justify-content: center;
  min-height: 56px;
  font-size: 14px;
}

.cm-whatsapp-note {
  font-size: 17px;
  color: var(--cream, #FFF4E8);
  margin-top: 6px;
}
