/*--------------------------------------------------------------
# Fontes Customizadas
--------------------------------------------------------------*/

/* Sansita - Regular */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Sansita - Italic */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* Sansita - Bold */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* Sansita - Bold Italic */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-BoldItalic.ttf") format("truetype");
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

/* Sansita - ExtraBold */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-ExtraBold.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* Sansita - ExtraBold Italic */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-ExtraBoldItalic.ttf") format("truetype");
  font-weight: 800;
  font-style: italic;
  font-display: swap;
}

/* Sansita - Black */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* Sansita - Black Italic */
@font-face {
  font-family: "Sansita";
  src: url("../fonts/Sansita/Sansita-BlackItalic.ttf") format("truetype");
  font-weight: 900;
  font-style: italic;
  font-display: swap;
}

/* Avenir Next LT Pro - Regular */
@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir/AvenirNextLTPro-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next LT Pro - Medium */
@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir/AvenirNextLTPro-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* Avenir Next LT Pro - Bold */
@font-face {
  font-family: "Avenir";
  src: url("../fonts/Avenir/AvenirNextLTPro-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/*--------------------------------------------------------------
# General
--------------------------------------------------------------*/
:root {
  /* Cores do Brand - Baseadas na Paleta Pantone */
  --azul-principal: #00558f; /* PANTONE 2945C */
  --azul-escuro: #00558f; /* PANTONE 2945C */
  --azul-claro: #3ea4d6; /* PANTONE 2191C */
  --amarelo: #facb3f; /* PANTONE 108C */
  --laranja: #f59d2d; /* PANTONE 3588C */
  --verde: #8fc746; /* PANTONE 2300C */
  --branco: #ffffff; /* BRANCO */
  --preto: #262626;

  --azul-principal: rgb(0, 85, 152); /* PANTONE 2945C */
  --azul-escuro: rgb(0, 85, 152); /* PANTONE 2945C */
  --azul-claro: rgb(62, 169, 218); /* PANTONE 2191C */
  --amarelo: rgb(240, 196, 63); /* PANTONE 108C */
  --laranja: rgb(231, 141, 45); /* PANTONE 3588C */
  --verde: rgb(169, 195, 50); /* PANTONE 2300C */
  --branco: rgb(255, 255, 255); /* BRANCO */
  --preto: rgb(38, 38, 38);

  /* Mapeamento para Bootstrap */
  --primary: var(--azul-principal);
  --secondary: var(--azul-claro);
  --success: var(--verde);
  --info: var(--azul-claro);
  --warning: var(--amarelo);
  --danger: #dc3545;
  --light: var(--branco);
  --dark: var(--preto);

  /* Fontes */
  --font-primary: "Sansita", sans-serif;
  --font-secondary: "Avenir", sans-serif;

  --bs-body-font-family: var(--font-primary);
  --bs-heading-font-family: var(--font-primary);

  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.5s ease;
  --transition-slow: all 0.8s ease;
}

/* Classe para fonte secundária */
.u-font-family__secondary {
  font-family: var(--font-secondary);
}

/* reCAPTCHA - Estilos globais para prevenir erros */
.g-recaptcha {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
}

/* Previne scroll horizontal causado por elementos absolutos */
.row {
  /* overflow-x: hidden; */
}

/* Previne problemas de touch no mobile */
* {
  touch-action: manipulation;
}

/* Previne scroll horizontal causado por animações AOS */
[data-aos] {
  pointer-events: auto;
}

body[data-aos-easing],
body[data-aos-duration],
body[data-aos-delay] {
  overflow-x: hidden !important;
}

html {
  overflow-x: hidden; 
  overflow-y: auto; /* Permite apenas scroll vertical */
  width: 100%;
  position: relative;
}

body {
  font-family: var(--bs-body-font-family);
  color: var(--dark);
  background-color: #ffffff;
  overflow-x: hidden;
  overflow-y: auto; /* Permite apenas scroll vertical */
  line-height: 1.6;
  width: 100%;
  position: relative;
}

/* Regras globais para imagens */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--bs-heading-font-family);
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: #0a58ca;
}

p {
  margin-bottom: 1rem;
}

/* Espaçador para navbar fixa */
.navbar-spacer {
  height: 76px; /* Ajuste conforme a altura da sua navbar */
}

/*--------------------------------------------------------------
# Components
--------------------------------------------------------------*/

/* Botões */
.btn {
  border-radius: 0.25rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-primary:hover {
  background-color: #0a58ca;
  border-color: #0a58ca;
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary:hover {
  background-color: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Cartões */
.card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: var(--transition-fast);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Ícones de recursos */
.feature-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

/* Ícones de contato */
.contact-icon {
  width: 40px;
  height: 40px;
  font-size: 1.2rem;
}

/* Ícones de redes sociais */
.social-icon {
  width: 36px;
  height: 36px;
  font-size: 1rem;
  transition: var(--transition-fast);
}

/* Animações de hover para imagens SVG */
img[src$=".svg"] {
  transition: var(--transition-fast);
}

img[src$=".svg"]:hover {
  transform: scale(1.1) rotate(5deg);
}

.social-icon:hover {
  transform: translateY(-3px);
  opacity: 0.9;
}

/*--------------------------------------------------------------
# Navigation
--------------------------------------------------------------*/

/* Navbar */
.navbar {
  transition: var(--transition-fast);
}

.navbar.scrolled {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

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

.navbar-nav .nav-link {
  color: var(--dark);
  font-weight: 500;
  padding-left: 1rem;
  padding-right: 1rem;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link:hover {
  color: var(--primary);
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: var(--primary);
}

/*--------------------------------------------------------------
# Sections
--------------------------------------------------------------*/

/* Hero Section */
.hero-section {
  background-color: var(--light);
  position: relative;
  overflow: hidden;
  padding: 100px 0;
}

/* Features Section */
.features-section {
  padding: 80px 0;
}

/* Testimonials Section */
.testimonials-section {
  padding: 80px 0;
  background-color: var(--light);
}

/* CTA Section */
.cta-section {
  padding: 80px 0;
}

/* Page Header */
.page-header {
  padding: 80px 0;
  background-color: var(--light);
}

/* Contact Section */
.contact-section {
  padding: 80px 0;
}

/* Map Section */
.map-section {
  padding: 80px 0;
  background-color: var(--light);
}

/* About Section */
.about-section {
  padding: 80px 0;
}

/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.footer {
  background-color: var(--dark);
  color: white;
  padding: 80px 0 20px;
}

.footer-links a {
  transition: var(--transition-fast);
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary) !important;
  transform: translateX(5px);
}

.footer-contact li {
  margin-bottom: 0.75rem;
}

/*--------------------------------------------------------------
# Back to Top & WhatsApp Button
--------------------------------------------------------------*/
.back-to-top {
  display: none;
  z-index: 9999;
}

.whatsapp-button {
  position: fixed;
  bottom: 25px;
  left: 25px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.75rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  transition: var(--transition-fast);
}

.whatsapp-button:hover {
  transform: scale(1.1);
  color: white;
}

/*--------------------------------------------------------------
# Animations
--------------------------------------------------------------*/
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInUp {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

.icon-rotate {
  animation: is-rotating 1s infinite linear;
}

@keyframes is-rotating {
  to {
    transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Responsividade
--------------------------------------------------------------*/
@media (max-width: 991.98px) {
  .navbar-nav {
    padding: 0.5rem 0;
  }

  .navbar-nav .nav-link {
    padding: 0.5rem 0;
  }
}

@media (max-width: 767.98px) {
  h1 {
    font-size: calc(1.375rem + 1.5vw);
  }

  .hero-section {
    padding: 70px 0;
  }

  .features-section,
  .testimonials-section,
  .cta-section,
  .page-header,
  .contact-section,
  .map-section,
  .about-section {
    padding: 60px 0;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero-section {
    padding: 50px 0;
  }

  .features-section,
  .testimonials-section,
  .cta-section,
  .page-header,
  .contact-section,
  .map-section,
  .about-section {
    padding: 40px 0;
  }
}

/* Link Dev Rodapé */

.dev__link,
.dev__dir,
.dev__arco {
  color: #ffffff;
}

.dev__link .dev__arco:hover {
  color: #f9a13f;
}

.dev__link .dev__arco:hover .dev__logo svg {
  filter: brightness(1);
}

.dev__link .dev__logo svg {
  filter: brightness(100);
  width: 22px;
  height: 22px;
  margin-left: 5px;
}

.dev__link .dev__logo:hover svg {
  filter: brightness(1);
}

.dev__link .dev__logo:hover .dev__arco {
  color: #f9a13f;
}

/* FIm Link Dev */

/* ================================================ */
/* AOS Animation Fix - Previne Scroll Horizontal    */
/* ================================================ */

/* Previne overflow durante animações AOS */
html.aos-init {
  overflow-x: hidden !important;
}

body.aos-animate {
  overflow-x: hidden !important;
}

/* Garante que elementos com AOS não causem overflow */
[data-aos] {
  box-sizing: border-box;
  max-width: 100%;
}

[data-aos="fade-up"],
[data-aos="fade-down"],
[data-aos="fade-left"],
[data-aos="fade-right"],
[data-aos="fade-up-right"],
[data-aos="fade-up-left"],
[data-aos="fade-down-right"],
[data-aos="fade-down-left"],
[data-aos="zoom-in"],
[data-aos="zoom-out"] {
  will-change: transform, opacity;
  backface-visibility: hidden;
  transform: translateZ(0);
}

/* Container pai de elementos AOS */
.container [data-aos],
.row [data-aos],
section [data-aos] {
  max-width: 100%;
  overflow: visible;
}

/* Previne quebra de layout durante animações */
@media (prefers-reduced-motion: no-preference) {
  [data-aos] {
    transition-property: opacity, transform;
  }
}

/* Desabilita animações se usuário preferir movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    transition: none !important;
    animation: none !important;
  }
}
