/* ========================================
   FILOMENTE - MODAL "SOBRE O FILOMENTE"
   Paleta: SANTORINI (Branco e Azul)
   ======================================== */

/* ---------- OVERLAY (fundo escurecido) ---------- */
.modal-sobre {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 37, 64, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  justify-content: center;
  align-items: center;
  padding: var(--espacamento-medio, 1.5rem);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal-sobre.ativo {
  display: flex;
  opacity: 1;
}

/* ---------- CAIXA DO MODAL ---------- */
.modal-sobre__caixa {
  position: relative;
  background: var(--surface, #FFFFFF);
  color: var(--navy, #060b17);
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--phm-radius-md);
  box-shadow: 0 24px 64px rgba(6, 11, 23, 0.45);
  padding: 2.25rem 2rem 2rem;
  transform: translateY(30px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  border: 1px solid var(--line);
  border-top: 3px solid var(--phm-teal);
}

.modal-sobre.ativo .modal-sobre__caixa {
  transform: translateY(0) scale(1);
}

/* ---------- CABEÇALHO ---------- */
.modal-sobre__cabecalho {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.modal-sobre__icone {
  font-size: 2.2rem;
  line-height: 1;
  flex-shrink: 0;
  color: var(--phm-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
}

.modal-sobre__icone i {
  font-size: 2.2rem;
}

.modal-sobre__titulo {
  font-family: var(--fonte-titulo);
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--navy);
  margin: 0;
  flex: 1;
}

.modal-sobre__subtitulo {
  font-family: var(--fonte-mono);
  font-size: 0.76rem;
  color: var(--phm-teal);
  margin: 0.25rem 0 0;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
}

/* ---------- BOTÃO FECHAR ---------- */
.modal-sobre__fechar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: var(--phm-radius-sm);
  background: var(--surface-soft);
  color: var(--navy);
  border: 1px solid var(--line);
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-sobre__fechar:hover {
  background: rgba(239, 68, 68, 0.1);
  border-color: #ef4444;
  color: #ef4444;
  transform: rotate(90deg);
}

/* ---------- CONTEÚDO ---------- */
.modal-sobre__conteudo {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--cor-cinza-texto, #5A6B7C);
}

.modal-sobre__conteudo p {
  margin: 0 0 1rem;
}

.modal-sobre__conteudo p:last-child {
  margin-bottom: 0;
}

.modal-sobre__destaque {
  background: var(--surface-soft);
  border-left: 3px solid var(--phm-teal);
  padding: 0.85rem 1.15rem;
  border-radius: 0 var(--phm-radius-sm) var(--phm-radius-sm) 0;
  margin: 1.25rem 0;
  font-style: italic;
  color: var(--navy);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.modal-sobre__conteudo strong {
  color: var(--navy);
  font-weight: 700;
}

.modal-sobre__conteudo a {
  color: var(--phm-teal);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}

.modal-sobre__conteudo a:hover {
  border-bottom-color: var(--phm-teal);
}

/* ---------- RODAPÉ DO MODAL ---------- */
.modal-sobre__rodape {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.modal-sobre__btn {
  padding: 0.55rem 1.35rem;
  border-radius: var(--phm-radius-sm);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transicao-rapida);
  display: inline-block;
}

.modal-sobre__btn--primario {
  background: var(--phm-teal);
  color: #FFFFFF;
}

.modal-sobre__btn--primario:hover {
  background: #0f766e;
  transform: translateY(-2px);
}

.modal-sobre__btn--secundario {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--line);
}

.modal-sobre__btn--secundario:hover {
  background: var(--surface-soft);
  border-color: var(--phm-teal);
  color: var(--phm-teal);
}

/* ---------- BLOQUEIO DE SCROLL DO BODY ---------- */
body.modal-aberto {
  overflow: hidden;
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 600px) {
  .modal-sobre__caixa {
    padding: 2rem 1.25rem 1.5rem;
    max-height: 95vh;
  }

  .modal-sobre__titulo {
    font-size: 1.4rem;
  }

  .modal-sobre__icone {
    font-size: 2rem;
  }

  .modal-sobre__rodape {
    justify-content: stretch;
  }

  .modal-sobre__btn {
    flex: 1;
    text-align: center;
  }
}