/* =========================================================
   TRUE SHAPE SALON — Folha de estilo principal
   Estrutura:
   01. Fontes da marca
   02. Tokens
   03. Reset & base
   04. Tipografia
   05. Botões & links
   06. Cursor personalizado
   07. Header / navegação
   08. Hero (home)
   09. Hero (páginas internas)
   10. Marquee
   11. Galeria
   12. Especialidades (sticky scroll)
   13. Favoritos / lista de preços
   14. Vídeo
   15. Sobre
   16. Serviços
   17. Localizações
   18. Equipa
   19. Oferta / destaque
   20. Próxima página
   21. Footer
   22. Banner de cookies
   23. Páginas legais
   24. Animações de revelação
   25. Responsivo
   ========================================================= */

/* ---------- 01. Fontes da marca ----------
   Rahong (títulos) e Evolventa (textos) não existem no Google Fonts.
   Coloca os ficheiros .woff2 em assets/fonts/ e são usados automaticamente;
   enquanto não existirem, o browser cai nas alternativas do Google
   (Anton e Jost) declaradas nas font stacks abaixo. */
@font-face {
  font-family: "Rahong";
  src: url("assets/fonts/Rahong.woff2") format("woff2"),
       url("assets/fonts/Rahong.woff") format("woff");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Evolventa";
  src: url("assets/fonts/Evolventa-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Evolventa";
  src: url("assets/fonts/Evolventa-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---------- 02. Tokens ---------- */
:root {
  /* paleta da marca */
  --white: #ffffff;
  --smoke: #e3e3e3;
  --ink: #000000;
  --amber: #d48011;
  --amber-dark: #a9640c;

  --ink-60: rgba(0, 0, 0, 0.6);
  --ink-40: rgba(0, 0, 0, 0.4);
  --ink-20: rgba(0, 0, 0, 0.2);
  --ink-08: rgba(0, 0, 0, 0.08);
  --white-65: rgba(255, 255, 255, 0.65);
  --white-20: rgba(255, 255, 255, 0.2);

  /* tipografia da marca */
  --font-display: "Rahong", "Anton", "Archivo", sans-serif;
  --font-ui: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Evolventa", "Jost", "Century Gothic", sans-serif;

  --wrap: 1520px;
  --gutter: 40px;

  --ease: cubic-bezier(0.44, 0, 0.56, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --header-h: 96px;
}

/* ---------- 03. Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cursor personalizado só em ponteiro fino */
@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor a,
  body.has-cursor button { cursor: none; }
}

img,
video { display: block; max-width: 100%; }

h1, h2, h3, h4, p, figure, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow { max-width: 976px; }

.section { padding-block: 120px; }
.section--tight { padding-block: 80px; }
.section--alt { background: var(--smoke); }
.section--dark {
  background: var(--ink);
  color: var(--white);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* marcador de conteúdo por confirmar com o cliente */
.tbd {
  color: var(--amber);
  border-bottom: 1px dashed currentColor;
  white-space: nowrap;
}
.section--dark .tbd { color: var(--amber); }

/* ---------- 04. Tipografia ---------- */
.display,
.h1, .h2, .h3 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  letter-spacing: 0.01em;
}

.display { font-size: clamp(2.5rem, 6.6vw, 5rem); }
.h1 { font-size: clamp(2.25rem, 5.6vw, 4rem); }
.h2 { font-size: clamp(1.85rem, 4.2vw, 3.25rem); line-height: 1.14; }

/* nível 3 em DM Sans — o manual da marca usa Rahong *e* DM Sans nos destaques */
.h3 {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.25;
  letter-spacing: 0.01em;
  text-transform: none;
}

.eyebrow {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--amber);
}

.lead {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.8vw, 1.4rem);
  line-height: 1.5;
}

.body {
  font-size: 15px;
  line-height: 1.7;
  color: var(--ink-60);
  max-width: 60ch;
}

.section--dark .body { color: rgba(255, 255, 255, 0.68); }

/* ---------- 05. Botões & links ---------- */
.btn {
  --btn-bg: var(--white);
  --btn-fg: var(--ink);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  padding: 0 32px;
  overflow: hidden;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  isolation: isolate;
}

/* Os dois rótulos ocupam a altura total do botão, para que translateY(±100%)
   os retire por completo da caixa — com uma percentagem menor o rótulo
   original ficava visível por baixo do duplicado durante o hover. */
.btn__label {
  display: flex;
  align-items: center;
  height: 100%;
  transition: transform 0.45s var(--ease);
}

/* rótulo duplicado que entra por baixo (roll hover) */
.btn__label--ghost {
  position: absolute;
  inset: 0;
  justify-content: center;
  transform: translateY(100%);
}

.btn:hover .btn__label { transform: translateY(-100%); }
.btn:hover .btn__label--ghost { transform: translateY(0); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); }
/* âmbar da marca com texto preto — o branco não teria contraste suficiente */
.btn--amber { --btn-bg: var(--amber); --btn-fg: var(--ink); }
.btn--outline {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink-20);
}
.btn--glass {
  --btn-bg: var(--white-65);
  --btn-fg: var(--ink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.section--dark .btn--outline {
  --btn-fg: var(--white);
  box-shadow: inset 0 0 0 1px var(--white-20);
}

.btn--sm { height: 44px; padding: 0 24px; }

/* link com sublinhado que cresce */
.link-u {
  position: relative;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.link-u::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.link-u:hover::after { transform: scaleX(1); transform-origin: left; }

.star {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: var(--amber);
}

/* ---------- 06. Cursor personalizado ---------- */
.cursor {
  position: fixed;
  top: 0; left: 0;
  z-index: 999;
  pointer-events: none;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor.is-visible { opacity: 1; }

.cursor__ring {
  position: absolute;
  width: 36px; height: 36px;
  margin: -18px 0 0 -18px;
  border: 1px solid var(--white);
  border-radius: 50%;
  transition: width 0.35s var(--ease-out), height 0.35s var(--ease-out),
              margin 0.35s var(--ease-out), background-color 0.35s var(--ease-out);
}
.cursor__dot {
  position: absolute;
  width: 4px; height: 4px;
  margin: -2px 0 0 -2px;
  background: var(--white);
  border-radius: 50%;
  transition: opacity 0.3s ease;
}
.cursor.is-hover .cursor__ring {
  width: 72px; height: 72px;
  margin: -36px 0 0 -36px;
  background: rgba(255, 255, 255, 0.12);
}
.cursor.is-hover .cursor__dot { opacity: 0; }

/* ---------- 07. Header ---------- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  z-index: 100;
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  transition: transform 0.5s var(--ease), background-color 0.4s var(--ease);
}
.header.is-stuck {
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.header.is-hidden { transform: translate3d(0, -100%, 0); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.brand { display: block; }
.brand img {
  display: block;
  height: 56px;
  width: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav__link {
  position: relative;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  position: relative;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: background-color 0.2s linear;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 22px; height: 1px;
  background: var(--ink);
  transition: transform 0.4s var(--ease);
}
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-7px) rotate(-45deg); }

/* ---------- 08. Hero (home) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-block: calc(var(--header-h) + 40px) 64px;
  /* fundo explícito: o mix-blend-mode do título mistura dentro deste
     contexto isolado, por isso o branco tem de existir aqui */
  background: var(--white);
  isolation: isolate;
  overflow: hidden;
}

.hero__stage {
  position: relative;
  width: 100%;
  max-width: 976px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 480px;
}

.hero__portrait {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(320px, 62vw);
  aspect-ratio: 2 / 3;
  transform: translate(-50%, -50%);
  z-index: 1;
  overflow: hidden;
  will-change: transform;
}
/* altura extra + deslocamento negativo para o parallax nunca revelar bordas */
.hero__portrait img {
  width: 100%;
  height: 120%;
  margin-top: -10%;
  object-fit: cover;
  will-change: transform;
}

.hero__title {
  position: relative;
  z-index: 2;
  max-width: 900px;
  color: var(--white);
  mix-blend-mode: difference;
  text-align: center;
  font-size: clamp(2.25rem, 5.8vw, 4.5rem);
  line-height: 1.08;
}

.hero__foot {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  text-align: center;
}

.hero__sub {
  max-width: 620px;
  color: var(--ink-60);
  font-size: 1rem;
}


/* ---------- 09. Hero (páginas internas) ---------- */
.page-hero {
  padding-block: calc(var(--header-h) + 96px) 72px;
  text-align: center;
}
.page-hero__title { margin-bottom: 28px; }
.page-hero__sub {
  max-width: 760px;
  margin-inline: auto;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-60);
}
/* hero escuro (Serviços), como no original */
.page-hero--dark {
  background: var(--ink);
  color: var(--white);
}
.page-hero--dark .page-hero__sub { color: rgba(255, 255, 255, 0.65); }

/* com o hero preto, o header tem de inverter enquanto está no topo */
body[data-hero="dark"] .header:not(.is-stuck) { color: var(--white); }
body[data-hero="dark"] .header:not(.is-stuck) .brand img { filter: invert(1); }
body[data-hero="dark"] .header:not(.is-stuck) .nav-toggle span,
body[data-hero="dark"] .header:not(.is-stuck) .nav-toggle span::before,
body[data-hero="dark"] .header:not(.is-stuck) .nav-toggle span::after {
  background: var(--white);
}

/* ...mas com o menu aberto o fundo é claro: desfaz-se a inversão, senão
   logótipo, links e ícone ficam brancos sobre branco (ecrã em branco) */
body[data-hero="dark"] .header.nav-open:not(.is-stuck) { color: var(--ink); }
body[data-hero="dark"] .header.nav-open:not(.is-stuck) .brand img { filter: none; }
body[data-hero="dark"] .header.nav-open:not(.is-stuck) .nav-toggle span,
body[data-hero="dark"] .header.nav-open:not(.is-stuck) .nav-toggle span::before,
body[data-hero="dark"] .header.nav-open:not(.is-stuck) .nav-toggle span::after {
  background: var(--ink);
}

/* menu aberto passa à frente do banner de cookies (z-index 200) */
.header.nav-open { z-index: 300; }

.page-hero__media {
  margin-top: 64px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}
.page-hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
}

/* ---------- 10. Marquee ---------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 24px;
  border-block: 1px solid var(--ink-08);
  user-select: none;
}
.marquee--dark {
  background: var(--ink);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.12);
}
.marquee--amber {
  background: var(--amber);
  color: var(--ink);
  border-color: rgba(0, 0, 0, 0.12);
}
.marquee--amber .star { fill: var(--ink); }
.marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  animation: marquee 38s linear infinite;
}
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-inline: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.4vw, 3.25rem);
  line-height: 1.16;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee__item .star { width: 0.42em; height: 0.42em; }
@keyframes marquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}

/* ---------- 11. Colagem de imagens ----------
   Reproduz a grelha do original: 8 colunas com goteira de 24px e 20 linhas
   iguais, onde as imagens se sobrepõem por partilharem colunas e linhas.
   O aspect-ratio mantém as proporções em qualquer largura. */
.collage {
  position: relative;
  width: 100%;
  max-width: 1128px;
  margin-inline: auto;
  aspect-ratio: 1128 / 800;
}
.collage--about { max-width: 896px; aspect-ratio: 896 / 800; }

.collage__item {
  position: absolute;
  overflow: hidden;
}
.collage__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  will-change: transform;
  transition: transform 0.9s var(--ease-out);
}
/* especificidade acima da regra de revelação, senão o hover não pega */
.collage__item.is-revealed:hover > img { transform: scale(1.04); }

/* home — 8 colunas de 120px com goteira de 24px em 1128px de largura:
   coluna = 10.638%, goteira = 2.128%, passo = 12.766%.
   Grande ao centro (col 2-7), duas verticais a sobrepor as extremidades. */
.collage__item--main  { left: 12.766%; width: 74.468%; top: 0;   height: 75%; }
.collage__item--left  { left: 0;       width: 23.404%; top: 40%; height: 45%; z-index: 2; }
.collage__item--right { left: 76.596%; width: 23.404%; top: 55%; height: 45%; z-index: 2; }

/* sobre — 8 colunas de 91px com goteira de 24px em 896px: passo = 12.835%.
   Duas colunas desencontradas e uma horizontal a cavalgar a junta. */
.collage__item--a { left: 0;       width: 48.66%; top: 0;   height: 75%; }
.collage__item--b { left: 51.34%;  width: 48.66%; top: 20%; height: 75%; }
.collage__item--c { left: 38.504%; width: 22.99%; top: 65%; height: 35%; z-index: 2; }

/* ---------- 12. Especialidades (sticky scroll) ---------- */
.spec { position: relative; }
.spec__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
}
.spec__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  width: 100%;
}
.spec__list { display: flex; flex-direction: column; gap: 10px; }
.spec__item a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  overflow: hidden;
}

/* seta depois do nome do serviço, sempre visível, a sinalizar que o
   link abre outra página; avança um pouco no hover */
.spec__arrow {
  width: clamp(12px, 1.5vw, 18px);
  height: clamp(12px, 1.5vw, 18px);
  flex: 0 0 auto;
  fill: var(--amber);
  transition: transform 0.5s var(--ease-out);
}
.spec__item a:hover .spec__arrow { transform: translateX(6px); }
.spec__line {
  width: 32px; height: 1px;
  background: var(--amber);
  transform: scaleX(0.2);
  transform-origin: left;
  opacity: 0.35;
  transition: transform 0.6s var(--ease-out), opacity 0.6s var(--ease-out);
  flex: 0 0 auto;
}
/* todos os serviços ficam a preto; quem marca o ativo é só a linha âmbar */
.spec__label {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3vw, 2.4rem);
  text-transform: uppercase;
  line-height: 1.1;
}
.spec__item.is-active .spec__line { transform: scaleX(1); opacity: 1; }

.spec__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.spec__media img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 0.8s var(--ease), transform 1.2s var(--ease-out);
}
.spec__media img.is-active { opacity: 1; transform: scale(1); }

/* ---------- 13. Favoritos / lista de preços ---------- */
.list-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
}

.price-list { display: flex; flex-direction: column; }

.price-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 26px;
  border-bottom: 1px solid var(--ink-08);
  overflow: hidden;
}
.section--dark .price-row { border-color: rgba(255, 255, 255, 0.14); }
.price-row:first-child { border-top: 1px solid var(--ink-08); }
.section--dark .price-row:first-child { border-color: rgba(255, 255, 255, 0.14); }

.price-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  opacity: 0;
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}
.price-row:hover::before { opacity: 0.12; transform: scaleY(1); }

.price-row__name {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 16px;
  transition: transform 0.5s var(--ease-out);
}
.price-row:hover .price-row__name { transform: translateX(16px); }

.price-row__meta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 28px;
  transition: transform 0.5s var(--ease-out);
}
.price-row:hover .price-row__meta { transform: translateX(-16px); }

.price-row__price {
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.05rem;
}
.price-row__cta {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--ease-out);
}
.price-row:hover .price-row__cta { opacity: 1; transform: translateX(0); }

@media (max-width: 700px) {
  .price-row__cta { display: none; }
}

/* ---------- 14. Vídeo ---------- */
.video {
  position: relative;
  height: 82svh;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
}
.video video,
.video img.video__poster {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}
.video__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.34), rgba(0,0,0,0.14) 40%, rgba(0,0,0,0.52));
}
.video__inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  color: var(--white);
  text-align: center;
}
.video__play {
  display: grid;
  place-items: center;
  width: 96px; height: 96px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--ink);
  transition: transform 0.5s var(--ease-out), background-color 0.4s var(--ease);
}
.video__play:hover { transform: scale(1.08); background: var(--white); }
.video__play svg { width: 20px; height: 20px; fill: currentColor; }

/* ---------- 15. Sobre ---------- */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: center;
}
.about-intro__media { aspect-ratio: 4 / 5; overflow: hidden; }
.about-intro__media img { width: 100%; height: 100%; object-fit: cover; }

/* hero do Sobre: título, imagem larga a toda a largura, e o texto por baixo */
.about-hero__media {
  margin-top: 64px;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  max-width: 1128px;
  margin-inline: auto;
}
.about-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.about-hero__text {
  max-width: 760px;
  margin: 64px auto 0;
}

.story {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  max-width: 760px;
  margin-inline: auto;
  text-align: left;
}
.story .star { width: 20px; height: 20px; margin-top: 8px; }

.values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value { display: flex; flex-direction: column; gap: 16px; }
.value .star { width: 18px; height: 18px; }

/* ---------- 16. Serviços ----------
   Estrutura do original: cada categoria é um bloco com 64px de respiro
   vertical, título e uma grelha de duas colunas com goteira de 80px.
   Cada linha é compacta (12px, caixa alta) com uma linha condutora entre
   o nome e o preço. */
.treat-list { max-width: 1128px; margin-inline: auto; }

.treat-block {
  display: flex;
  flex-direction: column;
  gap: 32px;
  padding-block: 64px;
}

.treat-block__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.65);
}

.treat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 80px;
}

.treat-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  overflow: hidden;
  isolation: isolate;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--white);
  transition: color 0.35s var(--ease);
}

/* separador fino no topo de cada linha */
.treat-row::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 1;
}

/* preenchimento que sobe no hover */
.treat-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease-out);
  z-index: 0;
}
.treat-row:hover::after { transform: scaleY(1); }
.treat-row:hover { color: var(--ink); }

.treat-row > * { position: relative; z-index: 2; }

.treat-row__line {
  flex: 1 1 auto;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  transition: background-color 0.35s var(--ease);
}
.treat-row:hover .treat-row__line { background: rgba(0, 0, 0, 0.3); }

.treat-row__price { white-space: nowrap; }

/* duração do serviço, discreta a seguir ao nome */
.treat-row__dur {
  white-space: nowrap;
  opacity: 0.45;
  font-size: 11px;
}
.treat-row:hover .treat-row__dur { opacity: 0.7; }

.treat-note {
  max-width: 62ch;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 13px;
  line-height: 1.7;
}
.treat-row:hover .tbd { color: var(--ink); }

/* ---------- 17. Localizações ---------- */
.loc + .loc { margin-top: 120px; }
.loc__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 64px;
  align-items: start;
}
.loc__info { display: flex; flex-direction: column; gap: 24px; }
.loc__details { display: flex; flex-direction: column; gap: 6px; }
.loc__details a:hover { color: var(--amber); }
.loc__hours {
  margin-top: 12px;
  color: var(--ink-60);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.loc__media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.loc__media figure { overflow: hidden; aspect-ratio: 3 / 4; margin: 0; }
.loc__media figure:nth-child(2) { margin-top: 56px; }
.loc__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease-out);
}
.loc__media figure.is-revealed:hover > img { transform: scale(1.05); }

/* ---------- 18. Equipa ---------- */
.barber-group + .barber-group { margin-top: 112px; }
.barber-group__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 20px;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--ink-08);
}
.barbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.barber__media {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  margin-bottom: 20px;
}
.barber__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s var(--ease);
}
.barber:hover .barber__media img { transform: scale(1.05); }
.barber__book {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  transform: translateY(100%);
  transition: transform 0.5s var(--ease-out);
}
.barber:hover .barber__book { transform: translateY(0); }
.barber__book .btn { width: 100%; }
.barber__role { color: var(--ink-60); margin-top: 6px; }

/* ---------- 19. Oferta / destaque ---------- */
.offer {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.offer img {
  position: absolute;
  top: -10%; left: 0;
  width: 100%; height: 120%;
  object-fit: cover;
  z-index: 0;
  will-change: transform;
}
.offer__veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.5);
}
.offer__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 96px 24px;
}

/* ---------- 20. Próxima página ---------- */
/* coluna: o rótulo fica sempre por cima do título, nunca ao lado
   (com display:block os dois spans inline-flex caíam na mesma linha) */
.next {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-block: 96px;
  text-align: center;
  border-top: 1px solid var(--ink-08);
}
.next__label {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* A seta fica fora do fluxo (absoluta, à direita do texto) para não
   entrar na medida do bloco: assim o título fica mesmo centrado em
   repouso e só desliza para a esquerda quando o rato passa por cima. */
.next__title {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.next__title > span {
  display: block;
  transition: transform 0.6s var(--ease-out);
}
.next__title svg {
  position: absolute;
  left: calc(100% + 20px);
  top: 50%;
  width: 0.5em; height: 0.5em;
  margin-top: -0.25em;
  fill: var(--amber);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s var(--ease), transform 0.6s var(--ease-out);
}
.next:hover .next__title > span { transform: translateX(-24px); }
.next:hover .next__title svg { opacity: 1; transform: translateX(-24px); }

/* ---------- 21. Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--white);
  padding-block: 96px 40px;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px 24px;
  padding-bottom: 72px;
}
/* logo preto sobre fundo escuro → invertido para branco */
.footer__brand { display: block; margin-bottom: 28px; }
.footer__brand img {
  width: 210px;
  max-width: 60%;
  height: auto;
  filter: invert(1);
}
.footer__tagline { color: rgba(255, 255, 255, 0.6); max-width: 34ch; }
.footer__col h4 {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 20px;
  font-weight: 500;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; }
.footer__col a { position: relative; }
.footer__col a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -3px;
  width: 100%; height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease-out);
}
.footer__col a:hover::after { transform: scaleX(1); transform-origin: left; }

.footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
.footer__legal a:hover { color: var(--amber); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}
.footer__credit a { color: var(--amber); }
.footer__credit a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- 22. Banner de cookies ----------
   width:100vw em vez de left:0/right:0 — com overflow no documento,
   right:0 pode expandir o banner para lá do viewport no mobile. */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100vw;
  z-index: 200;
  overflow: hidden;
  box-sizing: border-box;
  background: var(--ink);
  color: var(--white);
  padding: 24px var(--gutter);
  transform: translate3d(0, 100%, 0);
  -webkit-transform: translate3d(0, 100%, 0);
  transition: transform 0.6s var(--ease-out);
  box-shadow: 0 -20px 40px rgba(0, 0, 0, 0.18);
}
.cookie-banner.is-open { transform: translate3d(0, 0, 0); }

.cookie-banner__inner {
  max-width: var(--wrap);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px 32px;
  flex-wrap: wrap;
}
.cookie-banner__text {
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.cookie-banner__text a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.cookie-banner__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
/* no banner preto, o botão preto desapareceria — usa-se âmbar e outline branco */
.cookie-banner .btn--outline {
  --btn-fg: var(--white);
  box-shadow: inset 0 0 0 1px var(--white-20);
}

.cookie-prefs {
  max-width: var(--wrap);
  margin: 24px auto 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.cookie-prefs.is-open { display: flex; }
.cookie-prefs label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.75);
}
.cookie-prefs input { margin-top: 4px; accent-color: var(--amber); }
.cookie-prefs strong { color: var(--white); font-weight: 500; }

/* ---------- 23. Páginas legais ---------- */
.legal { padding-block: calc(var(--header-h) + 88px) 96px; }
.legal__meta {
  margin-bottom: 48px;
  color: var(--ink-40);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.legal h2 {
  margin: 56px 0 16px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}
.legal h3 {
  margin: 32px 0 12px;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1.05rem;
}
.legal p,
.legal li { color: var(--ink-60); line-height: 1.75; }
.legal p + p { margin-top: 14px; }
.legal ul {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal ul li { position: relative; padding-left: 22px; }
.legal ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 11px;
  width: 8px; height: 1px;
  background: var(--amber);
}
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }

.legal__table {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 14px;
}
.legal__table th,
.legal__table td {
  text-align: left;
  padding: 14px 16px 14px 0;
  border-bottom: 1px solid var(--ink-08);
  vertical-align: top;
  color: var(--ink-60);
}
.legal__table th {
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
}
.legal__scroll { overflow-x: auto; }

/* ---------- 24. Animações de revelação ---------- */
/* palavras / caracteres */
.split-word,
.split-char {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(0.4em);
  will-change: transform, opacity, filter;
}
.is-revealed .split-word,
.is-revealed .split-char {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
  transition: opacity 0.8s var(--ease-out), filter 0.8s var(--ease-out),
              transform 0.9s var(--ease-out);
  transition-delay: var(--d, 0ms);
}

/* blocos */
[data-reveal="up"],
[data-reveal="fade"] {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal="fade"] { transform: none; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* Imagens com máscara.
   A revelação é feita movendo a imagem dentro de um contentor com
   overflow:hidden — e NÃO com clip-path no próprio elemento observado.
   O Chrome calcula o intersectionRatio do IntersectionObserver já com o
   clip aplicado: com clip-path a zerar a área, o rácio é sempre 0, nunca
   chega ao threshold e a imagem nunca era revelada. */
[data-reveal="mask"] { overflow: hidden; }
[data-reveal="mask"] > img,
[data-reveal="mask"] > picture > img {
  transform: translateY(101%) scale(1.12);
  transition: transform 1.3s var(--ease-out);
  transition-delay: var(--d, 0ms);
  will-change: transform;
}
[data-reveal="mask"].is-revealed > img,
[data-reveal="mask"].is-revealed > picture > img {
  transform: translateY(0) scale(1);
}

/* linhas de lista */
[data-reveal="row"] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
[data-reveal="row"].is-revealed { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .split-word,
  .split-char,
  [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; }
  .cursor { display: none; }
}

/* ---------- 25. Responsivo ---------- */
@media (max-width: 1160px) {
  .nav { gap: 24px; }
  .brand img { height: 48px; }
}

@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .barbers-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
  :root { --gutter: 24px; --header-h: 80px; }

  .section { padding-block: 80px; }

  .nav-toggle { display: inline-flex; }

  .header__inner { position: relative; }
  .brand,
  .nav-toggle { position: relative; z-index: 2; }
  .brand img { height: 44px; }

  /* nav mobile: fade (nunca translateX — duplica a largura do documento) */
  .nav {
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100svh;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    background: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
    z-index: 1;
  }
  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.35s var(--ease), visibility 0s linear 0s;
  }
  .nav__link { font-size: 14px; letter-spacing: 0.24em; }

  .header__cta { display: none; }

  /* no mobile a foto passa para cima da lista */
  .spec__grid { grid-template-columns: 1fr; gap: 40px; }
  .spec__grid > div:first-child { order: 2; }
  .spec__media { order: 1; aspect-ratio: 4 / 5; }
  .spec__sticky { min-height: auto; position: static; padding-block: 64px; }

  .about-intro,
  .loc__grid { grid-template-columns: 1fr; gap: 40px; }
  .values { grid-template-columns: 1fr; gap: 40px; }

  /* a colagem mantém as sobreposições, só fica mais alta para as fotos respirarem */
  .collage,
  .collage--about { aspect-ratio: 3 / 4; column-gap: 12px; }

  .about-hero__media { aspect-ratio: 16 / 10; margin-top: 40px; }
  .about-hero__text { margin-top: 40px; }

  .treat-grid { grid-template-columns: 1fr; column-gap: 0; }
  .treat-block { padding-block: 48px; }

  .list-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; padding-bottom: 48px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 12px; }
  .barber__book { transform: translateY(0); position: static; margin-top: 12px; }

  .cookie-banner__inner { flex-direction: column; align-items: flex-start; }
  .cookie-banner .btn { flex: 1 1 auto; }
}

@media (max-width: 620px) {
  .barbers-grid { grid-template-columns: 1fr; }
  .loc__media { grid-template-columns: 1fr; }
  .loc__media figure:nth-child(2) { margin-top: 0; }
  .price-row { padding-block: 20px; }
  .video { height: 68svh; }
  .cookie-banner { padding: 20px 20px 24px; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { width: 100%; }
}
