* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #002147; /* Azul escuro principal */
  --secondary-color: #004481; /* Azul secundário */
  --accent-color: #ffc107; /* Amarelo (opcional para destaque) */
  --text-color: #333333;
  --bg-light: #f4f7f9;
  --bg-dark: #e9ecef;
  --font-family: "Poppins", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: #ffffff;
  line-height: 1.6;
}

h1,
h2,
h3 {
  color: var(--primary-color);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ------------------- */
/* CABEÇALHO E NAVEGAÇÃO */
/* ------------------- */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--primary-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.logo a {
  color: white;
  font-weight: 700;
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
}

.navigation {
  flex-grow: 1;
  text-align: right;
}

.nav-list {
  list-style: none;
  display: flex;
  justify-content: flex-end;
  gap: 2rem;
}

.nav-list a {
  text-decoration: none;
  color: white;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-list a:hover {
  color: var(--accent-color);
}

/* ------------------- */
/* BOTÕES (BTNS) */
/* ------------------- */
.btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  display: inline-block;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-primary:hover {
  background-color: #005f9c;
}

.btn-secondary {
  background-color: #f0f0f0;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ------------------- */
/* SEÇÃO HERO (HOME) */
/* ------------------- */
.hero {
  min-height: 80vh;
  background: linear-gradient(rgba(0, 33, 71, 0.7), rgba(0, 33, 71, 0.7)),
    url("images/ponte.webp") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  padding: 2rem;
}

.hero-content h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: white;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.5rem);
  margin-bottom: 2rem;
}

/* ------------------- */
/* SEÇÃO SOBRE NÓS */
/* ------------------- */
.about-us {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  padding: 4rem 2rem;
  gap: 3rem;
  background-color: var(--bg-light);
}

.about-text {
  flex: 1 1 500px;
}

.about-text h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.about-image {
  flex: 1 1 300px;
  text-align: center;
}

.about-image img {
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 100%;
}

/* ------------------- */
/* SEÇÃO SERVIÇOS */
/* ------------------- */
.services {
  padding: 4rem 2rem;
  text-align: center;
  background-color: white;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 3rem;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.service-card {
  background: var(--bg-light);
  border: 1px solid var(--bg-dark);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
  color: var(--secondary-color);
}

.service-card p {
  font-size: 1rem;
  color: #555;
}

.cta-services {
  margin-top: 3rem;
  text-align: center;
}

/* ------------------- */
/* SEÇÃO CONTATO */
/* ------------------- */
.contact {
  padding: 4rem 2rem;
  text-align: center;
  background-color: var(--bg-dark);
}

.contact p {
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ------------------- */
/* RODAPÉ (FOOTER) */
/* ------------------- */
.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 2rem;
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-info p {
  font-size: 0.9rem;
  color: #a0aec0;
}

/*  links do rodapé */
.footer-info p a {
  color: #a0aec0;
  text-decoration: underline;
  transition: color 0.3s ease;
}

.footer-info p a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* botão flutuante do WhatsApp */
.whatsapp-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn img {
  width: 35px;
  height: 35px;
}

/*  seção de contato */
.contact {
  text-align: center;
}

/*formulário */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 600px;
  margin: 0 auto;
  background-color: #f5f5f5;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-size: 16px;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

/* botão de envio */
.contact-form .btn-primary {
  width: auto;
  align-self: flex-start;
  padding: 12px 30px;
  border: none;
  cursor: pointer;
}

/* ------------------- */

/* ------------------- */
@media (max-width: 768px) {
  .header {
    flex-direction: column;
    text-align: center;
    padding: 1rem;
  }

  .logo {
    margin-bottom: 1rem;
  }

  .navigation {
    width: 100%;
  }

  .nav-list {
    flex-direction: column;
    gap: 1rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .about-us,
  .about-image {
    flex-direction: column;
  }

  .footer-content {
    flex-direction: column;
    gap: 1rem;
  }

  .footer-logo {
    margin-bottom: 1rem;
  }
}
