:root {
  --border-radius: 0.3rem !important;
}

/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  transition: background-color 1s ease, transform 0.8s ease;
}

/* Suavizar o scroll */
html {
  scroll-behavior: smooth;
}

/* Cores auxiliares para destaques em azul */
.azul {
  color: #58a2f7;
}

.azul2 {
  color: #296bb6;
  font-size: 2.5rem;
}

/* Garante que o layout não transborde horizontalmente */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.ha20anos {
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Define a fonte principal, cor de fundo e cor do texto padrão */
body {
  font-family: 'Inter', sans-serif;
  color: #1e1e2f;
  background-color: #00005e;
  line-height: 1.6;
}

/* Navbar mobile */
.mobile-navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #011536;
  padding: 10px 16px;
  position: fixed;
  top: 0;
  width: 100%;
  max-width: 100%;
  z-index: 1001;
  transition: transform 0.3s ease;
  transform: translateY(-100%);
}

.mobile-navbar .navbar-logo {
  display: flex;
  align-items: center;
}

.mobile-navbar .navbar-logo img {
  height: 40px;
  width: auto;
}

.mobile-navbar .menu-toggle {
  background-color: #082962;
  border-radius: var(--border-radius);
  color: white;
  font-size: 20px;
  padding: 7px 12px;
  cursor: pointer;
  text-align: left;
  line-height: 1;
  display: flex;
  align-items: center;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: -100%;
  left: 0;
  width: 100%;
  background-color: #082962;
  transition: top 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.mobile-menu.active {
  top: 60px;
}

.mobile-menu-header {
  padding: 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-logo {
  width: 120px;
  height: auto;
}

.mobile-menu span {
  color: white;
  padding: 10px 0px;
  text-decoration: none;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-align: left;
}

/* Hide menu and navbar on desktop */
@media (min-width: 769px) {
  .mobile-navbar {
    display: none;
  }

  .mobile-menu {
    display: none;
  }
}

/* Ensure no desktop menu exists */
nav,
.menu-container,
.menu-container ul,
.menu-container li,
.menu-container a {
  display: none !important;
}

/* Container genérico com largura máxima para centralizar o conteúdo */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 0;
}

/* Títulos principais */
h1,
.about-title,
.services-title,
.process-steps-horizontal h2 {
  font-size: 2.5rem;
}

h3,
h4 {
  font-size: 1.25rem;
}

.services-subtitle,
.process-subtitle,
.hero .small-title {
  font-size: 1.125rem;
}

p,
.about-description,
.hero .description,
.modal-text,
.card p,
.footer-description,
.modal-contact ul li {
  font-size: 1rem;
}

/* HERO SECTION - imagem de fundo com título, descrição e botões */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  padding: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  color: #f8f9fc;
  margin-top: 10px;
}

.hero .small-title {
  color: azure;
}

.hero .description {
  margin-bottom: 30px;
  color: azure;
}

/* Botões da hero section */
.hero-buttons {
  display: flex;
  gap: 20px;
}

.hero .btn {
  padding: 12px 24px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.btn.secondary {
  background-color: white;
  color: #7c7c7c;
}

.btn {
  padding: 12px 24px;
  border: none;
  font-weight: bold;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.btn-abrir-modal {
  margin-top: 20px;
  background: #1d36a7;
  color: white;
  padding: 10px 20px;
  border: none;
  font-weight: bold;
  align-self: center;
}

.btn-abrir-modal:hover {
  background-color: #1544ac;
  color: #ffffff;
  transform: scale(1.05);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* About Section */
.about-container {
  background-color: white;
  padding: 40px;
  max-width: 1200px;
  margin: 40px auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  color: #333;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-bottom: 0px;
}

.about-image {
  flex: 1;
  text-align: center;
}

.about-image img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
}

.about-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  row-gap: 20px;
}

.about-title {
  color: #296bb6;
  text-align: center;
  padding-bottom: 15px;
}

.about-description {
  text-align: justify !important;
}

.about-buttons {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-between;
  gap: 10px;
}

.about-buttons button {
  background: #2b4c90 !important;
  text-transform: uppercase;
  color: white !important;
  font-weight: bold;
  animation: none !important;
}

.titulo-mobile {
  display: none;
  text-align: center;
  margin-bottom: 20px;
}

.titulo-mobile h2 {
  font-size: 2.5rem;
}

/* Services Section */
.services {
  background-color: #00005e;
  text-align: center;
  padding: 40px 0;
  overflow: hidden; /* Impede que cards saiam da área visível */
}

.services-subtitle {
  color: azure;
}

.services-title {
  color: azure;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
  margin-top: 40px;
  overflow-x: visible;
  padding: 0 0px;
}

.card {
  background-color: white;
  padding: 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-width: 280px;
  max-width: 280px;
  min-height: 350px;
  cursor: pointer;
  position: relative;
  z-index: 1;
  opacity: 1; /* Garante visibilidade inicial */
  transform: none; /* Remove transformações padrão */
  transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease; /* Mantém apenas transições necessárias */
}

.card img {
  width: 64px;
  height: 64px;
  margin-bottom: 15px;
}

.card h3 {
  color: #296bb6;
  font-size: 18px;
  margin-bottom: 10px;
  text-align: center;
}

.card p {
  font-size: 14px;
  color: #6b6767;
  flex-grow: 1;
  margin-bottom: 15px;
  max-height: none;
  overflow: visible;
  text-align: center;
}

.card button {
  display: inline-block;
  margin-top: 10px;
  color: #2154c2;
  font-weight: bold;
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
}

.card button:active {
  color: white;
}

.card:hover img {
  transform: scale(1.1);
}

/* Process Steps */
.process-steps-horizontal {
  background-color: white;
  padding: 2px 2px;
  max-width: 1200px;
  margin: 0px auto;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  color: #333;
}

.process-subtitle {
  font-size: 18px;
  text-align: center;
}

.step-line-container {
  position: relative;
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  margin-bottom: 70px;
  gap: 20px;
  z-index: 1;
}

/* Linha de progresso */
.step-line-bg {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  height: 4px;
  width: 0;
  background: linear-gradient(to right, #ffffff 0%, #1faa69 100%);
  border-radius: 2px;
  transition: width 2s ease;
  z-index: 0;
}

.step-line-bg-vertical {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 0;
  background: linear-gradient(to bottom, #ffffff 0%, #1faa69 100%);
  border-radius: 2px;
  transition: height 2s ease;
  z-index: 0;
  display: none;
}

.step-box {
  background: white;
  border: 2px solid #296bb6;
  border-radius: var(--border-radius);
  padding: 20px;
  width: 200px;
  position: relative;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  z-index: 2;
  transition: transform 0.3s ease;
}

.step-box:hover {
  transform: translateY(-10px);
}

.icon-circle {
  width: 40px;
  height: 40px;
  background-color: #296bb6;
  color: white;
  font-weight: bold;
  font-size: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  position: relative;
  z-index: 2;
}

.step-box h4 {
  color: #296bb6;
  font-size: 18px;
  margin-bottom: 10px;
}

.step-box p {
  font-size: 14px;
  color: #6b6767;
}

/* Linha de progresso final */
.final-step {
  background-color: white;
  color: #192635;
  border-color: #1faa69;
  transition: background-color 0.6s ease;
}

.final-step.activated {
  background-color: #1faa69;
  color: rgb(241, 241, 241);
}

.final-step.activated h4,
.final-step.activated p {
  color: rgb(241, 241, 241);
}

.final-step.activated .icon-circle {
  background-color: white;
  color: #1faa69;
}

.btn:active {
  transform: scale(0.96);
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
}

/* Modal de Contato */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(30, 30, 47, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-overlay.show {
  display: flex;
}

.modal {
  background: #f3f3f3;
  border: 1px solid #ccc;
  border-radius: var(--border-radius);
  max-width: 500px;
  width: 100%;
  padding: 2em;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  color: #1e1e2f;
}

.modal-logo {
  width: 150px;
  margin-bottom: 1em;
}

.modal-text {
  font-size: 1rem;
  color: #6b6767;
  text-align: justify;
}

.modal-contact {
  margin: 1em 0;
  text-align: left;
}

.modal-contact-links {
  list-style: none;
  padding: 0;
}

.modal-contact-links li {
  margin-bottom: 12px;
}

.modal-contact-links li a {
  color: #296bb6;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-contact-links li a:hover {
  color: #58a2f7;
}

.modal-contact-links .footer-social-icon {
  width: 24px;
  height: 24px;
}

.modal-button .modal-close-btn {
  margin-top: 1.5em;
  padding: 12px 24px;
  background-color: #296bb6;
  color: #ffffff;
  border: none;
  border-radius: var(--border-radius);
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
}

.modal-button .modal-close-btn:hover {
  background-color: #1544ac;
  transform: scale(1.05);
}

/* Modal Mobile */
@media (max-width: 768px) {
  .modal {
    max-width: 90%;
    padding: 1.5em;
  }

  .modal-contact-links li a {
    font-size: 0.85rem;
    gap: 6px;
  }

  .modal-contact-links .footer-social-icon {
    width: 20px;
    height: 20px;
  }

  .modal-button .modal-close-btn {
    padding: 8px 16px;
    font-size: 0.85rem;
    background-color: #296bb6;
    color: #ffffff;
  }

  .modal-button .modal-close-btn:hover {
    background-color: #1544ac;
    transform: scale(1.05);
  }
}

.container,
.card,
.rounded-apple,
.about-buttons button {
  border-radius: var(--border-radius);
}

@media (min-width: 768px) {
  :root {
    --border-radius: 1.25rem;
  }
}

@media (max-width: 767px) {
  .about-container,
  .process-steps-horizontal {
    border-radius: 0 !important;
  }
}

@media (min-width: 1280px) {
  :root {
    --border-radius: 1.75rem;
  }
}

/* Responsivo */
@media (max-width: 900px) {
  .step-line-container {
    flex-direction: column;
    align-items: center;
  }

  .step-line-bg {
    display: none;
  }

  .step-line-bg-vertical {
    display: block;
  }
}

@media (max-width: 768px) {
  html {
    scroll-behavior: auto; /* Desativa animação de scroll em mobile */
  }

  .mobile-navbar {
    max-width: 100%;
  }

  .mobile-navbar .menu-toggle {
    padding: 9px 12px;
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 42px;
  }

  .services-title {
    line-height: 1.2;
  }

  .titulo-mobile {
    display: block;
  }

  .about-title {
    display: none;
  }

  .about-container {
    width: 100%;
    margin: 0px auto;
    padding: 40px 20px;
    flex-direction: column;
  }

  .about-text {
    text-align: left;
  }

  .services-grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    touch-action: pan-x; /* Restringe o scroll ao eixo horizontal */
    will-change: scroll-position; /* Otimiza desempenho do scroll */
  }

  .services-grid::-webkit-scrollbar {
    display: none;
  }

  .card {
    min-width: 280px;
    max-width: 280px;
    min-height: 300px;
    scroll-snap-align: start;
    transform: none !important; /* Desativa animação do ScrollReveal */
    transition: none !important; /* Remove transições para evitar travamento */
    opacity: 1 !important; /* Garante visibilidade imediata */
  }

  .card p {
    text-align: justify !important;
  }

  .hero {
    text-align: center;
  }

  .hero .container {
    padding: 0px 20px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .footer-container {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-col {
    margin-bottom: 30px;
  }

  .process-steps-horizontal h4,
  .process-subtitle {
    text-align: center;
  }

  .about-buttons button {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .step-box {
    width: 90%;
    max-width: 340px;
  }
}

@media (max-width: 768px) {
  h2,
  .about-title,
  .titulo-mobile h2 {
    line-height: 1.2;
    margin-bottom: 10px;
  }
}

/* Footer Desktop */
@media (min-width: 769px) {
  .site-footer {
    background-color: #00005e;
    color: #ffffff;
    padding: 40px 20px;
    font-size: 0.95rem;
  }

  .footer-container {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    margin: 40px auto;
    justify-content: space-evenly;
    align-items: flex-start;
  }

  .footer-col {
    flex: 1 1 200px;
    min-width: 200px;
    text-align: left;
  }

  .footer-col h4 {
    color: #fff;
    margin-bottom: 20px;
    font-size: 1.2rem;
    font-weight: 600;
  }

  .footer-col ul {
    list-style: none;
    padding: 0;
  }

  .footer-col ul li {
    margin-bottom: 12px;
  }

  .footer-col ul li a {
    color: #ccc;
    text-decoration: none;
    font-size: 1rem;
  }

  .footer-col ul li a:hover {
    color: #58a2f7;
  }

  .footer-contact-col ul li a {
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
  }

  .footer-contact-col ul li a:hover {
    color: #58a2f7;
  }

  .footer-logo {
    width: 160px;
    margin-bottom: 20px;
    display: block;
  }

  .footer-description {
    color: azure;
    font-size: 1rem;
    max-width: 300px;
  }

  .footer-social-icon {
    width: 24px;
    height: 24px;
    margin-right: 8px;
  }

  .footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    align-items: center;
  }

  .footer-bottom p {
    font-size: 0.9rem;
    color: #ccc;
  }

  .mobile-footer {
    display: none;
  }
}

/* Footer Mobile */
@media (max-width: 768px) {
  .site-footer {
    display: none;
  }

  .mobile-footer {
    background-color: #00005e;
    color: #ffffff;
    padding: 20px 10px;
    font-size: 0.9rem;
    min-height: 40vh;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mobile-footer-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .mobile-footer-logo {
    width: 120px;
    height: auto;
    margin-bottom: 16px;
    object-fit: contain;
  }

  .mobile-footer-links {
    list-style: none;
    padding: 0;
    width: 100%;
    max-width: 320px;
  }

  .mobile-footer-links li {
    margin-bottom: 12px;
  }

  .mobile-footer-links li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.4;
  }

  .mobile-footer-links li a:hover {
    color: #58a2f7;
  }

  .mobile-footer-links .footer-social-icon {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
  }

  .mobile-footer-bottom {
    margin-top: 16px;
    font-size: 0.85rem;
    color: #ccc;
  }
}