/* Sónia Domingos – estilos do site (cores e tipos do tema original) */
:root {
  --fundo: #f7f4f1;
  --fundo-claro: #ffffff;
  --texto: #1a1a1a;
  --texto-suave: #555;
  --dourado: #b99755;
  --dourado-escuro: #8c6f38;
  --linha: #d9d2c8;
  --escuro: #4a4f5c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --largura: 1200px;
  --margem: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 300 17px/1.75 var(--sans);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--dourado-escuro); }
a:hover { color: var(--dourado); }
h1, h2, h3, h4, h5 { font-family: var(--serif); font-weight: 500; line-height: 1.2; margin: 0 0 .5em; color: #000; }
p { margin: 0 0 1.1em; }
strong { font-weight: 500; }
.contentor { max-width: var(--largura); margin-inline: auto; padding-inline: var(--margem); }
.centro { text-align: center; }
.escondido { position: absolute; left: -9999px; }
.saltar { position: absolute; left: -9999px; }
.saltar:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--dourado); outline-offset: 3px; }

/* Botões */
.botao {
  display: inline-block;
  padding: 14px 30px;
  font: 400 13px/1 var(--sans);
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: var(--escuro);
  border: 1px solid var(--escuro);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.botao:hover { background: var(--dourado); border-color: var(--dourado); color: #fff; }
.botao--contorno { background: transparent; color: var(--dourado-escuro); border-color: var(--dourado); }
.botao--contorno:hover { background: var(--dourado); color: #fff; }

/* Cabeçalho */
.topo {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 16px;
  padding: 14px var(--margem);
  background: var(--fundo);
  border-bottom: 1px solid var(--linha);
}
.topo__logo img { width: 40px; height: 40px; }
.topo__dir { display: flex; justify-content: flex-end; align-items: center; gap: 18px; }
.topo__contacto { padding: 12px 22px; }
.lingua { font: 400 13px/1 var(--sans); letter-spacing: .12em; text-decoration: none; color: var(--texto); }
.lingua:hover { color: var(--dourado); }
.redes { display: flex; gap: 14px; align-items: center; }
.redes a { color: var(--texto); display: inline-flex; }
.redes a:hover { color: var(--dourado); }
.redes svg { width: 18px; height: 18px; }
.hamburguer { width: 32px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; align-content: space-between; }
.hamburguer span { display: block; height: 1.5px; background: var(--texto); transition: transform .25s, opacity .25s; }
.hamburguer[aria-expanded="true"] span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.hamburguer[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburguer[aria-expanded="true"] span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

/* Menu */
.menu {
  position: fixed; inset: 0; z-index: 25;
  background: var(--fundo);
  padding: 110px var(--margem) 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  overflow-y: auto;
}
.menu[hidden] { display: none; }
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; }
.menu li a {
  display: block; padding: 6px 0;
  font: 500 clamp(28px, 5vw, 44px)/1.25 var(--serif);
  color: #000; text-decoration: none;
}
.menu li a:hover, .menu li a[aria-current="page"] { color: var(--dourado); }
.menu__rodape { display: flex; flex-direction: column; align-items: center; gap: 18px; }
body.menu-aberto { overflow: hidden; }

/* Título de página */
.titulo-pagina { text-align: center; padding: clamp(40px, 8vw, 90px) var(--margem) clamp(30px, 5vw, 60px); }
.titulo-pagina h1 { font-size: clamp(44px, 8vw, 96px); font-weight: 400; letter-spacing: .02em; margin: 0; }

/* Secções */
.secao { padding: clamp(60px, 9vw, 110px) 0; }
.secao--clara { background: var(--fundo-claro); }
.sobretitulo { text-align: center; color: var(--dourado-escuro); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .6em; }
.titulo-secao { text-align: center; font-size: clamp(38px, 6vw, 64px); font-weight: 400; margin-bottom: 1em; }

/* Início – sobre mim */
.sobre {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(30px, 5vw, 70px); align-items: center;
  padding-block: clamp(30px, 6vw, 80px);
  scroll-margin-top: 80px;
}
.sobre__foto { margin: 1em 40px; }
.sobre__foto img { width: 100%; aspect-ratio: 637 / 824; object-fit: cover; }
.sobre__texto h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 400; margin-bottom: .2em; }
.sobre__texto .redes { margin-bottom: 1.6em; }
.sobre__texto .redes a { color: var(--dourado); }
.sobre__texto p { text-align: justify; hyphens: auto; }

/* Imóveis */
.grelha-imoveis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 40px 30px; margin-bottom: 50px; }
.cartao a { text-decoration: none; color: inherit; display: block; }
.cartao__foto { position: relative; overflow: hidden; margin-bottom: 18px; background: #e8e2da; }
.cartao__foto img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .6s ease; }
.cartao a:hover .cartao__foto img { transform: scale(1.04); }
.cartao h3 { font-size: 24px; margin-bottom: .3em; }
.cartao a:hover h3 { color: var(--dourado-escuro); }
.cartao__preco { color: var(--dourado-escuro); font-weight: 400; letter-spacing: .04em; margin: 0; }
.cartao--vendido .cartao__foto img { filter: grayscale(.35); }
.selo { position: absolute; top: 16px; left: 16px; background: var(--escuro); color: #fff; font: 400 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 8px 12px; }
.selo--linha { position: static; display: inline-block; vertical-align: middle; margin-left: 10px; }

/* Testemunhos */
.grelha-testemunhos { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 30px; margin-bottom: 50px; align-items: start; }
.grelha-testemunhos--todos { columns: 3 320px; column-gap: 30px; display: block; }
.grelha-testemunhos--todos .testemunho { break-inside: avoid; margin-bottom: 30px; }
.testemunho { margin: 0; padding: 36px 30px; background: var(--fundo-claro); border: 1px solid var(--linha); text-align: center; font-size: 16px; }
.secao--clara .testemunho, .secao .testemunho { background: var(--fundo); }
.estrelas { display: flex; justify-content: center; gap: 4px; color: var(--dourado); margin-bottom: 18px; }
.estrelas svg { width: 18px; height: 18px; }
.testemunho p:last-child { margin-bottom: 0; }

/* Imagem + texto */
.imagem-texto { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px); align-items: center; padding-bottom: clamp(50px, 8vw, 100px); }
.imagem-texto figure { margin: 0; }
.imagem-texto figure img { width: 100%; max-height: 760px; object-fit: cover; }
figcaption { font-size: 12px; color: var(--texto-suave); margin-top: 8px; }
.imagem-texto--topo { align-items: start; }
/* Páginas com foto ao lado do texto: foto com o mesmo tamanho da foto da Sónia na página inicial */
.imagem-texto--foto { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.imagem-texto--foto figure { margin: 1em 40px; }
.imagem-texto--foto figure img { aspect-ratio: 637 / 824; max-height: none; }
.texto ul { padding-left: 1.2em; margin: 0 0 1.1em; }
.texto li::marker { color: var(--dourado); }
.texto--estreito { max-width: 820px; padding-bottom: clamp(50px, 8vw, 100px); }

/* Contactos */
.contactos-lista { list-style: none; padding: 0; margin: 0 0 1.4em; }
.contactos-lista li { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.contactos-lista svg { width: 20px; height: 20px; flex: none; color: var(--texto); }
.contactos-lista a { color: inherit; text-decoration: none; }
.contactos-lista a:hover { color: var(--dourado-escuro); }

/* Página de imóvel */
.imovel { padding-top: clamp(30px, 5vw, 60px); padding-bottom: clamp(50px, 8vw, 100px); }
.imovel__cabecalho { max-width: 900px; margin-bottom: 30px; }
.imovel__cabecalho h1 { font-size: clamp(32px, 4.5vw, 52px); font-weight: 400; }
.imovel__preco { font-size: 20px; color: var(--dourado-escuro); letter-spacing: .06em; font-weight: 400; margin-bottom: .4em; }
.galeria { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: clamp(40px, 6vw, 70px); }
.galeria__item { display: block; overflow: hidden; background: #e8e2da; }
.galeria__item img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease, opacity .3s; }
.galeria__item:hover img { transform: scale(1.04); }
.galeria__item:first-child { grid-column: span 2; grid-row: span 2; }
.galeria.recolhida .galeria__item:nth-child(n + 10) { display: none; }
.galeria__mais { grid-column: 1 / -1; justify-self: center; margin-top: 12px; }
.imovel__corpo { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: clamp(30px, 5vw, 70px); align-items: start; }
.caixa-contacto { background: var(--fundo-claro); padding: 32px; border: 1px solid var(--linha); margin-top: 30px; }
.caixa-contacto h2 { font-size: 24px; color: var(--dourado-escuro); margin-bottom: 1em; }
.caixa-contacto .contactos-lista { margin: 0; }
.imovel__contacto { position: sticky; top: 100px; margin-top: 0; }

/* Visualizador de fotos */
.visualizador { position: fixed; inset: 0; z-index: 50; background: rgba(15, 15, 15, .94); display: grid; grid-template-columns: 60px 1fr 60px; align-items: center; }
.visualizador[hidden] { display: none; }
.visualizador img { max-height: 88vh; max-width: 100%; margin: auto; object-fit: contain; }
.visualizador button { background: none; border: 0; color: #fff; font: 300 42px/1 var(--sans); cursor: pointer; padding: 10px; }
.visualizador button:hover { color: var(--dourado); }
.visualizador__fechar { position: absolute; top: 12px; right: 16px; }
.visualizador__contador { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 14px; }

/* Rodapé */
.rodape { border-top: 1px solid var(--linha); padding-top: clamp(50px, 7vw, 80px); }
.rodape__colunas { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.rodape__logo { width: 150px; margin-bottom: 20px; }
.rodape__titulo { font-size: 26px; }
.filete { border: 0; border-top: 1px solid #d4af37; max-width: 170px; margin: 24px 0 10px; }
.rodape__link { font-size: 15px; }
.rodape__copy { font-size: 12px; line-height: 1.6; color: var(--texto-suave); border-top: 1px solid var(--linha); padding-block: 24px; margin: 0 auto; }

/* Responsivo */
@media (max-width: 900px) {
  .sobre, .imagem-texto, .imovel__corpo { grid-template-columns: 1fr; }
  .imovel__contacto { position: static; }
  .galeria { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topo__esq .redes, .topo__contacto { display: none; }
  .topo { grid-template-columns: 1fr auto 1fr; }
  .rodape__colunas { grid-template-columns: 1fr; }
  .caixa-contacto { padding: 22px; }
  .sobre__texto p { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* Vídeo do imóvel (o leitor do YouTube só carrega ao carregar no play) */
.video { margin: 0 auto clamp(40px, 6vw, 70px); max-width: 960px; }
.video__capa, .video iframe { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }
.video__capa { position: relative; padding: 0; cursor: pointer; background: #000; overflow: hidden; }
.video__capa img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .2s; }
.video__capa:hover img { opacity: 1; }
.video__play { position: absolute; inset: 0; margin: auto; width: 76px; height: 76px; border-radius: 50%; background: rgba(185, 151, 85, .92); }
.video__play::after { content: ""; position: absolute; left: 31px; top: 24px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
