/* =============================================
   100 Fusiveis — Site Styles
   ============================================= */

:root {
  --bg: #1a1d22;
  --accent: #ebc600;
  --muted: #8d99a6;
  --card: #21252d;
  --glass: rgba(255,255,255,0.05);
  --maxw: 1100px;
  --nav-h: 64px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: Inter, system-ui, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: #dde5ed;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* ───── TOP NAV ───── */
.topnav {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(26,29,34,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 100%;
}
.nav-brand img { height: 36px; display: block; }
.nav-menu {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.nav-menu a {
  color: var(--muted); font-size: 15px; font-weight: 500;
  transition: color .2s; padding: 4px 0;
}
.nav-menu a:hover, .nav-menu a.active { color: #dde5ed; }
.nav-lang-btn {
  background: rgba(255,255,255,0.08);
  padding: 5px 12px; border-radius: 8px; font-size: 13px;
  transition: background .2s;
}
.nav-lang-btn:hover { background: rgba(255,255,255,0.14); }

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

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav-menu {
    display: none; flex-direction: column; align-items: flex-start;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: #21252d; padding: 20px 24px 28px;
    border-bottom: 1px solid rgba(255,255,255,0.09);
    gap: 20px; box-shadow: 0 8px 20px rgba(0,0,0,.4);
  }
  .nav-menu.open { display: flex; }
  .nav-menu a { font-size: 16px; }
}

/* ───── LAYOUT HELPERS ───── */
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-label {
  font-size: 11px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.section-title { font-size: clamp(22px,3vw,30px); font-weight: 700; margin: 0 0 32px; }

/* ───── HERO ───── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 72px;
  background: linear-gradient(160deg, #1c2028 0%, #14171c 60%, #1a1d22 100%);
}

/* Circuit SVG background */
.hero-circuits {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  color: #ebc600;
  opacity: 0.13;
  pointer-events: none;
  user-select: none;
}
.hc-nodes circle { fill: currentColor; }
.hc-lamp {
  animation: lamp-glow 3s ease-in-out infinite;
}
.hc-lamp:nth-of-type(2) { animation-delay: 1s; }
.hc-lamp:nth-of-type(3) { animation-delay: 1.8s; }
.hc-lamp:nth-of-type(4) { animation-delay: 2.5s; }
@keyframes lamp-glow {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1; filter: drop-shadow(0 0 4px currentColor); }
}
.hc-pulse {
  fill: currentColor;
  animation: node-pulse 2.4s ease-in-out infinite;
}
.hc-pulse--2 { animation-delay: 0.8s; }
.hc-pulse--3 { animation-delay: 1.6s; }
@keyframes node-pulse {
  0%, 100% { opacity: 0; r: 2; }
  50%       { opacity: 0.9; r: 5; filter: drop-shadow(0 0 6px currentColor); }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 420px;
  gap: 40px; align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .hero-text p { max-width: 100%; }
}
.tagline { color: var(--muted); font-weight: 500; margin-bottom: 22px; line-height: 1.9; }
.hero-text p { max-width: 540px; margin: 0 0 24px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ───── BUTTONS ───── */
.btn {
  background: var(--accent); border: none;
  padding: 13px 22px; border-radius: 12px;
  color: #0b0b0c; font-weight: 700; font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
  transition: opacity .2s, transform .1s;
  box-shadow: 0 4px 16px rgba(235,198,0,.15);
}
.btn:hover { opacity: .9; transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.14);
  color: #e6eef2; font-weight: 600; box-shadow: none;
}
.btn.secondary:hover { border-color: rgba(255,255,255,.28); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

/* ───── ELECTRICAL PANEL VISUAL ───── */
.panel-visual {
  display: flex; align-items: center; justify-content: center;
  min-height: 280px;
}
.panel-svg {
  width: 100%; max-width: 300px; height: auto;
  filter: drop-shadow(0 12px 32px rgba(0,0,0,.6));
}
/* LED pulse animations */
.panel-led {
  animation: led-pulse 3s ease-in-out infinite;
}
.panel-led--main { animation-duration: 1.8s; }
.panel-led--a    { animation-delay: 0s;    animation-duration: 2.4s; }
.panel-led--b    { animation-delay: 0.6s;  animation-duration: 2.8s; }
.panel-led--c    { animation-delay: 1.2s;  animation-duration: 3.2s; }
@keyframes led-pulse {
  0%, 100% { opacity: 0.5; filter: drop-shadow(0 0 2px currentColor); }
  50%       { opacity: 1;   filter: drop-shadow(0 0 6px currentColor); }
}

/* ───── SECTIONS ───── */
.section { padding: 72px 0; }
.section-alt { background: #1e2228; }

/* ───── SERVICE ICON GRID ───── */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 1020px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .svc-grid { grid-template-columns: 1fr; } }

.svc-card {
  background: #272c35;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 22px 20px;
  display: flex; flex-direction: column; gap: 12px;
  transition: border-color .2s, transform .15s;
}
.svc-card:hover {
  border-color: rgba(235,198,0,0.3);
  transform: translateY(-2px);
}
.svc-icon {
  width: 46px; height: 46px;
  background: rgba(235,198,0,0.1);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); flex-shrink: 0;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-card h5 { margin: 0; font-size: 14px; font-weight: 700; line-height: 1.35; }
.svc-card p  { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }

/* ───── VALUES / SOBRE NÓS ───── */
.values-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
@media (max-width: 880px) { .values-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px)  { .values-grid { grid-template-columns: 1fr; } }
.value-item {
  background: linear-gradient(160deg, rgba(255,255,255,0.045), transparent);
  padding: 22px; border-radius: 14px;
  display: flex; gap: 16px; align-items: flex-start;
  border: 1px solid rgba(255,255,255,0.09);
}
.value-icon {
  width: 52px; height: 52px; border-radius: 10px;
  background: linear-gradient(135deg, #2a2f38, #32383f);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.value-item h5 { margin: 0 0 4px; font-size: 15px; }
.value-item p  { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ───── FOOTER ───── */
.site-footer {
  background: #14171c;
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 52px 0 0;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px; padding-bottom: 40px;
}
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 28px; } }
.footer-brand img { height: 34px; margin-bottom: 10px; display: block; }
.footer-brand p { color: var(--muted); font-size: 14px; margin: 0; max-width: 280px; }
.footer-col h6 {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 2px; text-transform: uppercase; margin: 0 0 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: var(--muted); font-size: 14px; transition: color .2s; }
.footer-col ul a:hover { color: #e6eef2; }
.footer-col p { color: var(--muted); font-size: 14px; margin: 0 0 8px; }
.footer-col a { color: var(--muted); transition: color .2s; }
.footer-col a:hover { color: #e6eef2; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.09);
  padding: 18px 24px; text-align: center;
  color: var(--muted); font-size: 13px;
}

/* ───── CONTACT PAGE ───── */
.contact-section {
  padding: 72px 24px;
  background: linear-gradient(160deg, #1c2028 0%, #14171c 60%, #1a1d22 100%);
  min-height: calc(100vh - var(--nav-h));
}
.contact-inner {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 56px; align-items: start;
}
@media (max-width: 860px) {
  .contact-inner { grid-template-columns: 1fr; gap: 40px; }
}

/* LEFT — contact info */
.contact-title { font-size: clamp(26px,4vw,38px); font-weight: 800; margin: 0 0 8px; }
.contact-sub   { color: var(--muted); margin: 0 0 36px; font-size: 15px; }

.cinfo-cards { display: flex; flex-direction: column; gap: 14px; }
.cinfo-card {
  display: flex; align-items: center; gap: 18px;
  background: #21252d;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px; padding: 18px 20px;
  color: inherit; text-decoration: none;
  transition: border-color .2s, transform .15s;
}
.cinfo-card:hover {
  border-color: rgba(235,198,0,0.35);
  transform: translateX(4px);
}
.cinfo-card--static:hover { transform: none; cursor: default; }
.cinfo-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  background: rgba(235,198,0,0.08);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.cinfo-icon svg { width: 22px; height: 22px; }
.cinfo-label { font-weight: 600; font-size: 15px; margin-bottom: 2px; }
.cinfo-sub   { color: var(--muted); font-size: 13px; }

/* RIGHT — form panel */
.contact-form-panel {
  background: #21252d;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 18px; padding: 32px;
  box-shadow: 0 6px 30px rgba(0,0,0,.3);
}
.cfp-desc {
  color: var(--muted); font-size: 14px; line-height: 1.65;
  margin: 0 0 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.form-group input,
.form-group textarea {
  width: 100%; padding: 10px 14px;
  border-radius: 10px;
  border: 2px solid rgba(255,255,255,0.12);
  background: #2a2f38; color: #dde5ed;
  font-size: 14px; font-family: inherit;
  transition: border-color .2s;
}
.form-group input:focus,
.form-group textarea:focus { outline: none; border-color: var(--accent); }
.form-group textarea { resize: vertical; }
.field-error { border-color: #e05454 !important; }

/* ───── ANIMATIONS ───── */
.fade-up { transform: translateY(12px); opacity: 0; animation: up .7s ease-out forwards; }
.fade-up.delay { animation-delay: .12s; }
.fade-up.late  { animation-delay: .22s; }
@keyframes up { to { transform: none; opacity: 1; } }

.muted { color: var(--muted); }

/* ───── FLOATING WHATSAPP ───── */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.45);
  transition: transform .2s, box-shadow .2s;
}
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
}
@media (max-width: 600px) {
  .wa-fab { bottom: 20px; right: 16px; width: 50px; height: 50px; }
  .wa-fab svg { width: 26px; height: 26px; }
}
