/* Divine Emergence — Demo Site Styles */
:root {
  --deep-purple: #241a30;
  --mid-purple: #2a1a3e;
  --purple-accent: #3a2450;
  --cream: #f3ead9;
  --cream-soft: #efe7d8;
  --gold: #d4b483;
  --gold-dark: #8a6d2f;
  --rose: #c47e7e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--cream);
  background-color: var(--deep-purple);
  line-height: 1.7;
}

/* ===== Animated Veil Background ===== */
.bg-veil {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.bg-veil svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Fold drift animations — slow, organic */
.folds-bg { animation: driftBg 45s ease-in-out infinite alternate; }
.folds-mid { animation: driftMid 32s ease-in-out infinite alternate; }
.folds-fg { animation: driftFg 24s ease-in-out infinite alternate; }

/* Pleat crease lines — slow breathing shimmer */
.pleats path {
  animation: pleatBreathe 10s ease-in-out infinite;
}
@keyframes pleatBreathe {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.65; }
}

@keyframes driftBg {
  from { transform: translateX(-15px) translateY(0); }
  to   { transform: translateX(15px) translateY(-8px); }
}
@keyframes driftMid {
  from { transform: translateX(12px) translateY(4px); }
  to   { transform: translateX(-12px) translateY(-6px); }
}
@keyframes driftFg {
  from { transform: translateX(-8px) translateY(2px); }
  to   { transform: translateX(8px) translateY(-4px); }
}

/* Shimmer sweep across satin highlights */
.sheen-layer path {
  animation: shimmerSweep 12s ease-in-out infinite;
}
@keyframes shimmerSweep {
  0%, 100% { opacity: 0.35; transform: translateX(0); }
  50%      { opacity: 0.7;  transform: translateX(40px); }
}

/* Sparkle twinkle — staggered */
.spk { animation: twinkle 4s ease-in-out infinite; }
.s1 { animation-delay: 0s; }
.s2 { animation-delay: 0.6s; }
.s3 { animation-delay: 1.2s; }
.s4 { animation-delay: 1.8s; }
.s5 { animation-delay: 2.4s; }
.s6 { animation-delay: 3.0s; }
.s7 { animation-delay: 0.9s; }
.s8 { animation-delay: 1.5s; }
.s9 { animation-delay: 2.1s; }
.s10 { animation-delay: 2.7s; }

@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50%      { opacity: 1;   transform: scale(1.2); }
}

/* ===== Navigation ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 1rem 2rem;
  background: rgba(36, 26, 48, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(212, 180, 131, 0.15);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.menu-btn { display: none; }

.nav-links { display: flex; gap: 1.5rem; align-items: center; }
.nav-link { color: var(--cream); text-decoration: none; font-size: 0.95rem; letter-spacing: 0.03em; transition: color 0.2s; }
.nav-link:hover { color: var(--gold); }

@media (max-width: 640px) { .nav-links { gap: 1rem; } .nav-link { font-size: 0.85rem; } }

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 500;
  margin-bottom: 1.5rem;
  color: var(--cream);
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  opacity: 0.85;
}

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

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
  padding: 0.9rem 2rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--deep-purple);
  font-weight: 500;
}
.btn-primary:hover { background: #e2c496; transform: translateY(-2px); }

.btn-secondary {
  border: 1px solid rgba(243, 234, 217, 0.4);
  color: var(--cream);
}
.btn-secondary:hover { background: rgba(243, 234, 217, 0.1); }

.btn-large { padding: 1rem 2.5rem; font-size: 1.1rem; }

/* ===== Sections ===== */
section { padding: 6rem 2rem; max-width: 1200px; margin: 0 auto; }

.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3.5rem;
  opacity: 0.8;
}

/* ===== Offerings ===== */
.offering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.offering-card {
  background: rgba(42, 26, 62, 0.5);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(212, 180, 131, 0.15);
  transition: transform 0.3s ease;
}

.offering-card:hover { transform: translateY(-6px); }

.offering-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
}

.offering-card h3 {
  font-family: 'Playfair Display', serif;
  padding: 1.5rem 1.5rem 0.5rem;
  font-size: 1.4rem;
}

.offering-card p {
  padding: 0 1.5rem 1.5rem;
  opacity: 0.8;
  font-size: 0.95rem;
}

.card-link {
  display: inline-block;
  margin: -0.75rem 1.5rem 1.5rem;
  color: var(--gold);
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.card-link:hover { color: #e2c496; }

/* ===== About (asymmetric layout) ===== */
.about-content {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-content img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.about-text h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  margin-bottom: 1.5rem;
}

.about-text p { opacity: 0.85; margin-bottom: 1.2rem; }

/* ===== Testimonials (asymmetric) ===== */
.testimonial-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
}

.testimonial {
  background: rgba(42, 26, 62, 0.5);
  padding: 2rem;
  border-radius: 8px;
  border-left: 3px solid var(--gold);
  font-style: italic;
}

.testimonial cite {
  display: block;
  margin-top: 1rem;
  font-size: 0.9rem;
  opacity: 0.7;
  font-style: normal;
}

/* ===== Booking ===== */
.booking-ctas {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Footer ===== */
.footer {
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(212, 180, 131, 0.15);
  opacity: 0.7;
}

.footer-tagline { margin-top: 0.5rem; font-size: 0.9rem; }

/* ===== Chat Widget ===== */
.chat-toggle {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--deep-purple);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.35);
  z-index: 200;
  transition: transform 0.2s ease;
}

.chat-toggle:hover { transform: scale(1.06); }
.chat-toggle svg { width: 28px; height: 28px; }

.chat-widget {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  max-width: calc(100vw - 48px);
  height: 520px;
  background: rgba(36, 26, 48, 0.97);
  border-radius: 12px;
  border: 1px solid rgba(212, 180, 131, 0.25);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  z-index: 200;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: all 0.3s ease;
}

.chat-widget.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(212, 180, 131, 0.2);
}

.chat-header img { width: 32px; height: 32px; border-radius: 50%; }
.chat-header span { font-family: 'Playfair Display', serif; flex: 1; }

.chat-close {
  background: none;
  border: none;
  color: var(--cream);
  font-size: 1.6rem;
  cursor: pointer;
  opacity: 0.7;
}
.chat-close:hover { opacity: 1; }

.chat-messages {
  flex: 1;
  padding: 1.25rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.msg {
  max-width: 85%;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}

.msg-ai {
  background: rgba(58, 36, 80, 0.7);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.msg-user {
  background: var(--gold);
  color: var(--deep-purple);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-area {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-top: 1px solid rgba(212, 180, 131, 0.2);
}

#chatInput {
  flex: 1;
  background: rgba(42, 26, 62, 0.6);
  border: 1px solid rgba(212, 180, 131, 0.25);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: var(--cream);
  font-size: 0.92rem;
}

#chatInput:focus { outline: none; border-color: var(--gold); }

.chat-send {
  background: var(--gold);
  border: none;
  border-radius: 8px;
  padding: 0 1rem;
  cursor: pointer;
  color: var(--deep-purple);
}
.chat-send svg { width: 20px; height: 20px; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .about-content, .testimonial-grid { grid-template-columns: 1fr; }
  section { padding: 4rem 1.5rem; }
}
