/* ==========================================================================
   VANGUARD BARBER CLUB & LOUNGE - Design System & Custom Styles
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --bg-primary: #0a0a0d;
  --bg-surface: #121217;
  --bg-surface-elevated: #1a1a23;
  --bg-surface-hover: #22222e;
  
  --gold-300: #f6e6b8;
  --gold-400: #e5c57b;
  --gold-500: #d4a745;
  --gold-600: #b88628;
  --gold-gradient: linear-gradient(135deg, #fcedc7 0%, #d4a745 50%, #9e6d19 100%);
  --gold-glow: rgba(212, 167, 69, 0.25);
  
  --amber-accent: #c46d29;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(212, 167, 69, 0.28);
  --border-gold-hover: rgba(212, 167, 69, 0.65);
  
  --text-primary: #f5f5f7;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --font-serif: 'Cinzel', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-gold: 0 10px 30px -5px rgba(212, 167, 69, 0.2);
  --shadow-card: 0 20px 40px -15px rgba(0, 0, 0, 0.7);
}

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

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

body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: #272733;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--gold-600);
}

/* Heading Utility */
.font-cinzel {
  font-family: var(--font-serif);
  letter-spacing: 0.04em;
}

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

.border-gold-glow {
  border: 1px solid var(--border-gold);
  box-shadow: 0 0 25px rgba(212, 167, 69, 0.08);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.border-gold-glow:hover {
  border-color: var(--border-gold-hover);
  box-shadow: 0 0 35px rgba(212, 167, 69, 0.2);
}

/* Gold Button Styles */
.btn-gold {
  background: var(--gold-gradient);
  color: #0d0d10;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px -4px rgba(212, 167, 69, 0.35);
  cursor: pointer;
  text-decoration: none;
  border: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px -4px rgba(212, 167, 69, 0.5);
  filter: brightness(1.08);
}

.btn-gold:active {
  transform: translateY(0);
}

.btn-outline-gold {
  background: rgba(18, 18, 23, 0.75);
  color: var(--gold-400);
  border: 1px solid var(--border-gold);
  font-weight: 600;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  backdrop-filter: blur(12px);
}

.btn-outline-gold:hover {
  background: rgba(212, 167, 69, 0.12);
  border-color: var(--gold-400);
  color: var(--gold-300);
  transform: translateY(-2px);
}

/* Subtle background noise & vignette */
.bg-vignette {
  background: radial-gradient(circle at 50% 30%, rgba(212, 167, 69, 0.07) 0%, rgba(10, 10, 13, 0.95) 75%);
}

.bg-pattern-dark {
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* Pulse animation for Live Badge */
@keyframes pulseGlow {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0);
  }
}

.live-pulse-green {
  animation: pulseGlow 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

/* ==========================================================================
   Before / After Interactive Comparison Slider
   ========================================================================== */
.before-after-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  overflow: hidden;
  border-radius: var(--radius-md);
  user-select: none;
  touch-action: pan-y;
  border: 1px solid var(--border-gold);
}

.before-after-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 50%;
  height: 100%;
  overflow: hidden;
  border-right: 2px solid var(--gold-400);
  box-shadow: 4px 0 20px rgba(0, 0, 0, 0.6);
}

.before-after-overlay img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  background: var(--gold-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0d0d10;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 12px var(--gold-glow);
  cursor: ew-resize;
  pointer-events: none;
  z-index: 10;
}

.badge-tag {
  position: absolute;
  padding: 4px 12px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 9999px;
  z-index: 5;
  backdrop-filter: blur(8px);
}

/* ==========================================================================
   Modern Native <dialog> Modal Architecture & Animation
   (Based on Modern Web Guidance: light-dismiss, backdrop, overscroll)
   ========================================================================== */
dialog {
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  background: #14141c;
  color: var(--text-primary);
  padding: 0;
  max-width: 90vw;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.9), 0 0 50px rgba(212, 167, 69, 0.15);
  overflow: hidden;
  margin: auto;
  opacity: 0;
  transform: translateY(20px) scale(0.97);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              overlay 0.3s allow-discrete,
              display 0.3s allow-discrete;
}

dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@starting-style {
  dialog[open] {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }
}

dialog::backdrop {
  background: rgba(8, 8, 12, 0.85);
  backdrop-filter: blur(10px);
  opacity: 0;
  transition: opacity 0.3s ease, overlay 0.3s allow-discrete, display 0.3s allow-discrete;
}

dialog[open]::backdrop {
  opacity: 1;
}

@starting-style {
  dialog[open]::backdrop {
    opacity: 0;
  }
}

/* Prevent body scrolling when dialog is open */
body:has(dialog[open]) {
  overflow: hidden;
}

/* ==========================================================================
   Booking Stepper Components
   ========================================================================== */
.booking-step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
  background: #1f1f2b;
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.booking-step-indicator.active {
  background: var(--gold-gradient);
  color: #0d0d10;
  border-color: var(--gold-400);
  box-shadow: 0 0 15px rgba(212, 167, 69, 0.4);
}

.booking-step-indicator.completed {
  background: #1b2e1f;
  color: #4ade80;
  border-color: #22c55e;
}

.service-card-select, .barber-card-select, .drink-card-select {
  border: 1px solid var(--border-subtle);
  background: #16161f;
  border-radius: var(--radius-md);
  padding: 1rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.service-card-select:hover, .barber-card-select:hover, .drink-card-select:hover {
  background: #1e1e2b;
  border-color: rgba(212, 167, 69, 0.4);
  transform: translateY(-2px);
}

.service-card-select.selected, .barber-card-select.selected, .drink-card-select.selected {
  border-color: var(--gold-400);
  background: rgba(212, 167, 69, 0.08);
  box-shadow: 0 0 20px rgba(212, 167, 69, 0.15);
}

.time-slot-btn {
  background: #1a1a24;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.2s ease;
}

.time-slot-btn:hover {
  border-color: var(--gold-400);
  background: #232332;
}

.time-slot-btn.selected {
  background: var(--gold-gradient);
  color: #0d0d10;
  border-color: var(--gold-400);
  font-weight: 700;
}

/* ==========================================================================
   Gift Voucher Realistic Preview
   ========================================================================== */
.voucher-card {
  background: linear-gradient(135deg, #181822 0%, #0e0e14 100%);
  border: 2px solid var(--gold-400);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.7), inset 0 0 30px rgba(212, 167, 69, 0.1);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
}

.voucher-card::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 1px dashed rgba(212, 167, 69, 0.35);
  border-radius: calc(var(--radius-lg) - 4px);
  pointer-events: none;
}

.voucher-watermark {
  position: absolute;
  right: -20px;
  bottom: -20px;
  font-family: var(--font-serif);
  font-size: 9rem;
  font-weight: 900;
  color: rgba(212, 167, 69, 0.04);
  pointer-events: none;
  line-height: 1;
  user-select: none;
}

/* ==========================================================================
   Sales Demo Mode Floating Banner & Toast
   ========================================================================== */
.demo-pitch-pill {
  background: linear-gradient(90deg, #1f1f2c 0%, #15151e 100%);
  border: 1px solid var(--border-gold);
  border-radius: 9999px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(212, 167, 69, 0.15);
  transition: all 0.3s ease;
}

.demo-pitch-pill:hover {
  border-color: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 25px rgba(212, 167, 69, 0.3);
}

.toast-notification {
  position: fixed;
  bottom: 85px;
  left: 20px;
  background: rgba(22, 22, 30, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 167, 69, 0.15);
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  max-width: 380px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  pointer-events: none;
}

.toast-notification.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Mobile Sticky Bottom Bar */
.mobile-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(14, 14, 19, 0.96);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-gold);
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
  .mobile-bottom-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }
  body {
    padding-bottom: 70px;
  }
  .toast-notification {
    bottom: 80px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
}

/* Interactive Tabs */
.tab-btn {
  padding: 0.65rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 9999px;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: var(--gold-gradient);
  color: #0d0d10;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(212, 167, 69, 0.3);
}

/* Accordion Details/Summary styling */
details summary::-webkit-details-marker {
  display: none;
}

details[open] summary .faq-icon {
  transform: rotate(180deg);
  color: var(--gold-400);
}
