/**
 * Ale Pillars — Zigzag de Segmentos
 * Layout alternado com video hover
 * Padrao ale-* (CSS externo, zero inline)
 */

/* ========== SECTION ========== */
.ale-pillars {
  padding: 96px 48px;
  background: #FFFFFF;
}

.ale-pillars__container {
  max-width: 1312px;
  margin: 0 auto;
}

/* ========== HEADER ========== */
.ale-pillars__header {
  text-align: center;
  margin-bottom: 80px;
}

.ale-pillars__label {
  display: inline-block;
  color: var(--color-text-brand-primary, #0099D6);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.ale-pillars__title {
  color: #121926;
  font-family: 'Mont', sans-serif;
  font-size: 48px;
  font-weight: 700;
  line-height: 110%;
  margin: 0 auto 16px;
  max-width: 720px;
}

.ale-pillars__title .is-highlight {
  color: var(--color-text-brand-primary, #0099D6);
}

.ale-pillars__subtitle {
  color: #697586;
  font-family: 'Poppins', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 155%;
  margin: 0 auto;
  max-width: 560px;
}

/* ========== ROW (ZIGZAG) ========== */
.ale-pillars__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
}

.ale-pillars__row:last-child {
  margin-bottom: 0;
}

/* Reversed: imagem vai pra direita */
.ale-pillars__row.is-reversed .ale-pillars__media {
  order: 2;
}

.ale-pillars__row.is-reversed .ale-pillars__content {
  order: 1;
}

/* ========== MEDIA (IMG + VIDEO) ========== */
.ale-pillars__media {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.ale-pillars__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.5s ease;
}

.ale-pillars__media:hover img {
  transform: scale(1.04);
}

/* Video layer */
.ale-pillars__media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

/* Hover: crossfade img → video */
.ale-pillars__media:hover video {
  opacity: 1;
}

.ale-pillars__media:hover img {
  opacity: 0;
}

/* Borda sutil */
.ale-pillars__media::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  pointer-events: none;
  transition: border-color 0.4s ease;
  z-index: 2;
}

.ale-pillars__media:hover::after {
  border-color: rgba(0, 174, 239, 0.2);
}

/* ========== CONTENT ========== */
.ale-pillars__content {
  display: flex;
  flex-direction: column;
}

.ale-pillars__seg-label {
  color: var(--color-text-brand-primary, #0099D6);
  font-family: 'Poppins', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.ale-pillars__name {
  color: #121926;
  font-family: 'Mont', sans-serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 120%;
  margin: 0 0 16px;
}

.ale-pillars__desc {
  color: #697586;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 165%;
  margin: 0 0 28px;
  max-width: 440px;
}

/* ========== TAGS ========== */
.ale-pillars__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.ale-pillars__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 16px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(0, 0, 0, 0.02);
  color: #4B5563;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 500;
  transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease;
}

.ale-pillars__tag:hover {
  border-color: rgba(0, 174, 239, 0.4);
  color: #0099D6;
  background: rgba(0, 174, 239, 0.04);
}

/* ========== CTA ========== */
.ale-pillars__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-brand-primary, #0099D6);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.3s ease;
}

.ale-pillars__cta:hover {
  gap: 12px;
}

.ale-pillars__cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s ease;
}

.ale-pillars__cta:hover svg {
  transform: translateX(4px);
}

/* ========== ANIMACAO DE ENTRADA ========== */
.ale-pillars__row.ale-anim,
.ale-pillars__header .ale-anim {
  opacity: 0;
  transform: translateY(30px);
}

.ale-pillars__row.ale-anim.is-visible,
.ale-pillars__header .ale-anim.is-visible {
  animation: alePillarFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ale-pillars__row.ale-anim.is-visible {
  animation-delay: var(--row-delay, 0s);
}

@keyframes alePillarFadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Editor — sem animacao */
.ale-no-anim .ale-anim {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* ========== RESPONSIVO ========== */

@media (max-width: 1024px) {
  .ale-pillars {
    padding: 80px 32px;
  }

  .ale-pillars__title {
    font-size: 40px;
  }

  .ale-pillars__row {
    gap: 40px;
  }

  .ale-pillars__name {
    font-size: 30px;
  }
}

@media (max-width: 768px) {
  .ale-pillars {
    padding: 64px 20px;
  }

  .ale-pillars__title {
    font-size: 32px;
  }

  .ale-pillars__row {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }

  /* Mobile: desfaz o reversed */
  .ale-pillars__row.is-reversed .ale-pillars__media {
    order: 1;
  }

  .ale-pillars__row.is-reversed .ale-pillars__content {
    order: 2;
  }

  .ale-pillars__name {
    font-size: 28px;
  }

  .ale-pillars__header {
    margin-bottom: 48px;
  }
}

@media (max-width: 480px) {
  .ale-pillars {
    padding: 48px 16px;
  }

  .ale-pillars__title {
    font-size: 28px;
  }

  .ale-pillars__name {
    font-size: 24px;
  }

  .ale-pillars__desc {
    font-size: 15px;
  }

  .ale-pillars__subtitle {
    font-size: 16px;
  }
}
