/* ============================================
   KRENO - Premium Salon Booking Website
   Design System & Global Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Primary Palette */
  --color-primary: #6366F1;
  --color-primary-light: #818CF8;
  --color-primary-dark: #A88B52;
  --color-primary-glow: rgba(201, 169, 110, 0.3);

  /* Background Palette */
  --color-bg-dark: #0D0D0D;
  --color-bg-card: #1A1A1A;
  --color-bg-card-hover: #222222;
  --color-bg-elevated: #252525;
  --color-bg-glass: rgba(26, 26, 26, 0.7);
  /* Hero & Navbar (overridable by JS for light themes) */
  --hero-overlay: linear-gradient(105deg, rgba(13,13,13,0.97) 0%, rgba(13,13,13,0.82) 45%, rgba(13,13,13,0.60) 100%);
  --navbar-scrolled-bg: rgba(13,13,13,0.92);
  --navbar-scrolled-border: rgba(201,169,110,0.1);
  --badge-bg: rgba(201,169,110,0.10);
  --badge-border: rgba(201,169,110,0.20);

  /* Text Palette */
  --color-text-primary: #F5F0E8;
  --color-text-secondary: #A0998C;
  --color-text-muted: #6B665C;

  /* Accent & Status */
  --color-success: #4ADE80;
  --color-warning: #FBBF24;
  --color-error: #F87171;
  --color-info: #60A5FA;

  /* Typography */
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Outfit', sans-serif;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 30px var(--color-primary-glow);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* ---- Keyboard focus ring (only shows on keyboard navigation) ---- */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}
.bm-cal-day:focus-visible,
.bm-timeslot:focus-visible {
  outline-offset: 2px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-dark);
  color: var(--color-text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

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

ul,
ol {
  list-style: none;
}

/* ---- Typography ---- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.8rem);
}

.section-badge {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--color-primary);
  background: var(--badge-bg);
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--badge-border);
  margin-bottom: var(--space-lg);
}

.section-title {
  margin-bottom: var(--space-md);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 300;
  max-width: 600px;
  margin: 0 auto;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.9rem 2.2rem;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  position: relative;
  isolation: isolate;          /* new stacking context — prevents gradient artifacts */
  transform: translateZ(0);   /* GPU layer — fixes subpixel gradient seam */
  -webkit-backface-visibility: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255,255,255,0.18) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.btn:hover::after {
  opacity: 1;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: #fff;
  box-shadow: 0 4px 18px -2px var(--color-primary-glow), 0 0 0 1px rgba(255,255,255,0.08) inset;
}

.btn-primary:hover {
  transform: translateY(-2px) translateZ(0);
  box-shadow: 0 8px 28px -4px var(--color-primary-glow), 0 0 0 1px rgba(255,255,255,0.12) inset;
  color: #fff;
}

.btn-primary:active {
  transform: translateY(0) translateZ(0);
  box-shadow: 0 2px 10px -2px var(--color-primary-glow);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--badge-bg);
  color: var(--color-primary);
  border: 1px solid var(--badge-border);
}

.btn-ghost:hover {
  background: var(--color-primary-glow);
}

/* ---- Navigation ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) var(--space-2xl);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all var(--transition-base);
  background: transparent;
}

.navbar.scrolled {
  background: var(--navbar-scrolled-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-md) var(--space-2xl);
  border-bottom: 1px solid var(--navbar-scrolled-border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

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

.nav-logo-text {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-primary);
}

.nav-logo-text span {
  color: var(--color-primary);
}

.nav-links {
  display: flex;
  gap: var(--space-xl);
  align-items: center;
}

.nav-links a {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition-base);
}

.nav-links a:hover {
  color: var(--color-text-primary);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  margin-left: var(--space-lg);
  padding: 0.7rem 1.6rem !important;
  font-size: 0.85rem;
  white-space: nowrap;
  color: #fff !important;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
}

.nav-hamburger span {
  width: 28px;
  height: 2px;
  background: var(--color-text-primary);
  transition: all var(--transition-base);
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ---- Hero Section ---- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: var(--space-4xl) var(--space-2xl);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: var(--hero-overlay);
}

.hero-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-primary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 6s infinite;
}

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }

  10% {
    opacity: 0.6;
  }

  90% {
    opacity: 0.6;
  }

  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 700px;
}

/* Split hero: text left, media card right */
.hero-content.hero-grid {
  max-width: 1140px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: var(--space-3xl);
}

.hero-text {
  min-width: 0;
}

.hero-media {
  position: relative;
  z-index: 1;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--badge-border);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04) inset;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-media-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Gradient fallback shown when the salon has no hero photo */
.hero-media-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.18), transparent 60%),
    linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
}

.hero-media-icon {
  font-size: clamp(4rem, 12vw, 7rem);
  line-height: 1;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.35));
  opacity: 0.92;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
  background: var(--badge-bg);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--badge-border);
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.hero-badge .pulse {
  width: 8px;
  height: 8px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.5);
  }
}

.hero h1 {
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero h1 .highlight {
  color: var(--color-primary);
  position: relative;
}

.hero h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-primary);
  opacity: 0.3;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-2xl);
  max-width: 550px;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero-stats {
  display: flex;
  gap: var(--space-2xl);
  margin-top: var(--space-3xl);
  animation: fadeInUp 0.8s ease-out 1s both;
}

.hero-stat {
  text-align: left;
}

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---- Services Section ---- */
.services {
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
  max-width: 1200px;
  margin: var(--space-3xl) auto 0;
}

.service-card {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: left;
  border: 1px solid var(--badge-border);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-glow);
  box-shadow: var(--shadow-lg), 0 0 20px var(--color-primary-glow);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 60px;
  height: 60px;
  background: var(--badge-bg);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  transition: all var(--transition-base);
}

.service-card:hover .service-icon {
  background: var(--color-primary);
  transform: scale(1.1);
}

.service-card h3 {
  margin-bottom: var(--space-sm);
  font-size: 1.3rem;
}

.service-card p {
  color: var(--color-text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.service-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-md);
  border-top: 1px solid var(--badge-border);
}

.service-price {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 700;
}

.service-duration {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ---- Booking CTA Section ---- */
.booking-cta-section {
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
}

.booking-cta-card {
  max-width: 550px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--badge-bg), transparent);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  cursor: pointer;
  transition: all var(--transition-base);
  text-align: center;
}

.booking-cta-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary-glow);
  box-shadow: var(--shadow-glow);
}

.booking-cta-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.booking-cta-card h3 {
  margin-bottom: var(--space-sm);
}

.booking-cta-card p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
  font-size: 0.95rem;
}

/* ---- Booking Modal ---- */
.booking-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.booking-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.booking-modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  width: 95%;
  max-width: 560px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--badge-border);
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  overflow: hidden;
}

.booking-modal-overlay.active .booking-modal {
  transform: translateY(0) scale(1);
}

.booking-modal-header {
  padding: 1.2rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--badge-border);
  background: linear-gradient(135deg, var(--badge-bg), transparent);
  flex-shrink: 0;
}

.booking-modal-header h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
}

.booking-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--badge-border);
  background: var(--badge-bg);
  color: var(--color-text-secondary);
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.booking-modal-close:hover {
  background: rgba(248, 113, 113, 0.15);
  border-color: rgba(248, 113, 113, 0.3);
  color: #F87171;
}

.booking-modal-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem;
  flex-shrink: 0;
}

.bm-step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  transition: color var(--transition-fast);
}

.bm-step-num {
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 50%;
  border: 2px solid currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.bm-step.active {
  color: var(--color-primary);
}

.bm-step.active .bm-step-num {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
}

.bm-step.completed {
  color: var(--color-success);
}

.bm-step.completed .bm-step-num {
  background: var(--color-success);
  color: var(--color-bg-dark);
  border-color: var(--color-success);
}

.bm-step-line {
  width: 24px;
  height: 2px;
  background: var(--badge-border);
  flex-shrink: 0;
}

.booking-modal-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 1.2rem 1.5rem;
  min-height: 280px;
}

.bm-section {
  display: none;
}

.bm-section.active {
  display: block;
  animation: fadeInUp 0.3s ease-out;
}

.bm-section h4 {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1rem;
  font-weight: 500;
}

.bm-service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.bm-service-card {
  padding: 0.9rem;
  background: var(--color-bg-elevated);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-align: center;
  transition: all var(--transition-fast);
}

.bm-service-card:hover {
  border-color: var(--color-primary-glow);
}

.bm-service-card.selected {
  border-color: var(--color-primary);
  background: var(--badge-bg);
}

.bm-service-icon {
  font-size: 1.5rem;
  margin-bottom: 0.3rem;
}

.bm-service-name {
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--color-text-primary);
}

.bm-service-price {
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.9rem;
}

.bm-service-dur {
  font-size: 0.72rem;
  color: var(--color-text-muted);
}

.bm-calendar {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.bm-cal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
}

.bm-cal-header span {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-transform: capitalize;
}

.bm-cal-nav {
  background: none;
  border: 1px solid var(--badge-border);
  color: var(--color-primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.bm-cal-nav:hover {
  background: var(--badge-bg);
}

.bm-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

.bm-cal-dayname {
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
  padding: 0.4rem 0;
  font-weight: 600;
}

.bm-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  transition: all var(--transition-fast);
  border: none;
  background: none;
  color: var(--color-text-primary);
  font-family: var(--font-body);
}

.bm-cal-day:hover:not(.disabled):not(.empty) {
  background: var(--badge-bg);
}

.bm-cal-day.selected {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  font-weight: 700;
}

.bm-cal-day.today {
  border: 1px solid var(--color-primary);
}

.bm-cal-day.disabled {
  color: var(--color-text-muted);
  opacity: 0.3;
  font-weight: 400;
  cursor: not-allowed;
}

.bm-cal-day.empty {
  cursor: default;
}

.bm-timeslots {
  margin-top: 1rem;
}

.bm-timeslots h4 {
  font-size: 0.85rem;
  margin-bottom: 0.6rem;
}

.bm-timeslots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.bm-timeslot {
  padding: 0.65rem 0.3rem;
  min-height: 44px;
  background: var(--color-bg-card);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 0.82rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
}

.bm-timeslot:hover {
  border-color: var(--color-primary);
}

.bm-timeslot.selected {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  border-color: var(--color-primary);
  font-weight: 600;
}

.bm-timeslot-skeleton {
  background: linear-gradient(90deg, var(--color-bg-card) 25%, rgba(255,255,255,0.06) 50%, var(--color-bg-card) 75%);
  background-size: 200% 100%;
  animation: skeletonShimmer 1.2s ease-in-out infinite;
  pointer-events: none;
  border-color: transparent !important;
  cursor: default;
}

.bm-timeslot.bm-timeslot-taken {
  opacity: 0.35;
  cursor: not-allowed;
  text-decoration: line-through;
  pointer-events: none;
  border-color: rgba(239,68,68,0.3);
  color: #ef4444;
}

@keyframes skeletonShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bm-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}

.bm-form-group {
  margin-bottom: 0.8rem;
}

.bm-form-group label {
  display: block;
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.bm-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--color-bg-elevated);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all var(--transition-fast);
}

.bm-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary-glow);
}

.bm-input::placeholder {
  color: var(--color-text-muted);
}

.bm-recap {
  background: var(--color-bg-elevated);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.bm-recap-row {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--badge-border);
  font-size: 0.88rem;
}

.bm-recap-row span {
  color: var(--color-text-muted);
}

.bm-recap-row strong {
  color: var(--color-text-primary);
  font-weight: 500;
}

.bm-recap-row:last-child {
  border-bottom: none;
}

.bm-recap-total {
  border-top: 2px solid var(--color-primary);
  margin-top: 0.4rem;
  padding-top: 0.8rem;
}

.bm-recap-total span {
  font-weight: 600;
  color: var(--color-text-primary);
}

.bm-recap-total strong {
  font-size: 1.2rem;
  color: var(--color-primary);
  font-family: var(--font-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.booking-modal-footer {
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--badge-border);
  flex-shrink: 0;
}

.booking-modal-footer .btn {
  font-size: 0.85rem;
  padding: 0.7rem 1.5rem;
}

@media (max-width: 480px) {
  .booking-modal {
    width: 100%;
    max-width: 100%;
    /* Use dvh (dynamic viewport height) so keyboard doesn't cover modal on mobile */
    max-height: 100dvh;
    max-height: 100vh; /* fallback */
    height: 100dvh;
    height: 100vh; /* fallback */
    border-radius: 0;
  }

  .bm-step span {
    display: none;
  }

  .bm-service-grid {
    grid-template-columns: 1fr 1fr;
  }

  .bm-timeslots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bm-form-row {
    grid-template-columns: 1fr;
  }
}

/* ---- Gallery Section ---- */
.gallery {
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 250px);
  gap: var(--space-md);
  max-width: 1200px;
  margin: var(--space-3xl) auto 0;
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

.gallery-item:nth-child(1) {
  grid-row: span 2;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

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

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.8), transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: var(--space-lg);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  color: var(--color-primary);
  font-weight: 500;
}

/* ---- Testimonials Section ---- */
.testimonials {
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
  background: linear-gradient(135deg, var(--badge-bg), transparent);
}

.testimonials-grid {
  display: flex;
  gap: var(--space-xl);
  max-width: 1200px;
  margin: var(--space-3xl) auto 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: var(--space-md);
  scrollbar-width: none;
  scroll-behavior: smooth;
  /* added smooth scrolling for JS */
}

.testimonials-grid::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  background: var(--color-bg-card);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1px solid var(--badge-border);
  transition: all var(--transition-base);

  /* Force exactly 3 cards visible with spaces between them */
  min-width: calc(33.333% - (var(--space-xl) * 2 / 3));
  flex-shrink: 0;
  scroll-snap-align: start;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--color-primary);
  font-size: 1rem;
  margin-bottom: var(--space-md);
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  font-style: italic;
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-primary);
}

.testimonial-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ---- Contact / Footer ---- */
.footer {
  padding: var(--space-4xl) var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--badge-border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  max-width: 1200px;
  margin: 0 auto var(--space-3xl);
}

.footer-brand p {
  color: var(--color-text-secondary);
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 0.95rem;
  line-height: 1.7;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--color-bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
  border: 1px solid var(--badge-border);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: var(--color-bg-dark);
  transform: translateY(-2px);
}

.footer-column h4 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--color-primary);
  margin-bottom: var(--space-lg);
}

.footer-column ul li {
  margin-bottom: var(--space-sm);
}

.footer-column ul li a {
  color: var(--color-text-secondary);
  font-size: 0.9rem;
}

.footer-column ul li a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--badge-border);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  align-items: center;
}

.footer-powered {
  font-size: 0.7rem;
  color: var(--color-text-muted);
  opacity: 0.6;
  transition: opacity 0.2s;
  text-decoration: none;
}

.footer-powered:hover {
  opacity: 1;
  color: var(--color-primary);
}

/* ---- Success Modal ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 13, 13, 0.8);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-base);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  max-width: 450px;
  width: 90%;
  border: 1px solid var(--badge-border);
  transform: scale(0.9);
  transition: transform var(--transition-base);
}

.modal-overlay.active .modal {
  transform: scale(1);
}

.modal-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(74, 222, 128, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-xl);
  font-size: 2.5rem;
}

.modal h3 {
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.modal p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 350px;
    height: 100vh;
    background: var(--color-bg-card);
    flex-direction: column;
    padding: 6rem var(--space-2xl) var(--space-2xl);
    transition: right var(--transition-base);
    border-left: 1px solid rgba(201, 169, 110, 0.1);
    z-index: 1000;
  }

  .nav-links.open {
    right: 0;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
    padding: 0.75rem 1.5rem;
    width: 100%;
    justify-content: center;
  }

  .navbar {
    padding: var(--space-md) var(--space-lg);
  }

  .navbar.scrolled {
    padding: var(--space-sm) var(--space-lg);
  }

  /* Hero mobile */
  .hero {
    padding: var(--space-4xl) var(--space-lg) var(--space-2xl);
    min-height: 90vh;
  }

  /* Split hero stacks: text first, image card below */
  .hero-content.hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
    max-width: 560px;
  }

  .hero-media {
    aspect-ratio: 16 / 10;
    max-height: 320px;
  }

  .hero-stats {
    gap: var(--space-lg);
  }

  .hero-stat-number {
    font-size: 1.5rem;
  }

  .hero-description {
    font-size: 1rem;
  }

  /* Sections padding */
  .services,
  .gallery,
  .booking,
  .testimonials,
  .download-app {
    padding: var(--space-3xl) var(--space-lg);
  }

  /* Booking mobile */
  .booking-container {
    border-radius: var(--radius-lg);
  }

  .booking-header {
    padding: var(--space-lg) var(--space-md) var(--space-md);
  }

  .booking-steps {
    gap: var(--space-xs);
    flex-wrap: nowrap;
    justify-content: center;
    padding: 0 var(--space-sm);
  }

  .booking-step-line {
    width: 20px;
  }

  .booking-step-text {
    display: none;
  }

  .booking-form {
    padding: var(--space-lg) var(--space-md);
  }

  .booking-nav {
    padding: var(--space-md);
    gap: var(--space-sm);
  }

  .booking-nav .btn {
    padding: 0.7rem 1.2rem;
    font-size: 0.85rem;
  }

  .service-select-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-sm);
  }

  .service-select-card {
    padding: var(--space-md);
  }

  .service-select-card .service-select-icon {
    font-size: 1.5rem;
  }

  .service-select-card h4 {
    font-size: 0.82rem;
  }

  .calendar-wrapper {
    padding: var(--space-md);
  }

  .calendar-day {
    font-size: 0.8rem;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .time-slot {
    padding: 0.5rem;
    font-size: 0.82rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-input {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .confirmation-card {
    padding: var(--space-md);
  }

  .confirmation-row {
    padding: var(--space-sm) 0;
    font-size: 0.88rem;
  }

  /* Gallery mobile */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .gallery-item:nth-child(1) {
    grid-row: span 1;
    grid-column: span 2;
  }

  /* Testimonials mobile — swipeable CSS carousel, one centered card per view */
  .testimonials-grid {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 16px;
    padding: 8px 20px 20px;
    scroll-padding-inline: 20px;
    scrollbar-width: none;
  }
  .testimonials-grid::-webkit-scrollbar { display: none; }
  .testimonials-grid .testimonial-card {
    /* Card fills the scrollport content box (viewport minus the symmetric 20px
       padding). At rest its centre lands exactly on the scrollport centre — so
       every card, including the first, is perfectly centred. A narrower card
       (e.g. 100% - 40px) cannot centre the first card because that would need a
       negative scroll offset, leaving it stuck against the left edge. */
    flex: 0 0 100%;
    scroll-snap-align: center;
    max-width: none;
  }

  .testimonial-card {
    padding: var(--space-lg);
  }

  /* Download app mobile */
  .download-container {
    flex-direction: column;
    text-align: center;
    padding: var(--space-2xl) var(--space-lg);
  }

  .download-content {
    text-align: center;
  }

  .download-badges {
    justify-content: center;
    flex-wrap: wrap;
  }

  .download-mockup {
    flex: 0 0 auto;
  }

  .phone-mockup {
    width: 160px;
    height: 320px;
    margin: 0 auto;
  }

  /* Footer mobile */
  .footer {
    padding: var(--space-2xl) var(--space-lg) var(--space-lg);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-column h4 {
    font-size: 0.8rem;
    margin-bottom: var(--space-md);
  }

  .footer-column ul li a {
    font-size: 0.85rem;
  }

  /* Services mobile */
  .services-grid {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .service-card {
    padding: var(--space-lg);
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.5rem;
  }

  .hero-stats {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Reduce particle opacity on small screens for performance and readability */
  .hero-particles {
    opacity: 0.4;
  }

  .service-select-grid {
    grid-template-columns: 1fr 1fr;
  }

  .time-slots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item:nth-child(1) {
    grid-column: span 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .section-subtitle {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .service-select-grid {
    grid-template-columns: 1fr;
  }

  .booking-step-number {
    width: 26px;
    height: 26px;
    font-size: 0.75rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Scrollbar ---- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-bg-dark);
}

::-webkit-scrollbar-thumb {
  background: var(--color-bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary-dark);
}

/* ---- Loading Animation ---- */
.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--badge-bg);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---- Download App Section ---- */
.download-app {
  padding: var(--space-4xl) var(--space-2xl);
  text-align: center;
}

.download-container {
  max-width: 900px;
  margin: 0 auto;
  background: linear-gradient(135deg, var(--badge-bg), transparent);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  border: 1px solid var(--badge-border);
  display: flex;
  align-items: center;
  gap: var(--space-3xl);
}

.download-content {
  text-align: left;
  flex: 1;
}

.download-content h2 {
  margin-bottom: var(--space-md);
}

.download-content p {
  color: var(--color-text-secondary);
  margin-bottom: var(--space-xl);
}

.download-badges {
  display: flex;
  gap: var(--space-md);
}

.download-badge {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: var(--color-bg-dark);
  padding: 0.8rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--badge-border);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.download-badge:hover {
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

.download-badge-icon {
  font-size: 1.5rem;
}

.download-badge-text small {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.download-badge-text div {
  font-weight: 600;
  font-size: 0.95rem;
}

.download-mockup {
  flex: 0 0 200px;
}

.phone-mockup {
  width: 200px;
  height: 400px;
  background: var(--color-bg-card);
  border-radius: 30px;
  border: 3px solid var(--badge-border);
  padding: 12px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.phone-notch {
  width: 120px;
  height: 25px;
  background: var(--color-bg-dark);
  border-radius: 0 0 15px 15px;
  margin: 0 auto;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* ============================================
   MOBILE STICKY FAB (bottom-right)
   ============================================ */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  right: 20px;
  z-index: 9990;
  pointer-events: none;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.mobile-sticky-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.mobile-sticky-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  /* pointer-events intentionally removed — inherits none from parent when FAB is hidden */
  font-size: 0.9rem;
  font-weight: 700;
  padding: 14px 22px;
  min-height: 54px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  box-shadow: 0 6px 28px var(--color-primary-glow), 0 2px 8px rgba(0,0,0,0.35);
  white-space: nowrap;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.mobile-sticky-btn:active {
  transform: scale(0.95);
}

@keyframes mobileBtnPulse {
  0%, 100% { box-shadow: 0 6px 28px var(--color-primary-glow), 0 2px 8px rgba(0,0,0,0.35); }
  50% { box-shadow: 0 8px 36px var(--color-primary-glow), 0 2px 8px rgba(0,0,0,0.4); }
}

.mobile-sticky-cta.visible .mobile-sticky-btn {
  animation: mobileBtnPulse 2.5s ease-in-out 0.5s 3;
}

@media (max-width: 768px) {
  .mobile-sticky-cta {
    display: flex;
  }
}

/* ============================================
   TEAM SECTION
   ============================================ */
.team {
  padding: var(--space-4xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-xl);
  margin-top: var(--space-2xl);
}

.team-card {
  background: var(--color-bg-card);
  border: 1px solid var(--badge-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 8px 32px rgba(99, 102, 241, 0.12);
}

.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  overflow: hidden;
  border: 2px solid rgba(99, 102, 241, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-primary-dark));
  color: var(--color-bg-dark);
  font-weight: 700;
  font-family: var(--font-heading);
}

.team-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text-primary);
}

.team-specialties {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.team-specialty-tag {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--color-primary-light);
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  margin: 2px;
}

/* ============================================
   GOOGLE MAPS EMBED
   ============================================ */
.map-section {
  padding: var(--space-4xl) var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.map-embed {
  width: 100%;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--badge-border);
  margin-top: var(--space-xl);
}

.map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: var(--map-filter, grayscale(0.2) invert(0.9) hue-rotate(180deg));
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }
  .map-embed {
    height: 240px;
  }
}

/* ============================================
   SERVICE CARD — QUICK BOOK BUTTON
   ============================================ */
.service-book-btn {
  margin-top: 1rem;
  padding: 0.5rem 1.1rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s, transform 0.2s;
  align-self: flex-start;
  pointer-events: none;
}

.service-card:hover .service-book-btn {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all;
}

/* Always show on touch devices */
@media (hover: none) {
  .service-book-btn {
    opacity: 1;
    transform: none;
    pointer-events: all;
  }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
#scrollTopBtn {
  position: fixed;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 20px;
  z-index: 9980;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-bg-card);
  border: 1px solid var(--badge-border);
  color: var(--color-text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

#scrollTopBtn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#scrollTopBtn:hover {
  background: rgba(99, 102, 241, 0.2);
  border-color: rgba(99, 102, 241, 0.4);
  color: var(--color-primary-light);
}

/* ============================================
   BOOKING MODAL — IMPROVED SERVICE CARD
   ============================================ */
.bm-service-card {
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.bm-service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.bm-service-card.selected {
  border-color: var(--color-primary) !important;
  background: rgba(99,102,241,0.08) !important;
  box-shadow: 0 0 0 2px rgba(99,102,241,0.2);
}

/* ============================================
   MOBILE BOOKING MODAL — full screen slide-up
   ============================================ */
@media (max-width: 600px) {
  /* Full-screen overlay on mobile */
  .booking-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  /* Modal fills the entire screen — no gap at the top */
  .booking-modal {
    width: 100%;
    max-width: 100%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  }

  .booking-modal-overlay.active .booking-modal {
    transform: translateY(0);
  }

  .bm-timeslots-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* 5 étapes ne tiennent pas sur 390px : défilement horizontal au lieu d'être coupées à gauche */
  .booking-modal-steps {
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .booking-modal-steps::-webkit-scrollbar { display: none; }
  /* Centred when the steps fit, still scrollable when they don't
     (justify-content:center would clip the first step on overflow). */
  .booking-modal-steps > :first-child { margin-left: auto; }
  .booking-modal-steps > :last-child { margin-right: auto; }

  /* Bigger tap targets for service/employee cards */
  .bm-service-card {
    min-height: 80px;
    padding: 14px 10px;
  }

  /* Bigger footer buttons */
  .booking-modal-footer .btn {
    min-height: 48px;
    font-size: 1rem;
  }

  /* Hide floating buttons when modal is open (prevents tap interception) */
  .booking-modal-overlay.active ~ #scrollTopBtn,
  .booking-modal-overlay.active ~ .mobile-sticky-cta {
    display: none !important;
  }
}

/* ============================================
   SECTION HEADERS — REFINED SPACING
   ============================================ */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-lg);
}

.section-title {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

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

/* ============================================
   BM FORM — IMPROVED INPUT FOCUS
   ============================================ */
.bm-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.15);
}

/* ============================================
   TOAST — REFINED
   ============================================ */
.toast {
  border-radius: var(--radius-lg) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* ============================================
   BOOKING CTA CARD — REDESIGNED ELEMENTS
   ============================================ */
.bcc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.bcc-icon {
  font-size: 2.5rem;
}

.bcc-badge {
  background: rgba(99, 102, 241, 0.15);
  color: var(--color-primary);
  padding: 0.3rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.bcc-features {
  display: none;
}

/* ============================================
   TESTIMONIALS DOTS INDICATOR
   ============================================ */
.testimonials-dots {
  display: none; /* shown by JS on mobile */
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
}
.testimonials-dots .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-text-secondary, rgba(255,255,255,.2));
  transition: all .2s;
  cursor: pointer;
}
.testimonials-dots .dot.active {
  width: 20px;
  border-radius: 3px;
  background: var(--color-primary, #B8952A);
}
@media (max-width: 768px) {
  .testimonials-dots { display: flex; }
}

.bcc-btn {
  margin-top: 0.5rem;
  width: 100%;
  justify-content: center;
}

/* ============================================
   2026 POLISH
   ============================================ */

/* Smooth page load */
body {
  animation: pageFadeIn 0.4s ease-out;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Better section spacing on mobile */
@media (max-width: 640px) {
  section { padding: 3rem 1.25rem; }
  .services-grid { grid-template-columns: 1fr; gap: 1rem; }
  .section-title { font-size: 1.6rem; }
  /* Testimonials: keep carousel on small screens — dots handle navigation */
  .testimonials-grid {
    display: flex !important;
    flex-direction: row !important;
    overflow-x: auto !important;
    scroll-snap-type: x mandatory !important;
    gap: 16px;
    padding: 8px 20px 20px !important;
    scroll-padding-inline: 20px;
  }
  /* Booking CTA card — mobile-first clean layout */
  .booking-cta-section { padding: 40px 16px; }
  .booking-cta-card {
    padding: 28px 20px 24px;
    border-radius: 20px;
  }
  .bcc-icon { font-size: 2rem; margin-bottom: 8px; }
  .bcc-top { margin-bottom: 12px; }
  .booking-cta-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
  .booking-cta-card p { font-size: 0.9rem; margin-bottom: 20px; }
  .bcc-btn { width: 100%; padding: 14px; font-size: 1rem; }
}

/* Testimonial cards — large decorative quote */
.testimonial-card {
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -0.5rem;
  left: 0.75rem;
  font-size: 5rem;
  font-family: var(--font-heading);
  color: var(--color-primary);
  opacity: 0.12;
  line-height: 1;
  pointer-events: none;
}

/* Better scroll reveal (complements existing .reveal/.active) */
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  cursor: zoom-out;
}

.lightbox.active {
  opacity: 1;
  pointer-events: all;
}

.lightbox img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 8px;
  transform: scale(0.95);
  transition: transform 0.25s;
  box-shadow: 0 20px 60px rgba(0,0,0,0.8);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}

/* ============================================
   BOOKING MODAL — STEP TRANSITIONS
   ============================================ */
.bm-section.active {
  animation: stepIn 0.25s ease-out;
}

@keyframes stepIn {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Completed step connector line fills with success color */
.bm-step.completed + .bm-step-line {
  background: var(--color-success);
}

/* Time slots — improved visual states */
.bm-timeslot {
  position: relative;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.bm-slot-group {
  grid-column: 1 / -1;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-muted);
  margin: 0.6rem 0 0.1rem;
}
.bm-slot-group:first-child { margin-top: 0; }

.bm-timeslot:hover:not(.bm-timeslot-skeleton):not(.bm-timeslot-taken) {
  border-color: var(--color-primary);
  color: var(--color-primary);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,102,241,0.2);
}

.bm-timeslot.selected {
  background: var(--color-primary) !important;
  color: #fff !important;
  border-color: var(--color-primary) !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(99,102,241,0.35);
  transform: translateY(-1px);
}

/* Calendar day — today indicator dot */
.bm-cal-day.today {
  position: relative;
  font-weight: 700;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.bm-cal-day.today::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-primary);
}

/* Calendar — selected day */
.bm-cal-day.selected {
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}

.bm-cal-day.selected::after {
  display: none;
}

/* Calendar — disabled / past days */
.bm-cal-day.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  filter: grayscale(1);
}

/* ============================================
   BOOKING SUCCESS — ANIMATED ICON
   ============================================ */
.bm-success-icon {
  font-size: 3.5rem;
  display: block;
  animation: successBounce 0.6s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
  margin-bottom: 1rem;
}

@keyframes successBounce {
  0%   { transform: scale(0); opacity: 0; }
  50%  { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   SKELETON LOADING
   ============================================ */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-card) 25%,
    var(--color-bg-elevated) 50%,
    var(--color-bg-card) 75%
  );
  background-size: 200% 100%;
  animation: skeletonShimmer 1.5s infinite;
  border-radius: var(--radius-sm);
  color: transparent !important;
  pointer-events: none;
}

@keyframes skeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Embed mode (/s/:slug?embed=1, opened by /embed.js) ----
   Only the booking modal is visible; the client's own page shows through
   the transparent iframe, dimmed by embed.js. */
html.kreno-embed,
html.kreno-embed body { background: transparent !important; }
html.kreno-embed body > *:not(#bookingModal) { display: none !important; }
html.kreno-embed .booking-modal-overlay {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
