/* Expert Dental Care - Custom Design System & Responsive Styles */

:root {
  --primary-purple: #87207D;
  --primary-purple-dark: #6A1662;
  --primary-purple-light: #F7EAF5;
  --primary-blue: #2C4F9B;
  --primary-blue-dark: #1E366E;
  --primary-blue-light: #EEF3FF;
  --brand-cyan: #06B6D4;
  --brand-green: #10B981;
  --brand-amber: #F59E0B;
  --brand-coral: #EF4444;
  --text-main: #0F172A;
  --text-muted: #64748B;
  --surface-white: #FFFFFF;
  --surface-alt: #F8FAFC;
  --surface-border: #E2E8F0;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
}

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

html {
  scroll-behavior: smooth;
  -webkit-tap-highlight-color: transparent;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--surface-alt);
}

body {
  overflow-x: hidden;
  line-height: 1.6;
}

/* Material Symbols Rendering */
.material-symbols-outlined {
  font-family: 'Material Symbols Outlined';
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  vertical-align: middle;
}

/* Brand Gradient Utilities */
.brand-gradient {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
}

.brand-gradient-text {
  background: linear-gradient(135deg, var(--primary-purple) 0%, var(--primary-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive Before / After Slider Styles */
.ba-container {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  user-select: none;
  background: #F1F5F9;
}

.ba-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
}

.ba-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.ba-after-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  transition: clip-path 0.05s linear;
}

.ba-slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: #FFFFFF;
  transform: translateX(-50%);
  cursor: ew-resize;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.ba-slider-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface-white);
  border: 3px solid var(--primary-blue);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 16px;
  font-weight: bold;
}

.ba-range-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

/* Mobile Sticky Bottom Floating Action Bar & App Dock (Stitch Inspiration) */
.mobile-bottom-bar, .mobile-bottom-dock {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
}

.mobile-bottom-dock {
  padding: 0.35rem 0.5rem calc(0.35rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: space-around;
}

@media (min-width: 1024px) {
  .mobile-bottom-bar, .mobile-bottom-dock {
    display: none !important;
  }
}

/* Safe area for mobile scrolling */
@media (max-width: 1023px) {
  body {
    padding-bottom: 76px;
  }
}

/* Mobile-first Form & Touch Ergonomics */
@media (max-width: 640px) {
  /* Prevent iOS Safari camera zoom on input focus */
  input[type="text"],
  input[type="tel"],
  input[type="date"],
  input[type="number"],
  input[type="email"],
  select,
  textarea {
    font-size: 16px !important;
  }
  
  /* Compact touch padding on bottom bar */
  .mobile-bottom-bar a {
    min-height: 40px;
  }
}

/* Touch-optimized smooth momentum scrolling */
.touch-scroll,
.overflow-x-auto {
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

/* Modal styling */
.modal-overlay {
  background-color: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hide scrollbars on chips */
.scrollbar-none::-webkit-scrollbar {
  display: none;
}
.scrollbar-none {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

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

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Infinite Scrolling Insurance Logo Marquee */
@keyframes marquee-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

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

.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll 35s linear infinite;
  will-change: transform;
}

.marquee-track-reverse {
  display: flex;
  gap: 1.25rem;
  width: max-content;
  animation: marquee-scroll-reverse 40s linear infinite;
  will-change: transform;
}

.marquee-track:hover,
.marquee-track-reverse:hover {
  animation-play-state: paused;
}

/* Top Announcement Bar Marquee Ticker */
@keyframes top-ticker-scroll {
  0% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-50%);
  }
}

.top-ticker-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  width: 100%;
  mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 2.5%, black 97.5%, transparent 100%);
}

.top-ticker-track {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: max-content;
  animation: top-ticker-scroll 45s linear infinite;
  will-change: transform;
}

.top-ticker-track:hover {
  animation-play-state: paused;
}

