/* ===== ESG.CSS — SEÇÃO ESG DA HOMEPAGE DONGWON BRASIL ===== */
/* Depende das variáveis globais declaradas em index.css (:root)  */
/* --primary-blue, --secondary-blue, --accent-blue, --dark-blue  */
/* --gradient-primary, --gradient-section, --shadow-card,        */
/* --shadow-hover, --transition-smooth, --border-radius          */


/* ============================================================
   1. SEÇÃO WRAPPER
   ============================================================ */

.esg-section {
  padding: 6rem 0;
  background: var(--gradient-section);
}


/* ============================================================
   2. CABEÇALHO DA SEÇÃO
   ============================================================ */

.esg-header {
  text-align: center;
  margin-bottom: 3rem;
}

.esg-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  position: relative;
}

.esg-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-primary);
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
}

.esg-description {
  font-size: 1.1rem;
  color: #64748b;
  max-width: 700px;
  margin: 1.5rem auto 0;
}

.esg-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: var(--secondary-blue);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 2rem;
}


/* ============================================================
   3. GRID CONTAINER (section--02)
   ============================================================ */

.esg-section .section--02 {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.esg-section .section--02 > .container {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 1200px;
}

.esg-section .visiion-mission {
  width: 100%;
  overflow: visible;
  text-align: center;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.esg-section .esg-vision-image {
  display: block;
  width: 100%;
  max-width: 1120px;
  height: auto;
  margin: 0 auto;
}

.esg-section .esg-spotlight-icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: clamp(215px, 24vw, 270px);
  min-height: clamp(125px, 16vw, 160px);
  flex: 0 0 clamp(215px, 24vw, 270px);
  margin: 0;
  isolation: isolate;
}

.esg-section .esg-spotlight-circle {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: clamp(112px, 12vw, 145px);
  aspect-ratio: 1;
  border: 2px solid #0f6fae;
  border-radius: 50%;
  background: #fff;
  color: #0f6fae;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 111, 174, 0.08);
}

.esg-section .esg-spotlight-beam {
  position: absolute;
  top: 50%;
  left: 100px;
  z-index: 1;
  width: clamp(160px, 38vw, 10px);
  height: clamp(130px, 22vw, 210px);
  background: linear-gradient(90deg, rgba(13, 138, 252, 0.58) 0%, rgba(13, 138, 252, 0.28) 52%, rgba(13, 138, 252, 0) 100%);
  clip-path: polygon(0 28%, 100% 0, 100% 100%, 0 72%);
  transform: translateY(-50%);
  transform-origin: left center;
}

.esg-section .visiion-mission.is-visible .esg-spotlight-beam {
  animation: esgBeamPulse 2.4s ease-in-out infinite;
}

.esg-section .esg-vision-composition {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(1.25rem, 3vw, 2rem);
  width: 100%;
  min-width: 840px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.5rem 0;
}

.esg-section .esg-vision-cards {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  flex: 1 1 auto;
}

.esg-section .esg-vision-card {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  min-height: clamp(150px, 18vw, 205px);
  padding: clamp(1.25rem, 2vw, 2rem);
  background: #fff;
  border: 2px solid rgba(13, 138, 252, 0.8);
  color: #0f6fae;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.esg-section .esg-vision-card-icon {
  display: block;
  width: clamp(58px, 8vw, 92px);
  height: clamp(58px, 8vw, 92px);
  margin-bottom: clamp(1rem, 2vw, 1.4rem);
  object-fit: contain;
  opacity: 0.18;
  transition: opacity 1.6s ease;
}

.esg-section .visiion-mission.is-visible .esg-vision-card:nth-child(1) .esg-vision-card-icon {
  opacity: 1;
  transition-delay: 0.35s;
}

.esg-section .visiion-mission.is-visible .esg-vision-card:nth-child(2) .esg-vision-card-icon {
  opacity: 1;
  transition-delay: 1.05s;
}

.esg-section .visiion-mission.is-visible .esg-vision-card:nth-child(3) .esg-vision-card-icon {
  opacity: 1;
  transition-delay: 1.75s;
}

@keyframes esgBeamPulse {
  0%,
  100% {
    opacity: 0.62;
    transform: translateY(-50%) scaleX(0.96);
  }

  50% {
    opacity: 1;
    transform: translateY(-50%) scaleX(1.06);
  }
}


/* ============================================================
   4. BOXES DE ESTRATÉGIA
   ============================================================ */

.esg-section .strategy-list-box {
  background: #fff;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.esg-section .strategy-list-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

/* Box 01 — temas materiais (borda superior azul primária) */
.esg-section .box--01 {
  border-top: 4px solid var(--primary-blue);
}

.esg-section .strategy-list_item + .strategy-list_item {
  margin-top: 2.25rem;
  padding-top: 2.25rem;
  border-top: 1px solid #e2e8f0;
}

.esg-section .strategy-list_item--02 .esg-box-title {
  margin-bottom: 1.25rem;
}

.esg-section .esg-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.esg-section .esg-box-objective {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 2rem;
}


/* ============================================================
   5. GRID TOP-3 (E · S · G em destaque)
   ============================================================ */

.esg-section .esg-top3-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.esg-section .esg-top3-card {
  border-radius: 0;
  padding: 0 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  background: transparent;
}

/* Variantes de cor por pilar */
.esg-section .esg-top3-card--e {
  border-top: none;
}

.esg-section .esg-top3-card--s {
  border-top: none;
}

.esg-section .esg-top3-card--g {
  border-top: none;
}


/* ============================================================
   6. BADGES CIRCULARES (E · S · G)
   ============================================================ */

.esg-section .esg-top3-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.9rem;
  width: clamp(180px, 20vw, 255px);
  height: clamp(180px, 20vw, 255px);
  border-radius: 50%;
  font-weight: 800;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1;
  text-align: center;
  color: #0d8afc;
  background: #fff;
  border: 1px solid rgba(13, 138, 252, 0.55);
  box-shadow: 0 8px 28px rgba(13, 138, 252, 0.08);
}

.esg-section .esg-top3-badge--e {
  background: #fff;
}

.esg-section .esg-top3-icon {
  display: block;
  width: clamp(62px, 7vw, 92px);
  height: clamp(62px, 7vw, 92px);
  object-fit: contain;
}

.esg-section .esg-top3-category {
  display: block;
  color: #0d8afc;
  font-weight: 700;
}

.esg-section .esg-top3-badge--s {
  background: #fff;
}

.esg-section .esg-top3-badge--g {
  background: #fff;
}

.esg-section .esg-top3-label {
  font-weight: 800;
  font-size: clamp(1.15rem, 2vw, 1.75rem);
  color: #111827;
  line-height: 1.18;
  text-align: center;
  max-width: 340px;
}


/* ============================================================
   7. GRID NOVE TEMAS (3 colunas × 3 itens)
   ============================================================ */

.esg-section .esg-nine-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.esg-section .esg-nine-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Cabeçalho de coluna com cor por pilar */
.esg-section .esg-nine-col-header {
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  text-align: center;
  margin-bottom: 0.25rem;
}

.esg-section .esg-nine-col-header--e {
  background: #ecfdf5;
  color: #065f46;
}

.esg-section .esg-nine-col-header--s {
  background: #eff6ff;
  color: #1e40af;
}

.esg-section .esg-nine-col-header--g {
  background: #fffbeb;
  color: #92400e;
}

/* Itens individuais com borda lateral colorida */
.esg-section .esg-nine-item {
  font-size: 0.88rem;
  color: #374151;
  background: #f8fafc;
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  line-height: 1.4;
  border-left: 3px solid #e2e8f0;
}

.esg-section .esg-nine-item--e {
  border-left-color: #10b981;
}

.esg-section .esg-nine-item--s {
  border-left-color: var(--secondary-blue);
}

.esg-section .esg-nine-item--g {
  border-left-color: #f59e0b;
}


/* ============================================================
   8. BOX 02 — FECHAMENTO COM GRADIENTE AZUL
   ============================================================ */

.esg-section .box--02 {
  background: linear-gradient(135deg, var(--dark-blue, #1E3A8A) 0%, var(--primary-blue) 100%);
  color: #fff;
  border-top: none;
  text-align: center;
  padding: 3rem 2rem;
}

.esg-section .box--02 .esg-box-title {
  color: #fff;
}

.esg-section .box--02 .esg-closing-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  max-width: 700px;
  margin: 0 auto;
}

.esg-section .esg-more-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.75rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: #fff;
  color: var(--primary-blue);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
  transition: var(--transition-smooth);
}

.esg-section .esg-more-button:hover,
.esg-section .esg-more-button:focus {
  color: var(--dark-blue);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.24);
}


/* ============================================================
   9. ANIMAÇÕES DE ENTRADA (ativadas via JS com .is-visible)
   ============================================================ */

.esg-section .esg-fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.esg-section .esg-fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.esg-section .esg-header .esg-title.esg-fade-in,
.esg-section .esg-header .esg-subtitle.esg-fade-in {
  transform: translateX(-80px);
}

.esg-section .esg-header .esg-description.esg-fade-in {
  transform: translateX(80px);
}

.esg-section .esg-header .esg-title.esg-fade-in.is-visible,
.esg-section .esg-header .esg-description.esg-fade-in.is-visible,
.esg-section .esg-header .esg-subtitle.esg-fade-in.is-visible {
  transform: translateX(0);
}

.esg-section .esg-header .esg-description.esg-fade-in {
  transition-delay: 0.12s;
}

.esg-section .esg-header .esg-subtitle.esg-fade-in {
  transition-delay: 0.24s;
}


/* ============================================================
   10. RESPONSIVIDADE
   ============================================================ */

/* Tablet — 2 colunas */
@media (max-width: 992px) {
  .esg-section .esg-top3-grid,
  .esg-section .esg-nine-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .esg-section .esg-header .esg-title.esg-fade-in,
  .esg-section .esg-header .esg-description.esg-fade-in,
  .esg-section .esg-header .esg-subtitle.esg-fade-in {
    transform: translateY(30px);
  }

  .esg-section .esg-header .esg-title.esg-fade-in.is-visible,
  .esg-section .esg-header .esg-description.esg-fade-in.is-visible,
  .esg-section .esg-header .esg-subtitle.esg-fade-in.is-visible {
    transform: translateY(0);
  }
}

@media (max-width: 992px) and (min-width: 577px) {
  .esg-section .esg-nine-grid {
    gap: 1.15rem 1.1rem;
  }

  .esg-section .esg-nine-item {
    font-size: 0.9rem;
    line-height: 1.45;
  }

  .esg-section .esg-top3-grid {
    gap: 1.5rem 1.25rem;
  }
}

/* Composição da visão ESG em bloco antes de gerar rolagem horizontal */
@media (max-width: 900px) {
  .esg-section .visiion-mission {
    overflow-y: visible;
  }

  .esg-section .esg-vision-composition {
    min-width: 0;
    max-width: 100%;
    flex-direction: column;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
  }

  .esg-section .esg-spotlight-icon {
    width: 100%;
    min-height: 135px;
    flex: 1 1 auto;
    justify-content: center;
  }

  .esg-section .esg-spotlight-beam {
    top: calc(50% + 10px);
    left: 50%;
    width: min(58vw, 245px);
    height: 92px;
    background: linear-gradient(180deg, rgba(13, 138, 252, 0.5) 0%, rgba(13, 138, 252, 0.18) 100%);
    clip-path: polygon(42% 0, 58% 0, 100% 100%, 0 100%);
    transform: translateX(-50%);
    transform-origin: top center;
  }

  .esg-section .visiion-mission.is-visible .esg-spotlight-beam {
    animation: esgBeamPulseVertical 2.4s ease-in-out infinite;
  }

  .esg-section .esg-vision-cards {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 20rem;
  }

  .esg-section .esg-vision-card {
    min-height: 120px;
  }
}

@keyframes esgBeamPulseVertical {
  0%,
  100% {
    opacity: 0.62;
    transform: translateX(-50%) scaleY(0.96);
  }

  50% {
    opacity: 1;
    transform: translateX(-50%) scaleY(1.06);
  }
}

/* Mobile — 1 coluna + padding reduzido */
@media (max-width: 576px) {
  .esg-section .esg-top3-grid,
  .esg-section .esg-nine-grid {
    grid-template-columns: 1fr;
  }

  .esg-section .strategy-list-box {
    padding: 1.5rem;
  }
}
