/* ================================================
   VARIABLES
   ================================================ */
:root {
  --primary:        #2563EB;
  --primary-light:  #DBEAFE;
  --primary-dark:   #1D4ED8;
  --primary-muted:  #3B82F6;
  --footer-bg:      #0F172A;
  --footer-dark:    #1E293B;
  --badge-green:    #15803D;
  --affordable:     #065F46;
  --affordable-bg:  #D1FAE5;
  --affordable-border: #10B981;

  --text:           #0F172A;
  --text-secondary: #334155;
  --text-muted:     #475569;

  --bg:             #FFFFFF;
  --bg-alt:         #F8FAFC;
  --bg-hover:       #F1F5F9;

  --border:         #CBD5E1;
  --border-strong:  #94A3B8;

  --shadow-sm:  0 2px 6px rgba(0,0,0,.10), 0 1px 3px rgba(0,0,0,.07);
  --shadow-md:  0 6px 20px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.08);
  --shadow-lg:  0 12px 36px rgba(0,0,0,.16), 0 4px 12px rgba(0,0,0,.10);

  --radius:     12px;
  --radius-lg:  20px;
}

/* ================================================
   RESET + BASE
   ================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Heebo', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  max-width: 100vw;
}

a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
img { max-width: 100%; display: block; }

button {
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

/* ================================================
   ONBOARDING
   ================================================ */
#onboardingOverlay.hidden { display: none; }

.onboarding-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 16px 4px 14px;
  border: none;
  border-bottom: 1.5px solid var(--border);
  background: transparent;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  text-align: right;
  transition: color .15s, background .15s, padding-right .15s;
  animation: fadeInUp .5s ease both;
}
.onboarding-row::after {
  content: '←';
  font-size: .85rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.onboarding-row:nth-child(2) { animation-delay: .06s; }
.onboarding-row:nth-child(3) { animation-delay: .10s; }
.onboarding-row:nth-child(4) { animation-delay: .14s; }
.onboarding-row:nth-child(5) { animation-delay: .18s; }
.onboarding-row:nth-child(6) { animation-delay: .22s; }
.onboarding-row:nth-child(7) { animation-delay: .26s; }
.onboarding-row:hover  { color: var(--primary-dark); background: var(--bg-hover); padding-right: 6px; }
.onboarding-row:hover::after { color: var(--primary); transform: translateX(-3px); }
.onboarding-row:active { color: var(--primary-dark); background: var(--primary-light); }
.chip-other { color: var(--primary-dark); font-weight: 700; }

.onboarding-search { display: none; position: relative; }
.onboarding-search.visible { display: block; }

.onboarding-input {
  width: 100%;
  padding: 13px 0 11px;
  border: none;
  border-bottom: 2px solid var(--border-strong);
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  outline: none;
  transition: border-color .2s;
}
.onboarding-input:focus { border-color: var(--primary); }

.onboarding-suggestions {
  background: #fff;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  margin-top: 4px;
  max-height: 240px;
  overflow-y: auto;
  list-style: none;
}
.onboarding-suggestions:empty { display: none; }
.onboarding-suggestions li {
  padding: 13px 16px;
  font-size: .92rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.onboarding-suggestions li:last-child { border-bottom: none; }
.onboarding-suggestions li:hover  { background: var(--bg-hover); }
.onboarding-suggestions li:active { background: var(--primary-light); color: var(--primary-dark); }

/* ================================================
   HEADER
   ================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #FFFFFF;
  border-bottom: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 56px;
  transition: box-shadow .3s ease;
}
.header.scrolled { box-shadow: var(--shadow-md); }

.header-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border-radius: 50%;
  transition: background .2s;
}
.header-btn:hover  { background: var(--bg-hover); }
.header-btn:active { background: var(--border); }

.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-icon { flex-shrink: 0; }

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.logo-text {
  font-size: 1rem;
  font-weight: 400;
  color: #1E293B;
  letter-spacing: -.01em;
  white-space: nowrap;
  line-height: 1.2;
}
.logo-text b {
  font-weight: 700;
  color: #7C6FB0;
}
.logo-url {
  font-size: .68rem;
  color: var(--text-muted);
  letter-spacing: .02em;
  line-height: 1;
  display: block;
  text-align: center;
}

/* ================================================
   MOBILE MENU
   ================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  visibility: hidden;
  transition: visibility .3s;
}
.mobile-menu.open {
  pointer-events: auto;
  visibility: visible;
}
.mobile-menu::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  transition: opacity .3s;
}
.mobile-menu.open::before { opacity: 1; }

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--bg);
  padding: 20px;
  transform: translateX(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  box-shadow: -6px 0 30px rgba(0,0,0,.16);
  overflow-y: auto;
  border-left: 2px solid var(--border);
}
.mobile-menu.open .menu-panel { transform: translateX(0); }

.menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 20px;
  color: var(--text-secondary);
}

.menu-links li { border-bottom: 1.5px solid var(--border); }
.menu-links a {
  display: block;
  padding: 14px 4px;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text);
  transition: color .2s;
}
.menu-links a:hover  { color: var(--primary-dark); }
.menu-links a:active { color: var(--primary); }

/* ================================================
   HERO / SEARCH FORM
   ================================================ */
.hero {
  padding: 0 24px 28px;
  background: linear-gradient(180deg, #F3F1FA 0%, #F8F7FC 100%);
  border-bottom: 2px solid var(--border);
}

.hero-title {
  font-family: 'Heebo', sans-serif;
  font-size: 2.4rem;
  font-weight: 900;
  text-align: center;
  padding: 36px 0 10px;
  color: var(--text);
  letter-spacing: -.02em;
  line-height: 1.2;
  animation: fadeInDown .6s ease both;
}

.hero-subtitle {
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.6;
  animation: fadeInDown .6s ease .08s both;
}

.search-form > :last-child { border-bottom: none; }

.form-field {
  border-bottom: 1.5px solid var(--border);
  padding: 10px 0 8px;
  animation: fadeInUp .5s ease both;
}
.form-field:nth-child(1) { animation-delay: .06s; }
.form-field:nth-child(2) { animation-delay: .10s; }
.form-field:nth-child(3) { animation-delay: .14s; }
.form-field:nth-child(4) { animation-delay: .18s; }

.form-label {
  display: block;
  font-size: .9rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 4px;
  padding-inline-start: 2px;
}

.form-field select {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .95rem;
  color: var(--text);
  padding: 4px 0;
  padding-inline-end: 24px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 2px center;
  background-size: 12px;
  border-radius: 0;
}
.form-field select:focus { outline: none; }
.form-field:focus-within { border-color: var(--primary); }

/* Toggle */
.toggle-row { padding: 14px 0; }
.toggle-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  color: var(--text);
}

.toggle { position: relative; display: inline-block; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border-radius: 12px;
  position: relative;
  transition: background .25s;
}
.toggle input:checked + .toggle-track { background: var(--primary); }
.toggle-track::after {
  content: '';
  position: absolute;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  top: 2px;
  left: 2px;
  transition: transform .25s;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-track::after { transform: translateX(20px); }
.toggle input:focus-visible + .toggle-track {
  box-shadow: 0 0 0 3px rgba(11,140,125,.3);
}

/* Split row */
.form-row-split {
  display: flex;
  border-bottom: 1px solid var(--border);
  animation: fadeInUp .5s ease both;
  animation-delay: .22s;
}
.form-row-split .form-field {
  flex: 1;
  border-bottom: none;
  padding: 0;
}
.form-row-split .form-field + .form-field {
  border-inline-start: 1px solid var(--border);
}
.form-row-split .form-field select {
  padding: 14px 8px 14px 24px;
  text-align: center;
}

/* ================================================
   FILTER BAR
   ================================================ */
#searchForm {
  position: sticky;
  top: 56px;
  z-index: 50;
  background: #fff;
  border-bottom: 2px solid var(--border);
}

.filter-actions-row {
  display: flex;
  gap: 8px;
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.filter-action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 2px solid var(--border-strong);
  background: var(--bg);
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  white-space: nowrap;
}
.filter-action-btn:hover  { border-color: var(--primary); color: var(--primary-dark); background: var(--bg-hover); }
.filter-action-btn:active,
.filter-action-btn.active { background: var(--primary); border-color: var(--primary-dark); color: #fff; }

.filter-action-change {
  border-color: #2563EB;
  color: #1D4ED8;
  background: #DBEAFE;
}
.filter-action-change:hover  { background: #BFDBFE; border-color: #1D4ED8; }
.filter-action-change:active { background: #93C5FD; border-color: #1E40AF; color: #1E3A8A; }

.filter-bar {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 10px 16px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  background: #F8FAFC;
  border-top: 1.5px solid var(--border);
}
.filter-bar::-webkit-scrollbar { display: none; }

.filter-chip {
  flex-shrink: 0;
  padding: 7px 14px;
  border: 2px solid var(--border-strong);
  border-radius: 20px;
  background: #ffffff;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  white-space: nowrap;
  transition: border-color .15s, background .15s, color .15s;
}
.filter-chip:hover  { border-color: var(--primary); background: var(--bg-hover); }
.filter-chip:focus  { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,140,125,.2); }
.filter-chip option { font-weight: 400; }

.filter-chip-toggle {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
}
.filter-chip-toggle input { display: none; }
.filter-chip-toggle:has(input:checked) {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

/* specialty free-text chip */
/* Language dropdown */
.lang-dropdown-wrap {
  position: relative;
  flex-shrink: 0;
}

.lang-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.lang-dropdown-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary-dark);
}

.lang-panel {
  display: none;
  position: fixed;
  background: #ffffff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 9999;
  min-width: 140px;
  padding: 6px 0;
}
.lang-panel.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text);
  transition: background .12s;
  border-bottom: 1px solid var(--border);
}
.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--bg-hover); }
.lang-option input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
  cursor: pointer;
  flex-shrink: 0;
}

.filter-chip-text {
  position: relative;
  display: flex;
  align-items: center;
}
.filter-chip-text input {
  width: 80px;
  border: none;
  background: transparent;
  font-family: inherit;
  font-size: .83rem;
  font-weight: 600;
  color: var(--text);
  outline: none;
  text-align: center;
}
.filter-chip-text input::placeholder { color: var(--text-secondary); }
.filter-chip-text input:focus { width: 120px; }

.filter-suggestions {
  position: fixed;
  min-width: 200px;
  background: #fff;
  border: 2px solid var(--border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  max-height: 260px;
  overflow-y: auto;
  z-index: 9999;
  list-style: none;
}
.filter-suggestions:empty { display: none; }
.filter-suggestions li {
  padding: 12px 16px;
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1.5px solid var(--border);
  color: var(--text);
  white-space: nowrap;
}
.filter-suggestions li:last-child { border-bottom: none; }
.filter-suggestions li:hover  { background: var(--bg-hover); }
.filter-suggestions li:active { background: var(--primary-light); color: var(--primary-dark); }

/* topic message */
.topic-message {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 20px 6px;
  text-align: center;
  gap: 2px;
  background: var(--bg);
}
.topic-message p {
  font-size: .85rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.topic-message strong { color: var(--primary-dark); }

.topic-arrow {
  font-size: 1.5rem;
  color: var(--primary);
  animation: bounceUp 1.4s ease infinite;
  line-height: 1;
}
@keyframes bounceUp {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* ================================================
   RESULTS
   ================================================ */
.results {
  padding: 28px 16px 32px;
  background: #FFFFFF;
  border-bottom: 1.5px solid var(--border);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 8px;
}

.profile-card {
  text-align: center;
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 20px 12px 16px;
  box-shadow: 0 4px 14px rgba(0,0,0,.10), 0 1px 4px rgba(0,0,0,.07);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

.profile-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.14), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-3px);
}
.profile-card:active { transform: translateY(-1px); }

.avatar {
  width: 90px;
  height: 90px;
  border-radius: 12px;
  background: linear-gradient(145deg,
    hsl(var(--hue), 48%, 62%),
    hsl(var(--hue), 58%, 46%)
  );
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}
.avatar svg {
  width: 100%;
  height: 100%;
}

.avatar--real {
  background: #d8d8d8;
  box-shadow: 0 3px 10px rgba(0,0,0,.18);
}

.avatar-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  inset: 0;
}


.pm-photo--real {
  background: #d8d8d8;
}

.pm-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  position: absolute;
  inset: 0;
}

.avatar-initials {
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .02em;
  text-shadow: 0 1px 6px rgba(0,0,0,.28);
  line-height: 1;
  user-select: none;
}

.badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  background: var(--badge-green);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  border: 2px solid #fff;
  line-height: 1;
}

.card-name {
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 2px;
  color: #0F172A;
  line-height: 1.3;
}
.card-title {
  font-size: .8rem;
  color: #334155;
  font-weight: 500;
  margin-bottom: 4px;
}
.card-specialty { display: none; }
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1.5px solid var(--border);
}
.card-city {
  font-size: .78rem;
  color: #1E40AF;
  font-weight: 700;
}
.card-price {
  display: none;
  font-size: .78rem;
  font-weight: 700;
  color: var(--primary-dark);
}

/* ================================================
   SERVICES
   ================================================ */
.services { padding: 24px 0 0; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 0 16px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 12px;
  text-align: center;
  gap: 10px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  transition: background .2s, border-color .2s;
}
.service-tile:hover  { background: var(--bg-hover); border-color: var(--border); }
.service-tile:active { background: var(--border); }

.service-icon { width: 54px; height: 54px; }

.service-label {
  font-size: .88rem;
  color: var(--text);
  font-weight: 600;
}

/* ================================================
   CRISIS BANNER
   ================================================ */
.crisis-banner {
  margin: 16px 20px 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 2px solid var(--primary-dark);
}
.crisis-banner::before {
  content: '';
  position: absolute;
  top: -30px;
  left: -30px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
}
.crisis-banner::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}
.crisis-banner h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 6px;
  position: relative;
}
.crisis-banner p {
  font-size: .88rem;
  opacity: .92;
  margin-bottom: 16px;
  position: relative;
}

.crisis-link {
  display: inline-block;
  font-size: .88rem;
  font-weight: 700;
  background: rgba(255,255,255,.22);
  border: 1.5px solid rgba(255,255,255,.5);
  padding: 9px 24px;
  border-radius: 20px;
  transition: background .2s, border-color .2s;
  position: relative;
}
.crisis-link:hover  { background: rgba(255,255,255,.32); }
.crisis-link:active { background: rgba(255,255,255,.38); }

/* ================================================
   SECTIONS HEADING
   ================================================ */
.section-heading {
  font-family: 'Heebo', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  padding: 32px 20px 16px;
  text-align: right;
}

/* ================================================
   ARTICLES
   ================================================ */
.articles {
  padding: 32px 16px 60px;
  background: #F0FAFA;
  border-top: 1.5px solid var(--border);
}

.articles-byline {
  font-family: 'Heebo', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-align: right;
  padding-top: 32px;
  margin-bottom: 24px;
}

/* Article grid */
#articlesList {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.article-card {
  background: #FFFFFF;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0 0 14px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.06);
  transition: box-shadow .2s, transform .2s;
  margin-bottom: 0;
}
.article-card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,.13), 0 2px 8px rgba(0,0,0,.08);
  transform: translateY(-2px);
}

.article-image {
  width: 100%;
  height: 120px;
  margin-bottom: 10px;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.article-image svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.article-tag {
  display: inline-block;
  font-size: .68rem;
  color: var(--primary-dark);
  background: transparent;
  border: none;
  font-weight: 700;
  margin: 0 10px 4px;
  padding: 0;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.article-title {
  font-family: 'Heebo', sans-serif;
  font-size: .98rem;
  font-weight: 700;
  line-height: 1.38;
  margin-bottom: 6px;
  padding: 0 10px;
  color: var(--text);
}
.article-title a { transition: color .2s; }
.article-title a:hover  { color: var(--primary-dark); }
.article-title a:active { color: var(--primary); }

.article-excerpt {
  font-size: .78rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 0;
  padding: 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 48px 32px 28px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px 48px;
  align-items: start;
}
@media (max-width: 900px) {
  .footer { grid-template-columns: 1fr 1fr; gap: 28px 32px; }
}
@media (max-width: 540px) {
  .footer { grid-template-columns: 1fr; gap: 24px; }
}

.footer-section {
  padding: 0;
}

.footer-heading {
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-align: right;
  color: #fff;
  letter-spacing: .01em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  font-size: .9rem;
  color: rgba(255,255,255,.75);
  transition: color .15s;
  display: block;
  font-weight: 400;
  text-align: right;
}
.footer-links a:hover { color: #fff; }

.footer-seo {
  grid-column: 1 / -1;
  font-size: .78rem;
  color: rgba(255,255,255,.45);
  text-align: center;
  line-height: 1.7;
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 20px;
  margin-top: 4px;
}

.footer-copyright {
  grid-column: 1 / -1;
  text-align: center;
  font-size: .78rem;
  color: rgba(255,255,255,.55);
  padding-top: 24px;
  margin-top: 8px;
  border-top: 1px solid rgba(255,255,255,.12);
}

/* ================================================
   ANIMATIONS
   ================================================ */
@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ================================================
   THERAPIST PROFILE MODAL
   ================================================ */
.profile-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  background: rgba(0,0,0,.5);
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease;
}
.profile-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.profile-modal-sheet {
  width: 100%;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 92vh;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
  position: relative;
  border-top: 3px solid var(--border-strong);
}
.profile-modal.open .profile-modal-sheet {
  transform: translateY(0);
}

.profile-modal-close {
  position: sticky;
  top: 12px;
  right: 16px;
  float: left;
  margin: 12px 0 0 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
}
.profile-modal-close:hover { background: var(--border); border-color: var(--border-strong); }

.profile-modal-inner { padding: 16px 20px 40px; }

/* profile header */
.pm-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.pm-info { flex: 1; }
.pm-name {
  font-family: 'Heebo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}
.pm-title {
  font-size: .88rem;
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: 12px;
}
.pm-photo {
  width: 110px;
  height: 110px;
  border-radius: 16px;
  background: linear-gradient(135deg,
    hsl(var(--hue), 45%, 62%),
    hsl(var(--hue), 55%, 48%)
  );
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(0,0,0,.08);
}
.pm-photo svg { width: 100%; height: 100%; }
.pm-photo-badge {
  position: absolute;
  bottom: 0;
  left: 0;
  background: var(--badge-green);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 0 8px 0 0;
}

/* meta row */
.pm-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 0;
  border-top: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  margin-bottom: 16px;
  font-size: .82rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.pm-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}
.pm-meta-item svg { color: var(--primary); flex-shrink: 0; }

/* action buttons */
.pm-actions {
  display: flex;
  justify-content: space-around;
  padding: 4px 0 20px;
  border-bottom: 2px solid var(--border);
  margin-bottom: 20px;
}
.pm-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--text);
  font-size: .72rem;
  font-weight: 700;
}
.pm-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .15s, box-shadow .15s;
}
.pm-action-icon:hover { transform: scale(1.06); box-shadow: var(--shadow-md); }
.pm-action-icon.wa   { background: #25D366; }
.pm-action-icon.mail { background: #EA580C; }
.pm-action-icon.web  { background: #4F46E5; }
.pm-action-icon.fb   { background: #1877F2; }

/* price badge */
.pm-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: 16px;
  border: 2px solid;
}
.pm-price.affordable {
  background: var(--affordable-bg);
  color: var(--affordable);
  border-color: var(--affordable-border);
}
.pm-price.regular {
  background: var(--primary-light);
  color: var(--primary-dark);
  border-color: var(--primary-muted);
}

/* specialties */
.pm-section-title {
  font-size: .95rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--primary-light);
}
.pm-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.pm-tag {
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bg-alt);
  border: 2px solid var(--border);
  font-size: .8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* education & articles in modal */
.pm-edu-list {
  list-style: none;
  margin-bottom: 20px;
}
.pm-edu-item {
  padding: 9px 0;
  font-size: .85rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1.5px solid var(--border);
}
.pm-edu-item:last-child { border-bottom: none; }
.pm-edu-item a { color: var(--primary-dark); font-weight: 700; text-decoration: underline; }

/* ================================================
   AFFORDABLE INDEX
   ================================================ */
.affordable-header-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  background: var(--affordable-bg);
  border: 2px solid var(--affordable-border);
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 700;
  color: var(--affordable);
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none;
  transition: background .15s, border-color .15s;
}
.affordable-header-btn:hover  { background: #99F6E4; border-color: #0D9488; }
.affordable-header-btn:active { background: #5EEAD4; }

.menu-affordable {
  color: var(--affordable) !important;
  font-weight: 700 !important;
}

.onboarding-affordable {
  background: var(--affordable-bg) !important;
  border-bottom: 2px solid var(--affordable-border) !important;
  color: var(--affordable) !important;
  font-weight: 700 !important;
  padding: 16px 4px !important;
}

.onboarding-online {
  background: #EFF6FF !important;
  border-bottom: 2px solid #93C5FD !important;
  color: var(--primary-dark) !important;
  font-weight: 700 !important;
  margin-top: 8px !important;
}

.service-tile-affordable .service-label {
  color: var(--affordable);
  font-weight: 700;
}

/* ================================================
   WHATSAPP FLOAT
   ================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  left: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  z-index: 90;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
  border: 2px solid #1FB558;
}
.whatsapp-float:hover  { transform: scale(1.06); box-shadow: 0 6px 22px rgba(37,211,102,.5); }
.whatsapp-float:active { transform: scale(.92); }
