@import url(../css/helpers/video.css);

/* ==========================================================================
   TRADICAO — mobile-first
   Depende das variaveis definidas em :root (main.css), que deve ser
   enfileirado ANTES deste arquivo.
   ========================================================================== */

.tradicao {
  padding-block: var(--section-padding-y);
}
.tradicao__imagem-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.tradicao__titulo {
  font-size: clamp(2.5rem, 3.5vw, 3.75rem);
  line-height: 1;
  font-weight: 700;
}
.tradicao__texto {
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
}
.tradicao__cards {
  margin-top: clamp(1.5rem, 4vw, 3rem);
}

.card-highlight {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}
.card-highlight--green {
  background: var(--color-accent-green);
  color: #fff;
}
.card-highlight--green h3 {
  color: #fff;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  font-weight: 700;
}

.card-highlight--video {
  color: #fff;
  justify-content: flex-end;
  height: 100%;
}
.card-highlight__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.card-highlight__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.05) 40%,
    rgba(0, 0, 0, 0.55) 100%
  );
  z-index: 1;
}
.card-highlight__texto {
  position: relative;
  z-index: 2;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 3vw, 1.8rem);
  font-weight: 700;
}

.reduced-motion .card-highlight__video {
  object-fit: cover;
}

/* ==========================================================================
   BREAKPOINT: desktop (lg = 992px+)
   Valor de -117px confirmado como medida exata do Figma - mantido fixo
   apenas neste breakpoint (nao interfere no mobile, onde os cards seguem
   o fluxo normal sem overlap).
   ========================================================================== */
@media (min-width: 992px) {
  .card-highlight {
    min-height: 320px;
  }

  .card-highlight--video {
    padding: 0;
    max-height: 390px;
  }

  .tradicao__cards {
    margin-top: -117px;
  }
}
