/* ============================================================
   8BIT SOLUÇÕES EM TI — style.css
   ============================================================ */

:root {
  --dark:      #001933;
  --darker:    #00101f;
  --primary:   #005cbc;
  --primary-h: #0047a3;
  --gold:      #f0a500;
  --gold-h:    #d99200;
  --light:     #f7f9fc;
  --white:     #ffffff;
  --text:      #2d3748;
  --muted:     #718096;
  --border:    #e2e8f0;
  --shadow:    0 4px 24px rgba(0,0,0,.07);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.13);
  --radius:    12px;
  --tr:        .3s ease;
}

/* ---- BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Lato', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a  { color: var(--primary); text-decoration: none; transition: color var(--tr); }
a:hover { color: var(--gold); }
ul { list-style: none; }


/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 14px 0;
  background: var(--white);
  box-shadow: 0 2px 16px rgba(0,0,0,.08);
  transition: padding .4s, box-shadow .4s;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo { height: 44px; width: auto; transition: height .4s; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--primary);
  padding: 9px 16px;
  border-radius: 6px;
  transition: all var(--tr);
}
.nav-link:hover { color: var(--dark); background: rgba(0,92,188,.07); }

.nav-cta {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .83rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dark) !important;
  background: var(--gold);
  padding: 10px 22px;
  border-radius: 6px;
  margin-left: 8px;
  transition: all var(--tr);
}
.nav-cta:hover { background: var(--gold-h); transform: translateY(-1px); }

/* scrolled */
#navbar.scrolled {
  padding: 8px 0;
  background: #ffffff;
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
}
#navbar.scrolled .nav-logo { height: 34px; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all .3s;
  display: block;
}
.nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--dark);
  overflow: hidden;
}

/* animated grid */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,92,188,.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,92,188,.09) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: gridScroll 28s linear infinite;
}
@keyframes gridScroll {
  0%   { transform: translate(0,0); }
  100% { transform: translate(50px,50px); }
}

/* radial glow overlay */
#hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 18% 60%, rgba(0,92,188,.28) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 18%, rgba(240,165,0,.09) 0%, transparent 42%);
  pointer-events: none;
}

/* pixel decorations */
.pixel-field { position: absolute; inset: 0; pointer-events: none; }
.px {
  position: absolute;
  background: rgba(0,92,188,.55);
  border-radius: 1px;
  animation: pixelPulse 4s ease-in-out infinite;
  animation-delay: var(--d, 0s);
}
.px.px-gold { background: rgba(240,165,0,.55); }
@keyframes pixelPulse {
  0%,100% { opacity: .1;  transform: scale(1);   }
  50%      { opacity: .55; transform: scale(1.9); }
}

/* content */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 28px 80px;
}

.hero-eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.hero-eyebrow::before {
  content: '';
  width: 30px; height: 2px;
  background: var(--gold);
  display: inline-block;
}

.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.08;
  margin-bottom: 26px;
  text-transform: uppercase;
  letter-spacing: -.01em;
}
.hero-highlight {
  color: var(--gold);
  display: block;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,.65);
  margin-bottom: 44px;
  line-height: 1.75;
  max-width: 560px;
}

/* typing cursor */
.hero-type {
  color: var(--gold);
  font-style: italic;
  border-right: 3px solid var(--gold);
  padding-right: 3px;
  animation: blink .8s step-end infinite;
}
@keyframes blink { 50% { border-color: transparent; } }

.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px;
  background: var(--gold);
  color: var(--dark) !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 8px;
  transition: all var(--tr);
  box-shadow: 0 4px 22px rgba(240,165,0,.35);
}
.btn-hero-primary:hover {
  background: var(--gold-h);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(240,165,0,.45);
}
.btn-hero-primary .fa { font-size: 1.25em; }

.btn-hero-secondary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 34px;
  background: transparent;
  color: #fff !important;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,.28);
  transition: all var(--tr);
}
.btn-hero-secondary:hover {
  border-color: rgba(255,255,255,.65);
  background: rgba(255,255,255,.07);
  transform: translateY(-2px);
}

.hero-scroll {
  position: absolute;
  bottom: 34px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll a {
  color: rgba(255,255,255,.3);
  font-size: 1.1rem;
  transition: color var(--tr);
  animation: bounceDown 2s ease-in-out infinite;
}
.hero-scroll a:hover { color: var(--gold); }
@keyframes bounceDown {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}


/* ============================================================
   STATS
   ============================================================ */
#stats {
  background: var(--primary);
  padding: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
}
.stat-item {
  text-align: center;
  padding: 52px 16px;
  border-right: 1px solid rgba(255,255,255,.14);
  transition: background var(--tr);
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,.06); }

.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  text-transform: uppercase;
  letter-spacing: .1em;
}


/* ============================================================
   SEÇÃO — headers comuns
   ============================================================ */
section { padding: 100px 0; }

.section-header { text-align: center; margin-bottom: 64px; }

.section-tag {
  font-family: 'Montserrat', sans-serif;
  font-size: .74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}
.section-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--dark);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.section-divider {
  width: 44px; height: 4px;
  background: var(--gold);
  border-radius: 2px;
  margin: 0 auto;
}
.section-desc {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 500px;
  margin: 20px auto 0;
  line-height: 1.75;
}


/* ============================================================
   SERVIÇOS
   ============================================================ */
#services { background: var(--white); }

.services-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform .35s, box-shadow .35s, border-color .35s;
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  height: 4px; width: 0;
  background: var(--gold);
  transition: width .4s ease;
}
.service-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: rgba(0,92,188,.15); }
.service-card:hover::before { width: 100%; }

.service-icon {
  width: 62px; height: 62px;
  background: rgba(0,92,188,.07);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
  transition: background .35s;
}
.service-card:hover .service-icon { background: var(--primary); }
.service-icon .fa { font-size: 1.55rem; color: var(--primary); transition: color .35s; }
.service-card:hover .service-icon .fa { color: #fff; }

.service-card h3 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.service-divider {
  width: 30px; height: 3px;
  background: var(--primary);
  border-radius: 2px;
  margin-bottom: 16px;
  transition: width .4s, background .35s;
}
.service-card:hover .service-divider { width: 60px; background: var(--gold); }

.service-card > p {
  color: var(--muted);
  font-size: .95rem;
  margin-bottom: 24px;
  line-height: 1.7;
}
.service-list { display: flex; flex-direction: column; gap: 10px; }
.service-list li {
  font-size: .9rem; color: var(--text);
  display: flex; align-items: flex-start; gap: 10px;
  line-height: 1.4;
}
.service-list .fa-check { color: var(--primary); font-size: .8rem; margin-top: 3px; flex-shrink: 0; }


/* ============================================================
   POR QUE A 8BIT
   ============================================================ */
#why-us { background: var(--light); }
#why-us .section-header h2 { color: var(--dark); }

.why-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 28px;
}

.why-item {
  background: var(--white);
  border-radius: var(--radius);
  padding: 44px 34px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform .35s, box-shadow .35s;
}
.why-item:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }

.why-icon {
  width: 72px; height: 72px;
  background: var(--dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 26px;
  transition: background .35s;
}
.why-item:hover .why-icon { background: var(--primary); }
.why-icon .fa { font-size: 1.8rem; color: var(--gold); }

.why-item h4 {
  font-size: .98rem; font-weight: 700;
  color: var(--dark);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.why-item p { color: var(--muted); font-size: .95rem; line-height: 1.75; }


/* ============================================================
   EQUIPE
   ============================================================ */
#team { background: var(--white); }

.team-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 28px;
}

.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  transition: transform .35s, box-shadow .35s, border-color .35s;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: rgba(0,92,188,.2); }

.team-photo-wrap { position: relative; flex-shrink: 0; width: 165px; }
.team-photo { width: 165px; height: 100%; object-fit: cover; object-position: top center; display: block; }

.team-overlay {
  position: absolute; inset: 0;
  background: rgba(0,19,51,.82);
  display: flex; align-items: center; justify-content: center; gap: 16px;
  opacity: 0; transition: opacity .3s;
}
.team-card:hover .team-overlay { opacity: 1; }

.team-social-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.45);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.1rem;
  transition: all .25s;
  background: transparent;
}
.team-social-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); transform: scale(1.12); }

.team-info { padding: 26px 28px; display: flex; flex-direction: column; justify-content: center; }

.team-info h5 {
  font-size: 1.05rem; font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.team-contact { font-size: .8rem; color: var(--muted); margin-bottom: 14px; line-height: 1.5; }

.team-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.team-tags span {
  font-size: .7rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 9px;
  background: rgba(0,92,188,.07);
  color: var(--primary);
  border-radius: 4px;
}


/* ============================================================
   FOOTER
   ============================================================ */
#footer { background: var(--dark); color: rgba(255,255,255,.7); }

.footer-top { padding: 72px 0 52px; }

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 52px;
}

.footer-logo { height: 38px; width: auto; margin-bottom: 16px; }
.footer-brand p { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.75; max-width: 270px; margin-bottom: 22px; }

.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55); font-size: .95rem;
  transition: all var(--tr);
}
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--dark); }

.footer-col h6 {
  font-family: 'Montserrat', sans-serif;
  font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .12em;
  color: #fff; margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { font-size: .88rem; color: rgba(255,255,255,.5); transition: color var(--tr); }
.footer-col ul li a:hover { color: var(--gold); }

.footer-contact li {
  font-size: .88rem; color: rgba(255,255,255,.5);
  display: flex; align-items: center; gap: 12px;
}
.footer-contact .fa { color: var(--gold); width: 14px; text-align: center; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 0;
  text-align: center;
  font-size: .8rem;
  color: rgba(255,255,255,.3);
}
.footer-bottom strong { color: rgba(255,255,255,.55); }


/* ============================================================
   SCROLL TO TOP
   ============================================================ */
.scroll-top-btn {
  position: fixed; bottom: 28px; right: 28px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff; border: none; cursor: pointer;
  font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: all .3s;
  box-shadow: 0 4px 18px rgba(0,92,188,.4);
  z-index: 998;
}
.scroll-top-btn.visible { opacity: 1; visibility: visible; }
.scroll-top-btn:hover { background: var(--gold); box-shadow: 0 4px 18px rgba(240,165,0,.4); transform: translateY(-2px); }


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.revealed { opacity: 1; transform: translateY(0); }

.services-grid .reveal:nth-child(2) { transition-delay: .14s; }
.services-grid .reveal:nth-child(3) { transition-delay: .28s; }
.why-grid .reveal:nth-child(2)      { transition-delay: .14s; }
.why-grid .reveal:nth-child(3)      { transition-delay: .28s; }
.team-grid .reveal:nth-child(2)     { transition-delay: .12s; }
.team-grid .reveal:nth-child(3)     { transition-delay: .24s; }
.team-grid .reveal:nth-child(4)     { transition-delay: .36s; }
.stats-grid .stat-item:nth-child(2) { transition-delay: .1s; }
.stats-grid .stat-item:nth-child(3) { transition-delay: .2s; }
.stats-grid .stat-item:nth-child(4) { transition-delay: .3s; }


/* ============================================================
   CONTAINER HELPER
   ============================================================ */
.container-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
  .services-grid,
  .why-grid { grid-template-columns: 1fr; gap: 20px; }

  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(3),
  .stat-item:nth-child(4) { border-top: 1px solid rgba(255,255,255,.14); }

  .team-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }

  .nav-menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    gap: 4px;
    display: none;
    box-shadow: 0 8px 28px rgba(0,0,0,.12);
    border-top: 1px solid var(--border);
  }
  .nav-menu.active { display: flex; }
  .nav-link { color: var(--primary); padding: 12px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; text-align: center; }

  .hero-content { text-align: center; }
  .hero-eyebrow { justify-content: center; }
  .hero-subtitle { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .team-card { flex-direction: column; }
  .team-photo-wrap { width: 100%; height: 230px; }
  .team-photo { width: 100%; height: 230px; }

  .footer-grid { grid-template-columns: 1fr; gap: 28px; }

  section { padding: 72px 0; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .stat-number { font-size: 2.2rem; }
  .btn-hero-primary, .btn-hero-secondary { width: 100%; justify-content: center; }
  .service-card { padding: 30px 22px; }
}
