/* =========================================================
   VILLAS PANTANAL – Espaço de Eventos
   Paleta e tipografia baseadas no design aprovado
   ========================================================= */
:root {
  --dark: #1e140c;
  --dark-2: #2a1c11;
  --brown: #3a2817;
  --cream: #f6eee2;
  --cream-2: #efe3d0;
  --gold: #d9ae62;
  --gold-light: #ecc982;
  --gold-dark: #b4853b;
  --text: #2a1c11;
  --muted: #6d5b48;
  --light-text: #f3e9da;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --sans: "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 4px;
  --shadow: 0 18px 40px -18px rgba(30, 20, 12, .45);
  --header-h: 96px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.12; margin: 0 0 .5em; }
p { margin: 0 0 1em; }

.container { width: min(1240px, 92%); margin-inline: auto; }
.center { text-align: center; }
.mt-lg { margin-top: 3rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85em 1.9em;
  font: 600 .95rem/1 var(--sans);
  text-decoration: none; letter-spacing: .01em;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn--gold {
  color: #2a1c11;
  background: linear-gradient(180deg, var(--gold-light), var(--gold) 55%, var(--gold-dark));
  box-shadow: 0 6px 18px -8px rgba(180, 133, 59, .9);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(180, 133, 59, 1); }
.btn--outline { color: #fff; border-color: rgba(255,255,255,.9); background: rgba(0,0,0,.15); }
.btn--outline:hover { background: #fff; color: var(--dark); }
.btn--block { width: 100%; }

/* ---------- Títulos ---------- */
.kicker {
  font: 600 .8rem/1 var(--sans);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.kicker--line { display: flex; align-items: center; gap: 1.2rem; }
.kicker--line::after { content: ""; width: 76px; height: 1px; background: var(--gold); }
.section__title { font-size: clamp(2rem, 4vw, 3.1rem); }
.section__lead { max-width: 640px; margin: -.4rem auto 3rem; color: var(--muted); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto; z-index: 50;
  height: var(--header-h);
  transition: background .35s, height .35s, box-shadow .35s;
}
.header.is-solid {
  --header-h: 76px;
  background: rgba(30, 20, 12, .95);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.header__inner { height: 100%; display: flex; align-items: center; gap: 2.2rem; }
.header__logo img { height: calc(var(--header-h) - 22px); width: auto; transition: height .35s; }
.header__divider { width: 1px; height: 40px; background: rgba(217,174,98,.55); }
.nav { display: flex; align-items: center; gap: 2.4rem; margin-left: auto; }
.nav a:not(.btn) {
  color: #fff; text-decoration: none; font-weight: 500; font-size: 1rem;
  position: relative; padding: .3em 0;
}
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 1px;
  background: var(--gold); transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { margin-left: .8rem; }
.menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero__slides, .hero__slide, .hero__overlay { position: absolute; inset: 0; }
.hero__slide {
  background-size: cover; background-position: center 60%;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1.6s ease, transform 8s ease;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__overlay {
  background:
    linear-gradient(90deg, rgba(30,20,12,.92) 0%, rgba(30,20,12,.65) 38%, rgba(30,20,12,.15) 70%, rgba(30,20,12,.05) 100%),
    linear-gradient(180deg, rgba(30,20,12,.55) 0%, transparent 22%, transparent 75%, rgba(30,20,12,.5) 100%);
}
.hero__content { position: relative; z-index: 2; padding-top: var(--header-h); }
.hero__title {
  font-size: clamp(2.6rem, 6.2vw, 4.6rem);
  color: var(--cream); margin-bottom: 1.4rem;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
}
.hero__text { font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 430px; margin-bottom: 2.2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero__scroll {
  position: absolute; z-index: 2; bottom: 28px; left: 50%; transform: translateX(-50%);
  width: 26px; height: 42px; border: 1.5px solid rgba(255,255,255,.7); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; top: 8px; left: 50%; width: 4px; height: 8px; margin-left: -2px;
  background: var(--gold); border-radius: 2px; animation: scroll 1.8s infinite;
}
@keyframes scroll { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Seções ---------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--cream {
  background-color: var(--cream);
  background-image: radial-gradient(rgba(180,133,59,.06) 1px, transparent 1px);
  background-size: 6px 6px;
}
.section--dark { background: var(--dark); color: var(--light-text); }
.section--dark .section__title { color: var(--cream); }
.section--texture {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(217,174,98,.12), transparent 55%),
    radial-gradient(ellipse at 90% 100%, rgba(217,174,98,.08), transparent 50%),
    var(--dark);
}

/* Ornamento */
.ornament { display: flex; align-items: center; justify-content: center; gap: 1.2rem; color: var(--gold-dark); margin-bottom: 1rem; }
.ornament::before, .ornament::after { content: ""; width: min(170px, 22vw); height: 1px; background: var(--gold); }

/* ---------- Histórias (3 cards) ---------- */
.stories { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2.6rem; }
.story__img { overflow: hidden; aspect-ratio: 16 / 9.2; box-shadow: var(--shadow); }
.story__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.story:hover .story__img img { transform: scale(1.06); }
.story__label { display: flex; align-items: center; justify-content: center; gap: 1.2rem; padding: 1.2rem 0 .2rem; color: var(--gold-dark); }
.story__label .icon { width: 40px; height: 32px; }
.story__sep { width: 1px; height: 32px; background: var(--gold); }
.story__label h3 { font-size: 1.45rem; margin: 0; color: var(--text); }

/* ---------- Split (texto + imagem) ---------- */
.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.split--reverse .split__text { order: 2; }
.split__text p { color: rgba(243,233,218,.82); }
.split__text .btn { margin-top: 1rem; }
.split__media { position: relative; padding-bottom: 12%; }
.split__img--main { width: 88%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.split__img--float {
  position: absolute; right: 0; bottom: 0; width: 46%; aspect-ratio: 5/4; object-fit: cover;
  border: 6px solid var(--dark); border-radius: var(--radius); box-shadow: 0 20px 40px -15px rgba(0,0,0,.8);
}

/* ---------- Ambientes ---------- */
.spaces { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 290px; gap: 1rem; }
.space { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.space--wide { grid-column: span 2; }
.space img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.space:hover img { transform: scale(1.07); }
.space__info {
  position: absolute; inset: auto 0 0; padding: 3.5rem 1.3rem 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(20,13,7,.88));
  color: #fff;
}
.space__info h3 { font-size: 1.35rem; margin: 0 0 .2rem; color: var(--gold-light); }
.space__info p { margin: 0; font-size: .92rem; opacity: .92; }
.more-spaces { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem; margin-top: 2.4rem; }
.more-spaces__label { font-family: var(--serif); font-style: italic; color: var(--muted); margin-right: .4rem; }
.chip { padding: .45em 1.1em; border: 1px solid var(--gold); border-radius: 99px; font-size: .9rem; color: var(--brown); background: rgba(255,255,255,.4); }

/* ---------- Experiências ---------- */
.experiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; margin-top: 2.8rem; }
.exp { background: var(--dark-2); border: 1px solid rgba(217,174,98,.2); border-radius: var(--radius); overflow: hidden; transition: transform .3s, border-color .3s; }
.exp:hover { transform: translateY(-6px); border-color: rgba(217,174,98,.6); }
.exp img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.exp__body { padding: 1.6rem 1.6rem 1.8rem; }
.exp__body h3 { font-size: 1.4rem; color: var(--gold-light); }
.exp__body p { margin: 0; color: rgba(243,233,218,.78); font-size: .97rem; }

/* ---------- Eventos ---------- */
.events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; margin-top: 2.8rem; }
.event { text-align: center; }
.event__img { overflow: hidden; border-radius: 50% 50% var(--radius) var(--radius) / 32% 32% var(--radius) var(--radius); aspect-ratio: 3/4; margin-bottom: 1.3rem; box-shadow: var(--shadow); }
.event__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.event:hover .event__img img { transform: scale(1.06); }
.event h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.event p { font-size: .95rem; color: var(--muted); }

.rent {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  margin-top: 3.5rem; padding: 2rem 2.4rem;
  background: var(--dark); color: var(--light-text);
  border: 1px solid rgba(217,174,98,.4); border-radius: var(--radius); box-shadow: var(--shadow);
}
.rent h3 { font-size: 1.6rem; color: var(--gold-light); margin-bottom: .3rem; }
.rent p { margin: 0; max-width: 640px; color: rgba(243,233,218,.85); }
.rent strong { color: var(--gold-light); font-weight: 600; }
.rent .btn { flex: none; }

/* ---------- Hospedagem ---------- */
.rooms { list-style: none; padding: 0; margin: 1.6rem 0 1.4rem; columns: 2; column-gap: 1.6rem; }
.rooms li { break-inside: avoid; padding: .35rem 0 .35rem 1.3rem; position: relative; font-size: .94rem; color: rgba(243,233,218,.88); }
.rooms li::before { content: "✦"; position: absolute; left: 0; color: var(--gold); font-size: .75rem; top: .55rem; }
.rooms-note { font-size: .9rem; font-style: italic; color: var(--gold-light) !important; }
.rooms-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.rooms-gallery img { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(0,0,0,.8); }
.rooms-gallery img:nth-child(2), .rooms-gallery img:nth-child(4) { transform: translateY(2.2rem); }

/* ---------- Galeria ---------- */
.gallery { columns: 4 240px; column-gap: 1rem; margin-top: 2.6rem; }
.gallery button {
  display: block; width: 100%; margin: 0 0 1rem; padding: 0; border: 0; cursor: zoom-in;
  overflow: hidden; border-radius: var(--radius); background: var(--cream-2); break-inside: avoid;
}
.gallery img { width: 100%; height: auto; transition: transform .6s ease, opacity .3s; }
.gallery button:hover img { transform: scale(1.05); opacity: .92; }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(15,10,6,.94); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox figure { margin: 0; max-width: 90vw; max-height: 86vh; text-align: center; }
.lightbox img { max-width: 90vw; max-height: 80vh; object-fit: contain; margin: auto; border-radius: var(--radius); }
.lightbox figcaption { color: var(--gold-light); font-family: var(--serif); margin-top: .8rem; font-size: 1.1rem; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 3rem; line-height: 1; padding: .5rem 1rem; opacity: .8; }
.lightbox button:hover { opacity: 1; color: var(--gold); }
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; }
.lightbox__nav--next { right: 1rem; }

/* ---------- Contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.contact__info > p { color: rgba(243,233,218,.82); }
.contact__list { list-style: none; padding: 0; margin: 1.8rem 0; display: grid; gap: 1rem; }
.contact__list li { display: flex; align-items: center; gap: .9rem; }
.contact__list svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.contact__list a { text-decoration: none; }
.contact__list a:hover { color: var(--gold-light); }
.map__btn { margin-bottom: 1.2rem; }
.map { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; border: 1px solid rgba(217,174,98,.3); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.map__placeholder { position: relative; height: 100%; display: flex; align-items: center; justify-content: center; }
.map__placeholder img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.map__placeholder p { position: relative; margin: 0; font-family: var(--serif); font-style: italic; color: var(--gold-light); }

.form { background: var(--cream); color: var(--text); padding: clamp(1.8rem, 4vw, 2.8rem); border-radius: var(--radius); box-shadow: 0 30px 60px -25px rgba(0,0,0,.8); }
.form__title { font-size: 1.7rem; margin-bottom: 1.4rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: .85rem; font-weight: 600; color: var(--brown); margin-bottom: 1rem; }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: .35rem; padding: .75em .9em;
  font: 400 1rem var(--sans); color: var(--text);
  background: #fff; border: 1px solid #dccbb0; border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold-dark); box-shadow: 0 0 0 3px rgba(217,174,98,.25); }
.form .is-invalid { border-color: #b4452f; }
.form__note { margin: 1rem 0 0; font-size: .9rem; text-align: center; color: var(--muted); min-height: 1.2em; }

/* ---------- Rodapé ---------- */
.footer { background: #140d07; color: rgba(243,233,218,.7); padding: 4rem 0 2.2rem; text-align: center; }
.footer__logo { width: 230px; margin: 0 auto 1rem; }
.footer__tagline { font-family: var(--serif); font-style: italic; color: var(--gold-light); font-size: 1.15rem; }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem 2rem; margin: 1.8rem 0; }
.footer__nav a { text-decoration: none; }
.footer__nav a:hover { color: var(--gold); }
.footer__copy { font-size: .82rem; margin: 0; padding-top: 1.8rem; border-top: 1px solid rgba(217,174,98,.15); }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #25d366; color: #fff; box-shadow: 0 10px 25px -5px rgba(0,0,0,.45);
  transition: transform .25s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__slide { transition: opacity .5s; transform: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1100px) {
  .nav { gap: 1.6rem; }
  .spaces { grid-template-columns: repeat(3, 1fr); }
  .space--wide { grid-column: span 1; }
  .events { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  :root { --header-h: 78px; }
  .header__divider { display: none; }
  .menu-toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 6px;
    margin-left: auto; width: 46px; height: 46px; padding: 10px;
    background: none; border: 1px solid rgba(217,174,98,.6); border-radius: var(--radius); cursor: pointer;
  }
  .menu-toggle span { height: 2px; background: var(--gold-light); transition: transform .3s, opacity .3s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: rgba(30,20,12,.98); padding: 1rem 6% 2rem;
    transform: translateY(-120%); transition: transform .4s ease; z-index: -1;
    box-shadow: 0 20px 30px rgba(0,0,0,.4);
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 1rem 0; border-bottom: 1px solid rgba(217,174,98,.15); }
  .nav__cta { margin: 1.4rem 0 0; }
  .header.menu-open { background: rgba(30,20,12,.98); }

  .stories, .experiences { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .split, .contact { grid-template-columns: 1fr; }
  .split--reverse .split__text { order: 0; }
  .spaces { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 240px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero__overlay { background: linear-gradient(180deg, rgba(30,20,12,.7), rgba(30,20,12,.55) 50%, rgba(30,20,12,.85)); }
  .hero__actions .btn { flex: 1 1 100%; }
  .spaces { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .events { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .event h3 { font-size: 1.15rem; }
  .event p { font-size: .85rem; }
  .rooms { columns: 1; }
  .rent { flex-direction: column; align-items: flex-start; padding: 1.6rem; }
  .form__row { grid-template-columns: 1fr; gap: 0; }
  .gallery { columns: 2; column-gap: .6rem; }
  .gallery button { margin-bottom: .6rem; }
  .whats-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
