/* Barbearia S19 · protótipo GMWM
   Superfícies tiradas da loja: a parede verde, a capa preta e o azulejo branco. */

@font-face {
  font-family: "Anton";
  src: url("anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}

:root {
  --wall: #a9b77d;
  --wall-light: #b9c592;
  --wall-deep: #97a66b;
  --night: #141811;
  --night-2: #1b2017;
  --night-3: #262c21;
  --tile: #eef1ea;
  --tile-2: #e2e7dc;
  --ink: #121510;
  --ink-2: #454c3f;
  --chalk: #f1f3ee;
  --fog: #a9b1a1;
  --olive: #4a5a24;
  --sage: #bccb8d;
  --pole: #d9432f;
  --amber: #e1a33b;
  --line-d: rgba(241, 243, 238, 0.14);
  --line-l: rgba(18, 21, 16, 0.14);
  --f-display: "Anton", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-text: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: clamp(18px, 5vw, 56px);
  --maxw: 1320px;
  --ease: cubic-bezier(0.2, 0.7, 0, 1);
  --tile-size: clamp(72px, 8.6vw, 128px);
  --top-h: 72px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--top-h) + 12px);
}
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--f-text);
  font-size: 17px;
  line-height: 1.55;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, canvas { display: block; }
img { max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; }
::selection { background: var(--ink); color: var(--wall); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--chalk); text-decoration: none; font-weight: 600;
  transform: translateY(-160%); transition: transform 0.2s;
}
.skip:focus { transform: none; }

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

/* superfícies */
[data-surface="wall"] { background-color: var(--wall); color: var(--ink); }
[data-surface="night"] { background-color: var(--night); color: var(--chalk); }
[data-surface="tile"] { background-color: var(--tile); color: var(--ink); }

/* a parede de azulejos pintados de verde */
.hero,
.work,
.svc-art {
  background-image:
    linear-gradient(90deg, rgba(38, 46, 22, 0.075) 1px, transparent 1px),
    linear-gradient(rgba(38, 46, 22, 0.075) 1px, transparent 1px),
    radial-gradient(120% 90% at 72% 38%, rgba(255, 255, 255, 0.16), transparent 62%);
  background-size: var(--tile-size) var(--tile-size), var(--tile-size) var(--tile-size), 100% 100%;
  background-position: -1px -1px, -1px -1px, 0 0;
}

/* tipografia */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: 0.004em;
  font-synthesis: none;
}
.sec-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 76px); }
.sec-head .display { font-size: clamp(3rem, 7.2vw, 7.1rem); }
.sec-lead {
  margin-top: 28px;
  max-width: 34em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.5;
}
[data-surface="tile"] .sec-lead,
[data-surface="wall"] .sec-lead { color: var(--ink-2); }
[data-surface="night"] .sec-lead { color: var(--fog); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  height: 52px; padding: 0 24px; border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px; font-weight: 600; font-stretch: 102%; letter-spacing: 0.005em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.3s var(--ease);
}
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-ink { background: var(--ink); color: var(--chalk); }
.btn-ink:hover { background: #000; }
.btn-line { background: transparent; color: var(--ink); border-color: rgba(18, 21, 16, 0.32); }
.btn-line:hover { border-color: var(--ink); background: rgba(18, 21, 16, 0.05); }
.btn-wall { background: var(--wall); color: var(--ink); }
.btn-wall:hover { background: var(--wall-light); }
.btn-line-light { background: transparent; color: var(--chalk); border-color: rgba(241, 243, 238, 0.28); }
.btn-line-light:hover { border-color: var(--chalk); }

/* estado aberto / fechado */
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: 0.5; flex: none; }
.is-open .dot { background: #2f8a45; opacity: 1; box-shadow: 0 0 0 0 rgba(47, 138, 69, 0.5); animation: pulse 2.4s infinite; }
[data-surface="night"] .is-open .dot, .top[data-theme="night"] .is-open .dot, .menu .is-open .dot { background: var(--sage); }
.is-soon .dot { background: var(--amber); opacity: 1; }
.is-closed .dot { background: var(--pole); opacity: 1; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47, 138, 69, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(47, 138, 69, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 138, 69, 0); }
}

/* ---------------------------------------------------------------- topo */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50;
  padding-top: env(safe-area-inset-top);
  color: var(--ink);
  transition: color 0.35s, background-color 0.35s, box-shadow 0.35s;
}
.top-in {
  display: flex; align-items: center; gap: 16px;
  height: var(--top-h);
  width: min(var(--maxw), 100% - 2 * var(--gutter)); margin-inline: auto;
}
.brand { display: block; text-decoration: none; border-radius: 4px; }
.brand-logo { width: 49px; height: 44px; fill: currentColor; }
.proto-tag {
  font-size: 12px; font-weight: 600; letter-spacing: 0.01em;
  padding: 3px 9px; border-radius: 999px;
  border: 1px solid currentColor; opacity: 0.62;
}
.nav { display: flex; gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 15px; font-weight: 500;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding: 4px 0; transition: background-size 0.35s var(--ease);
}
.nav a:hover { background-size: 100% 1px; }
.top-actions { display: flex; align-items: center; gap: 16px; margin-left: clamp(16px, 2.6vw, 40px); }
.btn-solid { background: var(--ink); color: var(--chalk); }
.btn-solid:hover { background: #000; }
.menu-btn {
  display: none; height: 40px; padding: 0 18px; border-radius: 999px;
  border: 1px solid currentColor; background: transparent;
  font-size: 15px; font-weight: 600; cursor: pointer;
}
.top.is-scrolled { box-shadow: 0 1px 0 var(--line-l); }
.top.is-scrolled[data-theme="wall"] { background: rgba(169, 183, 125, 0.86); }
.top.is-scrolled[data-theme="tile"] { background: rgba(238, 241, 234, 0.88); }
.top.is-scrolled[data-theme="night"] { background: rgba(20, 24, 17, 0.8); box-shadow: 0 1px 0 var(--line-d); }
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .top.is-scrolled { -webkit-backdrop-filter: saturate(1.3) blur(16px); backdrop-filter: saturate(1.3) blur(16px); }
  .top.is-scrolled[data-theme="wall"] { background: rgba(169, 183, 125, 0.72); }
  .top.is-scrolled[data-theme="tile"] { background: rgba(238, 241, 234, 0.72); }
  .top.is-scrolled[data-theme="night"] { background: rgba(20, 24, 17, 0.64); }
}
.top[data-theme="night"] { color: var(--chalk); }
.top[data-theme="night"] .btn-solid { background: var(--wall); color: var(--ink); }
.top[data-theme="night"] .btn-solid:hover { background: var(--wall-light); }

/* menu de ecrã inteiro */
.menu {
  position: fixed; inset: 0; z-index: 80;
  background: var(--night); color: var(--chalk);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu[hidden] { display: none; }
.menu-in {
  min-height: 100%; display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 14px) var(--gutter) calc(env(safe-area-inset-bottom) + 28px);
}
.menu-head { display: flex; align-items: center; justify-content: space-between; height: 58px; }
.menu-logo { width: 49px; height: 44px; fill: var(--chalk); }
.menu-close {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 18px;
  border-radius: 999px; border: 1px solid var(--line-d); background: transparent; cursor: pointer; font-weight: 600;
}
.menu-nav { display: flex; flex-direction: column; margin: auto 0; padding: 40px 0; }
.menu-nav a {
  font-family: var(--f-display); text-transform: uppercase; text-decoration: none;
  font-size: clamp(3.2rem, 15vw, 6rem); line-height: 1.02;
  padding: 4px 0; border-bottom: 1px solid var(--line-d);
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease), color 0.2s;
}
.menu-nav a:hover { color: var(--sage); }
.menu.is-open .menu-nav a { opacity: 1; transform: none; }
.menu.is-open .menu-nav a:nth-child(2) { transition-delay: 0.05s; }
.menu.is-open .menu-nav a:nth-child(3) { transition-delay: 0.1s; }
.menu.is-open .menu-nav a:nth-child(4) { transition-delay: 0.15s; }
.menu-foot { display: grid; gap: 14px; justify-items: start; }
.menu-addr { color: var(--fog); }
.menu .btn-solid { background: var(--wall); color: var(--ink); }
.menu .btn-solid:hover { background: var(--wall-light); }
body.menu-open { overflow: hidden; }

/* ---------------------------------------------------------------- herói */
.hero {
  position: relative; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: calc(var(--top-h) + 40px) 0 clamp(40px, 7vh, 88px);
}
.hero-stage { position: absolute; inset: 0; z-index: 0; }
.hero-canvas { width: 100%; height: 100%; }
.hero-still {
  display: none; position: absolute;
  width: min(44vw, 760px); right: 3vw; top: 46%; transform: translateY(-50%);
}
.no-3d .hero-still, html:not(.js) .hero-still { display: block; }
.no-3d .hero-canvas, html:not(.js) .hero-canvas { display: none; }
.hero-grid { position: relative; z-index: 1; }
.hero-copy { max-width: min(760px, 56%); }
.hero-title { font-size: clamp(3.6rem, 9.9vw, 10.4rem); line-height: 0.86; }
.hero-title .ln { display: block; overflow: hidden; padding-bottom: 0.03em; }
.hero-title .ln > span { display: block; }
.js .hero-title .ln > span { transform: translateY(104%); animation: rise 1.15s var(--ease) 0.15s forwards; }
.js .hero-title .ln + .ln > span { animation-delay: 0.27s; }
@keyframes rise { to { transform: none; } }
.hero-lead { margin-top: 28px; max-width: 30em; font-size: clamp(17px, 1.35vw, 20px); color: var(--ink-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 30px; margin-top: 34px; font-size: 15px; }
.rating { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.rating strong { font-weight: 700; }
.rating:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.ico-star { width: 17px; height: 17px; }
.muted { color: var(--ink-2); font-weight: 400; margin-left: 4px; }

/* ---------------------------------------------------------------- ofício */
.story { position: relative; }
.story-track { position: relative; height: 470vh; }
.story-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.story-still { display: none; position: absolute; right: 2vw; top: 50%; width: min(58vw, 880px); transform: translateY(-50%); }
.no-3d .story-still, html:not(.js) .story-still { display: block; }
.no-3d .story-canvas, .no-3d .tags, html:not(.js) .tags { display: none; }
.tags { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.tag { position: absolute; left: 0; top: 0; opacity: 0; will-change: transform, opacity; font-size: 13.5px; font-weight: 600; color: var(--chalk); }
.tag::before {
  content: ""; position: absolute; left: -4px; top: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage); box-shadow: 0 0 0 4px rgba(188, 203, 141, 0.18);
}
.tag span { position: absolute; top: -10px; white-space: nowrap; }
.tag-name span { left: -40px; top: 14px; width: 80px; text-align: center; font-size: 14px; }
.tag-name b { font-family: var(--f-display); font-weight: 400; color: var(--sage); margin-right: 6px; }
.tag-part span { left: 44px; padding: 3px 0; }
.tag em { font-style: normal; }
.tag-part::after { content: ""; position: absolute; left: 6px; top: 0; width: 32px; height: 1px; background: rgba(188, 203, 141, 0.7); }
.tag-part.is-left span { left: auto; right: 44px; }
.tag-part.is-left::after { left: auto; right: 6px; }

.story-copy {
  position: relative; z-index: 2; height: 100%;
  display: flex; flex-direction: column; justify-content: center;
  pointer-events: none;
}
.story-copy > * { max-width: min(470px, 36%); pointer-events: auto; }
.story-title { font-size: clamp(3rem, 5.9vw, 6.4rem); }
.story-steps { position: relative; margin-top: 40px; min-height: 196px; }
.story-intro, .step {
  position: absolute; inset: 0 0 auto 0;
  opacity: 0; transform: translateY(-10px);
  transition: opacity 0.22s ease-out, transform 0.3s ease-out;
}
.story-intro.is-on, .step.is-on { transition: opacity 0.5s var(--ease) 0.18s, transform 0.7s var(--ease) 0.18s; }
.story-intro { font-size: clamp(17px, 1.35vw, 20px); color: var(--fog); max-width: 26em; }
.story-intro.is-on, .step.is-on { opacity: 1; transform: none; }
.story-intro:not(.is-on), .step:not(.is-on) { pointer-events: none; }
.steps { list-style: none; margin: 0; padding: 0; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start; }
.step-n {
  font-family: var(--f-display); font-size: 64px; line-height: 0.8; color: var(--sage);
  min-width: 34px;
}
.step h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 650; font-stretch: 94%; line-height: 1.15; }
.step p { margin-top: 10px; color: var(--fog); font-size: 16.5px; max-width: 28em; }
.story-rail { display: flex; gap: 8px; margin-top: 34px; }
.story-rail i { display: block; width: 44px; height: 3px; border-radius: 3px; background: var(--line-d); overflow: hidden; position: relative; }
.story-rail i::after { content: ""; position: absolute; inset: 0; background: var(--sage); transform: scaleX(var(--fill, 0)); transform-origin: 0 50%; }

/* sem movimento, sem 3D ou sem JavaScript: a história fica uma lista normal */
.static-story .story-track, html:not(.js) .story-track { height: auto; }
.static-story .story-stage, html:not(.js) .story-stage { position: relative; height: auto; min-height: 0; padding: clamp(96px, 12vw, 160px) 0; }
.static-story .story-copy, html:not(.js) .story-copy { height: auto; }
.static-story .story-steps, html:not(.js) .story-steps { min-height: 0; }
html.static-story .story-intro, html.static-story .step,
html:not(.js) .story-intro, html:not(.js) .step { position: relative; opacity: 1; visibility: visible; transform: none; margin-bottom: 30px; }
.static-story .story-rail, html:not(.js) .story-rail { display: none; }
.static-story .story-canvas { position: relative; height: 56vh; max-height: 560px; margin-top: 12px; }
.static-story .tags { display: none; }
html.static-story.no-3d .story-still,
html:not(.js) .story-still { position: relative; right: auto; top: auto; transform: none; width: min(100%, 820px); margin: 0 auto -24px; }

/* ---------------------------------------------------------------- o teu corte */
.builder { padding: clamp(96px, 12vw, 168px) 0; }
.builder-grid {
  display: grid; grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  gap: clamp(24px, 4vw, 64px); align-items: start;
}
.head-card {
  margin: 0; position: sticky; top: calc(var(--top-h) + 20px);
  background: #fff; border-radius: 30px; border: 1px solid var(--line-l);
  padding: clamp(10px, 2vw, 26px);
}
.head { width: 100%; height: auto; max-height: calc(100vh - var(--top-h) - 80px); overflow: visible; }
.h-grid path { fill: none; stroke: rgba(18, 21, 16, 0.055); stroke-width: 1; }
.h-skin { fill: url(#g-skin); stroke: var(--ink); stroke-width: 1.7; stroke-linejoin: round; }
.h-cape { fill: #1a1d18; }
.h-collar { fill: none; stroke: #2c3129; stroke-width: 10; stroke-linecap: round; }
.h-grommets circle { fill: #1a1d18; stroke: #cfd4cc; stroke-width: 2; }
.h-line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; opacity: 0.5; }
.h-eye { fill: var(--ink); opacity: 0.85; }
.h-hair { fill: url(#p-hair); }
.h-sheen { fill: url(#g-sheen); pointer-events: none; }
.h-beard { fill: url(#p-beard); opacity: 0; transition: opacity 0.45s; }
.h-beard.is-on { opacity: 0.94; }
.h-razor { fill: none; stroke: var(--olive); stroke-width: 2; stroke-dasharray: 5 5; opacity: 0; transition: opacity 0.4s; }
.h-razor.is-on { opacity: 1; }
.h-ear { fill: #e6ded2; stroke: var(--ink); stroke-width: 1.6; }
.h-ear-in { opacity: 0.45; }
.g-rule { stroke: rgba(18, 21, 16, 0.22); stroke-width: 1; fill: none; }
.g-ticks { stroke: rgba(18, 21, 16, 0.32); stroke-width: 1; fill: none; }
.g-band { stroke: var(--olive); stroke-width: 5; stroke-linecap: round; fill: none; }
.g-lead { fill: none; stroke: var(--olive); stroke-width: 1.2; stroke-dasharray: 3 4; }
.g-num { font: 600 13px var(--f-text); fill: var(--olive); }
.g-label { font: 650 14px var(--f-text); fill: var(--ink); paint-order: stroke; stroke: #fff; stroke-width: 5px; stroke-linejoin: round; }
.h-guides text, .h-guides path { transition: opacity 0.35s; }
.is-hidden-guide { opacity: 0; }

.builder-form { min-width: 0; }
.opt { border: 0; margin: 0 0 26px; padding: 0; min-width: 0; }
.opt[hidden] { display: none; }
.opt legend { padding: 0; margin-bottom: 11px; font-weight: 650; font-size: 15px; }
.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.chips-row { display: flex; flex-wrap: wrap; }
.chip { position: relative; display: block; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: flex; flex-direction: column; gap: 3px; height: 100%;
  padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line-l); background: #fff;
  font-weight: 650; font-size: 15.5px; line-height: 1.2;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.chip small { font-weight: 400; font-size: 13px; color: var(--ink-2); }
.chip-sm > span { flex-direction: row; align-items: baseline; gap: 6px; padding: 11px 18px; border-radius: 999px; }
.chip:hover > span { border-color: rgba(18, 21, 16, 0.45); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--chalk); }
.chip input:checked + span small { color: rgba(241, 243, 238, 0.66); }
.chip input:focus-visible + span { outline: 2px solid var(--olive); outline-offset: 2px; }
.opt-hint { margin-top: 10px; font-size: 14.5px; color: var(--ink-2); min-height: 1.5em; }

.ticket {
  position: relative; margin-top: 6px;
  background: var(--night); color: var(--chalk);
  border-radius: 24px; padding: 24px 24px 22px;
}
.ticket-top { padding-bottom: 20px; }
.ticket-title { font-size: 14px; font-weight: 600; color: var(--sage); }
.ticket-spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.ticket-spec div { min-width: 0; }
.ticket-spec dt { font-size: 12.5px; color: var(--fog); }
.ticket-spec dd { margin: 2px 0 0; font-weight: 650; font-size: 16px; }
.ticket-lines {
  list-style: none; margin: 0; padding: 18px 0 4px;
  border-top: 1.5px dashed rgba(241, 243, 238, 0.22); position: relative;
}
.ticket-lines::before, .ticket-lines::after {
  content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--tile);
}
.ticket-lines::before { left: -35px; }
.ticket-lines::after { right: -35px; }
.ticket-lines li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; font-size: 16px; }
.ticket-lines li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ticket-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 12px; }
.ticket-total span { color: var(--fog); font-size: 15px; }
.ticket-total strong { font-family: var(--f-display); font-weight: 400; font-size: 46px; line-height: 1; }
.ticket-note { margin-top: 12px; font-size: 14px; color: var(--fog); }
.ticket-note strong { color: var(--chalk); font-weight: 600; }
.ticket-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.ticket-cta .btn-ink { background: var(--wall); color: var(--ink); }
.ticket-cta .btn-ink:hover { background: var(--wall-light); }
.ticket-cta .btn-line { color: var(--chalk); border-color: rgba(241, 243, 238, 0.28); }
.ticket-cta .btn-line:hover { border-color: var(--chalk); background: transparent; }
.ticket-toast { font-size: 13.5px; color: var(--sage); min-height: 1.4em; margin-top: 10px; }

/* ---------------------------------------------------------------- serviços */
.services { padding: clamp(96px, 12vw, 168px) 0; }
.svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.svc-group { margin-bottom: 34px; }
.svc-group:last-child { margin-bottom: 0; }
.svc-group-title { font-size: 14px; font-weight: 600; color: var(--fog); margin-bottom: 8px; }
.svc {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px;
  width: 100%; padding: 18px 0 18px 0; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--line-d);
  color: var(--chalk); cursor: pointer;
  transition: padding-left 0.35s var(--ease);
}
.svc-group .svc:last-of-type { border-bottom: 1px solid var(--line-d); }
.svc::before {
  content: ""; position: absolute; left: 0; top: 32px; width: 12px; height: 2px; background: var(--sage);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.35s var(--ease);
}
.svc[aria-pressed="true"] { padding-left: 26px; }
.svc[aria-pressed="true"]::before { transform: scaleX(1); }
.svc[aria-pressed="true"] .svc-name { color: var(--sage); }
.svc:hover .svc-name { color: var(--sage); }
.svc-name { font-size: clamp(19px, 1.7vw, 24px); font-weight: 600; font-stretch: 96%; line-height: 1.2; transition: color 0.2s; }
.svc-sub { font-weight: 400; color: var(--fog); font-size: 0.78em; margin-left: 4px; }
.svc-price { font-family: var(--f-display); font-size: clamp(26px, 2.3vw, 34px); line-height: 1; align-self: center; }
.svc-desc { grid-column: 1 / -1; color: var(--fog); font-size: 15px; }
.svc-panel {
  position: sticky; top: calc(var(--top-h) + 24px);
  border-radius: 30px; overflow: hidden;
  background: var(--night-2); border: 1px solid var(--line-d);
}
.svc-art { position: relative; aspect-ratio: 900 / 700; background-color: var(--wall); }
.svc-art img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain;
  opacity: 0; transform: scale(0.97); transition: opacity 0.6s var(--ease), transform 0.9s var(--ease);
}
.svc-art img.is-on { opacity: 1; transform: none; }
.svc-info { padding: clamp(22px, 2.4vw, 32px); }
.svc-title { font-size: clamp(20px, 1.8vw, 25px); font-weight: 650; line-height: 1.2; }
.svc-bigprice { font-family: var(--f-display); font-size: clamp(60px, 6vw, 92px); line-height: 0.9; margin: 12px 0 16px; }
.svc-text { color: var(--fog); max-width: 32em; }
.svc-info .btn { margin-top: 22px; }
.svc-foot { margin-top: 14px; font-size: 14px; color: var(--fog); }
.svc-foot strong { color: var(--chalk); font-weight: 600; }

/* ---------------------------------------------------------------- trabalhos */
.work { padding: clamp(96px, 12vw, 168px) 0 clamp(120px, 14vw, 200px); }
.sec-head-split { max-width: none; display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; }
.sec-head-split > div { max-width: 760px; }
.link-out {
  display: inline-flex; align-items: center; gap: 8px; flex: none;
  font-weight: 600; text-decoration: none; padding: 10px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
}
.link-out:hover { background-size: 0 1px; background-position: 100% 100%; transition: background-size 0.35s var(--ease); }
.shots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 22px); }
.shot { margin: 0; }
.shot:nth-child(4n + 2), .shot:nth-child(4n + 4) { transform: translateY(clamp(28px, 4vw, 64px)); }
.shot-img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: 18px; background: var(--wall-deep); }
.shot-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.shot:hover .shot-img img { transform: scale(1.035); }
.shot figcaption { margin-top: 12px; font-weight: 600; font-size: 15px; }
.shots-count { display: none; }

/* revelação por varrimento de luz */
.js .shot-img { clip-path: inset(100% 0 0 0 round 18px); transition: clip-path 1.1s var(--ease); }
.js .shot-img::after {
  content: ""; position: absolute; inset: -10% -60%; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.55) 50%, transparent 62%);
  transform: translateX(-70%); opacity: 0;
}
.js .shot.is-in .shot-img { clip-path: inset(0 0 0 0 round 18px); }
.js .shot.is-in .shot-img::after { animation: sweep 1.5s var(--ease) 0.35s both; }
@keyframes sweep { 0% { transform: translateX(-70%); opacity: 1; } 100% { transform: translateX(70%); opacity: 0; } }

/* ---------------------------------------------------------------- cartão */
.loyalty { padding: clamp(96px, 12vw, 168px) 0; overflow: hidden; }
.loyalty-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.card-scene { perspective: 1100px; display: grid; place-items: center; padding: 30px 0; }
.s19-card {
  --rx: 10deg; --ry: -16deg; --gx: 30%; --gy: 20%;
  position: relative; width: min(100%, 470px); aspect-ratio: 1.586; border-radius: 24px;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
  box-shadow: 0 50px 70px -36px rgba(18, 21, 16, 0.6), 0 20px 30px -20px rgba(18, 21, 16, 0.45);
}
.s19-card.is-live { transition: transform 0.12s linear; }
.s19-card-face {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: clamp(18px, 2.2vw, 28px);
  color: var(--chalk);
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 3px),
    linear-gradient(135deg, #252b21 0%, #121510 52%, #1c2119 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.card-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.card-logo { width: 50px; height: 45px; fill: var(--chalk); }
.card-kind { font-size: 13px; font-weight: 600; color: var(--fog); }
.card-stamps { list-style: none; margin: 0 auto; padding: 0; width: 80%; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(6px, 1vw, 10px); }
.card-stamps li {
  aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed rgba(241, 243, 238, 0.3);
  font-family: var(--f-display); font-size: clamp(9px, 1vw, 12px); letter-spacing: 0.02em;
}
.card-stamps li.is-on { border: 0; background: var(--sage); color: var(--ink); }
.card-stamps li.is-on::after { content: "S19"; }
.card-stamps li.is-gift { border: 1.5px solid var(--sage); color: var(--sage); font-family: var(--f-text); font-weight: 650; font-size: clamp(8px, 0.9vw, 11px); letter-spacing: 0; }
.card-foot { font-size: 13px; color: var(--fog); align-items: flex-end; }
.s19-card-glare {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, 0.2), transparent 46%);
  mix-blend-mode: screen;
}
.tag-proposal {
  display: inline-block; margin-bottom: 22px;
  font-size: 13px; font-weight: 600; color: var(--olive);
  padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(74, 90, 36, 0.4);
}
.loyalty .display { font-size: clamp(3rem, 6.4vw, 6.4rem); }
.loyalty-small { margin-top: 16px; font-size: 15px; color: var(--ink-2); max-width: 30em; }

/* ---------------------------------------------------------------- visita */
.visit { position: relative; overflow: hidden; padding: clamp(96px, 12vw, 168px) 0 clamp(90px, 11vw, 150px); }
.visit-36 {
  position: absolute; right: -1vw; bottom: -0.18em;
  font-family: var(--f-display); font-size: clamp(15rem, 44vw, 44rem); line-height: 0.8;
  color: transparent; -webkit-text-stroke: 1.5px rgba(188, 203, 141, 0.16);
  pointer-events: none; user-select: none;
}
.visit-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.visit .display { font-size: clamp(3.4rem, 8vw, 8rem); }
.visit-city { margin-top: 16px; font-size: clamp(18px, 1.5vw, 22px); color: var(--fog); }
.visit-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.find { display: flex; align-items: center; gap: 22px; margin-top: clamp(48px, 7vw, 96px); max-width: 26em; color: var(--fog); }
.find strong { color: var(--chalk); font-weight: 600; }
.pole { flex: none; display: flex; flex-direction: column; align-items: center; }
.pole-cap {
  display: block; width: 44px; height: 14px; border-radius: 8px 8px 3px 3px;
  background: linear-gradient(90deg, #6c706c, #e9ecea 38%, #9a9e9b 62%, #4d514e);
}
.pole-cap-b { border-radius: 3px 3px 8px 8px; }
.pole-glass {
  position: relative; display: block; width: 34px; height: 116px; overflow: hidden;
  background: #f2f0ec;
}
.pole-glass::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 32%, rgba(255, 255, 255, 0.45) 46%, rgba(255, 255, 255, 0) 58%, rgba(0, 0, 0, 0.4));
}
.pole-stripes {
  position: absolute; left: 0; right: 0; top: -64px; bottom: 0;
  background: repeating-linear-gradient(30deg, #f2f0ec 0 8px, #cf3a2f 8px 20px, #f2f0ec 20px 28px, #2c4f9f 28px 40px);
  animation: pole 2.6s linear infinite;
}
@keyframes pole { to { transform: translateY(46.19px); } }
.hours-title { font-size: 15px; font-weight: 600; color: var(--fog); }
.hours .status { margin-top: 10px; font-size: 17px; }
.hours-table { width: 100%; border-collapse: collapse; margin-top: 22px; }
.hours-table th, .hours-table td { padding: 13px 0; border-top: 1px solid var(--line-d); font-weight: 500; text-align: left; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 1px solid var(--line-d); }
.hours-table td { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--sage); font-weight: 700; }

/* ---------------------------------------------------------------- rodapé */
.foot { padding: 56px 0 calc(44px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-d); color: var(--fog); font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 28px 40px; align-items: start; }
.foot-logo { width: 72px; height: 65px; fill: var(--chalk); }
.foot-col p + p { margin-top: 8px; }
.foot a { color: var(--chalk); text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-legal p + p { margin-top: 8px; }

/* ---------------------------------------------------------------- barra do telemóvel */
.dock {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; gap: 4px; padding: 6px; border-radius: 999px;
  background: rgba(18, 21, 16, 0.9); color: var(--chalk);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, 140%); transition: transform 0.5s var(--ease);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .dock { background: rgba(18, 21, 16, 0.78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
}
.dock.is-shown { transform: translate(-50%, 0); }
.dock a {
  display: inline-flex; align-items: center; gap: 7px; height: 46px; padding: 0 16px;
  border-radius: 999px; text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.dock .ico { width: 17px; height: 17px; }
.dock .dock-main { background: var(--wall); color: var(--ink); }

/* ---------------------------------------------------------------- ecrãs médios */
@media (max-width: 1080px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .menu-btn { display: inline-flex; align-items: center; }
}

/* ---------------------------------------------------------------- telemóvel e tablet */
@media (max-width: 899px) {
  :root { --top-h: 64px; }
  .top-actions .status, .top-actions .btn-solid { display: none; }
  .brand-logo { width: 43px; height: 39px; }
  .dock { display: flex; }

  .hero { align-items: flex-end; padding-bottom: 36px; }
  .hero-copy { max-width: none; }
  .hero-title { font-size: clamp(3.2rem, 15.4vw, 7rem); }
  .hero-lead { margin-top: 20px; font-size: 16.5px; }
  .hero-cta { margin-top: 24px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .hero-meta { margin-top: 24px; gap: 10px 22px; font-size: 14.5px; }
  .hero-still { width: 92vw; right: 4vw; top: 12%; transform: none; }

  .story-track { height: 440vh; }
  .story-copy { justify-content: flex-end; padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .story-copy > * { max-width: none; }
  .story-title { font-size: clamp(2.5rem, 11vw, 4rem); }
  .story-steps { margin-top: 18px; min-height: 150px; }
  .story-intro { font-size: 16px; }
  .step { gap: 14px; }
  .step-n { font-size: 44px; min-width: 24px; }
  .step h3 { font-size: 20px; }
  .step p { font-size: 15px; margin-top: 6px; }
  .story-rail { margin-top: 14px; }
  .story-still { width: 92vw; right: 4vw; top: 12%; transform: none; }
  .tag { font-size: 12.5px; }
  .tag em { display: none; }
  .tag-part span { left: 36px; }
  .tag-part::after { width: 24px; }
  .tag-part.is-left span { right: 36px; }

  .builder-grid { grid-template-columns: 1fr; }
  .head-card { position: relative; top: 0; border-radius: 24px; }
  .chips { grid-template-columns: 1fr; }
  .chip > span { flex-direction: row; justify-content: space-between; align-items: baseline; }
  .chips-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .chips-row .chip-sm > span { justify-content: center; padding: 12px 8px; }
  .opt[data-when="classico"]:nth-of-type(3) .chips-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .svc-grid { grid-template-columns: 1fr; }
  .svc-panel { position: relative; top: 0; margin: 6px 0 22px; border-radius: 24px; }
  .svc-art { aspect-ratio: 900 / 620; }

  .sec-head-split { flex-direction: column; align-items: flex-start; }
  .shots {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px;
    margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 6px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shot { flex: 0 0 74%; scroll-snap-align: start; scroll-margin-left: var(--gutter); }
  .shot:nth-child(4n + 2), .shot:nth-child(4n + 4) { transform: none; }
  .shots-count { display: block; margin-top: 16px; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
  .work { padding-bottom: clamp(96px, 12vw, 168px); }

  .loyalty-grid { grid-template-columns: 1fr; }
  .card-scene { order: 2; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-cta .btn { flex: 1 1 auto; }

  .foot { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-logo { grid-column: 1 / -1; }
  .foot-legal { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .hero-meta .muted { display: none; }
  .dock a { padding: 0 13px; font-size: 14.5px; }
}

/* ---------------------------------------------------------------- movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .js .hero-title .ln > span { transform: none; animation: none; }
  .js .shot-img { clip-path: none; }
  .js .shot-img::after { display: none; }
}
