/* ══════════════════════════════════════════
   EletroNorte — Styles
   ══════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }


/* ═══════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--dark);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.85rem 1.5rem;
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0, 0, 0, 0.2); }

.nav-brand { display: flex; align-items: center; gap: 0.5rem; }
.nav-logo-text {
  font-family: var(--font-display); font-size: 1.1rem;
  letter-spacing: 1px; display: flex;
}
.nav-logo-text .white { color: #fff; }
.nav-logo-text .red { color: var(--red); }
.plug-icon { width: 28px; height: 28px; flex-shrink: 0; }

.nav-links { display: none; gap: 1.8rem; }
.nav-links a {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.8px;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.7);
  transition: color 0.3s;
}
.nav-links a:hover { color: #fff; }

.nav-right { display: flex; align-items: center; gap: 0.8rem; }

.nav-cta {
  background: var(--whatsapp); color: #fff;
  padding: 0.55rem 1.1rem; border-radius: 8px;
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.5px;
  text-transform: uppercase; border: none; cursor: pointer;
  display: flex; align-items: center; gap: 0.4rem;
  transition: all 0.3s;
  font-family: var(--font-body);
}
.nav-cta:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }
.nav-cta svg { width: 16px; height: 16px; }

/* Mobile toggle */
.nav-toggle {
  display: flex; flex-direction: column; gap: 4px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
.nav-toggle span {
  width: 22px; height: 2px; background: #fff;
  border-radius: 2px; transition: all 0.3s;
}
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

.mobile-menu {
  display: none; position: fixed; top: 56px; left: 0; right: 0;
  background: var(--dark); padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column; gap: 1rem; z-index: 99;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: rgba(255, 255, 255, 0.8); font-weight: 600; font-size: 0.95rem;
  padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.mobile-menu a:hover { color: #fff; }


/* ═══════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════ */
.hero {
  padding: 6.5rem 1.5rem 3rem;
  background: var(--bg-off);
  position: relative; overflow: hidden;
}
.hero::after {
  content: ''; position: absolute; top: 0; right: -100px; bottom: 0;
  width: 400px;
  background: linear-gradient(135deg, var(--red-glow), transparent 70%);
  pointer-events: none;
}
.hero-inner { max-width: 700px; position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--red-light); border: 1px solid rgba(232, 96, 94, 0.15);
  padding: 0.35rem 0.85rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 700; color: var(--red);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1.2rem;
}
.hero-badge::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 3.8rem);
  line-height: 1.05; color: var(--dark); margin-bottom: 1rem;
}
.hero h1 .red { color: var(--red); }

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text-light); max-width: 520px;
  margin-bottom: 2rem; line-height: 1.7;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }


/* ═══════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.6rem; border-radius: 9px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.3px; cursor: pointer; border: none;
  transition: all 0.3s var(--ease-out);
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.btn-whatsapp {
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}
.btn-whatsapp:hover {
  background: var(--whatsapp-dark); transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.3);
}

.btn-outline {
  background: transparent; color: var(--text);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--red); color: var(--red); }


/* ═══════════════════════════════════════════
   SHARED SECTION STYLES
   ═══════════════════════════════════════════ */
.section { padding: 4rem 1.5rem; }
.section-center { text-align: center; max-width: 600px; margin: 0 auto 2.5rem; }

.section-label {
  font-size: 0.7rem; font-weight: 800; letter-spacing: 3px;
  text-transform: uppercase; color: var(--red); margin-bottom: 0.5rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.1; color: var(--dark); margin-bottom: 0.75rem;
}
.section-desc { color: var(--text-light); font-size: 0.95rem; }


/* ═══════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════ */
.services-grid {
  display: grid; gap: 1.2rem;
  max-width: 960px; margin: 0 auto;
}
.service-card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all 0.35s var(--ease-out);
  position: relative;
}
.service-card:hover {
  border-color: rgba(232, 96, 94, 0.25);
  box-shadow: var(--shadow-md); transform: translateY(-3px);
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--red); transform: scaleX(0);
  transition: transform 0.35s var(--ease-out); transform-origin: left;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card-img {
  width: 100%; height: 200px; object-fit: cover;
  border-bottom: 1px solid var(--border);
}

.service-card-body { padding: 1.5rem; }

.service-icon {
  width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
  background: var(--red-light); border-radius: 10px; margin-bottom: 0.8rem;
}
.service-icon svg {
  width: 22px; height: 22px; stroke: var(--red);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.service-card h3 {
  font-size: 1.05rem; font-weight: 800; color: var(--dark); margin-bottom: 0.4rem;
}
.service-card p {
  font-size: 0.88rem; color: var(--text-light); line-height: 1.65;
}
.service-tagline {
  font-size: 0.875rem; color: var(--text-light);
  font-style: italic; margin-bottom: 0.9rem; line-height: 1.5;
}
.service-list { margin: 0; padding: 0; }
.service-list li {
  font-size: 0.845rem; color: var(--text-light);
  padding: 0.35rem 0 0.35rem 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.service-list li:last-child { border-bottom: none; }
.service-list li::before {
  content: ''; position: absolute; left: 0; top: 50%;
  transform: translateY(-50%);
  width: 5px; height: 5px; border-radius: 50%; background: var(--red);
}


/* ═══════════════════════════════════════════
   STATS STRIP
   ═══════════════════════════════════════════ */
.stats-strip {
  background: var(--dark);
  border-bottom: 3px solid var(--red);
  display: flex; justify-content: center; flex-wrap: wrap;
  padding: 1.8rem 1.5rem;
}
.stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 0.5rem 2.5rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.stat:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-display); font-size: 1.9rem;
  color: var(--red); line-height: 1; margin-bottom: 0.3rem;
}
.stat-label {
  font-size: 0.7rem; color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase; letter-spacing: 1.2px; white-space: nowrap;
}


/* ═══════════════════════════════════════════
   PORTFOLIO / GALLERY
   ═══════════════════════════════════════════ */
.portfolio { background: var(--bg-off); }

.gallery-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem; max-width: 960px; margin: 0 auto;
}
.gallery-item {
  border-radius: var(--radius); overflow: hidden;
  position: relative; cursor: pointer;
  aspect-ratio: 1;
}
.gallery-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}
.gallery-item:hover img { transform: scale(1.06); }

.gallery-item::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(44, 44, 44, 0.5), transparent 50%);
  opacity: 0; transition: opacity 0.3s;
}
.gallery-item:hover::after { opacity: 1; }

.gallery-item .gallery-label {
  position: absolute; bottom: 0.8rem; left: 0.8rem; right: 0.8rem;
  color: #fff; font-size: 0.78rem; font-weight: 700;
  z-index: 2; opacity: 0; transform: translateY(6px);
  transition: all 0.3s var(--ease-out);
}
.gallery-item:hover .gallery-label { opacity: 1; transform: translateY(0); }

/* wide item */
.gallery-item.wide { grid-column: span 2; aspect-ratio: 2.2; }


/* ═══════════════════════════════════════════
   ADVANTAGES
   ═══════════════════════════════════════════ */
.advantages { background: var(--bg); }

.adv-grid {
  display: grid; gap: 1rem;
  max-width: 900px; margin: 0 auto;
}
.adv-item {
  display: flex; align-items: flex-start; gap: 1rem;
  background: var(--bg-off); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.3rem;
  transition: box-shadow 0.3s;
}
.adv-item:hover { box-shadow: var(--shadow-sm); }

.adv-icon {
  width: 42px; height: 42px; min-width: 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light); border-radius: 10px; font-size: 1.2rem;
}
.adv-icon svg { flex-shrink: 0; }
.adv-item h4 { font-size: 0.92rem; font-weight: 700; color: var(--dark); margin-bottom: 0.2rem; }
.adv-item p { font-size: 0.82rem; color: var(--text-light); line-height: 1.55; }


/* ═══════════════════════════════════════════
   CTA BANNER
   ═══════════════════════════════════════════ */
.cta-banner {
  margin: 0 1.5rem; background: var(--dark);
  border-radius: var(--radius-lg); padding: 3rem 1.5rem;
  text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; top: -50%; right: -30%;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 96, 94, 0.15), transparent 70%);
  pointer-events: none;
}
.cta-banner .section-label { color: var(--red); }
.cta-banner .section-title { color: #fff; margin-bottom: 0.5rem; }
.cta-banner p { color: rgba(255, 255, 255, 0.65); margin-bottom: 2rem; font-size: 0.95rem; }
.cta-banner .btn { margin: 0 auto; }


/* ═══════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════ */
.about-content { max-width: 700px; margin: 0 auto; }
.about-text {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.5rem;
}
.about-text p { color: var(--text-light); font-size: 0.95rem; margin-bottom: 1rem; }
.about-text p:last-child { margin-bottom: 0; }
.about-highlight {
  border-left: 3px solid var(--red); padding-left: 1rem;
  margin: 1.2rem 0; color: var(--dark) !important; font-weight: 600;
}


/* ═══════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════ */
.contact-section { background: var(--bg-off); }

.contact-grid {
  display: grid; gap: 1rem;
  max-width: 700px; margin: 0 auto;
}
.contact-card {
  display: flex; align-items: center; gap: 1rem;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
  transition: all 0.3s;
}
.contact-card:hover { border-color: rgba(232, 96, 94, 0.2); box-shadow: var(--shadow-sm); }

.contact-icon {
  width: 44px; height: 44px; min-width: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--red-light); border-radius: 10px;
}
.contact-icon svg {
  width: 20px; height: 20px; stroke: var(--red);
  fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.contact-card .label {
  font-size: 0.7rem; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 700;
}
.contact-card .value { font-size: 0.9rem; font-weight: 600; color: var(--dark); }


/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.footer {
  background: var(--dark); padding: 2.5rem 1.5rem; text-align: center;
}
.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 0.5rem; margin-bottom: 1rem;
}
.footer-brand .nav-logo-text { font-size: 1rem; }
.footer-brand .plug-icon { width: 22px; height: 22px; }
.footer-services {
  color: rgba(255, 255, 255, 0.4); font-size: 0.78rem;
  margin-bottom: 1.5rem; line-height: 1.8;
}
.footer-cnpj { font-size: 0.72rem; color: rgba(255, 255, 255, 0.2); margin-bottom: 0.4rem; }
.footer-copy { font-size: 0.75rem; color: rgba(255, 255, 255, 0.3); }
.footer-copy a { color: var(--red); transition: color 0.3s; }
.footer-copy a:hover { color: #fff; }


/* ═══════════════════════════════════════════
   WHATSAPP FLOAT
   ═══════════════════════════════════════════ */
.whatsapp-float {
  position: fixed; bottom: 1.2rem; right: 1.2rem; z-index: 90;
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--whatsapp);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  transition: all 0.35s var(--ease-out);
  animation: float-in 0.8s ease 0.8s both;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37, 211, 102, 0.5);
}
.whatsapp-float svg { width: 28px; height: 28px; fill: #fff; }

.whatsapp-float::after {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--whatsapp); opacity: 0;
  animation: wapulse 2.5s ease-in-out infinite;
}


/* ═══════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════ */
@keyframes float-in {
  from { opacity: 0; transform: scale(0.5) translateY(20px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes wapulse {
  0%   { opacity: 0.6; transform: scale(0.9); }
  100% { opacity: 0;   transform: scale(1.3); }
}

/* Scroll reveal */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: all 0.6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }


/* ═══════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════ */
@media (min-width: 640px) {
  .services-grid  { grid-template-columns: repeat(2, 1fr); }
  .adv-grid       { grid-template-columns: repeat(2, 1fr); }
  .contact-grid   { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid   { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.wide { grid-column: span 2; }
}

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

@media (min-width: 900px) {
  .nav            { padding: 0.85rem 3rem; }
  .hero           { padding: 7rem 3rem 4rem; }
  .section        { padding: 5rem 3rem; }
  .cta-banner     { margin: 0 3rem; padding: 3.5rem; }
  .service-card-img { height: 220px; }
}

@media (min-width: 1200px) {
  .nav            { padding: 0.85rem 5rem; }
  .hero           { padding: 8rem 5rem 5rem; }
  .hero-inner     { max-width: 750px; }
  .section        { padding: 5.5rem 5rem; }
  .cta-banner     { margin: 0 5rem; padding: 4rem; }
  .services-grid  { grid-template-columns: repeat(3, 1fr); max-width: 1200px; }
  .adv-grid       { max-width: 1000px; }
  .gallery-grid   { max-width: 1000px; gap: 0.8rem; }
  .service-card-img { height: 240px; }
}
