/* For You To Live — estilos */
:root {
  --bg: #FAF8F5;
  --stone: #E8E1D6;
  --ink: #1F2328;
  --ink-soft: #5A5F66;
  --slate: #3B4654;
  --gold: #B8925A;
  --line: rgba(31, 35, 40, .12);
  --white: #fff;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Idiomas: os dois textos estão no HTML, mostra-se só um */
html[data-lang="pt"] [lang="en"]:not(html),
html[data-lang="en"] [lang="pt"]:not(html) { display: none !important; }

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

/* Tipografia */
h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-size: .72rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 36px; height: 1px; background: currentColor; }
.lead { font-size: 1.12rem; color: var(--ink-soft); max-width: 46ch; }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; font-size: .78rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
  border: 1px solid currentColor; transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn-solid { background: var(--slate); border-color: var(--slate); color: var(--white); }
.btn-solid:hover { background: var(--ink); border-color: var(--ink); }
.btn-light { color: var(--white); }
.btn-light:hover { background: var(--white); color: var(--ink); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn-gold:hover { background: transparent; color: var(--gold); }
.btn .arrow { transition: transform .35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* Cabeçalho */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  color: var(--white);
  transition: background .4s var(--ease), color .4s var(--ease), box-shadow .4s var(--ease);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; height: 84px; gap: 24px; }
.header.solid, .header.always-solid { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.logo { display: flex; flex-direction: column; line-height: 1; }
.logo-name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; letter-spacing: .01em; }
.logo-tag { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; opacity: .75; margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 34px; }
.nav a { font-size: .82rem; font-weight: 500; letter-spacing: .04em; position: relative; padding: 6px 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 18px; }
.lang-toggle { font-size: .75rem; font-weight: 600; letter-spacing: .12em; display: flex; gap: 6px; }
.lang-toggle button { opacity: .5; padding: 4px 2px; }
.lang-toggle button[aria-pressed="true"] { opacity: 1; border-bottom: 1px solid var(--gold); }
.header .btn { padding: 12px 20px; }
.header:not(.solid):not(.always-solid) .btn-solid { background: transparent; border-color: rgba(255,255,255,.7); }
.header:not(.solid):not(.always-solid) .btn-solid:hover { background: var(--white); color: var(--ink); }
.menu-btn { display: none; width: 44px; height: 44px; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor; transition: transform .3s var(--ease), opacity .3s; }
.menu-btn span:nth-child(1) { top: 16px; } .menu-btn span:nth-child(2) { top: 22px; } .menu-btn span:nth-child(3) { top: 28px; }
.menu-open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
.menu-open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: var(--white); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 45%; will-change: transform; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,.55) 0%, rgba(20,22,26,.15) 35%, rgba(20,22,26,.72) 100%); }
.hero .wrap { position: relative; z-index: 2; padding-bottom: clamp(64px, 11vh, 120px); }
.hero h1 { max-width: 13ch; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 44ch; opacity: .9; margin: 26px 0 38px; }
.hero .eyebrow { color: #E2C79E; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.scroll-cue { position: absolute; right: var(--gutter); bottom: 40px; z-index: 2; writing-mode: vertical-rl; font-size: .66rem; letter-spacing: .3em; text-transform: uppercase; opacity: .7; display: flex; align-items: center; gap: 14px; }
.scroll-cue::after { content: ""; width: 1px; height: 60px; background: currentColor; animation: cue 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* Faixa de números */
.stats { border-bottom: 1px solid var(--line); }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 46px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-num { font-family: var(--serif); font-size: clamp(2.4rem, 4vw, 3.4rem); line-height: 1; color: var(--slate); }
.stat-label { font-size: .8rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: 10px; }

/* Secções */
section { scroll-margin-top: 84px; }
.section { padding: clamp(80px, 12vw, 150px) 0; }
.section-stone { background: var(--stone); }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(44px, 6vw, 72px); flex-wrap: wrap; }
.section-head .lead { margin: 0; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.about-media { position: relative; }
.about-media img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.about-media::before { content: ""; position: absolute; inset: 28px -28px -28px 28px; border: 1px solid var(--gold); z-index: -1; }
.about h2 { margin-bottom: 30px; }
.about-points { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 16px; }
.about-points li { display: flex; gap: 16px; align-items: baseline; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.about-points li::before { content: ""; flex: 0 0 8px; height: 8px; background: var(--gold); transform: rotate(45deg) translateY(-2px); }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service { padding: 44px 36px 48px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .4s var(--ease); position: relative; }
.service:hover { background: var(--bg); }
.service-num { font-size: .72rem; letter-spacing: .2em; color: var(--gold); }
.service svg { width: 40px; height: 40px; stroke: var(--slate); stroke-width: 1.2; fill: none; margin: 26px 0 22px; }
.service h3 { margin-bottom: 12px; }
.service p { color: var(--ink-soft); font-size: .95rem; margin: 0; }
.services-group { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--slate); margin: 0 0 18px; }
.services + .services-group { margin-top: 56px; }
.services-2 { grid-template-columns: repeat(2, 1fr); }

/* Projetos */
.project-feature { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; background: var(--white); box-shadow: 0 30px 60px -40px rgba(31,35,40,.35); }
.project-feature-media { overflow: hidden; position: relative; min-height: 460px; }
.project-feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.project-feature:hover .project-feature-media img { transform: scale(1.04); }
.project-feature-body { padding: clamp(32px, 4vw, 60px); display: flex; flex-direction: column; justify-content: center; }
.tag { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); }
.project-feature h3 { font-size: clamp(2rem, 3vw, 2.8rem); margin: 14px 0 6px; }
.project-meta { font-size: .88rem; color: var(--ink-soft); margin-bottom: 22px; }
.project-feature .btn { align-self: flex-start; margin-top: 12px; }
.project-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 14px; }
.project-strip a { overflow: hidden; aspect-ratio: 4/3; display: block; }
.project-strip img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease), filter .4s; }
.project-strip a:hover img { transform: scale(1.06); }
.more-soon { margin-top: 36px; font-size: .9rem; color: var(--ink-soft); }

/* Processo */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: step; position: relative; }
.process::before { content: ""; position: absolute; top: 27px; left: 28px; right: 28px; height: 1px; background: var(--line); }
.step { position: relative; padding-right: 26px; }
.step-dot { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--gold); background: var(--bg); display: grid; place-items: center; font-family: var(--serif); font-size: 1.4rem; color: var(--slate); position: relative; z-index: 1; margin-bottom: 26px; }
.section-stone .step-dot { background: var(--stone); }
.step h3 { font-size: 1.35rem; margin-bottom: 10px; }
.step p { font-size: .92rem; color: var(--ink-soft); margin: 0; }

/* Equipa */
.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.member-photo { aspect-ratio: 3/4; background: var(--stone); display: grid; place-items: center; overflow: hidden; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; }
.member-photo span { font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.team-2 { grid-template-columns: repeat(2, minmax(0, 340px)); }
.member-photo .initials { font-family: var(--serif); font-size: 4.5rem; letter-spacing: .04em; color: var(--slate); text-transform: none; opacity: .55; }
.member h3 { font-size: 1.35rem; margin-top: 16px; }
.member p { font-size: .85rem; color: var(--ink-soft); margin: 2px 0 0; }

/* CTA */
.cta { position: relative; color: var(--white); text-align: center; overflow: hidden; }
.cta-media { position: absolute; inset: 0; }
.cta-media img { width: 100%; height: 120%; object-fit: cover; will-change: transform; }
.cta::after { content: ""; position: absolute; inset: 0; background: rgba(20,22,26,.62); }
.cta .wrap { position: relative; z-index: 1; padding-top: clamp(100px, 14vw, 180px); padding-bottom: clamp(100px, 14vw, 180px); }
.cta h2 { max-width: 16ch; margin: 0 auto 36px; }

/* Contactos */
.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(40px, 6vw, 90px); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid rgba(31,35,40,.3);
  padding: 10px 0 12px; border-radius: 0; transition: border-color .3s;
  -webkit-appearance: none; appearance: none;
}
.field select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: #B4483C; }
.field .error { font-size: .78rem; color: #B4483C; min-height: 1em; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 6px; }
.form-note { font-size: .82rem; color: var(--ink-soft); margin: 0; }
.contact-info { display: grid; gap: 30px; align-content: start; }
.info-item .label { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.info-item a, .info-item p { font-family: var(--serif); font-size: 1.5rem; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.footer li, .footer a { overflow-wrap: anywhere; }
.info-item a:hover { color: var(--slate); }
.map { aspect-ratio: 16/10; border: 0; width: 100%; filter: grayscale(1) contrast(.95); background: var(--stone); }

/* Rodapé */
.footer { background: var(--ink); color: rgba(255,255,255,.72); padding: 80px 0 36px; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer .logo { color: var(--white); margin-bottom: 18px; }
.footer h4 { font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); margin: 0 0 18px; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer a:hover { color: var(--white); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a { width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.25); display: grid; place-items: center; transition: border-color .3s, background .3s; }
.socials a:hover { border-color: var(--gold); background: var(--gold); }
.socials svg { width: 17px; height: 17px; fill: currentColor; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 28px; font-size: .78rem; color: rgba(255,255,255,.5); }

/* WhatsApp */
.whatsapp { position: fixed; right: 22px; bottom: 22px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: grid; place-items: center; box-shadow: 0 12px 30px -8px rgba(0,0,0,.35); transition: transform .3s var(--ease); }
.whatsapp:hover { transform: scale(1.07); }
.whatsapp svg { width: 30px; height: 30px; fill: #fff; }

/* Página de projeto */
.project-hero { position: relative; height: 82svh; min-height: 520px; color: var(--white); display: flex; align-items: flex-end; overflow: hidden; }
.project-hero img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.project-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,.5) 0%, rgba(20,22,26,.1) 40%, rgba(20,22,26,.7) 100%); }
.project-hero .wrap { position: relative; z-index: 1; padding-bottom: 70px; }
.back-link { display: inline-flex; gap: 10px; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 26px; opacity: .85; }
.back-link:hover { opacity: 1; }
.project-intro { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(40px, 7vw, 100px); }
.project-intro p { font-size: 1.12rem; color: var(--ink-soft); }
.facts { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.fact { padding: 22px 0; border-bottom: 1px solid var(--line); }
.fact:nth-child(odd) { padding-right: 20px; }
.fact .label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.fact .value { font-family: var(--serif); font-size: 1.45rem; margin-top: 4px; }
.gallery { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.gallery figure { margin: 0; grid-column: span 2; position: relative; overflow: hidden; cursor: zoom-in; background: var(--stone); }
.gallery figure.wide { grid-column: span 3; }
.gallery figure.full { grid-column: span 6; }
.gallery img { width: 100%; height: 100%; aspect-ratio: 3/2; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure.full img { aspect-ratio: 21/9; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 18px 14px; font-size: .8rem; letter-spacing: .06em; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); opacity: 0; transform: translateY(8px); transition: opacity .35s, transform .35s var(--ease); }
.gallery figure:hover figcaption, .gallery figure:focus-visible figcaption { opacity: 1; transform: none; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(14,15,18,.96); display: none; align-items: center; justify-content: center; color: #fff; touch-action: pan-y; }
.lightbox.open { display: flex; }
.lightbox img { max-width: min(92vw, 1400px); max-height: 80vh; object-fit: contain; user-select: none; }
.lb-caption { position: absolute; left: 0; right: 0; bottom: 28px; text-align: center; font-size: .85rem; letter-spacing: .06em; opacity: .85; }
.lb-btn { position: absolute; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.3); border-radius: 50%; transition: background .3s, border-color .3s; }
.lb-btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lb-btn svg { width: 20px; height: 20px; stroke: #fff; stroke-width: 1.5; fill: none; }
.lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lb-close { right: 24px; top: 24px; }
.lb-count { position: absolute; left: 28px; top: 34px; font-size: .78rem; letter-spacing: .2em; opacity: .7; }

/* Animações ao fazer scroll */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; } .reveal-delay-2 { transition-delay: .2s; } .reveal-delay-3 { transition-delay: .3s; } .reveal-delay-4 { transition-delay: .4s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .scroll-cue::after { animation: none; }
}

/* Responsivo */
@media (max-width: 1080px) {
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: block; }
  .menu-open .nav {
    display: flex; position: fixed; inset: 84px 0 0; flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 6px; padding: 30px var(--gutter); background: var(--bg); color: var(--ink);
  }
  .menu-open .nav a { font-family: var(--serif); font-size: 2rem; }
  body.menu-open .header { background: var(--bg); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
  body.menu-open { overflow: hidden; }
  .process { grid-template-columns: 1fr; gap: 34px; }
  .process::before { top: 28px; bottom: 28px; left: 27px; right: auto; width: 1px; height: auto; }
  .step { display: grid; grid-template-columns: 56px 1fr; gap: 0 24px; padding: 0; }
  .step-dot { margin: 0; grid-row: span 2; }
  .services { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .about, .contact, .project-feature, .project-intro { grid-template-columns: 1fr; }
  .about-media::before { inset: 18px -12px -18px 18px; }
  .project-feature-media { min-height: 300px; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 30px 18px; border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:nth-child(odd) { padding-left: 0; }
  .project-strip { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery figure, .gallery figure.wide { grid-column: span 1; }
  .gallery figure.full { grid-column: span 2; }
  .gallery figure.full img { aspect-ratio: 3/2; }
  .scroll-cue { display: none; }
}
@media (max-width: 560px) {
  .header .wrap { height: 72px; }
  .menu-open .nav { inset: 72px 0 0; }
  .logo-name { font-size: 1.45rem; }
  .services, .team { grid-template-columns: 1fr; }
  .form { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { padding-right: 0; }
  .lb-prev, .lb-next { top: auto; bottom: 70px; transform: none; }
  .whatsapp { width: 52px; height: 52px; right: 16px; bottom: 16px; }
}
