/* ==========================================================================
   Revital Ortho & Neuro Physiotherapy Centre - Custom Stylesheet
   Modern, Medically Credible, Accessible & High Performance
   ========================================================================== */

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

:root {
  /* Color Palette */
  --primary-50: #f0f7ff;
  --primary-100: #e0effe;
  --primary-200: #bae0fd;
  --primary-300: #7cc5fb;
  --primary-400: #38a5f7;
  --primary-500: #0ea5e9;
  --primary-600: #0284c7;
  --primary-700: #0369a1;
  --primary-800: #075985;
  --primary-900: #0c4a6e;
  --primary-950: #082f49;

  --navy-900: #0f172a;
  --navy-800: #1e293b;
  --navy-700: #334155;

  --accent-red: #e11d48;
  --accent-red-light: #ffe4e6;
  --accent-emerald: #059669;

  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-subtle: #f1f5f9;

  --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-hindi: 'Noto Sans Devanagari', 'Inter', sans-serif;
}

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  color: #1e293b;
  background-color: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.font-hindi {
  font-family: var(--font-hindi);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  letter-spacing: -0.02em;
}

body.font-hindi h1,
body.font-hindi h2,
body.font-hindi h3,
body.font-hindi h4,
body.font-hindi h5,
body.font-hindi h6 {
  font-family: var(--font-hindi);
  letter-spacing: normal;
}

/* Subtle Medical Gradient Accents */
.hero-gradient {
  background: radial-gradient(circle at 80% 20%, rgba(14, 165, 233, 0.08) 0%, rgba(240, 247, 255, 0.6) 50%, rgba(255, 255, 255, 1) 100%);
}

.medical-subtle-bg {
  background: linear-gradient(180deg, #f8fafc 0%, #f0f7ff 100%);
}

.badge-pulse {
  position: relative;
}
.badge-pulse::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  background: currentColor;
  opacity: 0.25;
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 0.2; }
  100% { transform: scale(1.25); opacity: 0; }
}

/* WhatsApp Floating Button Pulse */
.wa-float-btn {
  box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4), 0 8px 10px -6px rgba(37, 211, 102, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.wa-float-btn:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 16px 30px -5px rgba(37, 211, 102, 0.5), 0 10px 12px -6px rgba(37, 211, 102, 0.3);
}

/* Medical Cards & Hover Elevations */
.medical-card {
  background-color: var(--bg-card);
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  transition: all 0.25s ease;
}
.medical-card:hover {
  border-color: var(--primary-300);
  transform: translateY(-3px);
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08);
}

/* Section Anchor Offset for Fixed Header */
section[id] {
  scroll-margin-top: 5.5rem;
}

/* Custom Scroll Animation */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Focus Visible for Accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary-600);
  outline-offset: 2px;
}

/* Responsive Doctor Photo Frame */
.doctor-photo-frame {
  position: relative;
  background: linear-gradient(135deg, #e0effe 0%, #f1f5f9 100%);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.12);
}

.doctor-photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  transition: transform 0.5s ease;
}

.doctor-photo-frame:hover img {
  transform: scale(1.02);
}

/* Custom Scrollbar for clean aesthetics */
::-webkit-scrollbar {
  width: 10px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Mobile UX & Touch Optimization */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Prevent auto-zoom on iOS when tapping inputs */
@media (max-width: 768px) {
  input, select, textarea {
    font-size: 16px !important;
  }
}

/* Hide scrollbar for horizontal mobile pill carousels */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Mobile Bottom Action Bar Safe Area Padding */
.mobile-safe-bottom,
.safe-bottom {
  padding-bottom: max(0.625rem, env(safe-area-inset-bottom, 0.625rem));
}

/* Mobile touch targets */
.touch-target-min {
  min-height: 44px;
  min-width: 44px;
}

/* Smooth video player styling */
video {
  border-radius: inherit;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
