/* ============================================================
   FJLS — Página Transparência (fundacaojles.org.br/transparencia/)
   Classes usadas pelo shortcode [fjls_documentos] e módulos Código (prefixo .ft-)

   COMO SUBIR (tema child), uma das duas opções:
   1) Colar o conteúdo deste arquivo no style.css do tema child; OU
   2) Salvar como arquivo (ex.: child/css/fjls-transparencia.css) e enfileirar
      no functions.php:
      add_action( 'wp_enqueue_scripts', function () {
        wp_enqueue_style( 'fjls-transparencia',
          get_stylesheet_directory_uri() . '/css/fjls-transparencia.css', array(), '1.2' );
      } );

   Depois de subir, pode REMOVER este CSS do Custom CSS da página — MANTENDO lá
   apenas estas 2 regras (são específicas da página; no tema child afetariam o
   site inteiro):
   .et-l--post .et_pb_row { width: 100% !important; max-width: 1880px !important; padding: 0 1rem !important; margin: 0 auto !important; }
   .et-l--post .et_pb_code, .et-l--post .et_pb_module { margin-bottom: 0 !important; }

   Fontes: usa as famílias já registradas no Divi
   ("Museo Sans Rounded Bold" 700 / "Museo Sans Rounded Regular" 500)
   ============================================================ */

:root {
  --ft-dark: #001645;
  --ft-dark-80: rgba(0, 22, 69, .8);
  --ft-dark-60: rgba(0, 22, 69, .6);
  --ft-royal: #002E80;
  --ft-blue: #0066D5;
  --ft-sabara-dark: #0056B5;
  --ft-light-blue: #C4E6FF;
  --ft-peach: #FFDDAB;
  --ft-orange: #FF5F00;
  --ft-orange-dark: #CF4D00;
  --ft-border: rgba(0, 22, 69, .1);
  --ft-font-bold: "Museo Sans Rounded Bold", Nunito, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --ft-font-reg: "Museo Sans Rounded Regular", Nunito, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

.ft * {
  box-sizing: border-box;
}

.ft {
  font-family: var(--ft-font-reg);
  color: var(--ft-dark);
}

/* ---------- Títulos e textos base ---------- */
.ft-h1 {
  font-family: var(--ft-font-bold);
  font-weight: 700;
  font-size: 48px;
  line-height: 1.2;
  margin: 0;
}

.ft-h2 {
  font-family: var(--ft-font-bold);
  font-weight: 700;
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 40px;
}

.ft-b1 {
  font-size: 16px;
  font-weight: 600;
}

.ft-b2 {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ft-dark-80);
}

.ft-b3 {
  font-size: 16px;
  line-height: 1.6;
}

/* ---------- HERO ---------- */
.ft-hero {
  position: relative;
  border-radius: 40px;
  overflow: hidden;
  background: var(--ft-royal);
  min-height: 600px;
  display: flex;
  align-items: flex-end;
}

.ft-hero:after {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  z-index: 1;
  position: absolute;
  top: 0;
  left: 0;
  background: linear-gradient(to top right, #0c1220, rgba(23, 34, 58, 0));
}

.ft-hero img.ft-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.ft-hero-content {
  position: relative;
  z-index: 2;
  padding: 64px 54px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.ft-hero-content .ft-b1 {
  color: rgba(255, 255, 255, .8);
}

.ft-hero-content .ft-h1 {
  color: #fff;
  max-width: 560px;
}

@media (min-width: 992px) {
  .ft-hero {
    min-height: 660px;
    align-items: center;
    height: calc(100vh - 4rem);
  }
}

@media (max-width: 767px) {
  .ft-hero-content {
    padding: 40px 24px;
  }

  .ft-hero-content .ft-h1 {
    font-size: 32px;
  }
}

/* ---------- GRID RELATÓRIOS ---------- */
.ft-doc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

@media (max-width: 1199px) {
  .ft-doc-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 991px) {
  .ft-doc-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .ft-doc-grid {
    grid-template-columns: 1fr;
  }
}

.ft-doc-card {
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 32px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ft-doc-card .ft-capa {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top center;
  display: block;
  background: var(--ft-light-blue);
}

.ft-doc-card .ft-card-body {
  padding: 32px 32px 40px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 16px;
}

.ft-doc-card .ft-card-actions {
  margin-top: auto;
  padding-top: 24px;
}

.ft-badge {
  display: inline-block;
  background: var(--ft-royal);
  color: #fff;
  font-family: var(--ft-font-bold);
  font-size: 14px;
  font-weight: 700;
  padding: 8px 8px 6px;
  border-radius: 8px;
  line-height: 1;
  align-self: flex-start;
}

.ft-card-title {
  font-family: var(--ft-font-bold);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0;
}

.ft-card-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ft-dark-80);
  margin: 0;
}

/* Botões */
.ft-btn,
.ft-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ft-font-bold);
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  padding: 24px;
  border-radius: 18px;
  transition: all .2s ease !important;
}

.ft-btn-primary {
  background: var(--ft-blue);
  color: #fff !important;
}

.ft-btn-primary:hover {
  background: var(--ft-royal);
}

.ft-btn-outline {
  background: transparent;
  color: var(--ft-dark) !important;
  border: 1px solid var(--ft-border);
}

.ft-btn-outline:hover {
  border-color: var(--ft-dark);
}

.ft-arrow {
  display: none;
}

/* legado: setas em HTML foram substituídas pelo ::after abaixo */
.ft-btn::after,
.ft-btn-compliance::after {
  content: "";
  display: inline-block;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17.92 6.62a1 1 0 0 0-.54-.54A1 1 0 0 0 17 6H7a1 1 0 0 0 0 2h7.59l-8.3 8.29a1 1 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L16 9.41V17a1 1 0 0 0 2 0V7a.997.997 0 0 0-.08-.38Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
  -webkit-mask-size: contain;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M17.92 6.62a1 1 0 0 0-.54-.54A1 1 0 0 0 17 6H7a1 1 0 0 0 0 2h7.59l-8.3 8.29a1 1 0 0 0 .325 1.639 1 1 0 0 0 1.095-.219L16 9.41V17a1 1 0 0 0 2 0V7a.997.997 0 0 0-.08-.38Z'/%3E%3C/svg%3E");
  mask-repeat: no-repeat;
  mask-position: center;
  mask-size: contain;
}

/* ---------- CARDS LGPD / PRIVACIDADE / ESTATUTO / SALVAGUARDA ---------- */
.ft-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

@media (max-width: 991px) {
  .ft-info-grid {
    grid-template-columns: 1fr;
  }
}

.ft-info-card {
  background: #fff;
  border: 1px solid var(--ft-border);
  border-radius: 32px;
  padding: 40px 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ft-info-card .ft-card-actions {
  margin-top: auto;
  padding-top: 24px;
}

/* ---------- PROGRAMA DE COMPLIANCE ---------- */
.ft-compliance {
  background: var(--ft-peach);
  border-radius: 40px;
  padding: 64px 94px;
  text-align: center;
}

.ft-compliance .ft-h2 {
  color: var(--ft-orange-dark);
}

.ft-compliance-inner {
  max-width: 820px;
  margin: 0 auto;
}

.ft-compliance p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ft-dark-80);
  margin: 0 0 16px;
  padding: 0;
}

.ft-compliance ul.ft-pilares {
  list-style: disc;
  margin: 0 0 40px;
  padding: 0;
  font-size: 18px;
  line-height: 2;
  color: var(--ft-dark-80);
  list-style-position: inside;
}

.ft-compliance-botoes {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.ft-btn-compliance,
.ft-btn-compliance:visited {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ft-orange);
  color: #fff !important;
  font-family: var(--ft-font-bold);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  padding: 15px 20px;
  border-radius: 20px;
  transition: all .2s ease;
  text-align: left;
}

.ft-btn-compliance:hover {
  background: var(--ft-orange-dark);
}

/* ---------- PARCERIAS PÚBLICAS ---------- */
.ft-parcerias {
  text-align: center;
}

.ft-parcerias .ft-intro {
  max-width: 900px;
  margin: 0 auto 56px;
}

.ft-table-wrap {
  overflow-x: auto;
}

table.ft-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  text-align: left;
}

table.ft-table thead td,
table.ft-table th {
  font-family: var(--ft-font-bold);
  font-weight: 700;
  color: var(--ft-dark-80);
  background: rgba(255, 255, 255, .6);
  padding: 10px 20px;
  border: 1px solid var(--ft-royal);
}

table.ft-table td {
  padding: 15px 20px;
  border: 1px solid var(--ft-royal);
  color: var(--ft-dark-80);
}

/* ---------- util ---------- */
.ft-section-pad {
  padding: 40px 0;
}

.ft-center {
  text-align: center;
}

/* ---------- Botão Acessar: estados normal/hover (hover no card inteiro) ---------- */
/* Fixa a cor dos títulos dos cards (o Divi aplica cor global #3f3f3f em h1-h6) */
.ft-card-title {
  color: var(--ft-royal);
  transition: all .2s ease;
}

.ft-doc-card:hover .ft-card-title,
.ft-info-card:hover .ft-card-title {
  color: var(--ft-dark);
}

.ft-btn-outline {
  transition: all .2s ease;
}

/* hover ao passar o mouse no bloco todo (ou no próprio botão) */
.ft-btn-outline:hover,
.ft-doc-card:hover .ft-btn-outline,
.ft-info-card:hover .ft-btn-outline {
  background: #E9E9EC;
  border-color: transparent;
  border-radius: 999px;
}

/* Fix da animação de saída do hover: 999px fazia a interpolação do raio "destravar"
   só no fim da volta (parecia snap). 33px = pill real do botão (~66px de altura),
   então a transição 18px ↔ 33px anima visivelmente nos dois sentidos.
   (Pode consolidar: é só trocar o border-radius:999px do bloco acima por 33px.) */
.ft-btn-outline:hover,
.ft-doc-card:hover .ft-btn-outline,
.ft-info-card:hover .ft-btn-outline {
  border-radius: 33px;
}

/* ---------- CARROSSEL RELATÓRIOS ANUAIS (Swiper, padrão da home) ---------- */
.ft-relatorios-carousel {
  position: relative;
}

.ft-relatorios-carousel__viewport {
  overflow: hidden;
}

/* fallback sem Swiper: vira scroll lateral simples (o Swiper sobrescreve ao iniciar) */
.ft-relatorios-carousel .swiper-wrapper {
  display: flex;
}

.ft-relatorios-carousel .swiper-slide {
  width: 82%;
  height: auto;
  flex-shrink: 0;
}

@media (min-width: 600px) {
  .ft-relatorios-carousel .swiper-slide { width: 46%; }
}

@media (min-width: 992px) {
  .ft-relatorios-carousel .swiper-slide { width: 32%; }
}

@media (min-width: 1400px) {
  .ft-relatorios-carousel .swiper-slide { width: 24%; }
}

/* rodapé: barras de paginação + setas (como na home) */
.ft-relatorios-carousel__footer {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 32px;
}

.ft-relatorios-carousel__pagination {
  display: flex;
  gap: 8px;
  flex: 1;
  position: static;
}

.ft-relatorios-carousel__pagination .swiper-pagination-bullet {
  flex: 1;
  width: auto;
  height: 4px;
  border-radius: 2px;
  background: rgba(0, 22, 69, .15);
  opacity: 1;
  margin: 0 !important;
  transition: background .2s ease;
}

.ft-relatorios-carousel__pagination .swiper-pagination-bullet-active {
  background: var(--ft-royal);
}

.ft-relatorios-carousel__nav {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ft-relatorios-carousel__arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--ft-royal);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s ease;
  padding: 0;
}

.ft-relatorios-carousel__arrow:hover {
  background: var(--ft-dark);
}

.ft-relatorios-carousel__arrow[disabled],
.ft-relatorios-carousel__arrow.swiper-button-disabled {
  opacity: .4;
  cursor: default;
}
