/* =========================================================
   Berço Art Tattoo & Piercing — Guimarães
   Paleta: preto e dourado (folha de ouro do logótipo)
   ========================================================= */

/* Fontes alojadas no próprio site (SIL Open Font License) */
@font-face {
  font-family: "Grenze Gotisch";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("../fonts/grenze-gotisch-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-standard-normal.woff2") format("woff2");
}

:root {
  --preto: #000000;
  --carvao: #15120d;      /* superfícies elevadas, castanho-carvão quente */
  --carvao-2: #1f1a12;
  --ouro: #d6a93b;
  --ouro-claro: #f3d57e;
  --ouro-escuro: #8c6618;
  --osso: #efe7d4;        /* texto principal */
  --cinza: #a39a88;       /* texto secundário */
  --linha: rgba(214, 169, 59, .28);

  --folha: linear-gradient(176deg, #fbe9ad 0%, #ebc35a 32%, #b98a20 55%, #f2d27a 78%, #a87816 100%);

  --f-display: "Grenze Gotisch", "UnifrakturMaguntia", Georgia, serif;
  --f-texto: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --wrap: 1180px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --sec: clamp(5rem, 11vw, 9.5rem);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--preto);
  color: var(--osso);
  font-family: var(--f-texto);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, address { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button { font: inherit; color: inherit; }

::selection { background: var(--ouro); color: var(--preto); }

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

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ouro); color: var(--preto); padding: .6rem 1rem; text-decoration: none; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }

/* ---------------- Botões ---------------- */
.btn {
  --h: 3.25rem;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: var(--h);
  padding: 0 1.6rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--f-texto);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: .01em;
  font-variation-settings: "wdth" 92;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .3s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn--sm { --h: 2.6rem; padding: 0 1.15rem; font-size: .95rem; }

.btn--gold {
  background: var(--folha);
  background-size: 100% 220%;
  background-position: 0 30%;
  color: #1a1206;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 6px 24px -10px rgba(214,169,59,.7);
  transition: background-position .5s var(--ease), box-shadow .3s, transform .2s;
}
.btn--gold:hover { background-position: 0 80%; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 10px 32px -10px rgba(243,213,126,.85); }

.btn--line { border-color: var(--linha); color: var(--osso); background: rgba(0,0,0,.25); backdrop-filter: blur(4px); }
.btn--line:hover { border-color: var(--ouro); color: var(--ouro-claro); }

.btn--whats { background: #1faa59; color: #fff; width: 100%; }
.btn--whats:hover { background: #179149; }
.btn--whats svg { width: 1.35rem; height: 1.35rem; fill: currentColor; }

/* ---------------- Navegação ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 0 var(--gutter);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid {
  background: rgba(0,0,0,.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--linha);
}
.nav__brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.nav__brand img { width: 44px; height: 44px; }
.nav__brand span {
  font-family: var(--f-display); font-size: 1.55rem; font-weight: 600; line-height: 1;
  background: var(--folha); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav__menu { display: flex; align-items: center; gap: 2rem; }
.nav__menu ul { display: flex; gap: 1.75rem; }
.nav__menu ul a {
  text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--osso);
  font-variation-settings: "wdth" 90;
  position: relative; padding: .4rem 0;
}
.nav__menu ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--ouro); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__menu ul a:hover::after, .nav__menu ul a.is-current::after { transform: scaleX(1); }
.nav__menu ul a.is-current { color: var(--ouro-claro); }

.nav__toggle {
  display: none;
  width: 46px; height: 46px; border: 1px solid var(--linha); border-radius: 50%;
  background: rgba(0,0,0,.4); cursor: pointer; position: relative;
}
.nav__toggle-bars, .nav__toggle-bars::before, .nav__toggle-bars::after {
  position: absolute; left: 50%; width: 18px; height: 1.5px; background: var(--ouro-claro);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle-bars { top: 50%; transform: translate(-50%, -50%); }
.nav__toggle-bars::before, .nav__toggle-bars::after { content: ""; left: 0; }
.nav__toggle-bars::before { transform: translateY(-6px); }
.nav__toggle-bars::after { transform: translateY(6px); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::before { transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bars::after { transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav__toggle { display: block; }
  .nav__menu {
    position: fixed; inset: var(--nav-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 1.5rem;
    padding: 1.5rem var(--gutter) 2rem;
    background: rgba(0,0,0,.96);
    border-bottom: 1px solid var(--linha);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .3s, transform .3s var(--ease), visibility 0s .3s;
  }
  .nav.is-open { background: rgba(0,0,0,.96); border-bottom-color: var(--linha); }
  .nav.is-open .nav__menu { opacity: 1; transform: none; visibility: visible; transition: opacity .3s, transform .3s var(--ease); }
  .nav__menu ul { flex-direction: column; gap: 0; }
  .nav__menu ul a { display: block; padding: .9rem 0; font-size: 1.15rem; border-bottom: 1px solid rgba(214,169,59,.12); }
  .nav__menu ul a::after { display: none; }
  .nav__menu .btn { align-self: flex-start; }
}

/* ---------------- Hero ---------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 6rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__video {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.04);
  filter: saturate(.85) contrast(1.05);
}
.hero__shade {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 55% at 50% 45%, rgba(0,0,0,.35) 0%, rgba(0,0,0,.72) 70%, rgba(0,0,0,.9) 100%),
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 25%, rgba(0,0,0,0) 65%, #000 100%);
}
.hero__content {
  max-width: 46rem;
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.hero__logo {
  width: clamp(170px, 26vw, 290px); height: auto;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(214,169,59,.25), 0 0 80px -10px rgba(214,169,59,.45), 0 30px 60px -20px #000;
}
.hero__title {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 7.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.005em;
  text-wrap: balance;
  background: var(--folha);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 18px rgba(0,0,0,.65));
  padding-bottom: .08em;
}
.hero__lead {
  margin-top: 1.25rem;
  max-width: 34rem;
  font-size: clamp(1.02rem, 1.4vw, 1.15rem);
  color: rgba(239,231,212,.86);
  text-wrap: pretty;
}
.hero__actions { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: .9rem; justify-content: center; }
.hero__where {
  position: absolute; left: 50%; bottom: 1.75rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .9rem; color: var(--cinza); text-decoration: none; white-space: nowrap;
  font-variation-settings: "wdth" 90;
  transition: color .25s;
}
.hero__where:hover { color: var(--ouro-claro); }
.hero__where svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--ouro); stroke-width: 1.6; }

/* Entrada orquestrada do hero (um único momento) */
.js .hero__logo { opacity: 0; transform: scale(.82) rotate(-8deg); filter: blur(6px); }
.js .hero__title { clip-path: inset(0 100% 0 0); }
.js .hero__lead, .js .hero__actions, .js .hero__where { opacity: 0; translate: 0 14px; }
.js.is-loaded .hero__logo { opacity: 1; transform: none; filter: none; transition: opacity 1s var(--ease), transform 1.3s var(--ease), filter 1s; }
.js.is-loaded .hero__title { clip-path: inset(0 0 0 0); transition: clip-path 1.3s var(--ease) .45s; }
.js.is-loaded .hero__lead { opacity: 1; translate: 0 0; transition: opacity .8s .95s, translate .8s var(--ease) .95s; }
.js.is-loaded .hero__actions { opacity: 1; translate: 0 0; transition: opacity .8s 1.1s, translate .8s var(--ease) 1.1s; }
.js.is-loaded .hero__where { opacity: 1; translate: 0 0; transition: opacity .8s 1.3s, translate .8s var(--ease) 1.3s; }

/* ---------------- Secções ---------------- */
.section { padding-block: var(--sec); position: relative; }
.section__head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: clamp(3rem, 6vw, 4.5rem); }
.title {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 4.25rem);
  line-height: 1;
  color: var(--ouro);
  background: var(--folha);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .1em;
}
.section__intro { margin-top: 1.1rem; max-width: 36rem; color: var(--cinza); text-wrap: pretty; }

.flourish { width: min(320px, 70vw); height: auto; margin-top: .5rem; overflow: visible; }
.flourish path { fill: none; stroke: var(--ouro); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.flourish .flourish__gem { fill: var(--ouro); fill-opacity: 1; }
.js .flourish path { stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease); }
.js .flourish .flourish__gem { fill-opacity: 0; transition: stroke-dashoffset .6s var(--ease) 1s, fill-opacity .6s 1.4s; }
.js .flourish.is-visible path { stroke-dashoffset: 0; }
.js .flourish.is-visible .flourish__gem { fill-opacity: 1; }

/* ---------------- Trabalhos ---------------- */
.works__grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.works__col { position: relative; padding-top: 1rem; }
.works__cap {
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(7rem, 14vw, 11rem);
  line-height: .7;
  position: absolute; top: -.5rem; right: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(214,169,59,.35);
  pointer-events: none; user-select: none;
}
.works__name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1;
  color: var(--ouro-claro);
}
.works__desc { margin-top: .75rem; color: var(--cinza); max-width: min(30rem, calc(100% - 6.5rem)); }
.list { margin-top: 2rem; border-top: 1px solid var(--linha); }
.list li {
  display: grid; grid-template-columns: minmax(10rem, 15rem) 1fr; gap: .35rem 1.5rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--linha);
}
.list strong { font-weight: 600; font-variation-settings: "wdth" 95; color: var(--osso); }
.list span { color: var(--cinza); }
.works__col--piercing .list li { grid-template-columns: minmax(7rem, 9rem) 1fr; }

.works__cta {
  margin-top: clamp(3.5rem, 7vw, 5rem);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(1.5rem, 4vw, 2.75rem);
  border: 1px solid var(--linha);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(214,169,59,.08), rgba(214,169,59,0) 70%);
}
.works__cta p { font-size: 1.15rem; color: var(--osso); }

@media (max-width: 860px) {
  .works__grid { grid-template-columns: 1fr; }
  .list li, .works__col--piercing .list li { grid-template-columns: 1fr; }
  .works__cta { border-radius: 1.5rem; }
}

/* ---------------- Estúdio ---------------- */
.studio {
  display: grid;
  grid-template-columns: 58fr 42fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  padding-right: var(--gutter);
  background: linear-gradient(180deg, var(--preto), var(--carvao) 50%, var(--preto));
}
.studio__media { position: relative; overflow: hidden; }
.studio__media img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.studio__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,0) 70%, rgba(21,18,13,.9));
}
.studio__text { max-width: 32rem; }
.studio__text > p { margin-top: 1.4rem; color: rgba(239,231,212,.86); }
.facts { margin-top: 2rem; }
.facts > div { padding: 1.1rem 0 1.1rem 1.25rem; border-left: 1px solid var(--linha); position: relative; }
.facts > div::before {
  content: ""; position: absolute; left: -4px; top: 1.55rem; width: 7px; height: 7px;
  background: var(--ouro); transform: rotate(45deg);
}
.facts dt { font-weight: 600; color: var(--ouro-claro); font-variation-settings: "wdth" 95; }
.facts dd { margin-top: .25rem; color: var(--cinza); }

@media (max-width: 900px) {
  .studio { grid-template-columns: 1fr; padding-right: 0; }
  .studio__media::after { background: linear-gradient(180deg, rgba(0,0,0,0) 65%, rgba(21,18,13,1)); }
  .studio__text { padding-inline: var(--gutter); max-width: 40rem; margin-inline: auto; }
}

/* ---------------- Como marcar ---------------- */
.steps__list {
  --p: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  position: relative;
  counter-reset: none;
}
.steps__list::before, .steps__list::after {
  content: ""; position: absolute; top: 1.6rem; left: 1.6rem; right: calc(25% - 3.1rem); height: 1px;
}
.steps__list::before { background: rgba(214,169,59,.18); }
.steps__list::after { background: var(--ouro); transform-origin: left; transform: scaleX(var(--p)); box-shadow: 0 0 12px rgba(243,213,126,.6); }
.steps__list li { position: relative; z-index: 1; }
.steps__n {
  display: grid; place-items: center;
  width: 3.2rem; height: 3.2rem; border-radius: 50%;
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 600; line-height: 1;
  color: var(--ouro); background: var(--preto);
  border: 1px solid var(--linha);
  transition: background-color .5s, color .5s, border-color .5s, box-shadow .5s;
}
.steps__list li.is-lit .steps__n { background: var(--ouro); color: var(--preto); border-color: var(--ouro); box-shadow: 0 0 24px -4px rgba(243,213,126,.7); }
.steps__list h3 { margin-top: 1.25rem; font-size: 1.15rem; font-weight: 600; font-variation-settings: "wdth" 95; color: var(--osso); }
.steps__list p { margin-top: .4rem; color: var(--cinza); font-size: 1rem; }
.steps__cta { margin-top: 3.5rem; display: flex; justify-content: center; }

@media (max-width: 860px) {
  .steps__list { grid-template-columns: 1fr; gap: 2.25rem; padding-left: 4.5rem; }
  .steps__list::before, .steps__list::after { top: 1.6rem; bottom: 1.6rem; left: 1.6rem; right: auto; width: 1px; height: auto; }
  .steps__list::after { transform-origin: top; transform: scaleY(var(--p)); }
  .steps__n { position: absolute; left: -4.5rem; top: 0; }
  .steps__list h3 { margin-top: .55rem; }
}

/* ---------------- Galeria ---------------- */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: clamp(150px, 17vw, 220px);
  gap: clamp(.6rem, 1.2vw, 1rem);
}
.g { grid-column: span 4; overflow: hidden; border-radius: 4px; background: var(--carvao); }
.g--tall { grid-row: span 2; }
.g--wide { grid-column: span 8; }
.g__btn { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.g__btn picture, .g__btn img { width: 100%; height: 100%; }
.g__btn img { object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.g__btn:hover img, .g__btn:focus-visible img { transform: scale(1.04); filter: saturate(1.05); }
.g__btn::after {
  content: ""; position: absolute; inset: 0; border: 1px solid rgba(214,169,59,0); transition: border-color .4s; pointer-events: none;
}
.g__btn:hover::after { border-color: rgba(214,169,59,.6); }

/* ordem pensada para o grid 12 colunas: alto(4) + largo(8) / [alto cont.] + 4 + 4 / largo(8) + 4 */
@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 42vw; grid-auto-flow: dense; }
  .g { grid-column: span 1; }
  .g--wide, .g:last-child { grid-column: span 2; }
  .g--tall { grid-row: span 2; }
}

/* ---------------- Visita ---------------- */
.visit { background: linear-gradient(180deg, var(--preto), var(--carvao)); }
.visit__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: stretch; }
.visit__info { display: flex; flex-direction: column; gap: 1.4rem; }
.visit__info .title { margin-bottom: .5rem; }
.visit__label { display: block; font-size: .85rem; color: var(--ouro); font-weight: 600; font-variation-settings: "wdth" 90; margin-bottom: .15rem; }
.visit__info address, .visit__info p { font-size: 1.1rem; }
.visit__phone { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.visit__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .75rem; }
.visit__map {
  min-height: 380px;
  border: 1px solid var(--linha); border-radius: 4px; overflow: hidden;
  background: var(--carvao-2);
}
.visit__map iframe {
  width: 100%; height: 100%; min-height: 380px; border: 0;
  filter: grayscale(1) invert(.9) sepia(.35) hue-rotate(5deg) contrast(.9) brightness(.95);
}
@media (max-width: 860px) {
  .visit__grid { grid-template-columns: 1fr; }
}

/* ---------------- Rodapé ---------------- */
.footer { border-top: 1px solid var(--linha); padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); background: var(--preto); }
.footer__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1rem; }
.footer p { color: var(--cinza); font-size: .95rem; }
.footer__small { font-size: .85rem !important; opacity: .75; }

/* ---------------- Botão fixo (telemóvel) ---------------- */
.fab {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 40;
  display: none; align-items: center; gap: .55rem;
  padding: .85rem 1.2rem .85rem 1rem;
  border-radius: 999px;
  background: var(--folha); background-size: 100% 220%; background-position: 0 30%;
  color: #1a1206; text-decoration: none; font-weight: 600; font-size: .95rem;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,.9), 0 0 0 1px rgba(0,0,0,.4);
  transform: translateY(150%); transition: transform .5s var(--ease);
}
.fab svg { width: 1.3rem; height: 1.3rem; fill: currentColor; }
.fab.is-shown { transform: none; }
@media (max-width: 920px) { .fab { display: inline-flex; } }

/* ---------------- Diálogo de marcação ---------------- */
dialog { padding: 0; border: 0; color: var(--osso); }
.booking {
  width: min(100% - 2rem, 30rem);
  max-height: calc(100% - 2rem);
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(214,169,59,.14), rgba(214,169,59,0) 60%),
    var(--carvao);
  border: 1px solid var(--linha);
  border-radius: 1.25rem;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.25rem) 2rem;
  box-shadow: 0 40px 80px -20px #000;
  overflow: auto;
}
.booking::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.booking[open] { animation: dlg-in .45s var(--ease); }
.booking[open]::backdrop { animation: fade-in .35s ease; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(18px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

.booking__close {
  position: absolute; top: .9rem; right: .9rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  border: 1px solid var(--linha); background: rgba(0,0,0,.4); cursor: pointer;
  display: grid; place-items: center; transition: border-color .2s, background-color .2s;
}
.booking__close:hover { border-color: var(--ouro); }
.booking__close svg { width: 1.1rem; height: 1.1rem; stroke: var(--ouro-claro); stroke-width: 1.8; fill: none; stroke-linecap: round; }

.booking__step { display: flex; flex-direction: column; align-items: center; text-align: center; }
.booking__step[hidden] { display: none; }
.booking__step:not([hidden]) { animation: step-in .45s var(--ease); }
@keyframes step-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.booking__logo { width: 64px; height: 64px; }
.booking__title {
  margin-top: 1rem;
  font-family: var(--f-display); font-weight: 600; font-size: clamp(1.9rem, 6vw, 2.3rem); line-height: 1.05;
  background: var(--folha); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .08em;
  outline: none;
}
.booking__text { margin-top: .6rem; color: var(--cinza); }
.booking__options { margin-top: 1.75rem; width: 100%; display: grid; gap: .8rem; }

.opt {
  display: flex; align-items: center; gap: 1rem;
  width: 100%;
  padding: .9rem 1.1rem;
  text-align: left;
  border: 1px solid var(--linha); border-radius: 1rem;
  background: rgba(0,0,0,.45);
  cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .2s;
}
.opt:hover { border-color: var(--ouro); background: rgba(214,169,59,.08); }
.opt:active { transform: scale(.99); }
.opt__glyph {
  flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; line-height: 1;
  color: #1a1206; background: var(--folha);
}
.opt__label { font-weight: 600; font-size: 1.05rem; font-variation-settings: "wdth" 95; }

.bubble {
  position: relative;
  margin: 1.4rem 0 1.6rem;
  align-self: stretch;
  padding: .9rem 1.1rem;
  text-align: left;
  background: #e7f7dd; color: #13240f;
  border-radius: 1rem 1rem .25rem 1rem;
  font-size: 1.02rem;
  box-shadow: 0 6px 18px -8px rgba(0,0,0,.7);
}
.booking__back {
  margin-top: 1rem;
  border: 0; background: none; color: var(--cinza); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--linha);
  padding: .5rem;
}
.booking__back:hover { color: var(--ouro-claro); }

/* ---------------- Lightbox ---------------- */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  background: rgba(0,0,0,.94);
  display: none; place-items: center; padding: 3.5rem 1rem 1rem;
}
.lightbox[open] { display: grid; animation: fade-in .3s ease; }
.lightbox::backdrop { background: transparent; }
.lightbox img { max-width: min(100%, 1200px); max-height: calc(100vh - 5rem); object-fit: contain; border: 1px solid var(--linha); }
.lightbox[open] img { animation: dlg-in .45s var(--ease); }

/* ---------------- Animações ao fazer scroll ---------------- */
.js .reveal {
  opacity: 0; translate: 0 22px;
  transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

/* título "escrito" da esquerda para a direita, como tinta */
.js .reveal-wipe { clip-path: inset(-.2em 100% -.2em 0); transition: clip-path 1.1s var(--ease) var(--d, 0s); }
.js .reveal-wipe.is-visible { clip-path: inset(-.2em 0 -.2em 0); }

/* imagens a surgir de baixo com ligeiro zoom */
.js .reveal-img { clip-path: inset(100% 0 0 0); transition: clip-path 1.2s var(--ease) var(--d, 0s); }
.js .reveal-img img, .js .reveal-img iframe { scale: 1.12; transition: scale 1.6s var(--ease) var(--d, 0s); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0); }
.js .reveal-img.is-visible img, .js .reveal-img.is-visible iframe { scale: 1; }

/* Quem pede menos movimento ao sistema vê as mesmas entradas, mas só com esbatimento */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__video { transform: none; }
  .js .hero__logo { transform: none; filter: none; }
  .js .hero__title { clip-path: none; opacity: 0; }
  .js.is-loaded .hero__title { opacity: 1; transition: opacity 1s ease .3s; }
  .js .hero__lead, .js .hero__actions, .js .hero__where { translate: none; }
  .js .reveal, .js .reveal-wipe, .js .reveal-img {
    translate: none; clip-path: none; opacity: 0;
    transition: opacity .9s ease var(--d, 0s);
  }
  .js .reveal.is-visible, .js .reveal-wipe.is-visible, .js .reveal-img.is-visible { opacity: 1; }
  .js .reveal-img img, .js .reveal-img iframe { scale: 1; transition: none; }
  .booking[open], .booking__step:not([hidden]), .lightbox[open] img { animation-name: fade-in; }
}

/* Botão de pausa do vídeo */
.hero__pause {
  position: absolute; left: var(--gutter); bottom: 1.25rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--linha); background: rgba(0,0,0,.45); cursor: pointer;
  transition: border-color .2s;
}
.hero__pause:hover { border-color: var(--ouro); }
.hero__pause svg { width: .95rem; height: .95rem; fill: var(--ouro-claro); }
.hero__pause .i-play { display: none; }
.hero__pause[aria-pressed="true"] .i-play { display: block; }
.hero__pause[aria-pressed="true"] .i-pause { display: none; }
@media (max-width: 560px) { .hero__where { bottom: 4.25rem; } }
