/* ------------------------------
   RESET BÁSICO
------------------------------ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.6;
  color: #222;
  background-color: #fff;
  overflow-x: hidden;
}

/* ------------------------------
   HEADER
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: white;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  z-index: 1000;
}

.site-header.scrolled {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.header-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
}

.brand img {
  max-height: 50px;
  width: auto;
}

/* ------------------------------
   NAVEGAÇÃO
------------------------------ */
.primary-nav {
  display: flex;
  gap: 1.5rem;
}

.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.primary-nav a {
  text-decoration: none;
  color: #003366;
  font-weight: 500;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  border: none;
  background: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
}

/* ------------------------------
   HERO / BANNER ROTATIVO
------------------------------ */
.hero-carousel {
  position: relative;
  width: 100%;
  height: 80vh;
  overflow: hidden;
}

.hero-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-carousel .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-carousel .slide.active {
  opacity: 1;
}

.hero-carousel .overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 1rem;
}

.hero-carousel h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-carousel p {
  font-size: 1.25rem;
  max-width: 700px;
  margin: 0 auto;
}

/* ------------------------------
   BOTÕES
------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  transition: 0.3s;
}

.btn-accent {
  background: #e63946;
  color: #fff;
}

.btn-accent:hover {
  background: #c9182b;
}

.btn-ghost {
  border: 2px solid #e63946;
  color: #e63946;
}

.btn-ghost:hover {
  background: #e63946;
  color: #fff;
}

/* ------------------------------
   FOOTER
------------------------------ */
.site-footer {
  background: #003366;
  color: white;
  padding: 2rem 1rem;
  text-align: center;
}

.site-footer a {
  color: #e63946;
  text-decoration: none;
}

/* ------------------------------
   RESPONSIVIDADE
------------------------------ */
@media (max-width: 992px) {
  .primary-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    flex-direction: column;
    background: white;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  }

  .primary-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero-carousel {
    height: 55vh;
  }

  .hero-carousel h1 {
    font-size: 1.8rem;
  }

  .hero-carousel p {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .hero-carousel {
    height: 45vh;
  }

  .hero-carousel h1 {
    font-size: 1.5rem;
  }

  .hero-carousel p {
    font-size: 0.9rem;
  }
}
