/* ==========================================================================
   HUMAN MOTION REHABILITATION CENTER (HMRC)
   EXACT 1:1 REPLICA STYLESHEET OF COREHEAL TEMPLATE
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Public+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --e-global-color-primary: #6EC1E4;
  --e-global-color-secondary: #282826;
  --e-global-color-text: #555555;
  --e-global-color-accent: #FF981F;
  --e-global-color-1e622a1: #2A7465;
  --e-global-color-212fe2b: #F8F9FE;
  --e-global-color-white: #FFFFFF;
  --e-global-color-dark: #1F2937;
  
  --primary: #2A7465;
  --secondary: #282826;
  --accent: #FF981F;
  --accent-hover: #e68516;
  --text-color: #555555;
  --bg-light: #F8F9FE;
  --bg-white: #FFFFFF;
  
  --font-heading: 'Inter', sans-serif;
  --font-body: 'Public Sans', sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--text-color);
  background-color: var(--bg-white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .heading-font {
  font-family: var(--font-heading);
  color: var(--secondary);
  font-weight: 700;
  line-height: 1.25;
}

/* ----------------------------------------------------
   TOP BAR (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-topbar {
  background-color: var(--primary);
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
}

.coreheal-topbar a {
  color: #ffffff;
  transition: var(--transition);
}

.coreheal-topbar a:hover {
  color: var(--accent);
}

/* ----------------------------------------------------
   STICKY MAIN NAVBAR (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-header {
  background-color: #ffffff;
  transition: var(--transition);
  z-index: 100;
}

.coreheal-header.is-sticky {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.08);
  animation: slideDownNav 0.35s ease forwards;
}

@keyframes slideDownNav {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.coreheal-nav-link {
  color: var(--secondary);
  font-weight: 600;
  font-size: 15.5px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: var(--transition);
}

.coreheal-nav-link:hover, .coreheal-nav-link.active {
  color: var(--primary);
}

.coreheal-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background: #ffffff;
  min-width: 220px;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  border: 1px solid #f0f0f0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 110;
}

.coreheal-dropdown-group:hover .coreheal-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.coreheal-dropdown-item {
  display: block;
  padding: 9px 20px;
  color: var(--secondary);
  font-size: 14.5px;
  font-weight: 500;
  transition: var(--transition);
}

.coreheal-dropdown-item:hover, .coreheal-dropdown-item.active {
  color: var(--primary);
  background-color: #f0f7f5;
  padding-left: 24px;
}

/* ----------------------------------------------------
   COREHEAL BUTTONS (ROUNDED PILLS)
   ---------------------------------------------------- */
.btn-coreheal-primary {
  background-color: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-coreheal-primary:hover {
  background-color: #1e564a;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(42, 116, 101, 0.25);
}

.btn-coreheal-accent {
  background-color: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 14.5px;
  padding: 12px 28px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: 0.3px;
}

.btn-coreheal-accent:hover {
  background-color: var(--accent-hover);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(255, 152, 31, 0.3);
}

.btn-coreheal-outline {
  border: 1.5px solid var(--primary);
  color: var(--primary);
  background: transparent;
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 26px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  cursor: pointer;
}

.btn-coreheal-outline:hover {
  background-color: var(--primary);
  color: #ffffff;
  transform: translateY(-2px);
}

/* ----------------------------------------------------
   HERO BLOB CONTAINER & STAT CARD (DYNAMIC CODE EXACT)
   ---------------------------------------------------- */
.coreheal-hero-blob-container {
  position: relative;
  width: 100%;
  max-width: 530px;
  aspect-ratio: 540 / 490;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.coreheal-masked-image-container {
  position: relative;
  width: 90%;
  height: 90%;
  z-index: 10;
  overflow: hidden;
}

.coreheal-clipped-blob {
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: url(#corehealBlobClip);
  -webkit-clip-path: url(#corehealBlobClip);
  transition: transform 0.5s ease;
}

.coreheal-hero-blob-container:hover .coreheal-clipped-blob {
  transform: scale(1.03);
}

.coreheal-hero-stat-card {
  position: absolute;
  bottom: 0px;
  left: 0px;
  background: #ffffff;
  border-radius: 12px;
  padding: 14px 28px;
  box-shadow: 0px 10px 25px rgba(0, 0, 0, 0.08);
  text-align: center;
  z-index: 20;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

@media (max-width: 640px) {
  .coreheal-hero-stat-card {
    padding: 10px 20px;
    bottom: -10px;
    left: 10px;
  }
  .coreheal-hero-stat-card .stat-number {
    font-size: 28px !important;
  }
}

.coreheal-hero-stat-card .stat-number {
  color: var(--primary);
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  font-family: var(--font-heading);
}

.coreheal-hero-stat-card .stat-label {
  color: var(--secondary);
  font-size: 14px;
  font-weight: 600;
  margin-top: 4px;
  white-space: nowrap;
}

/* ----------------------------------------------------
   COREHEAL SECTION TAG BADGE
   ---------------------------------------------------- */
.coreheal-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.coreheal-badge i {
  font-size: 16px;
  color: var(--primary);
}

.coreheal-badge-light {
  color: #a7f3d0;
}
.coreheal-badge-light i {
  color: #a7f3d0;
}

/* ----------------------------------------------------
   HERO SECTION & COUNTERS
   ---------------------------------------------------- */
.coreheal-hero-section, .coreheal-hero {
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: 80px 0 90px 0;
}

@media (max-width: 768px) {
  .coreheal-hero-section, .coreheal-hero {
    padding: 40px 0 60px 0;
  }
}

.coreheal-hero-stat {
  background: #ffffff;
  border-radius: 10px;
  padding: 16px 24px;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.coreheal-counter-num {
  color: var(--primary);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
  font-family: var(--font-heading);
}

.coreheal-counter-title {
  color: var(--secondary);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

/* ----------------------------------------------------
   SERVICE CARDS (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-service-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 36px 26px;
  border: 1px solid #edf2f0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.coreheal-service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(42, 116, 101, 0.2);
}

.coreheal-service-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: #edf7f5;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  color: var(--primary);
  font-size: 28px;
  transition: var(--transition);
}

.coreheal-service-card:hover .coreheal-service-icon {
  background: var(--primary);
  color: #ffffff;
}

.coreheal-explore-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--primary);
  font-weight: 700;
  font-size: 14.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.coreheal-explore-link:hover {
  color: var(--accent);
  transform: translateX(4px);
}

/* ----------------------------------------------------
   WAVE BRUSH SECTION (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-wave-section {
  background-color: var(--primary);
  color: #ffffff;
  position: relative;
  padding: 100px 0;
}

.coreheal-wave-top, .coreheal-wave-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.coreheal-wave-top {
  top: -1px;
}

.coreheal-wave-bottom {
  bottom: -1px;
  transform: rotate(180deg);
}

.coreheal-wave-top svg, .coreheal-wave-bottom svg {
  display: block;
  width: calc(100% + 1.3px);
  height: 48px;
}

.coreheal-wave-fill {
  fill: #ffffff;
}

.coreheal-feature-box {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 26px 22px;
  transition: var(--transition);
}

.coreheal-feature-box:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

/* ----------------------------------------------------
   TEAM CARDS (COREHEAL EXACT ZOOM HOVER)
   ---------------------------------------------------- */
.coreheal-team-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 380px;
  box-shadow: var(--shadow-md);
  background-color: var(--secondary);
}

.coreheal-team-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.coreheal-team-card:hover .coreheal-team-img {
  transform: scale(1.08);
}

.coreheal-team-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(40, 40, 38, 0) 40%, rgba(40, 40, 38, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  color: #ffffff;
}

.coreheal-team-name {
  color: #ffffff;
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 2px;
}

.coreheal-team-role {
  color: #a7f3d0;
  font-size: 14px;
  font-weight: 500;
}

/* ----------------------------------------------------
   TESTIMONIALS (COREHEAL EXACT 1:1 REPLICA)
   ---------------------------------------------------- */
.elementor-testimonial {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  padding: 10px 20px;
}

.elementor-testimonial__content {
  margin-bottom: 24px;
}

.elementor-testimonial__text {
  font-size: 19px;
  line-height: 1.65;
  color: #555555;
  font-style: italic;
  font-weight: 500;
  font-family: var(--font-body);
}

@media (min-width: 768px) {
  .elementor-testimonial__text {
    font-size: 22px;
  }
}

.elementor-testimonial__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.elementor-testimonial__image img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
}

.elementor-testimonial__cite {
  font-style: normal;
}

.elementor-testimonial__name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: var(--secondary);
  font-family: var(--font-heading);
}

.elementor-testimonial__title {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.testimonial-swiper .swiper-pagination {
  position: relative !important;
  margin-top: 36px;
}

.testimonial-swiper .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  background-color: #cbd5e1;
  opacity: 1;
  transition: all 0.3s ease;
}

.testimonial-swiper .swiper-pagination-bullet-active {
  background-color: var(--primary) !important;
  width: 28px;
  border-radius: 6px;
}

/* ----------------------------------------------------
   BLOG POST CARDS (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-post-card {
  background: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.06);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.coreheal-post-card:hover {
  transform: translateY(-6px);
  box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.12);
}

.coreheal-post-thumb-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.coreheal-post-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.coreheal-post-card:hover .coreheal-post-thumb {
  transform: scale(1.05);
}

.coreheal-post-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--accent);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ----------------------------------------------------
   FOOTER (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-footer {
  background-color: var(--primary);
  color: #ffffff;
  position: relative;
  padding-top: 90px;
}

.coreheal-footer-heading {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.coreheal-footer-divider {
  width: 40px;
  height: 2px;
  background-color: var(--accent);
  margin-bottom: 18px;
}

.coreheal-footer-link {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14.5px;
  transition: var(--transition);
  display: inline-block;
  padding: 3px 0;
}

.coreheal-footer-link:hover {
  color: var(--accent);
  padding-left: 4px;
}

.coreheal-social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  transition: var(--transition);
}

.coreheal-social-icon:hover {
  background: var(--accent);
  color: #ffffff;
  transform: translateY(-3px);
}

/* ----------------------------------------------------
   PAGE HERO FOR INNER PAGES (COREHEAL EXACT)
   ---------------------------------------------------- */
.coreheal-inner-hero {
  background-color: var(--primary);
  color: #ffffff;
  position: relative;
  padding: 60px 0 85px;
}

@media (min-width: 768px) {
  .coreheal-inner-hero {
    padding: 80px 0 100px;
  }
}

.coreheal-inner-hero-heading {
  color: #ffffff;
  font-size: clamp(26px, 5.5vw, 46px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 10px;
}

.coreheal-breadcrumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}

.coreheal-breadcrumbs a {
  color: #ffffff;
  transition: var(--transition);
}

.coreheal-breadcrumbs a:hover {
  color: var(--accent);
}

/* ----------------------------------------------------
   MULTI-STEP EVALUATION MODAL
   ---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(40, 40, 38, 0.75);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #ffffff;
  border-radius: 12px;
  max-width: 680px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: var(--transition);
}

.modal-backdrop.is-open .modal-container {
  transform: scale(1);
}

.step-indicator {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e5e7eb;
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.step-indicator.active {
  background: var(--primary);
  color: #ffffff;
}

.step-indicator.completed {
  background: #10b981;
  color: #ffffff;
}

.custom-radio-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 12px;
}

.custom-radio-card:hover {
  border-color: var(--primary);
  background: #edf7f5;
}

.custom-radio-card.selected {
  border-color: var(--primary);
  background: #edf7f5;
  box-shadow: 0 0 0 1px var(--primary);
}

/* Swiper custom arrows */
.coreheal-swiper-prev, .coreheal-swiper-next {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: var(--transition);
}

.coreheal-swiper-prev:hover, .coreheal-swiper-next:hover {
  background: var(--primary);
  color: #ffffff;
}

/* ----------------------------------------------------
   MOBILE RESPONSIVENESS & TOUCH OPTIMIZATIONS
   ---------------------------------------------------- */
img, picture, svg, video {
  max-width: 100%;
}

@media (max-width: 640px) {
  /* Prevent iOS safari zoom on text inputs */
  input[type="text"],
  input[type="email"],
  input[type="tel"],
  input[type="number"],
  select,
  textarea {
    font-size: 16px !important;
  }

  /* Modal touch responsiveness */
  .modal-container {
    margin: 12px;
    padding: 20px !important;
    max-height: 92vh;
  }

  /* Touch targets */
  .btn-coreheal-primary,
  .btn-coreheal-accent,
  .btn-coreheal-outline {
    width: 100%;
    text-align: center;
    padding: 13px 20px;
  }

  /* Safe table / grid spacing */
  .coreheal-post-thumb-wrap {
    height: 200px;
  }
}

