/* =============================================================
   AURA — Estúdio de Beleza, Braga
   Folha de estilo única. Editorial, assimétrico, sem framework.

   Índice
   0.  Tokens (custom properties)
   1.  Reset & base
   2.  Tipografia
   3.  Layout / utilitários
   4.  Placeholders de imagem (duotone, para trocar por fotos reais)
   5.  Navegação
   6.  Hero
   7.  Marquee
   8.  Serviços
   9.  Sobre / Filosofia
   10. Galeria
   11. Testemunhos
   12. Marcação
   13. Footer
   14. Botões & links
   15. Animações de revelação
   16. Responsivo (< 768px)
   17. Preferências (reduced-motion)
   ============================================================= */

/* -------------------------------------------------------------
   0. TOKENS
   Paleta fechada: papel off-white, tinta verde-escuro,
   um único acento em dourado queimado (usado com parcimónia).
   ------------------------------------------------------------- */
:root {
  /* Cor — off-white quente, tinta ameixa, acento mauve/rosé */
  --paper:      #FAF7F5;  /* base off-white quente */
  --paper-2:    #F4EDEB;  /* off-white rosado p/ alternância */
  --ink:        #2D2528;  /* ameixa-quase-preto: contraste e texto */
  --ink-soft:   #5C4F53;  /* texto secundário sobre papel */
  --ink-mute:   #8B7D81;  /* legendas, metadados */
  --mauve:      #9E7B7E;  /* acento — mauve/rosé */
  --mauve-deep: #8A686C;  /* botões e hover (AA com texto branco) */
  --mauve-soft: #B4949A;  /* acento claro, decorativo */
  --line:       rgba(45, 37, 40, 0.12); /* filetes sobre papel */
  --line-dark:  rgba(250, 247, 245, 0.18); /* filetes sobre tinta */

  /* Forma — tudo suave: raios grandes, sombras difusas */
  --r-media: 24px;
  --r-card:  20px;
  --shadow-card: 0 30px 60px -25px rgba(45, 37, 40, 0.18);
  --shadow-btn:  0 14px 30px -12px rgba(158, 123, 126, 0.55);

  /* Tipos */
  --serif:  "Playfair Display", Georgia, "Times New Roman", serif;
  --script: "Dancing Script", "Snell Roundhand", cursive;
  --sans:   "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala tipográfica fluida */
  --t-hero: clamp(2.75rem, 6.6vw, 5.25rem);
  --t-h2:   clamp(2.2rem, 6vw, 4.75rem);
  --t-h3:   clamp(1.55rem, 3vw, 2.35rem);
  --t-lead: clamp(1.15rem, 1.6vw, 1.4rem);
  --t-body: clamp(1rem, 1.05vw, 1.1rem);
  --t-small: 0.8125rem;
  --t-micro: 0.72rem;

  /* Ritmo */
  --section-y: clamp(5.5rem, 13vh, 10rem);
  --gutter:    clamp(1.25rem, 5vw, 5rem);
  --maxw:      1320px;

  /* Movimento — curvas fortes, intencionais */
  --ease:    cubic-bezier(0.23, 1, 0.32, 1);   /* ease-out para entradas */
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);  /* movimento em ecrã */
  --dur:  0.55s;
}

/* -------------------------------------------------------------
   1. RESET & BASE
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

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

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* clip (não hidden) evita que o body vire contentor de scroll */
  overflow-x: clip;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Grão de filme sobre toda a página — textura editorial, custo GPU nulo
   (camada fixa, pointer-events none, nunca repinta com o scroll) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

/* Selecção */
::selection { background: var(--mauve); color: var(--paper); }

/* Foco visível — anel dourado, acessível */
:focus-visible {
  outline: 2px solid var(--mauve);
  outline-offset: 3px;
  border-radius: 1px;
}

/* Link de salto (acessibilidade) */
.skip-link {
  position: absolute;
  left: 1rem; top: -3rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* -------------------------------------------------------------
   2. TIPOGRAFIA
   ------------------------------------------------------------- */
h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.015em;
  /* folga p/ descidas em itálico (y g j p q) */
  padding-bottom: 0.06em;
}
h1 em, h2 em, h3 em { font-style: italic; font-weight: 500; }

.h2 { font-size: var(--t-h2); }
.h3 { font-size: var(--t-h3); line-height: 1.08; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 46ch;
}

.eyebrow {
  font-family: var(--sans);
  font-size: var(--t-micro);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mauve);
  font-weight: 500;
}

.body-copy { max-width: 60ch; color: var(--ink-soft); }
.body-copy p + p { margin-top: 1.1em; }

/* -------------------------------------------------------------
   3. LAYOUT / UTILITÁRIOS
   ------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-y); }

/* Blocos de tema — a página alterna papel/tinta de forma deliberada */
.on-ink {
  background: var(--ink);
  color: var(--paper);
}
.on-ink .lead,
.on-ink .body-copy { color: rgba(245, 242, 237, 0.72); }
.on-ink .eyebrow { color: var(--mauve); }
.on-paper-2 { background: var(--paper-2); }

/* Cabeçalho de secção reutilizável */
.sec-head { max-width: 30ch; }
.sec-head .h2 { margin-top: 0.5rem; }

/* -------------------------------------------------------------
   4. PLACEHOLDERS DE IMAGEM
   Superfícies duotone com rácio fixo e etiqueta discreta.
   Trocar por <img> reais mais tarde — o rácio mantém o layout.
   ------------------------------------------------------------- */
.ph {
  position: relative;
  overflow: hidden;
  background: #E7D8D6;
  isolation: isolate;
  border-radius: var(--r-media);
}
.ph::before { /* duotone base */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(180,148,154,0.45), rgba(250,247,245,0) 55%),
    linear-gradient(210deg, #E2CFCC 20%, #C9ABA9 100%);
  z-index: -2;
}
.ph::after { /* grão/textura subtil */
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(245,242,237,0.05) 1px, transparent 1px);
  background-size: 4px 4px;
  z-index: -1;
  opacity: 0.6;
}
.ph .ph-label {
  position: absolute;
  left: 1rem; bottom: 0.9rem;
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245, 242, 237, 0.66);
  transition: opacity var(--dur) var(--ease);
}

/* Fotografia real dentro da moldura .ph — o gradiente por baixo
   funciona como fundo de carregamento (sem flash branco). */
.ph > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Variantes duotone */
.ph--gold::before {
  background:
    linear-gradient(135deg, rgba(196,160,122,0.5), rgba(250,247,245,0) 60%),
    linear-gradient(200deg, #EBD8CF 10%, #D9BBA9 120%);
}
.ph--pale::before {
  background:
    linear-gradient(140deg, rgba(180,148,154,0.3), rgba(250,247,245,0) 55%),
    linear-gradient(210deg, #F0E3E0 0%, #DCC5C2 100%);
}

/* Rácios fixos */
.r-portrait  { aspect-ratio: 3 / 4; }
.r-tall      { aspect-ratio: 4 / 5; }
.r-landscape { aspect-ratio: 4 / 3; }
.r-wide      { aspect-ratio: 16 / 10; }
.r-square    { aspect-ratio: 1 / 1; }

/* -------------------------------------------------------------
   5. NAVEGAÇÃO
   Uma linha no desktop, altura contida.
   ------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease),
              transform 0.35s var(--ease);
}
.nav[data-scrolled="true"] { border-bottom-color: var(--line); }
/* esconde ao descer, reaparece ao subir — mais ecrã para o conteúdo */
.nav[data-hidden="true"] { transform: translateY(-100%); }
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.32em;
  line-height: 1;
  text-transform: uppercase;
}
.brand span { color: var(--mauve); }
.brand small {
  display: block;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.4em;
  color: var(--ink-mute);
  margin-top: 0.35rem;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.5vw, 2.5rem);
}
.nav__links a {
  font-size: 0.9rem;
  color: var(--ink-soft);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1px;
  background: var(--mauve);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }

.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 40px; height: 40px;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 15px; }
.nav__toggle span:nth-child(2) { top: 23px; }
.nav[data-open="true"] .nav__toggle span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav[data-open="true"] .nav__toggle span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* -------------------------------------------------------------
   6. HERO
   Split com fotografia recortada por curva côncava (clipPath SVG
   no desktop, arco raso no telemóvel). Conteúdo à esquerda, cartão
   de marcação a flutuar sobre a imagem.
   ------------------------------------------------------------- */
.hero { position: relative; overflow: clip; }

/* Fotografia */
.hero__media {
  position: relative;
  height: min(54vh, 480px);
}
.hero__photo {
  position: absolute;
  inset: 0;
  clip-path: ellipse(145% 100% at 50% 0%);
}
.hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* revela por fade + assenta de scale(1.07) → 1 */
.js .hero__photo[data-reveal] { transform: none; }
.js .hero__photo img { scale: 1.07; transition: scale 1.5s var(--ease); }
.js .hero__photo.is-in img { scale: 1; }

/* Néon sobre a fotografia */
.hero__neon {
  position: absolute;
  right: clamp(1rem, 3.5vw, 3rem);
  top: clamp(3rem, 9vh, 5.5rem);
  z-index: 2;
  max-width: 250px;
  text-align: right;
  isolation: isolate;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.4;
  color: #FFF7F2;
  text-shadow:
    0 0 4px rgba(255, 255, 255, 0.9),
    0 0 14px rgba(255, 196, 170, 0.9),
    0 0 34px rgba(255, 158, 128, 0.65),
    0 0 60px rgba(255, 140, 110, 0.4);
}
.hero__neon .script {
  font-family: var(--script);
  font-style: normal;
  font-size: 1.6em;
}
/* halo escuro suave por trás do néon — legível sobre zonas claras */
.hero__neon::before {
  content: "";
  position: absolute;
  inset: -2rem -2.5rem;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(74, 48, 44, 0.42), transparent 75%);
  filter: blur(6px);
  border-radius: 50%;
}

/* Coluna de conteúdo */
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(1.75rem, 4vh, 3rem);
  padding-bottom: clamp(2.5rem, 6vh, 4rem);
}
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--mauve);
}
.hero__eyebrow svg { width: 16px; height: 16px; flex: none; }
.hero__title {
  margin-top: 0.9rem;
  font-size: clamp(2.9rem, 4.8vw, 4.2rem);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
}
.hero__title .script {
  display: inline-block;
  font-family: var(--script);
  font-weight: 600;
  font-size: 1.12em;
  color: var(--mauve);
  rotate: -2deg;
  padding-top: 0.05em;
}
.hero__lead {
  margin-top: 1.4rem;
  max-width: 44ch;
  color: var(--ink-soft);
}
.hero__cta {
  margin-top: 1.9rem;
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
/* primário com círculo-seta dentro do pill */
.btn--hero { padding: 0.5rem 0.55rem 0.5rem 1.7rem; gap: 0.9rem; }
.btn__circle {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--mauve-deep);
  display: grid;
  place-items: center;
  transition: translate 0.25s var(--ease);
}
.btn__circle svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) {
  .btn--hero:hover .btn__circle { translate: 2px 0; }
}
/* fantasma com play */
.hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.hero__play {
  width: 44px; height: 44px;
  border: 1px solid rgba(45, 37, 40, 0.25);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: translate 0.25s var(--ease), border-color 0.25s var(--ease),
              color 0.25s var(--ease);
}
.hero__play svg { width: 14px; height: 14px; margin-left: 2px; }
.hero__ghost:hover { color: var(--mauve-deep); }
.hero__ghost:hover .hero__play {
  translate: 0 -2px;
  border-color: var(--mauve);
  color: var(--mauve-deep);
}

/* Cartão de estatísticas */
.hero__stats {
  margin-top: 1.9rem;
  max-width: 560px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #fff;
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 0.5rem;
}
.hero__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  text-align: center;
  padding-inline: 0.75rem;
}
.hero__stat + .hero__stat { border-left: 1px solid var(--line); }
.hero__stat svg { width: 20px; height: 20px; color: var(--mauve); }
.hero__stat b {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.65rem, 2.4vw, 2.15rem);
  color: var(--ink);
  line-height: 1.1;
}
.hero__stat span { font-size: 0.68rem; color: var(--ink-mute); }

/* Barra de confiança */
.hero__trust {
  margin-top: 1.4rem;
  width: fit-content;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.1rem;
  background: color-mix(in srgb, var(--mauve) 86%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 999px;
  padding: 0.8rem 1.3rem;
}
.hero__trust span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 500;
  white-space: nowrap;
}
.hero__trust svg { width: 14px; height: 14px; opacity: 0.85; flex: none; }

/* Cartão de marcação flutuante */
.hero__booking {
  width: min(340px, calc(100% - 2rem));
  margin: 2rem auto 0;
  background: #fff;
  border-radius: 24px;
  box-shadow: var(--shadow-card);
  padding: 1.35rem;
}
.bk__head { display: flex; gap: 1rem; }
.bk__lead { width: 122px; flex: none; }
.bk__icon {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(158, 123, 126, 0.12);
  color: var(--mauve);
  display: grid;
  place-items: center;
}
.bk__icon svg { width: 17px; height: 17px; }
.bk__lead h3 {
  margin-top: 0.65rem;
  font-size: 1.08rem;
  line-height: 1.15;
  font-weight: 500;
}
.bk__lead p { margin-top: 0.35rem; font-size: 0.68rem; line-height: 1.4; color: var(--ink-mute); }
.bk__cal { flex: 1; min-width: 0; }
.bk__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}
.bk__nav b { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; }
.bk__nav .chev {
  color: rgba(45, 37, 40, 0.35);
  display: grid;
  place-items: center;
  padding: 2px;
}
.bk__nav svg { width: 14px; height: 14px; }
.bk__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  row-gap: 2px;
  text-align: center;
}
.bk__grid .wd {
  font-size: 0.52rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
  padding-bottom: 2px;
}
.bk__grid .day {
  width: 18px; height: 18px;
  margin-inline: auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  color: var(--ink-soft);
}
.bk__grid .day.on { background: var(--mauve); color: #fff; font-weight: 600; }
.hero__booking .btn {
  width: 100%;
  justify-content: center;
  margin-top: 0.9rem;
  padding: 0.7rem 1rem;
  font-size: 0.78rem;
}

/* Desktop: fotografia à direita com curva, conteúdo por cima */
@media (min-width: 961px) {
  .hero__media {
    position: absolute;
    inset: 0 0 0 auto;
    width: 58%;
    height: auto;
  }
  .hero__photo { clip-path: url(#heroCurve); }
  .hero__inner {
    min-height: calc(100svh - 68px);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .hero__intro { max-width: 47%; }
  /* a barra pode estender-se para lá da coluna, sob a curva da foto */
  .hero__trust { width: max-content; flex-wrap: nowrap; }
  .hero__booking {
    position: absolute;
    right: clamp(1.5rem, 4.5vw, 4.5rem);
    bottom: clamp(1.5rem, 4vh, 2.75rem);
    margin: 0;
    z-index: 3;
  }
}

/* -------------------------------------------------------------
   7. MARQUEE (uma vez na página)
   ------------------------------------------------------------- */
/* Banda escura ligeiramente inclinada — quebra a grelha de propósito.
   O wrapper esconde os cantos que a rotação expõe. */
.marquee-band {
  overflow: hidden;
  padding-block: clamp(1.5rem, 3.5vh, 2.75rem);
}
.marquee {
  background: var(--mauve);
  padding-block: clamp(1rem, 2.5vh, 1.5rem);
  overflow: hidden;
  transform: rotate(-1.6deg);
  width: 104%;
  margin-left: -2%;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: slide 34s linear infinite;
}
.marquee__track span {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3.5vw, 2.6rem);
  color: #fff;
  white-space: nowrap;
}
.marquee__track .sep { color: rgba(255, 255, 255, 0.55); font-style: italic; }
@keyframes slide {
  to { transform: translateX(-50%); }
}
.marquee:hover .marquee__track { animation-play-state: paused; }

/* -------------------------------------------------------------
   8. SERVIÇOS
   Três categorias em arranjo assimétrico + listas de preços.
   ------------------------------------------------------------- */
.services__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 6vh, 5rem);
}
.services__head .h2 { max-width: 12ch; }
.services__head p { max-width: 34ch; justify-self: start; }

.service {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(2.5rem, 6vh, 4.5rem);
  border-top: 1px solid var(--line);
}
/* Arranjo alternado e assimétrico */
.service--a { grid-template-columns: 0.9fr 1.1fr; }
.service--b { grid-template-columns: 1.1fr 0.9fr; }
.service--b .service__media { order: -1; }
.service--c { grid-template-columns: 1fr 1fr; }

.service__media .ph { width: 100%; }
.service--a .service__media { padding-right: clamp(0, 4vw, 3rem); }
.service--c .service__media { padding-inline: clamp(0, 5vw, 4rem); }

.service__num {
  font-family: var(--serif);
  font-style: italic;
  color: var(--mauve);
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
  display: block;
}
.service__body .h3 { margin-bottom: 0.9rem; }
.service__body > p { max-width: 42ch; color: var(--ink-soft); }

/* Lista de preços */
.pricelist { margin-top: 1.75rem; }
.pricelist li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding-block: 0.7rem;
  border-bottom: 1px solid var(--line);
}
@media (hover: hover) and (pointer: fine) {
  .pricelist li { transition: transform 0.3s var(--ease); }
  .pricelist li:hover { transform: translateX(6px); }
}
.pricelist .name { font-weight: 500; color: var(--ink); }
.pricelist .lead-dots {
  flex: 1;
  border-bottom: 1px dotted var(--line);
  transform: translateY(-3px);
}
.pricelist .price { font-variant-numeric: tabular-nums; color: var(--ink-soft); white-space: nowrap; }
.pricelist .price b { color: var(--mauve); font-weight: 500; }

/* -------------------------------------------------------------
   9. SOBRE / FILOSOFIA (secção em tinta, imagem sobreposta)
   ------------------------------------------------------------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media .ph { width: 100%; }
/* segunda imagem sobreposta e deslocada */
.about__media .ph--float {
  position: absolute;
  width: 46%;
  right: -8%;
  bottom: -14%;
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}
.about__body .h2 { margin-bottom: 1.5rem; max-width: 16ch; }
.about__sign {
  margin-top: 2rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--mauve);
}
.about__sign small {
  display: block;
  font-family: var(--sans);
  font-style: normal;
  font-size: var(--t-small);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.6);
  margin-top: 0.4rem;
}

/* Deriva subtil da imagem sobreposta ligada ao scroll — CSS puro,
   corre fora da main thread; só onde o browser suporta view() */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .about__media .ph--float {
      animation: float-drift linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
    @keyframes float-drift {
      from { translate: 0 1.75rem; }
      to   { translate: 0 -1.75rem; }
    }
  }
}

/* -------------------------------------------------------------
   9b. ANTES / DEPOIS — comparador interativo (assinatura da página)
   Duas camadas sobrepostas; a de cima é recortada por clip-path
   na posição --pos. Range invisível por cima dá arrasto + teclado.
   ------------------------------------------------------------- */
.ba__grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.ba__body .h2 { margin-bottom: 1.25rem; }
.ba__body .body-copy { max-width: 36ch; }
.ba__hint {
  margin-top: 1.5rem;
  font-size: var(--t-small);
  color: var(--ink-mute);
}

.ba__frame {
  position: relative;
  overflow: hidden;
  --pos: 50%;
}
.ba__frame .ph { position: absolute; inset: 0; }

/* "Antes": campa desaturada e plana — o filtro exagera a diferença */
.ba__before::before {
  background:
    linear-gradient(150deg, rgba(139,125,129,0.5), rgba(45,37,40,0) 60%),
    linear-gradient(210deg, #B5A8A6 0%, #8F8280 100%) !important;
  filter: saturate(0.35);
}
.ba__before > img { filter: saturate(0.28) contrast(0.9) brightness(0.85) sepia(0.12); }
/* "Depois": quente, rico, dourado — recortado à direita do cursor */
.ba__after { clip-path: inset(0 0 0 var(--pos)); }

/* Linha divisória + punho */
.ba__handle {
  position: absolute;
  top: 0; bottom: 0;
  left: var(--pos);
  width: 1px;
  background: var(--paper);
  z-index: 2;
}
.ba__knob {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--paper);
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
/* setas do punho: dois triângulos geométricos em CSS */
.ba__knob::before, .ba__knob::after {
  content: "";
  width: 0; height: 0;
  border-block: 5px solid transparent;
  position: absolute;
}
.ba__knob::before { left: 9px;  border-right: 6px solid var(--ink); }
.ba__knob::after  { right: 9px; border-left: 6px solid var(--ink); }

/* O range cobre a moldura toda: arrasto natural + acessível por teclado */
.ba__range {
  position: absolute;
  inset: 0;
  z-index: 3;
  width: 100%; height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y; /* arrasto horizontal = comparar; vertical = scroll normal */
  -webkit-appearance: none;
  appearance: none;
}
/* anel de foco visível na moldura quando o range é focado por teclado */
.ba__frame:has(.ba__range:focus-visible) {
  outline: 2px solid var(--mauve);
  outline-offset: 4px;
}

/* etiquetas fixas nos cantos */
.ba__tag {
  position: absolute;
  bottom: 0.9rem;
  z-index: 2;
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(245,242,237,0.85);
}
.ba__tag--antes  { left: 1rem; }
.ba__tag--depois { right: 1rem; }

/* -------------------------------------------------------------
   10. GALERIA (grelha irregular, hover duotone)
   ------------------------------------------------------------- */
.gallery__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: clamp(2rem, 5vh, 3.5rem);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  /* altura de linha explícita (não 1fr): igual em Chrome e Safari */
  grid-auto-rows: clamp(260px, 36vw, 520px);
  gap: clamp(0.75rem, 1.5vw, 1.25rem);
}
/* colocação irregular */
.gallery__grid .g1 { grid-column: span 5; }
.gallery__grid .g2 { grid-column: span 4; }
.gallery__grid .g3 { grid-column: span 3; }
.gallery__grid .g4 { grid-column: span 4; }
.gallery__grid .g5 { grid-column: span 5; }
.gallery__grid .g6 { grid-column: span 3; }

.gallery__grid .ph {
  width: 100%;
  height: 100%;
  aspect-ratio: auto; /* a linha da grelha define a altura; sem conflito no Safari */
}

/* hover duotone: zoom interno (a moldura não mexe) + cor revelada.
   Gated: só em dispositivos com cursor, nunca no toque. */
@media (hover: hover) and (pointer: fine) {
  .gallery__grid .ph { cursor: pointer; }
  .gallery__grid .ph::before,
  .gallery__grid .ph > img {
    transition: transform 0.8s var(--ease), filter 0.8s var(--ease);
  }
  .gallery__grid .ph:hover::before,
  .gallery__grid .ph:hover > img {
    transform: scale(1.06);
    filter: saturate(1.15) brightness(1.06);
  }
  .gallery__grid .ph:hover .ph-label { opacity: 0; }
}

/* -------------------------------------------------------------
   11. TESTEMUNHOS (estático, três, elegante)
   ------------------------------------------------------------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
}
.quote { display: flex; flex-direction: column; gap: 1.5rem; }
.quote:nth-child(2) { transform: translateY(clamp(0px, 4vh, 2.5rem)); } /* desvio editorial */
.quote__mark {
  font-family: var(--serif);
  font-style: italic;
  font-size: 3rem;
  line-height: 0.6;
  color: var(--mauve);
}
.quote blockquote {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 1.7vw, 1.5rem);
  line-height: 1.3;
  color: var(--ink);
}
.quote figcaption {
  font-size: var(--t-small);
  color: var(--ink-mute);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.quote figcaption b { color: var(--ink); font-weight: 500; display: block; }

/* -------------------------------------------------------------
   12. MARCAÇÃO (CTA em tinta: telefone, WhatsApp, horário)
   ------------------------------------------------------------- */
.booking__grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.booking__title { font-size: var(--t-h2); line-height: 1; margin-bottom: 1.5rem; max-width: 14ch; }
.booking__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2.25rem;
}
.booking__contact {
  margin-top: 2.5rem;
  font-size: 1.05rem;
}
.booking__contact a { color: var(--paper); border-bottom: 1px solid var(--mauve); padding-bottom: 2px; }

/* Horário */
.hours { border-top: 1px solid var(--line-dark); }
.hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--line-dark);
  font-size: 0.95rem;
}
.hours .day { color: rgba(245,242,237,0.85); }
.hours .time { color: rgba(245,242,237,0.55); font-variant-numeric: tabular-nums; }
.hours .time.closed { color: var(--mauve); }

/* -------------------------------------------------------------
   13. FOOTER
   ------------------------------------------------------------- */
.footer { padding-block: clamp(3.5rem, 7vh, 6rem) 2.5rem; }
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line);
}
.footer__brand { font-family: var(--serif); font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 0.9; }
.footer__brand span { color: var(--mauve); }
.footer h4 {
  font-family: var(--sans);
  font-size: var(--t-micro);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 1rem;
}
.footer address { font-style: normal; color: var(--ink-soft); line-height: 1.9; }
.footer__col a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--mauve); }
.footer__col li { padding-block: 0.3rem; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 2rem;
  font-size: var(--t-small);
  color: var(--ink-mute);
}
.footer__bottom a { border-bottom: 1px solid var(--line); }
.footer__bottom a:hover { color: var(--mauve); border-color: var(--mauve); }

/* -------------------------------------------------------------
   14. BOTÕES & LINKS
   Sistema de forma: cantos rectos (radius 0). Acento = dourado.
   ------------------------------------------------------------- */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.9rem 1.7rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: transform 0.2s var(--ease), color 0.3s var(--ease),
              border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
/* feedback físico ao premir */
.btn:active { transform: scale(0.97); }

/* Camada de preenchimento: varre da esquerda via clip-path (só transform/clip,
   nunca layout). Fica atrás do texto graças ao isolation + z-index. */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.38s var(--ease);
}

/* Primário: pill mauve, texto branco (contraste AA); hover enche a tinta */
.btn--primary { background: var(--mauve-deep); color: #fff; box-shadow: var(--shadow-btn); }
.btn--primary::before { background: var(--ink); }

/* Secundário sobre papel: contorno tinta */
.btn--ghost { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--ghost::before { background: var(--ink); }

/* Sobre tinta: contorno claro, enche a papel */
.on-ink .btn--ghost { border-color: rgba(245,242,237,0.5); color: var(--paper); }
.on-ink .btn--ghost::before { background: var(--paper); }

/* Hover só em dispositivos com cursor real (evita estados presos no toque) */
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); }
  .btn:hover::before { clip-path: inset(0 0 0 0); }
  .btn--primary:hover { color: var(--paper); }
  .btn--ghost:hover { color: var(--paper); }
  .on-ink .btn--ghost:hover { color: var(--ink); border-color: var(--paper); }
  .btn:hover .arw { transform: translateX(2px); }
}

.btn .arw { transition: transform 0.25s var(--ease); }

/* Link com seta */
.link-arw {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  color: var(--ink);
  border-bottom: 1px solid var(--mauve);
  padding-bottom: 3px;
}
.on-ink .link-arw { color: var(--paper); }
.link-arw .arw { transition: transform 0.25s var(--ease); }
.link-arw:hover .arw { transform: translateX(4px); }

/* -------------------------------------------------------------
   15. ANIMAÇÕES DE REVELAÇÃO (clip-path + fade, via IntersectionObserver)
   Estado inicial só quando o JS marca <html class="js">.
   ------------------------------------------------------------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* Revelação de imagem por clip-path.
   O recorte vive nos FILHOS: um elemento totalmente recortado tem
   interseção 0 no IntersectionObserver e nunca seria revelado. */
.js [data-reveal="clip"] { opacity: 1; transform: none; }
.js [data-reveal="clip"] > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="clip"].is-in > * { clip-path: inset(0 0 0 0); }

/* -------------------------------------------------------------
   16. RESPONSIVO (< 768px) — mobile-first no espírito, colapso explícito
   ------------------------------------------------------------- */
@media (max-width: 960px) {
  .ba__grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .about__grid { grid-template-columns: 1fr; }
  .about__media .ph--float { position: relative; width: 60%; right: 0; bottom: 0; margin-top: -12%; margin-left: auto; }
  .booking__grid { grid-template-columns: 1fr; }
  .service--a, .service--b, .service--c { grid-template-columns: 1fr; }
  .service--b .service__media { order: 0; }
  .quotes { grid-template-columns: 1fr; }
  .quote:nth-child(2) { transform: none; }
}

@media (max-width: 768px) {
  /* Navegação → menu de painel */
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed;
    inset: 68px 0 auto 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    padding: 0.5rem var(--gutter) 1.5rem;
    transform: translateY(-120%);
    transition: transform 0.4s var(--ease);
  }
  .nav[data-open="true"] .nav__links { transform: translateY(0); }
  .nav__links a { width: 100%; padding-block: 0.9rem; border-bottom: 1px solid var(--line); font-size: 1.1rem; }
  .nav__links .btn { margin-top: 1rem; width: 100%; justify-content: center; }

  .services__head { grid-template-columns: 1fr; }
  .gallery__head { flex-direction: column; align-items: flex-start; }

  /* Galeria → duas colunas simples */
  .gallery__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid .g1, .gallery__grid .g2, .gallery__grid .g3,
  .gallery__grid .g4, .gallery__grid .g5, .gallery__grid .g6 { grid-column: span 1; }

  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 420px) {
  .hero__cta { gap: 0.75rem; }
  .hero__cta .btn { width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------
   17. PREFERÊNCIAS
   ------------------------------------------------------------- */
@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;
  }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .js [data-reveal="clip"] > * { clip-path: none !important; }
  .js .hero__photo img { scale: none !important; }
  .marquee__track { animation: none; }
}
