/* Jesten Construções · site
   Visual de construtora premium: fotografia real em ecrã inteiro, cantos arredondados, botões em pílula,
   sombras suaves. Montserrat (a mesma família do "CONSTRUÇÕES" do logótipo) nos títulos e Inter no texto. */

@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/montserrat.woff2') format('woff2');
  font-weight: 300 800;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('/assets/fonts/inter.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --ink: #101215;
  --ink-2: #2a2e35;
  --text: #474d57;
  --mute: #737985;
  --line: #e6e7ea;
  --soft: #f4f4f1;
  --white: #ffffff;
  --gold: #e3a21a;
  --gold-2: #f1b333;
  --gold-ink: #946400;
  --gold-soft: #fbf0d6;
  --dark: #0d0e10;
  --dark-2: #17191d;
  --dark-line: #2a2d33;
  --on-dark: #f2f2f0;
  --on-dark-mute: #a6aab2;
  --whatsapp: #25d366;
  --error: #c0362c;
  --ok: #1f8a4c;
  --display: 'Montserrat', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(16, 18, 21, 0.05), 0 3px 10px rgba(16, 18, 21, 0.05);
  --shadow-md: 0 2px 6px rgba(16, 18, 21, 0.05), 0 18px 44px rgba(16, 18, 21, 0.1);
  --shadow-lg: 0 4px 12px rgba(16, 18, 21, 0.06), 0 32px 80px rgba(16, 18, 21, 0.16);
  --pad: clamp(20px, 4vw, 56px);
  --maxw: 1320px;
  --gap: clamp(16px, 2vw, 28px);
  --hdr-h: 84px;
  --ease: cubic-bezier(0.22, 0.7, 0.12, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hdr-h) + 16px);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--text);
  font: 400 16.5px/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

img,
video {
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

mark {
  background: none;
  color: inherit;
}

::selection {
  background: var(--gold);
  color: var(--ink);
}

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

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

.icon {
  width: 20px;
  height: 20px;
  flex: none;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- Tipografia ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font: 600 12.5px/1.2 var(--display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 2px;
  border-radius: 2px;
  background: var(--gold);
}

.eyebrow--light {
  color: var(--gold);
}

.eyebrow--ink {
  color: var(--ink);
}

.eyebrow--ink::before {
  background: var(--ink);
}

.h1,
.h2 {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  text-wrap: balance;
}

.h1 {
  font-size: clamp(2.3rem, 4.6vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.h2 {
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.028em;
}

.h2 mark,
.h1 mark {
  color: var(--gold-ink);
}

.section--dark .h2 {
  color: #fff;
}

.section--dark .h2 mark {
  color: var(--gold);
}

.sec-intro {
  max-width: 36em;
  font-size: clamp(1.02rem, 1.2vw, 1.12rem);
  color: var(--text);
}

/* ---------- Botões ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 24px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 600 15px/1 var(--display);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s,
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.3s var(--ease);
}

.btn:hover .icon--arrow {
  transform: translateX(3px);
}

.btn:hover .icon--down {
  transform: translateY(2px);
}

.btn--lg {
  height: 56px;
  padding: 0 30px;
  font-size: 15.5px;
}

.btn--sm {
  height: 42px;
  padding: 0 18px;
  font-size: 14px;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 8px 22px rgba(227, 162, 26, 0.28);
}

.btn--primary::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  translate: -110% 0;
  transition: translate 0.8s var(--ease);
}

.btn--primary:hover::after {
  translate: 110% 0;
}

.btn--primary:hover {
  background: var(--gold-2);
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(227, 162, 26, 0.38);
}

.btn--dark {
  background: var(--ink);
  color: #fff;
}

.btn--dark:hover {
  background: #262a31;
  transform: translateY(-1px);
}

.btn--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.btn--outline:hover {
  background: var(--ink);
  color: #fff;
}

.btn--glass {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.btn--glass:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.6);
}

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Cabeçalho ---------- */

.hdr {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  color: var(--ink);
  transition:
    background-color 0.35s,
    box-shadow 0.35s,
    color 0.35s,
    transform 0.5s var(--ease);
}

/* Ao descer a página o cabeçalho sai; ao subir volta */
.hdr.is-hidden {
  transform: translateY(-105%);
}

/* Barra fina de leitura no alto */
.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: 3px;
  pointer-events: none;
}

.progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

.hdr__in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--hdr-h);
  transition: height 0.35s var(--ease);
}

.hdr.is-solid {
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.5) blur(14px);
  backdrop-filter: saturate(1.5) blur(14px);
  box-shadow:
    0 1px 0 rgba(16, 18, 21, 0.06),
    0 10px 30px rgba(16, 18, 21, 0.06);
}

.hdr.is-scrolled .hdr__in {
  height: 72px;
}

.hdr--overlay:not(.is-solid) {
  color: #fff;
}

/* Sem JavaScript o cabeçalho transparente não passa a branco: fica no topo e sobe com a página */
html:not(.js) .hdr--overlay {
  position: absolute;
}

.hdr--overlay:not(.is-solid) .hdr__link:hover,
.hdr--overlay:not(.is-solid) .hdr__link[aria-current='page'] {
  background: rgba(255, 255, 255, 0.14);
}

.hdr--overlay:not(.is-solid) .lang__btn,
.hdr--overlay:not(.is-solid) .burger {
  border-color: rgba(255, 255, 255, 0.32);
}

.brand {
  display: block;
  flex: none;
  color: inherit;
}

.logo {
  width: 150px;
  height: auto;
  aspect-ratio: 1526 / 420;
}

.logo--light {
  color: #fff;
}

.hdr__nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
}

.hdr__link {
  padding: 10px 15px;
  border-radius: 999px;
  font: 500 15px/1 var(--display);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.hdr__link:hover,
.hdr__link.is-current,
.hdr__link[aria-current='page'] {
  background: rgba(130, 130, 130, 0.14);
}

.hdr__tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Seletor de idioma */
.lang {
  position: relative;
}

.lang__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 42px;
  padding: 0 12px 0 13px;
  border: 1px solid rgba(130, 130, 130, 0.35);
  border-radius: 999px;
  font: 600 13.5px/1 var(--display);
  list-style: none;
  cursor: pointer;
  user-select: none;
}

.lang__btn::-webkit-details-marker {
  display: none;
}

.lang__btn .icon {
  width: 17px;
  height: 17px;
}

.lang__chev {
  width: 14px !important;
  height: 14px !important;
  transition: transform 0.25s;
}

.lang[open] .lang__chev {
  transform: rotate(180deg);
}

.lang__list {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 5;
  min-width: 200px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.lang__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 10px;
  font: 500 14.5px/1 var(--font);
  text-decoration: none;
}

.lang__list a:hover {
  background: var(--soft);
}

.lang__list a[aria-current] {
  background: var(--gold-soft);
}

.lang__list b {
  font: 600 11.5px/1 var(--display);
  color: var(--mute);
}

.burger {
  display: none;
  position: relative;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(130, 130, 130, 0.35);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.burger span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.burger span:first-child {
  top: 18px;
}

.burger span:last-child {
  top: 25px;
  right: 18px;
}

/* Menu do telemóvel */
.menu {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(13, 14, 16, 0.45);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: fade-in 0.3s ease;
}

.menu.is-closing {
  animation: fade-out 0.28s ease forwards;
}

.menu.is-closing .menu__panel {
  animation: menu-out 0.28s ease forwards;
}

@keyframes menu-out {
  to {
    transform: translateX(40px);
    opacity: 0;
  }
}

.menu[hidden] {
  display: none;
}

.menu__panel {
  position: absolute;
  inset: 0 0 0 auto;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(440px, 100%);
  padding: 0 24px calc(24px + env(safe-area-inset-bottom));
  background: #fff;
  color: var(--ink);
  overflow-y: auto;
  animation: menu-in 0.35s var(--ease);
}

@keyframes menu-in {
  from {
    transform: translateX(30px);
    opacity: 0;
  }
}

.menu__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.menu__top .logo {
  width: 136px;
}

.menu__close {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.menu__nav {
  display: flex;
  flex-direction: column;
  padding-block: 16px;
}

.menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 4px;
  border-bottom: 1px solid var(--line);
  font: 600 1.25rem/1.2 var(--display);
  letter-spacing: -0.01em;
  text-decoration: none;
}

.menu__link .icon {
  color: var(--gold-ink);
}

.menu:not([hidden]) .menu__link {
  animation: fade-up 0.55s var(--ease) backwards;
  animation-delay: calc(0.1s + var(--i, 0) * 45ms);
}

.menu__foot {
  display: grid;
  gap: 18px;
  padding-top: 20px;
}

.menu__langs {
  display: flex;
  gap: 8px;
}

.chip-link {
  display: inline-grid;
  place-items: center;
  min-width: 48px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font: 600 13px/1 var(--display);
  text-decoration: none;
}

.chip-link[aria-current] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.menu__contacts {
  display: grid;
  gap: 4px;
  color: var(--mute);
  font-size: 15px;
}

.menu__contacts a {
  text-decoration: none;
}

/* ---------- Topo em ecrã inteiro ---------- */

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--dark);
  color: #fff;
}

.hero--home {
  min-height: max(660px, min(100svh, 980px));
}

.hero--page {
  min-height: max(540px, 74svh);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.js .hero__media {
  transform: scale(1.07);
  animation: hero-zoom 16s var(--ease) forwards;
}

@keyframes hero-zoom {
  to {
    transform: none;
  }
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(10, 11, 13, 0.88) 0%, rgba(10, 11, 13, 0.62) 40%, rgba(10, 11, 13, 0.16) 100%),
    linear-gradient(0deg, rgba(10, 11, 13, 0.7) 0%, rgba(10, 11, 13, 0) 42%),
    linear-gradient(180deg, rgba(10, 11, 13, 0.5) 0%, rgba(10, 11, 13, 0) 24%);
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 32px 48px;
  padding-top: calc(var(--hdr-h) + 56px);
  padding-bottom: clamp(140px, 13vw, 176px);
}

.hero--page .hero__in {
  padding-bottom: clamp(64px, 8vw, 104px);
}

.hero__content {
  max-width: 780px;
}

.pill-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  padding: 8px 16px 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font: 500 13.5px/1.2 var(--display);
}

.pill-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 162, 26, 0.25);
}

.hero__title {
  margin-bottom: 22px;
  font: 700 clamp(2.45rem, 5.3vw, 4.7rem) / 1.05 var(--display);
  letter-spacing: -0.032em;
  color: #fff;
  text-wrap: balance;
}

.hero__title mark {
  color: var(--gold);
}

.hero__lead {
  max-width: 36em;
  font-size: clamp(1.04rem, 1.3vw, 1.2rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.hero__aside {
  display: grid;
  justify-items: end;
  gap: 18px;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  padding: 9px 24px 9px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.25s;
}

.play:hover {
  background: rgba(255, 255, 255, 0.18);
}

.play__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
}

.play__icon::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgba(227, 162, 26, 0.55);
  border-radius: 50%;
  animation: ring 2.4s var(--ease) infinite;
}

.play__icon .icon {
  width: 20px;
  height: 20px;
  margin-left: 3px;
}

.play__text b {
  display: block;
  font: 600 15px/1.3 var(--display);
}

.play__text small {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
}

@keyframes ring {
  from {
    transform: scale(0.85);
    opacity: 1;
  }
  to {
    transform: scale(1.35);
    opacity: 0;
  }
}

.hero__meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero__caption {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.hero__toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.hero__toggle .icon {
  width: 18px;
  height: 18px;
}

.hero__toggle .icon--play,
.hero__toggle.is-paused .icon--pause {
  display: none;
}

.hero__toggle.is-paused .icon--play {
  display: block;
}

.live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.live i {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

.live i::after {
  content: '';
  position: absolute;
  inset: -4px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  animation: ring 2.2s var(--ease) infinite;
}

/* Entrada do topo: selo, título palavra a palavra, texto, botões e por fim o vídeo */
.js .hero__content > *,
.js .hero__aside > * {
  animation: fade-up 1s var(--ease) backwards;
}

.js .hero__content > .hero__title {
  --words-delay: 0.12s;
  animation: none;
}

.js .hero__content > :nth-child(3) {
  animation-delay: 0.5s;
}

.js .hero__content > :nth-child(4) {
  animation-delay: 0.65s;
}

.js .hero__aside > * {
  animation-delay: 0.85s;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Números sobre o fim do topo */
.stats-wrap {
  position: relative;
  z-index: 2;
  margin-top: calc(clamp(72px, 7vw, 96px) * -1);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: clamp(22px, 2.6vw, 34px) clamp(8px, 1.4vw, 16px);
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}

.js .stats {
  opacity: 0;
  animation: fade-up 1s 0.5s var(--ease) forwards;
}

.stat {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 6px;
  padding: 4px clamp(16px, 2.4vw, 34px);
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat dd {
  margin: 0;
  font: 700 clamp(2.1rem, 3.5vw, 3.1rem) / 1 var(--display);
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.stat__plus {
  display: inline-block;
  color: var(--gold);
}

.js .stat {
  animation: fade-up 0.9s var(--ease) backwards;
  animation-delay: calc(0.65s + var(--i, 0) * 90ms);
}

.stats.is-done .stat__plus {
  animation: plus-pop 0.6s var(--ease);
}

@keyframes plus-pop {
  40% {
    transform: scale(1.45);
  }
}

.stat dt {
  font-size: 15px;
  color: var(--mute);
}

/* ---------- Secções ---------- */

.section {
  padding-block: clamp(84px, 10vw, 136px);
}

.section--tight {
  padding-block: clamp(56px, 7vw, 96px);
}

.section--soft {
  background: var(--soft);
}

.section--dark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--dark);
  color: var(--on-dark-mute);
}

/* Quadrícula de planta técnica, a esbater para as margens, e uma luz âmbar no alto */
.section--dark::before,
.section--dark::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.section--dark::before {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 80%);
  mask-image: radial-gradient(ellipse 75% 70% at 50% 45%, #000 25%, transparent 80%);
}

.section--dark::after {
  background: radial-gradient(600px 280px at 50% 0%, rgba(227, 162, 26, 0.13), transparent 70%);
}

.sec-head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 64px);
}

.sec-head .h2 + .sec-intro {
  margin-top: 18px;
}

/* Título à esquerda e texto à direita, nas mesmas colunas da grelha de baixo:
   o texto começa onde começa o segundo cartão dos serviços (ou a terceira coluna das obras) */
.sec-head--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: end;
  gap: 20px var(--gap);
  max-width: none;
}

.sec-head--thirds {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sec-head--thirds > :first-child {
  grid-column: span 2;
}

.sec-head--center {
  margin-inline: auto;
  text-align: center;
}

.sec-aside {
  display: grid;
  gap: 16px;
}

/* ---------- Serviços ---------- */

.svc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.svc {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 42px);
  border: 1px solid transparent;
  border-radius: var(--r-lg);
  background: var(--soft);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s,
    background-color 0.4s,
    border-color 0.4s;
}

.svc:hover {
  transform: translateY(-4px);
  border-color: var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.svc::before,
.role::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(227, 162, 26, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.4s;
}

.svc:hover::before,
.role:hover::before {
  opacity: 1;
}

.svc__icon .icon {
  transition: transform 0.5s var(--ease);
}

.svc:hover .svc__icon .icon {
  transform: translateY(-2px) scale(1.08);
}

.svc__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 30px;
}

.svc__icon {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: #fff;
  color: var(--gold-ink);
  box-shadow: var(--shadow-sm);
  transition:
    background-color 0.4s,
    color 0.4s;
}

.svc:hover .svc__icon {
  background: var(--gold);
  color: var(--ink);
}

.svc__icon .icon {
  width: 28px;
  height: 28px;
}

.svc__n {
  font: 600 14px/1 var(--display);
  color: var(--mute);
}

.svc__title {
  margin-bottom: 12px;
  font: 700 clamp(1.25rem, 1.7vw, 1.5rem) / 1.25 var(--display);
  letter-spacing: -0.015em;
  color: var(--ink);
}

.svc__text {
  margin-bottom: 24px;
}

.svc .chips {
  margin-top: auto;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.chips li {
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 13.5px;
  line-height: 1.3;
  color: var(--ink-2);
}

/* ---------- Empresa ---------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(48px, 7vw, 112px);
}

.about__media {
  position: relative;
  padding: 0 clamp(36px, 5vw, 72px) clamp(56px, 6vw, 84px) 0;
}

.about__main {
  aspect-ratio: 4 / 5;
  margin: 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: #717258;
  box-shadow: var(--shadow-md);
}

.about__second {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  margin: 0;
  border: 8px solid var(--soft);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #8c8b81;
  box-shadow: var(--shadow-md);
}

.about__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__badge {
  position: absolute;
  left: 24px;
  top: 24px;
  display: grid;
  gap: 4px;
  padding: 18px 22px;
  border-radius: var(--r-md);
  background: rgba(13, 14, 16, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.about__badge strong {
  font: 700 2.1rem/1 var(--display);
  letter-spacing: -0.02em;
  color: var(--gold);
}

.about__badge span {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.about__body .h2 {
  margin-bottom: 22px;
}

.about__text {
  display: grid;
  gap: 16px;
}

.values {
  display: grid;
  gap: 20px;
  list-style: none;
  margin: 34px 0 38px;
  padding: 0;
}

.value {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.value__icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: #fff;
  color: var(--gold-ink);
  box-shadow: var(--shadow-sm);
}

.value__icon .icon {
  width: 24px;
  height: 24px;
}

.value h3 {
  margin: 2px 0 4px;
  font: 700 1.06rem/1.3 var(--display);
  color: var(--ink);
}

.value p {
  font-size: 15.5px;
}

/* ---------- Obras ---------- */

.works__updated {
  font-size: 14px;
  color: var(--ink-2);
}

.works__updated .live i {
  margin-right: 2px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: calc(clamp(40px, 5vw, 64px) * -0.4) 0 28px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font: 600 14px/1 var(--display);
  color: var(--ink-2);
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.filter:hover {
  border-color: var(--ink);
}

.filter small {
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--soft);
  font: 600 11.5px/1 var(--font);
  color: var(--mute);
}

.filter[aria-pressed='true'] {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filter[aria-pressed='true'] small {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: clamp(230px, 23vw, 320px);
  grid-auto-flow: dense;
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tile--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery.is-collapsed .tile--extra,
.tile[hidden] {
  display: none;
}

.tile--album {
  position: relative;
  isolation: isolate;
}

.tile--album::before {
  content: '';
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: -8px;
  height: 40px;
  z-index: -1;
  border-radius: 0 0 var(--r-md) var(--r-md);
  background: #d5d4cd;
  box-shadow: 0 6px 14px rgba(16, 18, 21, 0.08);
  transition:
    transform 0.45s var(--ease),
    opacity 0.6s;
}

.tile--album:hover::before {
  transform: translateY(3px);
}

.js .tile--album:not(.is-in)::before {
  opacity: 0;
}

.js .tile--album.is-in::before {
  transition-delay: 0s, 1.1s;
}

.tile__link {
  position: relative;
  isolation: isolate;
  display: block;
  height: 100%;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #8a877e;
  color: #fff;
  text-decoration: none;
}

.tile__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}

.tile__link:hover .tile__media {
  transform: scale(1.05);
}

.tile__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(0deg, rgba(10, 11, 13, 0.8) 0%, rgba(10, 11, 13, 0.12) 46%, rgba(10, 11, 13, 0) 70%);
}

.tile__cap {
  position: absolute;
  left: 0;
  right: 64px;
  bottom: 0;
  z-index: 2;
  display: grid;
  gap: 5px;
  padding: 22px 24px;
  transition: transform 0.5s var(--ease);
}

.tile__link:hover .tile__cap {
  transform: translateY(-4px);
}

.tile__title {
  font: 600 1.06rem/1.3 var(--display);
  letter-spacing: -0.005em;
}

.tile--wide .tile__title {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
}

.tile__meta {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.76);
}

.tile__go {
  position: absolute;
  right: 18px;
  bottom: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.3s var(--ease);
}

.tile__go .icon {
  width: 18px;
  height: 18px;
  transition: transform 0.45s var(--ease);
}

.tile__link:hover .tile__go .icon {
  transform: rotate(45deg);
}

.tile--album .tile__link:hover .tile__go .icon {
  transform: rotate(90deg);
}

.tile__link:hover .tile__go {
  background: var(--gold);
  color: var(--ink);
  transform: scale(1.06);
}

.tile__badge,
.tile__status {
  position: absolute;
  top: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  font: 600 12px/1 var(--display);
}

.tile__badge {
  left: 16px;
  padding-left: 10px;
  background: rgba(10, 11, 13, 0.5);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

.tile__badge .icon {
  width: 12px;
  height: 12px;
}

.tile__status {
  right: 16px;
  background: #fff;
  color: var(--ink);
}

.tile__status--live {
  background: var(--gold);
}

/* Por baixo da galeria: o "ver mais" numa linha e as redes sociais na seguinte, todas com a mesma largura */
.gallery__foot {
  display: grid;
  justify-items: center;
  gap: 28px;
  margin-top: 44px;
}

.gallery__foot:empty {
  display: none;
}

.gallery__more {
  display: flex;
  justify-content: center;
}

/* Redes sociais: colunas iguais (o número vem em --n), cada uma com a cor da marca no ícone */
.gallery__social {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
  width: min(100%, calc(var(--n, 3) * 340px + (var(--n, 3) - 1) * 14px));
}

.social-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 7px 18px 7px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  transition:
    border-color 0.25s,
    box-shadow 0.3s,
    transform 0.3s var(--ease);
}

.social-pill:hover {
  border-color: transparent;
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.social-pill__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
}

.social-pill--instagram .social-pill__icon {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
}

.social-pill--facebook .social-pill__icon {
  background: #1877f2;
}

.social-pill--linkedin .social-pill__icon {
  background: #0a66c2;
}

.social-pill__icon .icon {
  width: 20px;
  height: 20px;
}

.social-pill__text {
  display: grid;
  flex: 1;
  min-width: 0;
  line-height: 1.25;
}

.social-pill__text small,
.social-pill__text b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.social-pill__text small {
  font-size: 12.5px;
  color: var(--mute);
}

.social-pill__text b {
  font: 600 14.5px/1.3 var(--display);
}

/* A seta fica sempre na ponta direita, alinhada entre os botões */
.social-pill__go {
  flex: none;
  width: 16px !important;
  height: 16px !important;
  margin-left: auto;
  color: var(--mute);
}

/* Tablet e telemóvel: uma coluna, com o "ver mais" e as redes da mesma largura */
@media (max-width: 980px) {
  .gallery__foot {
    gap: 12px;
  }

  .gallery__more,
  .gallery__social {
    width: min(100%, 440px);
  }

  .gallery__more .btn {
    width: 100%;
  }

  .gallery__social {
    grid-auto-flow: row;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
}

.gallery__more[hidden] {
  display: none;
}

/* Sem JavaScript a galeria mostra tudo e os filtros não teriam efeito */
html:not(.js) .filters,
html:not(.js) .gallery__more {
  display: none;
}

@media (min-width: 681px) {
  .gallery__more--m {
    display: none;
  }
}

.gallery__more .icon {
  transition: transform 0.3s var(--ease);
}

.gallery__more [aria-expanded='true'] .icon {
  transform: rotate(45deg);
}

/* Galeria em ecrã inteiro */
.lightbox {
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0c0e;
  color: var(--on-dark);
}

.lightbox::backdrop {
  background: rgba(10, 11, 13, 0.9);
}

.lightbox[open] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  animation: fade-in 0.4s ease;
}

.lightbox.is-closing {
  animation: fade-out 0.25s ease forwards;
}

.lightbox__stage > * {
  animation: lb-media 0.55s var(--ease);
}

.lightbox__stage[data-dir='next'] > * {
  --lb-from: 56px;
}

.lightbox__stage[data-dir='prev'] > * {
  --lb-from: -56px;
}

@keyframes lb-media {
  from {
    opacity: 0;
    translate: var(--lb-from, 0) 0;
    scale: 0.97;
  }
}

/* Flex (e não grid) para a foto respeitar a altura disponível */
.lightbox__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  overflow: hidden;
  padding: clamp(14px, 3vw, 44px) clamp(14px, 3vw, 44px) 0;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: var(--r-md);
  background: #1a1b1e;
}

.lightbox__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px 28px;
  padding: 16px var(--pad) calc(18px + env(safe-area-inset-bottom));
}

.lightbox__title {
  font: 600 1.05rem/1.3 var(--display);
  color: #fff;
}

.lightbox__meta,
.lightbox__count {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--on-dark-mute);
}

.lightbox__nav {
  display: flex;
  gap: 8px;
}

.lightbox__btn {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}

.lightbox__btn:hover {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}

/* ---------- Como trabalhamos ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--gap);
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps::before,
.steps::after {
  content: '';
  position: absolute;
  top: 32px;
  left: 32px;
  right: calc((100% - 3 * var(--gap)) / 4 - 32px);
  height: 2px;
  border-radius: 2px;
}

.steps::before {
  background: var(--dark-line);
}

.steps::after {
  background: linear-gradient(90deg, var(--gold), #f6c86a);
  transform-origin: left;
  transition: transform 1.26s linear 0.25s;
}

.js .steps:not(.is-in)::after {
  transform: scaleX(0);
}

.step {
  position: relative;
  padding-right: 12px;
}

.step__n {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin-bottom: 28px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  background: var(--dark-2);
  box-shadow: 0 0 0 10px var(--dark);
  font: 700 18px/1 var(--display);
  color: #fff;
  transition:
    border-color 0.6s,
    color 0.6s;
}

.step__n::after {
  content: '';
  position: absolute;
  inset: -2px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  opacity: 0;
  pointer-events: none;
}

/* A linha passa por cada número: ele acende, dá um pulso e o texto sobe */
.js .steps:not(.is-in) .step__n {
  border-color: var(--dark-line);
  color: var(--on-dark-mute);
}

.js .steps.is-in .step__n {
  transition-delay: calc(0.25s + var(--i, 0) * 0.42s);
}

.js .steps.is-in .step__n::after {
  animation: ping 1.2s var(--ease) calc(0.25s + var(--i, 0) * 0.42s);
}

.js .steps.is-in :is(.step__title, .step__text) {
  animation: reveal 0.8s var(--ease) backwards;
  animation-delay: calc(0.35s + var(--i, 0) * 0.42s);
}

@keyframes ping {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.7);
  }
}

.step__title {
  margin-bottom: 10px;
  font: 700 1.28rem/1.3 var(--display);
  color: #fff;
}

.step__text {
  color: var(--on-dark-mute);
}

/* ---------- Recrutamento ---------- */

.hire {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--gold);
  color: var(--ink);
  box-shadow: var(--shadow-md);
}

.hire__body {
  padding: clamp(36px, 5vw, 72px);
}

.hire__title {
  color: var(--ink);
}

.hire__text {
  max-width: 30em;
  margin: 16px 0 32px;
  font-size: 1.08rem;
  color: rgba(16, 18, 21, 0.82);
}

.hire__media {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #82857c;
}

.hire__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ---------- Orçamento e formulários ---------- */

.quote {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}

.quote__intro .h2 {
  margin-bottom: 18px;
}

.quote__sub {
  margin: 36px 0 16px;
  font: 600 14.5px/1.3 var(--display);
  color: var(--ink);
}

/* Orçamentos por país: e-mail e telefones de Portugal e de Espanha lado a lado */
.regions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.region {
  padding: 16px 16px 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
}

.region__name {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  font: 700 15px/1.2 var(--display);
  color: var(--ink);
}

.region__code {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 22px;
  padding: 0 6px;
  border-radius: 6px;
  background: var(--gold-soft);
  color: var(--gold-ink);
  font: 700 11px/1 var(--display);
  letter-spacing: 0.04em;
}

.region__list {
  display: grid;
  gap: 1px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.region__list a {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 -8px;
  padding: 7px 8px;
  border-radius: 10px;
  font: 600 14.5px/1.3 var(--display);
  color: var(--ink);
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: background-color 0.2s;
}

.region__list a:hover {
  background: var(--soft);
}

.region__list .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--gold-ink);
}

.contacts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 15px 16px 15px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: #fff;
  text-decoration: none;
  transition:
    box-shadow 0.3s,
    transform 0.3s var(--ease),
    border-color 0.3s;
}

.contact:hover {
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: var(--shadow-md);
}

.contact__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.contact__icon .icon {
  width: 21px;
  height: 21px;
}

.contact__label {
  display: block;
  font-size: 12.5px;
  line-height: 1.3;
  color: var(--mute);
}

.contact__value {
  display: block;
  font: 600 14.5px/1.35 var(--display);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.contact__go {
  width: 16px !important;
  height: 16px !important;
  color: var(--mute);
}

.quote__card {
  padding: clamp(24px, 3.4vw, 48px);
  border-radius: var(--r-xl);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.form__title {
  margin-bottom: 26px;
  font: 700 1.45rem/1.25 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 16px;
}

.field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field--full {
  grid-column: 1 / -1;
}

.field[hidden] {
  display: none;
}

.field__label {
  padding: 0;
  font: 600 14px/1.3 var(--display);
  color: var(--ink);
}

.field__opt {
  font: 400 13px/1 var(--font);
  color: var(--mute);
}

.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field textarea,
.field select {
  width: 100%;
  min-height: 54px;
  padding: 14px 16px;
  border: 1.5px solid #e2e3e7;
  border-radius: 12px;
  background: #f8f8f7;
  color: var(--ink);
  font: 400 16px/1.4 var(--font);
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s,
    background-color 0.2s,
    box-shadow 0.2s;
}

.field textarea {
  min-height: 150px;
  resize: vertical;
}

.field ::placeholder {
  color: #9a9fa8;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(227, 162, 26, 0.18);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select,
.field.is-invalid .file,
.field.is-invalid .check__box {
  border-color: var(--error);
}

.field__hint {
  font-size: 13px;
  color: var(--mute);
}

.field__error {
  font-size: 13.5px;
  color: var(--error);
}

.field__error:empty {
  display: none;
}

.select {
  position: relative;
}

.select::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 1.8px solid var(--ink);
  border-bottom: 1.8px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.select select {
  padding-right: 46px;
  cursor: pointer;
}

.field--file {
  position: relative;
}

.file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 52px 8px 8px;
  border: 1.5px dashed #d6d8dd;
  border-radius: 14px;
  background: #f8f8f7;
  cursor: pointer;
  transition: border-color 0.2s;
}

/* o espaço da direita é para o botão de remover, que só aparece com um ficheiro escolhido */
.file:not(.has-file) {
  padding-right: 16px;
}

.file:hover {
  border-color: var(--gold);
}

.file:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(227, 162, 26, 0.18);
}

.file input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.file__btn {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font: 600 13.5px/1 var(--display);
}

.file__btn .icon {
  width: 16px;
  height: 16px;
}

.file__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  color: var(--mute);
}

.file.has-file .file__name {
  color: var(--ink);
  font-weight: 500;
}

.file__clear {
  position: absolute;
  right: 10px;
  top: 38px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: none;
  cursor: pointer;
}

.file__clear:hover {
  background: var(--soft);
}

.file__clear[hidden] {
  display: none;
}

.check {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  cursor: pointer;
}

.check input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.check__box {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1.5px solid #c9ccd2;
  border-radius: 7px;
  background: #fff;
  transition:
    background-color 0.2s,
    border-color 0.2s;
}

.check__box .icon {
  width: 15px;
  height: 15px;
  opacity: 0;
}

.check input:checked + .check__box {
  border-color: var(--gold);
  background: var(--gold);
}

.check input:checked + .check__box .icon {
  opacity: 1;
}

.check input:focus-visible + .check__box {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.check__text a {
  color: var(--ink);
  font-weight: 500;
}

.field--choices {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
}

.field--choices legend {
  width: 100%;
  margin-bottom: 10px;
}

.check--inline {
  align-items: center;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form__foot {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.form__status {
  font-size: 14.5px;
}

.form__status.is-error {
  color: var(--error);
}

.form.is-sending [data-submit] {
  opacity: 0.6;
  pointer-events: none;
}

.form-done {
  display: grid;
  justify-items: start;
  gap: 16px;
  padding-block: 8px;
}

.form-done[hidden] {
  display: none;
}

.form-done:focus {
  outline: none;
}

.form-done__icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold-soft);
  color: var(--gold-ink);
}

.form-done__icon .icon {
  width: 28px;
  height: 28px;
}

.form-done__title {
  font: 700 clamp(1.6rem, 2.6vw, 2.1rem) / 1.15 var(--display);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.form-done__text {
  max-width: 30em;
  font-size: 1.05rem;
}

.form-done__wa .icon--whatsapp {
  color: var(--whatsapp);
}

/* ---------- Carreiras ---------- */

.roles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--gap);
}

.role {
  position: relative;
  isolation: isolate;
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--soft);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s,
    background-color 0.4s;
}

.role:hover {
  transform: translateY(-3px);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.role__n {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font: 700 14px/1 var(--display);
  color: var(--gold-ink);
}

.role__title {
  margin-bottom: 8px;
  font: 700 1.18rem/1.3 var(--display);
  color: var(--ink);
}

.offer {
  padding: clamp(26px, 2.6vw, 34px);
  border-radius: var(--r-lg);
  background: var(--dark);
  color: var(--on-dark-mute);
}

.offer__title {
  margin-bottom: 20px;
  font: 700 1.22rem/1.3 var(--display);
  color: #fff;
}

.offer__list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.offer__list li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  font-size: 15px;
}

.offer__list .icon {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: var(--gold);
}

/* ---------- Páginas legais e 404 ---------- */

.page-head {
  padding: calc(var(--hdr-h) + clamp(56px, 7vw, 100px)) 0 clamp(48px, 6vw, 76px);
  background: var(--soft);
}

.page-head .h1 {
  margin-bottom: 18px;
}

.page-head__lead {
  max-width: 40em;
  font-size: 1.1rem;
}

.page-head--center {
  padding-bottom: clamp(80px, 10vw, 140px);
  text-align: center;
}

.page-head--center .page-head__lead {
  margin: 0 auto 32px;
}

.nf__code {
  margin-bottom: 8px;
  font: 800 clamp(5rem, 14vw, 9rem) / 1 var(--display);
  letter-spacing: -0.04em;
  color: var(--gold);
}

.legal {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.legal__toc {
  position: sticky;
  top: calc(var(--hdr-h) + 24px);
}

.legal__toc ol {
  display: grid;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.legal__toc a {
  display: flex;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
}

.legal__toc a:hover {
  background: var(--soft);
  color: var(--ink);
}

.legal__toc span,
.legal__sec h2 span {
  padding-top: 2px;
  font: 600 12px/1.4 var(--display);
  color: var(--gold-ink);
}

.legal__sec {
  padding-block: 28px;
  border-bottom: 1px solid var(--line);
}

.legal__sec:first-child {
  padding-top: 0;
}

.legal__sec h2 {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 12px;
  font: 700 1.28rem/1.3 var(--display);
  color: var(--ink);
}

.legal__sec p {
  max-width: 46em;
}

.legal__sec a {
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Rodapé ---------- */

.ftr {
  padding-block: clamp(64px, 8vw, 104px) 28px;
  background: var(--dark);
  color: var(--on-dark-mute);
}

.ftr__top,
.ftr__bottom {
  width: calc(100% - 2 * var(--pad));
  max-width: calc(var(--maxw) - 2 * var(--pad));
  padding-inline: 0;
}

.ftr__top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px var(--gap);
  padding-bottom: clamp(44px, 6vw, 64px);
  border-bottom: 1px solid var(--dark-line);
}

.ftr__brand .logo {
  width: 176px;
}

.ftr__brand p {
  max-width: 22em;
  margin: 22px 0 24px;
}

.ftr__social {
  display: flex;
  gap: 10px;
}

.social {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  transition:
    background-color 0.25s,
    color 0.25s,
    transform 0.25s var(--ease);
}

.social:hover {
  transform: translateY(-2px);
  background: var(--gold);
  color: var(--ink);
}

.social .icon {
  width: 19px;
  height: 19px;
}

.ftr__h {
  margin: 0 0 18px;
  font: 600 13px/1.2 var(--display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.ftr__list {
  display: grid;
  gap: 11px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 15px;
}

.ftr__list a {
  text-decoration: none;
  transition: color 0.2s;
}

.ftr__list a:hover {
  color: #fff;
}

.ftr__muted {
  font-size: 13.5px;
  opacity: 0.7;
}

/* Rodapé: cada país com o seu e-mail e telefones */
.ftr__region {
  display: grid;
  gap: 4px;
}

.ftr__region .ftr__muted {
  margin-top: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ftr__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  font-size: 13.5px;
}

.ftr__up {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
}

.ftr__up span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
}

.icon--up {
  width: 16px;
  height: 16px;
  transform: rotate(180deg);
}

/* ---------- Barra fixa no telemóvel e WhatsApp no computador ---------- */

.mobile-bar {
  display: none;
}

.wa-float {
  position: fixed;
  right: 28px;
  bottom: 28px;
  z-index: 40;
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  box-shadow:
    0 10px 30px rgba(37, 211, 102, 0.35),
    0 4px 10px rgba(0, 0, 0, 0.12);
  opacity: 0;
  transform: translateY(24px) scale(0.8);
  pointer-events: none;
  transition:
    opacity 0.3s,
    transform 0.5s var(--ease);
}

.wa-float.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.wa-float .icon {
  width: 28px;
  height: 28px;
}

/* Pulso discreto de tempos a tempos */
.wa-float::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 2px solid var(--whatsapp);
  border-radius: 50%;
  animation: wa-ring 3.2s var(--ease) infinite;
  pointer-events: none;
}

@keyframes wa-ring {
  0% {
    opacity: 0.8;
    transform: scale(0.95);
  }
  45%,
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

.wa-float__tip {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  padding: 9px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font: 600 13.5px/1.2 var(--display);
  white-space: nowrap;
  opacity: 0;
  transform: translate(8px, -50%);
  transition:
    opacity 0.25s,
    transform 0.35s var(--ease);
  pointer-events: none;
}

.wa-float:hover .wa-float__tip,
.wa-float:focus-visible .wa-float__tip {
  opacity: 1;
  transform: translate(0, -50%);
}

/* ---------- Faixa de serviços em movimento ---------- */

.marquee {
  overflow: hidden;
  padding-top: clamp(64px, 8vw, 112px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 60s linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

.marquee__group {
  display: flex;
  flex: none;
  align-items: center;
}

.marquee__item {
  padding: 0 clamp(20px, 2.4vw, 40px);
  font: 700 clamp(2.1rem, 5vw, 4.4rem) / 1.15 var(--display);
  letter-spacing: -0.035em;
  color: var(--ink);
  white-space: nowrap;
}

/* Um sim, um não em contorno */
.marquee__item:nth-child(4n + 3) {
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(16, 18, 21, 0.55);
}

.marquee__sep {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--gold);
  rotate: 45deg;
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Animações ao rolar ---------- */

/* Blocos: sobem e aparecem */
.js [data-reveal]:not(.is-in) {
  opacity: 0;
}

.js [data-reveal].is-in {
  animation: reveal 0.9s var(--ease) var(--reveal-delay, 0s) backwards;
}

/* Títulos: palavra a palavra, de baixo para cima, por trás de uma máscara.
   A folga do .w evita cortar acentos e as pernas do ç, g e p. */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding: 0.12em 0.04em 0.16em;
  margin: -0.12em -0.04em -0.16em;
}

.w > span {
  display: inline-block;
}

.js :is(.is-in, .hero__title, .page-head) .w > span {
  animation: word-up 1.05s var(--ease) backwards;
  animation-delay: calc(var(--words-delay, 0.06s) + var(--i, 0) * 60ms);
}

/* Cabeçalhos de secção e textos: o bloco não mexe, as partes entram por ordem */
.js [data-reveal='text'].is-in,
.js [data-reveal='steps'].is-in {
  animation: none;
}

.js [data-reveal].is-in .eyebrow {
  animation: fade-in 0.8s ease backwards;
}

.js [data-reveal].is-in .eyebrow::before {
  transform-origin: left;
  animation: line-grow 0.9s var(--ease) 0.1s backwards;
}

.js [data-reveal='text'].is-in :is(.sec-intro, .works__updated, .about__text, .quote__sub, .hire__text) {
  animation: reveal 0.9s var(--ease) 0.3s backwards;
}

.js [data-reveal='text'].is-in :is(.about__cta, .hire__body > .btn) {
  animation: reveal 0.9s var(--ease) 0.55s backwards;
}

.js [data-reveal='text'].is-in :is(.values, .contacts) > li {
  animation: reveal 0.8s var(--ease) backwards;
  animation-delay: calc(0.4s + var(--i, 0) * 70ms);
}

.js [data-reveal='text'].is-in .regions {
  animation: reveal 0.8s var(--ease) 0.35s backwards;
}

/* Fotos: abrem de baixo para cima como uma cortina e a imagem assenta (sai do zoom).
   O corte fica no filho: o Chrome conta o clip-path do próprio elemento e assim nunca o "veria" entrar no ecrã. */
.js [data-reveal='curtain']:not(.is-in) {
  opacity: 1;
}

.js [data-reveal='curtain'].is-in {
  animation: none;
}

.js [data-reveal='curtain'] > :first-child {
  clip-path: inset(100% 0 0 0);
  transition: clip-path 1.3s cubic-bezier(0.7, 0, 0.2, 1) var(--reveal-delay, 0s);
}

.js [data-reveal='curtain'].is-in > :first-child {
  clip-path: inset(0);
}

.js .is-filtered [data-reveal='curtain'] > :first-child,
.js .is-filtered [data-reveal='curtain'] :is(img, video) {
  clip-path: inset(0);
  scale: 1;
  transition: transform 1.1s var(--ease);
}

/* A moldura só aparece com a foto: a sombra acompanha a cortina, a cor de espera só volta no fim */
.js :is(.about__main, .about__second, .hire__media)[data-reveal='curtain'] {
  transition:
    background-color 0s calc(var(--reveal-delay, 0s) + 1.3s),
    box-shadow 1.2s var(--reveal-delay, 0s);
}

.js :is(.about__main, .about__second, .hire__media)[data-reveal='curtain']:not(.is-in) {
  background-color: transparent;
  box-shadow: none;
}

.js [data-reveal='curtain'] :is(img, video) {
  scale: 1.22;
  transition:
    scale 1.7s var(--ease) var(--reveal-delay, 0s),
    transform 1.1s var(--ease);
}

.js [data-reveal='curtain'].is-in :is(img, video) {
  scale: 1;
}

/* As fotos com parallax ficam um pouco maiores, para terem por onde andar */
.js [data-reveal='curtain'].is-in [data-parallax] {
  scale: 1.14;
}

/* Páginas sem foto no topo: título e texto entram ao abrir */
.js .page-head :is(.eyebrow, .page-head__lead, .btn, .nf__code) {
  animation: fade-up 0.9s var(--ease) backwards;
}

.js .page-head .page-head__lead {
  animation-delay: 0.35s;
}

.js .page-head .btn {
  animation-delay: 0.5s;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
}

@keyframes word-up {
  from {
    transform: translateY(112%);
  }
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
  }
}

@keyframes fade-out {
  to {
    opacity: 0;
  }
}

/* Entre páginas do site (início, carreiras, privacidade): troca suave */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
}

/* ---------- Ecrãs médios ---------- */

@media (max-width: 1180px) {
  .hdr__nav {
    display: none;
  }

  .hdr__tools {
    margin-left: auto;
  }

  .burger {
    display: block;
  }

  .ftr__top {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ftr__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 980px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__aside {
    justify-items: start;
  }

  .sec-head--split,
  .about,
  .quote,
  .legal {
    grid-template-columns: minmax(0, 1fr);
  }

  .sec-head--thirds > :first-child {
    grid-column: auto;
  }

  .about__media {
    max-width: 620px;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: clamp(200px, 34vw, 300px);
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 40px var(--gap);
  }

  .steps::before,
  .steps::after {
    display: none;
  }

  .hire {
    grid-template-columns: minmax(0, 1fr);
  }

  .hire__media {
    min-height: 280px;
    order: -1;
  }

  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .legal__toc {
    display: none;
  }
}

/* ---------- Telemóvel ---------- */

@media (max-width: 680px) {
  :root {
    --hdr-h: 70px;
  }

  body {
    font-size: 16px;
  }

  .logo {
    width: 128px;
  }

  .hdr__cta {
    display: none;
  }

  .lang__btn {
    height: 40px;
    padding: 0 10px;
  }

  .lang__btn .icon:first-child {
    display: none;
  }

  .burger {
    width: 42px;
    height: 42px;
  }

  .burger span {
    left: 12px;
    right: 12px;
  }

  .burger span:first-child {
    top: 16px;
  }

  .burger span:last-child {
    top: 23px;
    right: 16px;
  }

  .hero--home {
    min-height: max(600px, 100svh);
  }

  .hero__in {
    padding-top: calc(var(--hdr-h) + 40px);
    padding-bottom: 132px;
  }

  .hero__shade {
    background:
      linear-gradient(0deg, rgba(10, 11, 13, 0.92) 0%, rgba(10, 11, 13, 0.55) 55%, rgba(10, 11, 13, 0.35) 100%),
      linear-gradient(180deg, rgba(10, 11, 13, 0.5) 0%, rgba(10, 11, 13, 0) 30%);
  }

  .pill-eyebrow {
    font-size: 12.5px;
    margin-bottom: 20px;
  }

  .hero__title {
    font-size: clamp(2.05rem, 9vw, 2.7rem);
  }

  .hero__actions .btn {
    flex: 1 1 100%;
  }

  /* Tudo na mesma coluna: botões, vídeo e cartões com a mesma largura */
  .hero__aside {
    justify-items: stretch;
  }

  .play {
    padding-right: 18px;
  }

  .btn--block {
    padding-inline: 16px;
  }

  .about__cta .btn,
  .hire .btn {
    width: 100%;
    height: auto;
    min-height: 56px;
    padding: 12px 16px;
    white-space: normal;
    line-height: 1.25;
    text-align: center;
  }

  .play__icon {
    width: 46px;
    height: 46px;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px;
  }

  .stat {
    padding: 18px 16px;
    border-left: 0;
  }

  .stat:nth-child(2n) {
    border-left: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .svc-grid,
  .form__grid,
  .roles {
    grid-template-columns: minmax(0, 1fr);
  }

  .about__media {
    padding: 0 28px 44px 0;
  }

  .about__badge {
    left: 14px;
    top: 14px;
    padding: 14px 16px;
  }

  .about__badge strong {
    font-size: 1.7rem;
  }

  .filters {
    flex-wrap: nowrap;
    margin-inline: calc(var(--pad) * -1);
    padding-inline: var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filter {
    flex: none;
  }

  .gallery {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: 74vw;
    gap: 14px;
  }

  .tile--wide {
    grid-column: auto;
    grid-row: span 1;
  }

  .gallery.is-collapsed .tile:nth-child(n + 7) {
    display: none;
  }

  .tile__cap {
    padding: 18px 20px;
  }

  .sec-head--center {
    margin-inline: 0;
    text-align: left;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .step {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    column-gap: 18px;
    padding: 0 0 34px;
  }

  .step::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 0;
    width: 2px;
    background: linear-gradient(var(--gold), rgba(227, 162, 26, 0.25));
    transform-origin: top;
    transition: transform 0.5s linear calc(0.45s + var(--i, 0) * 0.42s);
  }

  .js .steps:not(.is-in) .step::before {
    transform: scaleY(0);
  }

  .step:last-child::before {
    display: none;
  }

  .step__n {
    grid-row: span 2;
    width: 56px;
    height: 56px;
    margin: 0;
    box-shadow: none;
    font-size: 16px;
  }

  .hire__body {
    padding: 30px 20px 32px;
  }

  .quote__card {
    padding: 26px 20px;
    border-radius: var(--r-lg);
  }

  /* Anexo: sem o "nenhum ficheiro" (não cabia ao lado do botão); com ficheiro, o botão fica só com o clipe */
  .file:not(.has-file) .file__name {
    display: none;
  }

  .file.has-file .file__btn {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    gap: 0;
    font-size: 0;
  }

  .ftr__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ftr__bottom {
    padding-bottom: 76px;
  }

  .wa-float {
    display: none;
  }

  .mobile-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 40;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-lg);
    transform: translateY(140%);
    transition: transform 0.4s var(--ease);
  }

  .mobile-bar.is-on {
    transform: none;
  }

  .mobile-bar__wa {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: #fff;
  }

  .mobile-bar__wa .icon {
    width: 24px;
    height: 24px;
  }

  .mobile-bar__cta {
    height: 52px;
    justify-content: space-between;
    gap: 8px;
    padding: 0 18px 0 20px;
    font-size: 15px;
    box-shadow: none;
  }
}

@media (max-width: 380px) {
  .ftr__top {
    grid-template-columns: minmax(0, 1fr);
  }

  /* Ecrãs muito estreitos: um botão longo (ex.: em francês) passa a duas linhas em vez de ficar cortado */
  .btn--lg,
  .btn--block,
  .mobile-bar__cta {
    height: auto;
    padding-block: 8px;
    padding-inline: 16px;
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }

  .btn--block {
    min-height: 50px;
  }

  .btn--lg {
    min-height: 56px;
  }

  .mobile-bar__cta {
    min-height: 52px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }

  .js [data-reveal]:not(.is-in) {
    opacity: 1;
  }

  .js [data-reveal='curtain'] {
    clip-path: none;
  }

  .marquee__track {
    animation: none;
  }

  @view-transition {
    navigation: none;
  }
}

@media print {
  .hdr,
  .progress,
  .wa-float,
  .marquee,
  .mobile-bar,
  .hero__bg,
  .gallery,
  .quote__card {
    display: none !important;
  }

  .hero {
    color: var(--ink);
    background: none;
  }
}
