/* ==========================================================================
   Blending Properties — protótipo
   Design: Bullseye (Figma "Blending Website")
   ========================================================================== */

:root {
  --ink: #011a1b;
  --green: #2bc294;
  --lime: #97ff97;
  --stone: #f1efe8;
  --sand: #d2c9bf;
  --gray: #979797;
  --white: #ffffff;

  --font: "Funnel Sans", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1440px;
  --g: clamp(16px, 4.1vw, 59px);      /* margem lateral (59px a 1440) */
  --col-gap: clamp(12px, 1.53vw, 22px); /* gutter entre colunas (22px a 1440) */
  --header-h: 80px;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }
html.menu-open { overflow: hidden; background: #eceee9; }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.15;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; }
ul { margin: 0; padding: 0; list-style: none; }

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

.rule { border: 0; border-top: 1px solid var(--ink); margin: 0; opacity: .85; }

/* ---------- Tipografia ---------- */
.t-display { font-size: clamp(44px, 5.56vw, 80px); line-height: 1.25; letter-spacing: -0.025em; font-weight: 600; }
.t-h2 { font-size: clamp(32px, 3.2vw, 46px); line-height: 1; letter-spacing: -0.035em; font-weight: 600; }
.t-h3 { font-size: clamp(22px, 1.8vw, 26px); line-height: 30px; letter-spacing: -0.037em; font-weight: 600; }
.t-body { font-size: 15px; line-height: 18px; }
.t-body p + p { margin-top: 18px; }
.t-small { font-size: 14px; line-height: 20px; }
.t-small p + p { margin-top: 20px; }
.t-label { font-size: 10px; line-height: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.t-caps { font-size: 12px; line-height: 1.8; font-weight: 600; text-transform: uppercase; }        /* morada / contactos */
.t-tiny { font-size: 10px; line-height: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; } /* links do rodapé */

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 202px;
  height: 48px;
  border: .75px solid var(--ink);
  font-size: 12px;
  line-height: 18px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  transition: background .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--white); }
.btn--solid { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--solid:hover { background: var(--green); border-color: var(--green); color: var(--ink); }

/* ---------- Ícones sociais ---------- */
.social { display: flex; gap: 6px; align-items: center; }
.social a {
  width: 18px; height: 18px; border-radius: 50%;
  background: currentColor;
  display: grid; place-items: center;
  transition: transform .25s var(--ease), opacity .25s;
}
.social a:hover { transform: scale(1.12); }
.social svg { width: 10px; height: 10px; }
.social svg path { fill: var(--icon-fg, var(--white)); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--ink);
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}
.site-header .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo { width: 162px; display: block; padding-top: 6px; }
.site-header__logo img { width: 100%; height: auto; }
.site-header__logo .logo-green { display: none; }
.site-header__right { display: flex; align-items: center; gap: clamp(24px, 5.3vw, 76px); }

.menu-toggle { display: flex; align-items: center; gap: 15px; font-size: 14px; line-height: 20px; font-weight: 600; text-transform: uppercase; }
.menu-toggle__icon { position: relative; width: 51px; height: 13px; }
/* Traços ⇄ cruz em dois tempos: juntam-se ao centro e depois rodam (ao fechar, o inverso).
   O ícone e o texto "MENU" nunca mudam de posição. */
.menu-toggle__icon span {
  position: absolute; left: 0; top: 6px; width: 100%; height: 1px; background: currentColor;
  transform-origin: 50% 50%;
  transition: transform .25s var(--ease) 0s, translate .25s var(--ease) .25s, opacity .15s linear .25s;
}
.menu-toggle__icon span:nth-child(1) { translate: 0 -6px; }
.menu-toggle__icon span:nth-child(3) { translate: 0 6px; }
.menu-toggle:hover .menu-toggle__icon span:nth-child(2) { transform: scaleX(.6); transform-origin: right; }
body.menu-open .menu-toggle__icon span { transition: translate .25s var(--ease) 0s, opacity .15s linear 0s, transform .3s var(--ease) .25s; }
body.menu-open .menu-toggle__icon span:nth-child(1) { translate: 0 0; transform: rotate(12deg); }
body.menu-open .menu-toggle__icon span:nth-child(2) { opacity: 0; transform: none; }
body.menu-open .menu-toggle__icon span:nth-child(3) { translate: 0 0; transform: rotate(-12deg); }

/* Header escuro (Home, sobre o hero) */
body.header-dark .site-header:not(.is-scrolled) { background: var(--ink); color: var(--green); border-color: var(--ink); }
body.header-dark .site-header:not(.is-scrolled) .logo-dark { display: none; }
body.header-dark .site-header:not(.is-scrolled) .logo-green { display: block; }
body.header-dark .site-header:not(.is-scrolled) .social { --icon-fg: var(--ink); }
body.menu-open .site-header,
body.menu-open.header-dark .site-header:not(.is-scrolled) { background: transparent; color: var(--ink); border-color: var(--ink); }
body.menu-open .site-header .logo-dark { display: block !important; }
body.menu-open .site-header .logo-green { display: none !important; }
body.menu-open .site-header .social,
body.menu-open.header-dark .site-header:not(.is-scrolled) .social { --icon-fg: var(--white); }

/* ==========================================================================
   Menu (overlay)
   ========================================================================== */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  /* Gradiente verde (referência do cliente): centro esmeralda a desvanecer para pedra nas margens */
  background-color: #eceee9;
  background-image:
    linear-gradient(to right, #eceee9 0%, rgba(236, 238, 233, 0) 9%, rgba(236, 238, 233, 0) 91%, #eceee9 100%),
    linear-gradient(to bottom, #eceee9 0%, rgba(236, 238, 233, 0) 12%, rgba(236, 238, 233, 0) 88%, #eceee9 100%),
    radial-gradient(ellipse 70% 80% at 38% 68%, #5ecfac 0%, #6ed3b3 20%, #8cd7c0 42%, #b9e2d3 65%, #e4ece7 90%, #eceee9 100%);
  padding-top: var(--header-h);
  opacity: 0;
  visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
  overflow-y: auto;
}
/* bloqueio do scroll feito no html (mantém o espaço da barra de scroll, sem saltos) */
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }

.menu-overlay .wrap {
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--col-gap);
  padding-top: clamp(32px, 8vh, 74px);
  padding-bottom: clamp(32px, 6vh, 60px);
}
.menu-nav { grid-column: 2 / 5; }
.menu-nav a {
  display: block;
  font-size: clamp(40px, 4.72vw, 68px);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: clamp(70px, 7.64vw, 110px);
  border-bottom: 1px solid var(--ink);
  transform: translateY(24px);
  opacity: 0;
  transition: transform .6s var(--ease), opacity .6s var(--ease), padding .35s var(--ease), color .3s;
}
body.menu-open .menu-nav a { transform: none; opacity: 1; }
body.menu-open .menu-nav li:nth-child(1) a { transition-delay: .08s; }
body.menu-open .menu-nav li:nth-child(2) a { transition-delay: .13s; }
body.menu-open .menu-nav li:nth-child(3) a { transition-delay: .18s; }
body.menu-open .menu-nav li:nth-child(4) a { transition-delay: .23s; }
body.menu-open .menu-nav li:nth-child(5) a { transition-delay: .28s; }
body.menu-open .menu-nav li:nth-child(6) a { transition-delay: .33s; }
.menu-nav a:hover, .menu-nav a.is-current { padding-left: 24px; }
.menu-nav a.is-current::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--green); margin-right: 18px; vertical-align: middle; transform: translateY(-4px); }

.menu-aside { grid-column: 1; grid-row: 1; align-self: end; }
.menu-aside .t-caps { margin-bottom: 18px; }

/* Seletor de idioma PT / EN */
.lang { display: flex; align-items: center; gap: 4px; margin-bottom: 28px; font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.lang button { position: relative; padding: 2px 0; opacity: .45; transition: opacity .25s; }
.lang button:hover { opacity: .8; }
.lang__sep { opacity: .45; margin: 0 6px; }
.lang button[aria-pressed="true"] { opacity: 1; }
.lang button[aria-pressed="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; }

/* ==========================================================================
   Page head (título centrado + linha)
   ========================================================================== */
.page-head { padding-top: clamp(48px, 5.56vw, 80px); }
.page-head h1 { text-align: center; padding-bottom: clamp(28px, 3.2vw, 46px); }
.page-head + * { margin-top: 0; }

/* ==========================================================================
   Grelha base 4 colunas (314px a 1440)
   ========================================================================== */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); }

.split {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--col-gap);
  align-items: start;
}
.split__text { grid-column: 1 / 3; max-width: 429px; }
.split__media { grid-column: 3 / 5; }

.media { position: relative; overflow: hidden; background: var(--stone); }
.media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
a.media:hover img, .media.is-zoom:hover img { transform: scale(1.04); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero {
  position: relative;
  height: calc(900px - var(--header-h));
  max-height: calc(100vh - var(--header-h));
  min-height: 420px;
  background: var(--ink);
  overflow: hidden;
}
.hero__lines {
  position: absolute; inset: 0;
  background: url("../assets/svg/hero-lines-h.svg") 0 calc(var(--header-h) * -1) / 1454px 727px no-repeat;
}
.hero .wrap { position: relative; height: 100%; }
.hero__logo {
  position: absolute;
  left: calc(var(--g) + 2px);
  right: var(--g);
  bottom: 31px;
  max-width: 1208px;
}
.hero__logo img { width: 100%; height: auto; }
.hero__logo .reveal-mask { overflow: hidden; }
.hero__logo img { transform: translateY(105%); animation: heroUp 1.3s .25s var(--ease) forwards; }
@keyframes heroUp { to { transform: none; } }
.hero__lines { opacity: 0; animation: fadeIn 1.6s .6s ease forwards; }
@keyframes fadeIn { to { opacity: 1; } }

.about { padding-top: 58px; }
.about__media { aspect-ratio: 650 / 627; }
.about__text h2 { margin-bottom: 81px; }
.about__text .t-body { max-width: 426px; }
.about__text .btn { margin-top: 70px; }
.about__badge { margin-top: 94px; width: 90px; height: 90px; animation: spin 18s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.home-portfolio { margin-top: 58px; background: var(--stone); padding: 54px 0 67px; }
.section-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 62px; }
.section-top .btn { margin-top: 4px; }
.home-portfolio__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; column-gap: var(--col-gap); }
.home-portfolio__grid .media { height: clamp(320px, 36.4vw, 524px); }

.claim { margin-top: 63px; }
.claim__box {
  position: relative;
  background: var(--lime);
  min-height: 402px;
  padding: 50px 44px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.claim__box h2 { letter-spacing: -0.022em; position: relative; z-index: 1; }
.claim__box p { max-width: 407px; position: relative; z-index: 1; }
.deco { position: absolute; border-color: var(--ink); border-style: solid; border-width: 0; pointer-events: none; }
.claim__box .deco--a { left: 0; top: 54.74%; width: 84.76%; bottom: -1px; border-top-width: .5px; border-right-width: .5px; }
.claim__box .deco--b { left: 76.24%; top: -1px; right: -1px; height: 85.32%; border-left-width: .5px; border-bottom-width: .5px; }

.video-block { margin-top: 55px; }
.video {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1322 / 635;
  overflow: hidden;
  background: var(--ink);
}
.video img.video__poster { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.video:hover img.video__poster { transform: scale(1.03); }
.video--empty { background: #d9d9d9; }
.play {
  position: absolute; left: 50%; top: 50%;
  width: 94px; height: 94px;
  transform: translate(-50%, -50%);
  border: 8px solid var(--white);
  border-radius: 50%;
  display: grid; place-items: center;
  transition: transform .4s var(--ease), background .3s;
}
.play::after {
  content: "";
  width: 0; height: 0;
  border-left: 34px solid var(--white);
  border-top: 19.5px solid transparent;
  border-bottom: 19.5px solid transparent;
  margin-left: 8px;
}
.video:hover .play { transform: translate(-50%, -50%) scale(1.08); }

.news-section { margin-top: 55px; }
.news-section h2 { margin-bottom: 52px; }

/* Cartão de notícia */
.card { display: flex; flex-direction: column; }
.card__media { aspect-ratio: 314 / 232; }
.card__meta { margin-top: 33px; font-size: 14px; line-height: 20px; font-weight: 600; white-space: nowrap; }
.card__meta .date { color: var(--gray); }
.card__meta .cat { color: var(--green); }
.card__meta .sep { color: var(--green); margin: 0 10px; }
.card__title { margin-top: 10px; font-size: 26px; line-height: 30px; letter-spacing: -0.037em; font-weight: 600; min-height: 90px; }
.card__more { margin-top: 24px; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--green); }
.card--dark .card__more { color: var(--ink); }
.card::after { content: ""; display: block; height: 1px; background: var(--ink); margin-top: 60px; opacity: .8; }
.card:hover .card__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.card--noline::after { display: none; }
.cards { row-gap: 21px; }

/* ==========================================================================
   Bloco de contacto
   ========================================================================== */
.contact-block { margin-top: 136px; }
.contact {
  display: grid;
  grid-template-columns: 662.5fr 659.5fr;
  min-height: 635px;
}
.contact__dark {
  position: relative;
  background: var(--ink);
  color: var(--green);
  padding: 48px 45px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  overflow: hidden;
}
.contact__dark h2 { letter-spacing: -0.047em; position: relative; z-index: 1; }
.contact__dark p { max-width: 427px; position: relative; z-index: 1; }
.contact__dark .deco { border-color: var(--green); }
.contact__dark .deco--a { left: 57.5%; width: 43%; top: 27.7%; height: 43.8%; border-top-width: .5px; border-left-width: .5px; border-bottom-width: .5px; }
.contact__dark .deco--b { left: -1px; width: 74.1%; top: 49.1%; bottom: -1px; border-top-width: .5px; border-right-width: .5px; }

.contact__light { background: var(--stone); padding: 107px 18.4% 80px; display: flex; align-items: flex-start; }

.form { width: 100%; max-width: 426px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; column-gap: 21px; }
.field { position: relative; display: block; margin-bottom: 23px; }
.field .t-label { display: block; margin-bottom: 0; letter-spacing: .16em; transition: color .3s; }
.field input,
.field textarea {
  display: block; width: 100%;
  border: 0; border-bottom: .75px solid var(--ink);
  background: transparent;
  padding: 6px 0 6px;
  font: inherit; font-size: 14px; color: var(--ink);
  border-radius: 0;
  outline: none;
  transition: border-color .3s;
}
.field textarea { resize: vertical; min-height: 60px; }
.field input:focus,
.field textarea:focus { border-bottom-color: var(--green); }
.field:focus-within .t-label { color: var(--green); }
.form__legal { font-size: 9px; line-height: 14px; margin-top: 4px; }
.check { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 9px; font-weight: 600; cursor: pointer; }
.check input { appearance: none; -webkit-appearance: none; width: 16px; height: 16px; border: .75px solid var(--ink); border-radius: 50%; margin: 0; display: grid; place-items: center; cursor: pointer; }
.check input:checked::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ink); }
.form .btn--solid { width: 100%; margin-top: 31px; }
.form__ok { display: none; margin-top: 16px; font-size: 12px; font-weight: 600; color: var(--ink); }
.form.is-sent .form__ok { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-top: 63px; border-top: 1px solid var(--ink); }
.site-footer__main {
  display: grid;
  grid-template-columns: 22.5fr 15.5fr 15.5fr 15.5fr 21.9fr;
  column-gap: 0;
  padding-top: 85px;
  padding-bottom: 56px;
  min-height: 315px;
}
.site-footer__brand img { width: 162px; height: auto; }
.site-footer__brand .t-caps { margin-top: 17px; }
.site-footer__brand .t-caps span { text-transform: uppercase; }
.site-footer__brand .social { margin-top: 9px; }
.footer-links li + li { margin-top: 18px; }
.footer-links a { transition: color .25s; }
.footer-links a:hover { color: var(--green); }
.newsletter__title { font-size: 10px; line-height: 15px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.newsletter p:not(.newsletter__title) { font-size: 12px; line-height: 1.6; margin-top: 8px; }
.newsletter__input {
  display: block; width: 100%; height: 36px; margin-top: 18px;
  border: .75px solid var(--ink); background: transparent; padding: 0 16px;
  font: inherit; font-size: 9.75px; color: var(--ink); outline: none; border-radius: 0;
}
.newsletter__input::placeholder { color: var(--ink); text-transform: uppercase; }
.newsletter__input:focus { border-color: var(--green); }
.newsletter .btn--solid { width: 100%; height: 36px; margin-top: 8px; font-size: 10px; line-height: 15px; letter-spacing: .16em; }
.newsletter .form__ok { font-size: 10px; }

.site-footer__bar { border-top: 1px solid var(--ink); }
.site-footer__bar .wrap { height: 60px; display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 600; text-transform: uppercase; }
.design-by { display: flex; align-items: center; gap: 9px; }
.design-by img { width: 58px; height: auto; }

/* ==========================================================================
   Página BLENDING
   ========================================================================== */
.intro { padding-top: 55px; }
.intro__text h2 { margin-bottom: 62px; }
.intro__media--tall { aspect-ratio: 609 / 635; margin-left: auto; width: calc(100% - 41px); }
.band { padding: 55px 0; border-top: 1px solid var(--ink); }
.band h2 { margin-bottom: 62px; }
.trio { display: grid; grid-template-columns: 314fr 314fr 662fr; column-gap: 16px; }
.trio .media { height: clamp(300px, 36.4vw, 524px); }
.duo { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); align-items: start; }
.duo__block { grid-column: 1 / 3; aspect-ratio: 648 / 293; }
.duo__text { grid-column: 3 / 5; padding-left: 15%; max-width: 560px; }
.duo__text h3 { font-size: 20px; line-height: 20px; font-weight: 700; margin-bottom: 20px; }
.bg-lime { background: var(--lime); }
.bg-ink { background: var(--ink); }
.bg-green { background: var(--green); }
.people__media { aspect-ratio: 609 / 463; margin-left: auto; width: calc(100% - 39px); }

/* ==========================================================================
   PORTFOLIO
   ========================================================================== */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 52px;
}
.pf-grid > * { height: clamp(260px, 36.7vw, 528px); }
.pf-grid .span-2 { grid-column: span 2; }
.pf-tile {
  position: relative;
  display: block;
  padding: 31px 27px;
  font-size: 26px; line-height: 26px; letter-spacing: -0.037em; font-weight: 600;
  overflow: hidden;
  transition: filter .4s;
}
.pf-tile::after {
  content: "Ver projeto →";
  position: absolute; left: 27px; bottom: 27px;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; line-height: 1;
  opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
.pf-tile:hover::after { opacity: 1; transform: none; }
.pf-tile.bg-ink { color: var(--green); }
.center-btn { display: flex; justify-content: center; margin-top: 78px; }

/* ==========================================================================
   PROJETO
   ========================================================================== */
.project-intro { padding-top: 55px; }
.project-intro .split__text h2 { margin-bottom: 108px; letter-spacing: -0.047em; }
.project-intro .split__media { aspect-ratio: 650 / 627; }
.gallery { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); row-gap: 26px; }
.gallery .media { aspect-ratio: 314 / 524; cursor: zoom-in; }
.gallery .media--video { grid-column: 1 / 4; aspect-ratio: auto; height: 100%; cursor: pointer; }
.gallery .media--video .video { aspect-ratio: auto; height: 100%; }

.spec { margin-top: 122px; border-top: 1px solid var(--ink); padding-top: 55px; }
.spec__grid { display: grid; grid-template-columns: repeat(4, 1fr); column-gap: var(--col-gap); }
.spec__title { grid-column: 1; }
.spec__body { grid-column: 2 / 5; margin-top: 48px; }
.spec + .spec { margin-top: 99px; }

.floor { border-top: .75px solid var(--ink); }
.floor:last-child { border-bottom: .75px solid var(--ink); }
.floor__head {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  height: 75px;
  font-size: 26px; letter-spacing: -0.037em; font-weight: 600; text-align: left;
}
.floor__head .plus { position: relative; width: 16px; height: 16px; }
.floor__head .plus::before,
.floor__head .plus::after { content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--ink); transition: transform .35s var(--ease); }
.floor__head .plus::after { transform: rotate(90deg); }
.floor.is-open .floor__head .plus::after { transform: rotate(0); }
.floor__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.floor.is-open .floor__panel { grid-template-rows: 1fr; }
.floor__panel > div { overflow: hidden; }
.units { width: 100%; border-collapse: collapse; font-size: 14px; font-weight: 600; text-transform: uppercase; text-align: center; }
.units th { font-weight: 600; height: 50px; border-top: .75px solid var(--ink); border-bottom: .75px solid var(--ink); font-size: 12px; }
.units td { height: 50px; border-bottom: .75px solid var(--ink); }
.units tr:last-child td { border-bottom: 0; }
.units tbody tr { transition: background .2s; }
.units tbody tr:hover { background: var(--stone); }
.units .st { display: inline-block; font-size: 10px; letter-spacing: .1em; padding: 4px 8px; border-radius: 20px; }
.units .st--free { background: var(--lime); }
.units .st--res { background: var(--sand); }
.units .st--sold { background: var(--ink); color: var(--white); }

.download {
  display: flex; justify-content: space-between; align-items: center;
  height: 75px; border-top: .75px solid var(--ink); border-bottom: .75px solid var(--ink);
  font-size: 26px; letter-spacing: -0.037em; font-weight: 600;
}
.download span:last-child { font-weight: 600; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; padding-right: 55px; }
.download:hover { color: var(--green); }

.project-contact { margin-top: 61px; border-top: 1px solid var(--ink); padding-top: 61px; }
.project-contact .contact-block { margin-top: 0; }

/* ==========================================================================
   NOTÍCIAS / ARTIGO
   ========================================================================== */
.news-grid { margin-top: 42px; }
.article { max-width: 875px; margin: 55px auto 0; }
.article__media { aspect-ratio: 875 / 524; }
.article__meta { margin-top: 42px; }
.article h2 { margin-top: 23px; max-width: 571px; letter-spacing: -0.021em; line-height: 46px; }
.article__body { margin-top: 42px; }
.article .social { margin-top: 65px; }
.related { margin-top: 93px; border-top: 1px solid var(--ink); padding-top: 58px; }
.related .card::after { display: none; }

/* ==========================================================================
   CONTACTOS
   ========================================================================== */
.contacts-page .contact-block { margin-top: 56px; }
.map {
  position: relative;
  display: block;
  height: 375px;
  margin-top: 57px;
  --map-w: max(1442px, 100vw); /* o mapa estica com o ecrã, sem deixar margens */
  background: url("../assets/svg/map-mask.svg") 50% calc(var(--map-w) * -0.16366) / var(--map-w) auto no-repeat;
  overflow: hidden;
}
.map__pin { position: absolute; left: calc(50% + var(--map-w) * 0.0485); top: calc(var(--map-w) * 0.0749); width: 25px; height: 25px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.map__pin::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--white); }
.map__pin::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid var(--ink); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.map__label { position: absolute; left: calc(50% + var(--map-w) * 0.0485 + 35px); top: calc(var(--map-w) * 0.0749 - 2px); background: var(--white); border: .75px solid var(--ink); padding: 8px 12px; font-size: 10.5px; line-height: 14px; font-weight: 600; text-transform: uppercase; opacity: 0; transform: translateX(-6px); transition: .35s var(--ease); }
.map:hover .map__label { opacity: 1; transform: none; }
.contacts-page .site-footer { margin-top: 57px; }

/* ==========================================================================
   Lightbox / Modal
   ========================================================================== */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(1, 26, 27, .94);
  display: flex; align-items: center; justify-content: center;
  padding: 60px var(--g);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close { position: absolute; top: 24px; right: var(--g); color: var(--green); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: var(--green); font-size: 36px; padding: 16px; }
.lightbox__nav--prev { left: 8px; }
.lightbox__nav--next { right: 8px; }
.lightbox__msg { color: var(--green); text-align: center; max-width: 520px; }
.lightbox__msg .t-h2 { margin-bottom: 16px; }

/* Toast (avisos do protótipo) */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 120;
  transform: translate(-50%, 20px);
  background: var(--ink); color: var(--green);
  padding: 14px 20px; font-size: 12px; font-weight: 600; letter-spacing: .04em;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease), transform .35s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ==========================================================================
   Animações de entrada
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .hero__logo img, .hero__lines, .menu-nav a { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
  .site-footer__main { grid-template-columns: 1fr 1fr 1fr; row-gap: 48px; }
  .site-footer__brand { grid-column: 1 / -1; }
  .newsletter { grid-column: 1 / -1; max-width: 420px; }
  .contact__light { padding: 80px 10% 64px; }
  .duo__text { padding-left: 0; }
}

@media (max-width: 900px) {
  :root { --header-h: 64px; }
  .site-header__logo { width: 128px; padding-top: 4px; }
  .site-header .social { display: none; }
  .menu-toggle { gap: 12px; }

  .split, .duo { grid-template-columns: 1fr; row-gap: 40px; }
  .split__text, .split__media, .duo__block, .duo__text { grid-column: 1; max-width: none; }
  .intro__media--tall, .people__media { width: 100%; }
  .about__text h2, .intro__text h2, .project-intro .split__text h2 { margin-bottom: 32px; }
  .about__text .btn { margin-top: 40px; }
  .about__badge { display: none; }

  .home-portfolio__grid { grid-template-columns: 1fr 1fr; row-gap: var(--col-gap); }
  .home-portfolio__grid .media:first-child { grid-column: 1 / -1; height: 60vw; }
  .home-portfolio__grid .media { height: 70vw; }

  .grid-4 { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .claim__box { min-height: 360px; padding: 32px 24px 40px; }

  .contact { grid-template-columns: 1fr; }
  .contact__dark { min-height: 360px; padding: 32px 24px; }
  .contact__light { padding: 48px 24px; }
  .contact-block { margin-top: 80px; }

  .trio { grid-template-columns: 1fr 1fr; row-gap: 16px; }
  .trio .media { height: 60vw; }
  .trio .media:last-child { grid-column: 1 / -1; }

  .pf-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .pf-grid > * { height: 62vw; }
  .pf-grid .span-2 { grid-column: 1 / -1; height: 60vw; }
  .pf-tile { font-size: 22px; line-height: 24px; padding: 20px; }
  .pf-tile::after { opacity: 1; transform: none; left: 20px; bottom: 20px; }

  .gallery { grid-template-columns: 1fr 1fr; row-gap: var(--col-gap); }
  .gallery .media--video { grid-column: 1 / -1; aspect-ratio: 16 / 9; height: auto; }
  .spec { margin-top: 72px; }
  .spec__grid { grid-template-columns: 1fr; }
  .spec__title, .spec__body { grid-column: 1; }
  .spec__body { margin-top: 32px; }
  .units-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .units { min-width: 560px; }
  .floor__head, .download { font-size: 22px; height: 64px; }
  .download span:last-child { padding-right: 0; }

  .menu-overlay .wrap { grid-template-columns: 1fr; grid-template-rows: 1fr auto; }
  .menu-nav { grid-column: 1; }
  .menu-aside { grid-column: 1; grid-row: 2; margin-top: 40px; }

  .map__label { display: none; }
}

@media (max-width: 560px) {
  .grid-4 { grid-template-columns: 1fr; }
  .card__title { min-height: 0; }
  .card::after { margin-top: 32px; }
  .home-portfolio__grid { grid-template-columns: 1fr; }
  .home-portfolio__grid .media, .home-portfolio__grid .media:first-child { grid-column: 1; height: 100vw; }
  .section-top { flex-direction: column; gap: 24px; margin-bottom: 32px; }
  .site-footer__main { grid-template-columns: 1fr 1fr; padding-top: 56px; }
  .site-footer__bar .wrap { flex-direction: column; justify-content: center; gap: 8px; height: auto; padding-top: 16px; padding-bottom: 16px; text-align: center; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-grid > *, .pf-grid .span-2 { grid-column: 1; height: 110vw; }
  .pf-grid .pf-tile { height: 140px; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .trio .media, .trio .media:last-child { grid-column: 1; height: 100vw; }
  .menu-toggle__label { display: none; }
}

button.media { display: block; width: 100%; padding: 0; }
.project-contact { margin-top: 99px; border: 0; padding: 0; }
.project-contact + .contact-block { margin-top: 61px; }

@media (max-width: 900px) {
  .hero { height: 72vh; height: 72svh; min-height: 380px; }
  .hero__lines { background-size: cover; background-position: 64% top; }
  .hero__logo { bottom: 20px; }
}


/* ==========================================================================
   Hero animado em código (recria a animação do vídeo de blending.pt)
   Ocupa o ecrã inteiro (por baixo do header) e adapta-se a qualquer formato.
   As posições são calculadas em JS (app.js → heroAnimation).
   ========================================================================== */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.hero--anim {
  --line: #3eb18d;
  margin-top: calc(var(--header-h) * -1);
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  max-height: none;
  background: var(--ink);
  overflow: hidden;
}
.hero--anim .hl { position: absolute; display: block; background: var(--line); width: 1px; height: 1px; transform: translateZ(0); }
.hero__claim {
  position: absolute;
  left: calc(max(0px, (100% - var(--max)) / 2) + var(--g) + 2px); /* alinhado com o header */
  top: calc(var(--header-h) + clamp(28px, 4.6vh, 42px));
  z-index: 2;
  color: var(--green);
  font-size: clamp(22px, 2.5vw, 36px);
  line-height: 1.19;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero__claim .ch { opacity: 0; }
.hero__claim .ch.on { opacity: 1; }
.hero__mark { position: absolute; overflow: visible; z-index: 1; }
.hero__mark path {
  fill: var(--green);
  fill-opacity: var(--fill, 1);
  stroke: var(--line);
  stroke-width: 1;
  stroke-opacity: var(--stroke, 0);
  vector-effect: non-scaling-stroke;
}
.hero__squares span { position: absolute; left: 0; top: 0; background: var(--green); opacity: 0; z-index: 3; will-change: transform; }

@media (max-width: 900px) {
  .hero--anim { height: 88vh; height: 88svh; min-height: 460px; }
}

/* ---------- Slider de imagens (página Blending) ---------- */
.slider { position: relative; }
.slider img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s var(--ease), transform 6s linear;
}
.slider img.is-active { opacity: 1; transform: scale(1); }
.slider__dots {
  display: flex; gap: 6px;
  width: calc(100% - 39px); margin: 14px 0 0 auto; /* alinhado com a imagem, por baixo */
}
.slider__dots button {
  flex: 1; height: 2px; padding: 8px 0; background: none; position: relative; cursor: pointer;
}
.slider__dots button::before {
  content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: rgba(43, 194, 148, .25);
}
.slider__dots button::after {
  content: ""; position: absolute; left: 0; top: 7px; height: 2px; width: 0; background: var(--green);
}
.slider__dots button.is-done::after { width: 100%; }
.slider__dots button.is-active::after { animation: sliderBar var(--slide-time, 4.5s) linear forwards; }
.slider__dots.is-paused button.is-active::after { animation-play-state: paused; }
@keyframes sliderBar { from { width: 0; } to { width: 100%; } }
@media (max-width: 900px) { .slider__dots { width: 100%; } }
