/* ─── Tokens ──────────────────────────────────────────── */
:root {
  /* Palette — earthy, drawn from the photography */
  --sand-50:  #faf6ef;
  --sand-100: #f3ece0;
  --sand-200: #e7dcc7;
  --sand-300: #d6c3a3;
  --clay-400: #c89978;
  --clay-500: #b27a52;
  --terra-600: #8a4f33;
  --terra-700: #5e3621;
  --wood-800: #3b251a;
  --ink:      #1f1611;
  --leaf:     #5a6b3a;
  --brand-terra: #bb7844; /* cor exata do logo */

  /* Type */
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, sans-serif;
  --brand-font: "Montserrat", var(--sans);

  /* Spacing */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-py: clamp(4rem, 9vw, 8rem);

  /* Other */
  --radius: 4px;
  --shadow: 0 8px 24px -12px rgba(59, 37, 26, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand-50);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--terra-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--clay-500); }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.15;
  color: var(--wood-800);
  letter-spacing: -.01em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 4.5vw, 3rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 500; }

p { margin: 0 0 1em; }

.eyebrow {
  font-family: var(--sans);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--clay-500);
  margin-bottom: 1rem;
}
.eyebrow.center, h2.center { text-align: center; }

/* ─── Header ───────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1.25rem;
  padding: .85rem var(--gutter);
  background: var(--brand-terra);
  box-shadow: 0 2px 14px -8px rgba(59, 37, 26, .5);
}

/* Language switcher — discreet, far left */
.lang-switcher {
  display: flex; align-items: center; gap: .35rem;
  flex-shrink: 0;
}
.lang-switcher button {
  background: none; border: 0; padding: 0;
  font: inherit; font-family: var(--brand-font);
  font-size: .72rem; font-weight: 500;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(251, 247, 240, .55); cursor: pointer;
  transition: color .2s;
}
.lang-switcher button.active { color: var(--sand-50); }
.lang-switcher button:hover { color: var(--sand-50); }
.lang-sep { color: rgba(251, 247, 240, .35); font-size: .7rem; }

/* Brand — cobogó symbol + wordmark */
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  line-height: 1;
}
.brand-symbol {
  height: 38px; width: auto;
  transition: transform .2s;
}
.brand:hover .brand-symbol { transform: translateY(-1px); }
.brand-word {
  font-family: var(--brand-font);
  font-size: 1.5rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--sand-50);
  white-space: nowrap;
}

.site-nav {
  display: flex; gap: 1.4rem;
  margin-left: auto;
  font-size: .85rem;
  font-weight: 400;
}
.site-nav a { color: rgba(251, 247, 240, .9); }
.site-nav a:hover { color: var(--sand-50); }

.menu-toggle {
  display: none;
  background: none; border: 0; padding: 0;
  cursor: pointer; line-height: 0;
  margin-left: auto;
}
.menu-toggle img { height: 30px; width: auto; }

/* ─── Hero ─────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 86vh;
  display: flex; align-items: flex-end;
  padding: var(--gutter);
  overflow: hidden;
  color: #fff;
}
.hero-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--sand-300);
  z-index: 0;
}
.hero-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.05) 0%, rgba(0,0,0,.55) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 720px; padding-bottom: 3rem; }
.hero-content h1 { color: #fff; }
.hero-content .eyebrow { color: var(--sand-200); }
.hero-content .lede { font-size: 1.1rem; max-width: 540px; opacity: .92; }
.hero-cta { display: flex; gap: .75rem; margin-top: 1.5rem; flex-wrap: wrap; }

/* ─── Buttons ──────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: .85rem 1.6rem;
  font-family: var(--sans); font-size: .9rem; font-weight: 500;
  letter-spacing: .05em;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.btn-primary { background: var(--terra-600); color: #fff; }
.btn-primary:hover { background: var(--terra-700); color: #fff; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ─── Sections ─────────────────────────────────────────── */
.section {
  padding: var(--section-py) var(--gutter);
  max-width: 1280px;
  margin: 0 auto;
}
.section-text > p { max-width: 56ch; }

/* Two-column split sections */
.section-local, .section-casa, .section-bangalo, .section-arq, .section-chegar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.section-casa { grid-template-columns: 1fr 1.1fr; }
.section-bangalo { grid-template-columns: 1.1fr 1fr; }
.section-bangalo .section-text { order: 2; }

.section-gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 1rem;
}
.section-gallery img:last-child { margin-bottom: 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.gallery-grid img { margin: 0; aspect-ratio: 4/5; object-fit: cover; }
.gallery-grid img:first-child { grid-column: 1 / -1; aspect-ratio: 16/10; }

.gallery-note {
  text-align: center;
  font-size: .8rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--clay-500);
  font-style: italic;
  margin: 1rem 0 0;
}

.features {
  list-style: none; padding: 0; margin: 1.5rem 0 0;
  display: grid; gap: .6rem;
}
.features li {
  padding-left: 1.2rem; position: relative;
  font-size: .95rem;
}
.features li::before {
  content: "·"; position: absolute; left: 0;
  color: var(--clay-500); font-weight: 700;
}

/* ─── Atividades ───────────────────────────────────────── */
.section-ativ { background: var(--sand-100); max-width: none; }
.section-ativ > * { max-width: 1280px; margin-left: auto; margin-right: auto; }
.ativ-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem 2rem;
  margin: 3rem auto;
}
.ativ-grid article {
  padding: 1.5rem 0;
  border-top: 1px solid var(--sand-300);
}
.ativ-grid h3 { color: var(--terra-700); margin-bottom: .35rem; }
.ativ-grid p { font-size: .92rem; color: var(--wood-800); opacity: .82; margin: 0; }
.ativ-note {
  text-align: center; font-size: .85rem;
  color: var(--terra-700); font-style: italic;
  max-width: 60ch; margin: 0 auto;
}

/* ─── Como chegar ──────────────────────────────────────── */
.airports {
  list-style: none; padding: 0; margin: 1.5rem 0;
  display: grid; gap: .5rem;
}
.airports li {
  padding: .75rem 0;
  border-bottom: 1px solid var(--sand-200);
  font-size: .95rem;
}
.coords {
  font-family: ui-monospace, monospace;
  font-size: .8rem; color: var(--clay-500);
  margin-top: 1rem;
}
.map-wrap {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }
.map-link {
  position: absolute; bottom: .85rem; right: .85rem;
  background: var(--brand-terra); color: var(--sand-50);
  padding: .55rem 1rem; border-radius: var(--radius);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.45);
}
.map-link::after { content: " \2197"; }
.map-link:hover { background: var(--terra-700); color: var(--sand-50); }

/* ─── Disponibilidade & form ───────────────────────────── */
.section-disp { max-width: 720px; }
.disp-intro {
  color: var(--wood-800); opacity: .8;
  max-width: 54ch; margin: 0 auto;
}
.booking-form {
  display: grid; gap: 1rem;
  margin-top: 2.5rem;
}
.booking-form .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.booking-form label {
  display: grid; gap: .35rem;
  font-size: .82rem; font-weight: 500;
  color: var(--wood-800);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.booking-form input,
.booking-form select,
.booking-form textarea {
  font: inherit; font-size: 1rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  padding: .75rem .85rem;
  border: 1px solid var(--sand-300);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}
.booking-form input:focus,
.booking-form select:focus,
.booking-form textarea:focus {
  outline: 2px solid var(--clay-400);
  outline-offset: 1px;
  border-color: var(--clay-400);
}
.booking-form button { margin-top: .5rem; justify-self: start; }

/* ─── Contato ──────────────────────────────────────────── */
.section-contato { text-align: center; }
.contato-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}
.contato-card {
  display: grid; gap: .35rem;
  padding: 2rem 1.5rem;
  background: var(--sand-100);
  border-radius: var(--radius);
  color: var(--wood-800);
  transition: background .2s, transform .2s;
}
.contato-card:hover { background: var(--sand-200); transform: translateY(-2px); color: var(--terra-700); }
.contato-label {
  font-size: .75rem; letter-spacing: .2em;
  text-transform: uppercase; color: var(--clay-500);
}
.contato-value { font-family: var(--serif); font-size: 1.3rem; }

/* ─── Footer ───────────────────────────────────────────── */
.site-footer {
  text-align: center;
  padding: 2.5rem var(--gutter);
  background: var(--wood-800); color: var(--sand-200);
  font-size: .85rem;
}
.site-footer a { color: var(--sand-100); }

/* ─── Responsive ───────────────────────────────────────── */
@media (max-width: 880px) {
  .brand-symbol { height: 30px; }
  .brand-word { font-size: 1.1rem; letter-spacing: .1em; }
  .menu-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: var(--brand-terra);
    border-top: 1px solid rgba(251, 247, 240, .18);
    padding: .5rem var(--gutter) 1rem;
    box-shadow: 0 12px 16px -10px rgba(59, 37, 26, .5);
  }
  .site-nav.open { display: flex; }
  .site-nav a {
    padding: .85rem 0;
    border-bottom: 1px solid rgba(251, 247, 240, .15);
    color: var(--sand-50);
  }
  .lang-switcher { margin-left: 0; }

  .section-local, .section-casa, .section-bangalo, .section-arq, .section-chegar {
    grid-template-columns: 1fr;
  }
  .section-bangalo .section-text { order: 0; }
  .booking-form .row { grid-template-columns: 1fr; }
  .hero { min-height: 72vh; }
}

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

/* ═══════════════════════════════════════════════════════
   MULTI-PAGE LAYER (covers, prose, mosaic, cobogó, lightbox, map, home)
   ═══════════════════════════════════════════════════════ */

/* Active nav item */
.site-nav a.active { color: var(--sand-50); position: relative; }
.site-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--sand-50);
}

/* ─── Page cover (hero with title overlay) ─────────────── */
.cover {
  position: relative;
  min-height: 68vh;
  display: flex; align-items: flex-end;
  padding: var(--gutter);
  overflow: hidden;
  color: #fff;
}
.cover-img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-color: var(--sand-300);
  overflow: hidden;
}
/* Slideshow stack — slides cross-fade over each other */
.cover-img .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.6s ease;
}
.cover-img .slide.is-active { opacity: 1; }
.cover-img .slide:first-child:not(.is-active) { opacity: 1; }
.cover-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.6) 100%);
}
.cover-inner { position: relative; z-index: 1; max-width: 900px; padding-bottom: 2rem; }
.cover .eyebrow { color: var(--sand-200); }
.cover h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 5rem); margin: 0; }

/* Terracota cover variant (cobogó watermark, no photo) */
.cover-terra { background: var(--brand-terra); color: var(--sand-50); }
.cover-terra .cover-img { display: none; }
.cover-terra::before {
  content: ""; position: absolute; right: -40px; bottom: -40px;
  width: 320px; height: 320px; opacity: .14;
  background: url('../img/icons/cobogo.png') no-repeat center/contain;
}
.cover-terra h1 { color: var(--sand-50); }
.cover-terra .eyebrow { color: rgba(251,247,240,.7); }

/* ─── Prose (full texts) ───────────────────────────────── */
.prose {
  max-width: 760px; margin: 0 auto;
  padding: clamp(3rem, 7vw, 6rem) var(--gutter);
}
.prose .eyebrow { text-align: center; }
.prose h2 {
  text-align: center; font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 1.5rem;
}
.prose p { font-size: 1.12rem; margin: 0 0 1.3em; }
.prose .lead { font-size: 1.25rem; color: var(--terra-700); }
.prose .credit { font-size: .95rem; color: var(--clay-500); margin-top: 2rem; }
.prose .credit a { color: var(--terra-700); border-bottom: 1px solid var(--clay-400); }
.prose .credit a:hover { color: var(--clay-500); }
.prose blockquote {
  margin: 2.5rem 0; padding: 0; border: 0;
  font-family: var(--serif); font-size: 1.5rem; font-style: italic;
  color: var(--terra-700); text-align: center; line-height: 1.4;
}
.prose blockquote cite { display: block; font-size: .85rem; font-family: var(--sans); font-style: normal; color: var(--clay-500); letter-spacing: .1em; text-transform: uppercase; margin-top: 1rem; }
.feature-list {
  list-style: none; padding: 0; margin: 2rem auto 0; max-width: 560px;
  display: grid; gap: .6rem; grid-template-columns: 1fr 1fr;
}
.feature-list li { padding-left: 1.2rem; position: relative; font-size: .98rem; }
.feature-list li::before { content: "·"; position: absolute; left: 0; color: var(--clay-500); font-weight: 700; }

/* ─── Mosaic gallery (photos + cobogó tiles) ───────────── */
.mosaic {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 10px;
  padding: 0 var(--gutter) clamp(3rem,7vw,6rem);
  max-width: 1400px; margin: 0 auto;
}
.mosaic-item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--sand-200);
}
.mosaic-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.mosaic-item.tall { grid-row: span 2; }
.mosaic-item.wide { grid-column: span 2; }
.mosaic-item:not(.cobogo-tile) { cursor: pointer; aspect-ratio: 1; }
.mosaic-item.tall { aspect-ratio: auto; }
.mosaic-item:not(.cobogo-tile):hover img { transform: scale(1.05); }

/* Cobogó tile inside mosaic — clickable, opens lightbox */
.cobogo-tile {
  aspect-ratio: 1; cursor: pointer;
  background: var(--brand-terra);
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.cobogo-tile::before {
  content: ""; width: 70%; height: 70%;
  background: url('../img/icons/cobogo.png') no-repeat center/contain;
  transition: transform .4s ease;
}
.cobogo-tile:hover { background: var(--terra-600); }
.cobogo-tile:hover::before { transform: rotate(15deg) scale(1.05); }
.cobogo-tile.r90::before { transform: rotate(90deg); }
.cobogo-tile.r180::before { transform: rotate(180deg); }
.cobogo-tile.r270::before { transform: rotate(270deg); }
.cobogo-tile.r90:hover::before { transform: rotate(105deg) scale(1.05); }
.cobogo-tile.r180:hover::before { transform: rotate(195deg) scale(1.05); }
.cobogo-tile.r270:hover::before { transform: rotate(285deg) scale(1.05); }

/* ─── Lightbox ─────────────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(31,22,17,.96);
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 86vh; object-fit: contain;
  border-radius: 2px; box-shadow: 0 10px 40px rgba(0,0,0,.5);
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); color: #fff; border: 0;
  width: 52px; height: 52px; border-radius: 50%; cursor: pointer;
  font-size: 1.5rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
.lb-prev { left: 2vw; } .lb-next { right: 2vw; }
.lb-close { top: 1.5rem; right: 2vw; transform: none; }

/* Cobogó-styled navigation arrows */
.lb-prev, .lb-next {
  width: 66px; height: 66px; border-radius: 0;
  background: rgba(255,255,255,.06) url('../img/icons/cobogo.png') no-repeat center / 66%;
  transition: background-color .2s, transform .3s ease;
}
.lb-prev:hover { background-color: rgba(255,255,255,.16); transform: translateY(-50%) rotate(-12deg); }
.lb-next:hover { background-color: rgba(255,255,255,.16); transform: translateY(-50%) rotate(12deg); }
.lb-count {
  position: absolute; bottom: 1.5rem; left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.7); font-size: .85rem; letter-spacing: .1em;
}

/* ─── Local video (drone) ──────────────────────────────── */
.local-video {
  max-width: 1100px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 6vw, 5rem);
}
.local-video video {
  width: 100%; height: auto; display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  aspect-ratio: 16/9; object-fit: cover;
  background: var(--sand-200);
}
.video-caption {
  text-align: center; margin: 1rem 0 0;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--clay-500); font-style: italic;
}

.video-gallery {
  max-width: 1100px; margin: 0 auto;
  padding: 0 var(--gutter) clamp(3rem, 7vw, 6rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}
.video-gallery video {
  width: 100%; aspect-ratio: 16/9; object-fit: cover;
  display: block; border-radius: var(--radius);
  background: var(--sand-200);
  box-shadow: var(--shadow);
}

/* ─── Lúdico map ───────────────────────────────────────── */
.map-luric { max-width: 1100px; margin: 0 auto; padding: 0 var(--gutter) clamp(3rem,7vw,6rem); }
.map-luric h2 { text-align: center; }
.map-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.map-info .airports { list-style: none; padding: 0; margin: 1.5rem 0; }
.map-info .airports li { padding: .75rem 0; border-bottom: 1px solid var(--sand-200); font-size: .98rem; display: flex; justify-content: space-between; gap: 1rem; }
.map-info .airports strong { font-weight: 500; }
.map-photo { position: relative; display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.map-photo img { width: 100%; display: block; transition: transform .4s; }
.map-photo:hover img { transform: scale(1.02); }
.map-photo .map-pin {
  position: absolute; bottom: 1rem; left: 1rem;
  background: var(--brand-terra); color: var(--sand-50);
  padding: .55rem 1rem; border-radius: var(--radius);
  font-size: .8rem; font-weight: 500; letter-spacing: .04em;
  box-shadow: 0 4px 14px -4px rgba(0,0,0,.45);
}
.map-photo .map-pin::after { content: " \2197"; }

/* ─── Home index grid (PDF-style clickable index) ──────── */
.index-section { padding: clamp(3rem,7vw,6rem) var(--gutter); max-width: 1280px; margin: 0 auto; }
.index-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 3rem;
}
.index-card {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius); display: block; color: #fff;
}
.index-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.index-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55)); }
.index-card:hover img { transform: scale(1.06); }
.index-card .label {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.25rem; color: #fff;
}
.index-card .label .n { font-size: .7rem; letter-spacing: .2em; opacity: .8; }
.index-card .label h3 { color: #fff; font-size: 1.5rem; margin: .15rem 0 0; }
.index-card.terra { background: var(--brand-terra); }
.index-card.terra::after { display: none; }
.index-card.terra::before {
  content: ""; position: absolute; right: -30px; bottom: -30px; width: 180px; height: 180px;
  opacity: .18; background: url('../img/icons/cobogo.png') no-repeat center/contain;
}

/* Page-cover responsive + mosaic responsive */
@media (max-width: 880px) {
  .mosaic { grid-template-columns: repeat(2, 1fr); }
  .index-grid { grid-template-columns: repeat(2, 1fr); }
  .map-grid { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .index-grid { grid-template-columns: 1fr; }
}
