/* Grupo Casa Coelho — casa-coelho.pt (PT em /, EN em /en/).
   Os ficheiros estáticos ficam 30 dias em cache: ao mudar este ficheiro, subir o ?v= nas páginas. */

/* EB Garamond e não Cormorant: a Cormorant desenha o acento de «Três» alto e estreito, parece um erro. */
@font-face { font-family: "EB Garamond"; src: url("/fonts/eb-garamond.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  --papel: #f7f3ec;
  --papel-escuro: #efe8dc;
  --tinta: #1d1a17;
  --suave: #675e55;
  --linha: #ddd3c4;
  --madeira: #85582c;
  --serifa: "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --texto: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --margem: clamp(20px, 5vw, 56px);
  /* Altura do palco dos logótipos: encolhe em ecrãs baixos (portáteis de 768 px). */
  --palco: clamp(132px, min(17vw, 25vh), 210px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--papel);
  color: var(--tinta);
  font: 400 16px/1.6 var(--texto);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--tinta); color: var(--papel); }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--madeira); outline-offset: 3px; border-radius: 4px; }

.so-leitores {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.saltar { position: absolute; left: var(--margem); top: -60px; padding: 10px 16px; background: var(--tinta); color: var(--papel); border-radius: 6px; z-index: 10; text-decoration: none; }
.saltar:focus { top: 12px; }

.sobre {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--madeira);
}

/* Primeiro ecrã: o grupo e as três casas */
.abertura {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}
.topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px var(--margem);
}
.marca { font-family: var(--serifa); font-weight: 500; font-size: 21px; letter-spacing: .02em; text-decoration: none; }
.linguas { display: flex; gap: 4px; font-size: 13px; font-weight: 500; letter-spacing: .12em; }
.linguas a {
  display: inline-grid; place-items: center;
  min-width: 44px; min-height: 44px;
  text-decoration: none; color: var(--suave);
}
.linguas a[aria-current="page"] { color: var(--tinta); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.linguas a:hover { color: var(--tinta); }

.palco {
  align-self: center;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: clamp(8px, 3vh, 32px) var(--margem) clamp(24px, 5vh, 56px);
  text-align: center;
}
h1 {
  font-family: var(--serifa);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0 0 clamp(28px, 6vh, 64px);
}

.casas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0; }
.casa {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 clamp(16px, 3vw, 40px);
  animation: chegar .9s cubic-bezier(.2, .7, .2, 1) both;
}
.casa + .casa { border-left: 1px solid var(--linha); }
.casa:nth-child(2) { animation-delay: .08s; }
.casa:nth-child(3) { animation-delay: .16s; }
@keyframes chegar { from { opacity: 0; transform: translateY(14px); } }

.casa h2 { margin: 0; height: var(--palco); width: 100%; display: flex; align-items: center; justify-content: center; }
/* Tamanhos óticos: o círculo, o quadrado e o letreiro largo pesam o mesmo à vista. */
.casa h2 img { max-width: 100%; height: auto; }
.casa h2 .logo-adega { width: calc(var(--palco) * 1); }
.casa h2 .logo-terreiro { width: calc(var(--palco) * .82); }
.casa h2 .logo-taberna { width: calc(var(--palco) * 1.24); }

.dados { margin: clamp(18px, 3vh, 28px) 0 0; color: var(--suave); font-size: 14.5px; line-height: 1.55; }
.dados span { display: block; }
.acoes {
  margin-top: clamp(16px, 2.6vh, 24px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.outras { display: flex; gap: 0 22px; justify-content: center; }
.reservar {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  background: var(--tinta);
  color: var(--papel);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .01em;
  text-decoration: none;
  transition: background-color .2s, transform .2s, box-shadow .2s;
}
.reservar svg { width: 18px; height: 18px; flex: none; }
.reservar:hover { background: #000; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(29, 26, 23, .18); }
.reservar:active { transform: none; box-shadow: none; }
.ligacao {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: 14.5px;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: var(--linha);
  transition: text-decoration-color .2s;
}
.ligacao:hover { text-decoration-color: var(--tinta); }

.descer {
  justify-self: center;
  display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 0 0 22px;
  font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--suave); text-decoration: none;
}
.descer svg { width: 14px; height: 14px; animation: descer 2.4s ease-in-out infinite; }
@keyframes descer { 50% { transform: translateY(4px); } }

/* Como reservar */
.reservas {
  background: var(--papel-escuro);
  border-top: 1px solid var(--linha);
  padding: clamp(64px, 10vw, 112px) var(--margem);
  text-align: center;
}
.reservas h2 {
  font-family: var(--serifa); font-weight: 500;
  font-size: clamp(30px, 4vw, 42px); line-height: 1.15;
  margin: 0 0 18px;
}
.reservas p:not(.sobre) { margin: 0 auto 12px; max-width: 34em; color: var(--suave); font-size: 17px; }
.reservas p.grupos { margin-top: 28px; font-size: 15px; }
.email {
  font-family: var(--serifa); font-size: 24px; color: var(--tinta);
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; text-decoration-color: var(--madeira);
}
.reservas .email { display: inline-block; margin-top: 4px; }

/* Política de privacidade */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(16px, 4vw, 40px) var(--margem) 80px; }
.legal h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.08; margin: 0 0 8px; }
.legal .data { color: var(--suave); font-size: 14px; margin: 0 0 40px; }
.legal h2 { font-family: var(--serifa); font-weight: 500; font-size: 27px; line-height: 1.2; margin: 44px 0 10px; }
.legal p, .legal li { margin: 0 0 12px; line-height: 1.7; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--madeira); text-underline-offset: 3px; }

footer {
  padding: 40px var(--margem) 44px;
  border-top: 1px solid var(--linha);
  display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: space-between; align-items: baseline;
  font-size: 13px; color: var(--suave); letter-spacing: .01em;
}
footer p { margin: 0; }
footer a { text-underline-offset: 3px; }

@media (max-width: 760px) {
  :root { --palco: 136px; }
  .topo { padding-top: 14px; padding-bottom: 14px; }
  h1 { margin-bottom: 36px; }
  .casas { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .casa { padding: 36px 0; }
  .casa:first-child { padding-top: 8px; }
  .casa + .casa { border-left: 0; border-top: 1px solid var(--linha); }
  .casa h2 .logo-taberna { width: calc(var(--palco) * 1.5); }
  .descer { display: none; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .casa, .descer svg { animation: none; }
  .reservar { transition: none; }
}
