/* Reset e base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Outfit', sans-serif;
  background: linear-gradient(to bottom, #383838, #1c1c1c);
  color: #fff;
  line-height: 1.6;
}
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  background-color: #1c267e;
  padding: 1rem 0;
}
header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  height: 60px;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 2rem;
}
nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
nav a:hover {
  color: #f18419;
}

/* Hero */
.hero {
  background: linear-gradient(90deg, #1c267e 20%, #f18419 80%);
  padding: 6rem 0;
  text-align: center;
  color: #fff;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.btn-primary {
  background: #f18419;
  color: #fff;
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.btn-primary:hover {
  background: #ffa842;
}

/* Seções */
.section {
  padding: 4rem 0;
}
.section h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #f18419;
  text-align: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

/* Card de serviços */
.card {
  background: #1c267e;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.3);
  text-align: center;
}
.card h3 {
  color: #f18419;
  margin-bottom: 1rem;
}

/* Footer */
footer {
  background-color: #1c267e;
  padding: 1.5rem 0;
  text-align: center;
  color: #ccc;
  font-size: 0.9rem;
}
p{
  text-align: center;
}
.slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.slides {
  display: flex;
  transition: transform 0.5s ease-in-out;
}

.slides img {
  width: 100%;
  flex-shrink: 0;
  border-radius: 12px;
  user-select: none;
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(30,30,80,0.7);
  color: #f18419;
  border: none;
  font-size: 2rem;
  padding: 0 0.6rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background-color 0.3s;
}

.prev:hover, .next:hover {
  background-color: #f18419;
  color: #1c267e;
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}


/* Esconder botão toggle no desktop */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
}

/* Barrinhas do hamburger */
.menu-toggle .bar {
  width: 25px;
  height: 3px;
  background-color: #fff;
  border-radius: 2px;
  transition: 0.3s;
}

/* Estilos do nav no desktop */
nav ul {
  display: flex;
  gap: 2rem;
}

/* Mobile - responsividade */
@media (max-width: 768px) {
  nav ul {
    display: none; /* esconde o menu por padrão */
    flex-direction: column;
    background-color: #1c267e;
    position: absolute;
    top: 60px; /* logo + header altura */
    right: 0;
    width: 200px;
    border-radius: 0 0 0 12px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.5);
  }
  nav ul.active {
    display: flex;
  }

  /* Mostrar o botão toggle */
  .menu-toggle {
    display: flex;
  }
}










/* Posicionando o botão toggle no canto superior direito do header */
header {
  position: relative; /* necessário para referência do absolute */
}

.menu-toggle {
  display: none; /* continua escondido no desktop */
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;

  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  z-index: 1000; /* fica acima do menu */
}

/* Mobile */
@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }
  
  nav ul {
    display: none;
    flex-direction: column;
    background-color: #1c267e;
    position: absolute;
    top: 60px;
    right: 0;
    width: 200px;
    border-radius: 0 0 0 12px;
    box-shadow: -2px 2px 10px rgba(0,0,0,0.5);
    z-index: 999;
  }
  nav ul.active {
    display: flex;
  }
}
