
/* RESET */
* { margin: 0; padding: 0; box-sizing: border-box; }

/* BASE */
body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  background: #f0f0f5;
  color: #1B4B91;
  text-align: center;
  scroll-behavior: smooth;
}

/* CONTAINER */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  text-align: left;
}

/* HEADER */
.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
  position: relative;
  z-index: 10;
  background: transparent;
  transition: background 0.3s, padding 0.3s;
}
header.scrolled {
  background: #fff;
  padding: 8px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* LOGO */
.logo img {
  display: block;
  max-height: 48px;
  width: auto;
}

/* NAV */
.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: #1B4B91;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover { color: #0056B3; }

/* ===== BANNER (sem overlay/shader) =====
   Mantive o banner como bloco flex-centered, sem pseudo-overlay.
   Para legibilidade, uso sombra de texto na .banner-overlay.
*/
.Banner {
  width: 100%;
  min-height: 340px;
  background-image: url('img/bannerSite.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
  margin-bottom: 3rem;

  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* garante que qualquer conteúdo interno fique visível sobre a imagem */
.Banner > * {
  position: relative;
  z-index: 1;
}

/* Conteúdo do banner — sem shader, texto com sombra para legibilidade */
.banner-overlay {
  background: transparent;
  padding: 1.25rem 1.5rem;
  border-radius: 10px;
  color: #fff;
  text-align: center;
  max-width: 92%;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06); /* sutil profundidade opcional */
  -webkit-font-smoothing: antialiased;
}
.banner-overlay h1 {
  font-size: 2.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.08;
  text-shadow: 0 8px 20px rgba(0,0,0,0.45); /* sombra de texto para contraste */
}
.banner-overlay p {
  font-size: 1.05rem;
  margin: 0;
  text-shadow: 0 6px 14px rgba(0,0,0,0.42);
}

/* ===== HERO (reduz espaço em branco, especialmente no mobile) =====
   Observação: a seção .hero herda estilos de .section. Aqui sobrescrevemos apenas
   para evitar espaço vazio quando estiver vazia ou em telas pequenas.
*/
.hero {
  /* menos padding que .section padrão para evitar "buraco" */
  padding: 1.5rem 0;
  min-height: auto; /* evita alturas grandes */
  display: flex;
  align-items: center; /* centraliza conteúdo verticalmente quando houver */
  justify-content: center;
  gap: 0;
}

/* Se o conteúdo da hero estiver vazio, mantém altura mínima muito pequena */
.hero .hero-content {
  width: 100%;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 0;
}

/* ===== SECTIONS (padrão para outras seções) ===== */
.section {
  padding: 3rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  opacity: 0;
  transform: translateY(50px);
  transition: all 0.8s ease-out;
}
.section.visible { opacity: 1; transform: translateY(0); }
.section h2 {
  font-size: 2rem;
  background: linear-gradient(90deg, #1B4B91, #0056B3);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  margin-bottom: 1.5rem;
}
.section p {
  font-size: 1rem;
  color: #555;
  line-height: 1.6;
  text-align: center;
  max-width: 800px;
}

/* CARDS */
.cards {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.card {
  flex: 1 1 250px;
  background: #fff;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
  text-align: center;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.6s ease;
  opacity: 0;
  transform: translateY(50px);
}
.card.visible {
  opacity: 1;
  transform: translateY(0);
}
.card h3 { font-size: 1.4rem; margin-bottom: 0.8rem; color:#1B4B91; }
.card p { font-size: 1rem; color:#555; line-height:1.5; }
.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

/* CONTATO */
#contato .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 520px;
  width: 100%;
}
.contact-form input,
.contact-form textarea {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
}
.btn {
  padding: 0.8rem 1.5rem;
  border: none;
  border-radius: 8px;
  background: #1B4B91;
  color: #fff;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.btn:hover { background: #0056B3; transform: translateY(-2px); }

/* FOOTER */
footer {
  padding: 2rem 0;
  background: #1B4B91;
  color: #fff;
  text-align: center;
}

/* BOTÃO VOLTAR AO TOPO */
#backToTop {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: #1B4B91;
  color: #fff;
  border: none;
  padding: 0.8rem 1rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  box-shadow: 0 6px 15px rgba(0,0,0,0.2);
  transition: background 0.3s, transform 0.3s;
  z-index: 1000;
}
#backToTop:hover { background: #0056B3; transform: translateY(-3px); }

/* ===== Responsivo: tablets / mobile ===== */
@media (max-width: 992px) {
  .Banner { min-height: 300px; padding: 2.5rem 1rem; }
  .banner-overlay h1 { font-size: 1.9rem; }
  .banner-overlay p { font-size: 1rem; }
}

@media (max-width: 768px) {
  .logo img { max-height: 40px; }

  /* Banner menor no mobile para reduzir espaço acumulado */
  .Banner {
    min-height: 220px;
    padding: 1.5rem 0.75rem;
    background-position: center top; /* prioriza a parte superior da imagem */
    margin-bottom: 1.5rem; /* reduz espaço entre Banner e hero no mobile */
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
    box-shadow: 0 8px 28px rgba(0,0,0,0.06);
  }

  .banner-overlay {
    padding: 1rem 1rem;
    max-width: 95%;
  }
  .banner-overlay h1 { font-size: 1.6rem; }
  .banner-overlay p { font-size: 0.95rem; }

  /* Hero com padding ainda menor no mobile */
  .hero {
    padding: 0.6rem 0;
    min-height: auto;
  }
  .hero .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .nav-links { display: none; }
  .nav-links.nav-active {
    display: flex;
    flex-direction: column;
    background: #fff;
    padding: 1rem;
    position: absolute;
    right: 20px;
    top: 64px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  }
  .cards { flex-direction: column; gap: 1rem; }
}

/* pequenos telefones */
@media (max-width: 420px) {
  .Banner { min-height: 180px; padding: 1rem 0.6rem; margin-bottom: 1rem; }
  .banner-overlay { padding: 0.85rem 0.85rem; }
  .banner-overlay h1 { font-size: 1.25rem; }
  .banner-overlay p { font-size: 0.9rem; }

  .hero { padding: 0.35rem 0; }
  .hero .hero-content { padding: 0; }
}

/* Centralização dos textos das seções */
.section .container { text-align: center; }
.section p {
  text-align: center;
  margin: 0 auto;
  max-width: 800px;
  color: #555;
  line-height: 1.6;
}