/* ============================================================
   style.css - Barracão Eventos
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a26;
  --gold: #c8a96e;
  --gold-light: #e8c98e;
  --gold-dark: #a07840;
  --white: #f5f0e8;
  --muted: #7a7a8a;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
  --success: #28a745;
  --danger: #dc3545;
  --warning: #ffc107;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(200,169,110,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 80%, rgba(200,169,110,0.05) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(200,169,110,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,169,110,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

.section { display: none; }
.section.active { display: block; }

/* ── Header ── */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(200,169,110,0.15);
  padding: 1rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
}

.logo-text { font-family: 'Playfair Display', serif; font-size: 1.3rem; color: var(--white); }
.logo-text span { color: var(--gold); }

.nav { display: flex; gap: 0.25rem; }

.nav-link {
  background: none;
  border: none;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
  background: rgba(200,169,110,0.1);
}

.header-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.5rem 1.2rem;
  background: var(--whatsapp);
  color: #fff;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.header-whatsapp:hover { background: var(--whatsapp-dark); transform: translateY(-1px); }

/* ── Main ── */
main { padding-top: 80px; }

/* ── Hero ── */
.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
  position: relative;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 2rem;
}

.ornament-line {
  height: 1px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.ornament-line.right { background: linear-gradient(90deg, var(--gold), transparent); }
.ornament-diamond { width: 6px; height: 6px; background: var(--gold); transform: rotate(45deg); }

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 900;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.hero-title span { color: var(--gold); font-style: italic; }

.hero-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 0.5rem;
}

.hero-location {
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--bg);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(200,169,110,0.3);
}

.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(200,169,110,0.4); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.9rem 2rem;
  background: transparent;
  color: var(--gold);
  font-family: 'DM Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  border: 1px solid var(--gold);
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s;
}

.btn-outline:hover { background: rgba(200,169,110,0.1); transform: translateY(-2px); }

/* ── Seções ── */
.page-section { padding: 5rem 0; }

.section-header { text-align: center; margin-bottom: 3rem; }

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.section-desc { color: var(--muted); font-size: 1.05rem; max-width: 600px; margin: 0 auto; line-height: 1.7; }

/* ── Cards de estrutura ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(200,169,110,0.12);
  border-radius: 16px;
  padding: 2rem;
  transition: all 0.3s;
}

.card:hover {
  border-color: rgba(200,169,110,0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.card-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, rgba(200,169,110,0.2), rgba(200,169,110,0.05));
  border: 1px solid rgba(200,169,110,0.2);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

.card h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--white); margin-bottom: 0.5rem; }
.card p { color: var(--muted); font-size: 0.95rem; line-height: 1.6; }

/* ── Tipos de eventos ── */
.eventos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.evento-card {
  background: var(--surface);
  border: 1px solid rgba(200,169,110,0.12);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
  cursor: pointer;
}

.evento-card:hover {
  border-color: var(--gold);
  background: rgba(200,169,110,0.05);
}

.evento-card .icon { font-size: 2rem; margin-bottom: 0.75rem; }
.evento-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 0.25rem; }
.evento-card p { color: var(--muted); font-size: 0.85rem; }

/* ── Calendário ── */
.calendario-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 768px) { .calendario-wrapper { grid-template-columns: 1fr; } }

.calendar-box {
  background: var(--surface);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 16px;
  padding: 1.5rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.calendar-nav h3 { font-family: 'Playfair Display', serif; color: var(--gold); font-size: 1.1rem; }

.cal-nav-btn {
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.2);
  color: var(--gold);
  width: 32px; height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s;
}

.cal-nav-btn:hover { background: rgba(200,169,110,0.2); }

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

.cal-header {
  text-align: center;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 600;
  padding: 0.25rem 0;
  text-transform: uppercase;
}

.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: default;
  transition: all 0.2s;
}

.cal-day.available { color: var(--white); cursor: pointer; }
.cal-day.available:hover { background: rgba(200,169,110,0.2); color: var(--gold); }
.cal-day.selected { background: var(--gold); color: var(--bg); font-weight: 700; }
.cal-day.unavailable { color: var(--muted); text-decoration: line-through; opacity: 0.5; }
.cal-day.past { color: rgba(122,122,138,0.4); }

.calendar-legend {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
}

.legend-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.legend-dot.available { background: var(--gold); }
.legend-dot.unavailable { background: var(--muted); }

/* ── Formulário ── */
.form-box {
  background: var(--surface);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 16px;
  padding: 2rem;
}

.form-box h3 {
  font-family: 'Playfair Display', serif;
  color: var(--gold);
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
}

.form-group { margin-bottom: 1.25rem; }

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--surface2);
  border: 1px solid rgba(200,169,110,0.15);
  border-radius: 10px;
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
}

.form-group select option { background: var(--surface2); }
.form-group textarea { resize: vertical; min-height: 80px; }

.selected-date {
  background: rgba(200,169,110,0.1);
  border: 1px solid rgba(200,169,110,0.3);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  color: var(--gold);
  margin-bottom: 1.25rem;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; } }

/* ── WhatsApp flutuante ── */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 99;
  width: 56px; height: 56px;
  background: var(--whatsapp);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all 0.25s;
  text-decoration: none;
}

.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.5); }
.whatsapp-float svg { width: 28px; height: 28px; fill: white; }

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid rgba(200,169,110,0.3);
  color: var(--white);
  padding: 1rem 2rem;
  border-radius: 50px;
  font-size: 0.95rem;
  z-index: 9999;
  transition: transform 0.3s ease;
  white-space: nowrap;
}

.toast.show { transform: translateX(-50%) translateY(0); }
.toast.toast-success { border-color: var(--success); }
.toast.toast-error { border-color: var(--danger); }

/* ── Footer ── */
.footer {
  background: var(--surface);
  border-top: 1px solid rgba(200,169,110,0.1);
  padding: 3rem 0 2rem;
  text-align: center;
  position: relative;
  z-index: 1;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.footer-logo span { color: var(--gold); }
.footer p { color: var(--muted); font-size: 0.9rem; margin-bottom: 0.25rem; }
.footer-copy { margin-top: 2rem; font-size: 0.8rem; color: rgba(122,122,138,0.5); }

/* ── Responsivo ── */
@media (max-width: 768px) {
  .nav { display: none; }
  .header .container { flex-wrap: wrap; }
  .hero-title { font-size: 2.5rem; }
  .cards-grid { grid-template-columns: 1fr; }
}
