/* Estilos base (desktop primeiro) */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  line-height: 1.6;
  color: #333;
}

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

.container {
  width: 90%;
  max-width: 1100px;
  margin: auto;
}

header {
  background: #003366;
  color: white;
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  height: 60px;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: white;
  gap: 10px;
}

.logo img {
  height: 40px;
  width: auto;
}

header nav a {
  color: white;
  text-decoration: none;
  margin-left: 20px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

header nav a:hover {
  color: #ffcc00;
  transform: translateY(-3px);
}

.hero {
  background: url(./imagens/fundo2.png) no-repeat center center/cover;
  color: white;
  text-align: center;
  padding: 200px 20px;
}

.hero h2 {
  font-size: clamp(1.8rem, 5vw, 2.5rem);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.6);
}

.btn {
  background: #ff9900;
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn:hover {
  background: #cc7a00;
  transform: scale(1.05);
}

.botoes {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.sobre,
.servicos,
.contactos {
  padding: 60px 0;
}

.servicos-grid {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 20px;
  justify-content: center;
}

.card {
  background: #f4f4f4;
  padding: 20px;
  border-radius: 10px;
  min-width: 250px;
  flex: 1 1 250px;
  max-width: 300px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  transition: transform 0.4s ease, box-shadow 0.4s ease, filter 0.4s ease;
}

.card:hover {
  transform: translateY(-5px) scale(1.10);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
  filter: brightness(0.9) grayscale(10%);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-bottom: 10px;
}

.redes a {
  display: inline-block;
  margin: 10px 10px 0 0;
  color: #003366;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  transition: color 0.3s ease, transform 0.3s ease;
}

.redes a:hover {
  color: #ff9900;
  transform: translateY(-3px);
}

.redes a::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  background: #ff9900;
  bottom: -3px;
  left: 0;
  transition: width 0.3s ease;
}

.redes a:hover::after {
  width: 100%;
}

footer {
  background: #003366;
  color: white;
  text-align: center;
  padding: 20px;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

.imagens-destaque {
  display: flex;
  gap: 100px;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
  flex-wrap: wrap;
}

.imagem-item {
  text-align: center;
  max-width: 200px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.imagem-item img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.4s ease, filter 0.4s ease;
}

.imagem-item:hover img {
  transform: scale(1.1);
  filter: grayscale(40%) brightness(0.9);
}

.imagem-item p {
  margin-top: 10px;
  font-weight: 500;
  color: #000000;
}

.card,
.imagem-item {
  will-change: transform;
}

/* ========== 🔽 RESPONSIVO ========== */
@media (max-width: 768px) {
  header .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    height: 60px;
  }

  .logo h1 {
    font-size: 1.2rem;
  }

  .logo img {
    height: 30px;
  }

  .botoes {
    flex-direction: column;
    gap: 20px;
  }

  .servicos-grid,
  .imagens-destaque {
    flex-direction: column;
    align-items: center;
  }

  .card {
    width: 100%;
    max-width: 90%;
  }

  .hamburger {
    display: flex;
  }

  header nav {
    display: none;
    flex-direction: column;
    background: #003366;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    padding: 10px 0;
    border-radius: 0 0 0 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  }

  header nav.show {
    display: flex;
  }

  header nav a {
    padding: 12px 20px;
    margin: 0;
    border-bottom: 1px solid #004080;
  }
}

@media (max-width: 500px) {
  .hero {
    padding: 120px 20px;
  }

  .hero h2 {
    font-size: 1.8rem;
  }
}

/* Botão Hamburger */
.hamburger {
  display: auto;
  flex-direction: column;
  justify-content: space-around;
  width: 25px;
  height: 25px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 2000;
}

.hamburger span {
  width: 100%;
  height: 3px;
  background: white;
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* Reveal Animations */
.reveal {
  opacity: 0;
  transform: translateY(50px) scale(1);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.reveal.visivel {
  opacity: 1;
  transform: none;
}
