/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ── VARIÁVEIS ── */
:root {
  --black:   #0A0908;
  --dark:    #141210;
  --earth:   #464138;
  --bark:    #464138;
  --terra:   #8B6B47;
  --gold:    #B8965A;
  --sand:    #EDE7DA;
  --cream:   #F8F4EE;
  --white:   #FDFCF9;
  --mist:    #D0C9B8;
  --smoke:   #E4DDD0;
  --text:    #1A1814;
  --sub:     #6B6458;
  --accent:  #B8965A;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--cream);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, backdrop-filter .4s, border-color .4s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 28px 52px;
  position: relative;
  max-width: 1200px;
  margin: auto;
}
nav.scrolled {
  background: rgba(253,252,249,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,.07);
}

.nav-brand {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
  text-decoration: none; gap: 3px;
}
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem; font-weight: 500; letter-spacing: .08em;
  color: var(--white); transition: color .3s;
}
nav.scrolled .nav-brand-name { color: var(--text); }
.nav-brand-sub {
  font-size: .58rem; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.45); transition: color .3s;
}
nav.scrolled .nav-brand-sub { color: var(--sub); }

.nav-left, .nav-right {
  display: flex; align-items: center; list-style: none; gap: 36px;
}
.nav-left a, .nav-right a {
  text-decoration: none; font-size: .75rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.72); transition: color .3s;
  position: relative;
}
nav.scrolled .nav-left a, nav.scrolled .nav-right a { color: var(--sub); }
.nav-left a:hover, .nav-right a:hover { color: var(--white); }
nav.scrolled .nav-left a:hover, nav.scrolled .nav-right a:hover { color: var(--text); }
.nav-left a::after, .nav-right a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px; background: currentColor; transition: width .25s;
}
.nav-left a:hover::after, .nav-right a:hover::after { width: 100%; }

.nav-cta {
  border: 1px solid rgba(255,255,255,.38) !important;
  padding: 8px 22px !important;
  color: rgba(255,255,255,.9) !important;
  transition: border-color .2s, background .2s, color .2s !important;
}
.nav-cta::after { display: none !important; }
nav.scrolled .nav-cta {
  border-color: var(--accent) !important;
  background: var(--accent) !important;
  color: var(--white) !important;
}
.nav-cta:hover {
  border-color: rgba(255,255,255,.8) !important;
  background: rgba(255,255,255,.1) !important;
}
nav.scrolled .nav-cta:hover { background: var(--bark) !important; border-color: var(--bark) !important; }

/* Nav toggle */
.nav-toggle {
  display: none; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 8px; position: relative; z-index: 101;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--white); transition: transform .3s, opacity .3s;
  transform-origin: center;
}
nav.scrolled .nav-toggle span { background: var(--text); }
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile overlay */
.nav-overlay {
  position: fixed; inset: 0; z-index: 99;
  background: rgba(20,18,14,.97);
  display: none; flex-direction: column;
  align-items: center; justify-content: center; gap: 52px;
}
.nav-overlay.open { display: flex; animation: overlayIn .3s ease; }
@keyframes overlayIn {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-overlay a {
  text-decoration: none;
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 400; font-style: italic;
  color: rgba(255,255,255,.68); letter-spacing: .02em;
  transition: color .2s;
}
.nav-overlay a:hover { color: var(--white); }
.nav-overlay-cta {
  font-family: 'Inter', sans-serif !important;
  font-size: .78rem !important; font-style: normal !important;
  letter-spacing: .14em !important; text-transform: uppercase;
  background: var(--accent); color: var(--white) !important;
  padding: 14px 44px; margin-top: 8px;
}


/* ── HERO ── */
#hero {
  position: relative; height: 100vh; min-height: 640px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; background: var(--black);
}
.hero-img {
  position: absolute; inset: -4%;
  background: url('/public/assets/img/ext-hero.png') center/cover no-repeat;
  opacity: 0;
  transition: opacity 1.8s ease;
  animation: heroDrift 22s ease-in-out infinite alternate;
  will-change: opacity, transform;
}
.hero-img.is-active { opacity: 1; }
@keyframes heroDrift {
  from { transform: scale(1.06) translate3d(-1.5%, -1%, 0); }
  to   { transform: scale(1.12) translate3d(1.5%, 1%, 0); }
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    155deg,
    rgba(56, 53, 50, 0.4) 0%,
    rgba(10,9,8,.4) 100%
  );
}
.hero-center {
  position: relative; z-index: 2;
  text-align: center; padding: 0 28px;
  display: flex; flex-direction: column; align-items: center;
  animation: heroIn 1.8s cubic-bezier(.25,.46,.45,.94) both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-eyebrow {
  font-size: .80rem; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.58); font-weight: 300; margin-bottom: 28px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.5rem, 10vw, 5.5rem);
  font-weight: 400; line-height: .98;
  color: var(--white); letter-spacing: -.01em;
  box-shadow: #0A0908 ;
  z-index: 2;
}
.hero-title em { font-style: italic; color: rgba(255,255,255,.88); }
.hero-rule {
  width: 36px; height: 1px;
  background: rgba(255,255,255,.3); margin: 30px auto;
}
.hero-tagline {
  font-size: clamp(.88rem, 2vw, 1.05rem);
  color: rgba(255,255,255,.55); font-weight: 300;
  letter-spacing: .04em; margin-bottom: 44px;
  max-width: 340px; line-height: 1.7;
}
.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: -50px; left: 50%;
  transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  pointer-events: none; color: rgba(255,255,255,.38);
}
.hero-scroll-text { font-size: .58rem; letter-spacing: .22em; text-transform: uppercase; }
.hero-scroll-line {
  width: 1px; height: 48px;
  background: rgba(255,255,255,.15);
  position: relative; overflow: hidden;
}
.hero-scroll-line::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(255,255,255,.8);
  animation: scrollDrop 2.4s cubic-bezier(.4,0,.6,1) infinite;
}
@keyframes scrollDrop {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(200%); }
}


/* ── BOTÕES ── */
.btn-primary {
  display: inline-block; text-decoration: none;
  background: var(--accent); color: var(--white);
  padding: 14px 36px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .12em; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.btn-primary:hover { background: var(--bark); transform: translateY(-1px); }

.btn-ghost {
  display: inline-block; text-decoration: none;
  border: 1px solid rgba(255,255,255,.32); color: rgba(255,255,255,.82);
  padding: 14px 36px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.btn-ghost:hover { border-color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); }

.btn-wpp {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; background: #25D366; color: var(--white);
  padding: 14px 32px;
  font-size: .78rem; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase;
  transition: background .2s;
}
.btn-wpp:hover { background: #1db954; }

.btn-airbnb {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.78);
  padding: 14px 32px;
  font-size: .78rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  transition: border-color .2s, background .2s;
}
.btn-airbnb:hover { border-color: rgba(255,255,255,.65); background: rgba(255,255,255,.07); }


/* ── COMPONENTES COMUNS ── */
.section-eyebrow {
  display: block;
  font-size: .65
  rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 20px;
}
.section-eyebrow::after {
  content: ''; display: block;
  width: 24px; height: 1px;
  background: currentColor; margin-top: 10px; opacity: .55;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400; line-height: 1.15; color: var(--text);
}
.section-body {
  font-size: .94rem; color: var(--sub);
  margin-top: 20px; font-weight: 300;
  line-height: 1.9; max-width: 460px;
}


/* ── STATEMENT ── */
#statement {
  background: var(--white);
  padding: 130px 48px;
  text-align: center;
  border-bottom: 1px solid var(--smoke);
}
.statement-inner { max-width: 860px; margin: 0 auto; }
.statement-tag {
  display: block;
  font-size: .65rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 40px; font-weight: 500;
}
.statement-quote {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 300; font-style: italic;
  line-height: 1.45; color: var(--text);
  letter-spacing: .01em;
}


/* ── SPLIT GRID (usado em A Casa, Spa, Local) ── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 78vh;
}
.split-grid--reverse .split-img-wrap { order: 2; }
.split-grid--reverse .split-text    { order: 1; }

.split-img-wrap { overflow: hidden; }
.split-img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 1s ease;
}
.split-img-wrap:hover .split-img { transform: scale(1.04); }

.split-text {
  padding: 100px 80px;
  display: flex; flex-direction: column; justify-content: center;
}
#casa .split-text { background: var(--cream); }
#spa  .split-text { background: var(--white); }
#local .split-text { background: var(--cream); }

/* Amenidades */
.amenities {
  list-style: none; margin-top: 36px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 36px;
}
.amenities li {
  font-size: .84rem; color: var(--sub);
  display: flex; align-items: center; gap: 12px;
}
.amenities li::before {
  content: ''; width: 20px; height: 1px;
  background: var(--accent); flex-shrink: 0;
}

/* Distâncias */
.distances { list-style: none; margin-top: 40px; }
.distances li {
  display: flex; align-items: center;
  padding: 15px 0; gap: 10px;
  border-bottom: 1px solid var(--smoke);
  font-size: .9rem;
  transition: padding-left .2s;
}
.distances li:first-child { border-top: 1px solid var(--smoke); }
.distances li:hover { padding-left: 6px; }
.dist-name { color: var(--text); font-weight: 400; white-space: nowrap; }
.dist-sep  { flex: 1; height: 1px; background: var(--smoke); min-width: 16px; }
.dist-km   {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: var(--accent);
  font-weight: 400; white-space: nowrap;
}


/* ── NÚMEROS ── */
#numeros {
  background: var(--earth);
  padding: 104px 48px;
}
.numeros-inner {
  max-width: 1160px; margin: 0 auto;
  display: flex; align-items: center;
}
.numero { text-align: center; flex: 1; padding: 40px 24px; }
.numero-valor {
  font-family: 'Cormorant Garamond', 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6vw, 5.5rem);
  font-weight: 300; color: var(--white);
  line-height: 1; letter-spacing: -.02em;
}
.numero-label {
  font-size: .7rem; color: rgba(255,255,255,.38);
  letter-spacing: .12em; text-transform: uppercase;
  margin-top: 16px; line-height: 1.7;
}
.numero-divider {
  width: 1px; height: 72px;
  background: rgba(255,255,255,.1);
  flex-shrink: 0;
}


/* ── GALERIA ── */
#galeria {
  background: var(--sand);
  padding: 104px 48px;
}
.galeria-inner { max-width: 1300px; margin: 0 auto; }
.galeria-header { max-width: 480px; margin-bottom: 56px; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 268px;
  grid-auto-flow: dense;
  gap: 8px;
}
.g-item {
  overflow: hidden; position: relative; cursor: zoom-in;
}
.g-item.tall { grid-row: span 2; }
.g-item.wide { grid-column: span 2; }
.g-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .7s ease;
}
.g-item:hover img { transform: scale(1.05); }
.g-item::after {
  content: ''; position: absolute; inset: 0;
  background: rgba(0,0,0,.22);
  opacity: 0; transition: opacity .35s;
  pointer-events: none; z-index: 1;
}
.g-item:hover::after { opacity: 1; }


/* ── RESERVAR ── */
#reservar {
  background: var(--bark);
  padding: 104px 48px;
  text-align: center;
}
.reservar-inner { max-width: 720px; margin: 0 auto; }
#reservar .section-eyebrow { color: var(--gold); }
#reservar .section-eyebrow::after { margin: 10px auto 0; }
#reservar .section-title { color: var(--white); margin: 0 auto; }
#reservar .section-body  { color: rgba(255,255,255,.48); margin: 0 auto; max-width: none; }
.reservar-header { margin-bottom: 0; }
.reservar-btns {
  display: flex; gap: 14px;
  justify-content: center; flex-wrap: wrap;
  margin-top: 40px;
}


/* ── CALENDÁRIO ── */
.cal-wrapper {
  margin: 48px auto 0;
  max-width: 720px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  padding: 36px;
}
.cal-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 28px;
}
.cal-title {
  font-family: 'Playfair Display', serif;
  font-size: .95rem; color: rgba(255,255,255,.75);
  letter-spacing: .06em;
}
.cal-nav { display: flex; gap: 8px; }
.cal-nav button {
  background: rgba(255,255,255,.08); border: none; cursor: pointer;
  color: var(--white); width: 32px; height: 32px;
  font-size: 1.1rem; display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.cal-nav button:hover { background: rgba(255,255,255,.18); }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; }
.cal-month-title {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.38); text-align: center; margin-bottom: 14px;
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-dow {
  font-size: .6rem; letter-spacing: .06em; text-transform: uppercase;
  color: rgba(255,255,255,.28); text-align: center; padding: 4px 0;
}
.cal-day {
  aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
  font-size: .78rem; cursor: default; transition: background .15s;
}
.cal-day.empty { background: transparent; }
.cal-day.free  { color: rgba(255,255,255,.72); background: rgba(255,255,255,.04); }
.cal-day.free:hover { background: rgba(255,255,255,.1); }
.cal-day.occupied {
  background: rgba(139,107,71,.28);
  color: rgba(255,255,255,.28);
  text-decoration: line-through;
}
.cal-day.today  { border: 1px solid var(--gold); color: var(--gold); }
.cal-day.past   { color: rgba(255,255,255,.14); background: transparent; }
.cal-legend {
  display: flex; gap: 24px; justify-content: center;
  margin-top: 24px; flex-wrap: wrap;
}
.cal-legend-item {
  display: flex; align-items: center; gap: 8px;
  font-size: .7rem; color: rgba(255,255,255,.38);
}
.cal-legend-dot { width: 10px; height: 10px; }
.cal-legend-dot.free     { background: rgba(255,255,255,.14); }
.cal-legend-dot.occupied { background: rgba(139,107,71,.4); }
.cal-legend-dot.today    { border: 1px solid var(--gold); }
.cal-loading { text-align: center; color: rgba(255,255,255,.32); font-size: .85rem; padding: 32px 0; }
.cal-error   { text-align: center; color: rgba(255,100,100,.65); font-size: .85rem; padding: 16px 0; }


/* ── FOOTER ── */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.06);
  padding: 64px 52px;
}
.footer-inner {
  max-width: 1160px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  align-items: center; gap: 40px;
}
.footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem; color: rgba(255,255,255,.75);
  margin-bottom: 6px;
}
.footer-brand-sub {
  font-size: .68rem; color: rgba(255,255,255,.3);
  letter-spacing: .1em;
}
.footer-nav {
  display: flex; gap: 28px;
  justify-content: center; flex-wrap: wrap;
}
.footer-nav a {
  text-decoration: none;
  font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.38); transition: color .2s;
}
.footer-nav a:hover { color: rgba(255,255,255,.8); }
.footer-right { text-align: right; }
.footer-airbnb {
  display: inline-block; text-decoration: none;
  font-size: .8rem; color: var(--gold);
  margin-bottom: 12px; transition: color .2s;
}
.footer-airbnb:hover { color: rgba(255,255,255,.8); }
.footer-copy { font-size: .67rem; color: rgba(255,255,255,.18); }


/* ── LIGHTBOX ── */
#lightbox {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.95);
  align-items: center; justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img  {
  max-width: 90vw; max-height: 90vh;
  object-fit: contain;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
}
#lightbox-close {
  position: absolute; top: 24px; right: 32px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); font-size: 2.4rem; line-height: 1;
  transition: color .2s;
}
#lightbox-close:hover { color: rgba(255,255,255,.95); }


/* ── SCROLL REVEAL ── */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .9s, transform .9s; }
.reveal.visible { opacity: 1; transform: none; }


/* ── RESPONSIVO ── */
@media (max-width: 980px) {
  .nav-inner { padding: 20px 28px; }
  .nav-left, .nav-right { display: none; }
  .nav-toggle { display: flex; }
  .nav-brand {
    position: relative; left: auto; transform: none;
    flex-direction: row; align-items: baseline; gap: 6px;
  }
  .nav-brand-sub { display: none; }
  .nav-brand-name { font-size: .92rem; }
  nav.scrolled .nav-brand-name { color: var(--text); }

  .hero-scroll { display: none; }
  .hero-title { font-size: clamp(3.5rem, 12vw, 5.5rem); }

  #statement { padding: 80px 28px; }
  .statement-quote { font-size: clamp(1.5rem, 5vw, 2.2rem); }

  .split-grid {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .split-grid--reverse .split-img-wrap { order: 1; }
  .split-grid--reverse .split-text    { order: 2; }
  .split-img-wrap { height: 65vw; min-height: 280px; }
  .split-text { padding: 64px 28px; }

  .numeros-inner { flex-direction: column; }
  .numero-divider { width: 40px; height: 1px; }
  .numero { padding: 28px 24px; }
  .numero-valor { font-size: clamp(2.8rem, 9vw, 4rem); }

  #galeria { padding: 72px 20px; }
  .galeria-header { margin-bottom: 40px; }
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 185px;
  }
  .g-item.tall { grid-row: span 2; }
  .g-item.wide { grid-column: span 2; }

  #reservar { padding: 80px 28px; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-wrapper { padding: 24px 16px; }

  footer { padding: 48px 28px; }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center; gap: 28px;
  }
  .footer-right { text-align: center; }

  .hero-eyebrow {
  font-size: .7rem;
}

}



@media (max-width: 480px) {
  .hero-title { font-size: 3rem; }
  .hero-btns { flex-direction: column; align-items: center; }
  .gallery-grid { grid-auto-rows: 150px; }
  .amenities { grid-template-columns: 1fr; }
  .reservar-btns { flex-direction: column; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-img { animation: none; transform: none; }
  .hero-center { animation: none; }
  .hero-scroll-line::after { animation: none; }
}
