/* ============================================================
   MOVE TO WALK — PREMIUM EXPERIENCE LAYER
   Enhances the whole site with micro-animations, smooth
   transitions, scroll-reveals, and a polished feel.
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── Smooth Scroll ────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── Page Loader ──────────────────────────────────────────── */
#ymw-loader {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#ymw-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ymw-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.ymw-loader-logo {
  width: 140px;
  animation: loaderPulse 1.4s ease-in-out infinite;
}

.ymw-loader-bar {
  width: 200px;
  height: 3px;
  background: #e8ecf4;
  border-radius: 999px;
  overflow: hidden;
}

.ymw-loader-bar::after {
  content: '';
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  animation: loaderProgress 1.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loaderProgress {
  0%   { width: 0; }
  60%  { width: 75%; }
  100% { width: 100%; }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 1;   transform: scale(1); }
  50%       { opacity: 0.7; transform: scale(0.97); }
}

/* ── Scroll Progress Bar ──────────────────────────────────── */
#ymw-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2), var(--brand));
  background-size: 200% 100%;
  z-index: 99998;
  border-radius: 0 2px 2px 0;
  transition: width 0.1s linear;
  animation: progressShimmer 3s linear infinite;
}

@keyframes progressShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Scroll-Reveal Animations ─────────────────────────────── */
.ymw-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.ymw-reveal.ymw-reveal--left {
  transform: translateX(-32px);
}

.ymw-reveal.ymw-reveal--right {
  transform: translateX(32px);
}

.ymw-reveal.ymw-reveal--scale {
  transform: scale(0.94);
}

.ymw-reveal.visible {
  opacity: 1;
  transform: none;
}

/* Staggered children */
.ymw-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ymw-stagger.visible > *:nth-child(1)  { transition-delay: 0.05s; }
.ymw-stagger.visible > *:nth-child(2)  { transition-delay: 0.12s; }
.ymw-stagger.visible > *:nth-child(3)  { transition-delay: 0.19s; }
.ymw-stagger.visible > *:nth-child(4)  { transition-delay: 0.26s; }
.ymw-stagger.visible > *:nth-child(5)  { transition-delay: 0.33s; }
.ymw-stagger.visible > *:nth-child(n+6){ transition-delay: 0.40s; }

.ymw-stagger.visible > * {
  opacity: 1;
  transform: none;
}

/* ── Navigation Polish ────────────────────────────────────── */
#header-id {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#header-id.scrolled .page-header {
  box-shadow: 0 8px 32px rgba(17, 24, 39, 0.1);
}

/* Nav link hover underline animation */
.page-header .top-menu > li > a {
  position: relative;
}

/* ── Button Enhancements ──────────────────────────────────── */
.page-header .top-menu > li.has-contact > a {
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
}

.page-header .top-menu > li.has-contact > a:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 14px 28px rgba(11, 78, 162, 0.32) !important;
}

/* ── Hero Section Enhancement ─────────────────────────────── */
#home-wiki-slider .home-slider-text h1 {
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.3s;
}

#home-wiki-slider .home-slider-text a {
  animation: heroFadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.55s;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Card Hover Depth ─────────────────────────────────────── */
.home-recovery-item,
.conditions-item,
.advanced-technology-item,
.about-recovery-item,
.vision-item,
.real-patients-item,
.quick-contact-card,
.centrebox,
.blog-blockquote li {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.35s cubic-bezier(0.22, 1, 0.36, 1) !important;
  will-change: transform;
}

.home-recovery-item:hover,
.conditions-item:hover,
.advanced-technology-item:hover,
.about-recovery-item:hover,
.vision-item:hover,
.real-patients-item:hover,
.quick-contact-card:hover,
.centrebox:hover,
.blog-blockquote li:hover {
  transform: translateY(-6px) !important;
  box-shadow: 0 20px 48px rgba(17, 24, 39, 0.12) !important;
}

/* ── Image Loading Shimmer ────────────────────────────────── */
img[loading="lazy"] {
  background: linear-gradient(90deg, #f0f4f8 25%, #e2e8f0 50%, #f0f4f8 75%);
  background-size: 200% 100%;
}

img[loading="lazy"].loaded {
  background: none;
  animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Section Headings — Gradient Accent ───────────────────── */
#home-techniques-section h5,
#about-recovery-section h5,
#about-vision-section h5,
#about-partner-section h5,
#home-conditions-section h5 {
  letter-spacing: 2px;
  font-size: 11px !important;
  font-weight: 700;
}

/* ── Smooth Link Transitions (site-wide) ─────────────────── */
a {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* ── WhatsApp Floating Button ─────────────────────────────── */
.whatsapp-float {
  animation: waBounce 2.5s ease-in-out 3s 3;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease !important;
}

.whatsapp-float:hover {
  transform: scale(1.15) !important;
}

@keyframes waBounce {
  0%, 100% { transform: scale(1); }
  40%       { transform: scale(1.12); }
  60%       { transform: scale(0.96); }
}

/* ── Stats / Counter Section ──────────────────────────────── */
.ymw-counter {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Section Divider ──────────────────────────────────────── */
.ymw-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 999px;
  margin: 0 auto 28px;
}

/* ── Focus Ring (accessibility) ───────────────────────────── */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Scroll-to-top Button ─────────────────────────────────── */
#ymw-scroll-top {
  position: fixed;
  bottom: 100px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #dce7ef;
  box-shadow: 0 4px 16px rgba(17, 24, 39, 0.1);
  color: var(--brand);
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9990;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.3s ease, visibility 0.3s ease,
              transform 0.3s ease, box-shadow 0.3s ease,
              background 0.2s ease;
}

#ymw-scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#ymw-scroll-top:hover {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 78, 162, 0.28);
}

/* ── Mobile Responsive ────────────────────────────────────── */
@media (max-width: 880px) {
  #ymw-scroll-top {
    bottom: 84px;
    right: 16px;
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .ymw-reveal,
  .ymw-stagger > * {
    transition-duration: 0.5s;
  }
}

/* ── Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .ymw-reveal,
  .ymw-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ============================================================
   2026 PREMIUM VISUAL REFRESH OVERRIDES
   ============================================================ */

/* ── Global Typography & Backgrounds ──────────────────────── */
body, button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: #F8FAFC !important; /* Soft premium off-white */
}

/* ── Modern Gradient Headings ─────────────────────────────── */
h1, h2, .home-recovery-left h2, .footer-reach-now-left h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
}

h2, .home-recovery-left h2, #home-personalized-section h2, #home-techniques-section h2, #about-vision-section h2, #meet-team-section h2 {
  background: linear-gradient(135deg, #0F172A 20%, #05B0C3 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  line-height: 1.25 !important;
}

/* ── Premium Card & Block Styling (Frosted Glass) ────────── */
.conditions-item,
.advanced-technology-item,
.about-recovery-item,
.vision-item,
.real-patients-item,
.quick-contact-card,
.centrebox,
.dropdown-content-navbox,
.dropdown-patient-box {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(5, 176, 195, 0.14) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              background-color 0.3s ease !important;
  will-change: transform, box-shadow;
}

/* Card Hover Animations & Color Accent Glows */
.conditions-item:hover,
.advanced-technology-item:hover,
.about-recovery-item:hover,
.vision-item:hover,
.real-patients-item:hover,
.quick-contact-card:hover,
.centrebox:hover,
.dropdown-content-navbox:hover {
  transform: translateY(-6px) translateZ(0) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  border-color: rgba(5, 176, 195, 0.45) !important;
  box-shadow: 0 20px 40px -12px rgba(5, 176, 195, 0.3) !important;
}

/* ── Redesigned Recovery Section Cards ──────────────────── */

/* Disable background color blocks and show layout images */
.home-recovery-item::before {
  content: none !important;
  display: none !important;
}

.home-recovery-item {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px !important;
  min-height: 440px !important;
  background: #000 !important; /* Base black under image */
  border: 1px solid rgba(5, 176, 195, 0.15) !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.08) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease !important;
}

.home-recovery-item .recovery-img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  z-index: 1 !important;
  transform: scale(1.01) !important;
  filter: blur(4px) brightness(0.55) !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* Beautiful dark gradient overlay for text readability */
.home-recovery-item::after {
  content: "" !important;
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 35%, rgba(15, 23, 42, 0.95) 100%) !important;
  z-index: 2 !important;
  transition: opacity 0.4s ease !important;
}

/* Hover effects */
.home-recovery-item:hover {
  transform: translateY(-6px) translateZ(0) !important;
  border-color: rgba(5, 176, 195, 0.45) !important;
  box-shadow: 0 20px 40px -12px rgba(5, 176, 195, 0.35) !important;
}

.home-recovery-item:hover .recovery-img {
  transform: scale(1.08) !important;
  filter: blur(1.5px) brightness(0.45) !important;
}

/* Text overlay box positioned at the bottom */
.home-recovery-doc {
  position: absolute !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  top: auto !important;
  padding: 30px !important;
  z-index: 3 !important;
  background: none !important;
  border: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  inset: auto 0 0 0 !important;
  width: 100% !important;
}

/* Vibrant teal heading overlay text */
.home-recovery-doc h3 {
  color: #2DD4BF !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 800 !important;
  font-size: 24px !important;
  line-height: 1.2 !important;
  margin: 0 0 10px 0 !important;
  letter-spacing: -0.01em !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
  width: 100% !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important;
}

/* White paragraph overlay text with excellent contrast */
.home-recovery-doc p {
  color: rgba(255, 255, 255, 0.9) !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  width: 100% !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6) !important;
}

/* ── Interactive CTAs & Buttons ─────────────────────────── */
.home-slider-text a,
.footer-reach-now-left a,
#footer-reach-now-btn,
.head-right-button a,
.page-header .top-menu > li.has-contact > a {
  background: linear-gradient(135deg, #05B0C3, #2DD4BF) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 999px !important; /* Premium rounded pill shape */
  border: none !important;
  padding: 14px 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  box-shadow: 0 10px 25px -8px rgba(5, 176, 195, 0.4) !important;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.25s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.25s ease !important;
}

.home-slider-text a::before {
  display: none !important; /* Remove static background image */
}

.home-slider-text a:hover,
.footer-reach-now-left a:hover,
#footer-reach-now-btn:hover,
.head-right-button a:hover,
.page-header .top-menu > li.has-contact > a:hover {
  transform: translateY(-2px) translateZ(0) !important;
  filter: brightness(1.05) !important;
  box-shadow: 0 16px 32px -6px rgba(5, 176, 195, 0.65) !important;
}

/* ── Glassmorphism Navigation Bar ────────────────────────── */
.page-header {
  background: rgba(255, 255, 255, 0.8) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1px solid rgba(255, 255, 255, 0.6) !important;
  box-shadow: 0 8px 32px -10px rgba(15, 23, 42, 0.06) !important;
  border-radius: 14px !important;
  margin: 10px auto !important;
  width: calc(100% - 32px) !important;
  max-width: 1240px !important;
  transition: all 0.3s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.sticky .page-header {
  background: rgba(255, 255, 255, 0.93) !important;
  border-color: rgba(5, 176, 195, 0.12) !important;
  box-shadow: 0 16px 40px -12px rgba(15, 23, 42, 0.1) !important;
}

/* ── Premium Scrollbar styling ───────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #F1F5F9;
}

::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
  background: #05B0C3;
}

/* ── Footer Subtle Polish ────────────────────────────────── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 -20px 48px -20px rgba(5, 176, 195, 0.12) !important;
}

/* ============================================================
   2026 CONDITIONS CAROUSEL SLIDER REDESIGN
   ============================================================ */

.conditions-item {
  background: #ffffff !important;
  border: 1px solid rgba(5, 176, 195, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px -10px rgba(15, 23, 42, 0.05) !important;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  min-height: 570px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.conditions-item:hover {
  transform: translateY(-8px) !important;
  border-color: rgba(5, 176, 195, 0.3) !important;
  box-shadow: 0 20px 40px -12px rgba(5, 176, 195, 0.25) !important;
}

.conditions-img {
  width: 100% !important;
  height: 240px !important;
  position: relative !important;
  overflow: hidden !important;
  border-radius: 20px 20px 0 0 !important;
}

.conditions-img img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 20px 20px 0 0 !important;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

.conditions-item:hover .conditions-img img {
  transform: scale(1.06) !important;
}

.conditions-item-doc {
  padding: 32px 28px !important;
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.conditions-item-doc h3 {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 700 !important;
  font-size: 21px !important;
  line-height: 1.3 !important;
  color: #0F172A !important;
  height: auto !important;
  min-height: 56px !important;
  margin: 0 0 12px 0 !important;
  padding: 0 !important;
}

.conditions-item-doc p {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-weight: 400 !important;
  font-size: 14.5px !important;
  line-height: 1.6 !important;
  color: #475569 !important;
  height: auto !important;
  min-height: 135px !important;
  margin-bottom: 24px !important;
  padding: 0 !important;
}

.conditions-item-doc a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  background: transparent !important;
  color: #05B0C3 !important;
  border: 1.5px solid #05B0C3 !important;
  border-radius: 99px !important;
  padding: 10px 24px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
  text-transform: none !important;
  width: max-content !important;
  height: auto !important;
  margin: 0 !important;
  box-shadow: none !important;
}

.conditions-item-doc a::before {
  display: none !important;
}

.conditions-item-doc a:hover {
  background: #05B0C3 !important;
  color: #ffffff !important;
  border-color: #05B0C3 !important;
  box-shadow: 0 8px 20px -6px rgba(5, 176, 195, 0.4) !important;
  transform: translateY(-2px) !important;
}

/* ── Owl Carousel Navigation Overlap Fixes ────────────────── */
.owl-carousel {
  position: relative !important;
}

.owl-carousel .owl-nav {
  position: absolute !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 100% !important;
  display: flex !important;
  justify-content: space-between !important;
  pointer-events: none !important;
  z-index: 10 !important;
}

.owl-carousel .owl-nav button {
  pointer-events: auto !important;
}

.owl-carousel .owl-nav button.owl-prev {
  position: absolute !important;
  left: -54px !important;
}

.owl-carousel .owl-nav button.owl-next {
  position: absolute !important;
  right: -54px !important;
}

.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(5, 176, 195, 0.18) !important;
  color: #05B0C3 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  transition: all 0.25s cubic-bezier(0.22, 1, 0.36, 1) !important;
  margin: 0 !important;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
  background: #05B0C3 !important;
  color: #ffffff !important;
  border-color: #05B0C3 !important;
  box-shadow: 0 8px 20px -6px rgba(5, 176, 195, 0.4) !important;
  transform: translateY(-2px) scale(1.05) !important;
}

@media (max-width: 1200px) {
  .owl-carousel .owl-nav {
    position: static !important;
    transform: none !important;
    display: flex !important;
    justify-content: center !important;
    gap: 16px !important;
    margin-top: 30px !important;
  }
  .owl-carousel .owl-nav button.owl-prev,
  .owl-carousel .owl-nav button.owl-next {
    position: static !important;
  }
}
