/* ═══════════════════════════════════════════
   ELETRIX SERVIÇOS – style.css
   Cores baseadas na identidade visual oficial
═══════════════════════════════════════════ */

/* ── VARIÁVEIS ── */
:root {
  --navy:    #0d2041;
  --blue:    #1a3a6b;
  --spark:   #FFD700;
  --spark2:  #FFA500;
  --dark:    #080e1a;
  --gray:    #111b2e;
  --card:    #0f1e38;
  --light:   #f0f4fa;
  --muted:   #7a90ae;
  --white:   #ffffff;
  --radius:  10px;
  --shadow:  0 8px 32px rgba(0,0,0,.45);
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--light);
  overflow-x: hidden;
  line-height: 1.6;
}
h1,h2,h3,h4 { font-family: 'Barlow Condensed', sans-serif; line-height: 1.1; }
a   { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 68px;
  background: rgba(8,14,26,.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,215,0,.15);
  transition: background .3s;
}
nav.scrolled { background: rgba(8,14,26,.98); }

/* Logo na nav */
.nav-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a {
  font-size: .9rem; font-weight: 500; color: var(--muted);
  transition: color .2s;
}
.nav-links a:hover { color: var(--spark); }

.nav-cta {
  background: var(--spark); color: var(--navy);
  padding: .5rem 1.3rem; border-radius: 6px;
  font-weight: 700; font-size: .88rem;
  display: flex; align-items: center; gap: .35rem;
  transition: background .2s, transform .15s;
  white-space: nowrap;
}
.nav-cta:hover { background: #ffe033; transform: translateY(-1px); }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--light); border-radius: 2px; transition: .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); }

/* Mobile menu */
.mobile-menu {
  display: flex; flex-direction: column; gap: 1.2rem;
  position: fixed;
  top: 68px; left: 0; right: 0; z-index: 199;
  background: rgba(8,14,26,.98);
  border-bottom: 1px solid rgba(255,215,0,.15);
  padding: 1.5rem 5vw 2rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
}
.mobile-menu.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity .3s ease, transform .3s ease, visibility 0s linear 0s;
}
.mobile-menu a {
  font-size: 1rem; font-weight: 500; color: var(--muted);
  padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.05);
  opacity: 0; transform: translateX(-10px);
  transition: opacity .25s ease, transform .25s ease;
}
.mobile-menu.open a { opacity: 1; transform: none; }
.mobile-menu.open a:nth-child(1) { transition-delay: .05s; }
.mobile-menu.open a:nth-child(2) { transition-delay: .1s; }
.mobile-menu.open a:nth-child(3) { transition-delay: .15s; }
.mobile-menu.open a:nth-child(4) { transition-delay: .2s; }
.mobile-menu.open a:nth-child(5) { transition-delay: .25s; }
.mobile-menu a:hover { color: var(--spark); }
.mobile-menu .nav-cta {
  display: inline-flex; width: fit-content; margin-top: .5rem;
}

/* ── UTILITÁRIOS ── */
.max-w    { max-width: 1200px; margin: 0 auto; }
.section  { padding: 100px 5vw; }
.section--alt { background: var(--gray); }

.section-eyebrow {
  display: inline-block;
  font-size: .76rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--spark);
  margin-bottom: .7rem;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900; color: var(--white); margin-bottom: .9rem;
}
.section-sub {
  font-size: 1rem; color: var(--muted); line-height: 1.75;
  max-width: 540px;
}
.section-header { margin-bottom: 3.5rem; }

/* Botões */
.btn-primary {
  background: var(--spark); color: var(--navy);
  padding: .85rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: transform .15s, box-shadow .2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(255,215,0,.38);
}
.btn-outline {
  border: 1.5px solid rgba(255,255,255,.22); color: var(--white);
  padding: .85rem 2rem; border-radius: 8px;
  font-weight: 600; font-size: 1rem;
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--spark); color: var(--spark); }
.btn-whatsapp {
  display: inline-flex; align-items: center; gap: .55rem;
  background: #25d366; color: #fff;
  padding: .85rem 2rem; border-radius: 8px;
  font-weight: 700; font-size: 1rem;
  transition: background .2s, transform .15s;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-2px); }

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Cascata: itens dentro de .stagger aparecem em sequência */
.stagger > .reveal:nth-child(1) { transition-delay: .05s; }
.stagger > .reveal:nth-child(2) { transition-delay: .11s; }
.stagger > .reveal:nth-child(3) { transition-delay: .17s; }
.stagger > .reveal:nth-child(4) { transition-delay: .23s; }
.stagger > .reveal:nth-child(5) { transition-delay: .29s; }
.stagger > .reveal:nth-child(6) { transition-delay: .35s; }
.stagger > .reveal:nth-child(7) { transition-delay: .41s; }
.stagger > .reveal:nth-child(8) { transition-delay: .47s; }
.stagger > .reveal:nth-child(9) { transition-delay: .53s; }

/* Barra de progresso de leitura */
#scroll-progress {
  position: fixed; top: 0; left: 0;
  height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--spark), var(--spark2));
  z-index: 300;
  transition: width .08s linear;
}

/* ── HERO ── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 0 5vw; padding-top: 90px;
  background:
    radial-gradient(ellipse 75% 55% at 65% 45%, #1a3a6b 0%, transparent 70%),
    var(--dark);
  position: relative; overflow: hidden;
}
.particles {
  position: absolute; inset: 0; pointer-events: none; overflow: hidden;
}
.particle {
  position: absolute; border-radius: 50%;
  background: var(--spark); opacity: 0;
  animation: floatParticle linear infinite;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center; width: 100%;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,215,0,.1);
  border: 1px solid rgba(255,215,0,.28);
  color: var(--spark); font-size: .8rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: 20px;
  letter-spacing: .07em; text-transform: uppercase;
  margin-bottom: 1.2rem;
}
h1.hero-title {
  font-size: clamp(2.8rem, 5.5vw, 5rem);
  font-weight: 900; color: var(--white); margin-bottom: 1.1rem;
  opacity: 0; transform: translateY(28px);
  animation: fadeUp .8s .15s forwards;
}
h1.hero-title em { color: var(--spark); font-style: normal; }
.hero-sub {
  font-size: 1.05rem; color: var(--muted); line-height: 1.75;
  margin-bottom: 2rem; max-width: 460px;
  opacity: 0; transform: translateY(20px);
  animation: fadeUp .8s .35s forwards;
}
.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp .8s .55s forwards;
}
.hero-stats {
  display: flex; gap: 2.5rem; margin-top: 3rem;
  opacity: 0; animation: fadeUp .8s .75s forwards;
}
.stat-num {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.4rem; font-weight: 900; color: var(--spark); line-height: 1;
}
.stat-label { font-size: .78rem; color: var(--muted); margin-top: .15rem; }

/* Logo hero visual */
.hero-visual {
  display: flex; justify-content: center; align-items: center;
  opacity: 0; animation: fadeUp .8s .25s forwards;
}
.hero-logo-wrap {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero-logo-glow {
  position: absolute; inset: -40px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,215,0,.15) 0%, transparent 68%);
  animation: pulse 3s ease-in-out infinite;
}
.hero-logo-img {
  width: clamp(260px, 30vw, 380px);
  border-radius: 16px;
  position: relative; z-index: 1;
  filter: drop-shadow(0 0 40px rgba(255,215,0,.3));
}

/* ── CARROSSEL ── */
.carousel-section { padding-top: 0; padding-bottom: 60px; }
.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 2 / 1;
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .5s ease;
}
.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}
.carousel-slide img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: left center;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(8,14,26,.55); border: 1px solid rgba(255,255,255,.2);
  color: var(--white); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
  z-index: 2;
}
.carousel-btn:hover { background: rgba(255,215,0,.85); color: var(--navy); border-color: var(--spark); }
.carousel-prev { left: 16px; }
.carousel-next { right: 16px; }
.carousel-dots {
  position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%);
  display: flex; gap: .5rem; z-index: 2;
}
.carousel-dots .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; padding: 0; cursor: pointer;
  transition: background .2s, transform .2s;
}
.carousel-dots .dot.active { background: var(--spark); transform: scale(1.2); }
@media (max-width: 640px) {
  .carousel { aspect-ratio: 16 / 10; border-radius: 10px; }
  .carousel-btn { width: 34px; height: 34px; font-size: .85rem; }
}

/* ── SERVIÇOS (index preview) ── */
.services-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
}
.service-card {
  background: var(--card);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: var(--radius); padding: 1.8rem 1.6rem;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  text-align: center;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,.3);
  box-shadow: 0 14px 40px rgba(0,0,0,.4);
}
.service-icon {
  font-size: 2.8rem; margin-bottom: 1rem;
  display: block; line-height: 1;
}
.service-card h3 {
  font-size: 1.25rem; font-weight: 700; color: var(--white);
  margin-bottom: .5rem;
}
.service-card p { font-size: .88rem; color: var(--muted); line-height: 1.65; }
.service-more {
  display: block; margin-top: 3.5rem; text-align: center;
}

/* ── DIFERENCIAIS ── */
.diff-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.diff-list { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; margin-top: 2rem; }
.diff-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.3rem;
  background: var(--card); border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,.05);
  transition: border-color .2s;
}
.diff-item:hover { border-color: rgba(255,215,0,.2); }
.diff-icon { font-size: 1.5rem; flex-shrink: 0; }
.diff-item h4 { font-size: 1.05rem; font-weight: 700; color: var(--white); margin-bottom: .2rem; }
.diff-item p  { font-size: .87rem; color: var(--muted); line-height: 1.6; }

.creds-box {
  background: var(--card); border-radius: 16px;
  padding: 2rem; display: flex; flex-direction: column; gap: 1rem;
}
.creds-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.2rem; font-weight: 800; color: var(--spark);
  margin-bottom: .3rem;
}
.cred-row {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem 1rem; background: var(--navy); border-radius: 8px;
}
.cred-row-icon { font-size: 1.3rem; flex-shrink: 0; }
.cred-row-text { font-size: .86rem; color: var(--muted); }
.cred-row-text strong { color: var(--white); display: block; font-size: .92rem; }

/* ── CTA BANNER ── */
.cta-banner {
  background: linear-gradient(135deg, var(--spark) 0%, var(--spark2) 100%);
  padding: 60px 5vw; text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  font-weight: 900; color: var(--navy); margin-bottom: .8rem;
}
.cta-banner p { font-size: 1.1rem; color: var(--navy); opacity: .8; margin-bottom: 2rem; }
.cta-banner .btn-dark {
  background: var(--navy); color: var(--spark);
  padding: .9rem 2.2rem; border-radius: 8px;
  font-weight: 800; font-size: 1rem;
  display: inline-flex; align-items: center; gap: .5rem;
  transition: background .2s, transform .15s;
}
.cta-banner .btn-dark:hover { background: var(--dark); transform: translateY(-2px); }

/* ── PAGE INTERNA: SERVIÇOS ── */
.page-hero {
  min-height: 40vh; display: flex; align-items: center;
  padding: 0 5vw; padding-top: 90px;
  background: radial-gradient(ellipse 70% 60% at 50% 50%, #1a3a6b 0%, var(--dark) 75%);
  text-align: center; flex-direction: column; justify-content: center;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; color: var(--white); margin-bottom: .8rem;
}
.page-hero p { font-size: 1.05rem; color: var(--muted); max-width: 540px; margin: 0 auto; }

.services-full-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.8rem;
}
.service-full-card {
  background: var(--card); border-radius: var(--radius);
  padding: 2.2rem 2rem; border: 1px solid rgba(255,255,255,.06);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.service-full-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,215,0,.28);
  box-shadow: 0 14px 44px rgba(0,0,0,.42);
}
.service-full-card .svc-icon { font-size: 3rem; margin-bottom: 1.2rem; }
.service-full-card h3 {
  font-size: 1.45rem; font-weight: 800; color: var(--white); margin-bottom: .6rem;
}
.service-full-card p { font-size: .92rem; color: var(--muted); line-height: 1.7; margin-bottom: 1.2rem; }
.svc-tags { display: flex; flex-wrap: wrap; gap: .5rem; }
.svc-tag {
  font-size: .74rem; font-weight: 700; letter-spacing: .05em;
  color: var(--spark); background: rgba(255,215,0,.09);
  border: 1px solid rgba(255,215,0,.2);
  padding: .22rem .7rem; border-radius: 4px;
}
.svc-cta {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: 1.4rem; color: var(--spark);
  font-weight: 700; font-size: .88rem;
  transition: gap .2s;
}
.svc-cta:hover { gap: .7rem; }

/* ── PAGE INTERNA: CONTATO ── */
.contact-single { max-width: 640px; margin: 0 auto; }
.contact-info-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 2rem; }
.contact-info-item {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem; background: var(--card);
  border-radius: var(--radius); border: 1px solid rgba(255,255,255,.05);
}
.ci-icon { font-size: 1.4rem; flex-shrink: 0; }
.ci-text  { font-size: .88rem; color: var(--muted); line-height: 1.6; }
.ci-text strong { color: var(--white); display: block; margin-bottom: .12rem; font-size: .94rem; }
.ci-text a { color: var(--spark); }

/* ── FOOTER ── */
footer {
  background: var(--navy);
  padding: 3.5rem 5vw 2rem;
  border-top: 1px solid rgba(255,215,0,.15);
}
.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem; margin-bottom: 2.5rem;
}
.footer-logo img { height: 50px; width: auto; margin-bottom: 1rem; }
.footer-desc { font-size: .87rem; color: var(--muted); line-height: 1.7; max-width: 280px; }
.footer-slogan {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: .95rem; font-weight: 700; color: var(--spark);
  margin-top: .6rem;
}
.footer-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.05rem; font-weight: 800; color: var(--white); margin-bottom: 1rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { font-size: .87rem; color: var(--muted); transition: color .2s; }
.footer-links a:hover { color: var(--spark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--muted); flex-wrap: wrap; gap: .5rem;
}
.footer-bottom a { color: var(--spark); }

/* ── ANIMAÇÕES ── */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .15; }
  50%       { transform: scale(1.2); opacity: .3; }
}
@keyframes floatParticle {
  from { transform: translateY(100vh); opacity: 0; }
  8%   { opacity: .35; }
  92%  { opacity: .12; }
  to   { transform: translateY(-8vh); opacity: 0; }
}

/* ── RESPONSIVO ── */
@media (max-width: 900px) {
  .hero-grid   { grid-template-columns: 1fr; }
  .diff-grid   { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-stats { gap: 1.5rem; flex-wrap: wrap; }
}
