:root{
  --lx-bg:#ffffff;
  --lx-text:#0f1a2b;
  --lx-muted:#5a6b88;
  --lx-primary:#121875; /* azul Lunex */
  --lx-accent:#ff4b0f;  /* laranja Lunex */
  --lx-surface:#f5f7fb;
  --lx-ring: rgba(18,24,117,.25);
}
@media (prefers-color-scheme: dark){
  .theme-auto{
    --lx-bg:#0c0f28;
    --lx-text:#e9edff;
    --lx-muted:#a2acd6;
    --lx-primary:#3539b0;
    --lx-accent:#ff4b0f;
    --lx-surface:#0f1333;
    --lx-ring: rgba(255,75,15,.22);
  }
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:var(--lx-bg); color:var(--lx-text); line-height:1.55;
  text-rendering:optimizeLegibility; -webkit-font-smoothing:antialiased;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
.lx-container{width:min(1200px,92%);margin-inline:auto}

/* Header */
.lx-header{position:sticky;top:0;background:linear-gradient(180deg, rgba(0,0,0,.05), transparent), var(--lx-bg);backdrop-filter:saturate(1.2) blur(6px);z-index:50;border-bottom:1px solid rgba(0,0,0,.06)}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:68px;gap:1rem}
.logo{height:36px;width:auto}
.nav{display:flex;gap:1.2rem;align-items:center}
.nav a{padding:.5rem .2rem;font-weight:600;opacity:.9}
.nav a:hover{color:var(--lx-accent)}
.nav-toggle{display:none;border:0;background:transparent;font-size:1.7rem;color:#fff;cursor:pointer}
.mode-btn{border:1px solid rgba(0,0,0,.1);padding:.4rem .6rem;border-radius:.75rem;cursor:pointer}
.mode-btn:hover{border-color:var(--lx-accent)}
/* Header fixo sempre igual, independente do tema */
.lx-header {
  background: #0b0f36 !important;
  color: #fff !important;
  border-bottom: none !important;
}
.lx-header .nav a {
  color: #fff !important;
}
.lx-header .nav a:hover {
  color: #ff4b0f !important;
}
.logo {
  filter: none !important;
  opacity: 1 !important;
}

/* Hero / Slider */
.hero{position:relative}
.glide{--h:520px}
@media (max-width:768px){ .glide{--h:380px} }
.slide{
  height:var(--h); display:grid; place-items:center; position:relative; overflow:hidden;
  background:#0b0f2a;
}
.slide img{position:absolute; inset:0; width:100%; height:100%; object-fit:cover; opacity:.65}
.slide .overlay{
  position:relative; z-index:2; text-align:center; padding:1rem 1.25rem; color:#fff;
}
.slide h1{font-size:clamp(1.6rem, 3.5vw, 3rem); margin:.4rem 0 .6rem}
.slide p{opacity:.95; max-width:780px; margin:0 auto 1rem}
.cta{
  display:inline-flex; gap:.6rem; align-items:center; font-weight:800; letter-spacing:.3px;
  background:linear-gradient(135deg,var(--lx-accent),#ff8a4e); color:#0b0b0b;
  border-radius:999px; padding:.9rem 1.1rem; box-shadow:0 8px 24px rgba(255,75,15,.35);
}
.cta:hover{transform:translateY(-1px)}
.ghost{
  color:#fff; border:1px solid rgba(255,255,255,.5); border-radius:999px; padding:.85rem 1.05rem; margin-left:.5rem;
}

/* Info blocks */
.info{background:var(--lx-surface); padding:2.5rem 0}
.info-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.2rem}
.info-card{background:var(--lx-bg); border:1px solid rgba(0,0,0,.06); border-radius:1rem; padding:1.2rem}
.info-card h4{margin:.2rem 0 .35rem}
.info-card p{color:var(--lx-muted); font-size:.98rem}

/* Sections */
.section{padding:3rem 0}
.section h2{font-size:clamp(1.4rem,3vw,2rem); margin:0 0 1rem}
.section p{color:var(--lx-muted)}

/* Cases */
.cases-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}
.case{border:1px solid rgba(0,0,0,.06); border-radius:1rem; overflow:hidden; background:var(--lx-bg)}
.case h5{margin:.7rem 1rem 1rem}

/* Newsletter */
.newsletter{display:flex;gap:.6rem}
.newsletter input{
  flex:1; padding:.8rem .9rem; border-radius:.7rem; border:1px solid rgba(0,0,0,.12);
  outline-color:var(--lx-ring);
}
.newsletter button{
  padding:.8rem 1rem; border-radius:.7rem; border:0; background:var(--lx-primary); color:#fff; font-weight:700;
}
.newsletter button:hover{filter:brightness(1.08)}

/* ==== Footer Final Lunex ==== */
.final-footer{background:#0b0f36;color:#cfd6ff;padding:40px 0 20px}
.final-footer h4{color:#fff;margin:0 0 12px;font-weight:700}
.final-footer a{color:#cfd6ff;text-decoration:none}
.final-footer a:hover{color:#ff4b0f}
.footer-grid{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:30px}
.footer-list{list-style:none;margin:0 0 8px 0;padding:0;display:grid;gap:5px}
.footer-col em{color:#ffb36a;font-style:normal;font-weight:600}
.whatsapp-green{display:inline-block;background:#25d366;color:#fff;padding:.6rem 1.2rem;border-radius:40px;font-weight:700;margin-top:.5rem;text-align:center}
.whatsapp-green:hover{filter:brightness(1.1)}
.blog-btn{display:inline-block;background:#ff4b0f;color:#fff;padding:.6rem 1.2rem;border-radius:6px;margin-top:.5rem;font-weight:700;box-shadow:0 0 12px rgba(255,75,15,.6);text-align:center}
.blog-btn:hover{filter:brightness(1.05)}
.map-frame iframe{border-radius:8px;overflow:hidden}
.iso-text{margin-top:10px;font-size:.9rem;opacity:.8}
.footer-bottom{margin-top:35px;border-top:1px solid rgba(255,255,255,.15);padding-top:10px;display:flex;align-items:center;justify-content:space-between;color:#b8c2ff;font-size:.95rem;flex-wrap:wrap;text-align:center;gap:10px}
.footer-bottom .arc{color:#ff4b0f;font-weight:600}

/* === Modal Legal === */
.policy-modal {
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
}
.policy-backdrop {
  position:absolute;
  inset:0;
  background:rgba(0,0,0,0.6);
}
.policy-dialog {
  position:relative;
  z-index:1;
  width:min(800px, 92%);
  margin:6vh auto;
  background:#fff;
  color:#111;
  border-radius:12px;
  overflow:auto;
  max-height:80vh;
  box-shadow:0 20px 60px rgba(0,0,0,.3);
  animation:fadeIn .3s ease;
}
.policy-close {
  position:absolute;
  top:10px;
  right:10px;
  background:#eee;
  border:none;
  border-radius:50%;
  width:36px;
  height:36px;
  cursor:pointer;
  font-size:18px;
}
.policy-content { padding:24px; }
.policy-content h2 { margin-top:0; }

@keyframes fadeIn {
  from { opacity:0; transform:translateY(-10px); }
  to { opacity:1; transform:translateY(0); }
}

@media (prefers-color-scheme: dark) {
  .policy-dialog { background:#0f1333; color:#e9edff; }
  .policy-close { background:#1a1a3d; color:#fff; }
}

/* ===== Responsividade Mobile ===== */
@media (max-width: 768px) {
  /* Header */
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav {
    display: none;
    flex-direction: column;
    gap: 0.8rem;
    background: #0b0f36;
    position: absolute;
    top: 68px;
    right: 0;
    width: 100%;
    padding: 1rem;
  }
  .nav.show { display: flex; }
  .nav-toggle { display: block; }

  /* Hero */
  .slide h1 { font-size: 1.6rem; }
  .slide p { font-size: 1rem; padding: 0 1rem; }

  /* Info e Cases */
  .info-grid { grid-template-columns: 1fr; }
  .cases-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .whatsapp-green, .blog-btn { width: 100%; text-align: center; }
}

/* Focus */
:focus-visible {
  outline:2px solid var(--lx-ring);
  outline-offset:2px;
}
