/* China Healthcare Global (china-healthcare.org) - Peaceful Patient Sanctuary & iPhone-First Stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;600;700&display=swap');

:root {
  --primary-navy: #0F2942;
  --secondary-teal: #0D8A7C;
  --teal-light: #F2F9F8;
  --healing-sage: #EAF4F2;
  --warm-ivory: #FAF9F6;
  --accent-gold: #C87D20;
  --neutral-bg: #F6F9F8;
  --text-dark: #1E293B;
  --text-muted: #52637A;
  --border-color: #E2ECE9;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 88px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: #FFFFFF;
  overflow-x: hidden;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* RTL Layout for Arabic */
html[dir="rtl"] {
  font-family: 'Noto Sans Arabic', 'Plus Jakarta Sans', sans-serif;
}
html[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}
html[dir="rtl"] .rtl-text-right {
  text-align: right;
}

/* Peaceful Sanctuary Gradient Backgrounds */
.hero-gradient {
  background: radial-gradient(circle at 85% 12%, rgba(13, 138, 124, 0.09) 0%, transparent 55%),
              radial-gradient(circle at 12% 88%, rgba(15, 41, 66, 0.05) 0%, transparent 50%),
              linear-gradient(180deg, #F4FAF8 0%, #FFFFFF 100%);
}

.sanctuary-section-bg {
  background: linear-gradient(180deg, #F5FAF8 0%, #FFFFFF 100%);
}

.card-hover-effect {
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.28s ease;
}
.card-hover-effect:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 36px -10px rgba(15, 41, 66, 0.08), 0 8px 16px -6px rgba(13, 138, 124, 0.05);
}

/* Gentle Breathing Status Dot */
@keyframes soft-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.55; transform: scale(0.92); }
}
.pulse-dot {
  animation: soft-pulse 2.8s infinite ease-in-out;
}

/* Custom Subtle Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #F4F7F6;
}
::-webkit-scrollbar-thumb {
  background: #CBDAD6;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94B0A9;
}

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

/* Modal Backdrop */
.modal-backdrop {
  background-color: rgba(15, 41, 66, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* iPhone & Mobile Ergonomics (iOS Safari Zoom Prevention & Safe Area) */
@media (max-width: 1023px) {
  body {
    padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  select,
  textarea {
    font-size: 16px !important; /* Prevents jarring iOS Safari auto-zoom on focus */
  }

  .mobile-card-compact {
    padding: 1.25rem !important;
  }
}

/* Safe area padding for iPhone notch / home indicator */
.pb-safe {
  padding-bottom: max(0.75rem, env(safe-area-inset-bottom, 0.75rem));
}
