/* =========================================================
   ESPAÇO VILLA REAL - Design System Premium
   Paleta: Preto profundo + Dourado champanhe + Off-white
   Tipografia: Cormorant Garamond (display) + Inter (texto)
   ========================================================= */

:root {
  --color-bg: #0e0e10;
  --color-bg-alt: #f7f3ec;
  --color-surface: #16161a;
  --color-text: #1a1a1d;
  --color-text-light: #5b5b62;
  --color-text-invert: #f7f3ec;
  --color-gold: #c9a96a;
  --color-gold-soft: #e6d4a8;
  --color-gold-dark: #a88848;
  --color-line: rgba(0, 0, 0, .08);
  --color-line-light: rgba(255, 255, 255, .12);

  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;

  --container: 1200px;
  --radius: 6px;
  --shadow-md: 0 10px 40px rgba(0, 0, 0, .12);
  --shadow-lg: 0 30px 80px rgba(0, 0, 0, .25);
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.container--narrow { max-width: 820px; }

.section { padding: 110px 0; }
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg); color: var(--color-text-invert); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.section__head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -.01em;
}
.section__head--light h2 { color: var(--color-text-invert); }
.section__lead { margin-top: 16px; color: var(--color-text-light); }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: var(--color-gold-dark);
  margin-bottom: 18px;
}
.section--dark .eyebrow { color: var(--color-gold); }

.grid { display: grid; gap: 28px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 32px;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .03em;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}
.btn--primary {
  background: linear-gradient(135deg, var(--color-gold), var(--color-gold-dark));
  color: #fff;
  box-shadow: 0 10px 30px rgba(201, 169, 106, .35);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(201, 169, 106, .5); }
.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
}
.btn--ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--lg { padding: 20px 44px; font-size: 1.05rem; }

/* ---------- HEADER ---------- */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  transition: var(--transition);
}
.header.is-scrolled {
  background: rgba(14, 14, 16, .92);
  backdrop-filter: blur(12px);
  padding: 14px 0;
  box-shadow: 0 4px 30px rgba(0, 0, 0, .15);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; }
.header__logo {
  font-family: var(--font-display);
  font-size: 1.7rem;
  color: #fff;
  font-weight: 600;
  letter-spacing: .02em;
}
.header__logo::before { content: "✦ "; color: var(--color-gold); }
.nav { display: flex; gap: 32px; align-items: center; }
.nav a {
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  font-weight: 400;
  transition: var(--transition);
}
.nav a:hover { color: var(--color-gold); }
.nav__cta {
  border: 1px solid var(--color-gold);
  padding: 10px 22px;
  border-radius: var(--radius);
  color: var(--color-gold) !important;
}
.nav__cta:hover { background: var(--color-gold); color: #0e0e10 !important; }

.header__toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.header__toggle span { width: 26px; height: 2px; background: #fff; transition: var(--transition); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--color-text-invert);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.05);
  animation: heroZoom 14s ease-in-out infinite alternate;
}
@keyframes heroZoom {
  to { transform: scale(1.15); }
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14, 14, 16, .65) 0%, rgba(14, 14, 16, .85) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 140px 24px 80px;
  max-width: 920px;
}
.hero__eyebrow {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid rgba(201, 169, 106, .5);
  border-radius: 50px;
  color: var(--color-gold);
  font-size: .75rem;
  letter-spacing: .25em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 6vw, 5rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  margin-bottom: 24px;
}
.hero__title em {
  color: var(--color-gold);
  font-style: italic;
  display: block;
}
.hero__subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, .8);
  max-width: 600px;
  margin: 0 auto 40px;
}
.hero__cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 70px; }
.hero__meta {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, .15);
}
.hero__meta div { text-align: center; }
.hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--color-gold);
  font-weight: 500;
}
.hero__meta span { font-size: .8rem; letter-spacing: .15em; text-transform: uppercase; opacity: .7; }

/* ---------- CARDS GENERIC ---------- */
.card {
  background: #fff;
  padding: 36px 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--color-line);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.card__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-gold-soft), var(--color-gold));
  color: #fff;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.card p { color: var(--color-text-light); font-size: .95rem; }

.section--dark .card {
  background: var(--color-surface);
  border-color: var(--color-line-light);
  color: var(--color-text-invert);
}
.section--dark .card p { color: rgba(247, 243, 236, .7); }

/* Eventos cards (with image) */
.event-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/5;
  cursor: pointer;
  box-shadow: var(--shadow-md);
}
.event-card__img {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  transition: transform .8s ease;
}
.event-card:hover .event-card__img { transform: scale(1.08); }
.event-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent 60%);
  display: flex; align-items: flex-end; padding: 28px;
}
.event-card__content { color: #fff; }
.event-card__content h3 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.event-card__content p { font-size: .9rem; opacity: .85; }

/* ---------- ESTRUTURA LIST ---------- */
.estrutura__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.estrutura__list li {
  padding: 18px 0 18px 40px;
  position: relative;
  border-bottom: 1px solid var(--color-line);
  font-size: 1rem;
}
.estrutura__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem;
  font-weight: 700;
}

/* ---------- GALLERY ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.gallery__item {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: zoom-in;
  background: #eee;
}
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.gallery__item:hover img { transform: scale(1.08); }
.gallery__item::after {
  content: "+";
  position: absolute;
  inset: 0;
  background: rgba(14, 14, 16, .4);
  color: #fff;
  font-size: 3rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0;
  transition: var(--transition);
}
.gallery__item:hover::after { opacity: 1; }

/* ---------- TESTIMONIALS ---------- */
.testimonial {
  background: #fff;
  padding: 36px 30px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  position: relative;
}
.testimonial::before {
  content: "“";
  position: absolute;
  top: -10px; left: 24px;
  font-family: var(--font-display);
  font-size: 5rem;
  color: var(--color-gold);
  line-height: 1;
}
.testimonial__text {
  font-style: italic;
  color: var(--color-text);
  margin: 24px 0 20px;
  font-size: 1rem;
}
.testimonial__author { font-weight: 600; }
.testimonial__role { font-size: .85rem; color: var(--color-text-light); }
.testimonial__stars { color: var(--color-gold); margin-top: 6px; }

/* ---------- FAQ ---------- */
.faq__item {
  border-bottom: 1px solid var(--color-line);
  padding: 4px 0;
}
.faq__question {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 500;
  transition: var(--transition);
}
.faq__question:hover { color: var(--color-gold-dark); }
.faq__question span:last-child {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--color-gold);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: transform .3s;
}
.faq__item.is-open .faq__question span:last-child { transform: rotate(45deg); }
.faq__answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .3s ease;
  color: var(--color-text-light);
}
.faq__item.is-open .faq__answer { max-height: 300px; padding: 0 0 22px; }

/* ---------- MAP ---------- */
.map {
  width: 100%;
  height: 450px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.map iframe { width: 100%; height: 100%; border: 0; }

/* ---------- CTA FINAL ---------- */
.cta-final {
  background:
    linear-gradient(135deg, rgba(14, 14, 16, .92), rgba(14, 14, 16, .85)),
    url('../images/hero.jpg') center/cover;
  padding: 120px 0;
  color: #fff;
  text-align: center;
}
.cta-final h2 {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 500;
  margin-bottom: 18px;
}
.cta-final h2 em { color: var(--color-gold); font-style: italic; }
.cta-final p { font-size: 1.15rem; opacity: .85; margin-bottom: 36px; max-width: 600px; margin-left: auto; margin-right: auto; }
.cta-final small { display: block; margin-top: 20px; opacity: .65; font-size: .85rem; }

/* ---------- FOOTER ---------- */
.footer { background: #07070a; color: rgba(255, 255, 255, .7); padding: 70px 0 0; }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--color-line-light);
}
.footer h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 12px;
}
.footer h3::before { content: "✦ "; color: var(--color-gold); }
.footer h4 { color: #fff; margin-bottom: 14px; font-size: .95rem; letter-spacing: .1em; text-transform: uppercase; }
.footer p { font-size: .92rem; margin-bottom: 6px; }
.footer__social { display: flex; gap: 12px; }
.footer__social a {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  transition: var(--transition);
  font-size: .9rem;
}
.footer__social a:hover { background: var(--color-gold); border-color: var(--color-gold); }
.footer__bottom { padding: 24px 0; text-align: center; font-size: .85rem; }

/* ---------- WHATSAPP FLOAT ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 60px; height: 60px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .4);
  z-index: 90;
  transition: var(--transition);
  animation: pulseWa 2.5s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float svg { width: 32px; height: 32px; }
@keyframes pulseWa {
  0%, 100% { box-shadow: 0 10px 30px rgba(37, 211, 102, .4), 0 0 0 0 rgba(37, 211, 102, .5); }
  50% { box-shadow: 0 10px 30px rgba(37, 211, 102, .4), 0 0 0 18px rgba(37, 211, 102, 0); }
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lightbox.is-open { display: flex; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.lightbox__img { max-width: 92%; max-height: 88vh; border-radius: 4px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(255, 255, 255, .12);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  transition: var(--transition);
}
.lightbox__close:hover, .lightbox__nav:hover { background: var(--color-gold); }
.lightbox__close { top: 24px; right: 24px; font-size: 2rem; }
.lightbox__nav--prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ---------- ANIMAÇÕES ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .estrutura__list { grid-template-columns: 1fr; gap: 0; }
  .footer__inner { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .section { padding: 70px 0; }
  .header__toggle { display: flex; }
  .nav {
    position: fixed;
    top: 0; right: -100%;
    width: 80%; max-width: 320px;
    height: 100vh;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 90px 30px 30px;
    gap: 24px;
    transition: right .35s ease;
    box-shadow: -10px 0 40px rgba(0,0,0,.3);
  }
  .nav.is-open { right: 0; }
  .grid--3, .grid--4 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .hero__meta { gap: 30px; }
  .hero__meta strong { font-size: 1.5rem; }
  .section__head { margin-bottom: 44px; }
  .lightbox__nav { width: 42px; height: 42px; }
}
