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

:root {
  --primary: #1E3A8A;   /* Azul escuro - tecnologia */
  --secondary: #3B82F6; /* Azul claro - inovação */
  --accent: #10B981;    /* Verde - sustentabilidade e química */
  --background: #F3F4F6;/* Cinza claro - neutro */
  --text: #111827;      /* Cinza quase preto - leitura */
  --highlight: #E0F2FE; /* Azul bem claro - detalhes */
}

body {
  background-color: var(--background);
  color: var(--text);
  font-family: "Poppins", "Roboto", "Segoe UI", sans-serif;
}


/* === TÍTULOS E PARÁGRAFOS === */

h1, h2, h3, p {
  margin: 0 0 1rem 0;
  font-weight: 400;
}

/* Título principal */
h1 {
  font-size: 2.5rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Subtítulo de seção */
h2 {
  font-size: 1.75rem;
  color: var(--secondary);
  font-weight: 600;
  border-left: 4px solid var(--accent);
  padding-left: 0.5rem;
}

/* Título de subtópico */
h3 {
  font-size: 1.25rem;
  color: var(--primary);
  font-weight: 500;
}

/* Parágrafos */
p {
  font-size: 1rem;
  color: var(--text);
  line-height: 1.7;
  max-width: 750px;
  text-align: justify;
}

/* === HEADER === */
header {
  background-color: var(--primary);
  color: #fff;
  display: flex;
  justify-content: space-between; /* logo à esquerda, menu à direita */
  align-items: center;
  padding: 1rem 2rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Logo ou nome */
header h1 {
  font-size: 1.5rem;
  color: #fff;
  font-weight: 700;
  letter-spacing: 1px;
}

/* === NAV MENU === */
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem; /* espaçamento entre os itens */
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #ffffff;
  font-weight: 500;
  font-size: 1rem;
  position: relative;
  transition: color 0.3s ease;
}

/* Efeito de destaque ao passar o mouse */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

/* === HOVER === */
nav a:hover {
  color: var(--accent);
}

nav a:hover::after {
  width: 100%;
}

/* === SECTIONS === */
section {
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  background-color: var(--background);
  color: var(--text);
  text-align: center;
}

/* Títulos dentro das sections */
section h2 {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

section p {
  max-width: 800px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
}

/* === SEÇÃO ABOUT === */
#about {
  background-color: var(--highlight);
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === ARTICLE (Layout principal lado a lado) === */
#about article {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  max-width: 1100px;
  width: 100%;
}

/* === IMAGEM === */
main img {
  width: 100%;
  height: clamp(220px, 40vw); /* tamanho responsivo */
  border-radius: 0%;
  object-fit: cover;
  border: 4px solid var(--secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

#main img:hover {
  transform: scale(1.05);
}

/* === TEXTO === */
.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.about-text h2 {
  color: var(--primary);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.about-text p {
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.8;
  text-align: justify;
  max-width: 600px;
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  #about article {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }

  #about img {
    width: 200px;
    height: 200px;
  }

  .about-text p {
    text-align: center;
  }
}

/* === SEÇÃO VIDEO === */
#video {
  background-color: var(--highlight);
  padding: 4rem 2rem;
  display: flex;
  flex-direction: column; /* organiza título e vídeo em coluna */
  align-items: center;
  justify-content: center;
  gap: 2rem;
  text-align: center;
}

/* Título da seção */
#video h2 {
  font-size: 2rem;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

/* ARTICLE para centralizar o vídeo */
#video article {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

/* === VÍDEO (iframe responsivo) === */
#video iframe {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9; /* mantém proporção de vídeo */
  border-radius: 12px;
  border: 3px solid var(--secondary);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: transform 0.3s ease;
}

/* Efeito suave ao passar o mouse */
#video iframe:hover {
  transform: scale(1.02);
}

/* === RESPONSIVIDADE === */
@media (max-width: 768px) {
  #video {
    padding: 3rem 1rem;
  }

  #video h2 {
    font-size: 1.6rem;
  }

  #video iframe {
    max-width: 100%;
  }
}
/* === Caso eu queira ter toda a  parte do footer com a mesma cor === */

/* === FOOTER === */
footer {
  background-color: var(--primary); /* mesmo fundo da header */
  color: #fff;
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem; /* espaço entre section e h3 */
  text-align: center;
}

/* Section com redes sociais */
footer section {
  display: flex;
  flex-direction: row;      /* ícones em linha */
  justify-content: center;
  align-items: center;
  gap: 1.5rem;              /* espaço entre os ícones */
  margin-bottom: 0;         /* remove margem extra */
  width: 100%;
}

/* Ícones das redes sociais */
footer section a img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: brightness(0) invert(1); /* ícones brancos */
}

/* Hover nos ícones */
footer section a:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 0 6px var(--accent));
}

/* Título/assinatura do footer */
footer h3 {
  font-size: 1rem;
  color: #dbeafe;
  text-align: center;
  font-weight: 500;
  margin-top: 0; /* remove espaço extra acima do h3 */
}
/* === SEÇÃO CONTATO (FORM + MAPA) === */
.main_contato {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap; /* responsivo */
  background-color: var(--highlight);
  padding: 4rem 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 1200px;
  margin: 2rem auto;
}

/* === FORMULÁRIO === */
.main_contato form {
  flex: 1; /* ocupa metade */
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Inputs e textarea */
.main_contato form input,
.main_contato form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  border: 2px solid var(--secondary);
  background-color: #fff;
  font-size: 1rem;
  color: var(--text);
  font-family: "Poppins", sans-serif;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.main_contato form input:focus,
.main_contato form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 5px var(--primary);
  outline: none;
}

.main_contato form textarea {
  resize: vertical;
  min-height: 120px;
}

/* Botão */
.main_contato form button {
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 8px;
  background-color: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.main_contato form button:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
}

/* Span */
.main_contato form span {
  font-size: 0.9rem;
  color: var(--accent);
}

/* === MAPA === */
.article_mapa {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  
}

.article_mapa address {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-style: normal;
  color: var(--text);
}

.article_mapa iframe {
  width: 100%;
  max-width: 500px;
  height: 350px;
  border: 2px solid var(--secondary); /* mesma cor da borda dos inputs */
  border-radius: 8px; /* mesmo arredondamento */
  background-color: #fff; /* fundo branco igual aos campos */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* sombra leve igual aos inputs */
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Efeito ao passar o mouse */
.article_mapa iframe:hover {
  border-color: var(--primary); /* azul mais escuro */
  box-shadow: 0 0 5px var(--primary);
  transform: scale(1.02);
}


/* === RESPONSIVIDADE === */
@media (max-width: 992px) {
  .main_contato {
    flex-direction: column; /* quebra o layout */
    align-items: center;
  }

  .article_mapa iframe {
    width: 100%;
    height: 300px;
  }

  .article_mapa address {
    text-align: center;
  }
}

/* === FORMULÁRIO: FEEDBACK VISUAL === */
form input,
form textarea {
  border: 2px solid var(--secondary);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Campo com erro */
form input.erro,
form textarea.erro {
  border-color: #dc2626; /* vermelho */
  box-shadow: 0 0 6px rgba(220, 38, 38, 0.4);
}

/* Campo válido */
form input.valido,
form textarea.valido {
  border-color: #16a34a; /* verde */
  box-shadow: 0 0 6px rgba(22, 163, 74, 0.4);
}

/* Mensagem de erro */
form span.erro {
    display: block;
    color: #dc2626;
    font-size: 0.875rem; /* reduzido para 14px */
    margin-top: 0.125rem; /* reduzido para 2px */
    margin-bottom: 0.125rem; /* reduzido para 2px */
    padding-left: 0.5rem; /* adiciona um pequeno recuo */
    opacity: 0;
    transform: translateY(-2px); /* reduzido para movimento mais sutil */
    transition: all 0.2s ease;
    line-height: 1.2; /* altura da linha mais compacta */
}

/* Quando ativa */
form span.erro.ativo {
    opacity: 1;
    transform: translateY(0);
}

/* === MENSAGEM DE SUCESSO === */
.mensagem-sucesso {
  display: block;
  text-align: center;
  color: #16a34a; /* verde suave */
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 1rem;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

/* Quando ativa */
.mensagem-sucesso.ativo {
  opacity: 1;
  transform: translateY(0);
}



