/*
 * Dream Creation Events & Hospitality — Core PHP Luxury Dark Design System.
 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500;600&display=swap');

:root {
  --radius: 0.25rem;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-sans: "Jost", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --background: #141b26;
  --foreground: #f4f4f2;

  --surface: #1b2433;
  --surface-2: #242f42;

  --card: #1b2433;
  --card-foreground: #f4f4f2;
  --popover: #18202e;
  --popover-foreground: #f4f4f2;

  --gold: #dfb259;
  --gold-soft: #f2db9d;
  --gold-hover: #c99b42;

  --primary: #dfb259;
  --primary-foreground: #141b26;

  --secondary: #222d3e;
  --secondary-foreground: #f4f4f2;

  --muted: #222d3e;
  --muted-foreground: #a3b1c6;

  --accent: #2c394e;
  --accent-foreground: #f4f4f2;

  --destructive: #d94242;
  --destructive-foreground: #ffffff;

  --border: rgba(163, 177, 198, 0.25);
  --input: rgba(163, 177, 198, 0.3);
  --ring: #dfb259;

  --gradient-gold: linear-gradient(100deg, #c79a40, #f8e5b6, #dfb259);
  --gradient-veil: linear-gradient(to top, rgba(20, 27, 38, 0.96), rgba(20, 27, 38, 0.7) 45%, rgba(20, 27, 38, 0.45));
  --shadow-luxe: 0 24px 60px -30px rgba(0, 0, 0, 0.8);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 300;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 80rem;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.grid { display: grid; }
.flex { display: flex; }
.hidden { display: none !important; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-5 { gap: 1.25rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.gap-12 { gap: 3rem; }
.gap-16 { gap: 4rem; }

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

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:text-left { text-align: left; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Typography & Colors */
.text-gold { color: var(--gold); }
.text-muted { color: var(--muted-foreground); }
.bg-gold { background-color: var(--gold); }
.bg-surface { background-color: var(--surface); }
.bg-background { background-color: var(--background); }

.eyebrow {
  font-size: 0.7rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.gold-rule {
  height: 1px;
  width: 4rem;
  background: var(--gradient-gold);
}

.text-gradient-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Luxury Cards */
.luxe-card {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-luxe);
  transition: border-color 0.35s ease, transform 0.35s ease, background 0.35s ease;
  border-radius: var(--radius);
}

.luxe-card:hover {
  border-color: rgba(223, 178, 89, 0.6);
  background: var(--surface-2);
  transform: translateY(-3px);
}

.hero-veil {
  background: var(--gradient-veil);
}

/* Marquee */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(27, 36, 51, 0.4);
  padding: 1rem 0;
}

.marquee-track {
  display: inline-flex;
  width: max-content;
  animation: marquee-scroll 28s linear infinite;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
}

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

/* Buttons */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--gold);
  color: var(--primary-foreground);
  padding: 0.85rem 1.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: opacity 0.25s ease, background-color 0.25s ease;
  border-radius: var(--radius);
}

.btn-gold:hover {
  background-color: var(--gold-hover);
  opacity: 0.95;
}

.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: transparent;
  padding: 0.85rem 1.75rem;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.25s ease, color 0.25s ease;
  border-radius: var(--radius);
}

.btn-outline-gold:hover {
  background-color: var(--gold);
  color: var(--primary-foreground);
}

/* Forms */
.form-control {
  width: 100%;
  border: 1px solid var(--input);
  background-color: var(--surface);
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  color: var(--foreground);
  outline: none;
  transition: border-color 0.25s ease;
  border-radius: var(--radius);
}

.form-control:focus {
  border-color: var(--gold);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--gold);
}

/* Navigation Bar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(20, 27, 38, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-link {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted-foreground);
  transition: color 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--gold);
}

/* Gallery & Modal */
.gallery-grid {
  columns: 2 200px;
  column-gap: 1rem;
}

@media (min-width: 768px) {
  .gallery-grid { columns: 3 240px; }
}

@media (min-width: 1200px) {
  .gallery-grid { columns: 4 260px; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border);
}

.gallery-item img {
  width: 100%;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  max-width: 90vw;
  max-height: 90vh;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 0.5rem;
}

.modal-content img {
  max-height: 85vh;
  object-fit: contain;
}

.modal-close {
  position: absolute;
  top: -2.5rem;
  right: 0;
  color: white;
  font-size: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

/* Floating WhatsApp Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 40;
  background-color: #25d366;
  color: white;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Toast alert */
.toast-alert {
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface-2);
}

.toast-alert.success {
  border-color: #25d366;
  color: #a3f7c4;
}

.toast-alert.error {
  border-color: var(--destructive);
  color: #ffb3b3;
}
