/* =========================================================
   Ramon Lima Dental Design
   ========================================================= */

:root {
  --gold: #cac7b3;
  --gold-2: #e9e6d6;
  --gold-3: #a7a38a;
  --black: #050505;
  --ink: #0e0e0e;
  --card: #1b1b1b;
  --card-2: #232323;
  --gray: #e7e7e7;
  --muted: #575757;
  --white: #fff;

  --grad-gold: linear-gradient(90deg, #cac7b3 0%, #fff 55%, #cac7b3 100%);
  --grad-dark: linear-gradient(90deg, #0e0e0e, #3a3a3a, #0e0e0e);

  --font-title: "Cinzel", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1140px;
  --gutter: clamp(16px, 4vw, 24px);
  --radius: 20px;
  --radius-lg: 40px;
  --header-h: 80px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Fontes hospedadas localmente (subconjunto latino, variáveis) */
@font-face {
  font-family: "Cinzel"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/cinzel-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans"; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url("../fonts/dmsans-latin.woff2") format("woff2");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.15; }
p { margin: 0 0 1em; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 1em; height: 1em; flex-shrink: 0; }

::selection { background: var(--gold); color: var(--black); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  background: var(--gold); color: var(--black); padding: 10px 16px; border-radius: 8px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 16px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.center { text-align: center; }
.text-gold { color: var(--gold); }

/* ---------- Tipografia ---------- */
.title-lg {
  font-family: var(--font-title);
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 24px;
  text-wrap: balance;
}

.section-head { text-align: center; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head .title-lg { margin-bottom: 0; }

.text-shine {
  font-weight: 700;
  background: linear-gradient(100deg, var(--gold) 0%, var(--gold) 40%, #fff 50%, var(--gold) 60%, var(--gold) 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shine 6s var(--ease) 1s 3;
}
@keyframes shine { 0% { background-position: 100% 0; } 60%, 100% { background-position: -50% 0; } }

/* ---------- Botões (mesmo estilo do original) ---------- */
/* o degradê se move numa camada interna via transform (roda na GPU, sem recalcular estilo a cada quadro) */
@keyframes gradientSlide { 50% { transform: translateX(-50%); } }

.btn {
  --btn-grad: linear-gradient(90deg, #cac7b3, #fff, #cac7b3);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 20px 40px;
  border-radius: 500px;
  font-family: var(--font-body); font-size: 15px; font-weight: 700; line-height: 1;
  text-decoration: none; text-align: center;
  /* contorno que envolve o botão e "encolhe" no hover */
  outline: 1px solid #ffffff50; outline-offset: 10px;
  transition: outline-offset .5s, outline-color .5s, box-shadow .5s, color .5s;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%; z-index: -1;
  background: var(--btn-grad);
  animation: gradientSlide 4s ease-in-out infinite;
}
.btn:hover { outline-offset: 0; outline-color: transparent; }

.btn-gold { color: var(--black); min-width: 240px; }
.btn-gold:hover { box-shadow: 0 0 50px #cac7b380; }

.btn-dark { --btn-grad: linear-gradient(90deg, #0e0e0e, #3a3a3a, #0e0e0e); color: var(--gold); outline-color: #00000030; }
.btn-dark:hover { color: #fff; box-shadow: 0 0 40px #00000040; }

.hero .btn { font-size: 16px; min-width: 305px; }
.experience .btn { min-width: 300px; }

.btn-sm { padding: 12px 22px; font-size: 13px; min-width: 0; outline: none; }

.icon-btn {
  display: grid; place-items: center; width: 55px; height: 55px; border-radius: 50%;
  border: 1px solid rgba(202,199,179,.45); color: var(--gold); font-size: 22px;
  background: rgba(255,255,255,.03);
  transition: background .4s, color .4s, border-color .4s, box-shadow .4s;
}
.icon-btn svg { display: block; }
.icon-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--black); box-shadow: 0 0 30px #cac7b360; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100;
  height: var(--header-h);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s, transform .4s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(5,5,5,.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 rgba(202,199,179,.12);
}
.site-header.is-hidden { transform: translateY(-100%); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { --sign-w: 180px; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-decoration: none; }
.brand-sign {
  display: block; width: var(--sign-w); aspect-ratio: 1268.26 / 330.91;
  background: var(--gold);
  -webkit-mask: url("../img/logo-ramon-lima.svg") center / contain no-repeat;
          mask: url("../img/logo-ramon-lima.svg") center / contain no-repeat;
  transition: background .3s;
}
.brand:hover .brand-sign { background: #fff; }
/* "Dental Design" ocupa só a largura do "Ramon" (~47% da assinatura) */
.brand-sub {
  width: calc(var(--sign-w) * .47); margin-left: calc(var(--sign-w) * .015);
  display: flex; justify-content: space-between;
  font-size: 8px; line-height: 1; text-transform: uppercase; color: rgba(255,255,255,.75);
}

.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav ul a {
  position: relative; text-decoration: none; font-size: 14px; font-weight: 500; color: rgba(255,255,255,.82);
  padding: 6px 0; transition: color .3s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--gold); }
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); transform-origin: left; }

/* botão de menu em "vidro" escuro, legível sobre qualquer foto */
.nav-toggle {
  display: none; position: relative; width: 46px; height: 46px; border-radius: 14px;
  background: rgba(5,5,5,.55);
  backdrop-filter: blur(10px) saturate(140%); -webkit-backdrop-filter: blur(10px) saturate(140%);
  border: 1px solid rgba(202,199,179,.55);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.08);
  transition: background .35s, border-color .35s, transform .35s var(--ease);
}
.nav-toggle:active { transform: scale(.94); }
.nav-open .nav-toggle { background: var(--gold); border-color: var(--gold); }
.nav-open .nav-toggle span { background: var(--black); }
.nav-toggle span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--gold); transition: transform .35s var(--ease), opacity .3s, background .35s; }
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; right: 18px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: max(100svh, 680px);
  display: flex; align-items: center; overflow: clip;
  background: var(--black);
  padding: calc(var(--header-h) + 40px) 0 120px;
}
.hero-bg {
  position: absolute; inset: 0;
  background: #0b0b0b url("../img/HERO-RAMON-DKTP.webp") 50% 0 / cover no-repeat;
  transform-origin: 70% 30%;
  animation: heroZoom 18s ease-out both;
  will-change: transform;
}
.hero-bg::after { /* garante leitura do texto e funde com a próxima seção */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,5,5,.75) 0%, rgba(5,5,5,.25) 45%, transparent 65%),
    linear-gradient(180deg, transparent 70%, rgba(5,5,5,.9) 100%);
}
/* em telas largas a foto é mostrada inteira (como no original) e o resto funde no preto */
@media (min-width: 1200px) and (max-aspect-ratio: 2/1) {
  .hero-bg { background-size: 100% auto; }
  .hero-bg::after {
    background:
      linear-gradient(90deg, rgba(5,5,5,.75) 0%, rgba(5,5,5,.25) 45%, transparent 65%),
      linear-gradient(180deg, transparent calc(46.3vw - 220px), #0b0b0b 46.3vw, var(--black) 100%);
  }
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero-glow {
  position: absolute; width: 60vw; height: 60vw; left: -20vw; top: 10%;
  background: radial-gradient(circle, rgba(202,199,179,.14), transparent 60%);
  pointer-events: none;
}
.hero-inner { position: relative; z-index: 2; }
/* entrada do hero só com movimento: o texto aparece já no primeiro paint (melhor LCP) */
.hero-content > * { animation: heroUp 1s var(--ease) both; }
.hero-content > :nth-child(2) { animation-delay: .1s; }
.hero-content > :nth-child(3) { animation-delay: .2s; }
@keyframes heroUp { from { transform: translateY(24px); } }
.hero-content { max-width: 560px; }
.hero-title {
  font-family: var(--font-title); font-weight: 400;
  font-size: clamp(34px, 3.9vw, 56px); line-height: 1.12;
  color: var(--gold); margin-bottom: 26px; text-wrap: balance;
}
.hero-title b { display: inline; }
.hero-lead { font-size: clamp(17px, 1.5vw, 22px); line-height: 1.5; color: var(--white); max-width: 470px; margin-bottom: 36px; }

.scroll-hint {
  position: absolute; left: 50%; bottom: 96px; z-index: 3; translate: -50% 0;
  width: 26px; height: 42px; border-radius: 20px; border: 1.5px solid rgba(202,199,179,.6);
}
.scroll-hint span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 3px;
  background: var(--gold); animation: scrollHint 1.8s var(--ease) infinite;
}
@keyframes scrollHint { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Experiência ---------- */
.experience { position: relative; background: var(--gray); padding: clamp(60px, 8vw, 100px) 0; }
.experience-collage {
  position: absolute; inset: 0 0 auto; height: 381px;
  background: url("../img/BG-02-DKTP-RAMON.webp") center top / cover no-repeat;
  opacity: .8;
}
.experience-card {
  position: relative; z-index: 2;
  background: rgba(19,19,19,.9);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(202,199,179,.12);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(24px, 5vw, 80px);
  text-align: center;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.experience-card .title-lg { max-width: 760px; margin-inline: auto; }
.experience-card p { max-width: 640px; margin-inline: auto; color: rgba(255,255,255,.88); }

/* ---------- Split genérico ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.split-content p { color: inherit; opacity: .88; }
.split-content .btn { margin-top: 20px; }

.img-frame { position: relative; border-radius: var(--radius); overflow: hidden; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.img-frame:hover img { transform: scale(1.04); }
.img-frame--gold { box-shadow: 0 0 0 1px rgba(202,199,179,.35), 0 40px 80px -40px rgba(0,0,0,.8); }

/* ---------- Previsibilidade ---------- */
.predictability {
  position: relative; background: var(--gray); color: var(--black);
  margin-top: -1px; /* evita emenda de subpixel com a seção anterior */
  padding: 20px 0 clamp(130px, 14vw, 190px);
}
.predictability .title-lg { color: var(--black); }
.predictability p { color: var(--muted); opacity: 1; }
.predictability .split, .about .split { align-items: start; }
.predictability .img-frame { box-shadow: 0 40px 70px -40px rgba(0,0,0,.45); }

/* divisória em formato de aba (shape do original) */
.tab-divider {
  position: absolute; left: 0; bottom: -2px; z-index: 1;
  display: block; width: 100%; height: clamp(44px, 7vw, 100px);
  fill: var(--black); pointer-events: none;
}
.tab-divider--right { transform: scaleX(-1); }
.tab-divider--light { fill: var(--gray); }

/* ---------- Serviços ---------- */
.services {
  position: relative;
  background: var(--black) url("../img/BG-SERVICOS.webp") 50% 0 / cover no-repeat;
  padding: clamp(60px, 7vw, 90px) 0 clamp(80px, 9vw, 120px);
}
.svc-stack { display: flex; flex-direction: column; gap: 28px; }
.svc-card {
  position: sticky; top: calc(var(--header-h) + 24px);
  display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: clamp(24px, 4vw, 48px); align-items: center;
  padding: 24px clamp(24px, 4vw, 60px) 24px 24px;
  background: var(--card);
  border: 1px solid rgba(202,199,179,.1);
  border-radius: var(--radius);
  box-shadow: 0 -9px 22px -1px rgba(0,0,0,.37);
  transform-origin: 50% 0;
  min-height: 375px;
}
.svc-media { position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 794 / 630; }
.svc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc-card:hover .svc-media img { transform: scale(1.05); }
.svc-body h3 { font-size: 22px; color: var(--gold); margin-bottom: 14px; }
.svc-body p { color: rgba(255,255,255,.9); max-width: 560px; }
.svc-body h4 { font-size: 22px; color: var(--gold); margin: 22px 0 14px; }
.svc-body h3 + .check-list { margin-top: 8px; }
.svc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }

.check-list { display: grid; gap: 10px; }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, max-content)); column-gap: 36px; }
.check-list li {
  position: relative; padding-left: 30px; font-size: 15px; color: rgba(255,255,255,.9); line-height: 1.45;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 18px; height: 18px;
  border: 1.5px solid var(--gold); border-radius: 4px;
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: 4px; width: 5px; height: 9px;
  border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- Galeria ---------- */
.gallery {
  position: relative; background: var(--black);
  padding: clamp(70px, 8vw, 110px) 0;
  overflow: clip;
}
.gallery::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/BG-GALERIA1.webp") center / cover no-repeat;
  opacity: .55;
}
.gallery .container { position: relative; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-card {
  position: relative; display: block; text-align: left;
  aspect-ratio: 367 / 491; border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(202,199,179,.18);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
  transition: transform .6s var(--ease), border-color .4s;
}
.gallery-card__img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06); transition: transform 1.2s var(--ease), filter .6s;
}
.gallery-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(5,5,5,.88) 100%);
  transition: opacity .5s;
}
.gallery-card__body { position: absolute; left: 30px; right: 30px; bottom: 30px; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.gallery-card__title { font-size: clamp(22px, 2vw, 26px); font-weight: 700; color: #fff; margin-bottom: 10px; }
.gallery-card:hover { transform: translateY(-6px); border-color: rgba(202,199,179,.5); }
.gallery-card:hover .gallery-card__img { transform: scale(1.14); }

/* ---------- Método ---------- */
.method {
  position: relative;
  background: var(--black) url("../img/BG-TRABALHO.webp") 50% 0 / cover no-repeat;
  padding: clamp(40px, 6vw, 80px) 0 clamp(130px, 14vw, 190px);
}
.method p { color: #fff; }

/* ---------- Processo / timeline ---------- */
.process {
  position: relative; background: var(--gray); color: var(--black);
  padding: clamp(50px, 6vw, 70px) 0 clamp(140px, 15vw, 200px);
}
.process .title-lg { color: var(--black); }

.timeline { position: relative; display: grid; gap: 28px; margin-bottom: 56px; }
.timeline-line {
  position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px;
  background: rgba(5,5,5,.12); border-radius: 2px;
}
.timeline-progress {
  position: absolute; inset: 0 0 auto; height: 0; border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-3), var(--black));
}
.step { position: relative; display: grid; grid-template-columns: 1fr 80px 1fr; align-items: start; }
.step-dot {
  grid-column: 2; justify-self: center; position: relative; z-index: 2;
  width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; color: var(--black); background: #fff;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.25);
  transition: background .5s, color .5s, transform .5s var(--ease);
}
.step.is-active .step-dot { background: var(--black); color: var(--gold); transform: scale(1.1); }
.step:nth-of-type(even) .step-card { grid-column: 3; }
.step:nth-of-type(odd) .step-card { grid-column: 1; grid-row: 1; }
.step-card {
  position: relative; overflow: hidden;
  background: var(--black); color: #fff;
  border-radius: var(--radius); padding: 30px 30px 26px;
  box-shadow: 0 30px 50px -30px rgba(0,0,0,.55);
  transition: transform .5s var(--ease);
}
.step-card:hover { transform: translateY(-4px); }
.step-card::after { /* número grande em marca d'água */
  content: attr(data-num);
  position: absolute; right: 10px; top: -10px;
  font-family: var(--font-body); font-weight: 700; font-size: 110px; line-height: 1;
  color: rgba(255,255,255,.06); pointer-events: none;
}
.step-card h3 { font-size: 18px; color: var(--gold); margin-bottom: 12px; position: relative; z-index: 1; }
.step-card p { font-size: 14px; color: rgba(255,255,255,.88); margin: 0; position: relative; z-index: 1; }

/* ---------- Sobre ---------- */
.about {
  position: relative;
  background: var(--black) url("../img/BG-SOBRE-1.webp") 50% 0 / cover no-repeat;
  padding: clamp(40px, 6vw, 70px) 0 clamp(70px, 8vw, 100px);
}
.split--about { grid-template-columns: .85fr 1fr; }
.about-media { position: relative; }
.about-media .img-frame { aspect-ratio: 634 / 839; }
.about p { font-size: 15px; color: rgba(255,255,255,.88); }
.team { margin: 24px 0 14px; }
.team b { color: #fff; }

/* ---------- Faixa (marquee) ---------- */
.marquee {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 20px 0; color: var(--black);
}
.marquee::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 200%; z-index: -1;
  background: linear-gradient(90deg, #cac7b3 0%, #fff 50%, #cac7b3 100%);
  animation: gradientSlide 8s ease-in-out infinite;
}
.marquee-track {
  display: flex; align-items: center; gap: 28px; width: max-content;
  animation: marquee 40s linear infinite;
  font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap;
}
.marquee-track i { width: 8px; height: 8px; background: currentColor; transform: rotate(45deg); flex-shrink: 0; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Contato ---------- */
.contact {
  position: relative; overflow: clip;
  background: var(--black);
  padding: clamp(60px, 7vw, 70px) 0;
}
.contact::before {
  content: ""; position: absolute; inset: 0;
  background: url("../img/CONTATO-BG.webp") center / cover no-repeat;
}
.contact-glow {
  position: absolute; left: 50%; bottom: -40%; width: 80vw; height: 80vw; translate: -50% 0;
  background: radial-gradient(circle, rgba(202,199,179,.12), transparent 60%);
  pointer-events: none;
}
.contact .container { position: relative; }
.contact p { color: #fff; max-width: 460px; }
.contact-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.contact-actions .btn { margin: 0 16px 0 10px; }

.map-wrap {
  position: relative; height: 462px; border-radius: 24px; overflow: hidden; isolation: isolate;
  background: #111;
  border: 1px solid rgba(202,199,179,.28);
  box-shadow: 0 0 0 8px rgba(202,199,179,.04), 0 40px 80px -40px rgba(0,0,0,.9);
}
.map-canvas { position: absolute; inset: 0; z-index: 0; background: #0e0e0e; }
/* tiles claros do OpenStreetMap convertidos para um tema escuro e quente */
.map-canvas .leaflet-tile-pane { filter: grayscale(1) invert(.92) sepia(.35) contrast(.9) brightness(.85); }
.map-canvas.leaflet-container { font-family: var(--font-body); background: #0e0e0e; }
.map-canvas .leaflet-control-attribution {
  background: rgba(5,5,5,.7); color: rgba(255,255,255,.55); font-size: 10px;
  border-top-left-radius: 8px; padding: 2px 8px;
}
.map-canvas .leaflet-control-attribution a { color: var(--gold); }
.map-canvas .leaflet-bar { border: 1px solid rgba(202,199,179,.3); border-radius: 12px; overflow: hidden; box-shadow: none; }
.map-canvas .leaflet-bar a {
  width: 34px; height: 34px; line-height: 34px;
  background: rgba(10,10,10,.85); color: var(--gold); border-bottom-color: rgba(202,199,179,.2);
}
.map-canvas .leaflet-bar a:hover { background: var(--gold); color: var(--black); }

/* pin dourado, ancorado exatamente no centro do mapa */
.map-pin { position: relative; }
.map-pin__dot {
  position: absolute; left: 50%; bottom: 0; width: 40px; height: 40px;
  margin-left: -20px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); transform-origin: center;
  background: linear-gradient(135deg, #fff, #cac7b3 60%, #a7a38a);
  box-shadow: 0 10px 24px -6px rgba(0,0,0,.8);
  display: grid; place-items: center;
}
.map-pin__dot::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--black); }
.map-pin__pulse {
  position: absolute; left: 50%; bottom: -8px; width: 16px; height: 16px; margin-left: -8px;
  border-radius: 50%; background: rgba(202,199,179,.5);
}
.map-pin__pulse::before, .map-pin__pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--gold); animation: mapPulse 2.4s ease-out infinite;
}
.map-pin__pulse::after { animation-delay: 1.2s; }
@keyframes mapPulse { from { transform: scale(1); opacity: .9; } to { transform: scale(4.5); opacity: 0; } }
.map-wrap::after { /* vinheta nas bordas */
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 500; border-radius: inherit;
  box-shadow: inset 0 0 60px 10px rgba(5,5,5,.75);
}
.map-card {
  position: absolute; z-index: 600; left: 16px; top: 16px; right: 16px; max-width: 340px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 16px;
  background: rgba(10,10,10,.78);
  backdrop-filter: blur(12px) saturate(140%); -webkit-backdrop-filter: blur(12px) saturate(140%);
  border: 1px solid rgba(202,199,179,.25);
  box-shadow: 0 20px 40px -20px rgba(0,0,0,.8);
}
.map-card__logo {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(202,199,179,.35); display: grid; place-items: center;
}
.map-card__logo i {
  width: 26px; aspect-ratio: 449.89 / 330.91; background: var(--gold);
  -webkit-mask: url("../img/logo-rl.svg") center / contain no-repeat;
          mask: url("../img/logo-rl.svg") center / contain no-repeat;
}
.map-card div { flex: 1; min-width: 0; line-height: 1.3; }
.map-card strong { display: block; font-size: 14px; color: var(--gold); }
.map-card span { font-size: 12px; color: rgba(255,255,255,.7); }
.map-go {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  color: var(--black); font-size: 18px;
  background: linear-gradient(90deg, #cac7b3, #fff);
  transition: box-shadow .4s, transform .4s var(--ease);
}
.map-go svg { transform: rotate(-45deg); }
.map-go:hover { box-shadow: 0 0 30px #cac7b380; transform: scale(1.06); }

/* ---------- Rodapé ---------- */
.site-footer {
  background: var(--gold); color: var(--black);
  padding: 34px 0 calc(28px + env(safe-area-inset-bottom));
  text-align: center; font-size: 12px; line-height: 1.6;
}
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-id { margin-bottom: 14px; font-size: 13px; }
.footer-legal { max-width: 980px; margin: 0 auto 20px; color: rgba(5,5,5,.78); font-size: 12px; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  border-top: 1px solid rgba(5,5,5,.15); padding-top: 18px;
}
.footer-bottom p { margin: 0; }
.heart { color: #b3261e; display: inline-block; width: 1em; height: 1em; vertical-align: -0.15em; animation: beat 1.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25d366; color: #fff; font-size: 30px; text-decoration: none;
  box-shadow: 0 12px 30px -8px rgba(37,211,102,.6);
  transition: transform .35s var(--ease), translate .5s var(--ease);
}
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid #25d366; animation: pulse 2.2s ease-out infinite;
}
@keyframes pulse { from { transform: scale(1); opacity: .8; } to { transform: scale(1.7); opacity: 0; } }
.wa-float:hover { transform: scale(1.08); }
.wa-badge {
  position: absolute; top: 0; right: 0; width: 16px; height: 16px; border-radius: 50%;
  background: #e53935; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.to-top {
  position: fixed; right: 31px; bottom: 98px; z-index: 89;
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; font-size: 18px;
  background: rgba(5,5,5,.75); color: var(--gold); border: 1px solid rgba(202,199,179,.4);
  backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .35s, transform .35s var(--ease), translate .5s var(--ease), background .3s, color .3s;
}
.to-top svg { transform: rotate(-90deg); }
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); color: var(--black); }

/* ---------- Cookies ---------- */
.cookie {
  position: fixed; left: 20px; bottom: 20px; z-index: 95;
  width: min(380px, calc(100vw - 40px));
  padding: 20px; border-radius: 16px;
  background: rgba(19,19,19,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(202,199,179,.25);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.7);
  font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.85);
  animation: slideUp .6s var(--ease) both;
}
.cookie p { margin-bottom: 14px; }
.cookie a { color: var(--gold); }
.cookie .btn { width: 100%; }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: 70px 1fr 70px;
  background: rgba(5,5,5,.96); backdrop-filter: blur(10px);
  animation: fadeIn .35s ease both;
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } }
.lightbox-top {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 16px;
  padding: 18px 22px; color: var(--gold);
}
.lightbox-title { font-family: var(--font-title); font-size: 18px; font-weight: 700; }
.lightbox-counter { font-size: 13px; color: rgba(255,255,255,.6); }
.lightbox-close { margin-left: auto; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 22px; border: 1px solid rgba(202,199,179,.35); transition: background .3s, color .3s; }
.lightbox-close:hover { background: var(--gold); color: var(--black); }
.lightbox-stage { grid-column: 2; display: grid; place-items: center; min-height: 0; padding: 10px; }
.lightbox-stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 12px;
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.9);
  animation: lbIn .45s var(--ease) both;
}
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } }
.lightbox-nav {
  align-self: center; justify-self: center; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 22px; color: var(--gold);
  border: 1px solid rgba(202,199,179,.35); transition: background .3s, color .3s;
}
.lightbox-nav:hover { background: var(--gold); color: var(--black); }
.lightbox-prev { grid-column: 1; grid-row: 2; }
.lightbox-prev svg { transform: rotate(180deg); }
.lightbox-next { grid-column: 3; grid-row: 2; }
.lightbox-thumbs {
  grid-column: 1 / -1; display: flex; gap: 8px; justify-content: center; overflow-x: auto;
  padding: 14px 20px 22px; scrollbar-width: none;
}
.lightbox-thumbs button {
  flex: 0 0 auto; width: 70px; height: 50px; border-radius: 8px; overflow: hidden;
  opacity: .45; border: 1px solid transparent; transition: opacity .3s, border-color .3s;
}
.lightbox-thumbs button.is-current { opacity: 1; border-color: var(--gold); }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Spotlight (luz que segue o mouse) ---------- */
.spotlight { --mx: 50%; --my: 50%; }
.spotlight::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(202,199,179,.09), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.spotlight:hover::before { opacity: 1; }
.svc-card > *, .experience-card > * { position: relative; z-index: 1; }

/* ---------- Fundos decorativos carregados sob demanda ---------- */
.js [data-lazybg]:not(.bg-in),
.js [data-lazybg]:not(.bg-in)::before { background-image: none !important; }

/* ---------- Animações de entrada ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(36px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
}
[data-reveal="left"] { transform: translateX(-48px); }
[data-reveal="right"] { transform: translateX(48px); }
[data-delay="1"] { transition-delay: .12s; }
[data-delay="2"] { transition-delay: .24s; }
[data-delay="3"] { transition-delay: .36s; }
[data-reveal].is-in { opacity: 1; transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; }

/* =========================================================
   Páginas legais (Política de Privacidade)
   ========================================================= */
.legal-hero {
  position: relative; background: var(--black) url("../img/BG-TRABALHO.webp") 50% 0 / cover no-repeat;
  padding: calc(var(--header-h) + clamp(40px, 6vw, 80px)) 0 clamp(110px, 12vw, 160px);
}
.legal-hero .container { text-align: center; }
.legal-hero .breadcrumb { justify-content: center; }
.legal-hero p { max-width: 680px; margin-inline: auto; color: rgba(255,255,255,.85); }
.legal-hero .title-lg { font-size: clamp(34px, 4.4vw, 56px); margin-bottom: 18px; }
.breadcrumb { display: flex; gap: 8px; font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 18px; }
.breadcrumb a { color: var(--gold); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.legal-updated {
  display: inline-block; margin-top: 8px; padding: 8px 16px; border-radius: 99px;
  border: 1px solid rgba(202,199,179,.3); font-size: 13px; color: var(--gold) !important;
}

.legal { background: var(--gray); color: var(--black); padding: clamp(50px, 6vw, 80px) 0 clamp(70px, 8vw, 110px); margin-top: -1px; }
.legal-content { max-width: 760px; margin-inline: auto; }
.legal-content section { padding-bottom: 36px; margin-bottom: 36px; border-bottom: 1px solid rgba(5,5,5,.1); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal-content section:last-of-type { border-bottom: 0; }
.legal-content h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-family: var(--font-title); font-size: clamp(22px, 2.4vw, 28px); margin-bottom: 18px;
}
.legal-content h2 span { font-family: var(--font-body); font-size: 14px; color: #5f5b47; }
.legal-content p { color: var(--muted); }
.legal-content b { color: var(--black); }
.legal-content a:not(.btn):not(.legal-contact__item) { color: var(--black); text-decoration-color: var(--gold-3); text-underline-offset: 3px; }

/* reaproveita os checks do site em fundo claro */
.legal-list { margin: 6px 0 18px; }
.legal-list li { color: var(--muted); }
.legal-list li::before { border-color: var(--gold-3); }
.legal-list li::after { border-color: var(--black); }

.legal-contact { display: grid; gap: 12px; }
.legal-contact__item {
  display: flex; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 16px;
  background: var(--black); color: #fff; text-decoration: none; font-size: 15px;
  transition: transform .4s var(--ease), box-shadow .4s;
}
a.legal-contact__item:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -20px rgba(0,0,0,.6); }
.legal-contact__item svg { font-size: 22px; color: var(--gold); }
.legal-contact__item small { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.legal-back { margin-top: 10px; }

@media (max-width: 767px) {
  .legal-back { width: calc(100% - 20px); margin-inline: 10px; }
}

/* ---------- Página 404 ---------- */
.not-found {
  min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; padding: 40px var(--gutter); text-align: center;
  background: var(--black) url("../img/BG-TRABALHO.webp") 50% 0 / cover no-repeat;
}
.not-found .brand { margin-bottom: 32px; }
.not-found__code {
  margin: 0; font-family: var(--font-title); font-weight: 700; line-height: 1;
  font-size: clamp(96px, 20vw, 180px); color: rgba(202,199,179,.14);
}
.not-found .title-lg { margin-bottom: 28px; }

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .main-nav ul { gap: 18px; }
  .nav-cta { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 70px; }
  .brand { --sign-w: 150px; gap: 3px; }
  .brand-sub { font-size: 6.5px; }

  .nav-toggle { display: block; z-index: 2; }
  .site-header:not(.is-scrolled)::before {
    content: ""; position: absolute; inset: 0 0 -24px; pointer-events: none; z-index: -1;
    background: linear-gradient(180deg, rgba(5,5,5,.7), transparent);
  }
  .main-nav {
    position: fixed; inset: 0; z-index: 1;
    flex-direction: column; justify-content: center; gap: 36px;
    background: rgba(5,5,5,.97);
    backdrop-filter: blur(12px);
    opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
  }
  .main-nav ul { flex-direction: column; align-items: center; gap: 22px; }
  .main-nav ul a { font-family: var(--font-title); font-size: 24px; }
  .nav-cta { display: inline-flex; }
  .nav-open .main-nav { opacity: 1; visibility: visible; }
  .nav-open { overflow: hidden; }
  .main-nav li { opacity: 0; transform: translateY(14px); transition: opacity .5s, transform .5s var(--ease); }
  .nav-open .main-nav li { opacity: 1; transform: none; }
  .nav-open .main-nav li:nth-child(2) { transition-delay: .05s; }
  .nav-open .main-nav li:nth-child(3) { transition-delay: .1s; }
  .nav-open .main-nav li:nth-child(4) { transition-delay: .15s; }
  .nav-open .main-nav li:nth-child(5) { transition-delay: .2s; }
  .nav-open .main-nav li:nth-child(6) { transition-delay: .25s; }

  .split, .split--about { grid-template-columns: 1fr; }
  .predictability .split-media { order: 2; }
  .method .split-media { order: 2; }
  .about-media { max-width: 460px; margin-inline: auto; }

  .svc-card { grid-template-columns: 1fr; padding: 20px 20px 28px; min-height: 0; top: calc(var(--header-h) + 12px); }
  .svc-media { aspect-ratio: 16 / 10; }

  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .gallery-card:last-child { grid-column: 1 / -1; aspect-ratio: 16 / 10; }

  .map-wrap { height: 380px; }
}

@media (max-width: 767px) {
  .hero {
    display: block; min-height: 0;
    padding: 68vw 0 80px;
  }
  .hero-bg {
    background-image: url("../img/HERO-MOBILE1.avif");
    background-size: 100% auto; background-position: 50% 0;
    background-color: #1a1a1a;
  }
  /* a foto mobile tem 123vw de altura: o texto sobe sobre a parte escura dela */
  .hero-bg::after { background: linear-gradient(180deg, transparent 42vw, rgba(26,26,26,.8) 68vw, #1a1a1a 100vw, var(--black) 100%); }
  .hero-content { text-align: center; margin-inline: auto; }
  .hero-title { font-size: clamp(27px, 8vw, 34px); line-height: 1.1; margin-bottom: 16px; }
  .hero-lead { font-size: 16px; line-height: 1.5; margin: 0 auto 28px; max-width: 340px; }
  .hero-content .btn { width: calc(100% - 20px); }
  .scroll-hint { display: none; }

  .experience-card { border-radius: 28px; }

  .svc-cols { grid-template-columns: 1fr; }
  .check-list--2 { grid-template-columns: 1fr; }
  .svc-card { position: relative; top: auto; }

  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-grid .gallery-card:last-child { aspect-ratio: 367 / 491; }
  .gallery-card { aspect-ratio: 4 / 5; }

  /* timeline vertical à esquerda */
  .timeline-line { left: 20px; }
  .step { grid-template-columns: 40px 1fr; gap: 16px; }
  .step-dot { grid-column: 1; }
  .step:nth-of-type(odd) .step-card, .step:nth-of-type(even) .step-card { grid-column: 2; grid-row: 1; }
  .step-card { padding: 24px 22px; }
  .step-card::after { font-size: 80px; }
  [data-reveal="left"], [data-reveal="right"] { transform: translateY(30px); }

  .contact-actions { justify-content: center; }
  .contact-actions .btn { flex: 1 1 100%; margin: 10px 10px 14px; }
  .btn, .hero .btn, .experience .btn { min-width: 0; max-width: 100%; }

  .footer-bottom { flex-direction: column; align-items: center; }

  .wa-float { right: 16px; bottom: 16px; width: 56px; height: 56px; font-size: 28px; }
  .to-top { right: 23px; bottom: 86px; }
  .cookie { left: 12px; right: 12px; bottom: 12px; width: auto; padding-right: 20px; }
  /* sobe com translate (não conta como layout shift) enquanto o aviso de cookies aparece */
  .has-cookie .wa-float, .has-cookie .to-top { translate: 0 -184px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .marquee-track { animation: none; }
}
