/* ==========================================================================
   Sonho Espaço de Neves — folha de estilos
   Paleta: preto / dourado, acabamento discreto e acolhedor
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,500&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --bg: #0b0b0b;
  --surface: #171717;
  --surface-raised: #1d1c1a;
  --gold: #c5a059;
  --gold-soft: #d9bd8c;
  --gold-dim: rgba(197, 160, 89, 0.35);
  --text: #f5f2eb;
  --text-muted: #b9b3a6;
  --line: rgba(197, 160, 89, 0.22);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 2px;
  --max-width: 1180px;
  --font-display: 'Cormorant Garamond', 'Georgia', serif;
  --font-body: 'Jost', 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
  color: var(--text);
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Acessibilidade ---------- */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  background: var(--gold);
  color: #141414;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--gold-soft);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout utilitário ---------- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.section {
  padding-block: clamp(3.5rem, 7vw, 6rem);
  border-top: 1px solid var(--line);
}

.section.alt {
  background: var(--surface);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.9rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 0.9rem;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 54ch;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.95rem 1.9rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--gold);
  color: #141210;
  font-weight: 600;
}

.btn-primary:hover {
  background: var(--gold-soft);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--gold-dim);
}

.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.btn-sm {
  padding: 0.7rem 1.3rem;
  font-size: 0.85rem;
}

.btn svg {
  width: 1.1em;
  height: 1.1em;
  flex-shrink: 0;
}

/* ==========================================================================
   Cabeçalho
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(11, 11, 11, 0.92);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-link img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  line-height: 1.05;
}

.logo-wordmark span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--gold);
  text-transform: uppercase;
}

.main-nav {
  margin-left: auto;
}

.main-nav ul {
  display: flex;
  gap: 1.9rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.92rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  transition: color 0.2s ease;
  padding: 0.3rem 0;
  border-bottom: 1px solid transparent;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--gold-soft);
  border-color: var(--gold-dim);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle .bar,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle::before {
  position: absolute;
  transform: translateY(-6px);
}

.nav-toggle::after {
  position: absolute;
  transform: translateY(6px);
}

.nav-toggle[aria-expanded="true"] .bar {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"]::before {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"]::after {
  transform: rotate(-45deg);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(92vh, 820px);
  display: flex;
  align-items: flex-end;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(11, 11, 11, 0.75) 0%,
    rgba(11, 11, 11, 0.35) 38%,
    rgba(11, 11, 11, 0.55) 70%,
    rgba(11, 11, 11, 0.92) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-block: clamp(3rem, 8vw, 5rem);
}

.hero-content .eyebrow {
  color: var(--gold-soft);
}

.hero-content h1 {
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  max-width: 16ch;
  margin-bottom: 1.1rem;
  text-wrap: balance;
}

.hero-content .hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: #e9e4d8;
  max-width: 52ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.1rem;
}

.hero-highlights li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #e9e4d8;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(197, 160, 89, 0.4);
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.55);
}

.hero-highlights svg {
  width: 1rem;
  height: 1rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ==========================================================================
   O espaço
   ========================================================================== */
.espaco-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.espaco-text p + p {
  margin-top: 1.1rem;
}

.espaco-text p {
  color: var(--text-muted);
  max-width: 56ch;
}

.feature-list {
  margin-top: 1.8rem;
  display: grid;
  gap: 0.9rem;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 1rem;
}

.feature-list svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.espaco-media {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.espaco-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ==========================================================================
   Estrutura
   ========================================================================== */
.estrutura-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: start;
}

.estrutura-groups {
  display: grid;
  gap: 1.6rem;
}

.estrutura-group {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.6rem;
  background: rgba(197, 160, 89, 0.04);
}

.estrutura-group h3 {
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.estrutura-group h3 svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
}

.estrutura-group p {
  color: var(--text-muted);
  font-size: 0.97rem;
}

.estrutura-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.estrutura-photos img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  border-radius: var(--radius);
}

.estrutura-photos figure:first-child {
  grid-column: 1 / -1;
}

.estrutura-photos figure:first-child img {
  aspect-ratio: 16 / 9;
  min-height: 0;
}

.estrutura-photos figure {
  margin: 0;
}

.locacao-note {
  margin-top: 1.8rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.locacao-note svg {
  width: 1.3rem;
  height: 1.3rem;
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* ==========================================================================
   Eventos
   ========================================================================== */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.evento-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem 1.6rem;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.evento-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-3px);
}

.evento-card h3 {
  font-size: 1.3rem;
  margin-bottom: 0.6rem;
}

.evento-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.eventos-cta {
  margin-top: 2.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line);
  text-align: center;
}

.eventos-cta p {
  max-width: 54ch;
  margin: 0 auto 1.3rem;
  color: var(--text-muted);
  font-size: 1.02rem;
}

/* ==========================================================================
   Galeria
   ========================================================================== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}

.gallery-item {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.06);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 11, 11, 0) 55%, rgba(11, 11, 11, 0.65) 100%);
  pointer-events: none;
}

.gallery-item .gallery-caption {
  position: absolute;
  left: 0.7rem;
  right: 0.7rem;
  bottom: 0.6rem;
  font-size: 0.78rem;
  color: #f1ece0;
  text-align: left;
  z-index: 1;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(6, 6, 6, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-figure {
  position: relative;
  max-width: min(92vw, 1100px);
  max-height: 86vh;
  width: 100%;
}

.lightbox-figure img {
  width: 100%;
  height: 100%;
  max-height: 78vh;
  object-fit: contain;
  margin: 0 auto;
}

.lightbox-caption {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.9rem;
}

.lightbox-close {
  position: absolute;
  top: -3rem;
  right: 0;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(23, 23, 23, 0.7);
  border: 1px solid var(--line);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-nav:hover {
  border-color: var(--gold);
  color: var(--gold-soft);
}

.lightbox-prev {
  left: -1rem;
}

.lightbox-next {
  right: -1rem;
}

@media (max-width: 700px) {
  .lightbox-prev {
    left: 0.2rem;
  }
  .lightbox-next {
    right: 0.2rem;
  }
  .lightbox-close {
    top: 0.5rem;
    right: 0.5rem;
    background: rgba(6, 6, 6, 0.6);
  }
}

/* ==========================================================================
   Localização
   ========================================================================== */
.localizacao-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

.endereco-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.8rem;
}

.endereco-card h3 {
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}

.endereco-card h3 svg {
  width: 1.2rem;
  height: 1.2rem;
  color: var(--gold);
}

.endereco-card address {
  font-style: normal;
  color: var(--text-muted);
  margin-bottom: 1.4rem;
  line-height: 1.6;
}

.endereco-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.localizacao-media {
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.localizacao-media img {
  display: block;
  width: 100%;
  height: auto;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  text-align: center;
  padding-block: clamp(4rem, 9vw, 6.5rem);
  border-top: 1px solid var(--line);
  background: radial-gradient(ellipse at center, rgba(197, 160, 89, 0.08) 0%, rgba(11, 11, 11, 0) 70%);
}

.cta-final h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  max-width: 20ch;
  margin: 0 auto 1rem;
}

.cta-final p {
  color: var(--text-muted);
  max-width: 48ch;
  margin: 0 auto 2rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   Rodapé
   ========================================================================== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding-block: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2.5rem;
  align-items: start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.footer-brand-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-brand-text span {
  display: block;
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

.footer-address {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

.footer-address a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-address a:hover {
  color: var(--gold-soft);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.footer-links a:hover {
  color: var(--gold-soft);
}

.footer-links svg {
  width: 1.05rem;
  height: 1.05rem;
  color: var(--gold);
  flex-shrink: 0;
}

.footer-bottom {
  margin-top: 2.2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.75;
  text-align: center;
}

.footer-bottom p + p {
  margin-top: 0.4rem;
}

.footer-credit a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-dim);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.footer-credit a:hover {
  color: var(--gold-soft);
  border-color: var(--gold);
}

/* ==========================================================================
   Botão flutuante do WhatsApp
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  right: clamp(1rem, 4vw, 1.75rem);
  bottom: calc(clamp(1rem, 4vw, 1.75rem) + env(safe-area-inset-bottom, 0px));
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25d366;
  border: 1px solid #1fb959;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
  z-index: 400;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.whatsapp-float:hover,
.whatsapp-float:focus-visible {
  transform: translateY(-2px);
  background: #1fb959;
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
  position: relative;
  z-index: 1;
}

.whatsapp-float::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #25d366;
  z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .whatsapp-float::before {
    animation: whatsapp-pulse 2.6s ease-out infinite;
  }
}

@keyframes whatsapp-pulse {
  0% {
    opacity: 0.55;
    transform: scale(1);
  }
  80% {
    opacity: 0;
    transform: scale(1.8);
  }
  100% {
    opacity: 0;
    transform: scale(1.8);
  }
}

/* ==========================================================================
   Responsivo
   ========================================================================== */
@media (max-width: 1000px) {
  .espaco-grid,
  .estrutura-layout,
  .localizacao-grid {
    grid-template-columns: 1fr;
  }

  .espaco-media {
    order: -1;
  }

  .eventos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    inset: 0;
    top: 73px;
    background: rgba(11, 11, 11, 0.98);
    padding: 2rem 1.5rem;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 490;
  }

  .main-nav.is-open {
    transform: translateX(0);
  }

  .main-nav ul {
    flex-direction: column;
    gap: 0.4rem;
  }

  .main-nav a {
    display: block;
    padding: 0.9rem 0.2rem;
    font-size: 1.1rem;
    border-bottom: 1px solid var(--line);
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .eventos-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .estrutura-photos {
    grid-template-columns: 1fr 1fr;
  }

  .hero {
    min-height: 100vh;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .endereco-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .endereco-actions .btn {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }
}
