/* ============================================================
   GLOBAL.CSS — Estilos base unificados (todas as versões)
   ------------------------------------------------------------
   ✔ Layout, espaçamento e fontes idênticos para todos os países
   ✔ Cores dinâmicas via variáveis (:root)
   ✔ Totalmente responsivo e otimizado
   ✔ Personalização de cor feita apenas via arquivos locais (ex: tr.css)
   ============================================================ */

/* ==================== 🎨 VARIÁVEIS DE COR ==================== */
:root {
  --cor-primaria: #2d4bff;
  --cor-gradiente-inicio: #4e54c8;
  --cor-gradiente-fim: #8f94fb;
  --cor-botao-hover: #2141ff;
}

/* ==================== 1️⃣ RESET & BASE ==================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: 'Mulish', sans-serif;
  color: #222;
  background-color: #fff;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
}

p {
  line-height: 1.6;
  margin-bottom: 1rem;
  color: #555;
}

/* ==================== 2️⃣ ANIMAÇÕES ==================== */
@keyframes fadeIn {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  animation: fadeIn 0.9s ease 0.1s forwards;
}
.delay-1 { animation-delay: 0.25s; }
.delay-2 { animation-delay: 0.45s; }

/* ==================== 3️⃣ NAVBAR ==================== */
.navbar {
  padding: 0.4rem 1rem !important;
  background: #fff;
  transition: all 0.3s ease;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.navbar-brand img {
  width: 26px;
  margin-right: 6px;
}

.navbar-brand b {
  color: #1f1f1f;
  font-weight: 700;
}

/* ==================== 4️⃣ HERO ==================== */
.masthead {
  padding-top: 5.2rem;
  padding-bottom: 2rem;
  background: linear-gradient(180deg, #f8f9fc 0%, #eef0fa 100%);
  position: relative;
  text-align: center;
}

@media (min-width: 992px) {
  .masthead {
    text-align: left;
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

.masthead h1 {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  margin-bottom: 1rem;
  line-height: 1.1;
}

.masthead p.lead {
  font-size: 1.05rem;
  color: #6b6b6b;
  margin-bottom: 1.6rem;
}

/* ==================== 5️⃣ FORMULÁRIO ==================== */
form {
  background: #fff;
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.5rem;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.06);
  max-width: 100%;
  transition: box-shadow 0.25s ease;
}

form:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

@media (min-width: 992px) {
  form {
    background: transparent;
    box-shadow: none;
    padding: 0;
  }
}

.form-control {
  border-radius: 12px;
  border: 1px solid #ddd;
  font-size: 1rem;
  padding: 0.75rem 1rem;
  transition: all 0.25s ease;
}

.form-control:focus {
  border-color: var(--cor-primaria);
  box-shadow: 0 0 0 4px rgba(45, 75, 255, 0.15);
  transform: scale(1.01);
}

.form-floating label {
  color: #777;
}

.form-check-label {
  font-size: 0.95rem;
  color: #444;
}

small.text-muted {
  color: #5e5e5e !important;
  font-size: 0.8rem;
  display: block;
}

#submitButton {
  margin-top: 0.4rem;
}

/* ==================== 6️⃣ BOTÃO CTA ==================== */
.btn-primary {
  background-color: var(--cor-primaria);
  border: none;
  color: #fff;
  font-weight: 800;
  padding: 0.9rem 1rem;
  border-radius: 999px;
  font-size: 1.1rem;
  transition: all 0.25s ease;
  box-shadow: 0 10px 22px rgba(45, 75, 255, 0.3);
}

.btn-primary:hover {
  background-color: var(--cor-botao-hover);
  transform: scale(1.03);
  box-shadow: 0 12px 28px rgba(45, 75, 255, 0.35);
}

.btn-primary:active {
  transform: scale(0.97) translateY(1px);
  box-shadow: 0 6px 14px rgba(45, 75, 255, 0.25);
}

/* ==================== 7️⃣ IMAGEM MOBILE ==================== */
.hero-mobile-people {
  display: block;
  margin: 2rem auto 0.5rem auto;
  width: 100%;
  max-width: 260px;
  height: auto;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  object-fit: cover;
  opacity: 0;
  transform: scale(0.96);
  animation: fadeIn 1s ease-out forwards 0.3s;
}

/* ==================== 8️⃣ PROVA SOCIAL ==================== */
.bg-gradient-primary-to-secondary {
  background-image: linear-gradient(135deg, var(--cor-gradiente-inicio), var(--cor-gradiente-fim));
  color: #fff;
  text-align: center;
}

.social-proof-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.bg-gradient-primary-to-secondary .h2 {
  font-weight: 700;
  font-size: 1.6rem;
  margin-bottom: 1rem;
  text-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.bg-gradient-primary-to-secondary p {
  color: #f0f0f0;
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto 1.2rem;
}

/* Avatares */
.avatars {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}
.avatars img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px solid #fff;
  object-fit: cover;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.avatars img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.55);
}

/* ==================== 9️⃣ FOOTER ==================== */
footer {
  background-color: #000;
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  padding: 1.2rem 0;
  text-align: center;
}

/* ==================== 🔟 RESPONSIVIDADE ==================== */
@media (max-width: 991.98px) {
  .masthead h1 {
    font-size: 1.7rem;
    line-height: 1.25;
  }
  .btn-primary {
    width: 100%;
  }
  .navbar-brand b {
    font-size: 1rem;
  }
  .navbar img {
    width: 22px;
  }
}

/* ==================== 🍎 CORREÇÃO SAFARI iOS ==================== */
@supports (-webkit-touch-callout: none) {
  form .row { display: block !important; }
}

/* ==================== 💨 PERFORMANCE ==================== */
img[loading="lazy"] {
  content-visibility: auto;
  will-change: transform;
  transform: translateZ(0);
}