/* RESET E BASE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', sans-serif;
  background-color: #f5f7fa;
  color: #333;
}

/* TOPO SUPERIOR */
.top-bar {
  background-color: #b4e400;
  color: #fff;
  font-size: 14px;
  padding: 8px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .left span,
.top-bar .right span {
  margin-right: 20px;
}

.top-bar a {
  color: #fff;
  text-decoration: none;
  margin-left: 10px;
}

/* CABEÇALHO */
header {
  background-color: #ffffff;
  padding: 20px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #eee;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  height: 75px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

nav {
  display: flex;
  gap: 30px;
}

nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  position: relative;
}

nav a::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: #00b300;
  transition: width 0.3s ease;
}

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

nav a:hover {
  color: #00b300;
}

/* HERO */
.hero {
  background-color: #dceefc;
  padding: 100px 40px 120px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-wrap: wrap;
  max-width: 1200px;
  gap: 50px;
  align-items: center;
  justify-content: space-between;
}

.hero .text {
  flex: 1 1 500px;
  animation: fadeInLeft 1s ease forwards;
}

.hero .text h1 {
  font-size: 36px;
  color: #003366;
  margin-bottom: 20px;
}

.hero .text p {
  font-size: 18px;
  color: #333;
  line-height: 1.6;
  margin-bottom: 25px;
}

.btn-hero {
  background-color: #007bff;
  color: #fff;
  padding: 12px 25px;
  font-size: 16px;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-hero:hover {
  background-color: #005bb5;
}

.hero .img {
  flex: 1 1 500px;
  text-align: center;
  animation: fadeInRight 1s ease forwards;
}

.hero .img img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

/* SOBRE */
.sobre {
  background-color: #ffffff;
  padding: 120px 40px 150px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.sobre::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 0%;
  height: 6px;
  background: linear-gradient(to right, #f5b164, #f9d27f);
  transform: translateX(-50%);
  animation: expandBar 1.5s ease-out forwards;
}

@keyframes expandBar {
  from { width: 0%; }
  to { width: 80%; }
}

.sobre h2 {
  font-size: 36px;
  color: #003366;
  margin-bottom: 25px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out 0.5s forwards;
}

.sobre p {
  font-size: 19px;
  line-height: 1.7;
  max-width: 900px;
  margin: 0 auto;
  color: #444;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 1s ease-out 0.8s forwards;
}

/* SERVIÇOS */
.servicos {
  background: #eaf6ff;
  padding: 120px 40px 140px;
  text-align: center;
}

.servicos h2 {
  font-size: 32px;
  color: #003366;
  margin-bottom: 50px;
  position: relative;
  display: inline-block;
  animation: fadeDown 1s ease;
}

.cards {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 40px;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  width: 240px;
  padding: 20px;
  transition: all 0.4s ease;
  animation: fadeUp 0.8s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
}

.card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 12px;
}

.card h3 {
  font-size: 18px;
  color: #003366;
  margin-bottom: 10px;
}

.btn-saiba {
  display: inline-block;
  margin-top: 10px;
  background-color: #007bff;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
  transition: background 0.3s ease;
}

.btn-saiba:hover {
  background-color: #0056b3;
}

/* RODAPÉ */
footer {
  background-color: #b4e400;
  color: #fff;
  text-align: center;
  padding: 30px 20px;
  font-size: 14px;
}

footer .social img {
  width: 30px;
  margin: 0 10px;
  vertical-align: middle;
}

/* BOTÕES DE AUTENTICAÇÃO NO HEADER */
.nav-btn {
  background-color: #007bff;
  color: #fff;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.3s ease;
}

.nav-btn:hover {
  background-color: #005bb5;
}

.nav-login {
  background-color: #28a745;
  margin-left: 10px;
}

.nav-login:hover {
  background-color: #1e7e34;
}
.extras {
  background: #f8fbff;
  padding: 60px 20px;
  text-align: center;
}

.extras h2 {
  font-size: 28px;
  margin-bottom: 10px;
  color: #333;
}

.extras p {
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto 30px;
  color: #555;
}

.extras-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.card-extra {
  background: white;
  padding: 25px 20px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  width: 280px;
  text-align: left;
}

.card-extra h3 {
  margin-top: 0;
  color: #4CAF50;
}

.card-extra p {
  font-size: 14px;
  color: #444;
  margin-bottom: 15px;
}

.btn-extra {
  display: inline-block;
  background: #4CAF50;
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background 0.3s ease;
}

.btn-extra:hover {
  background: #3e9445;
}




/* ANIMAÇÕES */
@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
