/* Casca do tema: identidade do Tinta de Qualidade (header, barras de cor, rodapé). */

@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Raleway';
  src: url('../fonts/Raleway-Italic.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

:root {
  --tinta-roxo: #451c6a;
  --tinta-roxo-escuro: #33155c;
  --tinta-azul: #00b1eb;
  --tinta-azul-claro: #79d1f1;
  --tinta-amarelo: #ffc64a;
  --tinta-verde: #a4ce4e;
  --tinta-rosa: #e83e8c;
  --tinta-marinho: #1e1d4d;
  --tinta-marinho-escuro: #181740;
  --tinta-texto: #222;
  --tinta-texto-suave: #575757;
  --tinta-fundo: #f6f4f9;
  --tinta-largura: 1140px;
  --tinta-fonte: 'Raleway', Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--tinta-fonte);
  color: var(--tinta-texto);
  background: var(--tinta-fundo);
  line-height: 1.5;
  overflow-x: hidden;
}

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

.tinta-container {
  width: 100%;
  max-width: var(--tinta-largura);
  margin: 0 auto;
  padding: 0 16px;
}

.tinta-pular {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 8px 12px;
  background: #fff;
  color: var(--tinta-roxo);
}

.tinta-pular:focus {
  left: 8px;
}

/* Topo com links institucionais */
.tinta-header {
  background: #fff;
}

.tinta-topo {
  padding: 20px 0;
}

.tinta-topo__links {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.tinta-topo__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 5px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 0.2s ease;
}

.tinta-topo__link:nth-child(1) { background: var(--tinta-marinho); }
.tinta-topo__link:nth-child(2) { background: var(--tinta-roxo); }
.tinta-topo__link:nth-child(3) { background: var(--tinta-azul); }

.tinta-topo__link:hover,
.tinta-topo__link:focus-visible {
  opacity: 0.88;
}

/* Barras de cor da marca */
.tinta-barra {
  display: flex;
  width: 100%;
}

.tinta-barra span {
  flex: 1;
}

.tinta-barra--fina { height: 8px; }
.tinta-barra--grossa { height: 18px; }

.tinta-barra span:nth-child(1) { background: var(--tinta-roxo); }
.tinta-barra span:nth-child(2) { background: var(--tinta-azul); }
.tinta-barra span:nth-child(3) { background: var(--tinta-amarelo); }
.tinta-barra span:nth-child(4) { background: var(--tinta-verde); }
.tinta-barra span:nth-child(5) { background: var(--tinta-rosa); }
.tinta-barra span:nth-child(6) { background: var(--tinta-roxo); }
.tinta-barra span:nth-child(7) { background: var(--tinta-azul-claro); }

/* Faixa roxa com o logo sobreposto */
.tinta-menu {
  background: var(--tinta-roxo);
  padding: 10px 0;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.tinta-logo {
  display: inline-block;
  position: relative;
  z-index: 10;
  margin-top: -120px;
  margin-bottom: -40px;
}

.tinta-logo img {
  display: block;
  width: 155px;
}

/* Faixa de título das páginas */
.tinta-faixa {
  background: var(--tinta-marinho);
  color: #fff;
  padding: 72px 0 40px;
  text-align: center;
}

.tinta-faixa__pre {
  margin: 0 0 6px;
  color: var(--tinta-amarelo);
  font-weight: 700;
  font-size: 15px;
}

.tinta-faixa__titulo {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.1;
}

.tinta-main {
  display: block;
  min-height: 50vh;
}

.tinta-conteudo {
  padding-top: 40px;
  padding-bottom: 40px;
}

.tinta-titulo {
  color: var(--tinta-roxo);
}

/* Rodapé */
.tinta-rodape {
  margin-top: 56px;
  color: #fff;
}

.tinta-rodape__conteudo {
  background: var(--tinta-marinho);
  padding: 30px 0;
}

.tinta-rodape__linha {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tinta-rodape__logo {
  width: 120px;
}

.tinta-rodape__endereco {
  font-style: normal;
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
  text-align: right;
  line-height: 1.7;
}

.tinta-rodape__copy {
  background: var(--tinta-marinho-escuro);
  padding: 15px 0;
  font-size: 14px;
  text-align: center;
}

@media (max-width: 767px) {
  .tinta-topo {
    padding: 12px 0;
  }

  .tinta-topo__links {
    flex-direction: column;
    align-items: stretch;
  }

  .tinta-topo__link {
    justify-content: center;
  }

  .tinta-menu .tinta-container {
    text-align: center;
  }

  .tinta-logo {
    margin-top: 0;
    margin-bottom: 0;
  }

  .tinta-logo img {
    width: 110px;
  }

  .tinta-faixa {
    padding: 32px 0 28px;
  }

  .tinta-rodape__linha {
    flex-direction: column;
    text-align: center;
  }

  .tinta-rodape__endereco {
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
