html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  font-family: 'Poppins', Arial, sans-serif;
}

section {
  scroll-margin-top: 120px;
}

/* --- HEADER GERAL --- */
.main-header {
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  z-index: 1030;
}

/* Mantém sticky e visível acima de tudo */
.main-header.sticky-top {
  top: 0;
}

/* --- LOGO --- */
.logo {
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

/* Ícone do botão do menu (hambúrguer) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* --- OFFCANVAS (MENU MOBILE) --- */
.offcanvas {
  background-color: #fff;
}

.offcanvas .nav-link {
  font-size: 1.2rem;
  margin: 0.5rem 0;
  color: #333;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.offcanvas .nav-link:hover {
  background-color: #f8f9fa;
  border-radius: 5px;
  color: #050986;
}

.border-primary {
  border-color: #050986 !important;
}

/* --- MENU DESKTOP PERSONALIZADO --- */
.main-menu .nav-link {
  position: relative;
  color: #333;
  font-weight: 500;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, transform 0.3s ease;
  padding-bottom: 5px;
}

/* Efeito de sublinhado animado */
.main-menu .nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0%;
  background-color: #050986;
  transition: width 0.3s ease;
}

/* Hover */
.main-menu .nav-link:hover {
  color: #050986;
  transform: translateY(-2px);
}

.main-menu .nav-link:hover::after {
  width: 100%;
}

/* Ativo */
.main-menu .nav-link.active {
  color: #050986;
  font-weight: 600;
}

.main-menu .nav-link.active::after {
  width: 100%;
  background-color: #050986;
}

/* --- BOTÃO MENU MOBILE --- */
.navbar-toggler {
  background: transparent;
  outline: none;
  box-shadow: none;
}

/* Ícone do menu (hambúrguer) */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.8%29' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 30px;
  height: 30px;
}

/* --- CORREÇÃO DO SCROLL TAPAR O TÍTULO --- */
section {
  scroll-margin-top: 120px;
  /* Altura aproximada do header */
}

/* --- ESTILO GLOBAL DE TÍTULOS --- */
h1,
h2,
h3,
h4,
h5,
h6,
i {
  color: #050986 !important;
}

footer {
  background-color: #050986 !important;
}

/* Padrão global: logo nunca estica além do container */
.logo {
  max-width: 100% !important;
  height: auto !important;
}

form div > input, form div > textarea {
  border-color:#050986 !important;
  border-width: 2px !important;
  border-radius: 20px !important;
}

form div > label {
  color:#050986 !important;
  font-weight: bold !important;
}

/* MOBILE até 575.98px */
@media (max-width: 575.98px) {
  section {
    scroll-margin-top: 90px;
    /* Header menor em mobile */
  }

  .logo {
    max-width: 75% !important;
  }
}

/* 576px até 767.98px */
@media (min-width: 576px) and (max-width: 767.98px) {
  section {
    scroll-margin-top: 90px;
    /* Header menor em mobile */
  }

  .logo {
    max-width: 75% !important;
  }
}

/* 768px até 1199.98px */
@media (min-width: 768px) and (max-width: 1199.98px) {
  section {
    scroll-margin-top: 90px;
    /* Header menor em mobile */
  }

  .logo {
    max-width: 100% !important;
  }
}

/* 1200px+ */
@media (min-width: 1200px) {
  section {
    scroll-margin-top: 90px;
    /* Header menor em mobile */
  }

  .logo {
    max-width: 25% !important;
  }
}

@media (min-width: 992px) {
  .main-menu {
    gap: 2rem;
  }
}