/* =========================================================
   Página de Case — Cimentur — versão 1
   Estrutura editorial inspirada no modelo enviado.
========================================================= */

.case-page {
  background: #ffffff;
}

.case-main {
  background: #ffffff;
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding: 24px 0 40px;
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 165, 94, 0.06), transparent 28%),
    #f7f6f4;
  border-top: 1px solid rgba(8, 53, 86, 0.08);
}

.case-hero__header {
  width: min(1040px, calc(100vw - 36px));
  margin: 0 auto;
  padding: 0 0 30px;
  text-align: center;
}

.case-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  margin: 0 auto 20px;
  padding: 0 14px;
  border: 1px solid rgba(185, 145, 85, 0.56);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: #b99155;
  font-family: var(--font-body);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.case-date {
  margin: 0 0 24px;
  color: #26435b;
  font-family: var(--font-body);
  font-size: 0.96rem;
  font-weight: 400;
  line-height: 1.4;
}

.case-title {
  max-width: 980px;
  margin: 0 auto 24px;
  color: #06243a;
  font-family: var(--font-body);
  font-size: clamp(2.15rem, 3.3vw, 3.35rem);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 22px;
  color: #0d2740;
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.3;
}

.case-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.case-meta__icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #b99155;
  flex: 0 0 18px;
}

.case-meta__icon svg {
  width: 18px;
  height: 18px;
  display: block;
  stroke: currentColor;
}

.case-cover-shell {
  width: min(1420px, calc(100vw - 60px));
  margin: 0 auto;
}

.case-cover {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 16 / 5;
  border-radius: 8px;
  background:
    radial-gradient(circle at 20% 18%, rgba(205, 165, 94, 0.12), transparent 30%),
    linear-gradient(135deg, #041d2b 0%, #083a5d 100%);
  box-shadow: 0 22px 54px rgba(6, 36, 58, 0.14);
}

.case-cover img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.case-image-fallback {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  padding: 42px;
  color: #ffffff;
  text-align: center;
}

.case-image-fallback.is-visible {
  display: grid;
}

.case-image-fallback strong {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-title);
  font-size: clamp(2rem, 4vw, 3.6rem);
  font-weight: 400;
}

.case-image-fallback span {
  display: block;
  max-width: 720px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
  line-height: 1.7;
}

.case-content-section {
  padding: 76px 0 18px;
  background: #ffffff;
}

.case-content-grid {
  width: min(1220px, calc(100vw - 42px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 62px;
  align-items: start;
}

.case-index {
  position: sticky;
  top: 116px;
  align-self: start;
  min-width: 0;
}

.case-index__inner {
  position: static;
  top: auto;
  padding-top: 10px;
}

.case-index h2 {
  margin: 0 0 18px;
  color: #06243a;
  font-family: var(--font-body);
  font-size: 1.56rem;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.case-index__line {
  position: relative;
  display: block;
  width: 100%;
  height: 6px;
  margin: 0 0 20px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8e8e8;
}

.case-index__line-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--case-index-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #b99155, #cda55e);
  transition: width 0.18s ease-out;
}

.case-index p {
  margin: 0 0 16px;
  color: #b99155;
  font-size: 0.98rem;
  font-weight: 600;
}

.case-index nav {
  display: grid;
  gap: 18px;
}

.case-index a {
  color: #6b6f73;
  font-size: 0.94rem;
  line-height: 1.46;
  transition: color 0.2s ease, transform 0.2s ease;
}

.case-index a:hover,
.case-index a.is-active {
  color: #b99155;
  transform: translateX(3px);
}

.case-article {
  width: 100%;
  max-width: 860px;
  min-width: 0;
}

.case-testimonial {
  margin: 0 0 28px;
  padding: 26px 12px 6px;
  border-top: 1px solid rgba(6, 36, 58, 0.18);
  text-align: center;
}

.case-testimonial blockquote {
  margin: 0;
  color: #06243a;
  font-family: var(--font-body);
  font-size: clamp(1.08rem, 1.5vw, 1.28rem);
  font-weight: 400;
  line-height: 1.85;
}

.case-testimonial footer {
  margin-top: 20px;
  color: #b99155;
  font-size: 0.94rem;
  line-height: 1.5;
}

.case-highlight {
  margin: 28px 0 32px;
  padding: 20px 24px;
  border-radius: 18px;
  background: #f4f3f2;
  color: #06243a;
  text-align: center;
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  font-weight: 700;
  line-height: 1.45;
}

.case-section {
  scroll-margin-top: 116px;
  padding: 4px 0 34px;
  border-bottom: 1px solid rgba(8, 53, 86, 0.14);
}

.case-section + .case-section {
  padding-top: 32px;
}

.case-section h2 {
  margin: 0 0 18px;
  color: #06243a;
  font-family: var(--font-body);
  font-size: clamp(1.75rem, 2.3vw, 2.3rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.04em;
}

.case-section h3 {
  margin: 24px 0 12px;
  color: #0d2740;
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.35;
}

.case-section p {
  margin: 0;
  color: #244158;
  font-size: 1rem;
  line-height: 1.86;
}

.case-section p + p {
  margin-top: 18px;
}

.case-section ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: #244158;
}

.case-section li {
  margin-bottom: 10px;
  padding-left: 4px;
  line-height: 1.7;
}

.case-video-model {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(8, 53, 86, 0.14);
  border-radius: 18px;
  background:
    radial-gradient(circle at 24% 18%, rgba(205, 165, 94, 0.13), transparent 30%),
    linear-gradient(135deg, #052b46 0%, #083a5d 100%);
  color: #ffffff;
  text-align: center;
}

.case-video-model__content {
  max-width: 480px;
  padding: 30px;
}

.case-video-model__play {
  width: 70px;
  height: 70px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #cda55e;
  color: #06243a;
  font-size: 1.6rem;
  line-height: 1;
}

.case-video-model strong {
  display: block;
  margin-bottom: 8px;
  font-family: var(--font-title);
  font-size: 1.65rem;
  font-weight: 400;
}

.case-video-model span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.9rem;
  line-height: 1.55;
}

.case-results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.case-result-card {
  min-height: 142px;
  padding: 22px 18px;
  border: 1px solid rgba(8, 53, 86, 0.16);
  border-radius: 16px;
  background: #ffffff;
  text-align: center;
  display: grid;
  place-items: center;
}

.case-result-card strong {
  display: block;
  margin-bottom: 8px;
  color: #b99155;
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 400;
}

.case-result-card span {
  color: #244158;
  font-size: 0.9rem;
  line-height: 1.45;
}

.case-cta-wrap {
  width: min(1060px, calc(100vw - 42px));
  margin: 58px auto 0;
}

.case-cta {
  position: relative;
  scroll-margin-top: 116px;
  overflow: hidden;
  padding: 46px 42px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 16%, rgba(205, 165, 94, 0.16), transparent 30%),
    radial-gradient(circle at 88% 88%, rgba(205, 165, 94, 0.10), transparent 28%),
    linear-gradient(135deg, #041d2b 0%, #083a5d 100%);
  color: #ffffff;
  text-align: center;
  box-shadow: 0 24px 58px rgba(4, 38, 61, 0.2);
}

.case-cta__eyebrow {
  margin: 0 0 14px;
  color: #cda55e;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.case-cta h2 {
  max-width: 820px;
  margin: 0 auto 14px;
  color: #ffffff;
  font-family: var(--font-title);
  font-size: clamp(2rem, 3vw, 3.15rem);
  font-weight: 400;
  line-height: 1.15;
}

.case-cta h2 em {
  color: #cda55e;
  font-style: italic;
}

.case-cta > p:not(.case-cta__eyebrow) {
  max-width: 780px;
  margin: 0 auto 24px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.98rem;
  line-height: 1.72;
}

.case-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid #cda55e;
  border-radius: 12px;
  background: #cda55e;
  color: #06243a;
  font-size: 0.94rem;
  font-weight: 700;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.case-cta__button:hover {
  transform: translateY(-2px);
  background: transparent;
  color: #cda55e;
}

.case-page .contact-section {
  margin-top: 0;
}

@media (max-width: 980px) {
  .case-cover-shell {
    width: calc(100vw - 34px);
  }

  .case-cover {
    aspect-ratio: 16 / 6.2;
  }

  .case-content-grid {
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 40px;
  }

  .case-results-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .case-hero {
    padding: 24px 0 26px;
  }

  .case-hero__header {
    padding-bottom: 24px;
  }

  .case-badge {
    margin-bottom: 16px;
  }

  .case-date {
    margin-bottom: 18px;
  }

  .case-title {
    font-size: clamp(1.9rem, 8vw, 2.75rem);
  }

  .case-meta {
    gap: 12px;
  }

  .case-cover-shell {
    width: calc(100vw - 18px);
  }

  .case-cover {
    aspect-ratio: 16 / 9;
    border-radius: 10px;
  }

  .case-content-section {
    padding: 48px 0 8px;
  }

  .case-content-grid {
    width: calc(100vw - 28px);
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .case-index {
    position: static;
    top: auto;
  }

  .case-index__inner {
    position: static;
    top: auto;
    padding-top: 0;
  }

  .case-index h2 {
    max-width: 290px;
  }

  .case-index nav {
    grid-template-columns: 1fr 1fr;
    gap: 12px 18px;
  }

  .case-article {
    max-width: none;
  }

  .case-section {
    scroll-margin-top: 92px;
  }

  .case-section p {
    line-height: 1.75;
  }

  .case-cta-wrap {
    width: calc(100vw - 28px);
    margin-top: 42px;
  }

  .case-cta {
    padding: 38px 24px;
  }
}

@media (max-width: 560px) {
  .case-hero__header {
    width: calc(100vw - 22px);
  }

  .case-title {
    font-size: 1.88rem;
    line-height: 1.16;
  }

  .case-meta {
    flex-direction: column;
    gap: 10px;
  }

  .case-index nav {
    grid-template-columns: 1fr;
  }

  .case-testimonial {
    padding-left: 0;
    padding-right: 0;
  }

  .case-testimonial blockquote {
    font-size: 1rem;
    line-height: 1.72;
  }

  .case-highlight {
    padding: 18px;
    font-size: 1rem;
  }

  .case-section h2 {
    font-size: 1.58rem;
  }

  .case-section p {
    font-size: 0.96rem;
    line-height: 1.7;
  }

  .case-video-model__play {
    width: 58px;
    height: 58px;
  }

  .case-cta {
    padding: 34px 18px;
  }

  .case-cta h2 {
    font-size: 1.85rem;
  }

  .case-cta__button {
    width: 100%;
    padding: 12px 18px;
    min-height: 54px;
  }
}


/* Ajustes específicos dos novos cases — versão 1 */
.case-video-embed {
  margin-top: 24px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(8, 53, 86, 0.14);
  border-radius: 18px;
  background: #041d2b;
  box-shadow: 0 20px 48px rgba(4, 38, 61, 0.14);
}

.case-video-embed iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.case-cta__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.case-cta__button--secondary {
  background: transparent;
  color: #cda55e;
}

.case-cta__button--secondary:hover {
  background: #cda55e;
  color: #06243a;
}

@media (max-width: 560px) {
  .case-cta__actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}
