/* Profinition — folha de estilos
   Cores da marca: roxo #3A1E53 e dourado #D3AD37 (do logótipo). */

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

:root {
  --paper: #f5f1ea;
  --paper-2: #ebe5da;
  --ink: #1d1426;
  --muted: #5b5263;
  --line: rgba(29, 20, 38, 0.14);
  --purple: #3a1e53;
  --purple-2: #2a1540;
  --gold: #d3ad37;
  --gold-ink: #7a5c0f; /* dourado escuro para texto em fundo claro (contraste AA) */
  --white: #fff;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 4px;
  --space: clamp(64px, 9vw, 128px);

  color-scheme: light;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.08; font-stretch: 112%; font-weight: 800; letter-spacing: -0.015em; }
p { margin: 0; }

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

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--white); padding: 10px 14px; }
.skip:focus { left: 8px; }

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

.label {
  font-size: 13px;
  font-weight: 700;
  font-stretch: 80%;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-ink);
  margin-bottom: 14px;
}
.label--light { color: var(--gold); }
.muted { color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--purple);
  border-radius: var(--radius);
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--purple-2); border-color: var(--purple-2); }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn--ghost { background: transparent; color: var(--purple); }
.btn--ghost:hover { background: var(--purple); color: var(--white); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #e2bf4f; border-color: #e2bf4f; }
.btn--small { min-height: 42px; padding: 0 16px; font-size: 15px; }

/* ---------- Cabeçalho ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 241, 234, 0.94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.top__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.top__logo img { width: 190px; height: auto; }
.top__nav { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 600; }
.top__nav a:not(.btn) { text-decoration: none; padding: 6px 0; border-bottom: 2px solid transparent; }
.top__nav a:not(.btn):hover { border-bottom-color: var(--gold); }
.top__menu { display: none; }

@media (max-width: 899px) {
  .top__logo img { width: 150px; }
  .top__menu {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
    border: 1.5px solid var(--ink); border-radius: var(--radius); background: transparent;
    font: inherit; font-weight: 700; font-size: 15px; color: var(--ink); cursor: pointer;
  }
  .top__nav {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
  }
  .top__nav.is-open { display: flex; }
  .top__nav a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 17px; }
  .top__nav .btn { margin-top: 16px; min-height: 52px; }
}

/* ---------- Abertura ---------- */
.hero { padding-top: clamp(32px, 6vw, 72px); }
.hero__grid { display: grid; gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 12ch; }
.lead { margin-top: 22px; font-size: clamp(1.06rem, 1.5vw, 1.2rem); max-width: 40ch; color: #3b3242; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__photo { margin: 0; position: relative; }
.hero__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); }
/* Antes e depois do telhado: o "depois" está por cima do "antes"; sem animação vê-se só o "depois" */
.hero__fotos { position: relative; overflow: hidden; border-radius: var(--radius); }
.hero__depois { position: absolute; inset: 0; height: 100%; }
.hero__tag--antes { opacity: 0; }
.hero__photo figcaption {
  position: absolute; left: 0; bottom: 0;
  background: var(--paper); padding: 8px 14px 0 0;
  font-size: 13px; font-weight: 600; color: var(--muted);
}
@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.05fr 0.95fr; gap: 64px; }
}

.facts {
  list-style: none;
  display: grid;
  gap: 0;
  margin: clamp(40px, 6vw, 72px) auto 0;
  padding-top: 0;
  padding-bottom: 0;
}
.facts li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.facts strong { display: block; color: var(--ink); font-size: 17px; font-stretch: 108%; }
@media (min-width: 760px) {
  .facts { grid-template-columns: repeat(3, 1fr); column-gap: 32px; }
  .facts li { border-top: 3px solid var(--purple); }
}

/* ---------- Secções ---------- */
.section { padding-block: var(--space); }
.section--tint { background: var(--paper-2); }
.section__head { margin-bottom: clamp(32px, 5vw, 56px); }
.section__head h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 18ch; }
.section__intro { margin-top: 14px; color: var(--muted); max-width: 52ch; }

/* Serviços: lista numerada, sem cartões */
.services { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; }
.services li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 56px 1fr;
  column-gap: 12px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.services li::before {
  content: counter(s, decimal-leading-zero);
  grid-row: span 2;
  font-weight: 700; font-stretch: 75%; font-size: 15px; letter-spacing: 0.06em;
  color: var(--gold-ink); padding-top: 4px;
}
@media (max-width: 599px) { .services li { grid-template-columns: 34px 1fr; } }
.services h3 { font-size: 1.3rem; }
.services p { margin-top: 8px; color: var(--muted); max-width: 52ch; }
@media (min-width: 900px) {
  .services { grid-template-columns: 1fr 1fr; column-gap: 64px; }
}

/* ---------- Obras ---------- */
.job { padding-top: 28px; border-top: 1px solid var(--line); }
.job + .job { margin-top: clamp(48px, 7vw, 80px); }
.job__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 20px; }
.job__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.job__meta { color: var(--gold-ink); font-weight: 700; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.1em; font-size: 13px; }
.job__video {
  margin-left: auto;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px;
  border: 1.5px solid var(--ink); border-radius: var(--radius);
  background: transparent; color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.job__video::before { content: ""; width: 0; height: 0; border-left: 9px solid currentColor; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.job__video:hover { background: var(--ink); color: var(--paper); }

.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.gallery a { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--paper); }
.gallery img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 0.4s ease; }
.gallery a:hover img { transform: scale(1.025); }
.gallery a:first-child { grid-column: span 2; }
.gallery a:first-child img { aspect-ratio: 16 / 10; }
.gallery--compare a:nth-child(2) { grid-column: span 2; }
.gallery--compare a:nth-child(-n+2) img { aspect-ratio: 16 / 9; }

@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .gallery a:first-child { grid-column: span 1; }
  .gallery a:first-child img { aspect-ratio: 1 / 1; }
  .gallery--compare { grid-template-columns: 1fr 1fr 0.7fr; }
  .gallery--compare a:nth-child(2) { grid-column: auto; }
  .gallery--compare img { aspect-ratio: auto !important; height: 100%; }
}
@media (prefers-reduced-motion: reduce) { .gallery img { transition: none; } .gallery a:hover img { transform: none; } }

.tag {
  position: absolute; z-index: 1; left: 10px; top: 10px;
  padding: 4px 10px; border-radius: 2px;
  background: var(--ink); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; font-stretch: 85%;
}
.tag--gold { background: var(--gold); color: var(--ink); }

/* ---------- Como trabalhamos ---------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: p; display: grid; gap: 0; }
.steps li { counter-increment: p; padding: 24px 0; border-top: 1px solid var(--line); }
.steps li::before {
  content: counter(p);
  display: block;
  font-size: 3rem; line-height: 1; font-weight: 800; font-stretch: 125%;
  color: var(--purple); margin-bottom: 14px;
}
.steps h3 { font-size: 1.25rem; }
.steps p { margin-top: 8px; color: var(--muted); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(2, 1fr); column-gap: 40px; } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } .steps li { border-top: 3px solid var(--purple); } }

.warranty {
  margin-top: 40px; padding: 20px 24px;
  border-left: 4px solid var(--gold);
  background: var(--paper-2);
  max-width: 70ch;
}

/* ---------- Instagram ---------- */
.insta { background: var(--purple); color: var(--white); padding-block: clamp(48px, 7vw, 80px); }
.insta__row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 28px; }
.insta h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 20ch; }

/* ---------- Zona ---------- */
.zone { display: grid; gap: 0; }
.zone__body { font-size: 1.1rem; }
.places { list-style: none; padding: 0; margin: 20px 0 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.places li {
  padding: 8px 16px; border: 1.5px solid var(--purple); border-radius: 999px;
  font-weight: 700; font-size: 16px; color: var(--purple);
}
@media (min-width: 900px) { .zone { grid-template-columns: 1fr 1.2fr; column-gap: 64px; align-items: start; } }

/* ---------- Contacto ---------- */
.contact { background: var(--purple-2); color: var(--white); padding-block: var(--space); }
.contact__grid { display: grid; gap: 48px; }
.contact h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.contact__lead { margin: 16px 0 28px; color: rgba(255, 255, 255, 0.78); max-width: 40ch; }
.contact__list { margin: 0; display: grid; gap: 0; }
.contact__list div { padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.contact__list dt { font-size: 13px; font-weight: 700; font-stretch: 80%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.contact__list dd { margin: 4px 0 0; font-size: 1.15rem; overflow-wrap: anywhere; }
.contact__list a { text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.35); }
.contact__list a:hover { border-bottom-color: var(--gold); }
.contact__phone { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; font-stretch: 110%; border-bottom: 0 !important; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; } }
/* Selo do Zaask (a imagem vem do site do Zaask) */
.zaask { display: flex; width: fit-content; align-items: center; gap: 14px; margin-top: 28px; color: rgba(255, 255, 255, 0.85); font-weight: 600; text-decoration: none; }
.zaask img { flex: none; }
.zaask:hover span { color: var(--gold); }

/* ---------- Página de obras ---------- */
.more { margin-top: clamp(40px, 6vw, 64px); }
.section--first { padding-top: clamp(32px, 6vw, 64px); }
.page-title { font-size: clamp(2.2rem, 4.8vw, 3.6rem); max-width: 18ch; }
.top__nav a[aria-current="page"] { border-bottom-color: var(--gold); }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin: 12px calc(var(--gutter) * -1) 20px; padding-inline: var(--gutter); scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1.5px solid var(--purple); background: transparent; color: var(--purple);
  font: inherit; font-weight: 700; font-size: 15px; cursor: pointer;
}
.chip[aria-pressed="true"] { background: var(--purple); color: var(--white); }

/* Mosaico: as fotos mantêm a proporção original (horizontais, quadradas e verticais) */
.wall { display: block; columns: 2; column-gap: 10px; }
.wall .wall__item { display: block; break-inside: avoid; margin-bottom: 10px; }
.wall .wall__item img, .wall .wall__item:first-child img { aspect-ratio: auto; height: auto; }
.wall .wall__item span {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 10px 8px;
  background: linear-gradient(transparent, rgba(15, 9, 22, 0.75));
  color: var(--white); font-size: 13px; font-weight: 600; line-height: 1.3;
}
.wall .wall__item[hidden] { display: none; }
@media (min-width: 760px) { .wall { columns: 3; column-gap: 12px; } .wall .wall__item { margin-bottom: 12px; } }
@media (min-width: 1100px) { .wall { columns: 4; } }

/* Vídeos: cartões verticais, como os reels */
.vcards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.vcard {
  position: relative; display: block; padding: 0; border: 0; border-radius: 10px; overflow: hidden;
  background: var(--ink); color: var(--white); cursor: pointer; text-align: left; font: inherit;
  box-shadow: 0 8px 20px rgba(29, 20, 38, 0.12);
  transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.3s;
}
.vcard[hidden] { display: none; }
.vcard img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; opacity: 0.85; transition: opacity 0.3s, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.vcard:hover { transform: translateY(-4px); box-shadow: 0 14px 28px rgba(29, 20, 38, 0.2); }
.vcard:hover img { opacity: 1; transform: scale(1.05); }
.vcard__cat {
  position: absolute; z-index: 3; top: 10px; left: 10px; padding: 3px 9px; border-radius: 999px;
  background: var(--gold); color: var(--ink);
  font-size: 11px; font-weight: 800; font-stretch: 85%; letter-spacing: 0.08em; text-transform: uppercase;
}
.vcard__t {
  position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 40px 12px 12px;
  background: linear-gradient(transparent, rgba(15, 9, 22, 0.85));
  font-weight: 700; font-size: 15px; line-height: 1.25;
}
.vcard::before {
  content: ""; position: absolute; z-index: 1; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  border-radius: 50%; background: rgba(255, 255, 255, 0.92); transition: transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.vcard:hover::before { transform: scale(1.1); }
.vcard::after {
  content: ""; position: absolute; z-index: 2; top: 50%; left: 50%; margin: -10px 0 0 -5px;
  border-left: 18px solid var(--purple); border-top: 10px solid transparent; border-bottom: 10px solid transparent;
}
@media (min-width: 760px) { .vcards { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1100px) { .vcards { grid-template-columns: repeat(4, 1fr); } }
@media (prefers-reduced-motion: reduce) { .vcard, .vcard img, .vcard::before { transition: none; } .vcard:hover, .vcard:hover img, .vcard:hover::before { transform: none; } }

/* ---------- Rodapé ---------- */
.foot { background: var(--ink); color: rgba(255, 255, 255, 0.7); font-size: 14px; padding-block: 28px 32px; }
.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.foot__row img { width: 48px; height: 48px; }
.foot__row p:last-child { margin-left: auto; }

/* ---------- Barra fixa no telemóvel ---------- */
.dock { display: none; }
@media (max-width: 759px) {
  body { padding-bottom: 72px; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: var(--paper); border-top: 1px solid var(--line);
  }
  .dock a {
    display: flex; align-items: center; justify-content: center; min-height: 48px;
    border-radius: var(--radius); font-weight: 700; text-decoration: none;
  }
  .dock__wa { background: var(--purple); color: var(--white); }
  .dock__call { border: 2px solid var(--purple); color: var(--purple); }
}

/* ---------- Visualizador de fotos e vídeos ---------- */
.viewer {
  width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0;
  border: 0; background: rgba(15, 9, 22, 0.94); color: var(--white);
}
.viewer[open] { display: flex; align-items: center; justify-content: center; }
.viewer::backdrop { background: transparent; }
.viewer figure { margin: 0; padding: 56px 16px 24px; max-width: min(1400px, 100%); }
.viewer img, .viewer video { max-height: calc(100vh - 140px); width: auto; max-width: 100%; margin: 0 auto; border-radius: var(--radius); }
/* Os vídeos das obras são verticais (9:16), como no Instagram */
.viewer video { height: calc(100vh - 140px); width: auto; max-width: 100%; aspect-ratio: 9 / 16; object-fit: contain; background: #000; }
.viewer figcaption { margin-top: 12px; text-align: center; font-size: 15px; color: rgba(255, 255, 255, 0.8); }
.viewer__close, .viewer__nav {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, 0.12); color: var(--white);
  font-size: 30px; line-height: 1; cursor: pointer;
}
.viewer__close:hover, .viewer__nav:hover { background: rgba(255, 255, 255, 0.24); }
.viewer__close { top: 12px; right: 12px; }
.viewer__nav { top: 50%; transform: translateY(-50%); }
.viewer__nav--prev { left: 12px; }
.viewer__nav--next { right: 12px; }
@media (max-width: 759px) { .viewer__nav { top: auto; bottom: 16px; transform: none; } }

/* ---------- Abertura animada (spray de tinta, só na 1.ª visita) ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  background: var(--paper);
  cursor: pointer;
  animation: intro-safety 0.4s ease 2.6s forwards; /* se o JavaScript falhar, sai sozinha */
}
.intro canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.intro img {
  position: relative; width: min(46vw, 230px); height: auto;
  opacity: 0; transform: scale(0.8) rotate(-8deg);
  transition: opacity 0.35s ease, transform 0.5s cubic-bezier(0.2, 0.9, 0.25, 1.25);
  filter: drop-shadow(0 10px 24px rgba(29, 20, 38, 0.35));
}
.intro.is-logo img { opacity: 1; transform: none; }
.intro.is-out { animation: intro-out 0.45s ease forwards; }
@keyframes intro-safety { to { opacity: 0; visibility: hidden; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; transform: scale(1.03); } }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } }

/* ---------- Página de links (biografia do Instagram e do TikTok) ---------- */
.links { min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 40px 20px 32px; text-align: center; }
.links__logo { width: 112px; height: 112px; }
.links h1 { margin-top: 14px; font-size: 1.8rem; }
.links__slogan { margin-top: 6px; font-style: italic; font-weight: 600; color: var(--purple); font-size: 1.05rem; }
.links__tag { margin: 10px 0 0; font-size: 11px; }
.links__list { list-style: none; margin: 26px 0 0; padding: 0; width: 100%; max-width: 440px; display: grid; gap: 12px; }
.links__list a {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 18px; border-radius: 12px;
  border: 2px solid var(--purple); background: var(--white); color: var(--purple);
  font-weight: 700; font-size: 16px; text-decoration: none;
  transition: background-color 0.15s, color 0.15s;
}
.links__list a:hover { background: var(--purple); color: var(--white); }
.links__list a.is-main { background: var(--purple); color: var(--white); }
.links__list a.is-main:hover { background: var(--purple-2); }
.links__list a.is-gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.links__list a.is-gold:hover { background: #e2bf4f; border-color: #e2bf4f; color: var(--ink); }
.links__list svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
.links__foot { margin-top: auto; padding-top: 32px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.links__zaask { display: block; margin-top: 28px; }
.links__zaask img { display: block; }

/* ---------- Obras: fotos e vídeos lado a lado (separadores ou deslizar para o lado) ---------- */
.obras__head { margin-bottom: 24px; }
.bar {
  position: sticky; top: 73px; z-index: 30; /* fica logo abaixo do cabeçalho, que tem 73 px */
  margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
  background: rgba(245, 241, 234, 0.92); backdrop-filter: saturate(1.4) blur(8px);
}
.switch {
  --p: 0; /* 0 = fotos, 1 = vídeos; o JavaScript acompanha o dedo enquanto se desliza */
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  width: min(100%, 440px); padding: 4px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 6px 18px rgba(29, 20, 38, 0.06);
}
.switch::before {
  content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: 999px; background: var(--purple); box-shadow: 0 6px 16px rgba(58, 30, 83, 0.3);
  transform: translateX(calc(var(--p) * 100%));
}
.switch__tab {
  position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; border-radius: 999px; color: var(--purple);
  font-weight: 800; font-size: 16px; text-decoration: none; transition: color 0.25s;
}
.switch__tab[aria-selected="true"] { color: var(--white); }
.switch__n {
  min-width: 28px; padding: 1px 8px; border-radius: 999px; text-align: center;
  background: rgba(58, 30, 83, 0.1); font-size: 13px; font-weight: 800; transition: background-color 0.25s, color 0.25s;
}
.switch__tab[aria-selected="true"] .switch__n { background: var(--gold); color: var(--ink); }

.panes {
  display: flex; gap: var(--gutter); align-items: flex-start;
  overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  transition: height 0.45s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.panes::-webkit-scrollbar { display: none; }
.pane { flex: 0 0 100%; min-width: 0; padding-block: 4px 12px; scroll-snap-align: start; scroll-snap-stop: always; }
.pane__empty { padding: 24px 0 8px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .panes { transition: none; } }

/* ---------- Página inicial: faixa de obras que se desliza para o lado ---------- */
.strip { margin-top: clamp(48px, 7vw, 80px); }
.strip__head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.strip__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.strip__head p { margin-top: 6px; color: var(--muted); }
.strip__nav { display: none; gap: 8px; }
.strip__nav button {
  width: 48px; height: 48px; border-radius: 50%; border: 1.5px solid var(--purple);
  background: transparent; color: var(--purple); font-size: 24px; line-height: 1; cursor: pointer;
  transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}
.strip__nav button:hover:not(:disabled) { background: var(--purple); color: var(--white); }
.strip__nav button:disabled { opacity: 0.3; cursor: default; }
.strip__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74%, 280px); gap: 14px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 20px; scroll-padding-inline: var(--gutter);
}
.strip__track::-webkit-scrollbar { display: none; }
.strip__card {
  position: relative; display: block; overflow: hidden; border-radius: 12px; scroll-snap-align: start;
  background: var(--ink); color: var(--white); text-decoration: none;
  box-shadow: 0 12px 26px rgba(29, 20, 38, 0.14);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.strip__card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.strip__card:hover { transform: translateY(-4px); box-shadow: 0 18px 34px rgba(29, 20, 38, 0.22); }
.strip__card:hover img { transform: scale(1.06); }
.strip__card > span { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 16px 16px; background: linear-gradient(transparent, rgba(15, 9, 22, 0.88)); }
.strip__card strong { display: block; font-size: 1.2rem; font-stretch: 108%; line-height: 1.15; }
.strip__card small { display: block; margin-top: 4px; font-size: 14px; line-height: 1.35; color: rgba(255, 255, 255, 0.82); }
.strip__card--all { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 20px; background: var(--purple); }
.strip__card--all img { width: 88px; height: 88px; aspect-ratio: auto; margin-bottom: auto; }
.strip__card--all:hover img { transform: rotate(-8deg) scale(1.06); }
.strip__card--all strong { font-size: 1.5rem; }
.strip__card--all small { margin: 0; color: var(--gold); font-weight: 700; }
@media (min-width: 900px) {
  .strip__nav { display: flex; }
  .strip__track { grid-auto-columns: calc((100% - 3 * 14px) / 4.25); }
}
@media (prefers-reduced-motion: reduce) {
  .strip__card, .strip__card img { transition: none; }
  .strip__card:hover, .strip__card:hover img { transform: none; }
}

/* Faixa do Instagram com dois botões */
.insta__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn--light { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.btn--light:hover { background: var(--white); border-color: var(--white); color: var(--purple); }

/* Fotos ampliadas: no telemóvel desliza-se para o lado para passar à seguinte */
.viewer figure { touch-action: pan-y pinch-zoom; }

/* ---------- Movimento: cabeçalho, botões, barra de progresso e blocos que aparecem ao descer ---------- */
.top { transition: box-shadow 0.3s ease; }
.top.is-scrolled { box-shadow: 0 8px 24px rgba(29, 20, 38, 0.08); }
.btn { transition: background-color 0.15s, color 0.15s, border-color 0.15s, transform 0.15s ease; }
.btn:active { transform: scale(0.98); }
.chip { transition: background-color 0.2s, color 0.2s, transform 0.15s; }
.chip:active { transform: scale(0.96); }

/* Linha dourada no lado esquerdo: cresce à medida que se desce a página e brilha.
   O JavaScript dá a posição (--rolagem de 0 a 1 e --y em píxeis). */
.progress {
  --rolagem: 0; --y: 0px;
  position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: 4px; pointer-events: none;
  filter: drop-shadow(0 0 5px rgba(211, 173, 55, 0.75));
}
.progress::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, #7a5c0f, var(--gold) 35%, #fff2b8 50%, var(--gold) 65%, #7a5c0f) 0 0 / 100% 260px repeat-y;
  clip-path: inset(0 0 calc((1 - var(--rolagem)) * 100%) 0);
}
.progress i {
  position: absolute; left: -4px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: #fff4c7; box-shadow: 0 0 0 3px rgba(211, 173, 55, 0.35), 0 0 16px 6px rgba(211, 173, 55, 0.7);
  transform: translateY(var(--y)); opacity: 0; transition: opacity 0.3s;
}
.progress.is-on i { opacity: 1; }
@media (max-width: 759px) { .progress { width: 3px; } .progress i { left: -4.5px; } }
@media (prefers-reduced-motion: no-preference) {
  .progress::before { animation: fluxo 2.4s linear infinite; }
  .progress i { animation: pulsar 1.8s ease-in-out infinite; }
  @keyframes fluxo { to { background-position: 0 260px; } }
  @keyframes pulsar { 50% { box-shadow: 0 0 0 5px rgba(211, 173, 55, 0.2), 0 0 22px 9px rgba(211, 173, 55, 0.85); } }
}

/* Os blocos mais abaixo sobem e aparecem quando chegam ao ecrã (o JavaScript marca-os com data-reveal) */
.js [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: no-preference) {
  /* Entrada da primeira secção; na 1.ª visita começa depois da abertura animada */
  .js .hero__text > * {
    animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--entrada, 0s) + var(--k, 0) * 90ms);
  }
  .js .hero__text > :nth-child(2) { --k: 1; }
  .js .hero__text > :nth-child(3) { --k: 4; }
  .js .hero__text > :nth-child(4) { --k: 5; }
  .has-intro { --entrada: 1.25s; }
  @keyframes subir { from { opacity: 0; transform: translateY(28px); } }

  /* O título sobe palavra a palavra */
  .js .hero h1 { animation: none; }
  .js .hero h1 .w {
    display: inline-block;
    animation: palavra 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    animation-delay: calc(var(--entrada, 0s) + 0.1s + var(--n, 0) * 85ms);
  }
  .hero h1 .w:nth-child(2) { --n: 1; }
  .hero h1 .w:nth-child(3) { --n: 2; }
  .hero h1 .w:nth-child(4) { --n: 3; }
  .hero h1 .w:nth-child(5) { --n: 4; }
  @keyframes palavra { from { opacity: 0; transform: translateY(0.5em) rotate(2deg); filter: blur(6px); } }

  /* O telhado abre no "antes" e o rolo dourado passa a pintar o "depois" por cima.
     A seguir alterna sempre, com um fade: depois (5 s), antes (2,6 s), depois… */
  .js .hero__fotos { animation: surgir 0.5s ease both; animation-delay: var(--entrada, 0s); }
  .js .hero__depois {
    animation: pintar 1.3s cubic-bezier(0.65, 0, 0.35, 1) both, ciclo 10s ease-in-out infinite;
    animation-delay: calc(var(--entrada, 0s) + 0.6s), calc(var(--entrada, 0s) + 1.9s);
  }
  .js .hero__photo::after {
    content: ""; position: absolute; z-index: 1; top: 0; bottom: 0; left: 0; width: 6px; border-radius: 3px;
    background: linear-gradient(180deg, #f0d67a, var(--gold), #f0d67a); box-shadow: 0 0 18px 4px rgba(211, 173, 55, 0.6);
    animation: rolo 1.3s cubic-bezier(0.65, 0, 0.35, 1) both; animation-delay: calc(var(--entrada, 0s) + 0.6s);
  }
  .js .hero__tag--antes {
    animation: sair 0.3s ease both, ciclo-inverso 10s ease-in-out infinite;
    animation-delay: calc(var(--entrada, 0s) + 1.6s), calc(var(--entrada, 0s) + 1.9s);
  }
  .js .hero__tag--depois {
    animation: surgir 0.3s ease both, ciclo 10s ease-in-out infinite;
    animation-delay: calc(var(--entrada, 0s) + 1.6s), calc(var(--entrada, 0s) + 1.9s);
  }
  .js .hero__photo figcaption { animation: subir 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--entrada, 0s) + 1.8s); }
  @keyframes pintar { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  @keyframes rolo { 0% { left: 0; opacity: 1; } 92% { left: calc(100% - 6px); opacity: 1; } 100% { left: calc(100% - 6px); opacity: 0; } }
  @keyframes surgir { from { opacity: 0; } }
  @keyframes sair { from { opacity: 1; } to { opacity: 0; } }
  @keyframes ciclo { 0%, 40% { opacity: 1; } 52%, 78% { opacity: 0; } 90%, 100% { opacity: 1; } }
  @keyframes ciclo-inverso { 0%, 40% { opacity: 0; } 52%, 78% { opacity: 1; } 90%, 100% { opacity: 0; } }
  /* Depois, a foto afasta-se devagar enquanto se desce (navegadores recentes) */
  @supports (animation-timeline: view()) {
    .hero__photo { overflow: hidden; border-radius: var(--radius); }
    .js .hero__fotos {
      animation: surgir 0.5s ease both, afastar linear both;
      animation-delay: var(--entrada, 0s), 0s;
      animation-timeline: auto, view(); animation-range: normal, exit 0% exit 100%;
    }
    @keyframes afastar { to { transform: translateY(10%) scale(1.08); } }
  }
  /* Ao trocar de filtro, as fotos e os vídeos entram um a um */
  .is-fresh { animation: fresco 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
  @keyframes fresco { from { opacity: 0; transform: translateY(12px) scale(0.98); } }
}
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:active { transform: none; }
}

/* ---------- Logótipo do cabeçalho: entra ao abrir a página e brilha de vez em quando ----------
   Duas faixas de luz recortadas pela forma do próprio logótipo: roxa no emblema e em PROFINITION,
   dourada na linha e na frase de baixo. */
.top__logo { position: relative; display: block; line-height: 0; }
.top__logo::before, .top__logo::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-repeat: no-repeat; background-size: 300% 100%; background-position: 100% 0;
  -webkit-mask-image: url("../img/logo.webp"), var(--zona), var(--zona-x);
  -webkit-mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: source-in, source-in;
  mask-image: url("../img/logo.webp"), var(--zona), var(--zona-x);
  mask-size: 100% 100%;
  mask-repeat: no-repeat;
  mask-composite: intersect, intersect;
}
.top__logo::after {
  --zona: linear-gradient(180deg, #000 0 56%, transparent 68%);
  --zona-x: linear-gradient(#000 0 0);
  background-image: linear-gradient(100deg, transparent 40%, rgba(160, 110, 235, 0.6) 46%, rgba(246, 238, 255, 0.95) 50%, rgba(160, 110, 235, 0.6) 54%, transparent 60%);
}
.top__logo::before {
  --zona: linear-gradient(180deg, transparent 56%, #000 64%);
  --zona-x: linear-gradient(90deg, transparent 27%, #000 30%);
  background-image: linear-gradient(100deg, transparent 40%, rgba(240, 205, 90, 0.7) 46%, rgba(255, 248, 215, 1) 50%, rgba(240, 205, 90, 0.7) 54%, transparent 60%);
}
@media (prefers-reduced-motion: no-preference) {
  .top__logo img { animation: logo-entra 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--entrada, 0s); }
  .top__logo::after { animation: brilho 6s ease-in-out infinite; animation-delay: calc(var(--entrada, 0s) + 0.55s); }
  .top__logo::before { animation: brilho 6s ease-in-out infinite; animation-delay: calc(var(--entrada, 0s) + 0.9s); }
  @keyframes logo-entra { from { opacity: 0; transform: translateX(-18px) scale(0.96); filter: blur(6px); } }
  @keyframes brilho { 0% { background-position: 100% 0; } 30%, 100% { background-position: 0% 0; } }
}

/* ---------- "Pintura · Isolamento térmico · Remodelações": dourado com brilho a correr pelas letras ----------
   Só nesta frase da marca (início e página de links); os outros rótulos ficam dourados e parados. */
.hero__text > .label, .links__tag {
  background: linear-gradient(100deg, var(--gold-ink) 0 40%, #b48d1c 45%, #f1cf62 50%, #b48d1c 55%, var(--gold-ink) 60% 100%) 100% 0 / 260% 100% no-repeat;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  width: fit-content;
}
@keyframes ouro { 0% { background-position: 100% 0; } 45%, 100% { background-position: 0% 0; } }
@media (prefers-reduced-motion: no-preference) {
  .links__tag { animation: ouro 5s ease-in-out 0.6s infinite; }
  .js .hero__text > .label {
    animation: subir 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both, ouro 5s ease-in-out infinite;
    animation-delay: var(--entrada, 0s), calc(var(--entrada, 0s) + 1.2s);
  }
}

/* Traço dourado por baixo dos títulos das secções (como a linha do logótipo); desenha-se ao aparecer */
.section__head h2::after, .page-title::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 18px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold), #f0d67a); transform-origin: 0 50%;
}
@media (prefers-reduced-motion: no-preference) {
  .js .section__head h2::after, .js .page-title::after { transform: scaleX(0); transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.35s; }
  .js .is-shown h2::after, .js .is-shown .page-title::after { transform: scaleX(1); }
}

/* Topo da página de obras: entra a subir, como a página inicial */
@media (prefers-reduced-motion: no-preference) {
  .js .obras__head > *, .js .bar, .js .chips { animation: subir 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  .js .obras__head > :nth-child(2) { animation-delay: 0.08s; }
  .js .obras__head > :nth-child(3) { animation-delay: 0.16s; }
  .js .bar { animation-delay: 0.24s; }
  .js .chips { animation-delay: 0.32s; }
}

/* Empresas e condomínios */
.b2b { display: grid; gap: 24px; margin-top: 8px; }
@media (min-width: 820px) { .b2b { grid-template-columns: 1fr 1fr; gap: 32px; } }
.b2b__card { background: var(--white); border-top: 3px solid var(--purple); padding: clamp(24px, 3vw, 36px); border-radius: var(--radius); }
.b2b__card h3 { font-size: 1.35rem; }
.b2b__card p { margin-top: 10px; color: var(--muted); }
.b2b__card ul { list-style: none; margin: 18px 0 0; padding: 0; }
.b2b__card li { position: relative; padding: 9px 0 9px 22px; border-top: 1px solid var(--line); }
.b2b__card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 9px; height: 9px; background: var(--gold); border-radius: 2px; }

/* Rodapé: ligações legais */
.foot__links a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
