/* =========================================================
   Inflaming Hearts — estilos do site
   Organização:
     1. Variáveis (cores, fontes, espaçamentos)
     2. Base (reset e elementos padrão)
     3. Layout (container e seções)
     4. Componentes (cabeçalho, navegação, pilares, rodapé)
     5. Responsividade
   ========================================================= */


/* ---------- 1. Variáveis ---------- */
:root {
  /* Paleta da identidade visual */
  --cor-azul-profundo: #0F3B52;  /* fundos e bordas (não usar para texto) */
  --cor-verde-escuro:  #145C4B;  /* fundos e bordas (não usar para texto) */
  --cor-verde-agua:    #1FAE9B;  /* destaques                     — 6,0:1 sobre o fundo */
  --cor-turquesa:      #3DD6D0;  /* links e títulos               — 9,3:1 sobre o fundo */
  --cor-turquesa-clara:#8BF2E6;  /* realces                       — 12,6:1 sobre o fundo */
  --cor-branco:        #F5F7FA;  /* texto principal               — 15,4:1 sobre o fundo */
  --cor-fundo:         #1B1F24;  /* fundo do site */

  /* Papéis (use estes nos componentes, não as cores diretas) */
  --fundo:          var(--cor-fundo);
  --fundo-elevado:  #22282F;
  --fundo-profundo: #020608;  /* mesmo tom do fundo da imagem da logo */
  --fundo-destaque: linear-gradient(135deg, var(--cor-azul-profundo), var(--cor-verde-escuro));
  --texto-lema:     var(--cor-turquesa-clara);
  --texto:          var(--cor-branco);
  --texto-destaque: var(--cor-turquesa);
  --borda:          var(--cor-verde-escuro);

  /* Tipografia */
  --fonte-titulo: "Cinzel", Georgia, serif;
  --fonte-texto:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Espaçamentos */
  --espaco-1: 0.5rem;
  --espaco-2: 1rem;
  --espaco-3: 1.5rem;
  --espaco-4: 2rem;
  --espaco-6: 3rem;
  --espaco-8: 4rem;

  --largura-max: 1100px;
  --raio: 8px;
}


/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font-family: var(--fonte-texto);
  font-size: 1rem;
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: var(--fonte-titulo);
  color: var(--texto-destaque);
  line-height: 1.2;
  margin: 0 0 var(--espaco-2);
}

a {
  color: var(--texto-destaque);
}

a:hover,
a:focus-visible {
  color: var(--cor-turquesa-clara);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}


/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 var(--espaco-3);
}

.section {
  padding: var(--espaco-8) 0;
  scroll-margin-top: 4rem; /* compensa o cabeçalho fixo ao clicar no menu */
}

.section--hero {
  min-height: min(70vh, 760px);
  display: flex;
  align-items: center;
  /* Escurece o centro para a imagem da logo se fundir ao fundo */
  background: radial-gradient(ellipse at 50% 35%,
              var(--fundo-profundo) 0%,
              var(--fundo-profundo) 30%,
              var(--fundo) 75%);
}


/* ---------- 4. Componentes ---------- */

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--fundo);
  border-bottom: 1px solid var(--borda);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.site-header__brand {
  display: flex;
  white-space: nowrap;
  align-items: center;
  gap: var(--espaco-1);
  font-family: var(--fonte-titulo);
  font-weight: 700;
  text-decoration: none;
}

.site-header__brand img {
  border-radius: 6px;
}

/* Início (hero) */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero__logo {
  margin: 0 0 var(--espaco-3);
}

.hero__logo img {
  width: min(480px, 90vw);
  /* Esfuma as bordas da imagem para ela se misturar ao fundo do site */
  -webkit-mask-image: radial-gradient(ellipse farthest-side at center, #000 72%, transparent 100%);
          mask-image: radial-gradient(ellipse farthest-side at center, #000 72%, transparent 100%);
}

.hero__titulo {
  font-family: var(--fonte-titulo);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  color: var(--texto-destaque);
  line-height: 1.2;
  margin: 0 0 var(--espaco-2);
}

.hero__apoio {
  font-size: 1.125rem;
  max-width: 36rem;
  margin: 0 0 var(--espaco-4);
}

/* Navegação */
.site-nav ul {
  display: flex;
  gap: var(--espaco-3);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--texto);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--texto-destaque);
}

/* Botão de idioma (PT / EN) */
.site-nav__idioma {
  padding: 0.125rem var(--espaco-1);
  border: 1px solid var(--borda);
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

/* Pilares */
.pilares {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espaco-4);
}

/* Variante com dois pilares (versão em inglês) */
.pilares--dois {
  grid-template-columns: repeat(2, 1fr);
  max-width: 52rem;
  margin: 0 auto;
}

.section__titulo {
  text-align: center;
  margin-bottom: var(--espaco-6);
}

.pilar {
  background: var(--fundo-elevado);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
  padding: var(--espaco-4);
}

.pilar__icone {
  width: 40px;
  height: 40px;
  margin-bottom: var(--espaco-2);
  fill: none;
  stroke: var(--texto-destaque);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pilar h3 {
  font-size: 1.375rem;
  margin-bottom: var(--espaco-1);
}

.pilar__lema {
  color: var(--texto-lema);
  font-style: italic;
  margin-top: 0;
}

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

.pilar strong {
  color: var(--texto-destaque);
  font-weight: 600;
}

/* Destaque (editais) */
.destaque {
  margin-top: var(--espaco-6);
  padding: var(--espaco-6) var(--espaco-4);
  text-align: center;
  background: var(--fundo-destaque);
  border: 1px solid var(--texto-destaque);
  border-radius: var(--raio);
}

.destaque h3 {
  color: var(--texto);
  font-size: 1.5rem;
}

.destaque p {
  max-width: 40rem;
  margin: 0 auto var(--espaco-4);
}

/* Sobre o fundo verde, o botão usa branco para manter o contraste */
.destaque .botao {
  color: var(--texto);
  border-color: var(--texto);
}

.destaque .botao:hover,
.destaque .botao:focus-visible {
  background: var(--texto);
  color: var(--fundo);
}

/* Botão (link com aparência de botão) */
.botao {
  display: inline-block;
  padding: var(--espaco-2) var(--espaco-4);
  border: 1px solid var(--texto-destaque);
  border-radius: var(--raio);
  color: var(--texto-destaque);
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}

.botao:hover,
.botao:focus-visible {
  background: var(--texto-destaque);
  color: var(--fundo);
}

/* Contato */
.section--contato {
  text-align: center;
}

/* Sobre */
.sobre__proposito {
  max-width: 44rem;
  margin: 0 auto var(--espaco-6);
  text-align: center;
  font-size: 1.125rem;
}

.sobre__proposito strong {
  color: var(--texto-destaque);
}

.sobre__pessoa {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--espaco-4);
  align-items: center;
  max-width: 52rem;
  margin: 0 auto;
}

.sobre__foto {
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 3px solid var(--texto-destaque);
  object-fit: cover;
}

/* Página de imprensa */
.section--compacta {
  padding: var(--espaco-6) 0 0;
}

.imprensa {
  padding-bottom: var(--espaco-6);
}

.imprensa__titulo {
  font-size: clamp(2rem, 5vw, 2.75rem);
}

.imprensa__lead {
  font-size: 1.125rem;
  max-width: 44rem;
}

.imprensa__indice {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espaco-1) var(--espaco-3);
  margin-top: var(--espaco-3);
  font-size: 0.9375rem;
}

.imprensa__texto > * {
  max-width: 52rem;
}

.imprensa h3 {
  margin-top: var(--espaco-4);
}

/* Ficha técnica: rótulo à esquerda, valor à direita */
.ficha {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--espaco-1) var(--espaco-4);
  max-width: 52rem;
  margin: 0;
  padding: var(--espaco-4);
  background: var(--fundo-elevado);
  border: 1px solid var(--borda);
  border-radius: var(--raio);
}

.ficha dt {
  color: var(--texto-lema);
  font-weight: 600;
}

.ficha dd {
  margin: 0;
}

/* Tabela */
.tabela {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.tabela th,
.tabela td {
  text-align: left;
  vertical-align: top;
  padding: var(--espaco-1) var(--espaco-2);
  border-bottom: 1px solid var(--borda);
}

.tabela th {
  color: var(--texto-destaque);
}

.tabela td:first-child {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.selo {
  display: inline-block;
  margin-left: var(--espaco-1);
  padding: 0 var(--espaco-1);
  border: 1px solid var(--texto-destaque);
  border-radius: 4px;
  color: var(--texto-destaque);
  font-size: 0.75rem;
}

.nota {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* Marca */
.marca__previa img {
  width: min(320px, 70vw);
  border-radius: var(--raio);
}

.downloads {
  padding-left: var(--espaco-3);
}

.downloads li::marker {
  color: var(--texto-destaque);
}

.paleta {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr));
  gap: var(--espaco-2);
  list-style: none;
  padding: 0;
}

.paleta li {
  display: flex;
  align-items: center;
  gap: var(--espaco-1);
}

.paleta__amostra {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  border-radius: 6px;
  border: 1px solid var(--texto);
  background: var(--amostra);
}

.fonte-titulo {
  font-family: var(--fonte-titulo);
}

/* Rodapé */
.site-footer {
  border-top: 1px solid var(--borda);
  padding: var(--espaco-4) 0;
  font-size: 0.875rem;
  text-align: center;
}

.site-footer p {
  margin: 0.25rem 0;
}

.site-footer a {
  color: var(--texto-destaque);
}


/* ---------- 5. Responsividade ---------- */
@media (max-width: 768px) {
  .pilares {
    grid-template-columns: 1fr;
  }

  .site-nav ul {
    gap: var(--espaco-2);
  }

  .sobre__pessoa {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .sobre__foto {
    width: 160px;
    height: 160px;
  }
}

/* Telas pequenas: o cabeçalho mostra só o símbolo, para o menu caber */
@media (max-width: 600px) {
  .site-header__nome {
    display: none;
  }

  .site-nav ul {
    gap: var(--espaco-2);
    font-size: 0.875rem;
  }
}

/* Telas pequenas: ficha técnica em uma coluna */
@media (max-width: 600px) {
  .ficha {
    grid-template-columns: 1fr;
  }

  .ficha dd {
    margin-bottom: var(--espaco-1);
  }
}
