/* ============================================================
   TECMOTOS – global.css
   Estilos compartilhados por todas as páginas.
   Design system: cores, tipografia, espaçamento, componentes.
   Para alterar cores principais, edite as variáveis abaixo:
   ============================================================ */

:root {
  /* Cores de marca (preservadas) */
  --preto:        #0a0a0a;
  --preto-2:      #060606;
  --vermelho:     #cc0000;
  --vermelho-2:   #ff3b3b;
  --branco:       #ffffff;
  --cinza:        #141414;
  --cinza-2:      #191919;
  --cinza-claro:  #2a2a2a;
  --texto-suave:  #c2c2c2;   /* contraste reforçado (AA) sobre fundo escuro */
  --texto-fraco:  #86868f;

  /* WhatsApp (cor própria do serviço – mantida por reconhecimento de marca) */
  --wpp:          #25D366;
  --wpp-escuro:   #1ebe5d;

  /* Tipografia */
  --fonte:        'Inter', -apple-system, sans-serif;

  /* Espaçamento em escala (8pt grid) */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  --transicao:    0.3s cubic-bezier(.22,.9,.32,1);
  --transicao-r:  0.5s cubic-bezier(.22,.9,.32,1);
  --radius-sm:    6px;
  --radius:       12px;
  --radius-lg:    20px;
  --sombra:       0 4px 24px rgba(0,0,0,0.4);
  --sombra-lg:    0 20px 60px rgba(0,0,0,0.55);
  --anel-foco:    0 0 0 3px rgba(204,0,0,0.45);
}

/* ── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--fonte);
  background: var(--preto);
  color: var(--branco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; }

/* Acessibilidade – foco visível em qualquer elemento interativo */
a:focus-visible,
button:focus-visible {
  outline: none;
  box-shadow: var(--anel-foco);
  border-radius: var(--radius-sm);
}

/* Sprite de ícones reutilizáveis (evita SVG duplicado no HTML) */
.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ── Utilitários / Grid ───────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--sp-9) 0;
}
.section--alt   { background: var(--cinza); }
.section--dark  { background: var(--preto); }
.section--black { background: var(--preto-2); }
.section--center { text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--vermelho-2);
  margin-bottom: var(--sp-3);
}
.eyebrow::before {
  content: '';
  width: 22px; height: 2px;
  background: var(--vermelho);
  display: inline-block;
}

.section-title {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.section-title span { color: var(--vermelho); }
.section-subtitle {
  color: var(--texto-suave);
  font-size: 1rem;
  margin-bottom: var(--sp-8);
  max-width: 560px;
  line-height: 1.7;
}
.section--center .section-subtitle { margin-left: auto; margin-right: auto; }

/* ── Botões ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform var(--transicao), box-shadow var(--transicao), background var(--transicao);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-whatsapp {
  background: linear-gradient(135deg, #2be374, var(--wpp));
  color: #fff;
  box-shadow: 0 8px 26px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { box-shadow: 0 10px 34px rgba(37,211,102,0.5); }

.btn-vermelho {
  background: linear-gradient(135deg, var(--vermelho-2), var(--vermelho));
  color: #fff;
  box-shadow: 0 8px 26px rgba(204,0,0,0.35);
}
.btn-vermelho:hover { box-shadow: 0 10px 34px rgba(204,0,0,0.5); }

.btn-outline {
  background: transparent;
  color: var(--branco);
  border: 2px solid rgba(255,255,255,0.35);
}
.btn-outline:hover { background: var(--branco); color: var(--preto); border-color: var(--branco); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Botão WhatsApp com leve pulso para chamar atenção */
.btn-pulse { position: relative; }
.btn-pulse::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.55);
  animation: pulse-wpp 2.4s infinite;
  pointer-events: none;
}
@keyframes pulse-wpp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 14px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ── Header ───────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transicao), background var(--transicao);
}
#header.scrolled {
  box-shadow: 0 4px 30px rgba(0,0,0,0.6);
  background: rgba(8,8,8,0.98);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.logo img { height: 44px; width: auto; object-fit: contain; }
nav ul { display: flex; gap: 32px; }
nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--texto-suave);
  transition: color var(--transicao);
  position: relative;
  padding: 4px 0;
}
nav a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--vermelho);
  transition: width var(--transicao);
}
nav a:hover,
nav a.active { color: var(--branco); }
nav a:hover::after,
nav a.active::after { width: 100%; }
.header-cta { display: flex; align-items: center; gap: 16px; }
.btn-wpp-header {
  background: var(--wpp);
  color: #fff;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background var(--transicao), transform var(--transicao), box-shadow var(--transicao);
  box-shadow: 0 4px 16px rgba(37,211,102,0.3);
}
.btn-wpp-header:hover { background: var(--wpp-escuro); transform: translateY(-1px); box-shadow: 0 6px 22px rgba(37,211,102,0.45); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--branco);
  transition: all var(--transicao);
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ── Hero – textos compartilhados entre páginas ───────── */
.hero-title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -1px;
  margin-bottom: var(--sp-4);
}
.hero-title span { color: var(--vermelho); }
.hero-subtitle {
  font-size: 1.08rem;
  color: var(--texto-suave);
  margin-bottom: var(--sp-7);
  line-height: 1.75;
  max-width: 560px;
}
.hero-btns { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: var(--sp-8);
  padding-top: var(--sp-6);
  border-top: 1px solid rgba(255,255,255,0.1);
}
.hero-stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--vermelho);
  line-height: 1;
}
.hero-stat-label {
  font-size: 0.8rem;
  color: var(--texto-suave);
  margin-top: 4px;
}

/* Selo de credibilidade acima do H1 */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  color: var(--branco);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 100px;
  margin-bottom: var(--sp-5);
}
.hero-badge svg { width: 15px; height: 15px; color: #ffc94d; flex-shrink: 0; }

/* ── Tag de destaque (usada em ambas as páginas) ──────── */
.curso-tag {
  display: inline-block;
  background: rgba(204,0,0,0.15);
  border: 1px solid rgba(204,0,0,0.4);
  color: #ff4444;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: var(--sp-4);
}

/* ── Cartão base reutilizável ──────────────────────────── */
.card {
  background: var(--cinza-2);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius);
  transition: transform var(--transicao), box-shadow var(--transicao), border-color var(--transicao);
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(204,0,0,0.5);
  box-shadow: 0 16px 40px rgba(0,0,0,0.45), 0 0 0 1px rgba(204,0,0,0.2);
}

/* ── Animações de entrada ─────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn-pulse::after { animation: none; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ── Footer ───────────────────────────────────────────── */
footer {
  background: var(--preto-2);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: var(--sp-8) 0 var(--sp-5);
}
.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--sp-7);
  padding-bottom: var(--sp-7);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-logo { margin-bottom: var(--sp-4); }
.footer-logo img { height: 40px; }
.footer-desc { font-size: 0.9rem; color: var(--texto-suave); line-height: 1.75; max-width: 300px; margin-bottom: var(--sp-5); }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--branco);
  margin-bottom: var(--sp-5);
}
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a {
  font-size: 0.9rem;
  color: var(--texto-suave);
  transition: color var(--transicao);
}
.footer-col a:hover { color: var(--vermelho-2); }
.footer-col p { font-size: 0.9rem; color: var(--texto-suave); line-height: 1.8; }
.footer-social { display: flex; gap: 10px; margin-top: var(--sp-4); }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transicao), border-color var(--transicao), transform var(--transicao);
}
.footer-social a:hover { background: var(--vermelho); border-color: var(--vermelho); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; color: var(--branco); }
.footer-bottom {
  padding-top: var(--sp-5);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: var(--texto-fraco); }
.footer-bottom span { color: var(--vermelho); }

/* ── WhatsApp Flutuante ───────────────────────────────── */
.wpp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 999;
  background: var(--wpp);
  width: 62px; height: 62px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform var(--transicao), box-shadow var(--transicao);
}
.wpp-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,0.5);
  animation: pulse-wpp 2.6s infinite;
}
.wpp-float:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.65); }
.wpp-float svg { width: 30px; height: 30px; color: #fff; }
.wpp-float-tooltip {
  position: absolute;
  right: 74px;
  background: #fff;
  color: #1a1a1a;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateX(8px);
  transition: all var(--transicao);
  pointer-events: none;
}
.wpp-float:hover .wpp-float-tooltip { opacity: 1; transform: translateX(0); }

/* ── Depoimentos (compartilhado, usado na home) ───────── */
.depoimentos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-5);
}
.card-depoimento {
  padding: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.depoimento-estrelas { display: flex; gap: 3px; }
.depoimento-estrelas svg { width: 16px; height: 16px; color: #ffc94d; }
.card-depoimento p.depoimento-texto {
  color: #e8e8e8;
  font-size: 0.95rem;
  line-height: 1.75;
  flex-grow: 1;
}
.depoimento-autor { display: flex; align-items: center; gap: 12px; margin-top: var(--sp-2); }
.depoimento-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--vermelho-2), var(--vermelho));
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  flex-shrink: 0;
}
.depoimento-autor strong { font-size: 0.9rem; display: block; }
.depoimento-autor span { font-size: 0.78rem; color: var(--texto-fraco); }

/* ── Responsivo Global ────────────────────────────────── */
@media (max-width: 992px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
  .depoimentos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  nav {
    display: none;
    position: fixed;
    top: 76px; left: 0; right: 0;
    background: rgba(8,8,8,0.98);
    padding: 24px;
    flex-direction: column;
    max-height: calc(100vh - 76px);
    overflow-y: auto;
  }
  nav.open { display: flex; }
  nav ul { flex-direction: column; gap: 20px; }
  .hamburger { display: flex; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .footer-top { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .depoimentos-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-8) 0; }
}
@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { justify-content: center; }
}
