:root {
  --bg: #0b0f19;
  --bg-alt: #0f172a;
  --bg-soft: #111827;
  --card: rgba(15, 23, 42, 0.75);
  --text: #e2e8f0;
  --muted: #9aa7bf;
  --accent: #38bdf8;
  --accent-2: #8b5cf6;
  --border: rgba(148, 163, 184, 0.2);
  --shadow: 0 18px 45px rgba(2, 6, 23, 0.55);
  --radius: 16px;
  --max-width: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100%;
  position: relative;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(56, 189, 248, 0.2) 0 1px, transparent 1px 140px),
    repeating-linear-gradient(0deg, rgba(139, 92, 246, 0.18) 0 1px, transparent 1px 140px),
    radial-gradient(circle at 2px 2px, rgba(56, 189, 248, 0.45) 2px, transparent 3px),
    radial-gradient(circle at 2px 2px, rgba(139, 92, 246, 0.35) 1px, transparent 2px),
    repeating-linear-gradient(45deg, rgba(56, 189, 248, 0.12) 0 2px, transparent 2px 120px),
    repeating-linear-gradient(-45deg, rgba(139, 92, 246, 0.1) 0 2px, transparent 2px 140px);
  background-size: 240px 240px, 240px 240px, 56px 56px, 96px 96px, 220px 220px, 260px 260px;
  background-position: 0 0, 10px 10px, 0 0, 18px 18px, 40px -20px, -30px 60px;
  opacity: 0.38;
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 14% 22%, rgba(56, 189, 248, 0.35), transparent 42%),
    radial-gradient(circle at 82% 16%, rgba(139, 92, 246, 0.3), transparent 40%),
    radial-gradient(circle at 50% 78%, rgba(15, 23, 42, 0.8), transparent 55%),
    linear-gradient(120deg, rgba(56, 189, 248, 0.2), transparent 46%),
    linear-gradient(300deg, rgba(139, 92, 246, 0.18), transparent 48%);
  opacity: 0.9;
  pointer-events: none;
  z-index: 0;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: #ffffff; }
p { margin: 0 0 1rem; color: var(--muted); }
h1, h2, h3, h4 { font-family: "Space Grotesk", "Segoe UI", sans-serif; margin: 0 0 1rem; color: #f8fafc; }
h1 { font-size: clamp(2.2rem, 3vw, 3.4rem); line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
h3 { font-size: 1.2rem; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: #ffffff;
  color: #0b0f19;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  z-index: 100;
}
.skip-link:focus { left: 12px; }

.container {
  width: min(var(--max-width), calc(100% - 2.5rem));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.section { padding: 72px 0; position: relative; z-index: 1; }
.section-header { max-width: 720px; margin-bottom: 2.5rem; }
.section-header p { margin-bottom: 0; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.95), rgba(139, 92, 246, 0.95));
  color: #0b0f19;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.2);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(56, 189, 248, 0.28); }
.btn-outline {
  border-color: rgba(148, 163, 184, 0.4);
  color: #e2e8f0;
  background: transparent;
}
.btn-outline:hover { border-color: rgba(56, 189, 248, 0.7); }

.site-header {
  position: sticky;
  top: 0;
  background: rgba(11, 15, 25, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  z-index: 20;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.32rem 0; gap: 0.9rem; }
.logo { display: inline-flex; align-items: center; gap: 0.8rem; font-weight: 700; letter-spacing: 0.04em; }

.logo-name{
  display:inline-flex;
  flex-direction:column;
  justify-content:center;
  gap:0.05rem;
  line-height:1.05;
  font-weight:800;
  letter-spacing:0.01em;
  color:#e2e8f0;
  font-size:0.98rem;
}
.logo-name span{ display:block; }
@media (max-width: 520px){
  .logo-name{ font-size:0.9rem; }
  .logo-mark{ width:40px; height:40px; }
}
.logo-text {
  font-family: "Orbitron", "Space Grotesk", "Segoe UI", sans-serif;
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #e2e8f0;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
  gap: 0.1rem;
}
.logo-mark {
  width: 44px;
  height: 44px;
  display: inline-block;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.45));
}
.nav { display: flex; align-items: center; gap: 1.5rem; font-weight: 500; color: #cbd5f5; }
.nav a { position: relative; }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 2px;
  background: linear-gradient(120deg, #38bdf8, #8b5cf6);
  transition: width 0.2s ease;
}
.nav a:hover::after { width: 100%; }

.header-cta { display: flex; align-items: center; gap: 1rem; }
.menu-toggle {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 0.55rem 0.6rem;
  display: none;
  flex-direction: column;
  gap: 0.3rem;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
}

.hero { padding: 88px 0 72px; }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; align-items: center; }
.hero p { font-size: 1.05rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.hero-highlights { display: grid; gap: 1rem; margin-top: 2rem; }
.highlight-card {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
}

.card-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 189, 248, 0.5); box-shadow: 0 22px 45px rgba(2, 6, 23, 0.65); }
.card h3 { margin-bottom: 0.6rem; }
.card p { margin-bottom: 0; }
.card-icon {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.3);
  background: rgba(56, 189, 248, 0.1);
  margin-bottom: 1rem;
}

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  display: flex;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
}
.steps span {
  font-weight: 700;
  color: #7dd3fc;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.tag-list span {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.85rem;
}

.cta-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.4));
  box-shadow: var(--shadow);
}
.cta-panel p { margin-bottom: 0; }

.cta-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.faq details {
  padding: 1rem 1.2rem;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
}
.faq details + details { margin-top: 0.8rem; }
.faq summary { cursor: pointer; font-weight: 600; color: #f8fafc; }
.faq p { margin-top: 0.8rem; }

.neighborhoods-grid {
  list-style: none;
  display: grid;
  gap: 0.75rem 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  padding: 0;
  margin: 1.5rem 0 0;
}
.neighborhoods-grid li {
  padding: 0.6rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.6);
  font-size: 0.9rem;
  color: #cbd5f5;
}

.blog-list { display: grid; gap: 1.5rem; }
.content {
  max-width: 760px;
}
.content ul { padding-left: 1.2rem; }

.checklist {
  list-style: none;
  padding: 0;
}
.checklist li {
  position: relative;
  padding-left: 1.4rem;
  margin-bottom: 0.5rem;
}
.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #7dd3fc;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding: 64px 0 32px;
  background: rgba(11, 15, 25, 0.95);
  backdrop-filter: blur(16px);
}
.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.footer-grid h4 { margin-bottom: 0.75rem; }
.footer-grid a { color: #cbd5f5; display: block; margin-bottom: 0.5rem; }
.contact-list a { display: block; margin-bottom: 0.5rem; }
.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  margin-top: 2rem;
  padding-top: 1.5rem;
  font-size: 0.9rem;
  color: #9aa7bf;
}

.whatsapp-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  border: 2px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.55), 0 0 18px rgba(37, 211, 102, 0.45);
  z-index: 999;
  line-height: 0;
  transform-origin: center;
  animation: pulse-whatsapp 2.4s ease-in-out infinite;
}
.whatsapp-float svg { width: 28px; height: 28px; fill: currentColor; display: block; }
.whatsapp-float:hover { transform: translateY(-2px) scale(1.03); }

@keyframes pulse-whatsapp {
  0% { transform: translateZ(0) scale(1); box-shadow: 0 16px 32px rgba(2, 6, 23, 0.55), 0 0 18px rgba(37, 211, 102, 0.35); }
  50% { transform: translateZ(0) scale(1.06); box-shadow: 0 20px 38px rgba(2, 6, 23, 0.6), 0 0 26px rgba(37, 211, 102, 0.55); }
  100% { transform: translateZ(0) scale(1); box-shadow: 0 16px 32px rgba(2, 6, 23, 0.55), 0 0 18px rgba(37, 211, 102, 0.35); }
}

.page-intro { max-width: 720px; }

.hero-inner { padding-bottom: 48px; }
.hero-inner .hero-grid { grid-template-columns: 1fr; }

@media (max-width: 960px) {
  .hero-grid, .split, .footer-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav {
    position: fixed;
    top: 72px;
    right: 16px;
    left: 16px;
    flex-direction: column;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 1rem;
    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }
  .nav-open .nav {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .menu-toggle { display: inline-flex; }
  .header-cta .btn { display: none; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 960px) {
  .logo-mark {
    width: 72px;
    height: 72px;
  }
  .logo-text {
    font-size: 0.7rem;
  }
}

@media (max-width: 640px) {
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 72px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
  .logo-mark { width: 70px; height: 70px; }
  .logo-text { font-size: 0.62rem; letter-spacing: 0.1em; }
  .footer-grid { grid-template-columns: 1fr; }
}

:focus-visible {
  outline: 2px solid #38bdf8;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .whatsapp-float { animation: none; }
}

.footer-note {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #9aa7bf;
}

/* ===== Ajustes solicitados: header mais baixo + logo flutuando (sem mudar tema) ===== */
.site-header { overflow: visible; }

/* Header mais compacto */
.header-inner{
  padding: 0.45rem 0;
  min-height: 56px;
}

/* Logo dentro do header (compacto) */
.logo{
  position: relative;
  padding-left: 0;
}
.logo-mark{
  position: relative;
  left: auto;
  top: auto;
  transform: none;
  pointer-events: auto;
}

/* Ajuste do menu mobile para acompanhar o header menor */
@media (max-width: 960px){
  .nav{ top: 72px; }
}

/* Em telas menores, reduz a marca e mantém a proporção */
@media (max-width: 560px){
  .header-inner{ padding: 0.42rem 0; min-height: 52px; }
  .logo{ padding-left: 0; }
  .logo-mark{ height: 34px; width: auto; max-width: 220px; }
  .header-cta .btn{ padding: 0.56rem 0.95rem; font-size: 0.92rem; }
}

/* ===== Botão flutuante do WhatsApp: melhor no mobile (safe-area + tamanho) ===== */
.whatsapp-float{
  right: max(16px, env(safe-area-inset-right));
  bottom: max(16px, env(safe-area-inset-bottom));
}
@media (max-width: 560px){
  .whatsapp-float{
    width: 52px;
    height: 52px;
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
  }
  .whatsapp-float svg{ width: 26px; height: 26px; }
}
