/* ============================================================
   Studio Digital — Theme CSS
   Variáveis globais, reset, nav, footer, utilitários
   ============================================================ */

/* ── Variáveis de design (CSS Custom Properties) ─────────── */
:root {
  --bg:          #080810;
  --bg2:         #0d0d1a;
  --card:        #10101f;
  --border:      rgba(255,255,255,0.07);
  --accent:      #6ee7b7;
  --accent2:     #818cf8;
  --accent-glow: rgba(110,231,183,0.15);
  --text:        #f0f0f8;
  --muted:       #8888aa;
  --white:       #ffffff;

  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   20px;

  --shadow-glow: 0 0 40px rgba(110,231,183,0.25);
  --shadow-glow-hover: 0 0 60px rgba(110,231,183,0.35);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* Noise overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ── Blobs decorativos ──────────────────────────────────────── */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.blob-1 { width: 600px; height: 600px; background: rgba(110,231,183,0.06); top: -200px; right: -200px; }
.blob-2 { width: 500px; height: 500px; background: rgba(129,140,248,0.06); bottom: 10%; left: -150px; }

/* ── Navegação Principal ────────────────────────────────────── */
.main-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 0 40px;
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: rgba(8,8,16,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.nav-logo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--white);
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
}
.nav-logo span { color: var(--accent); }
.nav-logo img { max-height: 40px; width: auto; }

.nav-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* Menu gerado pelo WordPress */
.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none;
}
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.9rem; font-weight: 400;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links .current-menu-item > a { color: var(--white); }

/* Botão CTA no menu */
.nav-links .menu-cta > a,
.nav-links li:last-child > a {
  background: var(--accent);
  color: #080810 !important;
  padding: 8px 20px;
  border-radius: 40px;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  transition: opacity 0.2s !important;
}
.nav-links .menu-cta > a:hover,
.nav-links li:last-child > a:hover { opacity: 0.85; }

/* ── Hamburger Mobile ───────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: transparent;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Área principal (Elementor injeta aqui) ─────────────────── */
.site-main {
  padding-top: 72px; /* compensar nav fixed */
  position: relative; z-index: 1;
}
.elementor-page { padding-top: 72px; }

/* ── Botões globais ─────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent);
  color: #080810;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none; cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-glow-hover); }

.btn-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  background: transparent;
  color: var(--white);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.95rem;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }

/* ── Section labels ─────────────────────────────────────────── */
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--accent);
  display: inline-block;
}

/* ── Headings padrão ─────────────────────────────────────────── */
.elementor-widget-heading h1,
.elementor-widget-heading h2,
h1, h2 {
  font-family: var(--font-display);
  color: var(--white);
}

/* ── Divider linha ───────────────────────────────────────────── */
.divider {
  width: 100%; height: 1px;
  background: var(--border);
  max-width: 1100px;
  margin: 0 auto;
  position: relative; z-index: 1;
}

/* ── Animações ───────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

/* ── WhatsApp Float ──────────────────────────────────────────── */
.wa-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
  width: 52px; height: 52px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none;
  animation: fadeUp 1s 0.8s ease both;
  transition: transform 0.2s;
}
.wa-float:hover { transform: scale(1.1); }

/* ── Footer ──────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px;
  position: relative; z-index: 1;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 12px;
  max-width: 280px;
  line-height: 1.6;
  font-weight: 300;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.03em;
}

.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1100px;
  margin: 40px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom p { font-size: 0.8rem; color: var(--muted); }

.footer-legal { display: flex; gap: 20px; }
.footer-legal a {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-legal a:hover { color: var(--white); }

/* ── Elementor overrides ─────────────────────────────────────── */
.elementor-section { position: relative; z-index: 1; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .main-nav { padding: 0 20px; }
  .nav-links { display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: rgba(8,8,16,0.98);
    border-bottom: 1px solid var(--border); padding: 16px 0; }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 14px 24px; font-size: 1rem; }
  .hamburger { display: flex; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer { padding: 40px 24px; }
}
