*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0a0a0f;
  --bg2: #0e0e16;
  --bg3: #12121c;
  --surface: rgba(255,255,255,0.04);
  --surface2: rgba(255,255,255,0.07);
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --purple: #7c3aed;
  --purple-light: #9d6bf0;
  --purple-glow: rgba(124,58,237,0.25);
  --orange: #f97316;
  --orange-light: #fb923c;
  --text: #eeeef5;
  --text2: #b0b0c0;
  --muted: #505065;
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--purple); border-radius: 2px; }
::selection { background: var(--purple); color: #fff; }

/* ── NAV ── */
nav#main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 20px 48px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s;
  border-bottom: 1px solid transparent;
}
nav#main-nav.scrolled {
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em;
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--text);
}
.nav-logo span { color: var(--purple); }
.nav-links {
  display: flex; align-items: center; gap: 32px; list-style: none;
}
.nav-links a {
  color: var(--text2); font-size: 0.875rem; font-weight: 500;
  text-decoration: none; letter-spacing: 0.01em; transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--purple); color: #fff !important;
  padding: 9px 20px; border-radius: 8px; font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta:hover { background: var(--purple-light) !important; transform: translateY(-1px); }

@media (max-width: 768px) {
  nav#main-nav { padding: 16px 24px; }
  .nav-links { display: none; }
}

/* ── BREADCRUMB ── */
.breadcrumb {
  padding: 100px 48px 0;
  font-size: 0.8rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--purple-light); }
.breadcrumb-sep { opacity: 0.4; }
.breadcrumb-current { color: var(--text2); }

@media (max-width: 768px) {
  .breadcrumb { padding: 84px 24px 0; }
}

/* ── HERO DA PÁGINA DE SERVIÇO ── */
.servico-hero {
  padding: 32px 48px 80px;
  position: relative; overflow: hidden;
}
.servico-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(124,58,237,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.servico-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-light);
  margin-bottom: 16px;
}
.servico-h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 20px; max-width: 760px;
}
.servico-lead {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--text2); font-weight: 300; line-height: 1.7;
  max-width: 640px; margin-bottom: 32px;
}
.servico-preco-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 100px; padding: 8px 18px;
  font-size: 0.85rem; font-weight: 600; color: var(--orange-light);
}

@media (max-width: 768px) {
  .servico-hero { padding: 24px 24px 60px; }
}

/* ── CORPO DO ARTIGO ── */
.servico-body {
  max-width: 760px; margin: 0 auto;
  padding: 0 48px 80px;
}
.servico-body h2 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.15;
  margin: 56px 0 20px; color: var(--text);
}
.servico-body h2:first-child { margin-top: 0; }
.servico-body h3 {
  font-family: var(--font-display);
  font-size: 1.1rem; font-weight: 700; letter-spacing: -0.01em;
  margin: 28px 0 10px; color: var(--text);
}
.servico-body p {
  font-size: 0.975rem; color: var(--text2); line-height: 1.8;
  font-weight: 300; margin-bottom: 18px;
}
.servico-body strong { color: var(--text); font-weight: 600; }

@media (max-width: 768px) {
  .servico-body { padding: 0 24px 60px; }
}

/* ── PROCESSO (STEPS) ── */
.processo-steps {
  display: flex; flex-direction: column; gap: 0;
  margin: 24px 0 40px;
  border: 1px solid var(--border); border-radius: 16px;
  overflow: hidden;
}
.step-item {
  display: grid; grid-template-columns: 52px 1fr;
  align-items: start; gap: 0;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  transition: background 0.2s;
}
.step-item:last-child { border-bottom: none; }
.step-item:hover { background: var(--surface2); }
.step-num {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800;
  color: var(--purple); line-height: 1; padding-top: 2px;
}
.step-content h3 { margin: 0 0 6px; font-size: 1rem; }
.step-content p { margin: 0; font-size: 0.875rem; }

@media (max-width: 768px) {
  .step-item { padding: 20px 20px; }
}

/* ── TECH PILLS ── */
.tech-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 40px;
}
.tech-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 100px; padding: 7px 14px;
  font-size: 0.82rem; font-weight: 500; color: var(--text2);
  transition: border-color 0.2s, color 0.2s;
}
.tech-pill:hover { border-color: var(--purple); color: var(--text); }
.tech-pill img { width: 16px; height: 16px; object-fit: contain; }

/* ── BENEFITS LIST ── */
.benefits-list {
  display: flex; flex-direction: column; gap: 12px;
  margin: 20px 0 40px;
}
.benefit-item {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 0.95rem; color: var(--text2); line-height: 1.6;
}
.benefit-icon {
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(124,58,237,0.15); border: 1px solid rgba(124,58,237,0.3);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 2px;
  font-size: 0.7rem; color: var(--purple-light);
}

/* ── FAQ ── */
.faq-section { margin: 24px 0 40px; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  margin-bottom: 10px; overflow: hidden;
  background: var(--surface);
}
.faq-question {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 18px 22px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-body); font-size: 0.95rem; font-weight: 600;
  color: var(--text); transition: color 0.2s;
}
.faq-question:hover { color: var(--purple-light); }
.faq-chevron {
  flex-shrink: 0; transition: transform 0.3s;
  color: var(--muted);
}
.faq-item.open .faq-chevron { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s;
  padding: 0 22px;
}
.faq-item.open .faq-answer {
  max-height: 400px;
  padding: 0 22px 18px;
}
.faq-answer p {
  font-size: 0.9rem; color: var(--text2); line-height: 1.75; font-weight: 300; margin: 0;
}

/* ── CTA BLOCO ── */
.servico-cta {
  background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(249,115,22,0.06));
  border: 1px solid rgba(124,58,237,0.2);
  border-radius: 20px; padding: 48px 40px;
  text-align: center; margin: 56px 0;
}
.servico-cta h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800; letter-spacing: -0.03em;
  margin: 0 0 12px !important;
}
.servico-cta p {
  font-size: 0.95rem; color: var(--text2); max-width: 440px;
  margin: 0 auto 28px !important; font-weight: 300;
}
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--purple); color: #fff; font-weight: 600; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 10px; text-decoration: none; border: none; cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.btn-primary:hover {
  background: var(--purple-light); transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--purple-glow);
}
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); color: var(--text); font-weight: 500; font-size: 0.95rem;
  padding: 14px 28px; border-radius: 10px; text-decoration: none;
  border: 1px solid var(--border2); cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  font-family: var(--font-body);
}
.btn-ghost:hover { background: var(--surface2); transform: translateY(-2px); }

@media (max-width: 600px) {
  .servico-cta { padding: 36px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
}

/* ── SERVIÇOS RELACIONADOS ── */
.servicos-relacionados {
  padding: 64px 48px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}
.servicos-relacionados h2 {
  font-family: var(--font-display);
  font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 32px; text-align: center;
}
.relacionados-grid {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.relacionado-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 22px;
  text-decoration: none; display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.25s, transform 0.2s, background 0.2s;
}
.relacionado-card:hover {
  border-color: var(--border2); background: var(--surface2);
  transform: translateY(-3px);
}
.relacionado-icon { font-size: 1.4rem; }
.relacionado-nome {
  font-family: var(--font-display);
  font-size: 0.95rem; font-weight: 700; color: var(--text);
}
.relacionado-preco { font-size: 0.78rem; color: var(--orange-light); font-weight: 600; }

@media (max-width: 900px) { .relacionados-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .relacionados-grid { grid-template-columns: 1fr; }
  .servicos-relacionados { padding: 48px 24px; }
}

/* ── FOOTER ── */
footer.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 48px 40px;
  background: var(--bg);
}
.footer-inner {
  max-width: 960px; margin: 0 auto;
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  margin-bottom: 40px;
}
.footer-brand .footer-logo {
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.15rem; color: var(--text);
  letter-spacing: -0.02em; display: block; margin-bottom: 12px;
  text-decoration: none;
}
.footer-brand .footer-logo span { color: var(--purple); }
.footer-brand p { font-size: 0.85rem; color: var(--muted); line-height: 1.6; max-width: 220px; }
.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text2); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.85rem; color: var(--muted); text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--purple-light); }
.footer-bottom {
  max-width: 960px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 24px;
  font-size: 0.78rem; color: var(--muted);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  footer.site-footer { padding: 48px 24px 32px; }
}
@media (max-width: 500px) {
  .footer-inner { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ── WHATSAPP FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 200;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wa-pulse 3s ease-in-out infinite;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
@keyframes wa-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50% { box-shadow: 0 4px 30px rgba(37,211,102,0.6), 0 0 0 8px rgba(37,211,102,0.1); }
}
.wa-tooltip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text2); font-size: 0.78rem; font-weight: 500;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.wa-float:hover .wa-tooltip { opacity: 1; }

/* ── SECTION TAG ── */
.section-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--purple-light); margin-bottom: 12px;
}

/* ────────────────────────────────────────────────────
   GSAP SUPPORT STYLES (servico-gsap.js)
   ──────────────────────────────────────────────────── */

/* Page fade-in: começa invisível até o JS marcar gsap-ready */
body { opacity: 1; }
body:not(.gsap-ready) .servico-hero,
body:not(.gsap-ready) .breadcrumb { opacity: 0; }

/* Split-words: máscara para reveal */
.sw-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.05;
  padding-bottom: 0.05em;
}
.sw-word {
  display: inline-block;
  will-change: transform;
}
/* H1/H2 precisam permitir descenders */
.servico-h1 .sw-mask,
.servico-body h2 .sw-mask { padding-bottom: 0.12em; line-height: 1.1; }

/* Scroll progress bar */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 999;
  background: transparent; pointer-events: none;
}
.scroll-progress-fill {
  height: 100%; width: 100%;
  transform-origin: left center; transform: scaleX(0);
  background: linear-gradient(90deg, var(--purple), var(--orange));
  box-shadow: 0 0 8px var(--purple-glow);
}

/* Cursor follower */
.cursor-glow {
  position: fixed; top: 0; left: 0;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.16), transparent 60%);
  pointer-events: none; z-index: 1; mix-blend-mode: screen;
  transition: width 0.3s, height 0.3s;
  will-change: transform;
}
.cursor-glow--big {
  width: 520px; height: 520px;
}
@media (pointer: coarse) { .cursor-glow { display: none; } }

/* Hero aura */
.servico-hero { isolation: isolate; }
.hero-aura {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.hero-aura-blob {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  filter: blur(80px); opacity: 0.6;
  will-change: transform;
}
.hero-aura-blob--1 {
  background: radial-gradient(circle, rgba(124,58,237,0.55), transparent 70%);
  top: -120px; left: 10%;
}
.hero-aura-blob--2 {
  background: radial-gradient(circle, rgba(249,115,22,0.35), transparent 70%);
  top: 40%; right: -100px;
}
.hero-aura-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 60% 70% at 50% 30%, black 0%, transparent 80%);
}
.servico-hero > *:not(.hero-aura) { position: relative; z-index: 1; }

/* Processo: linha vertical + fill por scrub */
.processo-steps.with-line { position: relative; }
.processo-line {
  position: absolute;
  left: 53px;       /* alinhado com center dos números (28+25) */
  top: 50px; bottom: 50px;
  width: 1px;
  background: var(--border2);
  pointer-events: none;
  overflow: hidden;
}
.processo-line-fill {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, var(--purple), var(--orange));
  transform-origin: top center; transform: scaleY(0);
}
@media (max-width: 768px) {
  .processo-line { left: 41px; }
}
.step-item { position: relative; transition: background 0.3s; }
.step-num {
  position: relative; z-index: 1;
  font-variant-numeric: tabular-nums;
}

/* CTA glow camada */
.servico-cta { position: relative; overflow: hidden; isolation: isolate; }
.cta-glow {
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 50%, rgba(124,58,237,0.25), transparent 60%);
  opacity: 0.8; pointer-events: none; z-index: 0;
  transition: background 0.15s ease-out;
}
.servico-cta > * { position: relative; z-index: 1; }

/* Related cards prep para tilt 3D */
.relacionado-card {
  transform-style: preserve-3d;
  will-change: transform;
}

/* Nav hide on scroll-down */
nav#main-nav { transition: transform 0.35s, background 0.4s, backdrop-filter 0.4s, border-color 0.4s; }
nav#main-nav.nav-hidden { transform: translateY(-100%); }

/* Benefit icon: garantir tamanho e centralização do SVG */
.benefit-icon svg { display: block; }

/* Acessibilidade: reduzir motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
  .scroll-progress, .cursor-glow, .hero-aura { display: none; }
}
