/* ============================================================
   Nargawtec Elétrica — Dark Premium Design 2025
   Colors: Black (#0D0D0D), Green (#7AB648), Gold (#FFB800), White
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Brand Colors from the Logo */
  --green: #7AB648;
  --green-dark: #5A8A30;
  --gold: #FFB800;
  --gold-dark: #CC9200;

  /* Backgrounds */
  --bg-body: #0D0D0D;
  --bg-section: #111111;
  --bg-card: #1A1A1A;
  --bg-card-hover: #222222;

  /* Text */
  --text-white: #FFFFFF;
  --text-gray: #B0B0B0;
  --text-muted: #777777;

  /* Borders & Shadows */
  --border: #2A2A2A;
  --glow-green: 0 0 20px rgba(122,182,72,0.15);
  --glow-gold: 0 0 20px rgba(255,184,0,0.15);
  --shadow: 0 8px 32px rgba(0,0,0,0.4);

  --radius: 16px;
  --radius-sm: 10px;
  --transition: all 0.35s ease;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

a { text-decoration: none; color: inherit; transition: var(--transition); }
ul { list-style: none; }
img, video { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: rgba(13,13,13,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0.8rem 0;
}
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { display: flex; align-items: center; }
.logo img { height: 55px; width: auto; transition: var(--transition); }
.logo img:hover { transform: scale(1.05); filter: drop-shadow(0 0 8px rgba(122,182,72,0.4)); }

.nav-links { display: flex; gap: 2rem; align-items: center; }
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-gray);
  padding: 0.5rem 0;
  position: relative;
  letter-spacing: 0.5px;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text-white); }
.nav-links a:hover::after { width: 100%; }
.nav-links a.active { color: var(--green); }
.nav-links a.active::after { width: 100%; }

.menu-toggle {
  display: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--text-white);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0.9rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #0D0D0D;
  box-shadow: 0 4px 20px rgba(255,184,0,0.3);
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(255,184,0,0.45);
}
.btn-outline {
  background: transparent;
  border: 2px solid var(--green);
  color: var(--green);
}
.btn-outline:hover {
  background: var(--green);
  color: var(--bg-body);
  transform: translateY(-3px);
  box-shadow: var(--glow-green);
}

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 62px;
  height: 62px;
  background: linear-gradient(135deg, #25d366, #128C7E);
  color: #fff;
  border-radius: 50%;
  font-size: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  box-shadow: 0 6px 20px rgba(37,211,102,0.4);
  transition: var(--transition);
  animation: wpp-pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.12); }
@keyframes wpp-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  70%  { box-shadow: 0 0 0 18px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  background: var(--bg-section);
  text-align: center;
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
/* Subtle background glow */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(122,182,72,0.08), transparent 70%);
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,184,0,0.06), transparent 70%);
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.hero .banner-logo {
  max-height: 280px;
  width: auto;
  margin: 0 auto 2.5rem;
  border-radius: var(--radius);
  animation: fadeInUp 0.8s ease;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  margin-bottom: 1.2rem;
}
.hero h1 span { color: var(--gold); }
.hero p {
  font-size: 1.15rem;
  color: var(--text-gray);
  max-width: 650px;
  margin: 0 auto 2.5rem;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section { padding: 5rem 0; }
.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 3rem;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--gold));
  margin: 12px auto 0;
  border-radius: 4px;
}

/* ============================================================
   SERVICES GRID
   ============================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.8rem;
}
.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: var(--transition);
}
.service-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--green);
  transform: translateY(-6px);
  box-shadow: var(--glow-green);
}
.service-icon {
  font-size: 2rem;
  color: var(--green);
  background: rgba(122,182,72,0.1);
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  margin-bottom: 1.2rem;
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--green);
  color: var(--bg-body);
  box-shadow: var(--glow-green);
}
.service-card h3 {
  color: var(--text-white);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}
.service-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================================
   ABOUT / SOBRE PAGE
   ============================================================ */
.about-content { display: flex; flex-direction: column; gap: 2.5rem; }
.about-text { font-size: 1.1rem; color: var(--text-gray); line-height: 1.8; }

blockquote {
  border-left: 4px solid var(--gold);
  background: var(--bg-card);
  padding: 1.8rem 2rem;
  margin: 1rem 0;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-gray);
  font-style: italic;
  font-size: 1.1rem;
}

/* Media Gallery */
.media-gallery { margin-top: 3rem; }
.media-gallery h2 {
  text-align: center;
  color: var(--text-white);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  grid-auto-rows: 200px;
}
.media-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--bg-card);
  cursor: pointer;
  border: 1px solid var(--border);
}
.media-item img, .media-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.media-item:hover img, .media-item:hover video { transform: scale(1.06); }

.media-item.video::before {
  content: '\f144';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255,255,255,0.85);
  z-index: 10;
  pointer-events: none;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.media-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: var(--gold);
  padding: 3px 10px;
  font-size: 0.75rem;
  border-radius: 50px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3rem;
  border-radius: var(--radius);
}
.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-info h2 { color: var(--text-white); font-size: 1.6rem; margin-bottom: 0.5rem; }

.info-item { display: flex; align-items: center; gap: 1rem; }
.info-icon {
  font-size: 1.3rem;
  color: var(--bg-body);
  background: var(--green);
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  flex-shrink: 0;
}
.info-item a:hover { color: var(--green); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.contact-form h2 { color: var(--text-white); font-size: 1.6rem; margin-bottom: 0.5rem; }

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: var(--text-gray);
  font-size: 0.9rem;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-white);
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }
.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(122,182,72,0.15);
}

.map-container {
  margin-top: 3rem;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-container iframe { width: 100%; height: 100%; border: none; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
  text-align: center;
}
.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
.footer-content .logo img { height: 50px; }
.footer-content p { color: var(--text-muted); font-size: 0.9rem; }

.footer-socials { display: flex; gap: 1.2rem; font-size: 1.5rem; }
.footer-socials a { color: var(--text-muted); }
.footer-socials a:hover { color: var(--gold); transform: translateY(-2px); }

/* ============================================================
   LIGHTBOX MODAL
   ============================================================ */
.lightbox-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.92);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: fadeIn 0.25s ease;
}
.lightbox-overlay.active { display: flex; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  z-index: 10001;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: inherit;
}
.lightbox-close:hover { color: var(--gold); transform: scale(1.2); }

.lightbox-content {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  box-shadow: 0 0 60px rgba(0,0,0,0.6);
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: var(--radius);
}
.lightbox-content video {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: var(--radius);
  outline: none;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  border: none;
  width: 55px; height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}
.lightbox-nav:hover { background: var(--green); color: var(--bg-body); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-counter {
  color: var(--text-gray);
  margin-top: 15px;
  font-size: 0.95rem;
  letter-spacing: 1px;
}

/* ============================================================
   POPUP BANNER
   ============================================================ */
.popup-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.75);
  z-index: 10002;
  align-items: center;
  justify-content: center;
}
.popup-overlay.active { display: flex; }

.popup-banner {
  position: relative;
  max-width: 600px;
  width: 90%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  animation: fadeInUp 0.4s ease;
}
.popup-banner img { width: 100%; display: block; }
.popup-close {
  position: absolute;
  top: 10px; right: 14px;
  font-size: 1.8rem;
  color: #fff;
  cursor: pointer;
  background: rgba(0,0,0,0.5);
  border: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-family: inherit;
}
.popup-close:hover { background: var(--gold); color: #000; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(13,13,13,0.97);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border);
    gap: 0;
  }
  .nav-links a { padding: 1rem 0; text-align: center; }
  .nav-links.active { display: flex; }
  .menu-toggle { display: block; }

  .hero h1 { font-size: 2rem; }
  .hero .banner-logo { max-height: 180px; }
  .section { padding: 3rem 0; }
  .services-grid { grid-template-columns: 1fr; }
  .contact-wrapper { grid-template-columns: 1fr; padding: 1.5rem; }
  .media-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    grid-auto-rows: 140px;
  }
}
