/* =================================================================
   BONAPARTE JOIAS E ÓTICA — Landing Nova Venécia
   Camada por cima do style.css do site raiz (cabeçalho, rodapé,
   botões e variáveis de cor vêm de lá). Tudo aqui usa o prefixo nv-.

   1. Base e utilitários
   2. Cabeçalho (ajustes)
   3. Hero (só imagem)
   4. Nossas linhas (quadrantes)
   5. Contatos / vendedores
   6. Mapa
   7. WhatsApp flutuante
   8. Animações de entrada
   9. Responsivo
   ================================================================= */

/* ---------- 1. BASE E UTILITÁRIOS ---------- */
html { scroll-padding-top: calc(var(--altura-header) + 8px); }
body { overflow-x: hidden; }

.nv-eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--cor-dourado-escuro);
}
.nv-eyebrow::before, .nv-eyebrow::after {
  content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.55;
}
.nv-eyebrow-left::after { display: none; }
.nv-eyebrow-light { color: var(--cor-dourado-claro); }

.nv-heading { text-align: center; max-width: 640px; margin: 0 auto 64px; }
.nv-heading h2 {
  font-size: clamp(2rem, 4vw, 3rem); margin: 18px 0 16px; color: var(--cor-texto);
  letter-spacing: -0.01em;
}
.nv-heading h2 em, .nv-contatos-intro h2 em, .nv-mapa-card h2 em {
  font-style: italic; font-weight: 500;
  background: linear-gradient(135deg, var(--cor-dourado-claro), var(--cor-dourado-escuro));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nv-heading p { color: var(--cor-texto-suave); font-size: 1rem; }

.nv-diamond {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-top: 26px; color: var(--cor-dourado);
}
.nv-diamond::before, .nv-diamond::after {
  content: ""; width: 70px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cor-dourado));
}
.nv-diamond::after { transform: scaleX(-1); }
.nv-diamond i { width: 7px; height: 7px; background: currentColor; transform: rotate(45deg); display: block; }

.nv-section { padding: 120px 0; position: relative; }

/* ---------- 2. CABEÇALHO ---------- */
.main-nav > ul > li.nv-current > a { color: var(--cor-dourado-claro); }
.main-nav > ul > li.nv-current > a::before {
  content: ""; width: 6px; height: 6px; background: var(--cor-dourado);
  transform: rotate(45deg); margin-right: 4px; flex: none;
}
@media (max-width: 960px) {
  .main-nav > ul > li.nv-current > a::before { display: none; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .main-nav a { padding: 10px 7px; font-size: 0.76rem; }
  .header-inner { gap: 12px; }
  .header-whatsapp { padding: 12px 16px; }
}
@media (min-width: 961px) and (max-width: 1060px) {
  .header-whatsapp span { display: none; }
}

/* ---------- 3. HERO (apenas imagem) ---------- */
.nv-hero {
  position: relative; height: 100svh; min-height: 560px; max-height: 1080px;
  background: var(--cor-preto); overflow: hidden;
}
.nv-hero picture, .nv-hero img { position: absolute; inset: 0; width: 100%; height: 100%; }
.nv-hero img {
  object-fit: cover; object-position: 56% 38%;
  transform-origin: 58% 40%;
  animation: nvKen 22s cubic-bezier(.2,.6,.2,1) both;
}
@keyframes nvKen { from { transform: scale(1.12); } to { transform: scale(1); } }
/* véu: escurece o topo (menu legível) e funde a base com a próxima seção */
.nv-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(22,18,14,0.72) 0, rgba(22,18,14,0.28) 16%, transparent 34%),
    linear-gradient(to top, var(--cor-creme) 0, rgba(247,242,232,0) 16%);
}
.nv-scroll {
  position: absolute; left: 50%; bottom: 34px; z-index: 2; transform: translateX(-50%);
  width: 26px; height: 54px; border-radius: 20px; border: 1.5px solid rgba(195,152,79,0.85);
  background: rgba(22,18,14,0.35); backdrop-filter: blur(4px);
}
.nv-scroll::after {
  content: ""; position: absolute; left: 50%; top: 10px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 4px; background: var(--cor-dourado-claro);
  animation: nvDot 2s ease-in-out infinite;
}
@keyframes nvDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(20px); } 100% { opacity: 0; } }

/* ---------- 4. NOSSAS LINHAS ---------- */
.nv-linhas { background: var(--cor-creme); padding-top: 90px; }
.nv-linhas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  align-items: stretch;
}
.nv-linha {
  position: relative; display: block; aspect-ratio: 4 / 5.2; border-radius: 18px; overflow: hidden;
  isolation: isolate; color: var(--cor-creme); box-shadow: 0 22px 50px -26px rgba(22,18,14,0.6);
  background: var(--cor-preto-suave);
}
.nv-linha img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.nv-linha::before {           /* gradiente de leitura */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(22,18,14,0.92) 0, rgba(22,18,14,0.55) 34%, rgba(22,18,14,0) 62%);
  transition: opacity .5s ease;
}
.nv-linha::after {            /* moldura fina dourada */
  content: ""; position: absolute; inset: 14px; border-radius: 10px;
  border: 1px solid rgba(216,184,120,0.45); pointer-events: none;
  transition: inset .5s cubic-bezier(.2,.7,.2,1), border-color .5s ease;
}
.nv-linha:hover img, .nv-linha:focus-visible img { transform: scale(1.07); }
.nv-linha:hover::after, .nv-linha:focus-visible::after { inset: 9px; border-color: rgba(216,184,120,0.95); }
.nv-linha-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 34px 38px; }
.nv-linha-num {
  display: block; font-family: var(--fonte-titulo); font-style: italic;
  color: var(--cor-dourado-claro); font-size: 1rem; margin-bottom: 6px;
}
.nv-linha h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); color: var(--cor-creme); margin-bottom: 8px; }
.nv-linha p { font-size: 0.88rem; line-height: 1.55; color: rgba(247,242,232,0.8); max-width: 270px; }
.nv-linha-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--cor-dourado-claro);
}
.nv-linha-cta svg { transition: transform .3s ease; }
.nv-linha:hover .nv-linha-cta svg { transform: translateX(6px); }

/* ---------- 5. CONTATOS / VENDEDORES ---------- */
.nv-contatos {
  background:
    radial-gradient(900px 480px at 88% 8%, rgba(195,152,79,0.16), transparent 70%),
    radial-gradient(700px 420px at 0% 100%, rgba(195,152,79,0.09), transparent 70%),
    var(--cor-preto);
  color: var(--cor-creme);
}
.nv-contatos-inner { display: grid; grid-template-columns: 0.85fr 1.5fr; gap: 72px; align-items: start; }
.nv-contatos-intro { position: sticky; top: calc(var(--altura-header) + 36px); }
.nv-contatos-intro h2 {
  font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 20px 0 18px; color: var(--cor-creme); letter-spacing: -0.01em;
}
.nv-contatos-intro > p { color: rgba(247,242,232,0.7); max-width: 380px; }

.nv-horario {
  margin-top: 34px; padding: 22px 24px; border-radius: 14px;
  background: rgba(247,242,232,0.04); border: 1px solid rgba(195,152,79,0.22);
}
.nv-open {
  display: inline-flex; align-items: center; gap: 9px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.04em; padding: 6px 14px 6px 11px; border-radius: 999px;
  background: rgba(247,242,232,0.07); color: rgba(247,242,232,0.8);
}
.nv-open i { width: 8px; height: 8px; border-radius: 50%; background: #8d8478; }
.nv-open.is-open { color: #9ff0bd; background: rgba(37,211,102,0.12); }
.nv-open.is-open i { background: #25d366; box-shadow: 0 0 0 0 rgba(37,211,102,0.6); animation: nvLive 2s infinite; }
@keyframes nvLive { 70% { box-shadow: 0 0 0 9px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }
.nv-horario dl { margin: 16px 0 0; display: grid; gap: 8px; font-size: 0.9rem; }
.nv-horario dl div { display: flex; justify-content: space-between; gap: 16px; }
.nv-horario dt { color: rgba(247,242,232,0.65); }
.nv-horario dd { margin: 0; color: var(--cor-creme); font-weight: 500; }

.nv-vendedores { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.nv-vendedor {
  position: relative; display: flex; align-items: center; gap: 18px; padding: 22px 22px 22px 20px;
  border-radius: 16px; background: rgba(247,242,232,0.04); border: 1px solid rgba(195,152,79,0.2);
  overflow: hidden; isolation: isolate;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.nv-vendedor::before {         /* brilho que acompanha o hover */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0;
  background: linear-gradient(120deg, rgba(216,184,120,0.18), transparent 60%);
  transition: opacity .4s ease;
}
.nv-vendedor:hover, .nv-vendedor:focus-visible {
  transform: translateY(-4px); border-color: var(--cor-dourado);
  background: rgba(247,242,232,0.07); box-shadow: 0 18px 36px -20px rgba(0,0,0,0.8);
}
.nv-vendedor:hover::before, .nv-vendedor:focus-visible::before { opacity: 1; }
.nv-avatar {
  flex: none; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; font-family: var(--fonte-titulo); font-size: 1.55rem; font-weight: 600;
  color: var(--cor-preto); background: linear-gradient(135deg, var(--cor-dourado-claro), var(--cor-dourado-escuro));
  box-shadow: 0 0 0 4px rgba(195,152,79,0.16);
}
.nv-vendedor-info { min-width: 0; flex: 1; }
.nv-vendedor-info small {
  display: block; font-size: 0.66rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cor-dourado); margin-bottom: 2px;
}
.nv-vendedor-info strong { display: block; font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 600; line-height: 1.2; }
.nv-vendedor-info span { display: block; font-size: 0.86rem; color: rgba(247,242,232,0.68); margin-top: 2px; letter-spacing: 0.02em; }
.nv-vendedor-wa {
  flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(37,211,102,0.14); color: #4be08a; border: 1px solid rgba(37,211,102,0.35);
  transition: background-color .3s ease, color .3s ease, transform .3s ease;
}
.nv-vendedor:hover .nv-vendedor-wa { background: #25d366; color: #fff; transform: scale(1.08) rotate(-6deg); }

/* ---------- 6. MAPA ---------- */
.nv-mapa { background: var(--cor-creme); }
.nv-mapa-inner { display: grid; grid-template-columns: 0.8fr 1.5fr; gap: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 34px 70px -34px rgba(22,18,14,0.55); }
.nv-mapa-card {
  background: var(--cor-preto-suave); color: var(--cor-creme); padding: 52px 44px;
  display: flex; flex-direction: column; justify-content: center;
}
.nv-mapa-card h2 { font-size: clamp(1.9rem, 3vw, 2.5rem); margin: 18px 0 22px; color: var(--cor-creme); }
.nv-endereco { display: flex; gap: 14px; align-items: flex-start; font-size: 1.02rem; line-height: 1.55; }
.nv-endereco svg { color: var(--cor-dourado); margin-top: 3px; flex: none; }
.nv-endereco strong { display: block; font-family: var(--fonte-titulo); font-size: 1.35rem; font-weight: 600; }
.nv-endereco span { color: rgba(247,242,232,0.7); font-size: 0.94rem; }
.nv-mapa-card .nv-endereco + .nv-endereco { margin-top: 18px; }
.nv-mapa-acoes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.nv-mapa-frame { position: relative; min-height: 480px; background: #e9e2d2; }
.nv-mapa-frame iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
  filter: grayscale(0.2) sepia(0.12) contrast(1.04);
}

/* ---------- 7. WHATSAPP FLUTUANTE ---------- */
.whatsapp-float { box-shadow: 0 12px 28px -8px rgba(0,0,0,0.55); }
.whatsapp-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%; z-index: -1;
  background: #25d366; animation: nvPulse 2.6s ease-out infinite;
}
@keyframes nvPulse { 0% { transform: scale(1); opacity: 0.55; } 100% { transform: scale(1.75); opacity: 0; } }
.nv-wa-label {
  position: absolute; right: calc(100% + 14px); top: 50%; transform: translate(8px, -50%);
  white-space: nowrap; font-size: 0.78rem; font-weight: 600; padding: 9px 14px; border-radius: 999px;
  background: var(--cor-preto); color: var(--cor-creme); border: 1px solid rgba(195,152,79,0.4);
  opacity: 0; pointer-events: none; transition: opacity .25s ease, transform .25s ease;
}
.whatsapp-float:hover .nv-wa-label, .whatsapp-float:focus-visible .nv-wa-label { opacity: 1; transform: translate(0, -50%); }

/* ---------- 8. ANIMAÇÕES DE ENTRADA ---------- */
.js .nv-reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0s); }
.js .nv-reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .nv-hero img, .nv-scroll::after, .whatsapp-float::before, .nv-open.is-open i { animation: none; }
  .js .nv-reveal { opacity: 1; transform: none; transition: none; }
  .nv-linha img, .nv-vendedor { transition: none; }
}

/* ---------- 9. RESPONSIVO ---------- */
@media (max-width: 1100px) {
  .nv-contatos-inner { grid-template-columns: 1fr; gap: 48px; }
  .nv-contatos-intro { position: static; }
  .nv-mapa-inner { grid-template-columns: 1fr; }
  .nv-mapa-frame { min-height: 380px; }
  .nv-linha-body { padding: 0 26px 30px; }
}

@media (max-width: 720px) {
  .nv-section { padding: 84px 0; }
  .nv-linhas { padding-top: 56px; }
  .nv-heading { margin-bottom: 40px; }

  .nv-hero { height: min(100svh, 150vw); min-height: 470px; }
  .nv-hero img { object-position: 54% 40%; }
  .nv-scroll { bottom: 22px; height: 46px; }

  /* quadrantes viram carrossel com "espiadinha" do próximo */
  .nv-linhas-grid {
    display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 20px 40px;
    margin: 0 -20px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .nv-linhas-grid::-webkit-scrollbar { display: none; }
  .nv-linha { flex: 0 0 80%; scroll-snap-align: center; aspect-ratio: 4 / 5.4; }

  .nv-vendedores { grid-template-columns: 1fr; }
  .nv-mapa-card { padding: 38px 26px; }
  .nv-mapa-frame { min-height: 320px; }
  .nv-wa-label { display: none; }
}
