/* ============================================================
   FILHA DA LUA — eco lodge one-pager (conceito não oficial)
   ✏️ Nomes/contatos: CONFIG em script.js · Fotos: img/
   ============================================================ */

:root {
  --ink: #1d2a24;            /* verde-floresta quase preto */
  --ink-2: #26352e;
  --sand: #f3efe6;           /* areia clara */
  --sand-2: #eae4d5;
  --line: rgba(29, 42, 36, 0.16);
  --line-dark: rgba(243, 239, 230, 0.18);
  --brass: #b08954;          /* madeira / dourado suave */
  --brass-bright: #d3ab72;
  --muted: rgba(29, 42, 36, 0.64);
  --muted-dark: rgba(243, 239, 230, 0.76);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 6px;
  --shadow: 0 24px 60px -24px rgba(29, 42, 36, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--sand);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* granulado sutil */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }

::selection { background: var(--brass); color: var(--sand); }

:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ---------- Tipos ---------- */

.overline {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 300;
  line-height: 1.45;
}

/* ---------- Botões ---------- */

.btn--pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--sand);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  border: 1px solid var(--ink);
  transition: background 0.3s var(--ease), color 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn--pill:hover { background: var(--brass); border-color: var(--brass); }
.btn--pill:active { transform: scale(0.97); }

.btn--ghost {
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid currentColor;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn--ghost:hover { color: var(--brass); }

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.2rem clamp(1.25rem, 4vw, 3rem);
  color: var(--sand);
  transition: background 0.4s var(--ease), color 0.4s var(--ease),
              padding 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav__wordmark {
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-right: auto;
}

.nav__logo {
  width: 22px;
  height: auto;
  filter: brightness(0) invert(1); /* garante branco sobre a foto */
  transition: filter 0.4s var(--ease), transform 0.6s var(--ease);
}

.nav__wordmark:hover .nav__logo { transform: rotate(-20deg); }

.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.25s;
}
.nav__links a:hover { opacity: 1; }

.nav__book { padding: 0.6rem 1.3rem; font-size: 0.85rem; }

.nav.is-solid {
  background: rgba(243, 239, 230, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--ink);
  padding-block: 0.7rem;
  box-shadow: 0 1px 0 var(--line);
}

.nav.is-solid .nav__logo { filter: brightness(0) saturate(0); }

.nav__burger { display: none; }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--sand);
  isolation: isolate;
}

.hero__img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: heroDrift 18s var(--ease) forwards;
}

@keyframes heroDrift {
  from { transform: scale(1.08); }
  to   { transform: scale(1); }
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(15, 23, 19, 0.55) 0%, rgba(15, 23, 19, 0.08) 35%, rgba(15, 23, 19, 0.28) 62%, rgba(15, 23, 19, 0.8) 100%),
    linear-gradient(100deg, rgba(15, 23, 19, 0.62) 0%, rgba(15, 23, 19, 0.25) 38%, rgba(15, 23, 19, 0) 62%);
}

.hero__content {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem) 13.5rem;
}

.hero__overline {
  margin-bottom: 1.2rem;
  color: var(--sand);
  text-shadow: 0 1px 14px rgba(15, 23, 19, 0.5);
  animation: rise 0.9s var(--ease) 0.15s both;
}

.hero__title, .hero__sub { text-shadow: 0 2px 24px rgba(15, 23, 19, 0.35); }

.hero__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.6rem, 8.5vw, 6.5rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  animation: rise 0.9s var(--ease) 0.3s both;
}

.hero__sub {
  margin-top: 1.4rem;
  max-width: 34rem;
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: rgba(243, 239, 230, 0.9);
  animation: rise 0.9s var(--ease) 0.45s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Barra de reserva ---------- */

.bookbar {
  position: absolute;
  left: 50%;
  bottom: 2.5rem;
  translate: -50% 0; /* separado do transform para não brigar com a animação */
  width: min(1280px - clamp(2.5rem, 8vw, 6rem), 100%);
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: rise 0.9s var(--ease) 0.65s both;
}

.bookbar__field {
  background: rgba(243, 239, 230, 0.96);
  padding: 0.8rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.bookbar__field label {
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.bookbar__field input,
.bookbar__field select {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  padding: 0;
  width: 100%;
  cursor: pointer;
}

.bookbar__field input:focus-visible,
.bookbar__field select:focus-visible { outline: none; }

.bookbar__submit {
  border-radius: 0;
  background: var(--brass);
  border-color: var(--brass);
  padding: 1rem 2rem;
}
.bookbar__submit:hover { background: var(--ink); border-color: var(--ink); }

/* ============================================================
   Ticker
   ============================================================ */

.ticker {
  overflow: hidden;
  background: var(--ink);
  color: var(--sand);
  border-block: 1px solid var(--line-dark);
  padding: 0.85rem 0;
  white-space: nowrap;
}

.ticker__track { display: inline-flex; animation: marquee 36s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }

.ticker__track span {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding-right: 1rem;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Seções (compartilhado)
   ============================================================ */

.section {
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 7.5rem) clamp(1.25rem, 4vw, 3rem);
}

.section__head {
  display: flex;
  align-items: baseline;
  gap: 1.2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section__no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1rem;
  color: var(--brass);
}

.section--dark .section__no { color: var(--brass-bright); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.section__head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
  align-self: center;
}

.section--dark { color: var(--sand); }
.section--dark .section__head::after { background: var(--line-dark); }

.section__note {
  margin-left: auto;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  align-self: center;
}
.section--dark .section__note { color: var(--muted-dark); }

/* ============================================================
   Intro
   ============================================================ */

.intro__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.intro__text .lede + .stats { margin-top: 2.5rem; }

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.8rem 2rem;
}

.stats strong {
  display: block;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  line-height: 1;
}

.stats span { font-size: 0.85rem; color: var(--muted); }

.intro__figure img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 5;
  object-fit: cover;
  width: 100%;
}

.intro__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: italic;
}

/* ============================================================
   Acomodações
   ============================================================ */

.rooms__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem) clamp(1.5rem, 3.5vw, 3.5rem);
}

.room { grid-column: span 6; }
.room:nth-child(1) .room__figure,
.room:nth-child(4) .room__figure { aspect-ratio: 16 / 10; }
.room:nth-child(2) .room__figure,
.room:nth-child(3) .room__figure { aspect-ratio: 16 / 9; }

.room__figure {
  overflow: hidden;
  border-radius: var(--radius);
}

.room__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.room:hover .room__figure img { transform: scale(1.04); }

.room__info { padding-top: 1.3rem; }

.room__row { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }

.room__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.7rem;
}

.room__meta {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.room__desc { margin-top: 0.7rem; max-width: 42rem; color: var(--muted); }

.room__row--end { margin-top: 1.1rem; justify-content: flex-start; }

/* ============================================================
   Experiências / Valores (escuro, full-bleed)
   ============================================================ */

.section--dark.amenities,
.section--dark.values {
  max-width: none;
  background: var(--ink);
  padding-left: max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 1280px) / 2));
  padding-right: max(clamp(1.25rem, 4vw, 3rem), calc((100vw - 1280px) / 2));
}

.section--dark .section__head {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.amenities__grid {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 6fr 6fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.amenities__figure img {
  border-radius: var(--radius);
  aspect-ratio: 4 / 4.2;
  width: 100%;
  object-fit: cover;
}

.amenities__figure figcaption {
  margin-top: 0.7rem;
  font-size: 0.82rem;
  color: var(--muted-dark);
  font-style: italic;
}

.amenities__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 2.5rem;
}

.amenities__list li { padding: 1.4rem 0; border-top: 1px solid var(--line-dark); }

.amenities__list h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  margin-bottom: 0.35rem;
}

.amenities__list p { font-size: 0.92rem; color: var(--muted-dark); }

/* ============================================================
   Gastronomia
   ============================================================ */

.dining__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 4rem);
}

.venue__figure {
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4 / 4.4;
}

.venue__figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ease);
}

.venue:hover .venue__figure img { transform: scale(1.04); }

.venue__info { padding-top: 1.4rem; }

.venue__info h3 { font-family: var(--serif); font-weight: 500; font-size: 1.8rem; }

.venue__meta {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.venue__info > p:not(.venue__meta):not(.venue__hours) {
  margin-top: 0.8rem;
  color: var(--muted);
  max-width: 34rem;
}

.venue__hours { margin-top: 1rem; font-size: 0.85rem; font-weight: 600; color: var(--brass); }

.dining__cta { text-align: center; margin-top: clamp(2.5rem, 5vw, 4rem); }

/* ============================================================
   Faixa de citação
   ============================================================ */

.quote {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem);
  color: var(--sand);
  isolation: isolate;
}

.quote img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 19, 0.5);
}

.quote__text {
  font-family: var(--serif);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(1.6rem, 3.6vw, 2.9rem);
  line-height: 1.3;
  max-width: 46rem;
}

.quote__text cite {
  display: block;
  margin-top: 1.6rem;
  font-family: var(--sans);
  font-style: normal;
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass-bright);
}

/* ============================================================
   Como chegar
   ============================================================ */

.visit__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
}

.visit__col h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 1.4rem;
}

.visit__big {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.3;
  margin-bottom: 0.7rem;
}

.visit__col > p:not(.visit__big) { color: var(--muted); }

.visit__list { list-style: none; margin-top: 1.8rem; }

.visit__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--line);
  font-size: 0.95rem;
}

.visit__list span {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.visit__list em { font-style: normal; color: var(--muted); text-align: right; }
.visit__list a { text-decoration: none; font-weight: 600; }
.visit__list a:hover { color: var(--brass); }

.visit__cta {
  margin-top: 2.2rem;
  padding: 1.6rem 1.8rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--sand-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.visit__cta p { max-width: 24rem; font-size: 0.95rem; }
.visit__cta-buttons { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  background: var(--ink);
  color: var(--sand);
  padding: 3.5rem clamp(1.25rem, 4vw, 3rem) 2.2rem;
}

.footer__top {
  max-width: 1280px;
  margin: 0 auto 2.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer__wordmark {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.footer__logo { width: 20px; height: auto; }

.footer__links { display: flex; gap: 1.8rem; flex-wrap: wrap; }
.footer__links a { text-decoration: none; font-size: 0.88rem; opacity: 0.75; transition: opacity 0.25s; }
.footer__links a:hover { opacity: 1; }

.footer__fine {
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
  color: var(--muted-dark);
}

/* ============================================================
   Toast
   ============================================================ */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 200%);
  z-index: 300;
  background: var(--ink);
  color: var(--sand);
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow);
  transition: transform 0.5s var(--ease);
  max-width: calc(100vw - 2.5rem);
  text-align: center;
}

.toast.is-visible { transform: translate(-50%, 0); }

/* ============================================================
   Scroll reveal
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-in { opacity: 1; transform: translateY(0); }

/* ============================================================
   Responsivo
   ============================================================ */

@media (max-width: 960px) {
  .nav__links { display: none; }
  .nav.is-open {
    background: rgba(29, 42, 36, 0.97);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding-bottom: 1.5rem;
  }
  .nav.is-open .nav__links {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin-top: 1rem;
  }
  .nav.is-open .nav__links a {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line-dark);
    font-size: 1.05rem;
  }
  .nav__book { display: none; }
  .nav__burger {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 0.5rem;
  }
  .nav__burger span {
    width: 24px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.35s var(--ease);
  }
  .nav.is-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .nav.is-open .nav__burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

  .bookbar {
    position: static;
    translate: none;
    width: 100%;
    grid-template-columns: 1fr 1fr;
    margin-top: 2.5rem;
  }
  .hero { display: block; padding-bottom: 0; }
  .hero__content { padding-top: 8.5rem; padding-bottom: 1rem; }
  .bookbar__submit { grid-column: 1 / -1; }

  .intro__grid,
  .amenities__grid,
  .dining__grid,
  .visit__grid { grid-template-columns: 1fr; }

  .room { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .bookbar { grid-template-columns: 1fr; }
  .amenities__list { grid-template-columns: 1fr; }
  .section__note { display: none; }
  .visit__list li { flex-direction: column; gap: 0.25rem; }
  .visit__list em { text-align: left; }
}

/* ============================================================
   Movimento reduzido
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
