:root {
  --bg: #100f0f;
  /* fundo quase preto */
  --bg-elev: #161617;
  /* elevação sutil */
  --text: #e7e7ea;
  /* texto principal */
  --muted: #b2b3b8;
  /* texto secundário */
  --brand: #ffffff;
  /* logotipo/links */
  --accent: #f2f2f2;
  /* botões claros */
  --card: #1b1c1d;
  /* fundo cards */
  --stroke: #2a2b2e;
  /* bordas sutis */
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

* {
  box-sizing: border-box
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
}

.container {
  width: min(1200px, 92vw);
  margin-inline: auto
}

a {
  color: var(--brand);
  text-decoration: none
}

h1,
h2,
h3 {
  margin: 0 0 .5rem 0
}

p {
  margin: .25rem 0 1rem 0
}

/* Header (desktop por padrão) */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: saturate(1.1) blur(6px);
  background: rgba(15, 15, 16, .75);
  border-bottom: 1px solid var(--stroke);
  left: 0;
  right: 0;
  width: 100%;
  padding-left: max(12px, env(safe-area-inset-left));
  padding-right: max(12px, env(safe-area-inset-right));
}

.site-header .nav {
  /* mantém o padding vertical existente e garante “respiro” nas bordas */
  padding-left: max(16px, env(safe-area-inset-left));
  padding-right: max(16px, env(safe-area-inset-right));
}

.nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .8rem 0
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

/* inline no desktop */
.nav-toggle {
  display: block;
}


/* esconde no desktop */
.cta {
  display: none;
}


/* mostra no desktop */

.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  letter-spacing: .2px
}

.brand-text {
  font-size: 1.25rem
}

.brand-icon {
  display: grid;
  place-items: center
}

.nav-links {
  display: flex;
  /* visível no desktop */
  align-items: center;
  gap: 1.2rem;
  position: static;
  /* sem overlay */
  transform: none;
  opacity: 1;
  visibility: visible;
}

.nav-links.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: transform .28s ease, opacity .28s ease;
}

.nav-links a {
  opacity: .9
}

.nav-links a:hover {
  opacity: 1
}

.dropdown .drop-menu {
  position: static;
  display: none;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.dropdown.open .drop-menu {
  display: block;
}

.drop-btn {
  background: none;
  border: 0;
  color: var(--brand);
  font: inherit;
  cursor: pointer;
  opacity: .9
}

.drop-btn:hover {
  opacity: 1
}

.drop-menu {
  position: absolute;
  top: 140%;
  left: 0;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: .5rem;
  display: none;
  min-width: 220px;
  box-shadow: var(--shadow)
}

.drop-menu a {
  display: block;
  padding: .55rem .7rem;
  border-radius: 8px
}

.drop-menu a:hover {
  background: #212225
}

.dropdown.open .drop-menu {
  display: block
}

.cta {
  margin-left: .8rem;
  background: #ffffff;
  color: #111;
  font-weight: 700;
  padding: .65rem 1rem;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  box-shadow: 0 6px 18px rgba(255, 255, 255, .08);
}

.cta:hover {
  transform: translateY(-1px)
}

.nav {
  overflow: hidden;
  justify-content: space-between;
}

/* Mobile menu */
.nav-toggle {
  display: none;
}

/* mostra o botão hamburguer */


.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 5px 0
}

.cta {
  display: inline-flex;
}

@media (hover:hover) {
  .dropdown:hover .drop-menu {
    display: block;
  }
}

/* esconde o botão largo no mobile/tablet */

.eyebrow {
  color: var(--muted);
  font-weight: 600;
  letter-spacing: .4px
}

.display {
  font-size: clamp(2.4rem, 4.5vw + .5rem, 5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.5px;
  margin: .3rem 0 1rem 0;
}

.display span {
  color: #fff
}

.sub {
  color: var(--muted);
  max-width: 42ch
}

.btn {
  display: inline-block;
  background: #fff;
  color: #111;
  font-weight: 700;
  padding: .85rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: var(--shadow)
}

.btn:hover {
  transform: translateY(-1px)
}

.btn.btn-outline {
  background: transparent;
  color: #fff;
  border: 1px solid #fff
}

/* PAINEL – mantém sem borda/sombra/raio */
.hero {
  position: relative;
  isolation: isolate;
  padding: 4.5rem 0 2.5rem 0;
  border-bottom: 1px solid var(--stroke);
}

.hero-media {
  position: absolute;
  right: clamp(16px, 3vw, 40px);
  top: clamp(48px, 9vh, 120px);
  width: min(52vw, 820px);
  height: min(58vh, 520px);
  z-index: 0;
  /* sem borda, sem sombra, sem raio */
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  /* entrada */
  transform: translateX(45%) scale(.985);
  opacity: 0;

  outline: none;
  outline-offset: 0;
}



/* ===== NÃO cortar o lado esquerdo ===== */
.hero-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  /* preenche o bloco */
  object-position: left center;
  /* ancora na ESQUERDA (mostra o círculo inteiro) */

  /* animação suave sem “sair” do quadro */
  transform: scale(1.02);
  animation: hero-zoom 14s ease-in-out infinite alternate;
  will-change: transform;
  clip-path: none;


}

.hero-media-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* “faixa” escura na base para fundir com o fundo */
.hero-media::after {
  content: none;
}


/* quando entra na tela, anima */
.hero-media.is-in {
  animation: heroSlideIn 900ms cubic-bezier(.2, .8, .2, 1) 140ms forwards;
}

@keyframes heroSlideIn {
  from {
    transform: translateX(45%) scale(.985);
    opacity: 0;
  }

  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}




/* SOLUÇÕES */
.solutions {
  padding: 4rem 0
}

.section-head {
  text-align: center;
  margin-bottom: 2rem
}

.section-head h2 {
  font-size: clamp(1.8rem, 2.2vw + .6rem, 3rem);
  font-weight: 800;
}

.section-head p {
  color: var(--muted)
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  padding: 1.35rem 1.2rem;
  box-shadow: var(--shadow);
  min-height: 160px;
}

.card h3 {
  font-size: 1.4rem;
  margin-bottom: .4rem
}

.card p {
  color: var(--muted)
}

/* ABOUT */
.about {
  padding: 4rem 0;
  background: #0c0c0d
}

.about-grid {
  display: grid;
  /* <— FALTAVA */
  grid-template-columns: minmax(420px, 52vw) 1fr;
  align-items: center;
}

.about-media {
  position: relative;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  overflow: hidden;
  height: clamp(260px, 40vh, 420px);

  /* estado inicial: fora da tela à esquerda */
  transform: translateX(-28%) scale(.985);
  opacity: 1;
  will-change: transform, opacity;
}

.about-media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: left center;
  /* leve anti-halo */
  clip-path: inset(1px round 2px);
}

.about-media.is-in {
  animation: aboutSlideIn 900ms cubic-bezier(.2, .8, .2, 1) forwards;
}

@keyframes aboutSlideIn {
  from {
    transform: translateX(-28%) scale(.985);
    opacity: 0;
  }

  to {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
}

/* responsivo: empilha e remove a animação no mobile */
@media (max-width: 920px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-media {
    height: clamp(220px, 36vh, 360px);
    transform: none;
    opacity: 1;
    animation: none;
  }
}

.about-copy p {
  color: var(--muted);
  margin-bottom: 1rem
}

.about-title {
  font-size: clamp(1.9rem, 2.2vw + .8rem, 3rem);
  font-weight: 800;
  margin-bottom: 1rem
}

.bullets {
  margin: 0 0 1.2rem 1.1rem
}

.bullets li {
  margin: .25rem 0
}

/* FAQ */
.faq {
  padding: 3.5rem 0
}

.faq h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 1rem
}

details {
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 1rem 1rem;
  margin: .7rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 700
}

details p {
  color: var(--muted);
  margin-top: .6rem
}

/* CONTATO */
.contact {
  padding: 4rem 0
}

.contact-grid {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 2rem;
  align-items: start
}

.contact-copy p {
  color: var(--muted)
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 1.2rem
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: .35rem
}

.contact-form label.full {
  grid-column: 1 / -1
}

.contact-form input,
.contact-form textarea {
  background: #0f0f10;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: .75rem;
  outline: none
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: #fff
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--stroke);
  padding: 1.4rem 0;
  background: #0d0d0e
}

.foot {
  display: flex;
  align-items: center;
  justify-content: space-between
}

.to-top {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #1e1f21;
  border: 1px solid var(--stroke)
}

/* Responsividade */
@media (max-width: 1100px) {
  .cards {
    grid-template-columns: repeat(2, 1fr)
  }

  .about-grid {
    grid-template-columns: 1fr
  }

  .contact-grid {
    grid-template-columns: 1fr
  }
}


@media (max-width: 520px) {
  .cards {
    grid-template-columns: 1fr
  }

  .display {
    letter-spacing: -.4px
  }
}

/* Acessibilidade: reduz movimento se usuário preferir */
@media (prefers-reduced-motion: reduce) {
  .hero-media {
    transform: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}

/* --- Efeito do título (reveal word-by-word) --- */
.display {
  position: relative;
  overflow: hidden;
  /* esconde as palavras que sobem */
}

.display .word {
  display: inline-block;
  transform: translateY(22px);
  filter: blur(6px);
  opacity: 0;
  will-change: transform, opacity, filter;
}

.display.is-in .word {
  animation: wordIn .7s cubic-bezier(.2, .8, .2, 1) forwards;
}

/* atraso progressivo por palavra */
.display.is-in .word:nth-child(1) {
  animation-delay: .02s
}

.display.is-in .word:nth-child(2) {
  animation-delay: .06s
}

.display.is-in .word:nth-child(3) {
  animation-delay: .10s
}

.display.is-in .word:nth-child(4) {
  animation-delay: .14s
}

.display.is-in .word:nth-child(5) {
  animation-delay: .18s
}

.display.is-in .word:nth-child(6) {
  animation-delay: .22s
}

.display.is-in .word:nth-child(7) {
  animation-delay: .26s
}

.display.is-in .word:nth-child(8) {
  animation-delay: .30s
}

.display.is-in .word:nth-child(9) {
  animation-delay: .34s
}

.display.is-in .word:nth-child(10) {
  animation-delay: .38s
}

.display.is-in .word:nth-child(11) {
  animation-delay: .42s
}

.display.is-in .word:nth-child(12) {
  animation-delay: .46s
}

.display.is-in .word:nth-child(13) {
  animation-delay: .50s
}

.display.is-in .word:nth-child(14) {
  animation-delay: .54s
}

.display.is-in .word:nth-child(15) {
  animation-delay: .58s
}

/* animação */
@keyframes wordIn {
  from {
    transform: translateY(22px);
    opacity: 0;
    filter: blur(6px);
    letter-spacing: .5px;
  }

  to {
    transform: translateY(0);
    opacity: 1;
    filter: blur(0);
    letter-spacing: 0;
  }
}

/* fallback para quem prefere menos movimento */
@media (prefers-reduced-motion: reduce) {
  .display .word {
    transform: none !important;
    filter: none !important;
    opacity: 1 !important;
    animation: none !important;
  }
}

/* ===== MOBILE: painel atrás do texto no hero ===== */
@media (max-width: 860px) {

  .hero {
    position: relative;
    isolation: isolate;
    /* garante empilhamento próprio */
    padding: 3.5rem 0 2.25rem;
    /* espaço para o título e o botão */
    min-height: 64vh;
  }

  /* o grid vira 1 coluna, mas o painel fica absoluto ao fundo */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .hero-copy {
    position: relative;
    z-index: 2;
    /* fica acima da imagem */
    max-width: 92vw;
  }

  /* painel: cobre toda a seção e vai para trás do texto */
  .hero-media {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 1;
    /* painel visível */
    animation: none;
    z-index: 0;
    /* atrás do texto */
    pointer-events: none;
    /* evita toque acidental na imagem */
    overflow: hidden;
  }

  .hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 30% center;
    /* ancora à esquerda p/ mostrar o círculo */
    filter: brightness(.82) contrast(1.02);
    /* dá leitura ao texto */
    transform: none;
    animation: none;
  }

  /* véu de contraste por cima da imagem (atrás do texto) */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    /* entre imagem e texto */
    /* degradê mais claro e curto à esquerda */
    background:
      linear-gradient(90deg,
        rgba(15, 15, 16, .55) 0%,
        /* antes .92 */
        rgba(15, 15, 16, .38) 36%,
        /* antes .82 */
        rgba(15, 15, 16, .22) 64%,
        /* antes .55 */
        rgba(15, 15, 16, .10) 100%);
    /* antes .35 */
    /* leve véu vertical, bem sutil */
    background-blend-mode: normal;
  }
}


/* acessibilidade: texto só para leitores de tela */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* logo no header */
.brand {
  display: flex;
  align-items: center;
  gap: .6rem
}

.brand-logo {
  display: block;
  height: 28px;
  /* ajuste fino conforme a barra */
  width: auto;
  object-fit: contain;
  image-rendering: -webkit-optimize-contrast;
  filter: drop-shadow(0 0 1px rgba(255, 255, 255, .12));
  /* leve realce no fundo escuro */
}

@media (min-width: 900px) {
  .brand-logo {
    height: 32px;
  }

  /* um pouco maior em telas grandes */
}

/* se ainda existir .brand-text, esconda */
.brand-text {
  display: none !important;
}

.brand-icon {
  display: none !important;
}

/* ===== MAPA (estrutura em camadas) ===== */
.map-section {
  padding: 3.5rem 0;
}

.map-box {
  position: relative;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  height: clamp(320px, 46vh, 520px);
  overflow: hidden;
}

/* STAGE ABSOLUTO — IGUAL AO SEU SNIPPET */
.map-stage {
  position: relative;
  height: clamp(360px, 48vh, 520px);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  background: #121315;
  box-shadow: var(--shadow);
  overflow: hidden;
}

/* WRAPPER CENTRAL (equivale ao child com left:50% top:50% no seu exemplo) */
/* ocupa toda a área do .map-stage */
.map-layers,
#mapCanvas,
#mapCanvas .leaflet-container {
  width: 100%;
  height: 100%;
  pointer-events: auto;
  cursor: grab;
}

#mapCanvas .leaflet-container:active {
  cursor: grabbing;
}

.map-stage>*[style*="position: absolute"] {
  pointer-events: none;
}

#mapCanvas {
  pointer-events: auto;
}

/* PANES COM OS MESMOS Z-INDEX (104..107) */
.map-pane {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
}

.map-pane.tiles {
  z-index: 104;
}

.map-pane.overlay {
  z-index: 105;
  pointer-events: none;
}

.map-pane.ui {
  z-index: 106;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  padding: 12px;
  gap: 8px;
}

.map-pane.tooltips {
  z-index: 107;
  pointer-events: none;
}

/* CANVAS DO LEAFLET */
#mapCanvas {
  width: 100%;
  height: 100%;
}

#mapCanvas .leaflet-container {
  width: 100%;
  height: 100%;
}

/* Tema escuro + correções visuais */
.leaflet-container {
  background: #0c0c0d;
}

.leaflet-control-attribution {
  background: rgba(0, 0, 0, .45);
  color: #ccc;
  border-radius: 6px;
  padding: 2px 6px;
  backdrop-filter: blur(4px) saturate(1.1);
}

/* BOTÃO “Abrir no mapa” (fica no “slot”) */
.map-slot .btn {
  backdrop-filter: saturate(1.1) blur(6px);
}

/* Acessibilidade: announcer que replica seu span ‘aria-live’ */
.sr-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
  border: 0;
}

/* bloco de contato rápido */
.contact-quick {
  padding: 2.5rem 0;
}

.contact-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  /* 3 colunas iguais */
  gap: 1rem;
  align-items: stretch;
  /* força mesma altura */
}

.contact-quick-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  /* ícone + conteúdo */
  gap: .8rem;
  align-items: start;
  background: var(--bg-elev);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  min-height: 116px;
  /* altura mínima igual */
}

.contact-quick-item svg {
  color: var(--muted);
  margin-top: .15rem;
  flex-shrink: 0;
}

.contact-quick-item strong {
  display: block;
  margin-bottom: .15rem;
}

.contact-quick-item a {
  color: var(--text);
  opacity: .95;
}



.contact-quick-cta {
  grid-column: 1 / -1;
  /* CTA ocupa a linha inteira */
  justify-self: end;
  margin-top: .25rem;
}

.btn-whats {
  background: #25D366;
  color: #0b1a0f;
  border: 0;
}

.btn-whats:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* responsivo */
@media (max-width: 980px) {
  .contact-quick-grid {
    grid-template-columns: 1fr;
    /* empilha tudo */
  }

  .contact-quick-cta {
    justify-self: start;
  }
}


/* FAB WhatsApp: corrige tamanho, z-index e exibição no mobile */
.fab-whats {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  width: 60px;
  height: 60px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  /* cor do SVG via currentColor */
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), 0 2px 6px rgba(0, 0, 0, .2);
  z-index: 1200;
  /* acima do botão "to-top" */
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.fab-whats svg {
  width: 28px;
  height: 28px;
  display: block;
}

.fab-whats:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.fab-whats:active {
  transform: translateY(0);
  filter: brightness(.98);
}

/* Garante que aparece no mobile; ajuste leve de tamanho */
@media (max-width: 860px) {
  .fab-whats {
    width: 56px;
    height: 56px;
  }
}

/* Se tiver um botão "to-top" no mesmo canto, afastar um do outro */
.to-top {
  position: fixed;
  /* se já não for */
  right: max(14px, env(safe-area-inset-right));
  bottom: max(84px, calc(env(safe-area-inset-bottom) + 70px));
  /* sobe para não colidir com o WhatsApp */
  z-index: 1100;
}

body.menu-open {
  height: 100vh;
  overflow: hidden;
  -webkit-overflow-scrolling: auto;
}

@media (max-width: 1024px) {
  body.menu-open {
    height: 100vh;
    overflow: hidden;
    /* trava scroll do conteúdo por trás */
    -webkit-overflow-scrolling: auto;
  }
}

/* Parallax: melhora a performance e evita conflito com animação base */
.hero-media img,
.about-media img {
  will-change: transform;
  transform-origin: center center;
}

/* Quando o parallax estiver ativo, desligar o "hero-zoom" */
.has-parallax .hero-media img {
  animation: none !important;
}

/* Segurança: não aplicar parallax em telas pequenas */
@media (max-width: 860px) {

  .hero-media img,
  .about-media img {
    transform: none !important;
  }
}