@import url("../fonts/fonts.css");

/* ---------- Tokens ---------- */
:root {
  --brand: #805132;        /* castanho marca */
  --walnut: #503828;       /* nogueira */
  --oak: #B69677;          /* carvalho */
  --linen: #EEE3D3;        /* linho */
  --white: #FFFFFF;
  --ink: #2B1E16;          /* texto principal */
  --ink-soft: #5B493C;     /* texto secundário (AA sobre branco e linho) */
  --line: #DCCDB7;
  --linen-deep: #E4D6C1;
  --walnut-deep: #3A2819;  /* fundo das secções escuras */
  --focus: #805132;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1280px;
  --gutter: 16px;
  --radius: 2px;
  --ease: cubic-bezier(.2,.7,.2,1);
}
@media (min-width: 768px) { :root { --gutter: 28px; } }
@media (min-width: 1024px) { :root { --gutter: 48px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.6; color: var(--ink); background: var(--white); overflow-x: hidden; }
img, picture, video { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.15em; }
a:hover { color: var(--walnut); }
.tile:hover, .strip__item:hover, .details__item a:hover, .hero__credit:hover { color: var(--white); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.1; letter-spacing: -0.012em; margin: 0 0 0.5em; color: var(--walnut); text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 1.2rem + 2vw, 2.6rem); }
h3, .h3 { font-size: 1.45rem; }
h4, .h4 { font-size: 1.125rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 66ch; }
.lead { font-size: 1.2rem; line-height: 1.5; color: var(--ink-soft); max-width: 58ch; }
.statement { font-family: var(--font-display); font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); line-height: 1.35; color: var(--walnut); max-width: 30ch; }
.muted { color: var(--ink-soft); } .small { font-size: 0.9rem; } .mt { margin-top: 2.5rem; }
ul, ol { padding-left: 1.2em; } dl { margin: 0; } address { font-style: normal; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(3.5rem, 7vw, 6.5rem); }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--narrow { max-width: 800px; }
.section--linen { background: var(--linen); }
.section__head { margin-bottom: 2.25rem; max-width: 60ch; }
.section__head p { color: var(--ink-soft); margin-bottom: 0; }
.section__head--page { margin-bottom: 2.5rem; }
.section__head--light h1, .section__head--light h2, .section__head--light h3 { color: var(--linen); }
.section__head--light p { color: #D9C9B3; }
.section__head--row { display: grid; gap: 1rem; max-width: none; align-items: end; }
@media (min-width: 900px) { .section__head--row { grid-template-columns: 1fr 1fr; } .section__head--row p { max-width: 48ch; justify-self: end; } }
.section__more { margin-top: 2rem; }
.actions { margin-top: 1.5rem; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--walnut); color: #fff; padding: 0.6rem 1rem; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Régua (motivo "à medida") ---------- */
.rule {
  display: block; width: 112px; height: 14px; margin: 0.2rem 0 1.1rem;
  background:
    repeating-linear-gradient(to right, var(--oak) 0 1px, transparent 1px 8px) left bottom / 100% 6px no-repeat,
    repeating-linear-gradient(to right, var(--oak) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat;
  border-bottom: 1px solid var(--oak);
}
.rule--light { filter: brightness(1.25); }
.rule--wide { width: 100%; }

/* ---------- Botões ---------- */
.button {
  display: inline-block; font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.2;
  padding: 0.9rem 1.6rem; background: var(--brand); color: var(--white); border: 2px solid var(--brand);
  border-radius: var(--radius); text-decoration: none; cursor: pointer; transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.button:hover { background: var(--walnut); border-color: var(--walnut); color: var(--white); }
.button--ghost { background: transparent; color: var(--brand); }
.button--ghost:hover { background: var(--linen); color: var(--walnut); }
.button--light { background: var(--linen); border-color: var(--linen); color: var(--walnut); }
.button--light:hover { background: var(--white); border-color: var(--white); color: var(--walnut); }
.button--outline-light { background: transparent; border-color: rgba(238,227,211,.8); color: var(--white); }
.button--outline-light:hover { background: rgba(238,227,211,.15); border-color: var(--linen); color: var(--white); }
.button--small { padding: 0.55rem 1rem; font-size: 0.95rem; }
.button + .button { margin-left: 0.5rem; }

/* ---------- Cabeçalho ---------- */
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: relative; z-index: 5; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; flex-wrap: wrap; }
.brand img { width: 170px; height: auto; }
@media (min-width: 700px) { .brand img { width: 220px; } }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(0.75rem, 2vw, 1.75rem); align-items: center; }
.site-nav a:not(.button) { color: var(--ink); text-decoration: none; font-weight: 500; padding: 0.5rem 0; border-bottom: 2px solid transparent; }
.site-nav a:not(.button):hover, .site-nav a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--walnut); }
.nav-toggle { display: none; }
@media (max-width: 899px) {
  .js .nav-toggle { display: inline-flex; align-items: center; gap: 0.5rem; background: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 0.5rem 0.8rem; font: inherit; font-weight: 500; color: var(--ink); cursor: pointer; }
  .nav-toggle__bars { width: 20px; height: 2px; background: var(--ink); position: relative; display: block; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); }
  .nav-toggle__bars::before { top: -6px; } .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav { flex-basis: 100%; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding-block: 0.5rem 1rem; border-top: 1px solid var(--line); }
  .site-nav li { border-bottom: 1px solid var(--line); }
  .site-nav a:not(.button) { display: block; padding: 0.9rem 0.25rem; border-bottom: 0; }
  .site-nav a[aria-current="page"] { border-left: 3px solid var(--brand); padding-left: 0.75rem; }
  .site-nav__cta { border-bottom: 0 !important; padding-top: 0.9rem; }
  .site-nav__cta .button { display: block; text-align: center; }
}

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { padding-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }
.breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.breadcrumbs li + li::before { content: "/"; margin-right: 0.35rem; color: var(--oak); }
.breadcrumbs a { color: var(--ink-soft); }

/* ---------- Hero (montagem de fotografias) ---------- */
.hero { position: relative; min-height: clamp(560px, 86vh, 820px); display: grid; grid-template-rows: 1fr auto; background: var(--walnut-deep); color: var(--white); isolation: isolate; overflow: hidden; }
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.8s var(--ease); will-change: opacity; }
.hero__slide.is-active { opacity: 1; }
.hero__slide picture, .hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.hero--montage .hero__slide img { transform: scale(1.06); transform-origin: 50% 50%; }
.hero--montage.is-playing .hero__slide.is-active img { animation: kb-a 9s linear forwards; }
.hero--montage.is-playing .hero__slide.is-active:nth-child(even) img { animation-name: kb-b; }
.hero--montage.is-playing .hero__slide.is-active:nth-child(3n) img { animation-name: kb-c; }
@keyframes kb-a { from { transform: scale(1.06) translate(0, 0); } to { transform: scale(1.16) translate(-1.5%, -1%); } }
@keyframes kb-b { from { transform: scale(1.16) translate(1.5%, 0); } to { transform: scale(1.06) translate(0, 0); } }
@keyframes kb-c { from { transform: scale(1.06) translate(0, 1%); } to { transform: scale(1.14) translate(1.2%, -1.2%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(43,30,22,.94) 0%, rgba(43,30,22,.72) 32%, rgba(43,30,22,.25) 62%, rgba(43,30,22,.05) 100%); }
.hero__content { position: relative; align-self: end; padding-top: clamp(6rem, 18vh, 10rem); padding-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.hero__title { font-size: clamp(2.5rem, 1.4rem + 5.2vw, 5.6rem); font-weight: 300; line-height: 0.98; letter-spacing: -0.02em; color: var(--white); margin: 0 0 1rem; max-width: 16ch; animation: hero-in .9s var(--ease) both; }
.hero__title-line { display: block; color: var(--linen); }
.hero__lead { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.35rem); color: var(--linen); max-width: 46ch; margin-bottom: 1.75rem; animation: hero-in .9s .15s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; animation: hero-in .9s .3s var(--ease) both; }
.hero__actions .button + .button { margin-left: 0; }
.hero__bar { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; padding-bottom: 1rem; font-size: 0.8rem; }
.hero__credit { color: var(--linen); text-decoration: none; opacity: .85; max-width: 60%; }
.hero__credit span { display: block; color: var(--oak); }
.hero__credit em { font-style: normal; }
.hero__credit:hover { color: var(--white); opacity: 1; }
.hero__controls { display: flex; align-items: center; gap: 0.75rem; }
.hero__dots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.hero__dots li { width: 22px; height: 3px; background: rgba(238,227,211,.35); border-radius: 2px; overflow: hidden; position: relative; }
.hero__dots li.is-active { background: rgba(238,227,211,.35); }
.hero__dots li.is-active::after { content: ""; position: absolute; inset: 0; background: var(--linen); transform-origin: left; transform: scaleX(0); }
.hero--montage.is-playing .hero__dots li.is-active::after { animation: dot-fill 7s linear forwards; }
.hero--montage:not(.is-playing) .hero__dots li.is-active::after { transform: scaleX(1); }
@keyframes dot-fill { to { transform: scaleX(1); } }
.hero__pause { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(238,227,211,.6); background: rgba(43,30,22,.4); cursor: pointer; display: grid; place-items: center; padding: 0; }
.hero__pause:hover { background: rgba(43,30,22,.7); }
.hero__pause-icon { width: 10px; height: 12px; border-left: 3px solid var(--linen); border-right: 3px solid var(--linen); }
.hero__pause[aria-pressed="true"] .hero__pause-icon { width: 0; height: 0; border: 0; border-left: 10px solid var(--linen); border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.hero__pause:focus-visible { outline-color: var(--linen); }
@media (max-width: 599px) { .hero { min-height: clamp(520px, 78vh, 680px); } .hero__bar { flex-direction: column; align-items: flex-start; } .hero__credit { max-width: none; } }
@keyframes hero-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } .hero__controls { display: none; } }

/* ---------- Cabeçalho de página com fotografia ---------- */
.page-hero { position: relative; background: var(--walnut-deep); color: var(--white); isolation: isolate; overflow: hidden; display: grid; align-items: end; min-height: clamp(300px, 46vh, 520px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media picture, .page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(43,30,22,.92) 0%, rgba(43,30,22,.6) 45%, rgba(43,30,22,.2) 100%); }
.page-hero--plain { min-height: 0; background: var(--walnut-deep) url("../img/faixa-encaixes.svg") repeat-x left top / auto 10px; }
.page-hero__inner { position: relative; padding-top: clamp(3rem, 8vh, 5rem); padding-bottom: clamp(2rem, 4vw, 3rem); }
.page-hero__title { color: var(--white); font-weight: 300; font-size: clamp(2.4rem, 1.4rem + 3.8vw, 4.2rem); margin-bottom: 0.35em; }
.page-hero__lead { color: var(--linen); font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); max-width: 56ch; margin: 0; }
.breadcrumbs--light { padding-top: 0; margin-bottom: 1.5rem; color: var(--linen); }
.breadcrumbs--light a { color: var(--linen); }
.breadcrumbs--light li + li::before { color: var(--oak); }

/* ---------- Factos (régua larga) ---------- */
.facts { background: var(--white); border-bottom: 1px solid var(--line); }
.facts--inline { border-top: 1px solid var(--line); }
.facts__list { list-style: none; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 0 1.5rem; padding-block: 0; }
.facts__list li { padding: 1.4rem 0 1.2rem; display: grid; gap: 0.1rem; border-top: 1px solid var(--line);
  background: repeating-linear-gradient(to right, var(--oak) 0 1px, transparent 1px 8px) left top / 100% 5px no-repeat; }
.facts__list li:nth-child(-n+2) { border-top: 0; }
.facts__list strong { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.1rem); color: var(--walnut); line-height: 1.1; }
.facts__list span { color: var(--ink-soft); font-size: 0.92rem; }
@media (min-width: 900px) { .facts__list { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0 2.5rem; } .facts__list li { border-top: 0; } }

/* ---------- Mosaico de serviços (home) ---------- */
.tiles { display: grid; gap: 1rem; grid-template-columns: minmax(0,1fr); }
.tiles > * { min-width: 0; }
.tile { position: relative; display: block; min-height: 300px; background: var(--walnut); color: var(--white); text-decoration: none; overflow: hidden; isolation: isolate; }
.tile__media { position: absolute; inset: 0; z-index: -1; }
.tile__media picture, .tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.tile:hover .tile__media img { transform: scale(1.04); }
.tile::before { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(to top, rgba(43,30,22,.92) 0%, rgba(43,30,22,.45) 45%, rgba(43,30,22,0) 75%); transition: opacity .5s var(--ease); }
.tile:hover::before { opacity: .85; }
.tile__title::after, .strip__title::after { content: ""; display: block; width: 0; height: 2px; background: var(--oak); margin-top: 0.35rem; transition: width .45s var(--ease); }
.tile:hover .tile__title::after, .strip__item:hover .strip__title::after { width: 3rem; }
.tile__tag, .service-tile__tag { position: absolute; top: 0.75rem; right: 0.75rem; z-index: 1; font-size: 0.72rem; letter-spacing: 0.02em; background: rgba(43,30,22,.7); color: var(--linen); padding: 0.2rem 0.55rem; border-radius: 999px; }
.tile__panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; }
.tile__title { font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2.2rem); color: var(--white); margin-bottom: 0.25rem; }
.tile__panel p { margin: 0; color: var(--linen); max-width: 36ch; }
.tile--dark { background: var(--walnut-deep) url("../img/faixa-encaixes.svg") repeat-x left top 1.75rem / auto 40px; }
.tile--dark::before { background: none; }
.tile--dark .tile__panel { background: var(--walnut-deep); padding-top: 1.25rem; }
@media (min-width: 720px) {
  .tiles { grid-template-columns: repeat(12, minmax(0,1fr)); grid-auto-rows: 260px; gap: 1.25rem; }
  .tile--1 { grid-column: span 7; grid-row: span 2; }
  .tile--2 { grid-column: span 5; }
  .tile--3 { grid-column: span 5; }
  .tile--4 { grid-column: span 12; grid-row: span 1; }
  .tile { min-height: 0; }
}
@media (min-width: 1024px) { .tiles { grid-auto-rows: 300px; } .tile__panel { padding: 2rem; } }

/* ---------- Faixa deslizável de trabalhos ---------- */
.strip-section { overflow: hidden; }
.js .strip-section.is-pinned { overflow: visible; padding-block: 0; }
.js .strip-section.is-pinned .strip-pin { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 2rem; overflow: hidden; }
.js .strip-section.is-pinned .section__head { margin-bottom: 0; }
.js .strip-section.is-pinned .strip { overflow: visible; scroll-snap-type: none; padding-bottom: 0; will-change: transform; transform: translate3d(var(--strip-x, 0px), 0, 0); }
.js .strip-section.is-pinned .strip__item { flex-basis: min(42vw, 620px); }
.strip { display: flex; gap: 1.25rem; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 1.25rem; scroll-padding-left: var(--gutter); -webkit-overflow-scrolling: touch; scrollbar-color: var(--oak) transparent; }
.strip::after { content: ""; flex: 0 0 1px; }
@media (min-width: 1280px) { .strip { padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); scroll-padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2 + var(--gutter))); } }
.strip__item { position: relative; flex: 0 0 min(82vw, 560px); aspect-ratio: 4 / 3; scroll-snap-align: start; background: var(--linen-deep); text-decoration: none; color: var(--white); overflow: hidden; isolation: isolate; }
.strip__item picture, .strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.strip__item:hover img { transform: scale(1.03); }
.strip__panel { position: absolute; left: 0; right: 0; bottom: 0; padding: 3rem 1.25rem 1.1rem; background: linear-gradient(to top, rgba(43,30,22,.9), rgba(43,30,22,0)); display: grid; gap: 0.15rem; }
.strip__title { font-family: var(--font-display); font-size: 1.4rem; line-height: 1.15; color: var(--white); }
.strip__meta { font-size: 0.88rem; color: var(--linen); }
.strip__item--more { display: grid; place-items: center; background: var(--walnut); font-family: var(--font-display); font-size: 1.5rem; flex-basis: min(60vw, 320px); text-align: center; padding: 1rem; }
.strip__item--more:hover { background: var(--walnut-deep); }

/* ---------- Processo (secção escura) ---------- */
.process { background: var(--walnut-deep); color: var(--linen); padding-block: clamp(3.5rem, 7vw, 6.5rem); background-image: url("../img/faixa-encaixes.svg"); background-repeat: repeat-x; background-position: left top; background-size: auto 10px; }
.process__grid { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .process__grid { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 5rem; align-items: start; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2rem; counter-reset: none; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, minmax(0,1fr)); gap: 2.5rem; } .steps--column { grid-template-columns: 1fr; gap: 1.75rem; } }
.steps__item { border-top: 1px solid rgba(182,150,119,.45); padding-top: 1.25rem; }
.steps__n { display: block; font-family: var(--font-display); font-size: 2.4rem; font-weight: 300; color: var(--oak); line-height: 1; margin-bottom: 0.75rem; }
.steps__item h3 { color: var(--white); font-size: 1.35rem; margin-bottom: 0.4rem; }
.steps__item p { color: #D9C9B3; margin: 0; }

/* ---------- Pormenores ---------- */
.details { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1rem; }
@media (min-width: 640px) { .details { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (min-width: 1024px) { .details { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 1.25rem; } .details--four { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.details__item a { display: block; text-decoration: none; color: inherit; }
.details__item picture { aspect-ratio: 1 / 1; overflow: hidden; background: var(--linen-deep); }
.details__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.details__item a:hover img { transform: scale(1.04); }
.details__caption { display: block; padding-top: 0.6rem; font-size: 0.92rem; color: var(--ink-soft); border-top: 2px solid var(--oak); margin-top: 0.6rem; }

/* ---------- História ---------- */
.history { padding-block: clamp(3.5rem, 7vw, 6.5rem); background: var(--linen); }
.history__grid { display: grid; gap: 1rem; align-items: center; }
.history__year { font-family: var(--font-display); font-weight: 300; font-size: clamp(6rem, 4rem + 14vw, 17rem); line-height: 0.85; color: var(--oak); margin: 0; letter-spacing: -0.04em; }
.history__text h2 { margin-bottom: 0.4em; }
@media (min-width: 900px) { .history__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 4rem; } }

/* ---------- Faixa de encaixes ---------- */
.band { background: var(--linen) url("../img/faixa-encaixes.svg") repeat-x center / auto 100%; height: 40px; }
.band--separator { height: 32px; }
.band--footer { height: 56px; }

/* ---------- Convite (antes do rodapé) ---------- */
.cta { background: var(--white); padding-block: clamp(3.5rem, 7vw, 6rem); }
.cta__grid { display: grid; gap: 2.5rem; }
@media (min-width: 900px) { .cta__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 5rem; align-items: center; } }
.cta__title { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.4rem); font-weight: 300; margin-bottom: 0.5em; }
.cta__text p { color: var(--ink-soft); max-width: 48ch; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.cta__actions .button + .button { margin-left: 0; }
.cta__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--line); }
.cta__steps li { display: grid; grid-template-columns: 2.5rem 1fr; gap: 0.25rem 0.75rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); counter-increment: step; }
.cta__steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-display); font-size: 1.6rem; color: var(--oak); line-height: 1; grid-row: span 2; }
.cta__steps strong { font-weight: 600; color: var(--walnut); }
.cta__steps span { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Rodapé (mantido) ---------- */
.site-footer { background: var(--walnut); color: var(--linen); padding-block: 3rem 1.5rem; font-size: 0.95rem; }
.site-footer a { color: var(--white); }
.site-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1.5fr 1fr; gap: 3rem; } }
.site-footer__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); margin-bottom: 0.5rem; }
.site-footer__heading { font-family: var(--font-body); font-size: 0.95rem; font-weight: 600; color: var(--oak); margin-bottom: 0.75rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.site-footer__legal { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(238, 227, 211, 0.25); font-size: 0.85rem; color: var(--oak); }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; }
.site-footer__legal p { margin: 0; max-width: none; }
.site-footer__credit a { color: var(--linen); }

/* ---------- Sobre nós ---------- */
.about-intro { display: grid; gap: 2.5rem; }
@media (min-width: 960px) { .about-intro { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 5rem; align-items: center; } }
.about-intro > * { min-width: 0; }
.about-intro__figure { margin: 0; }
.about-intro__figure img { width: 100%; }
.materials { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; }
@media (min-width: 640px) { .materials { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .materials { grid-template-columns: repeat(3, minmax(0,1fr)); } }
.materials li { border-top: 1px solid var(--line); padding-top: 1rem; background: repeating-linear-gradient(to right, var(--oak) 0 1px, transparent 1px 8px) left top / 72px 5px no-repeat; }
.materials h3 { font-size: 1.3rem; margin-bottom: 0.3rem; }
.materials p { color: var(--ink-soft); margin: 0; font-size: 0.98rem; }
.area__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.area__list li { border: 1px solid var(--oak); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.98rem; }
.area__home { background: var(--walnut); color: var(--white); border-color: var(--walnut) !important; }
.area__home span { color: var(--oak); font-size: 0.85rem; margin-left: 0.35rem; }
.area__note { border-style: dashed !important; color: var(--ink-soft); }
.video-list { margin-top: 3rem; display: grid; gap: 2rem; }
@media (min-width: 800px) { .video-list { grid-template-columns: 1fr 1fr; } }
.video-list--flush { margin-top: 0; }

/* ---------- Grelha de projetos (portfólio) ---------- */
.project-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
.project-grid > * { min-width: 0; }
@media (min-width: 640px) { .project-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.75rem; } }
@media (min-width: 1024px) { .project-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 2.5rem 2rem; } }
.project-card__link { display: block; text-decoration: none; color: inherit; }
.project-card__media { background: var(--linen-deep); overflow: hidden; aspect-ratio: 4 / 3; }
.project-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.project-card__link:hover img { transform: scale(1.03); }
.project-card__empty { display: grid; place-items: center; height: 100%; color: var(--ink-soft); }
.project-card__body { padding: 0.9rem 0 0; }
.project-card__title { font-size: 1.35rem; margin-bottom: 0.15rem; }
.project-card__link:hover .project-card__title { color: var(--brand); }
.project-card__meta { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.project-grid--large .project-card__title { font-size: 1.5rem; }
.filters { margin-bottom: 2.25rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0.75rem 0; }
.filters ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.filters a { display: inline-block; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 0.5rem 1rem; font-size: 0.98rem; transition: background-color .2s var(--ease); }
.filters a:hover { background: var(--linen); }
.filters a[aria-current="page"] { background: var(--walnut); border-color: var(--walnut); color: var(--white); }
.filters .count { opacity: 0.7; font-size: 0.85em; margin-left: 0.2rem; }
.pagination { display: flex; gap: 1.5rem; align-items: center; margin-top: 2.5rem; }
.empty { color: var(--ink-soft); }

/* ---------- Serviços (página) ---------- */
.service-tiles { display: grid; gap: 2rem; }
@media (min-width: 800px) { .service-tiles { grid-template-columns: 1fr 1fr; gap: 2.5rem 3rem; } .service-tiles > :nth-child(even) { margin-top: 3rem; } }
.service-tile__link { display: block; text-decoration: none; color: inherit; }
.service-tile__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--linen-deep); margin-bottom: 1rem; }
.service-tile__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.service-tile__link:hover img { transform: scale(1.03); }
.service-tile__placeholder { height: 100%; background: var(--walnut-deep) url("../img/faixa-encaixes.svg") repeat-x bottom / auto 48px; }
.service-tile__title { font-size: 1.8rem; margin-bottom: 0.25rem; }
.service-tile__link:hover .service-tile__title { color: var(--brand); }
.service-tile p { color: var(--ink-soft); margin: 0; }
.capabilities__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .capabilities__grid { grid-template-columns: repeat(3, 1fr); gap: 3rem; } .capabilities__grid--two { grid-template-columns: repeat(2, 1fr); } }
.capabilities__item h3 { font-size: 1.3rem; }
.capabilities__item p { color: var(--ink-soft); margin: 0; }
.plain-list { display: grid; gap: 1.25rem; }
.plain-list > div { border-top: 1px solid var(--line); padding-top: 1rem; }
.plain-list dt { font-weight: 600; margin-bottom: 0.2rem; }
.plain-list dd { margin: 0; color: var(--ink-soft); max-width: 60ch; }
@media (min-width: 720px) { .plain-list { grid-template-columns: 1fr 1fr; column-gap: 3rem; } .plain-list--compact { grid-template-columns: repeat(3, 1fr); } }
.service-page { display: grid; gap: 2.5rem; }
.service-page > * { min-width: 0; }
@media (min-width: 960px) { .service-page { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: start; } }
.service-page__figure { margin: 0; }
.service-page__figure img { width: 100%; }
.service-page__figure figcaption { font-size: 0.9rem; color: var(--ink-soft); margin-top: 0.5rem; }
.inline-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }

/* ---------- Projeto ---------- */
.preview-banner { background: #FFF3C4; color: #4A3B00; border-bottom: 2px solid #E0B900; padding: 0.75rem var(--gutter); font-size: 0.95rem; }
.preview-banner a { margin-left: 1rem; }
.project__header { margin-bottom: 1.5rem; }
.project__facts { display: flex; flex-wrap: wrap; gap: 0.75rem 2.5rem; color: var(--ink-soft); font-size: 0.95rem; }
.project__facts dt { font-weight: 600; color: var(--ink); display: inline; }
.project__facts dt::after { content: ": "; }
.project__facts dd { display: inline; margin: 0; }
.project__facts-wide { flex-basis: 100%; }
.project__cover { margin: 0 0 2rem; }
.project__cover img { width: 100%; }
.project__cover figcaption, .gallery__caption { font-size: 0.9rem; color: var(--ink-soft); margin: 0.5rem 0 0; }
.project__body { display: grid; gap: 2rem; margin-bottom: 3rem; }
.project__body > * { min-width: 0; }
@media (min-width: 900px) { .project__body { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 4rem; } }
.project__aside { border-left: 3px solid var(--oak); padding-left: 1.25rem; align-self: start; }
.gallery__grid { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 1rem; }
@media (min-width: 900px) { .gallery__grid { columns: 3; column-gap: 1.5rem; } }
.gallery__item { break-inside: avoid; margin-bottom: 1rem; }
.gallery-item { display: block; background: var(--linen-deep); }
.gallery-item img { width: 100%; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: rgba(32, 22, 16, 0.96); color: var(--linen); width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; }
.lightbox::backdrop { background: rgba(32, 22, 16, 0.9); }
.lightbox[open] { display: grid; grid-template-columns: auto 1fr auto; align-items: center; }
.lightbox__figure { margin: 0; display: grid; place-items: center; height: 100vh; padding: 3rem 0.5rem; }
.lightbox__img { max-width: 100%; max-height: calc(100vh - 7rem); width: auto; height: auto; object-fit: contain; }
.lightbox__caption { margin-top: 0.75rem; font-size: 0.95rem; text-align: center; min-height: 1.4em; }
.lightbox__close, .lightbox__nav { background: transparent; border: 0; color: var(--linen); font-size: 2.6rem; line-height: 1; cursor: pointer; padding: 0.5rem 0.75rem; }
.lightbox__close { position: absolute; top: 0.5rem; right: 0.75rem; }
.lightbox__nav { z-index: 1; }
.lightbox__close:focus-visible, .lightbox__nav:focus-visible { outline-color: var(--linen); }
@media (max-width: 600px) { .lightbox[open] { grid-template-columns: 1fr; } .lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); } .lightbox__nav--prev { left: 0; } .lightbox__nav--next { right: 0; } }

/* ---------- Contactos e formulários ---------- */
.contact-head { padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.contact-head h1 { margin-bottom: 0.3em; }
.contact-head .lead { max-width: 52ch; }
.contact { display: grid; gap: 3rem; }
.contact > * { min-width: 0; }
@media (min-width: 960px) { .contact { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 7vw, 7rem); align-items: start; } }
.contact__info { display: grid; gap: 2rem; align-content: start; }
.contact__email { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.4vw, 2rem); color: var(--walnut); text-decoration: none; border-bottom: 1px solid var(--oak); padding-bottom: 0.2rem; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.contact__email:hover { color: var(--brand); border-color: var(--brand); }
.contact__block { display: grid; gap: 0.2rem; }
.contact__label { font-size: 0.82rem; color: var(--oak); font-weight: 600; letter-spacing: 0.02em; }
.contact__block p { margin: 0; }
.contact__map { color: inherit; text-decoration: none; border-bottom: 1px solid var(--oak); }
.contact__map:hover { color: var(--brand); border-color: var(--brand); }
.contact__note { color: var(--ink-soft); font-size: 0.9rem; }
.contact__area { border-top: 1px solid var(--line); padding-top: 1.5rem; }
.contact__area p { color: var(--ink-soft); font-size: 0.95rem; margin: 0; }
.contact__form h2 { font-size: 1.6rem; margin-bottom: 1.5rem; }
.form { display: grid; gap: 1.5rem; }
.form__row { display: grid; gap: 1.5rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.45rem; color: var(--walnut); }
.field input, .field select, .field textarea { width: 100%; font: inherit; color: var(--ink); background: var(--white); border: 0; border-bottom: 1.5px solid var(--oak); border-radius: 0; padding: 0.6rem 0; transition: border-color .2s var(--ease); }
.field select { padding-right: 1.5rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23805132' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right center; appearance: none; -webkit-appearance: none; }
.field textarea { resize: vertical; min-height: 7rem; border: 1.5px solid var(--line); border-bottom-color: var(--oak); padding: 0.75rem; margin-top: 0.25rem; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 1.5px 0 var(--brand); }
.field textarea:focus { box-shadow: 0 0 0 1.5px var(--brand); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #A3281B; }
.field__error { color: #A3281B; font-size: 0.9rem; margin: 0.35rem 0 0; font-weight: 500; }
.field__hint { font-size: 0.85rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.form__foot { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center; justify-content: space-between; }
.form__foot .small { margin: 0; max-width: 40ch; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--oak); padding: 1rem 1.25rem; background: var(--linen); margin-bottom: 1.5rem; }
.notice p { margin: 0; max-width: none; }
.notice--success { border-left-color: #2E7D4F; background: #EAF4EC; }
.notice--error { border-left-color: #A3281B; background: #FBEDEA; }

/* ---------- Erro ---------- */
.error-code { font-family: var(--font-display); font-size: 4rem; color: var(--oak); margin: 0; line-height: 1; }

/* ---------- Vídeo ---------- */
.video { margin: 0; }
.video video, .video__external img { width: 100%; background: var(--walnut); }
.video video { aspect-ratio: 16 / 9; object-fit: contain; background: var(--walnut-deep); }
.video__external { position: relative; display: block; }
.video__external span { position: absolute; inset: auto 0 0 0; background: rgba(43, 30, 22, 0.85); color: var(--linen); padding: 0.6rem 1rem; }
.video figcaption { font-size: 0.95rem; font-weight: 500; color: var(--walnut); margin-top: 0.6rem; }
.video__desc { display: block; font-weight: 400; color: var(--ink-soft); }

/* ---------- Páginas legais ---------- */
.legal h2 { font-size: 1.5rem; margin-top: 2.25rem; }
.legal h3 { font-size: 1.15rem; font-family: var(--font-body); font-weight: 600; margin-top: 1.5rem; }
.legal ul { padding-left: 1.2em; } .legal li { margin-bottom: 0.4rem; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; margin: 1rem 0 1.5rem; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); }
.legal-table th { font-weight: 600; color: var(--walnut); }
.legal code { background: var(--linen); padding: 0.1em 0.35em; border-radius: 3px; }
@media (max-width: 640px) { .legal-table thead { display: none; } .legal-table tr { display: grid; padding: 0.6rem 0; border-bottom: 1px solid var(--line); } .legal-table td { border: 0; padding: 0.15rem 0; } }
.site-footer__grid { grid-template-columns: 1fr; }
@media (min-width: 720px) { .site-footer__grid { grid-template-columns: 2fr 1.5fr 1fr 1.2fr; gap: 2.5rem; } }

/* ---------- Botão WhatsApp flutuante ---------- */
.whatsapp-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 3px 10px rgba(43,30,22,.22); opacity: .9;
  transition: transform .2s var(--ease), opacity .2s var(--ease), box-shadow .2s var(--ease);
}
.whatsapp-float svg { width: 22px; height: 22px; }
.whatsapp-float:hover, .whatsapp-float:focus-visible { color: #fff; opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(43,30,22,.28); }
.whatsapp-float:focus-visible { outline: 3px solid var(--walnut); outline-offset: 3px; }
.whatsapp-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (min-width: 700px) { .whatsapp-float { right: 22px; bottom: 22px; } }
.has-float .hero__bar { padding-right: 4rem; }
.lightbox[open] ~ .whatsapp-float { display: none; }

/* ---------- Aviso de cookies (só com Google Analytics configurado) ---------- */
.consent { position: fixed; inset: auto 0 0 0; z-index: 60; background: var(--walnut-deep); color: var(--linen); box-shadow: 0 -6px 24px rgba(43,30,22,.25); }
.consent[hidden] { display: none; }
.consent__inner { max-width: 1200px; margin: 0 auto; padding: 1rem 16px; display: grid; gap: 0.9rem; }
@media (min-width: 800px) { .consent__inner { grid-template-columns: 1fr auto; align-items: center; gap: 2rem; padding: 1.1rem 24px; } }
.consent__title { font-family: var(--font-body); font-size: 1rem; font-weight: 600; color: var(--white); margin: 0 0 0.25rem; }
.consent__text p { margin: 0; font-size: 0.92rem; color: #D9C9B3; max-width: 70ch; }
.consent__text a { color: var(--white); }
.consent__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.consent__actions .button { flex: 1 1 auto; min-width: 8rem; }
.consent .button--ghost { background: transparent; color: var(--linen); border-color: var(--linen); }
.consent .button--ghost:hover { background: var(--linen); color: var(--walnut); }
.link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 0.15em; cursor: pointer; }
.site-footer .link-button { color: var(--white); }
