/* ============================================================
   GLOBAL.CSS — Reset, tipografia, botões e componentes
   compartilhados entre todas as páginas.
   ============================================================ */

/* ── Reset base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg-dark);
  color: var(--white);
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

/* ── Seção base ── */
section { padding: 6rem 5%; }

/* ── Tag de categoria (label acima de títulos) ── */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--purple-light);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.section-tag::before {
  content: '';
  display: block;
  width: 28px;
  height: 2px;
  background: var(--purple-light);
  border-radius: 2px;
}

/* ── Título de seção ── */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.section-title .accent,
h1 .accent,
h2 .accent {
  background: var(--gradient-glow);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Breadcrumb ── */
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  color: var(--text-light);
}
.breadcrumb a {
  color: var(--purple-light);
  text-decoration: none;
}
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb i { font-size: 0.6rem; color: var(--text-muted); }

/* ──────────────────────────────────────────
   BOTÕES
────────────────────────────────────────── */

/* Botão primário (roxo gradiente) */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--gradient);
  color: var(--white);
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(139, 68, 247, 0.4);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(139, 68, 247, 0.55);
}

/* Botão contorno branco (sobre fundos escuros) */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.95rem 2rem;
  border-radius: var(--radius-xl);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}
.btn-outline:hover {
  border-color: var(--purple-light);
  background: rgba(139, 68, 247, 0.08);
}

/* Botão branco (sobre fundo roxo/gradiente) */
.btn-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  color: var(--purple-dark);
  padding: 0.95rem 2.2rem;
  border-radius: var(--radius-xl);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s, box-shadow 0.25s;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}
.btn-white:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}

/* Botão contorno branco (sobre fundo gradiente) */
.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  padding: 0.95rem 2rem;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.25s, background 0.25s;
}
.btn-outline-white:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.1);
}

/* ──────────────────────────────────────────
   CHIP / TAG DE SERVIÇO
────────────────────────────────────────── */
.tag {
  background: rgba(139, 68, 247, 0.1);
  border: 1px solid rgba(139, 68, 247, 0.2);
  color: var(--purple-light);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-xl);
  font-size: 0.75rem;
  font-weight: 500;
}

/* ──────────────────────────────────────────
   HERO DE PÁGINA INTERNA (servicos / contato)
────────────────────────────────────────── */
.page-hero {
  padding: 10rem 5% 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 70% at 50% 0%, rgba(139, 68, 247, 0.2) 0%, transparent 70%);
}
.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.2rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--text-light);
  line-height: 1.75;
  font-weight: 300;
}

/* ──────────────────────────────────────────
   SEÇÃO CTA (fundo gradiente roxo)
────────────────────────────────────────── */
.cta-section {
  background: var(--gradient);
  text-align: center;
  padding: 7rem 5%;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -20%;
  width: 80%; height: 200%;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
}
.cta-section::after {
  content: '';
  position: absolute;
  bottom: -50%; right: -20%;
  width: 80%; height: 200%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 50%;
}
.cta-inner {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 0 auto;
}
.cta-inner h2 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 1.2rem;
}
.cta-inner p {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ──────────────────────────────────────────
   ANIMAÇÕES DE ENTRADA AO ROLAR (Reveal)
────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* ──────────────────────────────────────────
   MOBILE NAV OVERLAY
────────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(13, 10, 26, 0.97);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  color: var(--white);
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 600;
  font-family: var(--font-heading);
  transition: color 0.2s;
}
.mobile-nav a:hover { color: var(--purple-light); }

.mobile-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--white);
  cursor: pointer;
  background: none;
  border: none;
}
