/* Estância Mithio — todo o visual do site. Siga a ordem das seções descrita no PADRAO.md.
   Paleta tirada das fotos da casa: granito com líquen, verde de araucária,
   hortênsia azul e o vermelho-cedro das sacadas. */

/* ===== Tokens ===== */
:root {
  --stone: #dcddd5;        /* granito claro: fundo principal */
  --stone-deep: #c9cbc1;   /* granito à sombra: faixas e linhas */
  --forest: #1d2c25;       /* araucária: texto e seções escuras */
  --forest-soft: #2a3b32;
  --moss: #4f5c4a;         /* texto secundário sobre granito */
  --mist: #b9c3b5;         /* texto secundário sobre verde */
  --hydrangea: #3f56a0;    /* hortênsia: botões, links, foco */
  --hydrangea-light: #a9b8ea;
  --cedar: #8b3b20;        /* sacadas de madeira: só a linha da trilha */
  --white: #ffffff;

  --font-body: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-title: "Gloock", Georgia, "Times New Roman", serif;

  --gutter: clamp(16px, 5vw, 72px);
  --max: 1280px;
  --radius: 2px;
  --header-h: 84px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--stone);
  color: var(--forest);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ul, ol, dl, dd, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(64px, 9vw, 128px); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--forest); color: var(--white); padding: 10px 16px;
}
.skip-link:focus { left: 16px; top: 16px; }

:focus-visible { outline: 2px solid var(--hydrangea); outline-offset: 3px; }
.suites :focus-visible,
.chegar :focus-visible { outline-color: var(--hydrangea-light); }

/* Fotos: cobrem a moldura sem distorcer */
figure img { width: 100%; height: 100%; object-fit: cover; }

/* ===== Tipografia ===== */
.h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(30px, 3.8vw, 50px);
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 18ch;
  margin-bottom: 24px;
  text-wrap: balance;
}
.h3 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.15;
  margin-bottom: 8px;
}
.body { color: var(--moss); max-width: 58ch; }
.body + .body { margin-top: 16px; }

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  font: 600 15px/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease;
}
.btn-primary { background: var(--hydrangea); color: var(--white); }
.btn-primary:hover { background: var(--forest); }
.btn-light { background: var(--stone); color: var(--forest); }
.btn-light:hover { background: var(--white); }

.link-quiet {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.link-quiet:hover { color: var(--hydrangea); }
.link-quiet-light:hover { color: var(--hydrangea-light); }

/* ===== Navegação ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--stone);
  border-bottom: 1px solid var(--stone-deep);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-h); }
/* Logo: arquivo PNG transparente em images/ (versão clara no rodapé) */
.brand { display: block; flex-shrink: 0; }
.brand-logo { height: 68px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav ul { display: flex; gap: 26px; }
.main-nav li a { font-size: 15px; text-decoration: none; }
.main-nav li a:hover { text-decoration: underline; text-underline-offset: 5px; }
.main-nav .btn { min-height: 40px; padding: 0 18px; }

/* Checkbox escondido controla o menu do celular */
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
.menu-button { display: none; }
.nav-note { display: none; }

/* ===== Hero ===== */
/* Texto à esquerda, foto da casa ao anoitecer ocupando o lado direito até a borda */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  min-height: calc(100svh - var(--header-h));
}
.hero-text {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(40px, 6vw, 88px) clamp(24px, 4vw, 64px) clamp(40px, 6vw, 88px) max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 400;
  /* cabe na coluna de texto: "araucárias," é a palavra mais longa */
  font-size: clamp(40px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-lead { color: var(--moss); max-width: 40ch; margin-block: 28px 32px; font-size: clamp(17px, 1.3vw, 19px); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
/* prova social logo abaixo do botão principal */
.hero-trust { margin-top: 20px; max-width: 44ch; font-size: 15px; color: var(--moss); }
.hero-trust strong { color: var(--forest); font-weight: 600; }

/* Botão de reserva no meio do conteúdo, nos pontos em que a pessoa já decidiu que gostou */
.cta-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 40px; }
.cta-inline p { font-size: 15px; color: var(--moss); max-width: 32ch; }
.suites .cta-inline p { color: var(--mist); }
.hero-photo { position: relative; overflow: hidden; background: var(--forest); }
.hero-photo img { position: absolute; inset: 0; object-position: 85% 50%; } /* a casa fica no lado direito da foto */

/* ===== A casa ===== */
/* Colagem assimétrica: texto em cima à esquerda, lareira alta, cozinha e mesa em alturas diferentes */
.casa-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  align-items: start;
}
.casa-text { grid-column: 1 / span 6; grid-row: 1; padding-bottom: clamp(16px, 3vw, 40px); }
.casa-photo-tall { grid-column: 9 / span 4; grid-row: 1 / span 2; aspect-ratio: 9 / 15; }
.casa-photo-wide { grid-column: 1 / span 4; grid-row: 2; aspect-ratio: 4 / 5; }
.casa-photo-mid { grid-column: 5 / span 4; grid-row: 2; aspect-ratio: 4 / 5; margin-top: clamp(40px, 8vw, 120px); }

/* ===== Suítes ===== */
.suites { background: var(--forest); color: var(--stone); }
.suites .body { color: var(--mist); }
.suites-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.suite-list { margin-top: 40px; border-top: 1px solid var(--forest-soft); }
.suite-row {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 16px;
  padding-block: 18px;
  border-bottom: 1px solid var(--forest-soft);
}
.suite-row dt { font-family: var(--font-title); font-size: 21px; line-height: 1.3; }
.suite-row dd { color: var(--mist); }
.suite-row-master dd { color: var(--stone); }

.suites-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 1.6vw, 20px);
  position: sticky;
  top: calc(var(--header-h) + 24px);
}
.suites-photo-main { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
.suites-photo-side { aspect-ratio: 4 / 5; }

/* ===== Trilha ===== */
/* Uma linha cor de cedro liga as paradas, do jeito que a trilha liga a casa à cachoeira.
   O JS desenha a linha conforme a pessoa rola; sem JS ela já aparece inteira. */
.trilha-intro { max-width: 640px; margin-bottom: clamp(48px, 7vw, 96px); }
.trail { position: relative; display: grid; gap: clamp(56px, 9vw, 140px); }
.trail-line {
  position: absolute;
  top: 0; bottom: 0; left: 50%;
  width: 40px; height: 100%;
  transform: translateX(-50%);
  overflow: visible;
}
.trail-line path {
  fill: none;
  stroke: var(--cedar);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1 9;
  vector-effect: non-scaling-stroke;
}

.trail-stop {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(48px, 9vw, 140px);
  align-items: center;
}
.trail-stop figure { aspect-ratio: 4 / 5; max-height: 560px; }
.trail-text { max-width: 34ch; }
.trail-text p { color: var(--moss); }
/* paradas alternam de lado */
.trail-stop:nth-child(odd) figure { order: 2; }
.trail-stop:nth-child(odd) .trail-text { justify-self: end; text-align: right; }
/* marco no ponto em que a linha passa por cada parada */
.trail-stop::before {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--stone);
  border: 2px solid var(--cedar);
  transform: translate(-50%, -50%);
}
.trail-stop:last-child::before { background: var(--cedar); }

/* ===== Mesa ===== */
.mesa { background: var(--stone-deep); }
.mesa-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 5fr) minmax(0, 3fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.mesa-photo-a { aspect-ratio: 3 / 4; }
.mesa-photo-b { aspect-ratio: 4 / 5; align-self: end; }
.mesa-photo-b img { object-position: 72% 50%; } /* o chef fica à direita na foto */
.mesa .body { color: var(--forest); opacity: .82; }

/* ===== Bom saber ===== */
.saber-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
/* Perguntas que abrem e fecham (details/summary: funciona sem JS; o JS só anima a altura) */
.faq { border-top: 1px solid var(--stone-deep); max-width: 62ch; }
.faq-item { border-bottom: 1px solid var(--stone-deep); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--hydrangea); }
.faq-item summary:focus-visible { outline: 2px solid var(--hydrangea); outline-offset: 4px; }
/* ícone de + que vira − ao abrir */
.faq-icon {
  position: relative;
  flex: none;
  width: 28px; height: 28px;
  border: 1px solid var(--stone-deep);
  border-radius: 50%;
  transition: background-color .3s var(--ease), border-color .3s var(--ease);
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 11px; height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .3s var(--ease);
}
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open]:not(.is-closing) .faq-icon { background: var(--forest); border-color: var(--forest); color: var(--stone); }
.faq-item[open]:not(.is-closing) .faq-icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-answer { overflow: hidden; color: var(--moss); }
.faq-answer p { padding: 0 48px 20px 0; }
.saber-photo { aspect-ratio: 8 / 7; }

/* ===== Avaliações ===== */
.avaliacoes { padding-top: 0; }
.quotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  margin-top: 48px;
  border-top: 1px solid var(--stone-deep);
  padding-top: 32px;
}
.quote blockquote p {
  font-family: var(--font-title);
  font-size: clamp(21px, 1.9vw, 26px);
  line-height: 1.3;
}
.quote blockquote p::before { content: "“"; }
.quote blockquote p::after { content: "”"; }
.quote figcaption { margin-top: 16px; font-size: 15px; color: var(--moss); }

/* ===== Como chegar ===== */
.chegar { background: var(--forest); color: var(--stone); }
.chegar .body { color: var(--mist); }
.chegar-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}
.chegar .hero-actions { margin-top: 36px; }
.chegar-address { margin-block: 8px 16px; font-size: 19px; line-height: 1.5; color: var(--stone); }
.chegar-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 20px; }
.chegar .body a { color: var(--stone); text-underline-offset: 4px; }

/* Mapa: desenho de curvas de nível da serra; o Google Maps só carrega ao tocar */
.map-facade {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--stone);
}
a.map-facade { cursor: pointer; }
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
a.map-facade:hover .map-art { transform: scale(1.04); }
.map-chao { fill: var(--stone); }
.map-mata { fill: var(--mist); opacity: .55; }
.map-relevo path { fill: none; stroke: var(--stone-deep); stroke-width: 2; }
.map-estrada { fill: none; stroke: var(--white); stroke-width: 12; stroke-linecap: round; }
.map-estrada-fina { stroke-width: 6; }
.map-pin {
  position: absolute; left: 50%; top: 50%;
  translate: -50% -100%;
  filter: drop-shadow(0 6px 8px rgba(29, 44, 37, .3));
  transition: translate .3s var(--ease);
}
a.map-facade:hover .map-pin { translate: -50% -110%; }
.map-pin-corpo { fill: var(--forest); }
.map-pin-miolo { fill: var(--hydrangea-light); }
.map-cta {
  position: absolute; left: 50%; bottom: 24px;
  translate: -50% 0;
  padding: 11px 18px;
  border-radius: 999px;
  background: var(--forest);
  color: var(--stone);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.map-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade.is-loading::after {
  content: "Carregando mapa…";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 14px; color: var(--moss);
}

/* ===== Guias (lista de páginas para planejar a viagem) ===== */
/* Linhas com o nome do guia em serifa e uma frase ao lado, separadas por linhas finas */
.guias { padding-top: 0; }
.guide-list { border-top: 1px solid var(--stone-deep); }
.guide-list li {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 4px 32px;
  align-items: baseline;
  padding-block: 18px;
  border-bottom: 1px solid var(--stone-deep);
}
.guide-list a {
  font-family: var(--font-title);
  font-size: clamp(20px, 1.8vw, 24px);
  line-height: 1.2;
  text-decoration: none;
}
.guide-list a:hover { color: var(--hydrangea); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.guide-list span { color: var(--moss); font-size: 15px; }

/* "Ver mais guias": o resto da lista fica fechado num <details> */
.guide-more .guide-list { border-top: 0; }
.guide-more summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 15px;
  color: var(--hydrangea);
  cursor: pointer;
  list-style: none;
}
.guide-more summary::-webkit-details-marker { display: none; }
.guide-more summary::after {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
  transition: transform .3s var(--ease);
}
.guide-more summary:hover { color: var(--forest); }
.guide-more-close { display: none; }
.guide-more[open] .guide-more-open { display: none; }
.guide-more[open] .guide-more-close { display: inline; }
.guide-more[open] summary::after { transform: translateY(2px) rotate(-135deg); }
/* com o botão embaixo: a lista aberta aparece antes dele */
.guide-more { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.guide-more > .guide-list { width: 100%; }
/* abre deslizando nos navegadores que já sabem animar até "auto" */
@supports (interpolate-size: allow-keywords) {
  .guide-more { interpolate-size: allow-keywords; }
  .guide-more::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size .5s var(--ease), content-visibility .5s allow-discrete;
  }
  .guide-more[open]::details-content { block-size: auto; }
}

/* ===== Páginas de conteúdo (geradas por tools/gerar_paginas.py) ===== */
.hero-page { min-height: min(78svh, 760px); }
.hero-page .hero-title { font-size: clamp(36px, 4.4vw, 64px); line-height: 1.02; }
.hero-page .hero-photo img { object-position: 50% 50%; }
.hero-page .hero-photo-topo img { object-position: 50% 12%; }
.crumbs { margin-bottom: 20px; font-size: 14px; color: var(--moss); }
.crumbs a { text-underline-offset: 4px; }

.prose-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: clamp(40px, 7vw, 112px);
  align-items: start;
}
.prose { max-width: 66ch; color: var(--moss); font-size: 18px; line-height: 1.7; }
.prose h2 {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.12;
  color: var(--forest);
  margin: 56px 0 16px;
  text-wrap: balance;
}
.prose > h2:first-child { margin-top: 0; }
.prose p + p { margin-top: 16px; }
.prose strong { color: var(--forest); font-weight: 600; }
.prose a { color: var(--hydrangea); text-underline-offset: 4px; }
.prose a:hover { color: var(--forest); }
.prose ul, .prose ol { margin-block: 16px; }
.prose li { position: relative; padding-left: 24px; }
.prose li + li { margin-top: 10px; }
.prose ul li::before { content: ""; position: absolute; left: 4px; top: .72em; width: 6px; height: 6px; background: var(--cedar); border-radius: 50%; }
.prose ol { counter-reset: passo; }
.prose ol li { counter-increment: passo; padding-left: 36px; }
.prose ol li::before { content: counter(passo); position: absolute; left: 0; top: 0; font-family: var(--font-title); color: var(--cedar); font-size: 20px; line-height: 1.4; }
.prose-photo { margin-block: 40px; aspect-ratio: 4 / 3; }
/* Tabela comparativa: rola de lado dentro da própria caixa em telas estreitas */
.table-wrap { margin-block: 20px 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; line-height: 1.4; }
.prose th, .prose td { padding: 12px 10px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--stone-deep); }
.prose thead th { color: var(--forest); font-weight: 600; border-bottom: 2px solid var(--forest); }
.prose tbody th { color: var(--forest); font-weight: 500; }
.prose td:last-child, .prose thead th:last-child { background: var(--white); color: var(--forest); font-weight: 600; }

/* Calculadora de custos: campos em duas colunas e o resultado logo abaixo */
.calc { margin-block: 24px 8px; padding: clamp(20px, 3vw, 32px); background: var(--white); border: 1px solid var(--stone-deep); border-radius: var(--radius); }
.calc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.calc-field label { display: block; color: var(--forest); font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.calc-field input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
  background: var(--stone);
  color: var(--forest);
  font: 500 17px/1.2 var(--font-body);
}
.calc-field input:focus { border-color: var(--hydrangea); outline: 2px solid var(--hydrangea); outline-offset: 0; }
.calc-field small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.4; color: var(--moss); }
.calc-result { display: block; margin-top: 28px; padding-top: 24px; border-top: 2px solid var(--forest); color: var(--forest); }
.calc-total { display: block; font-size: 17px; }
.calc-total strong { font-family: var(--font-title); font-weight: 400; font-size: clamp(34px, 4vw, 48px); line-height: 1; margin-right: 6px; }
.calc-sub { display: block; margin-top: 8px; color: var(--moss); font-size: 15px; }
.prose .calc-result ul { margin: 16px 0 0; }
.prose .calc-result li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-top: 1px solid var(--stone-deep); font-size: 15px; }
.prose .calc-result li + li { margin-top: 0; }
.prose .calc-result li::before { content: none; }
.calc-cta { margin-top: 20px; }
.prose .btn-primary,
.prose .btn-primary:hover { color: var(--white); text-decoration: none; } /* botão dentro do texto não herda a cor de link */

/* Resumo da casa ao lado do texto: acompanha a leitura no computador */
.house-box {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  padding: 20px 20px 24px;
  background: var(--white);
  border: 1px solid var(--stone-deep);
  border-radius: var(--radius);
}
.house-box-photo { aspect-ratio: 4 / 3; margin-bottom: 18px; }
.house-box-name { font-weight: 500; margin-bottom: 12px; }
.house-box-name span { font-family: var(--font-title); font-weight: 400; font-size: 24px; }
.house-box-facts { font-size: 15px; color: var(--moss); }
.house-box-facts li { padding-block: 6px; border-top: 1px solid var(--stone); }
.house-box-rating { margin-block: 14px 18px; font-size: 15px; color: var(--moss); }
.house-box-rating strong { color: var(--forest); font-weight: 600; }
.house-box .btn { width: 100%; }

.page-faq { padding-top: 0; }
.cta-final { background: var(--forest); color: var(--stone); }
.cta-final .body { color: var(--mist); margin-bottom: 32px; }
.cta-final :focus-visible { outline-color: var(--hydrangea-light); }

/* ===== Rodapé ===== */
.site-footer { padding-block: 48px; background: var(--forest); color: var(--mist); font-size: 15px; border-top: 1px solid var(--forest-soft); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.footer-brand img { height: 84px; width: auto; }
.site-footer a { text-decoration-thickness: 1px; text-underline-offset: 4px; }
.site-footer a:hover { color: var(--stone); }
.footer-copy { margin-left: auto; }
.footer-links ul { display: grid; gap: 0; } /* mesma altura de linha do endereço ao lado */
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }

/* ===== Reserva flutuante ===== */
/* No lugar do WhatsApp flutuante do modelo: as reservas vão para o Airbnb.
   Só aparece em telas menores, onde o botão do menu fica escondido. */
.book-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: none; align-items: center; min-height: 52px; padding: 0 22px;
  border-radius: 999px; background: var(--hydrangea); color: var(--white);
  font-weight: 600; font-size: 15px; text-decoration: none;
  box-shadow: 0 6px 20px rgba(29, 44, 37, .28);
}
.book-float.is-ready { transition: opacity .25s ease, transform .25s var(--ease); }
/* escondido enquanto o botão do topo ainda está na tela (classe ligada pelo JS) */
.book-float.is-hidden { opacity: 0; transform: translateY(12px); pointer-events: none; }

/* ===== Responsivo ===== */
@media (max-width: 1180px) {
  .main-nav ul { gap: 20px; }
  .suite-row { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 960px) {
  .menu-button {
    display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; cursor: pointer;
  }
  .menu-button span,
  .menu-button span::before,
  .menu-button span::after {
    display: block; width: 22px; height: 2px; background: var(--forest); position: relative; content: "";
  }
  .menu-button span::before { position: absolute; top: -7px; }
  .menu-button span::after { position: absolute; top: 7px; }
  /* as três linhas viram um X ao abrir */
  .menu-button span { transition: background-color .2s ease; }
  .menu-button span::before,
  .menu-button span::after { transition: top .3s ease .3s, transform .3s var(--ease); }
  .menu-toggle:checked ~ .menu-button span { background: transparent; }
  .menu-toggle:checked ~ .menu-button span::before,
  .menu-toggle:checked ~ .menu-button span::after { top: 0; transition: top .3s ease, transform .3s var(--ease) .3s; }
  .menu-toggle:checked ~ .menu-button span::before { transform: rotate(45deg); }
  .menu-toggle:checked ~ .menu-button span::after { transform: rotate(-45deg); }
  .menu-toggle:focus-visible ~ .menu-button { outline: 2px solid var(--hydrangea); outline-offset: 2px; }

  /* Menu desce como uma cortina. A cortina vai só até a altura do menu (inset 0), assim a
     abertura dura de verdade o tempo da transição. */
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    display: flex; flex-direction: column; align-items: stretch; gap: 16px;
    padding: 24px var(--gutter) 28px; background: var(--stone); border-bottom: 1px solid var(--stone-deep);
    max-height: calc(100dvh - var(--header-h)); overflow-y: auto;
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path .55s var(--ease), visibility 0s linear .55s;
  }
  .menu-toggle:checked ~ .main-nav {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path .7s cubic-bezier(.33, 0, .2, 1), visibility 0s;
  }
  /* a página por trás do menu escurece (::before fica atrás do menu) */
  .site-header::before {
    content: ""; position: fixed; inset: var(--header-h) 0 0 0;
    background: rgba(29, 44, 37, .45); opacity: 0; pointer-events: none;
    transition: opacity .55s ease;
  }
  .site-header:has(.menu-toggle:checked)::before { opacity: 1; transition-duration: .7s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav li a { display: flex; align-items: center; min-height: 48px; font-size: 18px; border-bottom: 1px solid var(--stone-deep); }
  .main-nav .btn { min-height: 52px; margin-top: 8px; }
  /* os itens entram em sequência, logo atrás da cortina */
  .main-nav li,
  .main-nav .btn { opacity: 0; transform: translateY(-10px); transition: opacity .3s ease, transform .3s ease; }
  .menu-toggle:checked ~ .main-nav li,
  .menu-toggle:checked ~ .main-nav .btn { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s var(--ease), background-color .2s ease; }
  .menu-toggle:checked ~ .main-nav li:nth-child(1) { transition-delay: .15s; }
  .menu-toggle:checked ~ .main-nav li:nth-child(2) { transition-delay: .22s; }
  .menu-toggle:checked ~ .main-nav li:nth-child(3) { transition-delay: .29s; }
  .menu-toggle:checked ~ .main-nav li:nth-child(4) { transition-delay: .36s; }
  .menu-toggle:checked ~ .main-nav li:nth-child(5) { transition-delay: .43s; }
  .menu-toggle:checked ~ .main-nav .btn { transition-delay: .5s, .5s, 0s; }
  body:has(.menu-toggle:checked) { overflow: hidden; } /* a página não rola com o menu aberto */
  .main-nav .nav-note { display: block; font-size: 14px; color: var(--moss); text-align: center; }

  .book-float { display: inline-flex; }
  body:has(.menu-toggle:checked) .book-float { opacity: 0; pointer-events: none; }
  .site-footer { padding-bottom: 96px; }

  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-photo { order: -1; aspect-ratio: 4 / 3; }
  .hero-text { padding: 36px var(--gutter) 56px; }

  .casa-text { grid-column: 1 / -1; }
  .casa-photo-tall { grid-column: 1 / span 6; grid-row: 2; }
  .casa-photo-wide { grid-column: 7 / span 6; grid-row: 2; }
  .casa-photo-mid { grid-column: 7 / span 6; grid-row: 3; margin-top: 0; }
  .casa-photo-tall { grid-row: 2 / span 2; }

  .suites-grid,
  .saber-grid,
  .chegar-grid { grid-template-columns: 1fr; }
  .map-facade { aspect-ratio: 4 / 3; }
  .suites-photos { position: static; }

  .mesa-grid { grid-template-columns: 1fr 1fr; }
  .mesa-text { grid-column: 1 / -1; grid-row: 1; }

  .quotes { grid-template-columns: 1fr; gap: 32px; }

  .hero-page { min-height: 0; }
  .prose-grid { grid-template-columns: minmax(0, 1fr); } /* minmax: a tabela não alarga a página */
  .house-box { position: static; max-width: 420px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  :root { --header-h: 72px; }
  .brand-logo { height: 58px; }
  .hero-photo { aspect-ratio: 3 / 2; }
  .hero-photo img { object-position: 60% 58%; } /* no celular: a casa e as sacadas no recorte deitado */
  .hero-text { padding-top: 24px; padding-bottom: 48px; }
  .hero-title { font-size: clamp(34px, 10vw, 44px); } /* o botão de reserva cabe na primeira tela */
  .hero-lead { margin-block: 20px 24px; }

  .casa-grid { grid-template-columns: 1fr 1fr; }
  .casa-text { grid-column: 1 / -1; }
  .casa-photo-tall { grid-column: 1; grid-row: 2 / span 2; }
  .casa-photo-wide { grid-column: 2; grid-row: 2; }
  .casa-photo-mid { grid-column: 2; grid-row: 3; }

  /* Trilha no celular: a linha corre pela esquerda e as paradas descem em fila */
  .trail-line { left: 7px; }
  .trail-stop { grid-template-columns: 1fr; gap: 20px; padding-left: 36px; }
  .trail-stop::before { left: 7px; top: 0; transform: translate(-50%, 0); }
  .trail-stop:nth-child(odd) figure { order: 0; }
  .trail-stop:nth-child(odd) .trail-text { justify-self: start; text-align: left; }
  .trail-stop figure { aspect-ratio: 4 / 3; }

  .footer-copy { margin-left: 0; }

  .guide-list li { grid-template-columns: 1fr; }
  .hero-page .hero-title { font-size: clamp(32px, 9vw, 40px); }
  .prose { font-size: 17px; }
  .prose-photo { margin-inline: calc(var(--gutter) * -1); }
  /* tabela inteira na tela, inclusive a coluna da casa */
  .prose table { min-width: 0; font-size: 13px; }
  .prose th, .prose td { padding: 10px 5px; }
  .calc-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

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