:root {
  --cdb-blue: #1038e8;
  --cdb-blue-deep: #0b208f;
  --cdb-red: #ed1630;
  --cdb-ink: #10152b;
  --cdb-tint: #f4f6ff;
}

.cdb-highlight {
  display: grid;
  overflow: hidden;
  border: 1px solid #dce2f5;
  border-top: 0.4rem solid var(--cdb-red);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: 0 1.5rem 4rem rgba(15, 39, 71, 0.13);
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
}

.cdb-highlight__content {
  padding: clamp(2rem, 5vw, 4.75rem);
}

.cdb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--space-4);
  color: var(--cdb-red);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cdb-kicker::before {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.cdb-highlight__logo {
  width: min(15rem, 72%);
  margin-bottom: var(--space-3);
  mix-blend-mode: multiply;
}

.cdb-highlight__subtitle {
  margin-bottom: var(--space-6);
  color: var(--cdb-blue-deep);
  font-weight: 700;
}

.cdb-highlight h3 {
  max-width: 38rem;
  margin-bottom: var(--space-5);
  color: var(--cdb-ink);
  font-size: clamp(1.9rem, 3.3vw, 3.2rem);
}

.cdb-highlight__content > p:not(.cdb-highlight__subtitle) {
  max-width: 43rem;
  color: var(--muted);
  font-size: var(--text-lg);
}

.cdb-highlight__numbers {
  display: grid;
  padding: var(--space-6) 0;
  margin: var(--space-6) 0;
  border-top: 1px solid #dce2f5;
  border-bottom: 1px solid #dce2f5;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdb-highlight__numbers div {
  display: flex;
  min-width: 0;
  flex-direction: column-reverse;
  gap: 0.35rem;
  padding-inline: var(--space-4);
  border-right: 1px solid #dce2f5;
}

.cdb-highlight__numbers div:first-child {
  padding-left: 0;
}

.cdb-highlight__numbers div:last-child {
  padding-right: 0;
  border-right: 0;
}

.cdb-highlight__numbers dt {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.35;
}

.cdb-highlight__numbers dd {
  margin: 0;
  color: var(--cdb-blue);
  font-family: var(--font-heading);
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  font-weight: 800;
  line-height: 1;
}

.cdb-highlight__numbers div:last-child dd {
  max-width: 100%;
  overflow-wrap: normal;
  font-size: clamp(1.35rem, 1.9vw, 1.9rem);
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.cdb-button {
  gap: 0.5rem;
  color: var(--white);
  background: var(--cdb-blue);
}

.cdb-button:hover {
  background: var(--cdb-blue-deep);
}

.cdb-highlight__media {
  position: relative;
  min-height: 42rem;
  margin: 0;
  background: var(--cdb-blue);
}

.cdb-highlight__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdb-highlight__media figcaption {
  position: absolute;
  right: var(--space-5);
  bottom: var(--space-5);
  left: var(--space-5);
  padding: 0.75rem 1rem;
  border-left: 0.25rem solid var(--cdb-red);
  color: var(--white);
  background: rgba(11, 32, 143, 0.9);
  font-size: var(--text-sm);
  font-weight: 700;
}

/* Página do projeto */
.cdb-project-hero {
  overflow: hidden;
  color: var(--white);
  background: var(--cdb-blue-deep);
}

.cdb-project-hero__grid {
  display: grid;
  min-height: 43rem;
  grid-template-columns: minmax(0, 1.08fr) minmax(24rem, 0.92fr);
}

.cdb-project-hero__content {
  align-self: center;
  max-width: 46rem;
  padding: var(--space-8) clamp(2rem, 5vw, 5rem) var(--space-8) 0;
}

.cdb-project-hero .cdb-kicker {
  color: #ff7182;
}

.cdb-project-hero__logo-wrap {
  display: flex;
  max-width: 15rem;
  padding: 0.7rem 1rem;
  margin-bottom: var(--space-5);
  border-radius: var(--radius-sm);
  background: var(--white);
}

.cdb-project-hero__logo {
  width: 100%;
  mix-blend-mode: multiply;
}

.cdb-project-hero__content h1 {
  max-width: 44rem;
  margin-bottom: var(--space-4);
  font-size: clamp(2.5rem, 5.2vw, 5.2rem);
}

.cdb-project-hero__lead {
  max-width: 42rem;
  margin-bottom: var(--space-6);
  color: #e8ecff;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.cdb-project-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: #dce3ff;
  font-size: var(--text-sm);
  font-weight: 600;
}

.cdb-project-hero__media {
  position: relative;
  min-height: 43rem;
  margin: 0;
}

.cdb-project-hero__media::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(11, 32, 143, 0.28), transparent 45%);
  content: "";
  pointer-events: none;
}

.cdb-project-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cdb-data {
  background: var(--cdb-tint);
}

.cdb-data__intro {
  max-width: 52rem;
  margin-bottom: var(--space-7);
}

.cdb-data__intro p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: var(--text-lg);
}

.cdb-data__grid {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdb-data__grid div {
  display: flex;
  min-height: 12rem;
  flex-direction: column-reverse;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 0.3rem solid var(--cdb-red);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.cdb-data__grid dt {
  color: var(--muted);
  font-weight: 700;
}

.cdb-data__grid dd {
  margin: 0 0 var(--space-4);
  color: var(--cdb-blue);
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5vw, 4.8rem);
  font-weight: 800;
  line-height: 0.95;
}

.cdb-role__intro,
.cdb-demands__intro {
  max-width: 52rem;
  margin-bottom: var(--space-7);
}

.cdb-role__grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdb-role-card {
  min-height: 16rem;
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.cdb-role-card:hover {
  border-color: var(--cdb-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-0.2rem);
}

.cdb-role-card span {
  display: block;
  margin-bottom: var(--space-6);
  color: var(--cdb-red);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 800;
}

.cdb-role-card h3 {
  margin-bottom: var(--space-3);
  color: var(--cdb-ink);
}

.cdb-role-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.cdb-process {
  color: var(--white);
  background: var(--cdb-blue-deep);
}

.cdb-process .eyebrow {
  color: #ff7182;
}

.cdb-process__heading {
  max-width: 50rem;
  margin-bottom: var(--space-8);
}

.cdb-timeline {
  position: relative;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cdb-timeline::before {
  position: absolute;
  top: 1.3rem;
  right: 10%;
  left: 10%;
  height: 2px;
  background: rgba(255, 255, 255, 0.32);
  content: "";
}

.cdb-step {
  position: relative;
  padding: 4.5rem var(--space-4) 0;
}

.cdb-step::before {
  position: absolute;
  z-index: 1;
  top: 0.75rem;
  left: 50%;
  width: 1.15rem;
  height: 1.15rem;
  border: 0.25rem solid var(--cdb-blue-deep);
  border-radius: 50%;
  background: var(--cdb-red);
  box-shadow: 0 0 0 0.2rem var(--white);
  content: "";
  transform: translateX(-50%);
}

.cdb-step span {
  display: block;
  margin-bottom: var(--space-3);
  color: #ff7182;
  font-family: var(--font-heading);
  font-weight: 800;
}

.cdb-step h3 {
  margin-bottom: var(--space-3);
  color: var(--white);
  font-size: 1rem;
  letter-spacing: 0.08em;
}

.cdb-step p {
  margin-bottom: 0;
  color: #dce3ff;
  font-size: var(--text-sm);
}

.js .cdb-step[data-reveal]:nth-child(2) { transition-delay: 90ms; }
.js .cdb-step[data-reveal]:nth-child(3) { transition-delay: 180ms; }
.js .cdb-step[data-reveal]:nth-child(4) { transition-delay: 270ms; }
.js .cdb-step[data-reveal]:nth-child(5) { transition-delay: 360ms; }

.cdb-demands {
  background: var(--white);
}

.cdb-demands__grid {
  display: grid;
  gap: var(--space-4);
  margin-bottom: var(--space-7);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cdb-demand-card {
  display: flex;
  min-height: 7rem;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--cdb-tint);
}

.cdb-demand-card svg {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  color: var(--cdb-blue);
}

.cdb-demand-card strong {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
}

.cdb-demands__closing {
  max-width: 54rem;
  padding-left: var(--space-5);
  margin-bottom: 0;
  border-left: 0.3rem solid var(--cdb-red);
  color: var(--muted);
  font-size: var(--text-lg);
}

@media (max-width: 1000px) {
  .cdb-highlight,
  .cdb-project-hero__grid {
    grid-template-columns: 1fr;
  }

  .cdb-highlight__media,
  .cdb-project-hero__media {
    min-height: 34rem;
  }

  .cdb-project-hero__content {
    max-width: 50rem;
    padding-right: 0;
  }

  .cdb-role__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cdb-highlight__content {
    padding: var(--space-6);
  }

  .cdb-highlight__numbers,
  .cdb-data__grid,
  .cdb-role__grid,
  .cdb-demands__grid {
    grid-template-columns: 1fr;
  }

  .cdb-highlight__numbers {
    gap: var(--space-4);
  }

  .cdb-highlight__numbers div,
  .cdb-highlight__numbers div:first-child,
  .cdb-highlight__numbers div:last-child {
    padding: 0 0 var(--space-4);
    border-right: 0;
    border-bottom: 1px solid #dce2f5;
  }

  .cdb-highlight__numbers div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .cdb-highlight__media,
  .cdb-project-hero__media {
    min-height: 27rem;
  }

  .cdb-project-hero__grid {
    min-height: 0;
  }

  .cdb-project-hero__content {
    padding-block: var(--space-7);
  }

  .cdb-timeline {
    gap: var(--space-5);
    padding-left: 0.6rem;
    grid-template-columns: 1fr;
  }

  .cdb-timeline::before {
    top: 0;
    bottom: 0;
    left: 1.3rem;
    width: 2px;
    height: auto;
  }

  .cdb-step {
    padding: 0 0 0 4rem;
  }

  .cdb-step::before {
    top: 0.15rem;
    left: 0.7rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .js .cdb-step[data-reveal] {
    transition-delay: 0ms !important;
  }
}
