/* ===============================
   Fonte elegante e reset básico
================================= */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  line-height: 1.8;
  color: #1c1c1c;
  background-color: #f5f7fa;
  padding: 1rem;
  text-align: left;
}

/* ===============================
   Navegação e Links
================================= */
nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

nav a {
  color: #0052cc;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

nav a:hover,
nav a:focus {
  color: #ff9900;
  text-decoration: underline;
  outline: 2px dashed #0052cc;
  outline-offset: 3px;
}

/* ===============================
   Cabeçalho
================================= */
header {
  background-color: #232f3e;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
}

header h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.selo-afiliado {
  font-size: 0.9rem;
  background-color: #ff9900;
  color: #000;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  display: inline-block;
  margin-top: 0.5rem;
}

/* ===============================
   Seções e Títulos
================================= */
main {
  padding: 2rem 1rem;
  max-width: 960px;
  margin: 0 auto;
}

section {
  margin-bottom: 3rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #ddd;
}

h2 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: #232f3e;
  border-bottom: 2px solid #ff9900;
  padding-bottom: 0.5rem;
}

/* ===============================
   Textos
================================= */
p {
  margin-bottom: 1rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
  line-height: 1.8;
}

/* ===============================
   Cards de conteúdo
================================= */
.produtos,
.projetos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
}

.card h3 {
  color: #0052cc;
  margin-bottom: 0.5rem;
}

.card p {
  color: #333;
  font-size: 1rem;
}

/* ===============================
   Imagens Responsivas
================================= */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
  border-radius: 6px;
}

/* ===============================
   Botões
================================= */
button,
a.button {
  background-color: #ff9900;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 4px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

button:hover,
a.button:hover {
  background-color: #e68a00;
}

button:focus,
a:focus {
  outline: 3px solid #000;
  outline-offset: 3px;
}

/* ===============================
   Formulários
================================= */
form {
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

input,
textarea {
  padding: 0.8rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  width: 100%;
}

input:focus,
textarea:focus {
  border-color: #ff9900;
  outline: none;
}

/* ===============================
   Rodapé
================================= */
footer {
  background-color: #232f3e;
  color: #fff;
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.9rem;
}

footer a {
  color: #ff9900;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

/* ===============================
   Acessibilidade extra
================================= */
.visually-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

:focus {
  outline: 3px solid #ffa500;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none!important;
    transition: none!important;
}
}

@media (prefers-contrast: more) {
  body {
    background-color: #000;
    color: #fff;
}

  a {
    color: #ffff00;
}

  button {
    background-color: #000;
    color: #ffff00;
    border: 2px solid #ffff00;
}

  footer {
    background-color: #000;
    color: #fff;
}
}

/* ===============================
   Responsividade
================================= */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    gap: 1rem;
}

.card {
    width: 100%;
}

  form {
    width: 100%;
}

  h1 {
    font-size: 2rem;
}

  h2 {
    font-size: 1.5rem;
}

  p {
    font-size: 1rem;
}
}
