/* ──────────────────────────────────────────────────────────────────────────
   ESTILOS GERAIS, RESET E BASES
   ────────────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  width: 100%;
  background: #fff;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

/* ──────────────────────────────────────────────────────────────────────────
   UTILITÁRIOS DE LAYOUT
   ────────────────────────────────────────────────────────────────────────── */
.content-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.desktop-only {
  display: block;
}

.mobile-only {
  display: none;
}

@media (max-width: 1024px) {
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: block !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   COMPONENTES GERAIS (BOTÕES)
   ────────────────────────────────────────────────────────────────────────── */
.btn-blue {
  background: #183EEB;
  color: #fff;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  padding: 14px 32px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.1s ease;
}

.btn-blue:hover {
  opacity: 0.88;
}

.btn-blue:active {
  transform: scale(0.98);
}

/* ──────────────────────────────────────────────────────────────────────────
   CABECALHO E NAVBAR (DESKTOP E MOBILE)
   ────────────────────────────────────────────────────────────────────────── */
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 40px;
  z-index: 1000;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-links {
  display: flex;
  gap: 48px;
  align-items: center;
}

.nav-links button,
.nav-link {
  background: none;
  border: none;
  font-family: 'Roboto', sans-serif;
  font-weight: 500;
  font-size: 20px;
  color: #fff;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.nav-links button:hover,
.nav-link:hover {
  opacity: 0.7;
}

/* Botão Hamburguer */
#hamburger-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 2100;
  padding: 5px;
}

#hamburger-btn .line {
  width: 24px;
  height: 2px;
  background-color: #fff;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#hamburger-btn.open .line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

#hamburger-btn.open .line:nth-child(2) {
  opacity: 0;
}

#hamburger-btn.open .line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Navbar em Telas Menores */
@media (max-width: 1024px) {
  nav {
    padding: 0 20px !important;
    height: 64px !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    transform: none;
    z-index: 2000;
    background: rgba(10, 28, 146, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2);
  }

  .nav-links,
  nav a.btn-blue {
    display: none !important;
  }

  #hamburger-btn {
    display: flex !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   MENU GAVETA MOBILE (DROPDOWN)
   ────────────────────────────────────────────────────────────────────────── */
#mobile-drawer {
  position: fixed;
  top: 64px;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  z-index: 1900;
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 0 0 24px 24px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

#mobile-drawer.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#mobile-drawer .nav-link {
  width: 100%;
  padding: 20px 24px;
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #1D1D1D;
  text-decoration: none;
  background: none;
  border: none;
  border-bottom: 1px solid #F2F2F2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  cursor: pointer;
}

#mobile-drawer .nav-link::after {
  content: '→';
  font-size: 18px;
  opacity: 0.3;
  transition: opacity 0.2s;
}

#mobile-drawer .nav-link:active {
  background: #FAFAFA;
}

/* Destaque para o botão de contato do menu mobile */
#mobile-drawer .nav-link.highlight {
  --highlight-bg: #3a6eff;
  --highlight-text: #ffffff;
  --highlight-arrow: rgba(255, 255, 255, 0.6);
  /*Seta do menu mobile no contato*/

  background: var(--highlight-bg);
  color: var(--highlight-text);
  font-weight: 700;
  border-bottom: none;
  padding: 24px;
  margin-top: 5px;
}

#mobile-drawer .nav-link.highlight::after {
  color: var(--highlight-arrow);
  opacity: 1;
}

/* ──────────────────────────────────────────────────────────────────────────
   RODAPÉ (FOOTER)
   ────────────────────────────────────────────────────────────────────────── */
footer {
  width: 100%;
  background: #ffffff;
  color: #1D1D1D;
  padding: 80px 40px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 40px;
  width: 100%;
}

.footer-links-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-links-column a {
  transition: opacity 0.2s ease;
}

@media (max-width: 1024px) {
  footer {
    padding: 60px 20px !important;
  }

  .footer-content {
    flex-wrap: wrap;
    justify-content: center !important;
    align-items: flex-start !important;
    gap: 32px !important;
  }
}

/* ──────────────────────────────────────────────────────────────────────────
   BOTÃO VOLTAR AO TOPO (BACK TO TOP)
   ────────────────────────────────────────────────────────────────────────── */
#back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: #183EEB;
  border-radius: 50%;
  border: 2px solid #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateY(10px);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #0A1C92;
  transform: scale(1.1);
}

#back-to-top svg {
  width: 24px;
  height: 24px;
}