:root {
  --verde: #1E4636;
  --verde-escuro: #132E24;
  --laranja: #EE8A4E;
  --cal: #FFFFFF;
  --nevoa: #EEF2EE;
  --tinta: #1B2420;
  --tinta-2: #55605A;
  --linha: rgba(30, 70, 54, .18);
  --titulo: "Jost", "Futura", "Century Gothic", system-ui, sans-serif;
  --texto: "Newsreader", "Iowan Old Style", Georgia, serif;
  --script: "Mrs Saint Delafield", "Snell Roundhand", cursive;
  --gutter: clamp(20px, 4.5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--cal); color: var(--tinta); font-family: var(--texto); font-size: 19px; line-height: 1.6; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
section[id], header[id] { scroll-margin-top: 16px; }

.wrap {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

.eyebrow { font-family: var(--titulo); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--laranja); }
h2 { font-family: var(--texto); font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: var(--verde); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 26px; border-radius: 2px;
  background: var(--laranja); color: var(--verde-escuro);
  font-family: var(--titulo); font-size: 16px; font-weight: 500; text-decoration: none;
  transition: background .2s ease, color .2s ease;
}
.btn:hover { background: #f39c66; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.btn-ghost { background: transparent; color: var(--cal); box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-small { padding: 12px 22px; font-size: 15px; }
.btn:focus-visible, .menu a:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--laranja); outline-offset: 3px; }
.buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* Marca */
.brand { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; }
.brand { color: var(--cal); }
.logo {
  display: block; width: 150px; aspect-ratio: 1070 / 700; background: currentColor;
  -webkit-mask: url("img/logo.png") center / contain no-repeat;
  mask: url("img/logo.png") center / contain no-repeat;
}

/* Início */
.hero {
  position: relative; min-height: 860px; display: flex; flex-direction: column; justify-content: space-between;
  color: var(--cal);
  background:
    linear-gradient(180deg, rgba(14,31,24,.65) 0%, rgba(14,31,24,.12) 30%, rgba(14,31,24,.19) 50%, rgba(14,31,24,.9) 100%),
    var(--hero-img, url("img/patio-piscina.jpg")) center / cover no-repeat;
  padding-top: calc(env(safe-area-inset-top, 0px) + 32px);
  padding-bottom: 64px;
}
.nav { display: flex; justify-content: space-between; align-items: center; }
.menu { display: flex; align-items: center; gap: 36px; }
.menu a:not(.btn) { font-family: var(--titulo); font-size: 15px; text-decoration: none; }
.menu a:not(.btn):hover { color: var(--laranja); }
.menu-btn { display: none; }

.hero-content { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.hero-text { max-width: 820px; display: grid; gap: 24px; }
.hero h1 { font-family: var(--texto); font-size: clamp(44px, 6vw, 76px); line-height: 1.02; }
.hero-sub { max-width: 600px; font-size: 21px; line-height: 1.4; color: rgba(255,255,255,.85); }
.hero .buttons { padding-top: 8px; }
.score { display: grid; justify-items: end; gap: 4px; flex-shrink: 0; }
.score-num { font-size: 56px; line-height: 1; }
.score-label { font-family: var(--titulo); font-size: 13px; color: rgba(255,255,255,.7); }

/* A Casa */
.casa { display: grid; grid-template-columns: 1fr 640px; gap: 96px; padding-top: 140px; padding-bottom: 120px; }
.casa-text { display: grid; gap: 28px; align-content: start; padding-top: 40px; min-width: 0; }
.legend { margin: 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--laranja); display: grid; gap: 10px; }
.legend p { font-style: italic; font-size: 24px; line-height: 1.4; color: var(--verde); }
.legend cite { font-style: normal; font-family: var(--titulo); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--tinta-2); }
.casa-images { position: relative; height: 820px; }
.casa-images .img-main { position: absolute; right: 0; top: 0; width: 520px; height: 700px; object-fit: cover; }
.casa-images .img-small { position: absolute; left: 0; bottom: 0; width: 300px; height: 320px; object-fit: cover; border: 10px solid var(--cal); }

.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; padding-bottom: 120px; }
.numbers div { display: grid; gap: 6px; padding-top: 36px; border-top: 1px solid var(--linha); }
.numbers div + div { border-top: 1px solid var(--linha); }
.numbers strong { font-weight: 400; font-size: 64px; line-height: 1; color: var(--verde); }
.numbers span { font-family: var(--titulo); font-size: 15px; color: var(--tinta-2); }

/* Quartos */
.quartos { background: var(--verde-escuro); color: var(--cal); padding: 120px 0; }
.quartos h2 { color: var(--cal); }
.quartos-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin-bottom: 64px; }
.quartos-head > div { max-width: 640px; display: grid; gap: 20px; }
.quartos-intro { max-width: 440px; color: rgba(255,255,255,.78); }
.gallery {
  display: grid; grid-template-columns: 2fr 1fr 1fr 2fr; grid-template-rows: 312px 312px; gap: 16px; margin-bottom: 64px;
  grid-template-areas: "a b b e" "a c d e";
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.g-a { grid-area: a; } .g-b { grid-area: b; } .g-c { grid-area: c; } .g-d { grid-area: d; } .g-e { grid-area: e; }
.gallery { grid-auto-rows: 312px; }
.lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.lists h3 { font-family: var(--titulo); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--laranja); margin-bottom: 16px; }
.lists li, .places li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.15); }
.lists li span, .places li span { font-size: 19px; }
.lists li small, .places li small { font-family: var(--titulo); font-size: 14px; color: rgba(255,255,255,.6); text-align: right; }

/* Tia Lita */
.lita { display: grid; grid-template-columns: 560px 1fr; gap: 96px; align-items: center; padding-top: 140px; padding-bottom: 140px; }
.lita > img { width: 100%; height: 720px; object-fit: cover; }
.lita-text { display: grid; gap: 28px; min-width: 0; }
.lita-text blockquote { margin: 0; font-style: italic; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.15; color: var(--verde); }
.signature { font-family: var(--titulo); font-size: 14px; color: var(--tinta-2); }
.memories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding-top: 12px; }
.memories div { display: grid; gap: 6px; align-content: start; padding-top: 18px; border-top: 2px solid var(--laranja); }
.memories strong { font-weight: 400; font-size: 20px; color: var(--verde); }
.memories span { font-family: var(--titulo); font-size: 13px; line-height: 1.4; color: var(--tinta-2); }

/* Alojamento literário */
.literario { background: var(--verde-escuro); color: var(--cal); padding: 140px 0 120px; }
.literario h2 { color: var(--cal); font-size: clamp(38px, 5vw, 64px); }
.lit-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; }
.lit-text { display: grid; gap: 22px; min-width: 0; }
.lit-text p:not(.eyebrow) { color: rgba(255,255,255,.82); max-width: 62ch; }
.lit-photo { margin: 0; display: grid; gap: 12px; }
.lit-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.lit-photo figcaption { font-style: italic; font-size: 16px; color: rgba(255,255,255,.6); }
.lit-motto { margin: 96px auto 80px; max-width: 980px; text-align: center; font-style: italic; font-size: clamp(28px, 3.4vw, 46px); line-height: 1.2; color: var(--laranja); text-wrap: balance; }
.lit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px 48px; }
.lit-grid article { display: grid; gap: 12px; align-content: start; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.2); }
.lit-grid h3 { font-size: 24px; color: var(--cal); }
.lit-grid p { font-size: 17px; line-height: 1.6; color: rgba(255,255,255,.72); }
.lit-link { display: inline-flex; align-items: center; gap: 8px; font-family: var(--titulo); font-size: 15px; font-weight: 500; color: var(--laranja); text-decoration: none; }
.lit-link:hover { text-decoration: underline; }
.lit-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* Idioma */
.lang { display: inline-flex; gap: 10px; font-family: var(--titulo); font-size: 13px; letter-spacing: .08em; }
.lang a { text-decoration: none; opacity: .6; }
.lang a[aria-current="true"] { opacity: 1; border-bottom: 1px solid currentColor; }
.lang a:hover { opacity: 1; }

/* Galveias */
.galveias-text p a { color: var(--verde); text-decoration-color: var(--laranja); text-underline-offset: 3px; }
.places li a { font-size: 19px; color: var(--verde); text-decoration-color: rgba(238,138,78,.6); text-underline-offset: 3px; }
.galveias { background: var(--nevoa); }
.galveias-photo { width: 100%; height: 520px; object-fit: cover; }
.galveias-inner { display: grid; grid-template-columns: 1fr 440px; gap: 96px; padding-top: 100px; padding-bottom: 120px; }
.galveias-text { display: grid; gap: 28px; min-width: 0; }
.galveias-text h3 { font-family: var(--titulo); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--tinta-2); padding-top: 8px; }
.places li { border-bottom-color: var(--linha); }
.places li span { color: var(--verde); }
.places li small { color: var(--tinta-2); }
.timeline { padding-top: 48px; display: grid; gap: 28px; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 24px; }
.timeline strong { font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--verde); }
.timeline li.hl strong { color: var(--laranja); }
.timeline span { font-family: var(--titulo); font-size: 15px; line-height: 1.5; }

/* Comentários */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; padding-top: 120px; padding-bottom: 120px; }
.reviews figure { margin: 0; display: grid; gap: 20px; align-content: start; }
.reviews figure::before { content: "“"; font-size: 64px; line-height: .6; color: var(--laranja); height: 30px; }
.reviews blockquote { margin: 0; font-size: 22px; line-height: 1.45; color: var(--verde); }
.reviews figcaption { font-family: var(--titulo); font-size: 13px; color: var(--tinta-2); }

/* Reservar */
.book { background: var(--verde); color: var(--cal); padding: 120px 0 calc(64px + env(safe-area-inset-bottom, 0px)); }
.book h2 { color: var(--cal); font-size: clamp(36px, 4.2vw, 56px); }
.book-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 72px; }
.book-top > div:first-child { max-width: 720px; display: grid; gap: 20px; }
.info { display: grid; grid-template-columns: repeat(4, 1fr); gap: 48px; padding-top: 40px; border-top: 1px solid rgba(255,255,255,.2); margin-bottom: 72px; }
.info h3 { font-family: var(--titulo); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--laranja); margin-bottom: 10px; }
.info p { font-size: 18px; line-height: 1.55; }
.map { height: 360px; background: var(--verde-escuro); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
.footer { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: 48px; }
.footer p { font-family: var(--titulo); font-size: 13px; color: rgba(255,255,255,.6); }

.sticky-book { display: none; }

/* Tablet */
@media (max-width: 1180px) {
  .casa { grid-template-columns: 1fr 1fr; gap: 56px; }
  .casa-images { height: 680px; }
  .casa-images .img-main { width: 85%; height: 560px; }
  .casa-images .img-small { width: 50%; height: 260px; }
  .lita { grid-template-columns: 1fr 1fr; gap: 56px; }
  .lita > img { height: 600px; }
  .memories { grid-template-columns: repeat(2, 1fr); }
  .galveias-inner { grid-template-columns: 1fr 1fr; gap: 56px; }
  .menu { gap: 24px; }
}

/* Telemóvel */
@media (max-width: 820px) {
  body { font-size: 17px; }
  .menu-btn {
    display: inline-flex; flex-direction: column; justify-content: center; gap: 7px;
    width: 44px; height: 44px; padding: 0 9px; background: none; border: 0; cursor: pointer; position: relative; z-index: 30;
  }
  .menu-btn span { display: block; height: 2px; background: var(--cal); transition: transform .25s ease; }
  .menu-open .menu-btn span:first-child { transform: translateY(4.5px) rotate(45deg); }
  .menu-open .menu-btn span:last-child { transform: translateY(-4.5px) rotate(-45deg); }
  .menu {
    position: fixed; inset: 0; z-index: 20; background: var(--verde-escuro);
    flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px;
    padding: 0 max(var(--gutter), env(safe-area-inset-left, 0px));
    opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s;
  }
  .menu a:not(.btn) { font-family: var(--texto); font-size: 34px; }
  .menu-open .menu { opacity: 1; visibility: visible; }
  .menu-open { overflow: hidden; }
  .logo { width: 112px; }

  .hero {
    min-height: 760px; padding-bottom: 28px;
    background:
      linear-gradient(180deg, rgba(14,31,24,.7) 0%, rgba(14,31,24,.06) 25%, rgba(14,31,24,.25) 50%, rgba(14,31,24,.94) 100%),
      var(--hero-img-m, url("img/casa-aerea.jpg")) center / cover no-repeat;
  }
  .hero-content { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-text { gap: 16px; }
  .hero h1 { font-size: 38px; line-height: 1.1; }
  .hero-sub { font-size: 17px; }
  .hero .buttons { display: none; }
  .score { justify-items: start; grid-auto-flow: column; align-items: baseline; gap: 8px; }
  .score-num { font-size: 13px; font-family: var(--titulo); color: rgba(255,255,255,.7); }

  .casa { grid-template-columns: 1fr; gap: 20px; padding-top: 72px; padding-bottom: 40px; }
  .casa-text { padding-top: 0; gap: 20px; }
  .casa-images { order: 2; height: auto; }
  .casa-images .img-main { position: static; width: 100%; height: 440px; }
  .casa-images .img-small { display: none; }
  .legend { order: 3; padding-left: 18px; }
  .legend p { font-size: 20px; }
  .casa-text { display: contents; }
  .casa-text .eyebrow { order: 0; } .casa-text h2 { order: 0; } .casa-text > p { order: 1; }
  h2 { font-size: 34px; line-height: 1.12; }

  .numbers { grid-template-columns: 1fr; gap: 0; padding-bottom: 72px; }
  .numbers div { grid-template-columns: 56px 1fr; align-items: center; gap: 16px; padding: 12px 0; }
  .numbers strong { font-size: 40px; }
  .numbers div:nth-child(3) { display: none; }

  .quartos { padding: 72px 0; }
  .quartos-head { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 20px; }
  .quartos-intro { display: none; }
  .gallery {
    display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(-1 * var(--gutter)) 20px;
    padding: 0 var(--gutter); scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery img { flex: 0 0 280px; width: 280px; height: 360px; scroll-snap-align: start; }
  .lists { grid-template-columns: 1fr; gap: 32px; }
  .lists li span { font-size: 17px; }
  .lists li small { font-size: 13px; }

  .lita { grid-template-columns: 1fr; gap: 20px; padding-top: 72px; padding-bottom: 72px; }
  .lita > img { height: 420px; }
  .lita-text { gap: 20px; }
  .lita-text blockquote { font-size: 28px; line-height: 1.12; }
  .memories { grid-template-columns: 1fr; gap: 0; }
  .memories div { grid-auto-flow: column; justify-content: space-between; align-items: baseline; padding: 13px 0; border-top: 0; border-bottom: 1px solid rgba(238,138,78,.4); }
  .memories strong { font-size: 17px; }

  .literario { padding: 72px 0; }
  .literario h2 { font-size: 36px; }
  .lit-intro { grid-template-columns: 1fr; gap: 28px; }
  .lit-text { gap: 18px; }
  .lit-photo img { aspect-ratio: 4 / 3; }
  .lit-motto { margin: 48px 0; text-align: left; font-size: 26px; }
  .lit-grid { grid-template-columns: 1fr; gap: 32px; }
  .lit-grid h3 { font-size: 21px; }
  .menu .lang { font-size: 16px; gap: 18px; margin-top: 8px; }
  .places li a { font-size: 17px; }
  .galveias-photo { height: 280px; }
  .galveias-inner { grid-template-columns: 1fr; gap: 20px; padding-top: 32px; padding-bottom: 72px; }
  .galveias-text { gap: 20px; }
  .timeline { padding-top: 8px; gap: 4px; }
  .timeline li { grid-template-columns: 96px 1fr; gap: 16px; padding: 10px 0; }
  .timeline strong { font-size: 20px; }
  .timeline span { font-size: 14px; }

  .reviews { grid-template-columns: 1fr; gap: 40px; padding-top: 64px; padding-bottom: 64px; }
  .reviews figure:nth-child(n+2) { display: none; }
  .reviews blockquote { font-size: 24px; line-height: 1.12; }

  .book { padding: 72px 0 calc(120px + env(safe-area-inset-bottom, 0px)); }
  .book h2 { font-size: 34px; }
  .book-top { flex-direction: column; align-items: stretch; gap: 20px; margin-bottom: 32px; }
  .book .buttons { flex-direction: column; }
  .book .btn { justify-content: space-between; padding: 17px 20px; }
  .info { grid-template-columns: 1fr; gap: 24px; padding-top: 24px; margin-bottom: 40px; }
  .map { height: 260px; }
  .footer { flex-direction: column; align-items: flex-start; }

  .sticky-book {
    display: flex; justify-content: space-between; align-items: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    padding: 12px max(20px, env(safe-area-inset-right, 0px)) calc(14px + env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    background: var(--cal); border-top: 1px solid var(--linha);
  }
  .sticky-book div { display: grid; gap: 2px; }
  .sticky-book strong { font-family: var(--titulo); font-size: 14px; font-weight: 500; color: var(--verde); }
  .sticky-book span { font-family: var(--titulo); font-size: 12px; color: var(--tinta-2); }
}
