/* ==========================================================================
   IEL Sergipe: CSS da pagina Sobre o IEL (sobre.php; mais os componentes que so ela usa em includes/components.php: value_item(),
   value_divider(), video_feature(), quote_block() e prose_paragraphs(); e o HTML do CMS que iel_sobre_estilizar_links(), em
   lib/sobre.php, devolve com a classe deste arquivo; carregado pela propria pagina, pela chave `'css' => 'sobre.css'` do page_head()).

   Onda 9 da migracao do Tailwind (docs/tailwind/migracao-tailwind.md). Copiado do template e dos componentes, sem apagar nada do
   `style.css` antigo. Os tokens (cor, fonte, espaco, raio), o miolo `.secao__interno`, o hero de pagina (`page_hero()`, global da
   onda 0) e a margem lateral `--margem-x` vem do `styles.css`, que carrega antes. O reset (`a`, `img`, `p`, `h2`, `figure`,
   `blockquote`: margem zero, link que herda a cor, imagem em bloco) e o do `reset-preflight.css`.

   HTML do CMS: o texto da historia (`historia_texto`) passa por iel_sobre_estilizar_links(), que INJETA `class="sobre-link"` (e
   `target="_blank" rel="noopener noreferrer"`) em todo `<a href="...">` que tem so o href. E uma CLASSE, e nao um seletor de
   descendente (`.sobre-historia__texto a`), porque so o que a funcao reconhece recebe estilo: um `<a>` com `target`, `class`, `name`
   ou aspas simples do editor continua com o chao do reset (cor e sublinhado herdados), como antes. Um seletor de descendente pintaria
   tambem esses.

   A entrelinha dos dois blocos de texto do CMS (`.sobre-intro__texto` e `.sobre-historia__texto`) e em REM (1.5rem), nao a razao do
   token (`--entrelinha-16-24`), de proposito: o Tailwind escrevia `leading-6` (comprimento) e um filho com outro tamanho de fonte (`<small>`,
   `<sub>`, `<sup>`) herda o COMPRIMENTO, nao a razao. Nos outros blocos (sem HTML de CMS dentro) a razao dos tokens segue valendo.

   Figma: Screen/Desktop/Sobre-o-IEL (11763:3721, arte de 1600px), Tablet (12015:12781, 768px), Mobile (11981:7556, 390px).
   Breakpoints (min-width, mobile-first, em `em`): md = 48em, xl = 80em. A margem lateral das secoes e o token `--margem-x`
   (1rem; 2.5rem em 48em; 11.875rem em 80em).
   ========================================================================== */

/* ==========================================================================
   INTRODUCAO - "Somos parte do Sistema FIES": titulo e parceiros a esquerda, dois blocos de texto a direita (no desktop)
   ========================================================================== */

.sobre-intro {
  width: 100%;
  padding: var(--espaco-lg) var(--margem-x);
}

.sobre-intro__interno {
  display: flex;
  flex-direction: column;
  gap: var(--espaco-md);
}

.sobre-intro__lado {
  display: flex;
  flex-direction: column;
  gap: var(--espaco-md);
  font-weight: 700;
}

.sobre-intro__titulo {
  font-size: var(--fonte-24);
  line-height: var(--entrelinha-24-32);
  color: var(--corporativo-pure);
}

.sobre-intro__parceiros {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--espaco-md);
  font-size: var(--fonte-14);
  line-height: var(--entrelinha-14-20);
}

/* Cor do parceiro, pelo nome (`iel_sobre_dados()`); fora da lista fica com a cor de texto comum */
.sobre-intro__parceiro { color: var(--tinta-dark); }
.sobre-intro__parceiro--fies { color: var(--partner-fies); }
.sobre-intro__parceiro--sesi { color: var(--partner-sesi); }
.sobre-intro__parceiro--senai { color: var(--partner-senai); }
.sobre-intro__parceiro--iel { color: var(--iel-pure); }
/* Os parceiros sao links, como na topbar: sublinham no hover (o foco usa o anel global) */
a.sobre-intro__parceiro:hover { text-decoration-line: underline; }

.sobre-intro__conteudo {
  display: flex;
  min-width: 0;
  flex: 1 1 0%;
  flex-direction: column;
  gap: var(--espaco-md);
}

/* Bloco de texto do CMS: o primeiro e o de destaque (tom mais escuro), os demais o tom comum */
.sobre-intro__texto {
  display: flex;
  flex-direction: column;
  gap: var(--espaco-md);
  font-size: var(--fonte-16);
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--tinta-dark);
}
.sobre-intro__texto--destaque { color: var(--tinta-darker); }

/* ==========================================================================
   VALORES - lista empilhada no mobile, quatro colunas com reguas a partir do tablet
   ========================================================================== */

.sobre-valores {
  width: 100%;
  border-color: var(--iel-dark);
  border-top-width: 2px;
}

.sobre-valores__faixa {
  width: 100%;
  padding: var(--espaco-sm) var(--espaco-lg);
}

.sobre-valores__interno {
  display: flex;
  flex-direction: column;
}

.sobre-valores__item {
  display: flex;
  flex: 1 1 0%;
  align-items: center;
  gap: var(--espaco-20);
}

.sobre-valores__icone {
  width: 4.5rem;
  height: 4.5rem;
  flex-shrink: 0;
  object-fit: contain;
}

.sobre-valores__rotulo {
  font-size: var(--fonte-20);
  font-weight: 700;
  line-height: var(--entrelinha-20-28);
  color: var(--corporativo-pure);
}

/* Separador entre valores: regua horizontal no mobile, vertical a partir do tablet */
.sobre-valores__divisor {
  width: 100%;
  height: .0625rem;
  flex-shrink: 0;
  background-color: var(--iel-light);
}

/* ==========================================================================
   VIDEO - faixa azul com a capa e o botao de play (a capa e um link para o destino do video)
   ========================================================================== */

.sobre-video {
  width: 100%;
  background-color: var(--corporativo-pure);
  padding: var(--espaco-2xl) var(--margem-x);
}

.sobre-video__interno {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espaco-lg);
}

.sobre-video__titulo {
  text-align: center;
  font-size: var(--fonte-32);
  font-weight: 700;
  line-height: var(--entrelinha-32-44);
  color: var(--tinta-white);
}

.sobre-video__player {
  position: relative;
  display: flex;
  height: 18.75rem;
  width: 100%;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--raio-lg);
}

.sobre-video__capa {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.sobre-video__veu {
  position: absolute;
  inset: 0;
  background-color: var(--veu-preto-40);
  transition-property: var(--transicao-cores);
  transition-timing-function: var(--suavizacao-padrao);
  transition-duration: .3s;
}
.sobre-video__player:hover .sobre-video__veu { background-color: var(--veu-preto-30); }

.sobre-video__play {
  position: relative;
  display: flex;
  width: 5rem;
  height: 5rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--raio-pill);
  background-color: var(--iel-dark);
  transition-property: transform;
  transition-timing-function: var(--suavizacao-padrao);
  transition-duration: .3s;
}
.sobre-video__player:hover .sobre-video__play { transform: scale(1.1); }

.sobre-video__play-icone {
  width: 2rem;
  height: 2rem;
}

.sobre-video__legenda {
  position: absolute;
  left: var(--espaco-md);
  right: var(--espaco-md);
  bottom: var(--espaco-md);
  display: flex;
  flex-direction: column;
  gap: var(--espaco-xs);
  color: var(--tinta-white);
}

.sobre-video__chamada {
  font-size: var(--fonte-16);
  font-weight: 700;
  line-height: var(--entrelinha-16-24);
}

.sobre-video__subtitulo {
  font-size: var(--fonte-12);
  font-weight: 500;
  line-height: var(--entrelinha-12-16);
  color: var(--iel-lightest);
}

/* ==========================================================================
   DEPOIMENTO - a citacao centralizada e a assinatura
   ========================================================================== */

.sobre-depoimento {
  width: 100%;
  padding: var(--espaco-xl) var(--margem-x);
}

.sobre-depoimento__interno {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sobre-depoimento__figura {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espaco-lg);
}

.sobre-depoimento__citacao {
  max-width: 62.5rem;
  text-align: center;
  font-size: var(--fonte-20);
  font-weight: 700;
  line-height: var(--entrelinha-20-28);
  color: var(--corporativo-pure);
}

.sobre-depoimento__assinatura {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--espaco-xs);
  font-size: var(--fonte-14);
  line-height: var(--entrelinha-14-20);
}

.sobre-depoimento__traco {
  width: 1rem;
  height: .125rem;
  background-color: var(--iel-pure);
}

.sobre-depoimento__autor {
  font-weight: 700;
  color: var(--iel-darkest);
}

.sobre-depoimento__cargo {
  font-weight: 400;
  color: var(--tinta-dark);
}

/* ==========================================================================
   HISTORIA - mobile: titulo, imagem, texto; tablet: imagem, titulo, texto; desktop: imagem a esquerda, titulo e texto a direita
   ========================================================================== */

.sobre-historia {
  width: 100%;
  padding: var(--espaco-lg) var(--margem-x);
}

.sobre-historia__interno {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: var(--espaco-md);
}

.sobre-historia__titulo {
  font-size: var(--fonte-32);
  font-weight: 700;
  line-height: var(--entrelinha-32-44);
  color: var(--corporativo-pure);
}

.sobre-historia__subtitulo {
  font-size: var(--fonte-24);
  font-weight: 700;
  line-height: var(--entrelinha-24-36);
  color: var(--iel-dark);
}

.sobre-historia__imagem {
  height: 15rem;
  overflow: hidden;
  border-radius: var(--raio-lg);
}

.sobre-historia__foto {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.sobre-historia__texto {
  display: flex;
  flex-direction: column;
  gap: var(--espaco-md);
  font-size: var(--fonte-16);
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--tinta-dark);
}

/* Link do texto do CMS (classe injetada por iel_sobre_estilizar_links) */
.sobre-link {
  font-weight: 700;
  color: var(--corporativo-pure);
  text-decoration-line: underline;
}
.sobre-link:hover { text-decoration-line: none; }

/* ==========================================================================
   RESPONSIVO
   Sempre no fim do arquivo, em ordem crescente (48em, 80em); dentro de cada @media, na ordem dos blocos acima.
   ========================================================================== */

@media (min-width: 48em) {
  .sobre-intro { padding-block: var(--espaco-48); }
  .sobre-intro__interno { gap: var(--espaco-xl); }
  .sobre-intro__lado { gap: var(--espaco-lg); }
  .sobre-intro__titulo {
    font-size: var(--fonte-32);
    line-height: var(--entrelinha-32-40);
  }
  .sobre-intro__parceiros {
    gap: var(--espaco-xl);
    font-size: var(--fonte-16);
    line-height: var(--entrelinha-16-24);
  }

  .sobre-valores__faixa { padding: var(--espaco-2xl) var(--margem-x); }
  .sobre-valores__interno {
    flex-direction: row;
    align-items: stretch;
    justify-content: center;
    gap: var(--espaco-lg);
  }
  .sobre-valores__item {
    flex-direction: column;
    gap: var(--espaco-xs);
  }
  .sobre-valores__icone {
    width: 5rem;
    height: 5rem;
  }
  .sobre-valores__rotulo {
    text-align: center;
    font-size: var(--fonte-14);
    line-height: var(--entrelinha-14-20);
  }
  .sobre-valores__linha { display: block; }
  .sobre-valores__divisor {
    width: .0625rem;
    height: 3.75rem;
    align-self: center;
  }

  .sobre-video { padding-block: var(--espaco-64); }
  .sobre-video__interno { gap: var(--espaco-xl); }
  .sobre-video__titulo {
    font-size: var(--fonte-40);
    line-height: var(--entrelinha-40-52);
  }
  .sobre-video__player { height: 28.125rem; }

  .sobre-depoimento { padding-block: var(--espaco-64); }
  .sobre-depoimento__assinatura { flex-direction: row; }

  .sobre-historia { padding-block: var(--espaco-3xl); }
  .sobre-historia__interno { gap: var(--espaco-xl); }
  .sobre-historia__imagem {
    order: -1;
    height: 31.25rem;
  }
}

@media (min-width: 80em) {
  .sobre-intro { padding-block: var(--espaco-64); }
  .sobre-intro__interno {
    flex-direction: row;
    align-items: flex-start;
  }
  .sobre-intro__lado {
    width: 23.5625rem;
    flex-shrink: 0;
  }
  .sobre-intro__linha { display: block; }
  .sobre-intro__texto { text-align: justify; }

  .sobre-valores {
    border-color: var(--iel-light);
    border-top-width: 1px;
  }
  .sobre-valores__faixa { padding-inline: var(--margem-x); }
  .sobre-valores__item {
    flex-direction: row;
    gap: var(--espaco-20);
  }
  .sobre-valores__rotulo { text-align: left; }

  .sobre-video__player { width: 63rem; }
  .sobre-video__play {
    width: 6rem;
    height: 6rem;
  }
  .sobre-video__legenda {
    left: var(--espaco-xl);
    right: var(--espaco-xl);
    bottom: var(--espaco-xl);
  }

  .sobre-historia { padding-block: var(--espaco-64); }
  .sobre-historia__interno {
    grid-template-columns: 37.25rem minmax(0, 1fr);
    align-items: center;
  }
  .sobre-historia__cabecalho {
    grid-column-start: 2;
    grid-row-start: 1;
  }
  .sobre-historia__subtitulo {
    font-size: var(--fonte-20);
    line-height: var(--entrelinha-20-28);
  }
  .sobre-historia__imagem {
    order: 0;
    grid-column-start: 1;
    grid-row: 1 / span 2;
    height: 48.5625rem;
  }
  .sobre-historia__texto {
    grid-column-start: 2;
    grid-row-start: 2;
    text-align: justify;
  }
}
