@import url("https://fonts.googleapis.com/css2?family=Josefin+Sans:ital,wght@0,100..700;1,100..700&family=Karla:ital,wght@0,200..800;1,200..800&family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Figtree:ital,wght@0,300..900;1,300..900&family=Poppins:ital,wght@0,100..900;1,100..900&display=swap");

/* ======================================================= */
/* --- VARIÁVEIS --- */
:root {
  --cor-roxo-claro: #9675ce;
  --cor-roxo-escuro: #4a356d;
  --cor-laranja: #ffb64d;
  --cor-branca: #fafafa;
  --cor-preta: #000000;
  --cor-amarelo: #fff59c;
  --font-titulo: "Karla", sans-serif;
  --font-paragrafo: "Figtree", sans-serif;
}

/* ======================================================= */
/* --- GLOBAL --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.margem-global {
  margin: 0 60px;
}

h1 {
  font-family: var(--font-titulo);
  font-weight: 700;
  font-size: clamp(100px, 4vw, 45px);
  /* background: linear-gradient(to right, #9675ce, #4c3b68); */
  -webkit-background-clip: text;
  background-clip: text;
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 62px);
  color: var(--cor-laranja);
}

section h2 {
  font-family: var(--font-titulo);
  font-weight: 600;
  font-size: clamp(26px, 4vw, 45px);
  background: linear-gradient(to right, #9675ce, #4c3b68);
  -webkit-background-clip: text;
  background-clip: text;
  color: var(--cor-roxo-claro);
  text-align: center;
  margin-bottom: clamp(20px, 4vw, 62px);
}

section #descricao {
  font-family: var(--font-titulo);
  font-size: clamp(16px, 2vw, 30px);
  color: var(--cor-preta);
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 50px);
}

/* ======================================================= */
/* --- SEÇÃO SOLMIDIA (COLADA NO TOPO/NAV) --- */
.solmidia {
  background-image: url(../../../assets/img-sunMidia/img-mae-filha-lendo.png);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  height: 600px;
  display: flex;
  object-fit: cover;
  justify-content: center;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 0; /* GARANTE QUE ESTEJA COLADO NO TOPO */
}

.solmidia h2 {
  font-size: clamp(48px, 8vw, 100px);
}

.solmidia p {
  font-size: clamp(16px, 3vw, 30px);
}

/* ======================================================= */
/* --- CARDS COMUNS --- */
section .container-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
}

section .card {
  width: clamp(280px, 25%, 388px);
  border-radius: 16px;
  box-shadow: 0 4px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  align-items: center;
  height: auto;
  padding-bottom: 20px;
}

section .card img {
  width: 100%;
  height: auto;
  border-radius: 16px 16px 0 0;
}

section .card .textos {
  width: 90%;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

section .card .textos h3 {
  font-family: var(--font-titulo);
  font-size: clamp(18px, 2vw, 24px);
  color: var(--cor-preta);
}

section .card .textos p {
  font-family: var(--font-paragrafo);
  font-size: clamp(14px, 1.5vw, 20px);
  color: #5a5a5a;
}

section .card .textos h4 {
  font-family: var(--font-paragrafo);
  font-size: clamp(16px, 1.5vw, 22px);
  color: var(--cor-roxo-claro);
}

/* ======================================================= */
/* --- SEÇÕES DE CONTEÚDO (APLICANDO MARGEM SUPERIOR INDIVIDUALMENTE) --- */
section.educacao,
section.saude,
section.historias-inspiradoras,
section.trabalho-carreira,
section.novidades {
  margin-top: 80px;
}

/* ======================================================= */
/* --- SEÇÃO GOSTOU --- */
section.gostou {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 80px;
  text-align: center;
}

section.gostou .margem-global {
  width: 100%;
  max-width: 1077px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

section.gostou h2 {
  font-size: clamp(32px, 5vw, 64px);
}

section.gostou h3 {
  font-size: clamp(22px, 4vw, 40px);
}

section.gostou p {
  width: 100%;
  font-size: clamp(14px, 2vw, 20px);
  padding: 0 10px;
}

section.gostou .img-centro img {
  width: 80%;
  max-width: 400px;
}

section.gostou button {
  width: clamp(220px, 25%, 315px);
  height: clamp(50px, 5vh, 74px);
  font-size: clamp(20px, 2vw, 26px);
  border-radius: 30px;
  border: none;
  background: var(--cor-laranja);
  color: var(--cor-preta);
  margin-top: 30px;
}

/* ======================================================= */
/* --- FOOTER --- */
footer {
  margin-top: 100px;
  background: var(--cor-roxo-claro);
  padding: 60px 0 30px 0;
  color: var(--cor-branca);
}

footer .margem-global {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

/* Conteúdo do Footer */
.secao-footer h3 {
  font-family: var(--font-titulo);
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Logo */
.logo-footer {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.logo-footer img {
  width: 70px;
}

.logo-footer span {
  font-family: var(--font-titulo);
  font-size: 36px;
  font-weight: 700;
}

/* Redes Sociais */
.redes-sociais {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.link-rede-social {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--cor-branca);
  text-decoration: none;
  font-family: var(--font-paragrafo);
  font-size: 16px;
  transition: all 0.3s ease;
}

.link-rede-social:hover {
  color: var(--cor-laranja);
  transform: translateX(5px);
}

.link-rede-social svg {
  width: 24px;
  height: 24px;
  fill: var(--cor-branca);
}

.link-rede-social:hover svg {
  fill: var(--cor-laranja);
}

/* Lista de Páginas */
.lista-paginas {
  list-style: none;
  padding: 0;
}

.lista-paginas li {
  margin-bottom: 12px;
}

.lista-paginas a {
  color: var(--cor-branca);
  text-decoration: none;
  font-family: var(--font-paragrafo);
  font-size: 16px;
  transition: all 0.3s ease;
}

.lista-paginas a:hover {
  color: var(--cor-laranja);
  padding-left: 5px;
}

/* Direitos Autorais */
.direitos-autorais {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-paragrafo);
  font-size: 14px;
  color: var(--cor-branca);
}

/* ======================================================= */
/* --- MEDIA QUERIES --- */

/* Tablets (<= 768px) */
@media (max-width: 768px) {
  .margem-global {
    margin: 0 20px;
  }
  section h2 {
    font-size: clamp(26px, 6vw, 40px);
    margin-bottom: 30px;
  }
  section #descricao {
    font-size: clamp(14px, 2vw, 22px);
    margin-bottom: 25px;
  }
  .solmidia {
    height: 400px;
    background-position: center;
  }
  .solmidia h2 {
    font-size: clamp(36px, 6vw, 60px);
  }
  .solmidia p {
    font-size: clamp(14px, 2vw, 20px);
  }

  /* Footer: Centraliza itens no mobile */
  footer .margem-global {
    grid-template-columns: 1fr;
    text-align: start;
  }
  .logo-footer {
    justify-content: start;
  }
  .redes-sociais {
    align-items: start;
  }
}

/* Celulares pequenos (<= 560px) */
@media (max-width: 560px) {
  .margem-global {
    margin: 0 15px;
  }
  section h2 {
    font-size: clamp(22px, 5vw, 32px);
    margin-bottom: 20px;
  }
  section #descricao {
    font-size: clamp(12px, 2vw, 18px);
    margin-bottom: 15px;
  }
  .solmidia {
    height: 350px;
  }
  .solmidia h2 {
    font-size: clamp(28px, 5vw, 48px);
  }
  .solmidia p {
    font-size: clamp(12px, 2vw, 16px);
  }
  .section .card {
    width: 90%;
    max-width: 300px;
    padding-bottom: 15px;
  }
}
