/* =========================================================
   Espaço Patrícia Ferreira · Cabeleireiro
   Editorial de luxo: marfim + preto ameixa + dourado do logo
   ========================================================= */

:root {
  --ink: #141218;
  --ink-2: #1d1a22;
  --ink-3: #2a2630;
  --ivory: #f4efe8;
  --ivory-2: #ebe3d7;
  --paper: #faf7f2;
  --gold: #c6a26a;
  --gold-soft: #dcc39a;
  --gold-deep: #85652f;
  --text: #1b1820;
  --muted: #6b645c;
  --muted-light: #a39d97;
  --line: rgba(27, 24, 32, .14);
  --line-light: rgba(244, 239, 232, .16);

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

  --ease: cubic-bezier(.77, 0, .175, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --gutter: clamp(1rem, 4vw, 3.5rem);
  --header-h: 84px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul { list-style: none; }
em { font-style: italic; }
::selection { background: var(--gold); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; border-radius: 4px; }

.container { width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Tipografia partilhada ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .9rem;
  font-size: .72rem; font-weight: 600; letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 1.6rem;
}
.eyebrow .line { width: 2.6rem; height: 1px; background: currentColor; display: inline-block; }
.eyebrow--light { color: var(--gold); }

.section-title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: .98; letter-spacing: -.02em;
  color: var(--text);
}
.section-title em { color: var(--gold-deep); font-weight: 300; }
.section-title--light { color: var(--ivory); }
.section-title--light em { color: var(--gold); }

/* ---------- Botões ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 3.4rem; padding: 0 2rem; border-radius: 999px;
  font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease-out), border-color .5s;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
  transform: translateY(101%); transition: transform .6s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn--small { height: 2.8rem; padding: 0 1.4rem; font-size: .7rem; }

.btn-primary { background: var(--gold); color: var(--ink); }
.btn-primary::before { background: var(--ivory); }
.btn-ghost { border: 1px solid rgba(244, 239, 232, .4); color: var(--ivory); }
.btn-ghost::before { background: var(--ivory); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ivory); }
.btn-dark { background: var(--ink); color: var(--ivory); }
.btn-dark::before { background: var(--gold); }
.btn-dark:hover { color: var(--ink); }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-3%, 2%); }
  40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); }
  80% { transform: translate(3%, 3%); }
}

/* ---------- Preloader ---------- */
.preloader { display: none; }
.js .preloader {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 200; pointer-events: all;
}
.preloader__panel { position: absolute; left: 0; right: 0; height: 50.5%; background: var(--ink); z-index: 0; }
.preloader__panel--top { top: 0; }
.preloader__panel--bottom { bottom: 0; }
.preloader__inner { position: relative; z-index: 1; width: 180px; height: 180px; display: grid; place-items: center; }
.preloader__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.preloader__ring circle { fill: none; stroke: var(--gold); stroke-width: .8; stroke-dasharray: 580; stroke-dashoffset: 580; }
.preloader__ring circle:nth-child(2) { stroke-width: .4; opacity: .6; }
.preloader__mark { font-family: var(--serif); font-style: italic; font-size: 5.2rem; line-height: 1; color: var(--gold); opacity: 0; }
.preloader__count {
  position: absolute; bottom: -3.2rem; left: 50%; transform: translateX(-50%);
  font-size: .7rem; letter-spacing: .3em; color: var(--muted-light); font-variant-numeric: tabular-nums;
}

/* ---------- Bolha contextual (só sobre a galeria e o slider) ---------- */
.bubble { display: none; }
@media (pointer: fine) {
  .bubble { display: block; position: fixed; top: 0; left: 0; z-index: 150; pointer-events: none; width: 0; height: 0; }
  .bubble__label {
    position: absolute; left: -42px; top: -42px; width: 84px; height: 84px; border-radius: 50%;
    display: grid; place-items: center; background: var(--gold); color: var(--ink);
    font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; font-weight: 600;
    transform: scale(0); transition: transform .45s var(--ease-out);
  }
  .bubble.is-on .bubble__label { transform: scale(1); }
}

/* ---------- Barra de progresso ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 160; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-soft)); transform: scaleX(0); transform-origin: left; }
.no-preloader .preloader { display: none !important; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  color: var(--ivory);
  transition: transform .6s var(--ease-out), background .4s, height .4s;
}
.header::after {
  content: ''; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px;
  background: var(--line-light); opacity: 0; transition: opacity .4s;
}
.header.is-solid { background: rgba(20, 18, 24, .78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); height: 70px; }
.header.is-solid::after { opacity: 1; }
.header.is-hidden { transform: translateY(-100%); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 2rem; padding: 0 var(--gutter); max-width: 1500px; margin: 0 auto; }

.brand { display: flex; align-items: center; gap: .8rem; margin-right: auto; }
.brand__mark {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--gold);
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--gold); line-height: 1;
  transition: transform .8s var(--ease-out);
}
.brand:hover .brand__mark { transform: rotate(360deg); }
.brand__text { font-family: var(--serif); font-size: 1.3rem; line-height: 1; letter-spacing: .01em; display: flex; flex-direction: column; }
.brand__text small { font-family: var(--sans); font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); margin-top: .35rem; }

.nav-links { display: flex; gap: 2.2rem; }
.nav-links a { position: relative; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; opacity: .85; transition: opacity .3s; }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -.35rem; height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out);
}
.nav-links a:hover { opacity: 1; }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

.hamburger { display: none; width: 2.8rem; height: 2.8rem; position: relative; z-index: 120; }
.hamburger span { position: absolute; left: .6rem; right: .6rem; height: 1px; background: var(--ivory); transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.hamburger span:first-child { top: 1.15rem; }
.hamburger span:last-child { top: 1.65rem; }
.hamburger[aria-expanded="true"] span:first-child { top: 1.4rem; transform: rotate(45deg); }
.hamburger[aria-expanded="true"] span:last-child { top: 1.4rem; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--ink); color: var(--ivory);
  display: flex; flex-direction: column; justify-content: center; padding: 6rem var(--gutter) 3rem;
  clip-path: circle(0% at calc(100% - 2.8rem) 2.6rem);
  transition: clip-path .9s var(--ease); visibility: hidden;
}
.mobile-menu.open { clip-path: circle(150% at calc(100% - 2.8rem) 2.6rem); visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; gap: .4rem; }
.mobile-menu nav a { display: block; overflow: hidden; font-family: var(--serif); font-size: clamp(2.2rem, 9vw, 3.4rem); line-height: 1.2; }
.mm-line { display: flex; align-items: baseline; gap: 1rem; }
.mobile-menu nav a em { font-family: var(--sans); font-style: normal; font-size: .7rem; color: var(--gold); letter-spacing: .2em; }
.mobile-menu nav a:active { color: var(--gold); }
.mobile-menu__foot { margin-top: auto; display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted-light); letter-spacing: .08em; padding-top: 2rem; border-top: 1px solid var(--line-light); }
.nav-links a.is-active { opacity: 1; color: var(--gold-soft); }
.nav-links a.is-active::after { transform: scaleX(1); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  background: radial-gradient(120% 90% at 85% 10%, #2a2330 0%, var(--ink) 55%);
  color: var(--ivory);
  display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 2rem;
  padding: calc(var(--header-h) + 3rem) var(--gutter) 5rem;
  overflow: hidden;
}
.hero__copy { position: relative; z-index: 2; max-width: 52rem; }
.hero__eyebrow { color: var(--gold); }
.hero__title {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.4rem, 9vw, 9.6rem); line-height: .9; letter-spacing: -.03em;
  margin-bottom: 2.2rem;
}
.hero__line { display: block; }
.hero__line em { color: var(--gold); font-weight: 300; padding-left: .6em; }
.hero__lead { max-width: 30rem; color: rgba(244, 239, 232, .72); font-size: 1.02rem; margin-bottom: 2.6rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__visual { position: relative; z-index: 1; justify-self: center; width: min(100%, 30rem); }
.hero__arch {
  position: relative; aspect-ratio: 3 / 4.25; border-radius: 999px 999px 6px 6px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .7);
}
.hero__arch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(198, 162, 106, .35); }
.hero__arch img { width: 100%; height: 115%; object-fit: cover; object-position: center 30%; }
.hero__float {
  position: absolute; left: -22%; bottom: 8%; width: 42%; aspect-ratio: 1; border-radius: 50%; overflow: hidden;
  border: 6px solid var(--ink); box-shadow: 0 0 0 1px rgba(198, 162, 106, .5), 0 30px 60px -20px rgba(0, 0, 0, .8);
}
.hero__float img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute; right: -9%; top: 6%; width: 9.5rem; height: 9.5rem;
  animation: spin 22s linear infinite;
}
.hero__badge text { fill: var(--gold); font-family: var(--sans); font-size: 10.4px; letter-spacing: 3.2px; text-transform: uppercase; font-weight: 500; }
@keyframes spin { to { transform: rotate(360deg); } }
.js .hero__badge { animation: none; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.6rem; width: 1px; height: 4rem; background: rgba(244, 239, 232, .18); overflow: hidden;
}
.hero__scroll span { position: absolute; inset: 0; background: var(--gold); animation: scrollLine 2.2s var(--ease) infinite; }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- Marquee ---------- */
.marquee { background: var(--gold); color: var(--ink); overflow: hidden; padding: 1.4rem 0; border-block: 1px solid rgba(20, 18, 24, .12); }
.marquee__track { display: flex; align-items: center; gap: 2.4rem; width: max-content; white-space: nowrap; animation: marquee 38s linear infinite; }
.js .marquee__track { animation: none; }
.marquee__track span { font-family: var(--serif); font-size: clamp(2rem, 4.2vw, 3.6rem); font-weight: 400; line-height: 1; }
.marquee__track i { font-style: normal; font-size: 1.1rem; opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.manifesto { padding: clamp(6rem, 14vw, 12rem) 0 clamp(5rem, 10vw, 9rem); background: var(--ivory); }
.manifesto__grid { display: grid; grid-template-columns: 1fr 3fr; gap: 2rem 4rem; }
.manifesto__text {
  font-family: var(--serif); font-weight: 300;
  font-size: clamp(1.9rem, 3.9vw, 3.6rem); line-height: 1.18; letter-spacing: -.01em; color: var(--text);
}
.manifesto__pillars { grid-column: 2; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: clamp(3rem, 6vw, 5rem); padding-top: 2.5rem; border-top: 1px solid var(--line); }
.manifesto__pillars .num { font-family: var(--serif); font-style: italic; color: var(--gold-deep); font-size: 1.4rem; display: block; margin-bottom: .8rem; }
.manifesto__pillars h3 { font-family: var(--serif); font-weight: 500; font-size: 1.55rem; line-height: 1.1; margin-bottom: .7rem; }
.manifesto__pillars p { color: var(--muted); font-size: .95rem; }

/* ---------- Galeria ---------- */
.gallery { background: var(--ink); color: var(--ivory); position: relative; }
.gallery__pin {
  min-height: 100vh; display: flex; align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding: 6rem 0 6rem var(--gutter); overflow: hidden;
}
.gallery__head { flex: 0 0 clamp(17rem, 27vw, 26rem); }
@media (min-width: 901px) {
  .js .gallery__pin { padding-left: 0; }
  .js .gallery__head {
    align-self: stretch; display: flex; flex-direction: column; justify-content: center;
    flex-basis: calc(clamp(17rem, 27vw, 26rem) + var(--gutter));
    padding-left: var(--gutter); padding-right: 1rem;
    margin-block: -6rem; padding-block: 6rem;
    background: var(--ink); box-shadow: 3rem 0 3rem -.5rem var(--ink);
  }
}
.gallery__counter { margin-top: 2.4rem; font-size: .78rem; letter-spacing: .3em; color: var(--muted-light); font-variant-numeric: tabular-nums; }
.gallery__counter span:first-child { color: var(--gold); }
.gallery__track {
  display: flex; align-items: center; gap: clamp(1.4rem, 2.6vw, 2.6rem);
  overflow-x: auto; padding-right: var(--gutter); scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery__track::-webkit-scrollbar { display: none; }
.js .gallery__track { overflow: visible; }

.g-card { flex: 0 0 auto; width: clamp(15rem, 23vw, 22rem); scroll-snap-align: start; }
.g-card__img { position: relative; overflow: hidden; border-radius: 4px; height: 58vh; max-height: 560px; }
.g-card--tall .g-card__img { height: 70vh; max-height: 680px; border-radius: 999px 999px 4px 4px; }
.g-card--low { align-self: flex-end; }
.g-card--low .g-card__img { height: 46vh; max-height: 440px; }
.g-card__img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); transition: filter .6s; }
.g-card:hover .g-card__img img { filter: brightness(1.06); }
.g-card figcaption { display: flex; gap: .9rem; align-items: baseline; margin-top: 1rem; font-family: var(--serif); font-size: 1.35rem; font-style: italic; color: rgba(244, 239, 232, .88); }
.g-card figcaption span { font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .2em; color: var(--gold); }

.g-end {
  flex: 0 0 auto; width: clamp(15rem, 22vw, 20rem); aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(198, 162, 106, .45);
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .8rem;
  transition: background .6s var(--ease-out), color .6s;
}
.g-end:hover { background: var(--gold); color: var(--ink); }
.g-end__small { font-size: .66rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); transition: color .6s; }
.g-end:hover .g-end__small { color: var(--ink); }
.g-end__big { font-family: var(--serif); font-size: 1.7rem; line-height: 1.05; font-style: italic; }
.g-end__arrow { font-size: 1.4rem; }

.gallery__hint { margin-top: 1.6rem; font-size: .8rem; color: var(--muted-light); }
.gallery__hint::before { content: '↗ '; color: var(--gold); }
.gallery__bar { display: none; margin-top: 1.2rem; height: 1px; width: 10rem; background: var(--line-light); }
.gallery__bar span { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.js .gallery__bar { display: block; }
.g-card { cursor: zoom-in; -webkit-tap-highlight-color: transparent; }
@media (pointer: fine) { .js .g-card { cursor: none; } }
.g-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.g-card:active .g-card__img { transform: scale(.97); }
.g-card__img { transition: transform .4s var(--ease-out); }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 180; display: grid; place-items: center; }
.lightbox[hidden] { display: none; }
.lightbox__bg { position: absolute; inset: 0; background: rgba(13, 12, 16, .96); }
.lightbox__figure {
  position: relative; width: min(88vw, 34rem); height: min(80svh, 46rem);
  border-radius: 999px 999px 8px 8px; overflow: hidden; touch-action: pan-y;
}
.lightbox__img { width: 100%; height: 100%; object-fit: cover; user-select: none; -webkit-user-drag: none; }
.lightbox__ui { position: absolute; inset: 0; pointer-events: none; color: var(--ivory); }
.lightbox__ui > * { pointer-events: auto; }
.lightbox__caption {
  position: absolute; left: 50%; bottom: max(1.4rem, env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: flex; gap: 1rem; align-items: baseline; white-space: nowrap;
  font-family: var(--serif); font-style: italic; font-size: 1.4rem;
}
.lightbox__count { font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .24em; color: var(--gold); }
.lightbox__close, .lightbox__nav {
  position: absolute; width: 3.4rem; height: 3.4rem; border-radius: 50%;
  border: 1px solid var(--line-light); display: grid; place-items: center; font-size: 1.1rem;
  transition: background .3s, color .3s, border-color .3s, transform .3s var(--ease-out);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.lightbox__close:active, .lightbox__nav:active { transform: scale(.9); }
.lightbox__close { top: max(1.2rem, env(safe-area-inset-top)); right: 1.2rem; }
.lightbox__nav { top: 50%; margin-top: -1.7rem; }
.lightbox__nav--prev { left: clamp(.8rem, 4vw, 3rem); }
.lightbox__nav--next { right: clamp(.8rem, 4vw, 3rem); }
@media (max-width: 600px) {
  .lightbox__nav { top: auto; bottom: max(4.4rem, calc(env(safe-area-inset-bottom) + 3rem)); margin-top: 0; }
  .lightbox__figure { height: min(70svh, 40rem); }
}

/* ---------- Serviços ---------- */
.services { background: var(--paper); padding: clamp(6rem, 12vw, 10rem) 0; position: relative; }
.services__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(3rem, 6vw, 5rem); }
.services__head .eyebrow { margin-bottom: 0; order: 2; }
.services__list { border-top: 1px solid var(--line); }
.svc {
  position: relative; display: grid; grid-template-columns: 4.5rem 1.15fr 1fr 2.5rem; align-items: center; gap: 1.5rem;
  padding: clamp(1.4rem, 2.6vw, 2.2rem) 0; border-bottom: 1px solid var(--line); cursor: default;
  isolation: isolate;
}
.svc::before {
  content: ''; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1; background: var(--ink);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.svc__num { font-size: .72rem; letter-spacing: .2em; color: var(--gold-deep); transition: color .4s; }
.svc__name { font-family: var(--serif); font-weight: 300; font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1; letter-spacing: -.01em; transition: transform .6s var(--ease-out), color .4s; }
.svc__name em { color: var(--gold-deep); transition: color .4s; }
.svc__desc { color: var(--muted); font-size: .95rem; max-width: 26rem; transition: color .4s; }
.svc__arrow { font-size: 1.4rem; justify-self: end; transition: transform .6s var(--ease-out), color .4s; }
@media (hover: hover) {
  .svc:hover::before { transform: scaleY(1); transform-origin: top; }
  .svc:hover .svc__name { transform: translateX(1.2rem); color: var(--ivory); }
  .svc:hover .svc__name em, .svc:hover .svc__num { color: var(--gold); }
  .svc:hover .svc__desc { color: rgba(244, 239, 232, .7); }
  .svc:hover .svc__arrow { transform: rotate(-45deg); color: var(--gold); }
}
.services__foot { display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; flex-wrap: wrap; margin-top: 3rem; }
.services__foot p { color: var(--muted); max-width: 30rem; font-size: .95rem; }

.svc-preview {
  position: fixed; top: 0; left: 0; z-index: 60; width: 15rem; height: 20rem; margin: -10rem 0 0 -7.5rem;
  border-radius: 999px 999px 6px 6px; overflow: hidden; pointer-events: none;
  opacity: 0; transform: scale(.6); visibility: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6);
}
.js .svc-preview { visibility: visible; }
.svc-preview img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: none), (max-width: 900px) { .svc-preview { display: none; } }

/* serviços no mobile: a linha ativa (no centro do ecrã) acende e mostra a foto */
.svc__thumb { display: none; }
@media (max-width: 900px) {
  .js .svc__thumb {
    display: block; position: absolute; right: 2.8rem; top: 50%; z-index: 1;
    width: 4.8rem; height: 6.4rem; margin-top: -3.2rem; overflow: hidden; pointer-events: none;
    border-radius: 999px 999px 4px 4px; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .6);
    transform: scale(0) rotate(-12deg);
  }
  .svc__thumb img { width: 100%; height: 100%; object-fit: cover; }
  .js .svc__name, .js .svc__desc { padding-right: 5.2rem; }
  .svc.is-active::before { transform: scaleY(1); transform-origin: top; }
  .svc.is-active .svc__name { color: var(--ivory); transform: translateX(.5rem); }
  .svc.is-active .svc__name em, .svc.is-active .svc__num { color: var(--gold); }
  .svc.is-active .svc__desc { color: rgba(244, 239, 232, .7); }
  .svc.is-active .svc__arrow { transform: rotate(-45deg); color: var(--gold); }
}

/* ---------- Antes & Depois ---------- */
.ba { background: var(--ink-2); color: var(--ivory); padding: clamp(6rem, 12vw, 10rem) 0; overflow: hidden; }
.ba__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.ba__lead { color: rgba(244, 239, 232, .7); margin: 1.8rem 0 2.2rem; max-width: 26rem; }
.ba__tabs { display: flex; flex-wrap: wrap; gap: .6rem; }
.ba__tabs button {
  padding: .7rem 1.3rem; border-radius: 999px; border: 1px solid var(--line-light);
  font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(244, 239, 232, .75);
  transition: background .4s, color .4s, border-color .4s;
}
.ba__tabs button:hover { border-color: var(--gold); color: var(--ivory); }
.ba__tabs button.is-active { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.ba__note { margin-top: 1.6rem; font-size: .74rem; color: var(--muted-light); font-style: italic; }

.ba__slider {
  position: relative; aspect-ratio: 4 / 5; border-radius: 999px 999px 8px 8px; overflow: hidden;
  user-select: none; -webkit-user-select: none; touch-action: pan-y;
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .8), 0 0 0 1px rgba(198, 162, 106, .3);
}
.ba__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba__before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__img--before { filter: saturate(.25) brightness(.62) contrast(.88) sepia(.18); }
.ba__tag {
  position: absolute; bottom: 1.4rem; z-index: 2; padding: .45rem 1rem; border-radius: 999px;
  font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 600;
  background: rgba(20, 18, 24, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--ivory);
}
.ba__tag--before { left: 1.4rem; }
.ba__tag--after { right: 1.4rem; background: var(--gold); color: var(--ink); }
.ba__handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1px; background: var(--ivory); z-index: 3; pointer-events: none; }
.ba__handle span {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 3.6rem; height: 3.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--ivory); color: var(--ink); font-size: 1rem; letter-spacing: .1em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .4s var(--ease-out);
}
.ba__slider:hover .ba__handle span, .ba__slider.is-dragging .ba__handle span { transform: translate(-50%, -50%) scale(1.12); }
.ba__range {
  position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0;
  opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: transparent;
}
.ba__range::-webkit-slider-thumb { -webkit-appearance: none; width: 4rem; height: 100vh; cursor: ew-resize; }
.ba__range::-moz-range-thumb { width: 4rem; height: 100vh; border: 0; cursor: ew-resize; }
@media (pointer: fine) { .js .ba__range { cursor: none; } }
.ba__tabs button:active { transform: scale(.95); }

.ba__curtain {
  position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: var(--gold); display: grid; place-items: center;
  transform: scaleY(0); transform-origin: bottom;
}
.ba__curtain span { font-family: var(--serif); font-style: italic; font-size: 6rem; color: var(--ink); opacity: 0; line-height: 1; }

/* ---------- Fita de fotos ---------- */
.ribbon { display: block; background: var(--ivory); padding: clamp(4rem, 8vw, 6rem) 0 0; overflow: hidden; }
.ribbon__track { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); width: max-content; animation: marquee 50s linear infinite reverse; }
.js .ribbon__track { animation: none; }
.ribbon__track img {
  width: clamp(6.5rem, 11vw, 10rem); height: clamp(6.5rem, 11vw, 10rem); border-radius: 50%; object-fit: cover;
  transition: transform .6s var(--ease-out);
}
.ribbon:hover .ribbon__track img { transform: scale(.94); }
.ribbon__track img:nth-of-type(3n) { border-radius: 999px 999px 8px 8px; height: clamp(8rem, 14vw, 13rem); }
.ribbon__word { font-family: var(--serif); font-size: clamp(2rem, 4.5vw, 4rem); line-height: 1; white-space: nowrap; color: var(--text); padding: 0 .5rem; }
.ribbon__word em { color: var(--gold-deep); }

/* ---------- Barra de ação (mobile) ---------- */
.action-bar { display: none; }
@media (max-width: 900px) {
  .action-bar {
    display: grid; grid-template-columns: 1fr 1fr; gap: .5rem;
    position: fixed; left: .75rem; right: .75rem; bottom: max(.75rem, env(safe-area-inset-bottom)); z-index: 95;
    padding: .45rem; border-radius: 999px;
    background: rgba(20, 18, 24, .82); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
    box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .55), 0 0 0 1px rgba(198, 162, 106, .25);
    transform: translateY(160%); transition: transform .7s var(--ease-out);
  }
  .action-bar.is-visible { transform: translateY(0); }
  .action-bar__btn {
    display: flex; align-items: center; justify-content: center; gap: .55rem; height: 3rem; border-radius: 999px;
    font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ivory);
    transition: transform .2s, background .3s;
  }
  .action-bar__btn--call { background: var(--gold); color: var(--ink); }
  .action-bar__btn:active { transform: scale(.95); }
  .action-bar__icon { font-size: 1rem; }
}
.ba__range:focus-visible + * , .ba__slider:focus-within { outline: 2px solid var(--gold); outline-offset: 6px; }

/* ---------- O Espaço ---------- */
.space { background: var(--ivory); padding: clamp(6rem, 12vw, 10rem) 0; }
.space__grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 2rem; align-items: center; }
.space__img { overflow: hidden; border-radius: 4px; }
.space__img img { width: 100%; height: 100%; object-fit: cover; }
.space__img--main { grid-column: 1 / 6; grid-row: 1 / 3; aspect-ratio: 3 / 4; border-radius: 999px 999px 4px 4px; }
.space__copy { grid-column: 7 / 13; grid-row: 1; }
.space__copy .section-title { margin-bottom: 2rem; }
.space__copy p:not(.eyebrow) { color: var(--muted); max-width: 34rem; margin-bottom: 1rem; }
.space__facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.space__facts strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.3rem; }
.space__facts span { font-size: .85rem; color: var(--muted); }
.space__img--small { grid-column: 10 / 13; grid-row: 2; aspect-ratio: 1; border-radius: 50%; margin-top: 5rem; }

/* ---------- Contacto ---------- */
.contact { background: var(--ink); color: var(--ivory); padding: clamp(6rem, 12vw, 10rem) 0 clamp(5rem, 9vw, 8rem); }
.contact__title {
  font-family: var(--serif); font-weight: 300; font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: .88; letter-spacing: -.03em;
  margin-bottom: clamp(3rem, 6vw, 5rem);
}
.contact__title em { color: var(--gold); }
.contact__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 1.2rem; }
.c-card {
  position: relative; display: flex; flex-direction: column; gap: .5rem; padding: 2rem; min-height: 13rem;
  border: 1px solid var(--line-light); border-radius: 6px; overflow: hidden; isolation: isolate;
  transition: color .5s, border-color .5s;
}
.c-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  clip-path: circle(0% at 100% 0%); transition: clip-path .8s var(--ease);
}
.c-card:hover { color: var(--ink); border-color: var(--gold); }
.c-card:hover::before { clip-path: circle(150% at 100% 0%); }
.c-card__label { font-size: .68rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); transition: color .5s; }
.c-card:hover .c-card__label { color: var(--ink); }
.c-card__value { font-family: var(--serif); font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.05; margin-top: auto; }
.c-card__hint { font-size: .8rem; color: var(--muted-light); line-height: 1.5; transition: color .5s; }
.c-card:hover .c-card__hint { color: rgba(20, 18, 24, .7); }

.contact__bottom { display: grid; grid-template-columns: 1fr 1.4fr; gap: 1.2rem; }
.hours { border: 1px solid var(--line-light); border-radius: 6px; padding: 2rem; }
.hours__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; gap: 1rem; }
.hours__head h3 { font-family: var(--serif); font-weight: 400; font-size: 1.8rem; }
.hours__status { display: inline-flex; align-items: center; gap: .5rem; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-light); }
.hours__status::before { content: ''; width: .5rem; height: .5rem; border-radius: 50%; background: var(--muted-light); }
.hours__status.is-open { color: #9fd39a; }
.hours__status.is-open::before { background: #7cc576; box-shadow: 0 0 0 4px rgba(124, 197, 118, .18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(124, 197, 118, 0); } }
.hours__list li { display: flex; justify-content: space-between; padding: .7rem 0; border-bottom: 1px solid rgba(244, 239, 232, .08); font-size: .92rem; color: rgba(244, 239, 232, .7); }
.hours__list li:last-child { border-bottom: 0; }
.hours__list li.is-today { color: var(--gold); font-weight: 600; }
.map { border-radius: 6px; overflow: hidden; min-height: 22rem; border: 1px solid var(--line-light); }
.map iframe { width: 100%; height: 100%; min-height: 22rem; border: 0; filter: grayscale(1) invert(.9) contrast(.85) brightness(.95); }

/* ---------- Footer ---------- */
.footer { background: #19181f; color: var(--ivory); padding: clamp(4rem, 8vw, 6rem) 0 2rem; overflow: hidden; }
.footer__top { display: grid; grid-template-columns: auto 1fr auto; gap: 3rem; align-items: start; }
.footer__logo { width: 7.5rem; height: auto; border-radius: 4px; }
.footer__nav { display: flex; flex-wrap: wrap; gap: .8rem 2rem; justify-content: center; padding-top: .4rem; }
.footer__nav a, .footer__contact a { font-size: .82rem; letter-spacing: .08em; color: rgba(244, 239, 232, .75); transition: color .3s; }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold); }
.footer__contact { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.footer__contact small { font-size: .68rem; color: var(--muted-light); }
.footer__giant {
  font-family: var(--serif); font-weight: 300; font-style: italic; white-space: nowrap;
  font-size: clamp(3.4rem, 13.5vw, 15rem); line-height: 1; letter-spacing: -.03em; text-align: center;
  margin: clamp(3rem, 7vw, 6rem) 0 2rem;
}
.footer__giant span {
  --fill: 100%;
  color: transparent; -webkit-text-stroke: 1px rgba(198, 162, 106, .55);
  background: linear-gradient(90deg, var(--gold) 0 var(--fill), transparent var(--fill));
  -webkit-background-clip: text; background-clip: text;
}
.js .footer__giant span { --fill: 0%; }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; padding-top: 1.6rem; border-top: 1px solid rgba(244, 239, 232, .1); font-size: .74rem; color: var(--muted-light); }
.footer__legal a:hover { color: var(--gold); }

/* ---------- Split text helpers ---------- */
.split-line { overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }

/* =========================================================
   RESPONSIVO
   ========================================================= */
@media (max-width: 1100px) {
  .manifesto__grid { grid-template-columns: 1fr; }
  .manifesto__pillars { grid-column: 1; }
  .svc { grid-template-columns: 3rem 1fr 2rem; }
  .svc__desc { grid-column: 2; grid-row: 2; }
  .svc__arrow { grid-row: 1; grid-column: 3; }
}

@media (max-width: 900px) {
  :root { --header-h: 70px; }
  .nav-links { display: none; }
  .hamburger { display: block; }
  .header__cta { display: none; }

  .hero { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 2.5rem); padding-bottom: 6rem; gap: 3.5rem; }
  .hero__visual { width: min(78%, 22rem); }
  .hero__badge { width: 7rem; height: 7rem; right: -14%; }
  .hero__float { left: -16%; }

  .gallery__pin { flex-direction: column; align-items: stretch; min-height: 0; padding: 5rem 0 5rem var(--gutter); }
  .gallery__head { flex: none; padding-right: var(--gutter); }
  .gallery__counter { display: none; }
  .js .gallery__track { overflow-x: auto; }
  .gallery__track { padding-left: 0; }
  .g-card { width: 72vw; }
  .g-card__img, .g-card--tall .g-card__img, .g-card--low .g-card__img { height: auto; aspect-ratio: 3 / 4; max-height: none; }
  .g-card--low { align-self: auto; }
  .g-card__img img { transform: none; }
  .g-end { width: 60vw; }

  /* com animações: galeria fixada também no mobile, o scroll vertical move a faixa */
  .js .gallery__pin { height: 100svh; min-height: 34rem; justify-content: center; gap: 1.6rem; padding: calc(var(--header-h) + .5rem) 0 1.5rem var(--gutter); }
  .js .gallery__head .section-title { font-size: clamp(2.3rem, 10vw, 3.2rem); }
  .js .gallery__head .eyebrow { margin-bottom: 1rem; }
  .js .gallery__hint { margin-top: .8rem; }
  .js .gallery__counter { display: block; margin-top: .8rem; }
  .js .gallery__track { overflow: visible; scroll-snap-type: none; align-items: flex-end; }
  .js .g-card { width: min(68vw, 36svh); }
  .js .g-card--low { width: min(56vw, 30svh); align-self: flex-end; }
  .js .g-card__img img { transform: scale(1.12); }
  .js .g-card figcaption { font-size: 1.1rem; margin-top: .6rem; }
  .js .g-end { width: min(56vw, 30svh); align-self: center; }
  .js .gallery__head { display: grid; grid-template-columns: 1fr auto; align-items: end; column-gap: 1rem; }
  .js .gallery__head .eyebrow, .js .gallery__head .section-title, .js .gallery__hint { grid-column: 1 / -1; }
  .js .gallery__counter { grid-column: 1; }
  .js .gallery__bar { grid-column: 2; width: 6rem; margin: 0 0 .45rem; }

  .footer { padding-bottom: 6.5rem; }
  .btn:active, .c-card:active { transform: scale(.97); }

  .ba__grid { grid-template-columns: 1fr; }
  .ba__slider { max-width: 34rem; width: 100%; justify-self: center; }

  .space__grid { grid-template-columns: 1fr 1fr; }
  .space__img--main { grid-column: 1 / 3; grid-row: auto; aspect-ratio: 4 / 5; }
  .space__copy { grid-column: 1 / 3; grid-row: auto; }
  .space__img--small { display: none; }

  .contact__grid { grid-template-columns: 1fr; }
  .c-card { min-height: 0; }
  .contact__bottom { grid-template-columns: 1fr; }

  .footer__top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .footer__contact { align-items: center; }
}

@media (max-width: 600px) {
  .manifesto__pillars { grid-template-columns: 1fr; gap: 2rem; }
  .space__facts { grid-template-columns: 1fr 1fr; }
  .hero__actions .btn { flex: 1 1 auto; }
  .services__foot .btn { width: 100%; }
  .footer__legal { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
