/*--------------------------------------------------------------
# Google Fonts
--------------------------------------------------------------*/

/* General
--------------------------------------------------------------*/
:root {
  /* ─── Cor Primária (Azul Institucional) ──────────────────── */
  --primary: #313D83;
  --primary-rgb: 49, 61, 131;
  --primary-light: #4A57A3;
  --primary-dark: #1F2756;
  --primary-text-light: #E8EAFA;
  --primary-text-dark: #0F1329;

  /* ─── Cor Secundária (Azul Claro Institucional) ──────────── */
  --secondary: #DEEBFB;
  --secondary-rgb: 222, 235, 251;
  --secondary-light: #F2F7FD;
  --secondary-dark: #B5D2F5;
  --secondary-text-light: #FFFFFF;
  --secondary-text-dark: #203152;

  /* ─── Destaque (Accent - Amarelo CTA) ────────────────────── */
  --accent: #FFC107;
  --accent-light: #FFD54F;
  --accent-dark: #FFA000;
  --accent-text-dark: #332600;

  /* ─── Neutros (Com o Creme Institucional) ────────────────── */
  --branco-absoluto: #ffffff;
  --preto-absoluto: #000000;
  --branco-gelo: #FFFCE8;
  /* Creme Institucional */
  --cinza-claro: #d1d1d1;
  --cinza-medio: #7a7a7a;
  --cinza-escuro: #2f2f2f;
  --success: #2e8b57;

  /* ─── Integração Bootstrap ───────────────────────────────── */
  --bs-primary: var(--primary);
  --bs-primary-rgb: var(--primary-rgb);
  --bs-secondary: var(--secondary);
  --bs-secondary-rgb: var(--secondary-rgb);
  --bs-success: var(--success);
  --bs-warning: var(--accent);
  --bs-danger: var(--primary-dark);
  --bs-light: var(--branco-gelo);
  --bs-dark: var(--cinza-escuro);
  --bs-body-color: var(--cinza-escuro);
  --bs-body-bg: var(--branco-absoluto);
  /* Corrigido para branco absoluto */
  --bs-link-color: var(--primary);
  --bs-link-hover-color: var(--primary-dark);

  /* ─── Atalhos semânticos (usados nos componentes abaixo) ─── */
  --light: var(--branco-gelo);
  --dark: var(--cinza-escuro);

  /* ─── Fontes ─────────────────────────────────────────────── */
  --font-heading: "Poppins", sans-serif;
  --font-body: "Poppins", sans-serif;

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

  /* ─── Transições ─────────────────────────────────────────── */
  --transition-fast: all 0.3s ease;
  --transition-medium: all 0.5s ease;
  --transition-slow: all 0.8s ease;
}

/* Força a fonte de corpo em qualquer elemento */
.u-font-family__secondary {
  font-family: var(--font-body) !important;
}

/* 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: var(--secondary);
  overflow-x: hidden;
  overflow-y: auto;
  /* Permite apenas scroll vertical */
  line-height: 1.6;
  width: 100%;
  position: relative;
  font-weight: 300;
}

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

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

/*--------------------------------------------------------------
# Typography
# ─────────────────────────────────────────────────────────────
# Títulos     (h1–h6)              → --font-heading  (Futura)    [regra explícita]
# Corpo       (body)               → --font-body     (Poppins)   [regra explícita]
# p, li, span                      → herdam de body  (Poppins)   [via cascade, sem regra]
# Links       (a)                  → herdam do contexto           [via cascade, sem regra]
# Botões      (.btn, button)       → --font-body     (Poppins)   [regra explícita]
# Formulários (input, select...)   → --font-body     (Poppins)   [regra explícita]
# ─────────────────────────────────────────────────────────────
# Para trocar: redefina --font-heading ou --font-body em :root.
--------------------------------------------------------------*/

/* Títulos — fonte de destaque */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
}

/* Links — herdam a fonte do pai */
a {
  color: var(--bs-link-color);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--bs-link-hover-color);
}

/* Botões — fonte de corpo, peso médio */
.btn,
button {
  font-family: var(--font-body);
}

/* Campos de formulário */
input,
select,
textarea,
label {
  font-family: var(--font-body);
  font-weight: 400;
}

/*--------------------------------------------------------------
# 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: var(--primary);
  border-color: var(--primary);
}

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

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

/* 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: var(--branco-absoluto);
  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;
}

.client__logo {
    height: 40px; /* Ajuste este valor para igualar à altura da fonte do rodapé */
    width: auto;
    object-fit: contain;
}

/* Opcional: Garante que o SVG da Arco injetado também mantenha a proporção correta */
.dev__logo svg {
    height: 18px; 
    width: auto;
    vertical-align: middle;
}

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

.whatsapp-button {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFFFFF; /* Ajustado para sua variável se necessário */
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 2rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: all 0.3s ease;
  border: 2px solid #FFFFFF;
}

.whatsapp-button:hover {
  transform: translateY(-5px) scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
  color: #FFFFFF;
}

/* Removido o ::after que causava o "rastro" ou moldura estranha */
.whatsapp-button::after {
  display: none !important;
}

/* Ajuste Mobile solicitado pelo cliente: Afastar da borda e reduzir tamanho */
@media (max-width: 767.98px) {
  .whatsapp-button {
    width: 37px !important;
    height: 37px !important;
    font-size: 1.4rem !important;
    bottom: 15px !important;
    right: 22px !important;
  }
}

@keyframes pulse-border {
  0% {
    transform: scale(1);
    opacity: 0.8;
  }

  100% {
    transform: scale(1.5);
    opacity: 0;
  }
}

/*--------------------------------------------------------------
# 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: var(--branco-absoluto);
}

.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;
  }
}

@view-transition {
  navigation: auto;
}

@keyframes vt-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::view-transition-old(root) {
  animation: vt-fade-out 0.22s ease-in forwards;
}

::view-transition-new(root) {
  animation: vt-fade-in 0.28s ease-out forwards;
}

@media (prefers-reduced-motion: reduce) {

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }
}