:root {
  --azul: #0b1227;
  --amarelo: #f8b400;
  --cinza: #f7f7f7;
  --trans: all 0.4s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  scroll-behavior: smooth;
  color: #333;
}

/* NAVBAR */
.navbar {
  position: fixed;
  width: 100%;
  background: rgba(11, 18, 39, 0.9);
  backdrop-filter: blur(8px);
  z-index: 100;
  transition: var(--trans);
}

.navbar.scrolled {
  background: var(--azul);
}

.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 10%;
}

.logo {
  height: 80px;
}

.navbar ul {
  list-style: none;
  display: flex;
  gap: 25px;
}

.navbar a {
  color: #fff;
  text-decoration: none;
  transition: var(--trans);
  font-weight: 500;
}

.navbar a:hover {
  color: var(--amarelo);
}

.navbar a.active {
  color: var(--amarelo);
  border-bottom: 2px solid var(--amarelo);
  padding-bottom: 2px;
  transition: var(--trans);
}

.btn-nav {
  background: var(--amarelo);
  color: var(--azul);
  padding: 8px 16px;
  border-radius: 5px;
  font-weight: 600;
}

/* HERO */
.hero {
  height: 110vh;
  background: url("img/bg-hero.png") center/cover no-repeat;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-align: center;
}

.hero .overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 18, 39, 0.7);
  animation: fadeIn 1.2s ease-in-out forwards;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center; /* Centraliza verticalmente */
  height: 100%;
}

.hero h1 {
  font-size: 4rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
}

.hero span {
  color: var(--amarelo);
}

.btn-cta {
  background: var(--amarelo);
  color: var(--azul);
  padding: 20px 34px;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.3s ease, background 0.3s ease;
  margin-top: 20px;
}

.btn-cta:hover {
  background: #e6a700;
  transform: translateY(-4px);
}

/* SOBRE */
.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

.sobre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 100px 0;
  flex-wrap: wrap;
}

.sobre-texto h2 {
  color: var(--azul);
  margin-bottom: 15px;
}

.sobre-texto p {
  margin-bottom: 15px;
  line-height: 1.6;
}

.sobre-img img {
  width: 100%;
  max-width: 500px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
  transition: var(--trans);
}

.sobre-img img:hover {
  transform: scale(1.03);
}

/* SERVIÇOS */
.servicos {
  background: var(--cinza);
  text-align: center;
  padding: 20px 0;
}

.servicos h2 {
  margin-bottom: 50px;
  color: var(--azul);
}

.cards {
  display:flex;
  gap: 50px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 15px;
  width: 500px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: var(--trans);
}

.card:hover {
  transform: translateY(-8px);
}

.card img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 15px;
}

.card h3 {
  color: var(--amarelo);
  margin-bottom: 10px;
}

/* CONTATO */
.contato {
  background: #fff;
  text-align: center;
  padding: 100px 0;
}

.contato form {
  max-width: 600px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.grid {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

input, textarea {
  width: 100%;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

button {
  background: var(--azul);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--trans);
}

button:hover {
  background: var(--amarelo);
  color: var(--azul);
}

#formMsg {
  margin-top: 10px;
  font-weight: 600;
}

/* FOOTER */
footer {
  background: var(--azul);
  color: #fff;
  text-align: center;
  padding: 25px 0;
  font-size: 0.9rem;
}

/* ANIMAÇÕES */
[data-anim] {
  opacity: 0;
  transform: translateY(40px);
  transition: 0.8s ease;
}

[data-anim].show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .sobre {
    flex-direction: column;
    text-align: center;
  }

  .navbar .container {
    flex-direction: column;
  }

  .hero h1 {
    font-size: 2.2rem;
  }
}
html {
  scroll-behavior: smooth;
}