:root {
  --bg: #0b0a08;
  --bg-2: #14120d;
  --olive: #25240f;
  --ink: #f3ece1;
  --muted: rgba(243, 236, 225, .70);
  --line: rgba(243, 236, 225, .16);
  --gold: #b59a6a;
  --gold-2: #8f7d5c;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --pad: clamp(20px, 5vw, 72px);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 70px; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

em { font-style: italic; font-family: var(--serif); font-weight: 400; color: var(--gold); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--pad); }

/* ---------- Topo ---------- */
.top {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: max(14px, env(safe-area-inset-top)) var(--pad) 14px;
  background: linear-gradient(to bottom, rgba(11, 10, 8, .6), transparent);
  transition: background .4s var(--ease), backdrop-filter .4s, padding .4s var(--ease);
}
.top.is-solid {
  background: rgba(11, 10, 8, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--line);
}

.brand {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: .28em;
  font-weight: 500;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand span {
  font-family: var(--sans);
  font-size: .56rem;
  letter-spacing: .5em;
  font-weight: 400;
  color: var(--muted);
  margin-top: 4px;
}
.brand img { height: auto; }

.menu { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 38px); }
.menu a:not(.btn) {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color .3s, border-color .3s;
}
.menu a:not(.btn):hover,
.menu a[aria-current="page"] { color: var(--ink); border-color: var(--gold); }

.burger {
  display: none;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 60;
}
.burger i {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.burger i:first-child { top: 17px; }
.burger i:last-child { top: 26px; }
.burger[aria-expanded="true"] i:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] i:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 899px) {
  .burger { display: block; }
  .menu {
    position: fixed;
    inset: 0;
     top: 0; left: 0;
     width: 100vw;
  height: 100vh;
  height: 100dvh;
    z-index: 55;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
    background: rgba(11, 10, 8, .97);
    opacity: 0;
    visibility: hidden;
    transition: opacity .4s var(--ease), visibility .4s;
  }
  .menu.is-open { opacity: 1; visibility: visible; }
  .menu a:not(.btn) { font-size: 1rem; }
}

/* ---------- Tipografia ---------- */
.eyebrow {
  font-size: .72rem;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: clamp(12px, 2.2vh, 22px);
}
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.5rem, 9vw, 4.8rem);
  line-height: 1.04;
  letter-spacing: -.01em;
}
.title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2rem, 5.2vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.01em;
}
.lead {
  font-size: clamp(.95rem, 1.35vw, 1.12rem);
  color: var(--muted);
  max-width: 34em;
  margin-top: clamp(14px, 2.4vh, 24px);
}

/* ---------- Botões e links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 40px;
  background: var(--gold-2);
  color: #fff;
  font-family: var(--sans);
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: transform .5s var(--ease), background .4s, box-shadow .5s var(--ease);
}
.btn:hover { background: var(--gold); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(181, 154, 106, .28); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--ghost { background: rgba(11, 10, 8, .25); border-color: rgba(243, 236, 225, .4); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: none; }
.btn--sm { padding: 12px 22px; font-size: .64rem; letter-spacing: .2em; color: #fff; }

.link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--gold);
  transition: gap .4s var(--ease), color .3s;
}
.link:hover { gap: 16px; color: var(--ink); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  padding: 130px 0 clamp(56px, 10vh, 110px);
}
.hero--page { min-height: 86vh; min-height: 86svh; }

.hero__img,
.frame__img,
.door__img {
  background-color: #1a160f;
  background-image: var(--img, none),
    radial-gradient(120% 80% at 70% 20%, #6b5436 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 90%, #3b2f1c 0%, transparent 60%),
    linear-gradient(160deg, #2a2216, #0e0c08);
  background-size: cover, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
}
.hero__img {
  position: absolute;
  inset: -8% 0;
  z-index: -2;
  /* sem will-change: ele faz o navegador rasterizar a camada grande em baixa resolução no mobile */
}
@media (max-width: 899px) {
  /* menos sobra = menos ampliação da imagem (cover) em telas altas */
  .hero__img { inset: -3% 0; }
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, var(--bg) 0%, rgba(11, 10, 8, .55) 38%, rgba(11, 10, 8, .25) 100%),
    linear-gradient(to right, rgba(11, 10, 8, .65), transparent 70%);
}
.hero__content { position: relative; }
.hero__content .lead { max-width: 30em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: clamp(22px, 4vh, 38px); }
.crumb {
  display: inline-block;
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 26px;
  transition: color .3s;
}
.crumb:hover { color: var(--gold); }

/* ---------- Faixa rolante ---------- */
.strip {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
}
.strip__track {
  display: flex;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.strip__track span {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: var(--muted);
  white-space: nowrap;
  padding-inline: 28px;
  position: relative;
}
.strip__track span::after {
  content: "✦";
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%);
  font-size: .6em;
  color: var(--gold);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Seções ---------- */
.section { position: relative; padding: clamp(64px, 1vh, 130px) 0; }
.section--alt { background: var(--bg-2); }
.head { margin-bottom: clamp(32px, 6vh, 64px); }
.head .title { max-width: 16em; }

/* ---------- Home: duas portas ---------- */
.duo { display: grid; gap: 22px; grid-template-columns: 1fr; }
.door {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-2);
  transition: transform .6s var(--ease), border-color .4s, box-shadow .6s var(--ease);
}
.door:hover { transform: translateY(-6px); border-color: var(--gold-2); box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.door__img { height: clamp(240px, 38vh, 420px); transition: transform 1.4s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .door:hover .door__img { transform: scale(1.05); }
}
.door { overflow: hidden; }
.door__body { position: relative; z-index: 1; background: var(--bg-2); padding: clamp(22px, 3vw, 38px); display: grid; gap: 14px; }
.door__body .eyebrow { margin-bottom: 0; }
.door__body p:not(.eyebrow) { color: var(--muted); }
.door__body .link { margin-top: 6px; }

@media (min-width: 800px) { .duo { grid-template-columns: 1fr 1fr; gap: 32px; } }

/* ---------- Serviços ---------- */
.services { display: grid; gap: 20px; grid-template-columns: 1fr; }
.svc {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(243, 236, 225, .06), rgba(243, 236, 225, .015));
  transition: border-color .4s, transform .5s var(--ease), background .4s;
}
.svc:hover { border-color: var(--gold-2); transform: translateY(-4px); }
.svc__n { font-family: var(--serif); font-size: 1.2rem; color: var(--gold); }
.svc h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.15; }
.svc p { color: var(--muted); font-size: .95rem; }
.svc__foot { margin-top: auto; padding-top: 14px; }
.svc.is-hidden { display: none; }

@media (min-width: 700px) { .services--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .services--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split (texto + foto) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vh, 56px);
  align-items: center;
}
.split__text .title { margin-bottom: 24px; }
.split__text .btn { margin-top: 30px; }
.bullets { display: grid; gap: 14px; }
.bullets li {
  position: relative;
  padding: 14px 0 14px 28px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.bullets strong { color: var(--ink); font-weight: 600; }

.frame {
  position: relative;
  width: 100%;
  height: min(60svh, 460px);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
}
.frame__img { position: absolute; inset: -12% 0; }
@media (max-width: 899px) { .frame__img { inset: -4% 0; } }

@media (min-width: 900px) {
  .split { grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 6vw, 96px); }
  .frame { height: min(70svh, 600px); border-radius: 220px 220px 24px 24px; max-width: 460px; margin: 0 auto; }
}

/* ---------- Passos ---------- */
.steps { display: grid; gap: 28px; grid-template-columns: 1fr; counter-reset: s; }
.steps li { padding-top: 22px; border-top: 1px solid var(--gold-2); }
.steps span { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }
.steps h3 { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; margin: 6px 0 8px; }
.steps p { color: var(--muted); font-size: .95rem; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 36px; } }

/* ---------- Galeria ---------- */
.gallery {
  --h: min(60svh, 118vw);
  --w: calc(var(--h) * .625);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2.4vh, 24px);
  overflow: hidden;
}
.gallery__stage { position: relative; min-width: 0; }
.gallery__track {
  position: relative;
  display: flex;
  gap: clamp(10px, 2.4vw, 28px);
  padding-inline: calc(50% - var(--w) / 2);
  padding-bottom: 10px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  outline: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track.is-drag { scroll-snap-type: none; cursor: grabbing; user-select: none; }

.gallery__slide {
  flex: 0 0 auto;
  width: var(--w);
  height: var(--h);
  scroll-snap-align: center;
  scroll-snap-stop: always;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
  /* mobile: sem scale (imagem sempre rasterizada em tamanho nativo, nítida) */
  opacity: .55;
  transition: opacity .7s var(--ease);
}
.gallery__slide.is-current { transform: none; opacity: 1; }
.gallery__img {
  width: 100%;
  height: 100%;
  background-color: #1a160f;
  background-image: var(--img, none),
    radial-gradient(120% 80% at 70% 20%, #6b5436 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 90%, #3b2f1c 0%, transparent 60%),
    linear-gradient(160deg, #2a2216, #0e0c08);
  background-size: cover, auto, auto, auto;
  background-position: center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.gallery__arrow {
  display: none;
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 48px;
  height: 48px;
  margin-top: -24px;
  border-radius: 50%;
  border: 1px solid rgba(243, 236, 225, .4);
  background: rgba(11, 10, 8, .35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .4s, color .4s, transform .4s var(--ease);
}
.gallery__arrow:hover { background: var(--ink); color: var(--bg); transform: scale(1.06); }
.gallery__arrow--prev { left: var(--pad); }
.gallery__arrow--next { right: var(--pad); }

.gallery__dots { display: flex; justify-content: center; gap: 8px; }
.gallery__dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(243, 236, 225, .3);
  cursor: pointer;
  transition: width .5s var(--ease), background .4s;
}
.gallery__dots button[aria-current="true"] { width: 24px; background: var(--gold); }

@media (min-width: 900px) {
  .gallery { --h: min(64svh, 620px); }
  .gallery__arrow { display: block; }
  .gallery__slide { transform: scale(.84); opacity: .45; transition: transform .7s var(--ease), opacity .7s var(--ease); }
  .gallery__slide.is-current { transform: none; opacity: 1; }
}

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq__list { border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; color: var(--gold); transition: transform .4s var(--ease); }
.faq details[open] summary { color: var(--gold); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 40px 24px 0; }

/* ---------- CTA ---------- */
.cta { overflow: hidden; isolation: isolate; text-align: center; }
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60% 70% at 50% 0%, rgba(181, 154, 106, .18), transparent 70%),
    linear-gradient(180deg, var(--bg), #1a190c);
}
.cta__box { max-width: 820px; }
.cta__box .title { margin-inline: auto; }
.cta__box .lead { margin-inline: auto; }
.cta__choices { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.cta__note { margin-top: 22px; font-size: .72rem; letter-spacing: .14em; color: var(--muted); }

/* ---------- Rodapé ---------- */
.foot { border-top: 1px solid var(--line); padding: 48px 0 28px; background: var(--bg); }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.foot__tag { margin-top: 10px; font-size: .78rem; color: var(--muted); }
.foot__nav { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: flex-start; }
.foot__nav a { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.foot__nav a:hover { color: var(--gold); }
.foot__copy { margin-top: 36px; text-align: center; font-size: .72rem; color: var(--muted); padding-inline: var(--pad); }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 45;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 34px rgba(0, 0, 0, .45);
  transition: transform .4s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Reveal ao rolar (JS adiciona .is-in) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 34px, 0);
  filter: blur(6px);
  transition:
    opacity 1.1s var(--ease) var(--d, 0s),
    transform 1.2s var(--ease) var(--d, 0s),
    filter 1.1s var(--ease) var(--d, 0s);
}
.js [data-reveal="scale"] { transform: translate3d(0, 24px, 0) scale(.94); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- Mobile pequeno ---------- */
@media (max-width: 480px) {
  .btn { padding: 16px 28px; }
  .hero__cta .btn { width: 100%; }
  .brand { font-size: 1.15rem; }
}

/* ---------- Menos movimento ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; filter: none; transition: none; }
  .strip__track { animation: none; }
  .gallery__slide { transition: none; }
}



/* ---------- Tela de carregamento ---------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--bg);
  transition: opacity .7s var(--ease), visibility .7s;
}
.loader.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.loader__in { display: grid; justify-items: center; gap: 22px; }
.loader__brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  letter-spacing: .28em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
  animation: loaderIn .8s var(--ease) both;
}
.loader__brand small {
  font-family: var(--sans);
  font-size: .6rem;
  letter-spacing: .5em;
  font-weight: 400;
  color: var(--muted);
  margin-top: 6px;
}
.loader__bar {
  width: 120px;
  height: 1px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.loader__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform: translateX(-100%);
  animation: loaderBar 1.2s var(--ease) forwards;
}
@keyframes loaderIn { from { opacity: 0; transform: translateY(10px); } }
@keyframes loaderBar { to { transform: translateX(0); } }

/* Trava a rolagem enquanto carrega */
html.is-loading, html.is-loading body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .loader, .loader__brand, .loader__bar::after { animation: none; transition: none; }
}