@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap");
/* --- RESET BÁSICO E ESTILOS GLOBAIS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Roboto", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: #ffffff;
  color: #333333;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

h1,
h2,
h3 {
  color: #073376;
  font-weight: 700;
}

h2 {
  font-size: 2.5rem;
  text-align: center;
  margin-bottom: 50px;
  font-weight: 900;
}

section {
  padding: 80px 0;
}

.cta-button {
  display: inline-block;
  background-color: #ffcc33;
  color: #073376;
  padding: 15px 35px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  text-transform: uppercase;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-top: 20px;
}
.cta-button:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* --- CABEÇALHO (HEADER) --- */
.header {
  background-color: rgba(255, 255, 255, 0.9);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: 15px 0;
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.header .logo {
  max-height: 50px;
}
.header .nav-menu ul {
  list-style: none;
  display: flex;
  gap: 30px;
}
.header .nav-menu a {
  text-decoration: none;
  color: #073376;
  font-weight: 700;
  position: relative;
  padding-bottom: 5px;
}
.header .nav-menu a::after {
  content: "";
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background-color: #ffcc33;
  transition: width 0.3s ease;
}
.header .nav-menu a:hover::after {
  width: 100%;
}

/* --- SEÇÃO HERO --- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #ffffff;
  padding-top: 80px;
}
.hero .hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("/static/img/hero.jpg");
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(6, 18, 30, 0.6);
  z-index: -1;
}
.hero .hero-content {
  max-width: 800px;
}
.hero .hero-content h1 {
  font-size: 4rem;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}
.hero .hero-content p {
  font-size: 1.5rem;
  margin: 20px 0 40px;
  color: #ffffff;
  font-weight: 400;
}

/* --- SEÇÃO SERVIÇOS --- CORRIGIDO --- */
.services {
  background-color: #f4f4f4;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: #ffffff;
  text-align: center;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden; /* Crucial: Garante que nada "vaze" para fora do card */
  padding: 0; /* Remove o padding antigo que estava empurrando a imagem */
}
.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* Novas regras para a imagem e o conteúdo de texto */
.service-card .card-image-container {
  position: relative;
  width: 100%;
  height: 160px; /* Define a altura fixa da "capa" */
}
.service-card .card-image-container img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Faz a imagem preencher o espaço sem distorcer */
  border: 10px solid #ffffff; /* Adicionamos a borda branca */
}
.service-card .card-content {
  padding: 30px; /* Adiciona o espaçamento apenas ao redor do texto */
}
.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}
.service-card p {
  color: #a6a6a6;
  line-height: 1.6;
}

/* --- SEÇÃO PROJETOS (PORTFÓLIO) --- */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.project-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}
.project-item img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.project-item .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(7, 51, 118, 0.9), transparent);
  padding: 40px 20px 20px;
  color: #ffffff;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.project-item .overlay h4 {
  color: #ffffff;
  font-size: 1.3rem;
}
.project-item .overlay p {
  color: #ffffff;
  opacity: 0.8;
  font-size: 0.9rem;
}
.project-item:hover img {
  transform: scale(1.1);
}
.project-item:hover .overlay {
  transform: translateY(0);
}

/* --- SEÇÃO SOBRE --- */
.about {
  background-color: #f4f4f4;
}
.about .container {
  display: flex;
  align-items: center;
  gap: 50px;
}
.about .about-text {
  flex: 1;
}
.about .about-text p {
  text-align: justify;
}
.about .about-text p {
  line-height: 1.8;
  margin-bottom: 20px;
  color: #333333;
}
.about .about-image {
  flex: 1;
}
.about .about-image img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- SEÇÃO CONTATO --- */
.contact-form {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 15px;
  border: 1px solid #a6a6a6;
  border-radius: 5px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #073376;
}
.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

/* --- ESTILO PARA A INFORMAÇÃO DO FORMPOREE --- */
.form-provider-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px; /* Espaço entre "Envio protegido por" e o logo */
  margin-top: 20px; /* Espaço abaixo do botão "Enviar" */
  width: 100%;
}

.form-provider-info span {
  font-size: 0.8rem; /* Tamanho de fonte menor */
  color: #a6a6a6; /* Cinza sutil (o mesmo dos parágrafos dos cards) */
}

.form-provider-info a {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333333; /* Cor do texto principal */
  transition: color 0.3s ease;
}

.form-provider-info a:hover {
  color: #073376; /* Cor primária ao passar o mouse */
}

.form-provider-info img {
  height: 25px; /* Deixa o ícone pequeno e discreto */
  width: auto;
  margin-right: 5px; /* Espaço entre o ícone e a palavra "Formspree" */
}

/* --- RODAPÉ (FOOTER) --- */
.footer {
  background-color: #073376;
  color: #ffffff;
  padding: 50px 0;
  text-align: center;
}
.footer .logo-footer {
  max-height: 60px;
  margin-bottom: 20px;
  filter: brightness(0) invert(1);
}
.footer .social-icons {
  margin: 20px 0;
}
.footer .social-icons a {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0 15px;
  transition: color 0.3s ease;
}
.footer .social-icons a:hover {
  color: #ffcc33;
}
.footer .footer-contact p {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.8);
}
.footer .copyright {
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
  color: #a6a6a6;
  font-size: 0.9rem;
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 992px) {
  h2 {
    font-size: 2.2rem;
  }
  .hero .hero-content h1 {
    font-size: 3rem;
  }
  .about .container {
    flex-direction: column;
  }
}
@media (max-width: 768px) {
  .header .nav-menu {
    display: none;
  }
  .portfolio-grid {
    grid-template-columns: 1fr 1fr;
  }
  .about .container {
    text-align: center;
  }
}
@media (max-width: 576px) {
  section {
    padding: 60px 0;
  }
  h2 {
    font-size: 1.8rem;
  }
  .hero .hero-content h1 {
    font-size: 2.5rem;
  }
  .hero .hero-content p {
    font-size: 1.2rem;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
}
