/* ==========================================================================
   Mahaan Celebrations Bangalore - Core Stylesheet
   Luxury Celebratory Aesthetics & Mobile-First Touch Optimization
   ========================================================================== */

:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  --color-brand-primary: #4c1d95;
  --color-brand-dark: #2e1065;
  --color-brand-deep: #1e0938;
  --color-gold-base: #d97706;
  --color-gold-light: #f59e0b;
  --color-gold-bright: #fbbf24;
  --color-gold-pale: #fef3c7;
  --color-whatsapp: #25d366;
  --color-whatsapp-dark: #128c7e;
  --color-bg-ivory: #faf8f5;
  --color-bg-card: #ffffff;
  --color-text-main: #0f172a;
  --color-text-muted: #475569;
}

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg-ivory);
  color: var(--color-text-main);
  overflow-x: hidden;
}

h1, h2, h3, .font-serif {
  font-family: var(--font-serif);
}

/* Glassmorphic elements */
.glass-nav {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Desktop Navigation Styling */
.nav-desktop-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
  letter-spacing: -0.01em;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

.nav-desktop-link:hover {
  color: #4c1d95;
  background-color: rgba(147, 51, 234, 0.08);
}

@media (min-width: 1280px) {
  .nav-desktop-link {
    padding: 0.5rem 0.8rem;
    font-size: 0.88rem;
  }
}

.nav-desktop-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4c1d95;
  background-color: #f3e8ff;
  border: 1px solid #e9d5ff;
  white-space: nowrap;
  transition: all 0.2s ease;
  text-decoration: none;
  margin-right: 0.25rem;
  box-shadow: 0 1px 2px rgba(147, 51, 234, 0.08);
}

.nav-desktop-pill:hover {
  background-color: #ede9fe;
  color: #3b0764;
  border-color: #d8b4fe;
  transform: translateY(-1px);
}

.glass-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.glass-dark {
  background: rgba(30, 9, 56, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

/* Gold Gradient Effects */
.text-gold-gradient {
  background: linear-gradient(135deg, #b45309 0%, #f59e0b 50%, #d97706 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-border-glow {
  border: 1px solid rgba(245, 158, 11, 0.4);
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.15);
}

/* WhatsApp Pulse Animation */
@keyframes whatsapp-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

.pulse-whatsapp {
  animation: whatsapp-pulse 2.2s infinite;
}

/* Call Pulse Animation */
@keyframes call-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.65);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(2, 132, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
  }
}

.pulse-call {
  animation: call-pulse 2.4s infinite;
}

/* Gentle Floating Animation */
@keyframes float-badge {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

.animate-float {
  animation: float-badge 4s ease-in-out infinite;
}

/* Gold Shimmer Effect */
@keyframes shimmer-sweep {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-badge {
  background: linear-gradient(90deg, rgba(254, 243, 199, 0.1) 0%, rgba(254, 243, 199, 0.6) 50%, rgba(254, 243, 199, 0.1) 100%);
  background-size: 200% 100%;
  animation: shimmer-sweep 3.5s infinite;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  /* Prevent content hiding behind fixed mobile bottom bar */
  body {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  }

  /* Ergonomic mobile touch targets */
  .btn-touch {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Safe area padding for newer iOS devices */
  .safe-bottom-padding {
    padding-bottom: max(12px, env(safe-area-inset-bottom, 12px));
  }

  /* Position floating WhatsApp above sticky bar on mobile */
  .floating-wa-btn {
    bottom: calc(88px + env(safe-area-inset-bottom, 0px)) !important;
    right: 16px !important;
  }
}

/* Smooth Accordion transition */
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
  opacity: 0;
}

.accordion-content.active {
  max-height: 400px;
  opacity: 1;
}

/* Multi-step Form Wizard */
.step-pane {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.step-pane.active {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.step-indicator-item.active .step-bubble {
  background-color: #f59e0b;
  color: #0f172a;
  border-color: #fbbf24;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.4);
}

.step-indicator-item.completed .step-bubble {
  background-color: #10b981;
  color: #ffffff;
  border-color: #34d399;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f1f1;
}
::-webkit-scrollbar-thumb {
  background: #c084fc;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9333ea;
}
