/*
Theme Name:   SALFAI
Theme URI:    https://salfai.com
Author:       SALFAI
Description:  Tema institucional da SALFAI: promoção, construção e administração imobiliária. Requer o plugin SALFAI Core.
Version:      1.4.0
Requires at least: 6.3
Requires PHP: 7.4
License:      Proprietary
Text Domain:  salfai
*/

/* ==========================================================================
   Tokens: Osso e Carvão
   ========================================================================== */
:root {
	--osso:        #ECE9E2;
	--osso-claro:  #F6F4EF;
	--osso-escuro: #DCD6CA;
	--carvao:      #272725;
	--grafite:     #4A4945;
	--pedra:       #8C877C;
	--linha:       rgba(39, 39, 37, .16);
	--linha-clara: rgba(246, 244, 239, .24);

	/* Tipografia contemporânea: Bricolage Grotesque nos títulos, DM Sans no texto.
	   (--serif mantém o nome por compatibilidade; é a fonte de destaque.) */
	--serif: "Bricolage Grotesque", "DM Sans", "Helvetica Neue", Arial, sans-serif;
	--sans:  "DM Sans", "Helvetica Neue", Arial, sans-serif;

	--fs-small: .8125rem;
	--fs-body:  1.0625rem;
	--fs-lead:  clamp(1.25rem, 1.6vw, 1.5rem);
	--fs-h3:    clamp(1.5rem, 2vw, 1.875rem);
	--fs-h2:    clamp(2.125rem, 4vw, 3.25rem);
	--fs-h1:    clamp(2.75rem, 6.5vw, 5.5rem);

	--wrap:    1440px;
	--gutter:  clamp(1.25rem, 4.5vw, 4.5rem);
	--section: clamp(5rem, 11vw, 10rem);
	--header:  5.5rem;
	--ease:    cubic-bezier(.2, .6, .2, 1);
}

/* ==========================================================================
   Base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header); }
body {
	margin: 0;
	background: var(--osso);
	color: var(--carvao);
	font-family: var(--sans);
	font-weight: 400;
	font-size: var(--fs-body);
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, video, iframe { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .25em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; margin: 0; }
p { margin: 0 0 1.1em; }
ul { margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
::selection { background: var(--carvao); color: var(--osso-claro); }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
	position: absolute; left: var(--gutter); top: -100px; z-index: 200;
	background: var(--carvao); color: var(--osso-claro); padding: .75rem 1.25rem;
}
.skip-link:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section); }
.section + .section { padding-top: 0; }
.section--dark { background: var(--carvao); color: var(--osso-claro); }
.section--dark + .section, .section + .section--dark { padding-top: var(--section); }
.section--tone { background: var(--osso-escuro); }
.section--tone + .section { padding-top: var(--section); }
.section + .section--tone { padding-top: var(--section); }
.section.section--flush { padding-top: 0; }

/* Grelha de 12 colunas usada em todas as secções editoriais */
.grid-12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 2.5vw, 2.5rem); row-gap: 3rem; }
.col-aside { grid-column: 1 / span 4; }
.col-main  { grid-column: 6 / span 7; }
.col-wide  { grid-column: 1 / -1; }
.col-desc  { grid-column: 1 / span 6; }
.col-ficha { grid-column: 8 / span 5; }

.lede { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; font-size: var(--fs-lead); line-height: 1.45; max-width: 34ch; }
.lede--large { font-size: clamp(1.625rem, 2.8vw, 2.5rem); line-height: 1.3; max-width: 26ch; }
.muted { color: var(--pedra); }
.section--dark .muted { color: rgba(246, 244, 239, .62); }
.small { font-size: var(--fs-small); letter-spacing: .02em; }

.prose { max-width: 66ch; }
.prose h2 { font-size: var(--fs-h3); margin: 2.5em 0 .8em; }
.prose h3 { font-size: 1.375rem; margin: 2em 0 .6em; }
.prose img { margin: 2.5rem 0; }
.prose ul, .prose ol { padding-left: 1.2em; margin-bottom: 1.1em; }
.prose blockquote { margin: 2.5rem 0; padding-left: 1.5rem; border-left: 1px solid var(--carvao); font-family: var(--serif); font-size: var(--fs-lead); }

/* Ligações e botões */
.link-line {
	display: inline-flex; align-items: center; gap: .75rem;
	font-size: .9375rem; font-weight: 400; letter-spacing: .02em;
	text-decoration: none; padding-bottom: .35rem;
	background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
	transition: background-size .45s var(--ease);
}
.link-line:hover { background-size: 35% 1px; }

.btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 3.25rem; padding: 0 2rem;
	border: 1px solid currentColor; background: transparent;
	font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
	border-radius: 999px;
	text-decoration: none; cursor: pointer;
	transition: background-color .3s var(--ease), color .3s var(--ease);
}
.btn:hover { background: var(--carvao); color: var(--osso-claro); border-color: var(--carvao); }
.btn--solid { background: var(--carvao); color: var(--osso-claro); border-color: var(--carvao); }
.btn--solid:hover { background: transparent; color: var(--carvao); }
.section--dark .btn:hover, .btn--light:hover { background: var(--osso-claro); color: var(--carvao); border-color: var(--osso-claro); }
.section--dark .btn--solid { background: var(--osso-claro); color: var(--carvao); border-color: var(--osso-claro); }
.section--dark .btn--solid:hover { background: transparent; color: var(--osso-claro); }

.media-placeholder { width: 100%; height: 100%; min-height: 100%; background: var(--grafite); }

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
	position: fixed; inset: 0 0 auto 0; z-index: 100;
	height: var(--header);
	color: var(--carvao);
	background: var(--osso);
	border-bottom: 1px solid var(--linha);
	transition: background-color .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease);
}
.has-hero .site-header:not(.is-solid) { background: transparent; color: var(--osso-claro); border-color: transparent; }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }

.site-logo { display: inline-flex; align-items: center; font-family: var(--serif); font-weight: 700; font-size: 1.625rem; letter-spacing: .08em; text-decoration: none; line-height: 1; }
.site-logo img { max-height: 2.75rem; width: auto; }
/* Logótipo: versão escura sobre fundo claro, branca sobre fotografia. */
.site-header .logo-img--light { display: none; }
.has-hero .site-header:not(.is-solid) .logo-img--dark:not(:only-child) { display: none; }
.has-hero .site-header:not(.is-solid) .logo-img--light { display: block; }
.has-hero .site-header:not(.is-solid) .logo-img--dark:only-child { filter: invert(1) brightness(1.6); }
.nav-open .site-header .logo-img--light { display: none; }
.nav-open .site-header .logo-img--dark { display: block; filter: none; }
.logo-img--invert { filter: invert(1) brightness(1.6); }

.site-nav .menu { display: flex; gap: clamp(1.5rem, 2.6vw, 2.75rem); list-style: none; }
.site-nav a { font-size: .9375rem; font-weight: 500; letter-spacing: .01em; text-decoration: none; padding-block: .5rem; background: linear-gradient(currentColor, currentColor) left bottom / 0 1px no-repeat; transition: background-size .35s var(--ease); }
.site-nav a:hover, .site-nav .current-menu-item > a, .site-nav .current_page_item > a, .site-nav .current-menu-ancestor > a { background-size: 100% 1px; }

.nav-toggle { display: none; background: none; border: 0; padding: .5rem 0; cursor: pointer; font-size: .9375rem; letter-spacing: .03em; }
.nav-toggle__bars { display: inline-block; width: 1.75rem; height: 7px; margin-left: .75rem; vertical-align: middle; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; transition: transform .3s var(--ease); }

@media (max-width: 960px) {
	.nav-toggle { display: inline-flex; align-items: center; position: relative; z-index: 2; }
	.site-nav {
		position: fixed; inset: 0; z-index: 1;
		background: var(--osso); color: var(--carvao);
		padding: calc(var(--header) + 3rem) var(--gutter) 3rem;
		opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s;
	}
	.site-nav .menu { flex-direction: column; gap: 1.25rem; }
	.site-nav a { font-family: var(--serif); font-size: clamp(2rem, 8vw, 3rem); letter-spacing: 0; }
	.nav-open { overflow: hidden; }
	.nav-open .site-nav { opacity: 1; visibility: visible; }
	.nav-open .site-header { color: var(--carvao) !important; }
	.nav-open .nav-toggle__bars { transform: scaleX(.6); }
}

/* ==========================================================================
   Hero de ecrã inteiro
   ========================================================================== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: var(--osso-claro); background: var(--carvao); overflow: hidden; }
.hero__media { position: absolute; inset: 0; }
.hero__media img, .hero__media .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(39, 39, 37, .72) 0%, rgba(39, 39, 37, .18) 45%, rgba(39, 39, 37, .3) 100%); }
.hero__content { position: relative; z-index: 1; padding-bottom: clamp(3rem, 8vh, 6rem); padding-top: calc(var(--header) + 4rem); }
.hero__title { font-size: var(--fs-h1); max-width: 16ch; }
.hero__foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-top: clamp(2rem, 5vh, 3.5rem); padding-top: 1.5rem; border-top: 1px solid var(--linha-clara); }
.hero__text { max-width: 46ch; margin: 0; color: rgba(246, 244, 239, .85); }
.hero__meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: .9375rem; margin-bottom: 1.25rem; color: rgba(246, 244, 239, .8); }

/* Entrada única e orquestrada do hero */
@media (prefers-reduced-motion: no-preference) {
	.hero__media img { animation: salfai-settle 2.4s var(--ease) both; }
	.hero__title, .hero__meta { animation: salfai-rise 1.2s var(--ease) .25s both; }
	.hero__foot { animation: salfai-rise 1.2s var(--ease) .5s both; }
}
@keyframes salfai-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes salfai-rise { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }

/* Cabeçalho de páginas sem hero */
.page-head { padding-top: calc(var(--header) + clamp(4rem, 9vw, 8rem)); padding-bottom: clamp(3rem, 6vw, 5rem); }
.page-head__title { font-size: var(--fs-h1); }
.page-head .lede { margin-top: 1.75rem; }

/* ==========================================================================
   Cotas: régua de medição usada como divisor e na ficha técnica
   ========================================================================== */
.cota { position: relative; height: 1px; background: currentColor; opacity: .5; margin-block: 0 2.5rem; }
.cota::before, .cota::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: currentColor; }
.cota::before { left: 0; }
.cota::after { right: 0; }

.section-title { font-size: var(--fs-h2); max-width: 18ch; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1.5rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }

/* ==========================================================================
   Página inicial
   ========================================================================== */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.pillar { border-top: 1px solid var(--linha); padding-top: 1.5rem; }
.section--dark .pillar { border-color: var(--linha-clara); }
.pillar__title { font-size: var(--fs-h3); margin-bottom: 1rem; }
.pillar p { max-width: 38ch; }

.anchor { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; }
.anchor__media { grid-column: 1 / -1; grid-row: 1; aspect-ratio: 16 / 9; overflow: hidden; background: var(--grafite); }
.anchor__media img, .anchor__media .media-placeholder { width: 100%; height: 100%; object-fit: cover; }
.anchor__panel { grid-column: 7 / span 6; grid-row: 1; background: var(--osso); padding: clamp(2rem, 4vw, 3.5rem); position: relative; z-index: 1; margin-right: var(--gutter); transform: translateY(18%); }
.anchor__name { font-size: var(--fs-h2); margin-bottom: 1.25rem; }
.anchor__specs { display: flex; flex-wrap: wrap; gap: .5rem 2.25rem; margin: 1.75rem 0 2rem; font-size: .9375rem; }
.anchor__specs dt { color: var(--pedra); font-size: var(--fs-small); }
.anchor__specs dd { margin: 0; }
.anchor-section { padding-bottom: calc(var(--section) + 6rem); }

.contact-band__lines { display: grid; gap: .5rem; }
.contact-band__lines a { font-family: var(--serif); font-size: clamp(1.75rem, 4vw, 3.25rem); text-decoration: none; line-height: 1.2; }
.contact-band__lines a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ==========================================================================
   Portefólio: filtros e grelha
   ========================================================================== */
.filters {
	position: sticky; top: var(--header); z-index: 50;
	background: var(--osso); border-bottom: 1px solid var(--linha);
}
.filters__list { display: flex; gap: clamp(1.5rem, 4vw, 3.5rem); overflow-x: auto; scrollbar-width: none; }
.filters__list::-webkit-scrollbar { display: none; }
.filters a {
	display: inline-flex; align-items: baseline; gap: .6rem; white-space: nowrap;
	padding: 1.35rem 0 1.15rem; text-decoration: none;
	font-family: var(--serif); font-size: clamp(1.25rem, 2.2vw, 1.75rem);
	color: var(--pedra); border-bottom: 1px solid transparent; margin-bottom: -1px;
	transition: color .3s var(--ease), border-color .3s var(--ease);
}
.filters a:hover { color: var(--carvao); }
.filters a[aria-current] { color: var(--carvao); border-bottom-color: var(--carvao); }
.filters__count { font-family: var(--sans); font-size: var(--fs-small); }

.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(2.5rem, 4vw, 4rem) clamp(1rem, 2.5vw, 2.5rem); padding-top: clamp(2.5rem, 5vw, 4rem); }
.property-grid--home { padding-top: 0; }
.grid-empty { padding-block: 4rem; }

.card__link { display: block; text-decoration: none; }
.card__media { aspect-ratio: 4 / 5; overflow: hidden; background: var(--osso-escuro); }
.card__media img, .card__media .media-placeholder { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.03); }
.card__body { display: grid; grid-template-columns: 1fr auto; gap: .25rem 1rem; padding-top: 1.1rem; }
.card__title { font-size: 1.5rem; }
.card__status { font-size: var(--fs-small); color: var(--pedra); align-self: center; white-space: nowrap; }
.card__meta { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; font-size: .9375rem; color: var(--grafite); margin: 0; }

/* ==========================================================================
   Imóvel
   ========================================================================== */
.property-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.ficha { margin: 0; }
.ficha__row { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 1rem .9rem; border-bottom: 1px solid var(--linha); }
.ficha__row:first-child { border-top: 1px solid var(--linha); }
.ficha__row::before, .ficha__row::after { content: ""; position: absolute; bottom: -4px; width: 1px; height: 8px; background: var(--pedra); }
.ficha__row::before { left: 0; }
.ficha__row::after { right: 0; }
.ficha dt { color: var(--grafite); }
.ficha dd { margin: 0; font-family: var(--serif); font-size: 1.25rem; text-align: right; }
.ficha__row--price dd { font-size: 1.625rem; }

.comfort { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 4vw, 4rem); }
.comfort-section .section-title { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.comfort__title { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.comfort ul { list-style: none; }
.comfort li { padding: .85rem 0; border-top: 1px solid var(--linha); }

.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(.75rem, 1.5vw, 1.25rem); }
.gallery__item { display: block; padding: 0; border: 0; background: var(--osso-escuro); cursor: zoom-in; overflow: hidden; grid-column: span 6; aspect-ratio: 4 / 3; }
.gallery__item:nth-child(5n + 1) { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.gallery__item:nth-child(5n + 2), .gallery__item:nth-child(5n + 5) { grid-column: span 7; }
.gallery__item:nth-child(5n + 3), .gallery__item:nth-child(5n + 4) { grid-column: span 5; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.gallery__item:hover img { transform: scale(1.02); }

.video { position: relative; aspect-ratio: 16 / 9; background: var(--carvao); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(39, 39, 37, .97); color: var(--osso-claro); }
.lightbox::backdrop { background: rgba(39, 39, 37, .9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem var(--gutter); font-size: .9375rem; }
.lightbox__stage { display: grid; place-items: center; padding: 0 var(--gutter); min-height: 0; }
.lightbox__stage img { max-height: 100%; max-width: 100%; width: auto; object-fit: contain; }
.lightbox__nav { display: flex; justify-content: center; gap: 1rem; padding: 1.25rem; }
.lightbox button { background: none; border: 1px solid var(--linha-clara); color: inherit; min-height: 2.75rem; padding: 0 1.25rem; cursor: pointer; }
.lightbox button:hover { border-color: var(--osso-claro); }

.property-cta { display: none; }
@media (max-width: 760px) {
	.property-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--carvao); color: var(--osso-claro); justify-content: center; min-height: 3.5rem; align-items: center; text-decoration: none; letter-spacing: .03em; }
	.single-property .site-footer { padding-bottom: 5rem; }
}

/* ==========================================================================
   Formulários
   ========================================================================== */
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem 2rem; }
.form__field { display: grid; gap: .4rem; }
.form__field--full { grid-column: 1 / -1; }
.form label { font-size: var(--fs-small); letter-spacing: .02em; color: var(--grafite); }
.section--dark .form label { color: rgba(246, 244, 239, .7); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form textarea {
	width: 100%; font: inherit; font-size: 1.0625rem; color: inherit;
	background: transparent; border: 0; border-bottom: 1px solid currentColor; border-radius: 0;
	padding: .6rem 0; opacity: .9;
}
.form textarea { min-height: 7rem; resize: vertical; }
.form input:focus, .form textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: calc(.6rem - 1px); }
.form__consent { grid-column: 1 / -1; display: flex; gap: .75rem; align-items: flex-start; font-size: .875rem; line-height: 1.5; }
.form__consent input { margin-top: .25rem; accent-color: var(--carvao); flex: 0 0 auto; }
.section--dark .form__consent input { accent-color: var(--osso-claro); }
.form__consent label { font-size: .875rem; color: inherit; }
.form__actions { grid-column: 1 / -1; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice { grid-column: 1 / -1; padding: 1rem 1.25rem; border: 1px solid currentColor; margin-bottom: 2rem; }

/* Bloco de captação de leads no imóvel */
.lead { scroll-margin-top: var(--header); }
.lead__title { font-size: var(--fs-h2); margin-bottom: 1.5rem; max-width: 14ch; }
.lead__direct { margin-top: 2.5rem; display: grid; gap: .35rem; }
.lead__direct a { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; }

/* ==========================================================================
   Quem somos / Responsabilidade
   ========================================================================== */
.statement { font-family: var(--serif); font-size: clamp(1.75rem, 3.6vw, 3rem); line-height: 1.25; max-width: 28ch; }
.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.steps li { counter-increment: step; border-top: 1px solid var(--linha); padding-top: 1.25rem; }
.steps li::before { content: counter(step); display: block; font-family: var(--serif); font-size: 2.5rem; line-height: 1; margin-bottom: 1.5rem; color: var(--pedra); }
.steps h3 { font-size: 1.375rem; margin-bottom: .75rem; }
.split-list { list-style: none; }
.split-list li { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 1rem clamp(1rem, 2.5vw, 2.5rem); padding: 1.75rem 0; border-top: 1px solid var(--linha); }
.split-list h3 { font-size: var(--fs-h3); }
.split-list p { margin: 0; max-width: 56ch; }

/* ==========================================================================
   Notícias
   ========================================================================== */
.news-cats { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-bottom: 2rem; font-size: .9375rem; }
.news-cats a { text-decoration: none; color: var(--pedra); }
.news-cats a:hover, .news-cats a[aria-current] { color: var(--carvao); text-decoration: underline; }
.news-list { list-style: none; border-top: 1px solid var(--linha); }
.news-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 6fr) minmax(0, 3fr); gap: 1rem clamp(1rem, 2.5vw, 2.5rem); padding: 2rem 0; border-bottom: 1px solid var(--linha); align-items: start; }
.news-row__date { font-size: .9375rem; color: var(--pedra); padding-top: .35rem; }
.news-row__title { font-size: var(--fs-h3); margin-bottom: .75rem; }
.news-row__title a { text-decoration: none; }
.news-row__title a:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.news-row p { margin: 0; color: var(--grafite); max-width: 60ch; }
.news-row__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--osso-escuro); }
.news-row__media img { width: 100%; height: 100%; object-fit: cover; }

.article-head { max-width: 22ch; }
.article-meta { display: flex; flex-wrap: wrap; gap: .5rem 2rem; margin-top: 1.5rem; font-size: .9375rem; color: var(--pedra); }
.article-media { margin-bottom: clamp(3rem, 6vw, 5rem); }
.article-media img { width: 100%; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; border-top: 1px solid var(--linha); padding-top: 2rem; margin-top: 4rem; }
.post-nav__next { text-align: right; }
.post-nav a { font-family: var(--serif); font-size: 1.25rem; text-decoration: none; }

.pagination { margin-top: 3rem; }
.pagination .nav-links { display: flex; gap: 1.25rem; align-items: center; }
.pagination .page-numbers { text-decoration: none; color: var(--pedra); }
.pagination .page-numbers.current, .pagination a:hover { color: var(--carvao); }

/* ==========================================================================
   Contactos
   ========================================================================== */
.contact-details { margin: 0; }
.contact-details div { padding: 1.5rem 0; border-top: 1px solid var(--linha); }
.contact-details dt { font-size: var(--fs-small); color: var(--pedra); margin-bottom: .35rem; }
.contact-details dd { margin: 0; font-family: var(--serif); font-size: clamp(1.375rem, 2.2vw, 1.75rem); line-height: 1.35; }
.contact-details a { text-decoration: none; }
.contact-details a:hover { text-decoration: underline; text-decoration-thickness: 1px; }

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer { background: var(--carvao); color: var(--osso-claro); padding-top: clamp(4rem, 8vw, 7rem); padding-bottom: 2rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 3rem clamp(1.5rem, 3vw, 3rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.site-footer__brand .site-logo { font-size: 2rem; margin-bottom: 1.25rem; }
.site-footer__brand .site-logo img { max-height: 3.5rem; }
.socials { display: flex; gap: 1.5rem; list-style: none; margin-top: 1.25rem; }
.site-footer__brand p { max-width: 34ch; color: rgba(246, 244, 239, .7); }
.site-footer h2 { font-family: var(--sans); font-size: var(--fs-small); font-weight: 500; letter-spacing: 0; color: rgba(246, 244, 239, .55); letter-spacing: .02em; margin-bottom: 1rem; }
.site-footer address { font-style: normal; white-space: pre-line; }
.site-footer .menu { list-style: none; display: grid; gap: .4rem; }
.site-footer__contacts { display: grid; gap: .4rem; }
.site-footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; padding-top: 1.5rem; border-top: 1px solid var(--linha-clara); font-size: var(--fs-small); color: rgba(246, 244, 239, .6); }
.site-footer__legal ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; }

.error-404 { min-height: 80vh; display: flex; align-items: flex-end; }

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1100px) {
	.property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.anchor__panel { grid-column: 5 / span 8; }
}
@media (max-width: 860px) {
	.col-aside, .col-main, .col-desc, .col-ficha { grid-column: 1 / -1; }
	.pillars, .comfort { grid-template-columns: 1fr; }
	.anchor__panel { grid-column: 1 / -1; grid-row: 2; transform: none; margin: 0; padding-inline: 0; }
	.anchor-section { padding-bottom: var(--section); }
	.news-row { grid-template-columns: 1fr; }
	.news-row__media { order: -1; }
	.split-list li { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
	.site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
	.property-grid { grid-template-columns: 1fr; }
	.steps { grid-template-columns: 1fr; }
	.form { grid-template-columns: 1fr; }
	.gallery__item, .gallery__item:nth-child(n) { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.post-nav { grid-template-columns: 1fr; }
	.post-nav__next { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Utilitários de layout complementares */
.section-title--spaced { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head__note { max-width: 36ch; margin: 0; }
.contact-details address { font-style: normal; white-space: pre-line; }
.contact-extra { margin-top: 2rem; }
.contact-form-title { margin-bottom: 2.5rem; }
.article-media { margin-top: 0; margin-bottom: clamp(3rem, 6vw, 5rem); }
.col-article { grid-column: 3 / span 8; }
.section.article-back { padding-top: 3rem; }
@media (max-width: 860px) { .col-article { grid-column: 1 / -1; } }

/* Lista de serviços (Quem somos) */
.service-list { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.5rem, 3vw, 3rem); }
.service-list li { border-top: 1px solid var(--linha); padding: .9rem 0; }
@media (max-width: 720px) { .service-list { grid-template-columns: 1fr; } }
