/* =========================================================================
   AccessFast — Folha de estilo unificada (substitui style.css, modern-ui.css,
   clients.css, slider-clients.css e whatsapp-buttom.css)
   Tipografia: Swiss 721 Bold SWA (marca) · Montserrat (títulos) · Roboto (corpo)
   ========================================================================= */

/* ===== Fontes locais ===== */
@font-face {
  font-family: "Swiss721";
  src: url("../fonts/Swiss_721_Bold_SWA.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ===== Tokens de design ===== */
:root {
  /* Paleta da marca */
  --af-orange:        #ee9142;
  --af-blue-light:    #2576a2;
  --af-blue-dark:     #1a567b;
  --af-white:         #ffffff;

  /* Variações vibrantes (CTAs, hover, gradientes) */
  --af-orange-vivid:  #ff9d4a;
  --af-blue-vivid:    #2e8fc9;

  /* Neutros coerentes com o navy */
  --af-ink:           #0e3956;
  --af-ink-muted:     #5b6f80;
  --af-line:          rgba(26, 86, 123, 0.10);
  --af-line-strong:   rgba(26, 86, 123, 0.22);
  --af-surface:       #ffffff;
  --af-surface-alt:   #f5f8fb;
  --af-bg:            #fafcfe;

  /* Gradientes */
  --af-grad-brand:    linear-gradient(135deg, var(--af-blue-dark) 0%, var(--af-blue-light) 100%);
  --af-grad-accent:   linear-gradient(135deg, var(--af-orange) 0%, var(--af-orange-vivid) 100%);
  --af-grad-hero:     linear-gradient(135deg, rgba(14,57,86,0.78) 0%, rgba(26,86,123,0.55) 60%, rgba(37,118,162,0.15) 100%);

  /* Sombras navy (não preto puro) */
  --af-shadow-xs:     0 1px 3px rgba(26, 86, 123, 0.06);
  --af-shadow-sm:     0 2px 12px rgba(26, 86, 123, 0.08);
  --af-shadow-md:     0 8px 28px rgba(26, 86, 123, 0.12);
  --af-shadow-lg:     0 18px 50px rgba(26, 86, 123, 0.18);
  --af-shadow-glow:   0 0 0 6px rgba(238, 145, 66, 0.18);

  /* Raio */
  --af-radius-sm:     10px;
  --af-radius:        16px;
  --af-radius-lg:     22px;
  --af-radius-pill:   999px;

  /* Compat com Bootstrap/template antigo */
  --primary-color:    var(--af-blue-dark);
  --secondary-color:  var(--af-orange);
  --tertiary-color:   var(--af-blue-light);
  --bs-primary:       var(--af-blue-dark);
  --bs-primary-rgb:   26, 86, 123;
}

/* ===== Reset & base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  margin: 0;
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  color: var(--af-ink);
  background-color: var(--af-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a {
  color: var(--af-blue-dark);
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: var(--af-orange-vivid); }

::selection {
  background: var(--af-orange);
  color: #fff;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--af-surface-alt); }
::-webkit-scrollbar-thumb { background: var(--af-line-strong); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--af-blue-light); }

section { scroll-margin-top: 88px; }

/* ===== Tipografia ===== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 700;
  color: var(--af-ink);
  margin: 0 0 0.6em;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

h1, .h1 { font-size: clamp(2.25rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.025em; line-height: 1.08; }
h2, .h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3, .h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
h4, .h4 { font-size: 1.4rem; }
h5, .h5 { font-size: 1.2rem; }
h6, .h6 { font-size: 1.05rem; font-weight: 600; }

p {
  margin: 0 0 1em;
  color: var(--af-ink-muted);
  line-height: 1.75;
}

b, strong { color: var(--af-ink); font-weight: 600; }

/* Marca + destaque com Swiss 721 */
.navbar-brand,
.text-highlight {
  font-family: "Swiss721", "Montserrat", sans-serif;
  font-weight: 700;
}

.text-highlight {
  color: var(--af-orange);
  background: linear-gradient(120deg, var(--af-orange) 0%, var(--af-orange-vivid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Utilities customizadas (compat template antigo) ===== */
/* Spacing — em px para casar com o HTML existente */
.mb-0 { margin-bottom: 0 !important; }
.mb-5 { margin-bottom: 5px !important; }
.mb-10 { margin-bottom: 10px !important; }
.mb-15 { margin-bottom: 15px !important; }
.mb-16 { margin-bottom: 16px !important; }
.mb-20 { margin-bottom: 20px !important; }
.mb-25 { margin-bottom: 25px !important; }
.mb-30 { margin-bottom: 30px !important; }
.mb-40 { margin-bottom: 40px !important; }
.mb-70 { margin-bottom: 70px !important; }
.mt-60 { margin-top: 60px !important; }
.ml-15 { margin-left: 15px !important; }
.ml-20 { margin-left: 20px !important; }
.mr-5  { margin-right: 5px !important; }
.mr-10 { margin-right: 10px !important; }
.mr-auto { margin-right: auto !important; }
.m-0  { margin: 0 !important; }
.p-0  { padding: 0 !important; }
.p-30 { padding: 30px !important; }
.p-y-10 { padding-top: 10px !important; padding-bottom: 10px !important; }
.p-x-0  { padding-left: 0 !important; padding-right: 0 !important; }

/* Tamanhos */
.fs-16 { font-size: 1rem !important; line-height: 1.75 !important; }
.fs-28 { font-size: 1.75rem !important; }
.fs-60 { font-size: clamp(2.5rem, 5vw, 3.75rem) !important; }
.fw-light  { font-weight: 300 !important; }
.fw-medium { font-weight: 500 !important; }

/* Layout helpers */
.relative { position: relative; }
.z-index-1 { z-index: 1; }
.z-index-2 { z-index: 2; }
.w-80 { width: 80%; }
.d-ib { display: inline-block; vertical-align: middle; }
.fh   { min-height: 100vh; }
.v-center { display: flex; align-items: center; }
.rounded { border-radius: var(--af-radius); }
.no-shadow { box-shadow: none !important; }
.no-blur { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.b-0 { border: 0 !important; }
.circle { border-radius: 50% !important; }

/* Cores / fundos */
.bg-transparent { background: transparent !important; }
.bg-primary { background: var(--af-grad-brand) !important; color: #fff !important; }
.bg-light-grey-dark { background: var(--af-ink); color: #cfd8e1; }
.section-bg-grey { background: var(--af-surface-alt) !important; }
.text-white { color: #fff !important; }
.title-link { color: inherit; }
.primary-hover:hover { color: var(--af-orange-vivid) !important; }

/* Responsivos auxiliares do template */
@media (max-width: 991.98px) {
  .tablet-lg-top-30 { margin-top: 30px; }
  .tablet-lg-top-45 { margin-top: 45px; }
}

/* ===== Container ===== */
.container { padding-left: 24px; padding-right: 24px; }
@media (min-width: 992px) { .container { max-width: 1180px; } }
@media (min-width: 1400px) { .container { max-width: 1280px; } }

/* ===== Section padding ===== */
section.lg, .lg {
  padding-top: clamp(64px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
  position: relative;
  overflow: hidden;        /* fallback */
  overflow: clip;          /* contém blobs decorativos sem afetar position:sticky filhos */
}

/* "Blobs" decorativos sutis em seções pares */
section.lg.section-bg-grey::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle at center, rgba(238,145,66,0.10), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
}
section.lg.section-bg-grey::after {
  content: "";
  position: absolute;
  bottom: -140px; left: -140px;
  width: 420px; height: 420px;
  background: radial-gradient(circle at center, rgba(37,118,162,0.10), transparent 60%);
  pointer-events: none;
  filter: blur(20px);
  z-index: 0;
}
section.lg > .container { position: relative; z-index: 1; }

/* ===== Scroll progress + loader ===== */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--af-blue-dark), var(--af-orange));
  z-index: 99999;
  transition: width 0.08s linear;
  pointer-events: none;
}

#loader-wrapper {
  position: fixed; inset: 0;
  background: var(--af-surface);
  z-index: 99998;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
body.loaded #loader-wrapper {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
#loader {
  width: 48px; height: 48px;
  border: 3px solid var(--af-line);
  border-top-color: var(--af-orange);
  border-radius: 50%;
  animation: af-spin 0.9s linear infinite;
}
.loader-section { display: none; }

@keyframes af-spin { to { transform: rotate(360deg); } }

/* ===== Navbar ===== */
.navbar.fixed-top {
  background: rgba(255, 255, 255, 0.0) !important;
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding-top: 14px; padding-bottom: 14px;
}
.navbar.fixed-top.nav-fixed,
.navbar.fixed-top.mobile-white-nav.show-mobile-bg {
  background: rgba(255, 255, 255, 0.86) !important;
  border-bottom-color: var(--af-line);
  box-shadow: 0 4px 28px rgba(26, 86, 123, 0.08);
  padding-top: 10px; padding-bottom: 10px;
}

.navbar-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem !important;
  letter-spacing: -0.01em;
  color: var(--af-ink) !important;
}
.navbar-brand img { height: 32px; opacity: 0.95; }

.nav-link {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--af-ink) !important;
  padding: 8px 14px !important;
  position: relative;
  transition: color 0.2s ease;
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 4px;
  height: 2px;
  background: var(--af-grad-accent);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--af-orange) !important; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

/* Hero variant: links brancos antes do scroll */
.navbar.fixed-top:not(.nav-fixed) .nav-link { color: rgba(255,255,255,0.92) !important; }
.navbar.fixed-top:not(.nav-fixed) .navbar-brand { color: #fff !important; }
.navbar.fixed-top:not(.nav-fixed) .navbar-brand img { filter: brightness(0) invert(1); }
.navbar.fixed-top:not(.nav-fixed) .nav-link:hover { color: var(--af-orange-vivid) !important; }

/* Botão hamburguer */
.navbar-toggler { border: none; padding: 8px; }
.navbar-toggler:focus { box-shadow: none; }
.navbar-toggler .icon-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--af-ink);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar.fixed-top:not(.nav-fixed) .navbar-toggler .icon-bar { background: #fff; }
.navbar-toggler:not(.collapsed) .top-bar { transform: translateY(7px) rotate(45deg); }
.navbar-toggler:not(.collapsed) .middle-bar { opacity: 0; }
.navbar-toggler:not(.collapsed) .bottom-bar { transform: translateY(-7px) rotate(-45deg); }

/* Dropdown linguagem */
#languageDropdown {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 6px 12px !important;
  border-radius: var(--af-radius-pill);
  border: 1px solid var(--af-line);
  background: rgba(255,255,255,0.6);
  color: var(--af-ink) !important;
  transition: all 0.2s ease;
}
.navbar.fixed-top:not(.nav-fixed) #languageDropdown {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: #fff !important;
}
#languageDropdown::after { display: none; }
.dropdown-menu {
  border-radius: var(--af-radius);
  border: 1px solid var(--af-line);
  box-shadow: var(--af-shadow-md);
  padding: 6px;
  min-width: 180px;
}
.dropdown-item.lang-btn {
  font-family: "Roboto", sans-serif;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 500;
}
.dropdown-item.lang-btn:hover { background: rgba(238,145,66,0.08); color: var(--af-orange); }
.dropdown-item.lang-btn.active { background: var(--af-orange); color: #fff !important; }

/* navbar-button (CTA contato) */
.navbar-button { display: flex; align-items: center; gap: 10px; }

/* ===== Botões ===== */
.btn {
  font-family: "Montserrat", sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  border-radius: var(--af-radius-pill);
  padding: 12px 26px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn:focus, .btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(238,145,66,0.30);
}

.btn-primary {
  background: var(--af-grad-brand) !important;
  color: #fff !important;
  border: none !important;
  box-shadow: 0 8px 24px rgba(26,86,123,0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(26,86,123,0.32), 0 0 0 4px rgba(238,145,66,0.16);
  background: var(--af-grad-accent) !important;
}

.btn-submit { width: 100%; padding: 14px 26px; }

.btn-icon { padding: 0; }
.btn-circle { width: 44px; height: 44px; border-radius: 50%; }
.btn-floating { position: fixed; right: 22px; bottom: 22px; }

#back-top {
  background: var(--af-grad-brand) !important;
  color: #fff !important;
  border: none;
  box-shadow: var(--af-shadow-md);
  opacity: 0; pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
  z-index: 999;
}
#back-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
#back-top:hover { background: var(--af-grad-accent) !important; transform: translateY(-3px); }

.raised-sm { box-shadow: var(--af-shadow-sm); }

/* ===== Header / Hero ===== */
header#home {
  min-height: 100vh;
  display: flex; align-items: center;
  position: relative;
  background-size: cover;
  background-position: center center;
  color: #fff;
  isolation: isolate;
}
header#home::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--af-grad-hero);
  z-index: 0;
}
header#home::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(238,145,66,0.20), transparent 50%),
    radial-gradient(ellipse at 10% 90%, rgba(46,143,201,0.30), transparent 55%);
  z-index: 0;
  pointer-events: none;
}
header#home > .container { position: relative; z-index: 2; padding-top: 110px; padding-bottom: 80px; }

.header-content { width: 100%; }

.page-title {
  font-size: clamp(2.4rem, 5.2vw, 4.25rem) !important;
  line-height: 1.05 !important;
  font-weight: 800 !important;
  color: #fff !important;
  letter-spacing: -0.025em;
  margin-bottom: 18px !important;
}
.page-title .text-highlight {
  background: linear-gradient(120deg, var(--af-orange-vivid) 0%, var(--af-orange) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 12px rgba(238,145,66,0.35));
}

.header-text {
  color: rgba(255,255,255,0.85) !important;
  font-size: 1.15rem;
  line-height: 1.65;
  max-width: 620px;
}

/* Badge animado */
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--af-radius-pill);
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}
.hero-badge-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--af-orange-vivid);
  box-shadow: 0 0 0 0 rgba(238,145,66,0.7);
  animation: af-pulse-dot 1.6s ease-out infinite;
}
@keyframes af-pulse-dot {
  0%   { box-shadow: 0 0 0 0 rgba(238,145,66,0.7); }
  70%  { box-shadow: 0 0 0 12px rgba(238,145,66,0); }
  100% { box-shadow: 0 0 0 0 rgba(238,145,66,0); }
}

/* Tech chips */
.hero-tech-tags {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 38px;
}
.hero-tech-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--af-radius-pill);
  font-family: "Montserrat", sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fff !important;
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.hero-tech-tag i { color: var(--af-orange-vivid); font-size: 0.95rem; }
.hero-tech-tag:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(238,145,66,0.55);
  transform: translateY(-2px);
}

/* Scroll hint */
.hero-scroll-hint {
  position: absolute;
  bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  z-index: 2;
  animation: af-bounce 2s ease-in-out infinite;
}
.hero-scroll-hint__icon { font-size: 1.5rem; }
@keyframes af-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, 8px); }
}

/* ===== Section eyebrow + title ===== */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--af-orange);
  margin-bottom: 14px;
  padding: 6px 14px;
  background: rgba(238,145,66,0.10);
  border-radius: var(--af-radius-pill);
  border: 1px solid rgba(238,145,66,0.22);
}

.section-title {
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

/* ===== Promo Box (cards) ===== */
.promo-box {
  background: var(--af-surface);
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  padding: 32px 28px;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  overflow: hidden;
  height: 100%;
}
.promo-box::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--af-grad-accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.4s ease;
}
.promo-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--af-shadow-lg);
  border-color: var(--af-line-strong);
}
.promo-box:hover::before { transform: scaleX(1); }

.promo-left  { text-align: left; }
.promo-center { text-align: center; }

.promo-container { }
.promo-container-big-md { padding: 4px 4px; }

/* Variante "informativa": sem hover lift, sem barra inferior */
.promo-box.bg-transparent,
.promo-box.no-shadow {
  background: transparent !important;
  border: none !important;
  padding-left: 0; padding-right: 0;
}
.promo-box.bg-transparent::before,
.promo-box.no-shadow::before { display: none; }
.promo-box.bg-transparent:hover,
.promo-box.no-shadow:hover {
  transform: none;
  box-shadow: none !important;
}

.promo-big {
  display: inline-flex; align-items: center; justify-content: center;
  width: 64px; height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(37,118,162,0.10), rgba(238,145,66,0.10));
  border: 1px solid var(--af-line);
  margin-bottom: 22px;
  transition: transform 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
  flex-shrink: 0;
}
.promo-box:hover .promo-big {
  transform: rotate(-6deg) scale(1.05);
  background: linear-gradient(135deg, rgba(37,118,162,0.18), rgba(238,145,66,0.22));
}
.promo-center .promo-big { margin-left: auto; margin-right: auto; }
.promo-icon {
  color: var(--af-blue-dark);
  font-size: 1.6rem;
  line-height: 1;
  display: inline-flex;
}
.promo-icon-bg {
  background: var(--af-grad-brand) !important;
  border: none !important;
  /* box-shadow: 0 12px 28px rgba(26,86,123,0.25), 0 0 0 4px rgba(238,145,66,0.10); */
}
.promo-icon-bg .promo-icon { color: #fff !important; font-size: 1.7rem; }
.promo-big.icon-md { width: 60px; height: 60px; border-radius: 50%; }
.promo-big.circle { border-radius: 50%; }

.box-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--af-ink);
  line-height: 1.3;
}
.box-description {
  color: var(--af-ink-muted);
  font-size: 0.98rem;
  line-height: 1.7;
  margin: 0;
}

/* ===== Stats ===== */
.stat-card {
  background: var(--af-surface);
  border: 1px solid var(--af-line);
  border-radius: var(--af-radius);
  padding: 22px 20px;
  text-align: center;
  height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--af-shadow-md);
  border-color: var(--af-line-strong);
}
.stat-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(37,118,162,0.10), rgba(238,145,66,0.14));
  color: var(--af-orange);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.stat-number {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.75rem, 3.4vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--af-grad-accent);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.05;
}
.stat-label {
  display: block;
  font-family: "Montserrat", sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--af-ink-muted);
  margin-top: 4px;
}

/* ===== IA — brain glow ===== */
.brain-icon-glow {
  position: relative;
  display: inline-flex;
  align-items: center; justify-content: center;
}
.brain-icon-glow::before {
  content: "";
  position: absolute;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(238,145,66,0.30), transparent 60%);
  filter: blur(6px);
  animation: af-halo 2.6s ease-in-out infinite;
  z-index: 0;
}
.brain-icon-glow > i { position: relative; z-index: 1; }
@keyframes af-halo {
  0%,100% { transform: scale(0.85); opacity: 0.55; }
  50%     { transform: scale(1.10); opacity: 0.95; }
}

/* ===== Clientes — marquee ===== */
.clients-marquee-wrapper {
  position: relative;
  overflow: hidden;
  overflow-x: clip;
  padding: 28px 0 10px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.clients-marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: af-marquee 38s linear infinite;
  will-change: transform;
}
.clients-marquee-wrapper:hover .clients-marquee-track { animation-play-state: paused; }
.client-logo-item {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 70px;
  min-width: 140px;
}
.client-logo-item img {
  max-height: 50px;
  width: auto;
  filter: grayscale(1) brightness(0.85);
  opacity: 0.68;
  transition: filter 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
}
.client-logo-item:hover img {
  filter: grayscale(0) brightness(1);
  opacity: 1;
  transform: scale(1.05);
}
@keyframes af-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Compat com .clients-section / .clients (caso seja referenciado em outros lugares) */
.clients-section { margin-top: 50px; }
.clients { list-style: none; margin: 0; padding: 0; text-align: center; }
.clients li { display: inline-block; margin: 0 26px; }

/* ===== Formulário de contato ===== */
.form-group { margin-bottom: 18px; }
.form-control,
.custom-select {
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--af-line);
  background: var(--af-surface);
  color: var(--af-ink);
  font-family: "Roboto", sans-serif;
  font-size: 0.98rem;
  line-height: 1.5;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  appearance: none;
}
.form-control::placeholder { color: var(--af-ink-muted); opacity: 0.85; }
.form-control:focus,
.custom-select:focus {
  outline: none;
  border-color: var(--af-orange);
  box-shadow: 0 0 0 4px rgba(238,145,66,0.16);
  background: #fff;
}
.custom-select {
  background-image: linear-gradient(45deg, transparent 50%, var(--af-blue-dark) 50%),
                    linear-gradient(135deg, var(--af-blue-dark) 50%, transparent 50%);
  background-position: calc(100% - 22px) 22px, calc(100% - 16px) 22px;
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 42px;
  cursor: pointer;
}
textarea.form-control { min-height: 120px; resize: vertical; }
.needs-validation .form-control:invalid:not(:focus):not(:placeholder-shown) { border-color: #d2554b; }

/* ===== WhatsApp float ===== */
.float-whatsapp {
  position: fixed;
  bottom: 20px; left: 20px;
  width: 64px; height: 64px;
  display: flex; align-items: center; justify-content: center;
  z-index: 1000;
}
.a-whatsapp { text-decoration: none; display: block; }
.contact_icon {
  width: 60px; height: 60px;
  display: flex; align-items: center; justify-content: center;
  background: #25d366;
  color: #fff;
  font-size: 30px;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
  animation: af-pulse-whatsapp 1.8s cubic-bezier(0.66,0,0,1) infinite;
  transition: transform 0.25s ease;
}
.contact_icon:hover { transform: scale(1.06); }
@keyframes af-pulse-whatsapp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.55); }
  70%  { box-shadow: 0 0 0 22px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ===== Footer ===== */
footer {
  background: var(--af-ink);
  color: #cfd8e1;
  padding: 32px 0;
  text-align: center;
  font-size: 0.95rem;
}
footer a { color: #fff; font-weight: 500; }
footer a:hover { color: var(--af-orange-vivid); }

/* ===== Imagens com efeito sutil ===== */
.main-container img.rounded {
  border-radius: var(--af-radius-lg) !important;
  box-shadow: var(--af-shadow-md);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.main-container img.rounded:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--af-shadow-lg);
}

/* ===== AOS fallback / reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .clients-marquee-track { animation: none !important; transform: none !important; flex-wrap: wrap; justify-content: center; }
  .hero-scroll-hint { animation: none !important; }
  .brain-icon-glow::before { animation: none !important; }
  .hero-badge-dot { animation: none !important; }
  .contact_icon { animation: none !important; }
  lottie-player { opacity: 0.95; }
}

/* ===== Acessibilidade — focus visível ===== */
a:focus-visible,
button:focus-visible,
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.lang-btn:focus-visible {
  outline: 2px solid var(--af-orange);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================================
   Mobile / responsivo
   Ordem: 991.98 → 767.98 → 575.98 → 419.98 (mais específico vence)
   ========================================================================= */

/* --- Tablet (≤ 991.98px) ------------------------------------------------- */
@media (max-width: 991.98px) {
  /* Nav drawer */
  .navbar-collapse {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-radius: var(--af-radius);
    margin-top: 12px;
    padding: 18px;
    box-shadow: var(--af-shadow-md);
  }
  .navbar.fixed-top:not(.nav-fixed) .navbar-collapse .nav-link { color: var(--af-ink) !important; }
  .navbar.fixed-top:not(.nav-fixed) .navbar-collapse #languageDropdown { color: var(--af-ink) !important; background: rgba(0,0,0,0.04); border-color: var(--af-line); }

  /* Touch targets ≥ 44px no drawer */
  .nav-link { padding: 12px 18px !important; font-size: 1rem; min-height: 44px; display: flex !important; align-items: center; }
  .nav-link::after { left: 18px; right: 18px; bottom: 6px; }
  .dropdown-item.lang-btn { padding: 12px 14px; min-height: 44px; display: flex; align-items: center; }
  .navbar-toggler { min-width: 44px; min-height: 44px; padding: 10px; }
  #languageDropdown { padding: 10px 16px !important; min-height: 44px; }

  .navbar-button { margin-top: 14px; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; }
  .navbar-button .btn-primary { width: 100%; }

  /* Hero — desabilitar jarallax/parallax em mobile (iOS Safari ignora fixed) */
  header#home {
    background-attachment: scroll !important;
    background-position: center top;
    background-size: cover;
  }
  header#home .jarallax-img,
  header#home > .jarallax-container,
  .jarallax > .jarallax-img {
    transform: none !important;
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .hero-tech-tags { gap: 8px; }
  .hero-tech-tag { font-size: 0.78rem; padding: 6px 12px; }
  .page-title {
    font-size: clamp(2rem, 8vw, 2.8rem) !important;
    overflow-wrap: anywhere;
    word-break: keep-all;
  }
  .header-text { font-size: 1.05rem; }
  header#home > .container { padding-top: 120px; padding-bottom: 60px; }
  .hero-scroll-hint { display: none; }

  /* About — evita quebra ruim de <br/> dentro do título */
  #about h2 br { display: none; }

  .promo-box { padding: 26px 22px; }
  .clients-marquee-track { gap: 36px; animation-duration: 60s; }
  .client-logo-item { min-width: 110px; height: 60px; }
  .client-logo-item img { max-height: 38px; }

  /* Rellax — desabilita parallax do svg About em mobile */
  .rellax { transform: none !important; }
}

/* --- Mobile médio (≤ 767.98px) ------------------------------------------ */
@media (max-width: 767.98px) {
  section.lg, .lg {
    padding-top: clamp(56px, 12vw, 80px);
    padding-bottom: clamp(56px, 12vw, 80px);
  }

  /* Suaviza/desativa blobs decorativos (origem de jitter horizontal em iOS) */
  section.lg.section-bg-grey::before,
  section.lg.section-bg-grey::after {
    width: 240px;
    height: 240px;
    opacity: 0.6;
  }

  /* Inputs com font-size 16px previne zoom automático no iOS Safari */
  .form-control,
  .custom-select,
  textarea.form-control {
    font-size: 16px !important;
    line-height: 1.5;
    padding: 14px 16px;
    min-height: 48px;
  }
  textarea.form-control { min-height: 140px; }

  /* Espaçamento confortável entre form-groups quando col-md-6 viram coluna */
  .form-group { margin-bottom: 14px; }

  /* Section titles e eyebrow proporcionais */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.1rem); }
  .section-eyebrow { font-size: 0.72rem; letter-spacing: 0.14em; padding: 5px 12px; }

  /* Stats — cards com altura uniforme em 2 colunas */
  .stat-card { padding: 18px 14px; }
  .stat-number { font-size: 1.7rem !important; }
  .stat-label { font-size: 0.74rem; }

  /* IA cards 2x2 já viram coluna única pelo Bootstrap; ajusta padding */
  .brain-icon-glow > i { font-size: 3rem !important; }
  .brain-icon-glow::before { width: 120px; height: 120px; }

  /* Container padding levemente menor */
  .container { padding-left: 20px; padding-right: 20px; }
}

/* --- Mobile pequeno (≤ 575.98px) ---------------------------------------- */
@media (max-width: 575.98px) {
  .container { padding-left: 18px; padding-right: 18px; }

  .navbar-brand { font-size: 1.15rem !important; gap: 8px; }
  .navbar-brand img { height: 28px !important; }

  /* Hero CTA + scroll: ocultar tags se houver, e CTA full-width opcional */
  .hero-tech-tags { margin-top: 26px; }

  /* Cards de serviços / IA */
  .promo-box { padding: 24px 20px; }
  .promo-big { width: 56px; height: 56px; margin-bottom: 18px; }
  .promo-icon { font-size: 1.4rem; }
  .promo-icon-bg .promo-icon { font-size: 1.55rem; }

  /* Section padding mais enxuto */
  section.lg, .lg {
    padding-top: clamp(48px, 14vw, 64px);
    padding-bottom: clamp(48px, 14vw, 64px);
  }

  /* WhatsApp float + back-top — sem invadir gestos de borda do iOS */
  .float-whatsapp { width: 56px; height: 56px; bottom: 14px; left: 14px; }
  .contact_icon { width: 56px; height: 56px; font-size: 26px; }
  #back-top {
    width: 44px; height: 44px;
    right: 14px; bottom: 14px;
  }

  /* Marquee mais compacto */
  .clients-marquee-track { gap: 28px; }
  .client-logo-item { min-width: 90px; height: 54px; }
  .client-logo-item img { max-height: 34px; }
  .clients-marquee-wrapper {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0, #000 4%, #000 96%, transparent 100%);
  }

  /* Footer */
  footer { padding: 24px 0; font-size: 0.9rem; }
}

/* --- Mobile muito pequeno (≤ 419.98px — iPhone SE, Androids pequenos) --- */
@media (max-width: 419.98px) {
  /* Hero — title menor e tech tags compactas */
  .page-title { font-size: clamp(1.8rem, 9vw, 2.3rem) !important; line-height: 1.12 !important; }
  .header-text { font-size: 1rem; }
  .hero-badge { font-size: 0.68rem; padding: 6px 12px 6px 10px; letter-spacing: 0.06em; }
  .hero-tech-tag { font-size: 0.72rem; padding: 5px 10px; gap: 6px; }
  .hero-tech-tag i { font-size: 0.85rem; }

  /* Stats — 1 coluna para evitar números espremidos */
  #stats-section > .col-6 { flex: 0 0 100% !important; max-width: 100% !important; }
  .stat-card { padding: 20px 18px; }
  .stat-number { font-size: 2rem !important; }

  /* IA halo mais discreto */
  .brain-icon-glow::before { width: 90px; height: 90px; }
  .brain-icon-glow > i { font-size: 2.6rem !important; }

  /* Dropdown idioma full-width no drawer */
  .dropdown-menu { width: 100%; }

  /* Section eyebrow não estoura */
  .section-eyebrow { letter-spacing: 0.1em; }

  /* Botões touch-friendly */
  .btn { padding: 12px 22px; font-size: 0.9rem; min-height: 44px; }
}

/* =========================================================================
   Touch devices — neutraliza hovers que ficam "presos" após tap no iOS
   ========================================================================= */
@media (hover: none) and (pointer: coarse) {
  .promo-box:hover {
    transform: none !important;
    box-shadow: var(--af-shadow-sm) !important;
    border-color: var(--af-line) !important;
  }
  .promo-box:hover::before { transform: scaleX(0) !important; }
  .promo-box:hover .promo-big {
    transform: none !important;
    background: linear-gradient(135deg, rgba(37,118,162,0.10), rgba(238,145,66,0.10)) !important;
  }
  .stat-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: var(--af-line) !important;
  }
  .client-logo-item:hover img {
    transform: none !important;
  }
  .btn-primary:hover {
    transform: none !important;
    background: var(--af-grad-brand) !important;
    box-shadow: 0 8px 24px rgba(26,86,123,0.25) !important;
  }
  .nav-link:hover::after { transform: scaleX(0) !important; }
  .nav-link:hover { color: var(--af-ink) !important; }
  .nav-link.active::after { transform: scaleX(1) !important; }
  .nav-link.active { color: var(--af-orange) !important; }
  #back-top:hover {
    transform: none !important;
    background: var(--af-grad-brand) !important;
  }
  .main-container img.rounded:hover {
    transform: none !important;
    box-shadow: var(--af-shadow-md) !important;
  }
  .hero-tech-tag:hover {
    background: rgba(255,255,255,0.06) !important;
    border-color: rgba(255,255,255,0.18) !important;
    transform: none !important;
  }
  .contact_icon:hover { transform: none !important; }
  .clients-marquee-wrapper:hover .clients-marquee-track { animation-play-state: running !important; }
}

/* Compat: forçar override de qualquer regra remanescente do template antigo */
html, body, p, a, li, div, span, h1, h2, h3, h4, h5, h6 {
  font-family: inherit;
}
body, p, a, li, span, div { font-family: "Roboto", system-ui, sans-serif; }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-family: "Montserrat", system-ui, sans-serif; }
.navbar-brand, .text-highlight { font-family: "Swiss721", "Montserrat", sans-serif; }
