/* ============================================================
   NeuroMotion Home PT — Main Stylesheet
   New England Coastal Calm · Teal + Cream + Sage + Navy
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --teal:       #4A9B8E;
  --teal-light: #6BB5A8;
  --teal-dark:  #357A6E;
  --cream:      #F5F0E8;
  --sage:       #B8D4C8;
  --sage-dark:  #8FB8A8;
  --navy:       #2C3E50;
  --navy-light: #3D5166;
  --white:      #FFFFFF;
  --gray-100:   #F8F9FA;
  --gray-200:   #E9ECEF;
  --gray-400:   #CED4DA;
  --gray-600:   #6C757D;
  --gray-800:   #343A40;
  --text:       #2C3A36;
  --shadow-sm:  0 2px 8px rgba(44,62,80,.10);
  --shadow-md:  0 4px 20px rgba(44,62,80,.14);
  --shadow-lg:  0 8px 40px rgba(44,62,80,.18);
  --radius:     12px;
  --radius-lg:  20px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
  --font-head:  'Montserrat', sans-serif;
  --font-body:  'Open Sans', sans-serif;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

[dir="rtl"] body { font-family: 'Cairo', 'Open Sans', sans-serif; }

img { max-width: 100%; display: block; }
a  { color: var(--teal); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--teal-dark); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.25;
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { margin-bottom: 1rem; }
.lead { font-size: 1.15rem; color: var(--gray-600); line-height: 1.8; }

/* ---------- Utility Classes ---------- */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center  { text-align: center; }
.text-teal    { color: var(--teal); }
.text-navy    { color: var(--navy); }
.text-white   { color: var(--white); }
.bg-cream     { background: var(--cream); }
.bg-sage      { background: var(--sage); }
.bg-navy      { background: var(--navy); }
.bg-teal      { background: var(--teal); }
.section      { padding: 5rem 0; }
.section-sm   { padding: 3rem 0; }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.gap-1 { gap: .5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.grid { display: grid; }
.fade-in { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ---------- Section Headers ---------- */
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-header .overline {
  display: inline-block;
  font-family: var(--font-head);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: .75rem;
}
.section-header h2 { margin-bottom: 1rem; }
.section-header p { max-width: 640px; margin: 0 auto; color: var(--gray-600); font-size: 1.05rem; }
.divider {
  width: 60px; height: 4px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  border-radius: 2px;
  margin: 1rem auto 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 2rem;
  border-radius: 50px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  border-color: var(--teal);
  box-shadow: 0 4px 15px rgba(74,155,142,.35);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(74,155,142,.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.7);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--teal);
  border-color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-teal {
  background: transparent;
  color: var(--teal);
  border-color: var(--teal);
}
.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-light);
  color: var(--white);
  border-color: var(--navy-light);
  transform: translateY(-2px);
}
.btn-lg { padding: 1rem 2.5rem; font-size: 1.05rem; }
.btn-sm { padding: .55rem 1.2rem; font-size: .85rem; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(44,62,80,.08);
  transition: all var(--transition);
}
.navbar.scrolled { box-shadow: 0 4px 30px rgba(44,62,80,.15); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 1280px; margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.nav-logo-mark {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 800; color: white; font-size: 1.1rem;
}
.nav-logo-text { line-height: 1.15; }
.nav-logo-text strong {
  display: block; font-family: var(--font-head); font-size: 1rem;
  font-weight: 700; color: var(--navy);
}
.nav-logo-text span { font-size: .72rem; color: var(--teal); font-weight: 500; }
.nav-links {
  display: flex; align-items: center; gap: .25rem; list-style: none;
}
.nav-links a {
  display: block; padding: .5rem .85rem;
  font-family: var(--font-head); font-size: .85rem; font-weight: 500;
  color: var(--navy); border-radius: 6px; transition: all var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  background: rgba(74,155,142,.1); color: var(--teal);
}
.nav-right { display: flex; align-items: center; gap: .75rem; }
.lang-toggle {
  display: flex; align-items: center; gap: .35rem;
  background: var(--cream); border: 1px solid var(--sage);
  border-radius: 50px; padding: .35rem .75rem;
  cursor: pointer; font-size: .8rem; font-weight: 600;
  color: var(--navy); transition: all var(--transition);
}
.lang-toggle:hover { background: var(--sage); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: .4rem;
  background: none; border: none;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px;
  transition: all var(--transition);
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
.mobile-menu {
  display: none; flex-direction: column;
  background: white; padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  padding: .75rem 0; font-family: var(--font-head); font-weight: 500;
  color: var(--navy); border-bottom: 1px solid var(--gray-200);
  font-size: .95rem;
}
.mobile-menu a:last-child { border-bottom: none; }

/* ============================================================
   HERO SECTIONS
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; overflow: hidden;
  padding-top: 80px;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    160deg,
    rgba(44,62,80,.72) 0%,
    rgba(44,62,80,.50) 45%,
    rgba(74,155,142,.45) 100%
  );
}
.hero-content {
  position: relative; z-index: 2;
  max-width: 860px; padding: 2rem 1.5rem;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50px; padding: .45rem 1.25rem;
  color: white; font-size: .82rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 { color: white; text-shadow: 0 2px 20px rgba(0,0,0,.3); margin-bottom: 1.25rem; }
.hero .tagline {
  font-size: clamp(1rem, 2.5vw, 1.3rem); color: rgba(255,255,255,.9);
  max-width: 620px; margin: 0 auto 2rem;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 2.5rem; left: 50%; transform: translateX(-50%);
  z-index: 2;
}
.hero-scroll span {
  display: block; width: 26px; height: 40px;
  border: 2px solid rgba(255,255,255,.6); border-radius: 13px;
  position: relative;
}
.hero-scroll span::before {
  content: ''; position: absolute; top: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: white; border-radius: 2px;
  animation: scrollBounce 2s infinite;
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 1; }
  60% { transform: translateX(-50%) translateY(12px); opacity: 0; }
}

/* Page hero (inner pages) */
.page-hero {
  position: relative; padding: 9rem 0 5rem;
  background-size: cover; background-position: center;
  text-align: center; overflow: hidden;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, rgba(44,62,80,.78), rgba(74,155,142,.55));
}
.page-hero-content { position: relative; z-index: 2; }
.page-hero h1 { color: white; margin-bottom: 1rem; }
.page-hero .lead { color: rgba(255,255,255,.9); }
.breadcrumb {
  display: flex; justify-content: center; gap: .5rem; flex-wrap: wrap;
  font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 1rem;
}
.breadcrumb a { color: rgba(255,255,255,.85); }
.breadcrumb span { color: rgba(255,255,255,.5); }

/* ============================================================
   CARDS
   ============================================================ */
.card {
  background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 2rem; transition: all var(--transition);
  border: 1px solid rgba(184,212,200,.3);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--sage);
}
.card-icon {
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(74,155,142,.12), rgba(107,181,168,.18));
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem; font-size: 1.75rem;
}
.card h3 { font-size: 1.15rem; margin-bottom: .6rem; }
.card p { color: var(--gray-600); font-size: .93rem; margin: 0; }

/* Feature cards grid */
.cards-grid { display: grid; gap: 1.5rem; }
.cards-grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* ============================================================
   IMAGE SECTIONS
   ============================================================ */
.img-section { display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 500px; }
.img-section-img { position: relative; overflow: hidden; min-height: 400px; }
.img-section-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .8s ease;
}
.img-section:hover .img-section-img img { transform: scale(1.04); }
.img-section-content {
  display: flex; align-items: center;
  padding: 4rem;
  background: var(--cream);
}
.img-section-content.bg-teal { background: var(--teal); }
.img-section-content.bg-teal h2, .img-section-content.bg-teal p { color: white; }
.img-section-content.bg-navy { background: var(--navy); }
.img-section-content.bg-navy h2, .img-section-content.bg-navy p { color: white; }

/* Photo gallery */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}
.photo-grid-item {
  border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; position: relative;
  cursor: pointer;
}
.photo-grid-item img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.photo-grid-item:hover img { transform: scale(1.06); }
.photo-grid-item.tall { grid-row: span 2; aspect-ratio: unset; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: white; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--sage);
  position: relative;
}
.testimonial-card::before {
  content: '"'; position: absolute; top: 1rem; left: 1.5rem;
  font-size: 5rem; color: var(--sage); font-family: Georgia, serif;
  line-height: 1; opacity: .6;
}
.testimonial-stars { color: #F4A732; font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text {
  font-size: .97rem; line-height: 1.75; color: var(--gray-800);
  margin-bottom: 1.5rem; position: relative; z-index: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 1rem; }
.testimonial-avatar {
  width: 52px; height: 52px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--sage);
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-name { font-family: var(--font-head); font-weight: 600; font-size: .95rem; }
.testimonial-role { font-size: .82rem; color: var(--teal); }

/* Testimonial carousel */
.carousel { position: relative; overflow: hidden; }
.carousel-track { display: flex; transition: transform .5s ease; }
.carousel-slide { min-width: 100%; padding: 0 1rem; }
.carousel-controls { display: flex; justify-content: center; gap: .75rem; margin-top: 2rem; }
.carousel-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sage); cursor: pointer; transition: all var(--transition);
  border: none;
}
.carousel-dot.active { background: var(--teal); transform: scale(1.3); }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: white; border: 2px solid var(--sage);
  border-radius: 50%; width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--transition);
  box-shadow: var(--shadow-sm); z-index: 5;
  font-size: 1.1rem;
}
.carousel-btn:hover { background: var(--teal); border-color: var(--teal); color: white; }
.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 1.5rem; }
.form-label {
  display: block; margin-bottom: .45rem;
  font-family: var(--font-head); font-weight: 600;
  font-size: .88rem; color: var(--navy);
}
.form-label .required { color: #E74C3C; margin-left: .25rem; }
.form-control {
  width: 100%;
  padding: .8rem 1.1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius);
  font-family: var(--font-body); font-size: .95rem;
  color: var(--text);
  transition: border-color var(--transition), box-shadow var(--transition);
  background: white;
}
.form-control:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(74,155,142,.15);
}
.form-control::placeholder { color: var(--gray-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .8rem; color: var(--gray-600); margin-top: .35rem; }
.form-error { font-size: .8rem; color: #E74C3C; margin-top: .35rem; display: none; }
.form-control.error { border-color: #E74C3C; }
.form-control.error + .form-error { display: block; }
.checkbox-group { display: flex; align-items: flex-start; gap: .75rem; }
.checkbox-group input { margin-top: .2rem; accent-color: var(--teal); width: 18px; height: 18px; cursor: pointer; }
.radio-group { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.radio-label { display: flex; align-items: center; gap: .5rem; cursor: pointer; font-size: .93rem; }
.radio-label input { accent-color: var(--teal); width: 17px; height: 17px; }

/* Step form */
.step-form-container { max-width: 720px; margin: 0 auto; }
.step-progress {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 3rem; position: relative;
}
.step-progress::before {
  content: ''; position: absolute; top: 50%; left: 0; right: 0;
  height: 3px; background: var(--gray-200); z-index: 0;
  transform: translateY(-50%);
}
.step-progress-fill {
  position: absolute; top: 50%; left: 0;
  height: 3px; background: var(--teal); z-index: 1;
  transform: translateY(-50%);
  transition: width .5s ease;
}
.step-dot {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid var(--gray-200); background: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head); font-weight: 700; font-size: .9rem;
  color: var(--gray-400); transition: all var(--transition);
  position: relative; z-index: 2;
}
.step-dot.active { border-color: var(--teal); color: var(--teal); background: rgba(74,155,142,.08); }
.step-dot.completed { border-color: var(--teal); background: var(--teal); color: white; }
.step-dot.completed::after { content: '✓'; }
.step-dot.completed .step-num { display: none; }
.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeSlide .35s ease; }
@keyframes fadeSlide { from { opacity:0; transform: translateX(20px); } to { opacity:1; transform: none; } }
.step-nav { display: flex; justify-content: space-between; margin-top: 2rem; }

/* ============================================================
   TRUST / BADGE SECTION
   ============================================================ */
.trust-bar {
  background: var(--navy); padding: 2rem 0;
}
.trust-logos {
  display: flex; justify-content: center; align-items: center;
  gap: 3rem; flex-wrap: wrap;
}
.trust-logo {
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  opacity: .65; transition: opacity var(--transition);
}
.trust-logo:hover { opacity: 1; }
.trust-logo-img {
  width: 80px; height: 40px; background: rgba(255,255,255,.15);
  border-radius: 6px; display: flex; align-items: center; justify-content: center;
  font-size: .65rem; font-weight: 700; color: rgba(255,255,255,.6);
  letter-spacing: .05em; text-align: center; padding: .25rem;
}
.trust-logo span { font-size: .7rem; color: rgba(255,255,255,.5); }

/* Stats bar */
.stats-bar { background: var(--teal); padding: 2.5rem 0; }
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem; text-align: center;
}
.stat-item .num {
  font-family: var(--font-head); font-size: 2.5rem; font-weight: 800;
  color: white; line-height: 1;
}
.stat-item .label { font-size: .85rem; color: rgba(255,255,255,.8); margin-top: .4rem; }

/* ============================================================
   SERVICES
   ============================================================ */
.service-card {
  background: white; border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  border: 1px solid rgba(184,212,200,.3);
  transition: all var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.service-card-img { height: 200px; overflow: hidden; }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { padding: 1.5rem; }
.service-card-body h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.service-card-body p { font-size: .9rem; color: var(--gray-600); margin: 0; }
.service-tag {
  display: inline-block; background: rgba(74,155,142,.1);
  color: var(--teal); font-size: .72rem; font-weight: 700;
  padding: .25rem .7rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem;
}

/* Research points */
.research-point {
  background: white; border-radius: var(--radius);
  padding: 1.75rem; border-left: 5px solid var(--teal);
  box-shadow: var(--shadow-sm); margin-bottom: 1.25rem;
}
.research-point h4 { margin-bottom: .5rem; display: flex; align-items: center; gap: .5rem; }
.research-point h4 .icon { font-size: 1.3rem; }
.research-point p { margin: 0; font-size: .93rem; color: var(--gray-600); }
.research-badge {
  display: inline-block; background: rgba(74,155,142,.1);
  color: var(--teal); font-size: .72rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 50px; margin-left: .5rem;
  vertical-align: middle;
}

/* ============================================================
   TRACKING PAGE
   ============================================================ */
.tracking-container { max-width: 700px; margin: 0 auto; }
.tracking-status-bar {
  display: flex; justify-content: space-between;
  position: relative; margin-bottom: 3rem;
}
.tracking-status-bar::before {
  content: ''; position: absolute; top: 20px; left: 0; right: 0;
  height: 4px; background: var(--gray-200); z-index: 0;
}
.tracking-status-fill {
  position: absolute; top: 20px; left: 0;
  height: 4px; background: var(--teal); z-index: 1;
  transition: width 1s ease;
}
.tracking-step {
  display: flex; flex-direction: column; align-items: center;
  gap: .5rem; position: relative; z-index: 2; flex: 1;
}
.tracking-step-dot {
  width: 44px; height: 44px; border-radius: 50%;
  border: 3px solid var(--gray-200); background: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; transition: all var(--transition);
}
.tracking-step.active .tracking-step-dot {
  border-color: var(--teal); background: var(--teal);
  box-shadow: 0 0 0 6px rgba(74,155,142,.2);
  animation: pulse 2s infinite;
}
.tracking-step.done .tracking-step-dot { border-color: var(--teal); background: var(--teal); }
.tracking-step-label { font-size: .78rem; font-weight: 600; color: var(--gray-600); text-align: center; }
.tracking-step.active .tracking-step-label, .tracking-step.done .tracking-step-label { color: var(--teal); }
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 6px rgba(74,155,142,.2); }
  50% { box-shadow: 0 0 0 12px rgba(74,155,142,.1); }
}
.map-container {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); background: var(--gray-100);
  height: 360px; position: relative;
}
.map-container iframe, .map-container #map { width: 100%; height: 100%; border: none; }
.therapist-card-track {
  display: flex; align-items: center; gap: 1.25rem;
  background: white; border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow-sm);
  border: 1px solid var(--sage); margin-bottom: 1.5rem;
}
.therapist-avatar-track {
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden; border: 3px solid var(--teal); flex-shrink: 0;
}
.eta-badge {
  background: linear-gradient(135deg, var(--teal), var(--teal-light));
  color: white; border-radius: var(--radius);
  padding: 1.25rem; text-align: center; margin-bottom: 1.5rem;
}
.eta-badge .eta-min { font-size: 2.5rem; font-weight: 800; font-family: var(--font-head); }
.eta-badge .eta-label { font-size: .85rem; opacity: .9; }

/* ============================================================
   PORTAL
   ============================================================ */
.portal-sidebar {
  width: 260px; background: var(--navy); min-height: 100vh;
  padding: 2rem 0; position: fixed; top: 0; left: 0; z-index: 100;
}
.portal-sidebar .sidebar-logo {
  padding: 1rem 1.5rem 2rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 1rem;
}
.portal-sidebar .sidebar-logo a { color: white; font-family: var(--font-head); font-weight: 700; }
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1.5rem;
  color: rgba(255,255,255,.65); font-size: .9rem;
  transition: all var(--transition);
}
.sidebar-nav li a:hover, .sidebar-nav li a.active {
  background: rgba(74,155,142,.25); color: white;
  border-left: 3px solid var(--teal-light);
}
.portal-content {
  margin-left: 260px; padding: 2rem;
  min-height: 100vh; background: var(--gray-100);
}
.portal-topbar {
  display: flex; justify-content: space-between; align-items: center;
  background: white; border-radius: var(--radius);
  padding: 1rem 1.5rem; margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}
.portal-card {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}
.portal-card h4 { margin-bottom: 1rem; font-size: 1rem; color: var(--navy); }
.portal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.portal-stat {
  background: white; border-radius: var(--radius);
  padding: 1.5rem; text-align: center;
  box-shadow: var(--shadow-sm); border-top: 4px solid var(--teal);
}
.portal-stat .num { font-size: 2rem; font-weight: 800; font-family: var(--font-head); color: var(--teal); }
.portal-stat .label { font-size: .82rem; color: var(--gray-600); margin-top: .25rem; }
.portal-login {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--teal-dark));
}
.portal-login-box {
  background: white; border-radius: var(--radius-lg);
  padding: 3rem; width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
}

/* Progress bars */
.progress-wrap { margin-bottom: 1rem; }
.progress-label { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .4rem; }
.progress-bar-bg { background: var(--gray-200); border-radius: 50px; height: 10px; overflow: hidden; }
.progress-bar-fill {
  height: 100%; border-radius: 50px;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
  transition: width 1.2s ease;
}

/* ============================================================
   VIDEO LIBRARY
   ============================================================ */
.video-card {
  background: white; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: all var(--transition); cursor: pointer;
  border: 1px solid var(--gray-200);
}
.video-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.video-thumb { position: relative; aspect-ratio: 16/9; overflow: hidden; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(44,62,80,.35);
  transition: background var(--transition);
}
.video-card:hover .video-play-btn { background: rgba(44,62,80,.5); }
.play-circle {
  width: 52px; height: 52px; background: rgba(255,255,255,.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; color: var(--teal);
  transition: transform var(--transition);
}
.video-card:hover .play-circle { transform: scale(1.1); }
.video-duration {
  position: absolute; bottom: .5rem; right: .5rem;
  background: rgba(0,0,0,.7); color: white;
  font-size: .75rem; padding: .2rem .5rem; border-radius: 4px;
}
.video-body { padding: 1rem; }
.video-body h4 { font-size: .95rem; margin-bottom: .35rem; }
.video-body p { font-size: .82rem; color: var(--gray-600); margin: 0; }
.video-category-tag {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .65rem; border-radius: 50px;
  text-transform: uppercase; letter-spacing: .05em; margin-bottom: .5rem;
}
.cat-stroke    { background: rgba(231,76,60,.1);  color: #C0392B; }
.cat-parkinson { background: rgba(142,68,173,.1); color: #8E44AD; }
.cat-balance   { background: rgba(41,128,185,.1); color: #2980B9; }
.cat-caregiver { background: rgba(39,174,96,.1);  color: #27AE60; }
.cat-fall      { background: rgba(230,126,34,.1); color: #D35400; }

/* Filter tabs */
.filter-tabs { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 2rem; }
.filter-tab {
  padding: .45rem 1.1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; cursor: pointer;
  border: 2px solid var(--gray-200); background: white; color: var(--gray-600);
  transition: all var(--transition);
}
.filter-tab.active, .filter-tab:hover {
  background: var(--teal); border-color: var(--teal); color: white;
}

/* ============================================================
   FORMS PAGE (Legal docs)
   ============================================================ */
.doc-section {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--gray-200); margin-bottom: 1.5rem;
  overflow: hidden;
}
.doc-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.25rem 1.5rem; background: var(--cream);
  border-bottom: 1px solid var(--gray-200); cursor: pointer;
}
.doc-header h3 { font-size: 1rem; margin: 0; }
.doc-body { padding: 2rem; display: none; }
.doc-body.open { display: block; }
.legal-text {
  font-size: .88rem; line-height: 1.8; color: var(--gray-800);
}
.legal-text h4 { margin: 1.25rem 0 .4rem; font-size: .95rem; }
.legal-text ol, .legal-text ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.sig-pad-wrap { margin-top: 1.5rem; border-top: 1px solid var(--gray-200); padding-top: 1.5rem; }
.sig-canvas {
  border: 2px dashed var(--sage-dark); border-radius: 8px;
  width: 100%; height: 120px; display: block; cursor: crosshair;
  background: #FAFCFB;
}
.sig-actions { display: flex; gap: .75rem; margin-top: .5rem; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-info-card {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.5rem; background: white; border-radius: var(--radius);
  box-shadow: var(--shadow-sm); margin-bottom: 1rem;
  border: 1px solid var(--sage);
}
.contact-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(74,155,142,.15), rgba(107,181,168,.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0;
}
.contact-info-card h4 { font-size: .9rem; color: var(--teal); margin-bottom: .2rem; }
.contact-info-card p { margin: 0; font-size: .92rem; }

/* Map embed */
.map-embed {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md); height: 320px;
  background: var(--sage); position: relative;
}
.map-embed img { width: 100%; height: 100%; object-fit: cover; }
.map-placeholder {
  width: 100%; height: 100%; display: flex;
  align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cream), var(--sage));
  flex-direction: column; gap: 1rem;
}
.map-placeholder .icon { font-size: 3rem; }
.map-placeholder p { color: var(--gray-600); font-size: .9rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy); color: rgba(255,255,255,.75); padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-brand p { font-size: .88rem; margin-top: .75rem; line-height: 1.7; }
.footer h4 {
  font-family: var(--font-head); font-size: .85rem; font-weight: 700;
  color: white; text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1.25rem;
}
.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color var(--transition); }
.footer-links a:hover { color: var(--teal-light); }
.footer-contact p { font-size: .88rem; display: flex; align-items: flex-start; gap: .5rem; margin-bottom: .7rem; }
.footer-contact .icon { margin-top: .15rem; flex-shrink: 0; }
.social-links { display: flex; gap: .75rem; margin-top: 1.25rem; }
.social-link {
  width: 38px; height: 38px; border-radius: 8px;
  background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 1rem;
  transition: all var(--transition);
}
.social-link:hover { background: var(--teal); color: white; transform: translateY(-2px); }
.footer-bottom {
  padding: 1.25rem 0; display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.45);
}
.footer-bottom a { color: rgba(255,255,255,.55); }

/* ============================================================
   ALERTS / BANNERS
   ============================================================ */
.alert {
  padding: 1rem 1.25rem; border-radius: var(--radius);
  display: flex; align-items: flex-start; gap: .75rem;
  margin-bottom: 1rem;
}
.alert-info    { background: rgba(41,128,185,.08);  border: 1px solid rgba(41,128,185,.2);  color: #1a6fa8; }
.alert-success { background: rgba(39,174,96,.08);   border: 1px solid rgba(39,174,96,.2);   color: #1a7a44; }
.alert-warning { background: rgba(230,126,34,.08);  border: 1px solid rgba(230,126,34,.25); color: #a0521a; }

/* ============================================================
   RIBBON / CALLOUT
   ============================================================ */
.callout {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  border-radius: var(--radius-lg); padding: 3.5rem;
  text-align: center; color: white;
}
.callout h2 { color: white; margin-bottom: 1rem; }
.callout p  { color: rgba(255,255,255,.85); max-width: 600px; margin: 0 auto 2rem; }

/* Office hours table */
.hours-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.hours-table td { padding: .5rem .75rem; border-bottom: 1px solid var(--gray-200); }
.hours-table tr:last-child td { border: none; }
.hours-table td:first-child { font-weight: 600; color: var(--navy); width: 120px; }
.hours-table .closed { color: var(--gray-400); }

/* Accordion */
.accordion-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: .75rem; overflow: hidden; }
.accordion-header {
  width: 100%; padding: 1.1rem 1.5rem;
  background: none; border: none; text-align: left;
  display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; font-family: var(--font-head); font-weight: 600;
  font-size: .95rem; color: var(--navy); transition: background var(--transition);
}
.accordion-header:hover { background: var(--cream); }
.accordion-header .icon { transition: transform var(--transition); font-size: .8rem; color: var(--teal); }
.accordion-header.open .icon { transform: rotate(180deg); }
.accordion-body { padding: 0 1.5rem; max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s ease; }
.accordion-body.open { padding: 0 1.5rem 1.25rem; max-width: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .img-section { grid-template-columns: 1fr; }
  .portal-sidebar { width: 220px; }
  .portal-content { margin-left: 220px; }
}

@media (max-width: 768px) {
  .nav-links, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .section { padding: 3.5rem 0; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .img-section-content { padding: 2.5rem 1.5rem; }
  .portal-sidebar { display: none; }
  .portal-content { margin-left: 0; }
  .cards-grid-4 { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .step-dot { width: 34px; height: 34px; font-size: .8rem; }
  .hero-scroll { display: none; }
  .callout { padding: 2rem 1.5rem; }
  .lang-toggle { display: none; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .filter-tabs { gap: .35rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   RTL SUPPORT (Arabic)
   ============================================================ */
[dir="rtl"] .nav-logo { flex-direction: row-reverse; }
[dir="rtl"] .nav-links { flex-direction: row-reverse; }
[dir="rtl"] .card-icon { margin-left: 0; }
[dir="rtl"] .research-point { border-left: none; border-right: 5px solid var(--teal); }
[dir="rtl"] .testimonial-card::before { left: auto; right: 1.5rem; }
[dir="rtl"] .footer-grid { direction: rtl; }
[dir="rtl"] .sidebar-nav li a { border-left: none; }
[dir="rtl"] .sidebar-nav li a:hover, [dir="rtl"] .sidebar-nav li a.active { border-right: 3px solid var(--teal-light); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.float { animation: float 5s ease-in-out infinite; }

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--gray-200) 25%, #eee 50%, var(--gray-200) 75%);
  background-size: 200% auto; border-radius: 6px;
  animation: shimmer 1.4s linear infinite;
}
