/* ============================================================
   style-global.css
   Reset · Variáveis CSS · Utilitários · Componentes globais
   (nav, botões, footer, wa-float, reveal)
   ============================================================ */

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}


/* ── VARIÁVEIS ── */
:root {
  --bg:              #0e1d21;
  --bg2:             #0d1120;
  --bg3:             #111827;
  --border:          rgba(255,255,255,0.07);
  --border-light:    rgba(255,255,255,0.12);
  --text:            #f0f4ff;
  --muted:           rgba(255,255,255,0.65);
  --dim:             rgba(255,255,255,0.50);
  --g1:              #3dffa0;
  --g2:              #00e5ff;
  --gradient:        linear-gradient(135deg, #3dffa0 0%, #00c8e8 50%, #00e5ff 100%);
  --gradient-text:   linear-gradient(135deg, #3dffa0, #00e5ff);
}


/* ── UTILITÁRIOS ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2.5rem;
}

.grad-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.grad-bar {
  height: 2px;
  background: var(--gradient);
  flex-shrink: 0;
}

strong { color: rgba(255,255,255,1.0); font-weight: 600; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--g2);
  margin-bottom: 0.9rem;
}

.section-tag::before {
  content: '';
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--gradient);
}

.section-h {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -0.01em;
}


/* ── BOTÕES ── */
.btn-grad {
  background: var(--gradient);
  color: #080c14;
  padding: 0.82rem 1.8rem;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  box-shadow: 0 0 28px rgba(0,229,255,0.2);
}

.btn-grad:hover {
  opacity: 0.88;
  transform: translateY(-1px);
  box-shadow: 0 0 38px rgba(0,229,255,0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  padding: 0.82rem 1.8rem;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--border-light);
  transition: all 0.2s;
}

.btn-ghost:hover {
  border-color: rgba(0,229,255,0.3);
  color: var(--g2);
}


/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  background: rgba(14,29,33,0.50);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--gradient);
  color: #080c14;
  padding: 0.58rem 1.3rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  border-radius: 4px;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}

.nav-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}


/* ── WA FLOAT ── */
.wa-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 800;
  background: var(--gradient);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 0 30px rgba(0,229,255,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
}

.wa-float:hover {
  transform: scale(1.08);
  box-shadow: 0 0 40px rgba(0,229,255,0.4);
}

.wa-float svg {
  width: 24px;
  height: 24px;
  fill: #080c14;
}


/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg2);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 3rem;
  align-items: center;
}

.footer-logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-info {
  font-size: 0.74rem;
  color: var(--dim);
  margin-top: 0.4rem;
}

.footer-nav {
  display: flex;
  gap: 1.8rem;
  list-style: none;
}

.footer-nav a {
  color: var(--dim);
  text-decoration: none;
  font-size: 0.76rem;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-nav a:hover { color: var(--text); }

.footer-social { display: flex; gap: 0.7rem; }

.social-btn {
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
  text-decoration: none;
  transition: all 0.2s;
  font-size: 0.72rem;
  font-weight: 700;
}

.social-btn:hover {
  border-color: var(--g2);
  color: var(--g2);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding-top: 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-copy { font-size: 0.72rem; color: var(--dim); }

.footer-legal { display: flex; gap: 1.5rem; }

.footer-legal a {
  font-size: 0.7rem;
  color: var(--dim);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: var(--muted); }


/* ── ANIMAÇÕES ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Reveal via IntersectionObserver (controlado por main.js) */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.rd1 { transition-delay: 0.1s; }
.rd2 { transition-delay: 0.2s; }
.rd3 { transition-delay: 0.3s; }


/* ── HAMBÚRGUER (desktop: oculto) ── */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ── RESPONSIVO — FOOTER ── */
@media (max-width: 768px) {
  .container {
    padding: 0 1.25rem;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 1.8rem;
    text-align: center;
  }

  .footer-logo-img {
    margin: 0 auto;
  }

  .footer-nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.4rem;
  }

  .footer-social {
    justify-content: center;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    text-align: center;
  }
}


/* ── RESPONSIVO — NAV ── */
@media (max-width: 768px) {
  .nav-inner {
    padding: 0.85rem 1.25rem;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    gap: 0;
    width: 100%;
    padding: 0.5rem 0 1rem;
    border-top: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 1.25rem;
    font-size: 0.9rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-burger {
    display: flex;
  }
}
