@font-face {
  font-family: 'Fraunces';
  src: url('/assets/fonts/fraunces-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --green-900: #1d3524;
  --green-800: #26452e;
  --green-600: #46664c;
  --green-200: #d7e2d2;
  --green-100: #eaf0e6;
  --wood-700: #6e4519;
  --wood-500: #8a5a2b;
  --cream: #f7f5ef;
  --paper: #ffffff;
  --ink: #1f2420;
  --muted: #4f5a51;
  --line: #dcdfd6;
  --radius: 14px;
  --shadow: 0 10px 30px -14px rgba(29, 53, 36, .35);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
}
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.1em; height: 1.1em; vertical-align: -.18em; flex: none; }
html, body { overflow-x: clip; }
a { color: var(--green-800); text-underline-offset: .18em; }
a:hover { color: var(--wood-700); }
:focus-visible { outline: 3px solid var(--wood-500); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; color: var(--green-900); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.3rem); margin: .2em 0 .35em; }
h2 { font-size: clamp(1.55rem, 4vw, 2.2rem); margin: 0 0 .6em; }
h3 { font-size: 1.25rem; margin: 1.4em 0 .4em; }
p { margin: 0 0 1em; }
.lead { font-size: 1.15rem; color: var(--muted); }
.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.narrow { max-width: 760px; }
.section { padding: clamp(2.6rem, 7vw, 4.5rem) 0; }
.section--white { background: var(--paper); }
.section--green { background: var(--green-100); }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--wood-700); margin: 0 0 .5rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: .75rem; top: -3rem; background: var(--green-800); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: .75rem; color: #fff; }

/* Cabeçalho */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--green-800); margin-right: auto; }
.brand img { width: 60px; height: auto; }
@media (min-width: 980px) { .brand img { width: 64px; } }
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; line-height: 1; }
.brand-sub { display: block; font-family: var(--sans); font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-top: .25rem; }
.main-nav ul { list-style: none; display: flex; gap: .25rem; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .55rem .7rem; border-radius: 8px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--green-100); color: var(--green-900); }
.btn.header-cta { display: none; }
@media (min-width: 980px) { .btn.header-cta { display: inline-flex; } }
@media (max-width: 979px) {
  .header-inner { flex-wrap: wrap; padding-top: .5rem; }
  .main-nav { width: calc(100% + 2.5rem); overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 0 -1.25rem; padding: 0 1.25rem .35rem; }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav a { font-size: .9rem; padding: .45rem .65rem; background: var(--cream); }
}

/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid transparent; cursor: pointer; line-height: 1.2; font-family: var(--sans); }
.btn--primary { background: var(--green-800); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--green-900); color: #fff; }
.btn--ghost { background: transparent; color: var(--green-800); border-color: var(--green-800); }
.btn--ghost:hover { background: var(--green-100); color: var(--green-900); }
.btn--light { background: #fff; color: var(--green-900); }
.btn--light:hover { background: var(--green-100); color: var(--green-900); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* Hero */
.hero { position: relative; background: var(--green-900); color: #fff; overflow: hidden; }
.hero picture, .hero picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,28,19,.05) 0%, rgba(15,28,19,.25) 40%, rgba(15,28,19,.82) 100%); }
.hero-content { position: relative; z-index: 1; min-height: min(84svh, 720px); display: flex; flex-direction: column; justify-content: flex-end; padding: 7rem 0 2.4rem; }
.hero h1 { color: #fff; max-width: 16ch; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero .lead { color: #eef2ea; max-width: 46ch; }
.place { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; font-size: .95rem; background: rgba(255,255,255,.14); backdrop-filter: blur(6px); padding: .35rem .8rem; border-radius: 999px; width: fit-content; }
.place svg { width: 1em; height: 1em; }
.hero .btn--primary { background: #fff; color: var(--green-900); }
.hero .btn--primary:hover { background: var(--green-100); }
.hero .btn--ghost { color: #fff; border-color: rgba(255,255,255,.8); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.hero-note { font-size: .88rem; color: #dfe6da; margin: .9rem 0 0; }
@media (max-width: 759px) {
  .hero picture, .hero picture img { position: static; aspect-ratio: 16 / 10; height: auto; }
  .hero::after { display: none; }
  .hero-content { min-height: 0; padding: 1.1rem 0 1.8rem; }
  .hero-content .place { order: 1; }
  .hero-content h1 { order: 2; font-size: 1.9rem; margin: .5rem 0 .8rem; }
  .hero-content .btn-row { order: 3; }
  .hero-content .hero-note { order: 4; }
  .hero-content .lead { order: 5; margin: 1rem 0 0; font-size: 1.02rem; }
  .hero-content .facts { order: 6; }
  .hero .btn-row .btn { flex: 1 1 auto; }
}
.photo-credit { position: absolute; right: .6rem; bottom: .4rem; z-index: 1; font-size: .7rem; color: rgba(255,255,255,.75); }

.page-hero { background: var(--paper); border-bottom: 1px solid var(--line); padding: 2.2rem 0 2rem; }
.page-hero .lead { max-width: 60ch; }
.breadcrumbs { font-size: .88rem; color: var(--muted); margin: 0 0 .4rem; }
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: '›'; margin-right: .35rem; color: var(--line); }
.breadcrumbs a { color: var(--muted); }

/* Factos rápidos */
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; list-style: none; padding: 0; margin: 1.5rem 0 0; }
@media (min-width: 760px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts li { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; font-size: .95rem; color: var(--muted); }
.facts strong { display: block; font-family: var(--serif); font-size: 1.2rem; color: var(--green-900); }
.facts--onhero li { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.22); color: #e9eee5; backdrop-filter: blur(6px); }
.facts--onhero strong { color: #fff; }

/* Grelhas e cartões */
.split { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 860px) { .split { grid-template-columns: 1.05fr 1fr; gap: 3rem; } .split--rev > :first-child { order: 2; } }
.rounded { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cards { display: grid; gap: 1.25rem; }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cards--3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--muted); }
.card .more { margin-top: auto; padding-top: .6rem; font-weight: 700; }
.card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.card a.stretched { text-decoration: none; color: inherit; }

.ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
@media (min-width: 620px) { .ticks--2 { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.ticks li { position: relative; padding-left: 1.8rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .42em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--green-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2326452e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round' d='M4 8.5l2.6 2.5L12 5.5'/%3E%3C/svg%3E") center/80% no-repeat; }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { counter-increment: s; background: var(--paper); border-radius: var(--radius); padding: 1.2rem 1.2rem 1.2rem 4rem; position: relative; border: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 1.1rem; top: 1.05rem; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--green-800); color: #fff; font-weight: 700; display: grid; place-items: center; font-family: var(--serif); }
.steps strong { display: block; color: var(--green-900); }

.note { background: var(--paper); border-left: 4px solid var(--wood-500); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.note p:last-child { margin: 0; }
.note--warn { border-left-color: #b4501f; background: #fff8f2; }

/* Reserva */
.booking-box { background: var(--paper); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(1.2rem, 4vw, 2rem); box-shadow: var(--shadow); }
.booking-box h2 { margin-bottom: .3rem; }
.booking-form { display: none; margin: 1.1rem 0 .4rem; gap: .8rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.js .booking-form { display: grid; }
@media (min-width: 760px) { .js .booking-form { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, .8fr) auto; align-items: end; } }
.booking-form label { display: flex; flex-direction: column; gap: .3rem; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.booking-form input, .booking-form select { font: inherit; font-size: 1rem; min-height: 48px; padding: .55rem .7rem; border: 1px solid #b9c0b4; border-radius: 10px; background: #fff; color: var(--ink); width: 100%; min-width: 0; text-transform: none; letter-spacing: 0; }
.booking-form .btn { grid-column: 1 / -1; }
@media (min-width: 760px) { .booking-form .btn { grid-column: auto; } }
.booking-form .error { grid-column: 1 / -1; color: #a63a12; font-size: .92rem; margin: 0; }
.booking-help { font-size: .92rem; color: var(--muted); margin: .8rem 0 0; }
.booking-plain { margin-top: .4rem; }
.js .booking-plain-label { display: none; }

/* Galeria */
.gallery { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 220px; } .gallery > :first-child { grid-column: span 2; grid-row: span 2; } }
.gallery button { all: unset; cursor: zoom-in; display: block; border-radius: 12px; overflow: hidden; position: relative; background: var(--green-200); }
.gallery button:focus-visible { outline: 3px solid var(--wood-500); outline-offset: 2px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; transition: transform .4s ease; }
@media (min-width: 760px) { .gallery img { aspect-ratio: auto; } }
.gallery button:hover img { transform: scale(1.03); }
.gallery figcaption { position: absolute; left: .5rem; bottom: .5rem; background: rgba(0,0,0,.55); color: #fff; font-size: .78rem; padding: .2rem .55rem; border-radius: 999px; }
.gallery-count { font-size: .9rem; color: var(--muted); margin-top: .6rem; }

dialog.lightbox { border: 0; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgba(10, 16, 12, .96); color: #fff; }
dialog.lightbox::backdrop { background: rgba(10, 16, 12, .96); }
.lb-track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3.5rem .5rem 3rem; margin: 0; }
.lb-slide img { max-height: calc(100dvh - 8rem); width: auto; max-width: 100%; object-fit: contain; border-radius: 6px; }
.lb-slide figcaption { margin-top: .7rem; font-size: .92rem; color: #d9e0d5; text-align: center; max-width: 60ch; }
.lb-btn { position: absolute; z-index: 2; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; display: grid; place-items: center; cursor: pointer; }
.lb-btn:hover { background: rgba(255,255,255,.26); }
.lb-btn svg { width: 24px; height: 24px; }
.lb-close { top: .7rem; right: .7rem; }
.lb-prev { left: .7rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: .7rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev, .lb-next { top: auto; bottom: .8rem; transform: none; } }

/* Mapa */
.map { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--green-900); box-shadow: var(--shadow); }
@media (min-width: 860px) { .map { aspect-ratio: 16/10; } }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; padding: 1rem; color: #fff; }
.map-facade picture, .map-facade picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.map-facade > *:not(picture) { position: relative; }
.map-facade p { margin: 0; max-width: 34ch; text-shadow: 0 1px 8px rgba(0,0,0,.6); }

/* FAQ */
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; margin-bottom: .7rem; }
.faq summary { cursor: pointer; padding: 1rem 1.2rem; font-weight: 700; list-style: none; position: relative; padding-right: 3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 1.2rem; top: .8rem; font-size: 1.4rem; color: var(--green-800); }
.faq details[open] summary::after { content: '–'; }
.faq details > div { padding: 0 1.2rem 1rem; }

.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--paper); border-radius: 12px; overflow: hidden; font-size: .97rem; }
th, td { text-align: left; padding: .75rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--green-100); color: var(--green-900); }

.prose h2 { margin-top: 2.2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin-bottom: 2rem; }
.toc p { font-weight: 700; margin-bottom: .4rem; }
.toc ol { margin: 0; padding-left: 1.2rem; }

figure.photo { margin: 1.6rem 0; }
figure.photo img { border-radius: var(--radius); }
figure.photo figcaption { font-size: .88rem; color: var(--muted); margin-top: .5rem; }

/* CTA final */
.cta-band { background: var(--green-800); color: #fff; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dfe8da; }

/* Rodapé */
.site-footer { background: var(--green-900); color: #d8e1d4; padding: 3rem 0 6.5rem; font-size: .95rem; }
@media (min-width: 980px) { .site-footer { padding-bottom: 2.5rem; } }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 2rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-logo { background: #fff; border-radius: 50%; padding: .5rem; width: 168px; }
.site-footer h2 { color: #fff; font-size: 1.1rem; margin-bottom: .6rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.footer-legal { border-top: 1px solid rgba(255,255,255,.15); margin-top: 2rem; padding-top: 1.2rem; font-size: .85rem; color: #b9c6b4; }

/* Barra fixa no telemóvel */
.mobile-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: .6rem 1rem calc(.6rem + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: .8rem; box-shadow: 0 -8px 24px -16px rgba(0,0,0,.4); }
.mobile-cta .btn { flex: 1; }
.mobile-cta small { font-size: .76rem; color: var(--muted); line-height: 1.3; max-width: 8.5rem; }
.mobile-cta .btn { white-space: nowrap; padding-inline: 1rem; }
@media (max-width: 359px) { .mobile-cta small { display: none; } }
/* Com JS, a barra só aparece quando nenhum botão de reserva da página está inteiro no ecrã */
.js .mobile-cta { transition: transform .25s ease, visibility .25s; }
.js .mobile-cta.is-hidden { transform: translateY(120%); visibility: hidden; }
@media (min-width: 980px) { .mobile-cta { display: none; } }

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