/* Solunar Chalés — landing page styles
   ------------------------------------------------
   Palette, type, layout. One file. */

:root {
  /* ── Paleta extraída do logo Chalé Solunar ──
     verde do fundo, verde das folhas, creme, caramelo e terracota. */

  /* Verdes */
  --forest:      #222d1c;   /* verde do fundo do logo — cor principal */
  --forest-deep: #1b2616;   /* verde das folhas, mais escuro */
  --forest-2:    #303f26;   /* verde levantado, para hover */
  --moss:        #4a5c3c;

  /* Terra */
  --bark:      #a5754d;   /* caramelo do logo sobre verde */
  --bark-deep: #5d2816;   /* terracota do fundo alternativo */
  --amber:     #efbc85;   /* pêssego do logo — acento sobre fundo escuro */
  --amber-2:   #f5cfa4;   /* hover */
  --amber-ink: #8f6440;   /* caramelo escurecido — acento sobre fundo claro */

  /* Papel */
  --cream:     #eae5c8;   /* creme do logo — painéis e texto sobre verde */
  --cream-2:   #ded7b8;
  --sand:      #f0ecda;   /* creme clareado, para faixas de seção */
  --paper:     #faf7ed;   /* fundo geral, o mais claro */
  --linen:     #d8cfa8;

  /* Tinta */
  --ink:       #222d1c;
  --ink-soft:  #4a5642;
  --ink-mute:  rgba(34,45,28,0.58);
  --hair:      rgba(34,45,28,0.16);

  /* Type */
  --display: 'Cormorant Garamond', 'EB Garamond', Georgia, serif;
  --body:    'Lora', Georgia, serif;
  --caps:    'Marcellus', serif;

  --max:   1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  background: var(--paper);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

/* ───────────────────────── primitives ───────────────────────── */
/* Acento padrão = fundo claro. Seções escuras trocam para --amber abaixo. */
.eyebrow {
  font-family: var(--caps);
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--amber-ink);
}
.eyebrow.dim { color: var(--ink-mute); }

/* Fundos escuros: o acento vira o pêssego do logo */
.hero .eyebrow,
.amenities .eyebrow,
.location .eyebrow,
.footer .eyebrow,
.modal-head .eyebrow,
.pkg-card.featured .eyebrow { color: var(--amber); }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.005em; margin: 0; }
h1 { font-size: clamp(54px, 8vw, 116px); line-height: 0.96; }
h2 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; }
h3 { font-size: 28px; line-height: 1.2; }
p  { margin: 0; }

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px;
  font-family: var(--caps);
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
  border: 1px solid currentColor;
  background: transparent;
  text-decoration: none;
}
.btn .arrow { width: 14px; height: 14px; }
/* Botão principal: terracota do logo sobre fundos claros… */
.btn-primary {
  background: var(--bark-deep); color: var(--cream);
  border-color: var(--bark-deep);
}
.btn-primary:hover { background: var(--bark); border-color: var(--bark); }
/* …e o pêssego do logo quando está sobre fundo escuro. */
.hero .btn-primary,
.amenities .btn-primary,
.location .btn-primary {
  background: var(--amber); color: var(--forest);
  border-color: var(--amber);
}
.hero .btn-primary:hover,
.amenities .btn-primary:hover,
.location .btn-primary:hover {
  background: var(--amber-2); border-color: var(--amber-2);
}
.btn-ghost { color: var(--cream); border-color: rgba(234,229,200,0.45); }
.btn-ghost:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.btn-outline { color: var(--forest); border-color: var(--forest); }
.btn-outline:hover { background: var(--forest); color: var(--cream); }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Section heads */
.section-head { max-width: 760px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 14px 0 18px; color: var(--forest); }
.section-head p { color: var(--ink-soft); font-size: 18px; }
.section-head.left { margin-left: 0; text-align: left; }

/* Section spacing */
section { padding: clamp(80px, 10vw, 140px) 0; }
/* impede que o cabeçalho fixo cubra o título ao clicar nos links do menu */
section[id] { scroll-margin-top: 84px; }

/* (wood-grain texture overlay removed — unused) */

/* ───────────────────────── header / nav ───────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: background .35s ease, padding .35s ease, color .35s ease;
  color: var(--cream);
}
.site-header.scrolled {
  background: rgba(34,45,28,0.92);
  backdrop-filter: blur(8px);
  padding: 16px var(--gutter);
}
.brand { display: flex; align-items: center; }
.brand-logo {
  height: 34px; width: auto; display: block;
  transition: height .35s ease;
}
.site-header.scrolled .brand-logo { height: 30px; }
.footer-logo { height: 52px; }
@media (max-width: 640px) {
  .brand-logo { height: 28px; }
  .footer-logo { height: 44px; }
}

.site-nav { display: flex; gap: 38px; }
.site-nav a {
  font-family: var(--caps); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  opacity: 0.85; transition: opacity .2s;
}
.site-nav a:hover { opacity: 1; }
.header-cta {
  font-family: var(--caps); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  padding: 11px 20px; border: 1px solid rgba(234,229,200,0.5);
  transition: background .2s, border-color .2s;
}
.header-cta:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }

/* ───────────────────────── hero ───────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 0;
  display: flex; align-items: flex-end;
  color: var(--cream);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-color: var(--forest-deep);
  background-image: var(--photo-hero);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(27,38,22,0.55) 0%, rgba(27,38,22,0.15) 30%, rgba(27,38,22,0.85) 100%),
    linear-gradient(90deg, rgba(27,38,22,0.55) 0%, rgba(27,38,22,0) 60%);
}
.hero-content {
  position: relative;
  padding: 0 var(--gutter) clamp(80px, 12vw, 140px);
  max-width: 1100px;
}
.hero-content .eyebrow { color: var(--amber); }
.hero-content h1 {
  margin: 24px 0 28px;
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 2px 30px rgba(0,0,0,0.25);
}
.hero-content h1 em { font-style: italic; color: var(--amber); font-weight: 500; }
.hero-content p.lead {
  max-width: 540px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(234,229,200,0.86);
  margin-bottom: 44px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }

.hero-meta {
  position: absolute;
  bottom: 36px; right: var(--gutter);
  display: flex; gap: 28px;
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(234,229,200,0.7);
}
.hero-meta span strong {
  display: block;
  font-family: var(--display); font-weight: 500;
  font-size: 28px; letter-spacing: 0;
  color: var(--cream); text-transform: none;
  margin-bottom: 4px;
}

.hero-scroll {
  position: absolute; left: var(--gutter); bottom: 36px;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--caps); font-size: 9.5px;
  letter-spacing: 0.4em; text-transform: uppercase;
  color: rgba(234,229,200,0.55);
}
.hero-scroll .line {
  width: 1px; height: 56px;
  background: linear-gradient(to bottom, rgba(234,229,200,0.5), rgba(234,229,200,0));
  animation: drip 2.6s ease-in-out infinite;
}
@keyframes drip {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;   transform: scaleY(1); }
}

/* ───────────────────────── o chalé ───────────────────────── */
.chale { background: var(--paper); }
.chale-block {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* mosaico de fotos: 1 grande + 4 menores */
.chale-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 560px;
}
.chale-photos .p {
  background-color: var(--forest);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--hair);
}
.chale-photos .p.main {
  grid-column: span 2;
  aspect-ratio: 16 / 10;
}

/* A coluna de texto gruda no lugar enquanto as fotos passam ao lado,
   assim a lista fica visível do começo ao fim do mosaico. */
.chale-info {
  padding-top: 6px;
  position: sticky;
  top: 110px;
}
.chale-info h3 { color: var(--forest); margin: 12px 0 24px; }

.check-list {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.check-list li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.45;
}
.check-list li svg {
  width: 15px; height: 15px;
  flex: 0 0 auto;
  margin-top: 5px;
  color: var(--amber-ink);
}
.chale-info .btn { justify-content: center; }

/* ───────────────────────── pacotes ───────────────────────── */
.packages { background: var(--sand); }
.pkg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1080px;
  margin: 0 auto;
  align-items: stretch;
}

/* Os três cards nascem claros e iguais. Ao passar o mouse, o card
   inteiro vira o verde da marca — texto creme, preço em pêssego e
   botão preenchido. É a mudança mais forte da página, de propósito. */
.pkg-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-top: 3px solid var(--hair);
  padding: 38px 30px 30px;
  display: flex; flex-direction: column; gap: 13px;
  transition: background .35s ease, border-color .35s ease,
              transform .35s ease, box-shadow .35s ease;
}
.pkg-card.featured { border-top-color: var(--bark-deep); }

.pkg-card:hover {
  background: var(--forest);
  border-color: var(--forest);
  border-top-color: var(--amber);
  transform: translateY(-8px);
  box-shadow: 0 30px 60px -30px rgba(34,45,28,0.6);
}

/* etiqueta */
.pkg-flag {
  position: absolute; top: 0; right: 26px;
  transform: translateY(-50%);
  background: var(--sand);
  border: 1px solid var(--amber-ink);
  color: var(--amber-ink);
  font-family: var(--caps); font-size: 9px;
  letter-spacing: 0.3em; text-transform: uppercase;
  padding: 6px 11px;
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.pkg-card.featured .pkg-flag {
  background: var(--bark-deep);
  border-color: var(--bark-deep);
  color: var(--cream);
}
.pkg-card:hover .pkg-flag {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--forest);
}

/* textos — todos com transição, para a virada ser suave */
.pkg-num, .pkg-card h3, .pkg-cap, .pkg-price .was, .pkg-price .now,
.pkg-price small, .pkg-dates .k, .pkg-dates .v {
  transition: color .35s ease;
}
.pkg-price, .pkg-dates li { transition: border-color .35s ease; }

.pkg-num {
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pkg-card:hover .pkg-num { color: rgba(234,229,200,0.6); }

.pkg-card h3 {
  color: var(--forest);
  margin: -4px 0 0;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.pkg-card:hover h3 { color: var(--cream); }

.pkg-cap {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--amber-ink);
}
.pkg-cap svg { width: 15px; height: 15px; flex: 0 0 auto; }
.pkg-card:hover .pkg-cap { color: var(--amber); }

.pkg-price {
  display: flex; flex-direction: column; gap: 2px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--hair);
  margin-top: 8px;
}
.pkg-card:hover .pkg-price { border-top-color: rgba(234,229,200,0.22); }

.pkg-price .was {
  font-family: var(--caps); font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-mute);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}
.pkg-card:hover .pkg-price .was { color: rgba(234,229,200,0.5); }

.pkg-price .now {
  font-family: var(--display);
  font-size: 56px; line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--bark-deep);
}
.pkg-card:hover .pkg-price .now { color: var(--amber); }

.pkg-price small {
  font-family: var(--caps); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 4px;
}
.pkg-card:hover .pkg-price small { color: rgba(234,229,200,0.6); }

.pkg-dates {
  list-style: none; margin: 8px 0 4px; padding: 0;
  display: flex; flex-direction: column; gap: 8px;
}
.pkg-dates li {
  display: flex; justify-content: space-between; gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px dashed var(--hair);
}
.pkg-card:hover .pkg-dates li { border-bottom-color: rgba(234,229,200,0.2); }
.pkg-dates .k {
  font-family: var(--caps); font-size: 9.5px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pkg-card:hover .pkg-dates .k { color: rgba(234,229,200,0.6); }
.pkg-dates .v { font-size: 15px; font-weight: 500; color: var(--ink-soft); }
.pkg-card:hover .pkg-dates .v { color: var(--cream); }

/* botão */
.pkg-card .btn {
  margin-top: auto; justify-content: center; width: 100%;
  letter-spacing: 0.22em; padding: 15px 18px; white-space: nowrap;
  background: var(--bark-deep);
  color: var(--cream);
  border-color: var(--bark-deep);
  transition: background .35s ease, color .35s ease, border-color .35s ease;
}
.pkg-card:hover .btn {
  background: var(--amber);
  color: var(--forest);
  border-color: var(--amber);
}
.pkg-card .btn:hover {
  background: var(--amber-2);
  border-color: var(--amber-2);
  color: var(--forest);
}

.pkg-note {
  max-width: 620px;
  margin: clamp(40px, 5vw, 56px) auto 0;
  text-align: center;
  font-size: 16px; line-height: 1.6;
  color: var(--ink-mute);
}

/* Em telas sem mouse não existe passar o mouse, então o verde responde
   ao toque. A aparência em repouso é a mesma do computador. */
@media (hover: none) {
  .pkg-card:active {
    background: var(--forest);
    border-color: var(--forest);
    border-top-color: var(--amber);
  }
  .pkg-card:active .pkg-flag { background: var(--amber); border-color: var(--amber); color: var(--forest); }
  .pkg-card:active .pkg-num,
  .pkg-card:active .pkg-price small,
  .pkg-card:active .pkg-dates .k { color: rgba(234,229,200,0.6); }
  .pkg-card:active h3,
  .pkg-card:active .pkg-dates .v { color: var(--cream); }
  .pkg-card:active .pkg-cap,
  .pkg-card:active .pkg-price .now { color: var(--amber); }
  .pkg-card:active .pkg-price .was { color: rgba(234,229,200,0.5); }
  .pkg-card:active .pkg-price { border-top-color: rgba(234,229,200,0.22); }
  .pkg-card:active .pkg-dates li { border-bottom-color: rgba(234,229,200,0.2); }
  .pkg-card:active .btn { background: var(--amber); color: var(--forest); border-color: var(--amber); }
}

/* ───────────────────────── janelinha (modal) ───────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(27,38,22,0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  overflow-y: auto;
  animation: fade .22s ease;
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0 } to { opacity: 1 } }

.modal {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--hair);
  width: min(100%, 560px);
  max-height: 92vh;
  overflow-y: auto;
  animation: rise .28s cubic-bezier(.2,.7,.3,1);
}
@keyframes rise { from { opacity: 0; transform: translateY(14px) } to { opacity: 1; transform: none } }

.modal-close {
  position: absolute; top: 14px; right: 14px;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid rgba(234,229,200,0.4);
  color: var(--cream);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s;
  z-index: 2;
}
.modal-close:hover { background: var(--cream); color: var(--forest); border-color: var(--cream); }
.modal-close svg { width: 16px; height: 16px; }

.modal-head {
  background: var(--forest); color: var(--cream);
  padding: 34px clamp(26px, 5vw, 40px) 28px;
}
.modal-head h3 { color: var(--cream); margin: 12px 0 14px; font-size: 32px; }
.modal-head .modal-summary {
  font-family: var(--caps); font-size: 11px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--amber);
  display: flex; gap: 10px; flex-wrap: wrap;
}
.modal-head .modal-dates {
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(234,229,200,0.2);
  font-size: 14px; color: rgba(234,229,200,0.75);
}
/* campos do formulário */
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.field label {
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-mute);
}
.field input, .field select, .field textarea {
  border: none;
  border-bottom: 1px solid var(--hair);
  background: transparent;
  padding: 10px 0 12px;
  font-family: var(--body); font-size: 16px;
  color: var(--forest);
  outline: none;
  width: 100%;
  border-radius: 0;
  transition: border-color .2s;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: rgba(34,45,28,0.4); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--bark); }
.field select { appearance: none; background: transparent; cursor: pointer; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.modal-form { padding: clamp(26px, 5vw, 40px); }
.modal-form .btn { width: 100%; justify-content: center; padding: 17px; margin-top: 8px; }
.modal-form .fine { margin-top: 14px; font-size: 12px; color: var(--ink-mute); text-align: center; }
body.modal-open { overflow: hidden; }

/* ───────────────────────── amenities ───────────────────────── */
.amenities {
  background: var(--forest);
  color: var(--cream);
  position: relative;
}
.amenities .section-head h2 { color: var(--cream); }
.amenities .section-head p { color: rgba(234,229,200,0.7); }
.amen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(234,229,200,0.12);
  border: 1px solid rgba(234,229,200,0.12);
}
.amen-item {
  background: var(--forest);
  padding: 38px 32px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background .25s;
}
.amen-item:hover { background: var(--forest-2); }
.amen-item .icon { width: 38px; height: 38px; color: var(--amber); }
.amen-item h4 {
  margin: 4px 0 0;
  font-family: var(--display); font-weight: 500;
  font-size: 22px; color: var(--cream);
}
.amen-item p { color: rgba(234,229,200,0.72); font-size: 14.5px; line-height: 1.55; }

/* ───────────────────────── galeria ───────────────────────── */
.gallery { background: var(--paper); }
/* Grade uniforme: fotos quadradas do mesmo tamanho, com uma em destaque
   2x2. A largura é limitada para as fotos não ficarem enormes em tela de
   notebook — em monitor grande sobra margem, e está tudo bem. */
.masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  max-width: 940px;
  margin: 0 auto;
}
.masonry .cell {
  aspect-ratio: 1 / 1;
  background-color: var(--forest);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  position: relative;
  overflow: hidden;
}
.masonry .cell.feature {
  grid-column: span 2;
  grid-row: span 2;
  aspect-ratio: auto;
}
/* véu permanente, só para a legenda ter fundo */
.masonry .cell::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,38,22,0) 55%, rgba(27,38,22,0.72) 100%);
  transition: opacity .3s;
}
.masonry .cell:hover::after { opacity: 0.85; }
.masonry .cell .cap {
  position: absolute; left: 14px; right: 14px; bottom: 12px;
  font-family: var(--caps); font-size: 9.5px;
  letter-spacing: 0.24em; text-transform: uppercase;
  line-height: 1.4;
  color: var(--cream);
  text-shadow: 0 1px 6px rgba(0,0,0,0.5);
  z-index: 2;
}
.masonry .cell.feature .cap {
  left: 20px; right: 20px; bottom: 18px;
  font-size: 11px; letter-spacing: 0.26em;
}

/* ───────────────────────── Vila Calderita ───────────────────────── */
.vila { background: var(--sand); }
.vila-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.vila-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  padding: 34px 30px 32px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform .3s ease, box-shadow .3s ease;
}
.vila-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -28px rgba(34,45,28,0.4);
}
.vila-card.wide {
  grid-column: span 2;
  background: var(--forest);
  border-color: var(--forest);
  color: var(--cream);
}
/* Foto do card: fica escondida e surge ao passar o mouse, cobrindo o
   card inteiro. O texto continua legível por cima de um véu escuro.
   Só funciona em cards com a classe "has-photo". */
.vila-photo { display: none; }
.vila-card.has-photo { position: relative; overflow: hidden; }
.vila-card.has-photo > *:not(.vila-photo) { position: relative; z-index: 2; }
.vila-card.has-photo .vila-photo {
  display: block;
  position: absolute; inset: 0; z-index: 1;
  background-color: var(--forest);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity .45s ease, transform .6s ease;
}
.vila-card.has-photo .vila-photo::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,38,22,0.32) 0%, rgba(27,38,22,0.74) 100%);
}
.vila-card.has-photo:hover .vila-photo,
.vila-card.has-photo:focus-within .vila-photo {
  opacity: 1;
  transform: scale(1);
}
/* com a foto atrás, o texto vira creme */
.vila-card.has-photo:hover h3,
.vila-card.has-photo:focus-within h3 { color: var(--cream); }
.vila-card.has-photo:hover p,
.vila-card.has-photo:focus-within p { color: rgba(234,229,200,0.86); }
.vila-card.has-photo:hover .vila-icon svg,
.vila-card.has-photo:hover .vila-tag,
.vila-card.has-photo:focus-within .vila-icon svg,
.vila-card.has-photo:focus-within .vila-tag { color: var(--amber); }
.vila-card.has-photo h3,
.vila-card.has-photo p,
.vila-card.has-photo .vila-icon svg,
.vila-card.has-photo .vila-tag { transition: color .35s ease; }
/* marquinha discreta avisando que há foto */
.vila-card.has-photo::before {
  content: ''; position: absolute; top: 16px; right: 16px; z-index: 3;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--amber-ink);
  transition: background .35s ease, transform .35s ease;
}
.vila-card.has-photo:hover::before { background: var(--amber); transform: scale(1.5); }

.vila-icon svg { width: 30px; height: 30px; color: var(--amber-ink); }
.vila-card.wide .vila-icon svg { color: var(--amber); }
.vila-card h3 { color: var(--forest); font-size: 25px; }
.vila-card.wide h3 { color: var(--cream); font-size: 30px; }
.vila-card p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; }
.vila-card.wide p { color: rgba(234,229,200,0.82); font-size: 17px; }
.vila-tag {
  margin-top: auto; padding-top: 16px;
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--amber-ink);
}
.vila-card.wide .vila-tag {
  color: var(--amber);
  border-top: 1px solid rgba(234,229,200,0.2);
}

/* ───────────────────────── chamada de fim de seção ───────────────────────── */
.section-cta {
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 44px);
  border-top: 1px solid var(--hair);
  display: flex; align-items: center; justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  flex-wrap: wrap;
}
.section-cta p {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 23px);
  font-style: italic;
  color: var(--ink-soft);
}
/* botão discreto: contorno em vez de preenchido */
.section-cta .btn {
  background: transparent;
  color: var(--bark-deep);
  border-color: var(--bark-deep);
  padding: 13px 24px;
  font-size: 11px;
}
.section-cta .btn:hover {
  background: var(--bark-deep);
  color: var(--cream);
}
.amenities .section-cta .btn,
.location .section-cta .btn {
  color: var(--amber);
  border-color: rgba(239,188,133,0.5);
}
.amenities .section-cta .btn:hover,
.location .section-cta .btn:hover {
  background: var(--amber);
  color: var(--forest);
  border-color: var(--amber);
}
.location .section-cta { border-top-color: rgba(234,229,200,0.2); }
.location .section-cta p { color: rgba(234,229,200,0.8); }
.amenities .section-cta { border-top-color: rgba(234,229,200,0.2); }
.amenities .section-cta p { color: var(--cream); }

/* ───────────────────────── location ───────────────────────── */
.location {
  background: var(--forest);
  color: var(--cream);
}
.loc-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px;
  align-items: center;
}
.loc-text h2 { color: var(--cream); margin: 14px 0 22px; }
.loc-text .lead { color: rgba(234,229,200,0.78); font-size: 17px; margin-bottom: 28px; max-width: 480px; }
.loc-text .address {
  display: flex; flex-direction: column; gap: 15px;
  border-top: 1px solid rgba(234,229,200,0.18);
  padding-top: 28px; margin-top: 8px;
}
.loc-text .address-row { display: flex; gap: 16px; align-items: flex-start; }
.loc-text .address-row svg { width: 18px; height: 18px; color: var(--amber); flex: 0 0 auto; margin-top: 3px; }
.loc-text .address-row .k {
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 2px;
}
.loc-text .address-row .v { color: var(--cream); font-size: 15px; line-height: 1.45; }
.loc-text .address-row .v a { border-bottom: 1px solid rgba(239,188,133,0.4); transition: border-color .2s, color .2s; }
.loc-text .address-row .v a:hover { color: var(--amber); border-bottom-color: var(--amber); }
.loc-map {
  aspect-ratio: 5 / 4;
  background: var(--forest-2);
  border: 1px solid rgba(234,229,200,0.18);
  position: relative;
  overflow: hidden;
}
.loc-map svg.topo { position: absolute; inset: 0; width: 100%; height: 100%; }
.loc-map .pin {
  position: absolute; left: 26%; top: 39%;
  transform: translate(-50%, -100%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.loc-map .pin .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(239,188,133,0.25), 0 0 0 14px rgba(239,188,133,0.12);
}
.loc-map .pin .pin-label {
  background: var(--cream); color: var(--forest);
  padding: 8px 14px;
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.32em; text-transform: uppercase;
  white-space: nowrap;
}
.loc-map .legend {
  position: absolute; left: 16px; bottom: 14px;
  font-family: var(--caps); font-size: 9.5px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: rgba(234,229,200,0.55);
}
.loc-map .compass {
  position: absolute; right: 16px; top: 14px;
  width: 36px; height: 36px; color: rgba(234,229,200,0.45);
}

/* ───────────────────────── faixa final ───────────────────────── */
.cta-band {
  background: var(--paper);
  text-align: center;
  padding: clamp(70px, 8vw, 110px) 0;
  border-top: 1px solid var(--hair);
}
.cta-band h2 { color: var(--forest); margin: 14px 0 16px; }
.cta-band p {
  color: var(--ink-soft); font-size: 18px;
  max-width: 560px; margin: 0 auto 34px;
}

/* ───────────────────────── footer ───────────────────────── */
.footer {
  background: var(--forest);
  color: rgba(234,229,200,0.72);
  padding: 80px 0 36px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  margin-bottom: 60px;
}
.footer .tagline {
  max-width: 280px; margin-top: 22px;
  font-size: 15px; line-height: 1.6;
  color: rgba(234,229,200,0.7);
}
.footer h5 {
  margin: 0 0 18px;
  font-family: var(--caps); font-size: 11px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--amber); font-weight: 400;
}
.footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14.5px; color: rgba(234,229,200,0.72); transition: color .2s; }
.footer ul a:hover { color: var(--cream); }
.footer .socials { display: flex; gap: 14px; margin-top: 4px; }
.footer .socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(234,229,200,0.25);
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, color .2s, border-color .2s;
}
.footer .socials a:hover { background: var(--amber); border-color: var(--amber); color: var(--forest); }
.footer .socials svg { width: 16px; height: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(234,229,200,0.14);
  padding-top: 28px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-family: var(--caps); font-size: 10px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: rgba(234,229,200,0.45);
}
/* ───────────────────────── responsive ───────────────────────── */
@media (max-width: 980px) {
  .site-nav { display: none; }
  .header-cta { padding: 9px 14px; font-size: 10px; }
  .chale-block { grid-template-columns: 1fr; }
  .vila-grid { grid-template-columns: 1fr 1fr; }
  .vila-card.wide { grid-column: span 2; }
  .chale-info { position: static; }
  .pkg-grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .amen-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .loc-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-meta { display: none; }
}
@media (max-width: 640px) {
  .amen-grid { grid-template-columns: 1fr; }
  .check-list li { font-size: 15px; }
  .modal-backdrop { padding: 0; align-items: flex-start; }
  .modal { width: 100%; max-height: 100vh; min-height: 100vh; }
  .footer-grid { grid-template-columns: 1fr; }
  /* Em duas colunas a foto em destaque não tem vizinha para dar altura
     à linha, e acabava achatada. Aqui ela vira uma faixa larga, e a
     última foto faz o mesmo para a grade fechar sem buraco. */
  .masonry { grid-template-columns: 1fr 1fr; gap: 10px; }
  .masonry .cell.feature,
  .masonry .cell:last-child {
    grid-column: span 2;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
  .masonry .cell .cap,
  .masonry .cell.feature .cap {
    left: 11px; right: 11px; bottom: 10px;
    font-size: 8.5px; letter-spacing: 0.18em;
  }
  .masonry .cell::after {
    background: linear-gradient(180deg, rgba(27,38,22,0) 40%, rgba(27,38,22,0.78) 100%);
  }
  .vila-grid { grid-template-columns: 1fr; }
  .vila-card.wide { grid-column: span 1; }
  .section-cta { flex-direction: column; text-align: center; gap: 22px; }
  h1 { font-size: 56px; }
  .hero-content { padding-bottom: 100px; }
  .field-row { grid-template-columns: 1fr; }
}