/* ============================================================
   Healing Hands — Advanced Physiotherapy Clinic
   Design tokens
   ============================================================ */
:root {
  --primary: #12304A;
  --primary-bright: #159A9C;
  --secondary: #EAF7F7;
  --accent: #159A9C;
  --accent-yellow: #D6A84F;
  --gold: #D6A84F;
  --teal: #159A9C;
  --navy: #12304A;
  --ice: #EAF7F7;
  --slate: #52616B;
  --text-color: #52616B;
  --white: #ffffff;
  --divider: rgba(255,255,255,0.15);
  --dark-divider: rgba(18,48,74,0.14);
  --error: rgb(230, 87, 87);
  --font-head: "Archivo", "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
  --radius-lg: 30px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --shadow: 0 20px 45px -25px rgba(18, 48, 74, 0.35);
  --shadow-hover: 0 28px 55px -20px rgba(18, 48, 74, 0.45);
  --maxw: 1300px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--primary);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--primary);
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--text-color); }

a { color: var(--accent); text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 641px) {
  .container { padding: 0 24px; }
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   Scroll-triggered animations
   ============================================================ */
.anim-fade-up {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-fade-up.is-visible { opacity: 1; transform: translateY(0); }

.anim-fade-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-fade-left.is-visible { opacity: 1; transform: translateX(0); }

.anim-fade-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-fade-right.is-visible { opacity: 1; transform: translateX(0); }

.anim-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-scale.is-visible { opacity: 1; transform: scale(1); }

.anim-stagger > * {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.anim-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.anim-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.anim-stagger.is-visible > *:nth-child(3) { transition-delay: 0.19s; }
.anim-stagger.is-visible > *:nth-child(4) { transition-delay: 0.26s; }
.anim-stagger.is-visible > *:nth-child(5) { transition-delay: 0.33s; }
.anim-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.anim-stagger.is-visible > * { opacity: 1; transform: translateY(0); }

@keyframes heroReveal {
  from { opacity: 0; transform: translateY(40px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes heroBgZoom {
  from { transform: scale(1.12); }
  to { transform: scale(1); }
}
@keyframes heroOverlayFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ============================================================
   Scroll-triggered fadeInUp (WOW.js compatible)
   ============================================================ */
.wow {
  visibility: hidden;
  opacity: 0;
}
.wow.fadeInUp {
  animation-name: fadeInUp;
  animation-duration: 0.8s;
  animation-fill-mode: both;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.wow[data-wow-delay="0.25s"] { animation-delay: 0.25s; }
.wow[data-wow-delay="0.5s"] { animation-delay: 0.5s; }
.wow[data-wow-delay="0.75s"] { animation-delay: 0.75s; }
.wow.animated { visibility: visible; }

/* ============================================================
   Text character-by-character reveal (text-anime-style-2)
   ============================================================ */
.text-anime-style-2 {
  overflow: hidden;
  word-break: normal;
  overflow-wrap: normal;
  hyphens: none;
}
.text-anime-style-2 .word {
  display: inline-block;
  white-space: nowrap;
}
.text-anime-style-2 .char {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.text-anime-style-2.animated .char {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   Image hover sweep animation (image-anime)
   ============================================================ */
.image-anime {
  position: relative;
  overflow: hidden;
}
.image-anime img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.image-anime::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(45deg);
  transition: all 0.6s linear;
}
.image-anime:hover::after {
  width: 250%;
  height: 250%;
}
.image-anime:hover img {
  transform: scale(1.05);
}

/* ============================================================
   Gallery auto-scroll marquee
   ============================================================ */
@keyframes galleryscroll {
  from { transform: translateX(0); }
  to { transform: translateX(-100%); }
}
.gallery-scrolling-content {
  display: flex;
  gap: 10px;
  animation: galleryscroll 15s linear infinite;
}
.gallery-scrolling-content:hover {
  animation-play-state: paused;
}

/* ============================================================
   Services continuous scroll — left (medium speed)
   ============================================================ */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.services-marquee {
  overflow: hidden;
  width: 100%;
  padding: 60px 0 70px;
}
.services-marquee-track {
  display: flex;
  gap: 32px;
  width: max-content;
  align-items: center;
  animation: scrollLeft 55s linear infinite;
  animation-duration: var(--marquee-duration, 55s);
}
.services-marquee-track:hover {
  animation-play-state: paused;
}
.services-marquee-track .specialty-card {
  flex: 0 0 auto;
}

/* ============================================================
   Conditions continuous scroll — right (medium speed)
   ============================================================ */
@keyframes scrollRight {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}
.conditions-marquee {
  overflow: hidden;
  width: 100%;
  padding: 30px 0 40px;
}
.conditions-marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  align-items: center;
  animation: scrollRight 65s linear infinite;
  animation-duration: var(--marquee-duration, 65s);
}
.conditions-marquee-track:hover {
  animation-play-state: paused;
}
.conditions-marquee-item {
  flex: 0 0 auto;
  display: block;
  text-align: center;
  cursor: pointer;
  transition: transform 0.35s ease;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}
.conditions-marquee-item:focus { outline: none; }
.conditions-marquee-item:focus-visible .condition-marquee-media {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.conditions-marquee-item:hover { transform: translateY(-4px); }
.conditions-marquee-item .condition-marquee-media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px;
  background: linear-gradient(135deg, #EAF7F7 0%, #CFEDED 100%);
  box-shadow: 0 18px 45px -34px rgba(18, 48, 74, .5);
  transition: box-shadow 0.35s ease;
}
.conditions-marquee-item:hover .condition-marquee-media {
  box-shadow: 0 24px 55px -30px rgba(18, 48, 74, .6);
}
/* contain, not cover — these illustrations carry their label inside the
   artwork, so cropping them cuts the text off */
.conditions-marquee-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* "+" badge — signals the card opens more info */
.conditions-marquee-item .condition-marquee-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--primary);
  font-family: var(--font-head);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1;
  box-shadow: 0 6px 18px -6px rgba(18, 48, 74, .55);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s ease, color 0.3s ease;
}
.conditions-marquee-item:hover .condition-marquee-badge,
.conditions-marquee-item:focus-visible .condition-marquee-badge {
  transform: rotate(90deg) scale(1.08);
  background: var(--accent);
  color: var(--white);
}

.conditions-marquee-item .condition-marquee-caption {
  display: block;
  margin: 12px 4px 0;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.35;
  text-wrap: balance;
}

.conditions-marquee-item .condition-marquee-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 8px 0 0;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: background 0.3s ease, border-color 0.3s ease, gap 0.3s ease;
}
.conditions-marquee-item .condition-marquee-cta span {
  transition: transform 0.3s ease;
}
.conditions-marquee-item:hover .condition-marquee-cta,
.conditions-marquee-item:focus-visible .condition-marquee-cta {
  background: var(--accent);
  border-color: var(--accent);
  gap: 10px;
}
.conditions-marquee-item:hover .condition-marquee-cta span,
.conditions-marquee-item:focus-visible .condition-marquee-cta span { transform: translateX(3px); }

@media (min-width: 901px) {
  .conditions-marquee-item { width: clamp(340px, 35vw, 480px); }
  .conditions-marquee-item .condition-marquee-caption { font-size: 1.12rem; }
  .conditions-marquee-item .condition-marquee-cta { font-size: 0.85rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .conditions-marquee-item { width: clamp(300px, 46vw, 400px); }
  .conditions-marquee-item .condition-marquee-media { border-radius: 26px; }
  .conditions-marquee-item .condition-marquee-caption { font-size: 0.98rem; }
}
@media (max-width: 640px) {
  .conditions-marquee-item { width: min(70vw, 250px); }
  .conditions-marquee-item .condition-marquee-media { border-radius: 22px; }
  .conditions-marquee-item .condition-marquee-badge {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    font-size: 1.15rem;
  }
  .conditions-marquee-item .condition-marquee-caption {
    margin: 10px 2px 0;
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .conditions-marquee-item .condition-marquee-cta {
    margin-top: 8px;
    padding: 5px 12px;
    font-size: 0.75rem;
  }
}

/* ============================================================
   Scrolling ticker
   ============================================================ */
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
@keyframes pulsePhone {
  0%, 100% { box-shadow: 0 0 0 0 rgba(21, 154, 156, 0.4); }
  50% { box-shadow: 0 0 0 12px rgba(21, 154, 156, 0); }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Buttons — pill-shaped with circular arrow indicator
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 50px 16px 22px;
  min-height: 52px;
  border-radius: 99px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
  text-align: center;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  text-transform: capitalize;
}
@media (min-width: 901px) {
  .btn { padding: 18px 55px 18px 20px; font-size: 1rem; }
}
.btn::before {
  content: '→';
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  transition: background 0.3s;
}
.btn::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 100%;
  background: var(--primary);
  transition: width 0.4s ease-in-out;
  z-index: -1;
}
.btn:hover::after { width: 106%; }
.btn:hover::before { background: var(--accent); }
.btn:hover { transform: translateY(-3px); color: var(--white); }
.btn:active { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 8px 24px -6px rgba(21, 154, 156, 0.5);
}
.btn-primary:hover {
  box-shadow: 0 14px 36px -6px rgba(21, 154, 156, 0.65);
}
.btn-ghost {
  background: var(--white);
  color: var(--primary);
  border-color: var(--dark-divider);
}
.btn-ghost:hover { border-color: var(--accent); box-shadow: 0 6px 20px -8px rgba(18,48,74,0.2); }
.btn-ghost::after { background: var(--accent); }
.btn-on-dark {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-color: rgba(255,255,255,0.35);
  backdrop-filter: blur(4px);
}
.btn-on-dark:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.6);
  box-shadow: 0 8px 24px -8px rgba(0,0,0,0.3);
}
.btn-on-dark::after { background: var(--accent); }

/* ============================================================
   Topbar — dark teal background
   ============================================================ */
.topbar {
  background: var(--primary);
  color: var(--white);
  font-size: 0.85rem;
  animation: slideDown 0.5s ease;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 8px;
  padding-bottom: 8px;
  gap: 12px;
}
.topbar a { color: rgba(255,255,255,0.85); transition: color 0.2s; }
.topbar a:hover { color: var(--white); }
.topbar .topbar-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar .topbar-links span { opacity: 0.65; margin-right: 6px; }

/* Mobile topbar: hide text, show only Call + WhatsApp buttons */
@media (max-width: 640px) {
  .topbar .topbar-hours,
  .topbar .topbar-faq { display: none; }
  .topbar .container { justify-content: center; gap: 8px; padding-top: 6px; padding-bottom: 6px; overflow: hidden; }
  .topbar .topbar-links { gap: 8px; flex-wrap: wrap; justify-content: center; }
  .topbar .topbar-call,
  .topbar .topbar-wa {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(255,255,255,0.1);
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.78rem;
    transition: background 0.2s;
    flex: 1 1 0;
    min-width: 0;
    min-height: 36px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .topbar .topbar-call:hover,
  .topbar .topbar-wa:hover { background: rgba(255,255,255,0.2); color: var(--white); }
}

/* ============================================================
   Header / nav — bulletproof hamburger
   ============================================================ */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--dark-divider);
  transition: box-shadow 0.3s ease;
}
header.site-header.scrolled {
  box-shadow: 0 18px 46px -30px rgba(18, 48, 74, 0.55);
}

/* On mobile: remove backdrop-filter so the fixed nav overlay can escape the header */
@media (max-width: 900px) {
  header.site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  gap: 12px;
  min-height: 60px;
}

@media (min-width: 641px) {
  .nav-wrap { padding: 12px 24px; gap: 20px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  transition: transform 0.2s ease;
  flex-shrink: 0;
  z-index: 201;
  position: relative;
}
.brand:hover { transform: scale(1.02); }
.brand img { height: 44px; width: 44px; object-fit: contain; }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1.15; overflow: hidden; }
.brand .brand-text strong { font-family: var(--font-head); font-size: 1rem; }
.brand .brand-text span { font-size: 0.68rem; color: var(--text-color); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

@media (min-width: 641px) {
  .brand img { height: 54px; width: 54px; }
  .brand .brand-text strong { font-size: 1.15rem; }
  .brand .brand-text span { font-size: 0.72rem; }
}

/* Desktop nav */
nav.primary-nav {
  display: none;
}
nav.primary-nav ul {
  list-style: none;
  display: flex;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.primary-nav a { color: var(--primary); font-family: var(--font-head); font-weight: 500; font-size: 0.95rem; padding: 8px 0; transition: color 0.25s; position: relative; }
.primary-nav a::after { content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px; background: var(--accent); transition: width 0.3s ease; border-radius: 1px; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav a:hover::after { width: 100%; }

.nav-cta {
  display: none;
  align-items: center;
  gap: 10px;
}

/* Desktop: show nav + cta, hide hamburger */
@media (min-width: 901px) {
  nav.primary-nav { display: block; }
  nav.primary-nav ul { display: flex; }
  nav.primary-nav .nav-cta { display: flex; flex-direction: row; margin-top: 0; padding-top: 0; border-top: none; }
}

/* ============================================================
   Mobile bottom navigation
   ============================================================ */
.mobile-bottom-nav {
  display: none;
}

@media (max-width: 900px) {
  /* Page is hidden behind the fixed bar */
  body {
    padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 150;
    background: rgba(255, 255, 255, 0.97);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--dark-divider);
    box-shadow: 0 -6px 24px -12px rgba(18, 48, 74, 0.28);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .mobile-bottom-nav ul {
    display: grid;
    /* minmax(0,1fr) so a long label like "Appointment" can shrink
       instead of forcing the row wider than the viewport */
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: stretch;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .mobile-bottom-nav li { margin: 0; }

  .mobile-bottom-nav a,
  .mobile-bottom-nav button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 68px;
    padding: 8px 3px;
    background: none;
    border: none;
    border-top: 2px solid transparent;
    color: #5B6B8C;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
  }

  /* Fixed two-line label box so every icon sits on the same baseline
     even when a label wraps ("Book Appointment") */
  .mobile-bottom-nav a > span,
  .mobile-bottom-nav button > span {
    display: block;
    min-height: 2.4em;
    line-height: 1.2;
    text-wrap: balance;
    overflow-wrap: anywhere;
    max-width: 100%;
  }

  .mobile-bottom-nav svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-bottom-nav a.is-active {
    color: var(--primary);
    border-top-color: var(--accent);
  }
  .mobile-bottom-nav a.is-active svg { stroke-width: 2.1; }

  /* Book uses the same accent highlight as any other active tab */
  .mobile-bottom-nav .bn-book.is-active {
    color: var(--primary);
    border-top-color: var(--accent);
  }

  .mobile-bottom-nav .bn-more[aria-expanded="true"] {
    color: var(--primary);
    border-top-color: var(--accent);
  }

  /* "More" sheet */
  .mobile-bottom-more {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 149;
    background: var(--white);
    border-top: 1px solid var(--dark-divider);
    box-shadow: 0 -14px 34px -18px rgba(18, 48, 74, 0.35);
    transform: translateY(12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.22s ease, visibility 0.22s;
  }
  .mobile-bottom-more.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }
  .mobile-bottom-more ul {
    list-style: none;
    margin: 0;
    padding: 6px 0 10px;
  }
  .mobile-bottom-more a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 20px;
    color: var(--primary);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
  }
  .mobile-bottom-more a:active { background: #EAF7F7; }
  .mobile-bottom-more svg {
    width: 19px;
    height: 19px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
  }

  .mobile-bottom-scrim {
    position: fixed;
    inset: 0;
    z-index: 148;
    background: rgba(18, 48, 74, 0.32);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
  }
  .mobile-bottom-scrim.is-open { opacity: 1; visibility: visible; }
}

@media (min-width: 901px) {
  .mobile-bottom-nav,
  .mobile-bottom-more,
  .mobile-bottom-scrim { display: none !important; }
}

/* On mobile the header nav is replaced by the bottom bar */
@media (max-width: 900px) {
  nav.primary-nav { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: linear-gradient(180deg, var(--secondary) 0%, var(--white) 100%);
  overflow: hidden;
  padding: 64px 0 0;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}

@media (min-width: 901px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 48px;
  }
}

.hero .eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--dark-divider);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 18px;
}
.hero .eyebrow-tag .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
}
.hero p.lead { font-size: 1.12rem; max-width: 46ch; }
.hero .hero-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
@media (min-width: 641px) { .hero .hero-actions { flex-direction: row; flex-wrap: wrap; gap: 14px; } }

.hero-media { position: relative; }
.hero-media .frame {
  border-radius: 40% 60% 55% 45% / 45% 40% 60% 55%;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4/4.4;
}
.hero-media .frame img { width: 100%; height: 100%; object-fit: cover; }
.hero-media .floating-card {
  position: absolute;
  bottom: -18px;
  left: -18px;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius-md);
  box-shadow: 0 18px 34px -18px rgba(18,48,74,0.4);
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 240px;
  animation: float 4s ease-in-out infinite;
}
.hero-media .floating-card .icon-circle {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-yellow));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero-media .floating-card strong { display: block; font-size: 0.92rem; color: var(--primary); }
.hero-media .floating-card span { font-size: 0.78rem; color: var(--text-color); }

/* ============================================================
   Trust strip
   ============================================================ */
.trust-strip {
  background: var(--white);
  padding: 0 0 40px;
  border-bottom: 1px solid var(--dark-divider);
}
.trust-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 641px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 901px) {
  .trust-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}

.trust-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 24px 20px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-divider);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trust-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.trust-item .icon-badge {
  width: 56px; height: 56px; border-radius: 16px;
  background: linear-gradient(135deg, var(--secondary), rgba(21,154,156,0.15));
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}
.trust-item:hover .icon-badge { transform: scale(1.08); }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.trust-item p { font-size: 0.88rem; margin: 0; }

/* ============================================================
   Generic section
   ============================================================ */
section { padding: 64px 0; }
@media (min-width: 901px) { section { padding: 84px 0; } }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
@media (min-width: 901px) { .section-head { margin-bottom: 48px; } }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); margin-bottom: 12px; }
.section-head p { font-size: 1.05rem; line-height: 1.7; }
.section-head.left { margin-left: 0; text-align: left; }
.section-bordered { background: var(--secondary); padding: 72px 0; }
.section-no-top-pad { padding-top: 0; }
.accordion-container { max-width: 820px; }

.section-tag {
  display: inline-block;
  color: var(--accent);
  background: var(--secondary);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 10px 20px;
  border-radius: 99px;
  margin-bottom: 14px;
}
.section-tag--light {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.15);
}

/* ============================================================
   Approach steps
   ============================================================ */
.approach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 641px) {
  .approach-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 901px) {
  .approach-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; }
}

.approach-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  padding: 22px 20px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.3s ease,
              border-color 0.3s ease;
  overflow: hidden;
}
.approach-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.approach-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.approach-card:hover::before { transform: scaleX(1); }
.approach-card .step-index {
  font-family: var(--font-head);
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 12px;
  display: block;
}
.approach-card h3 { font-size: 1.05rem; }
.approach-card p { font-size: 0.92rem; margin: 0; }

/* ============================================================
   Cards / grids
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 641px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (min-width: 901px) {
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.service-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.4s ease,
              border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}
@media (min-width: 641px) {
  .service-card { padding: 24px 20px; }
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }
.service-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--secondary);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.3s ease;
}
.service-card:hover .icon-badge { transform: scale(1.08) rotate(-3deg); }
.service-card h3 { margin-bottom: 8px; font-size: 1.08rem; }
.service-card p { font-size: 0.93rem; margin-bottom: 0; }

/* ============================================================
   Gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 140px;
  gap: 8px;
}
@media (min-width: 641px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; gap: 12px; }
}
@media (min-width: 901px) {
  .gallery-grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 190px; gap: 16px; }
}

.gallery-grid figure {
  margin: 0; overflow: hidden; border-radius: var(--radius-sm);
  position: relative;
}
.gallery-grid figure img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.gallery-grid figure:hover img { transform: scale(1.08); }
.gallery-grid figure.tall { grid-row: span 2; }

/* Captions sit on the image and are always visible by default, so touch
   devices (no hover) still get the text. */
.gallery-grid figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, transparent, rgba(13,34,51,0.82));
  color: var(--white);
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 24px 12px 10px;
  transform: translateY(0);
}

/* Only hide the caption behind a hover reveal on devices that can hover */
@media (hover: hover) and (pointer: fine) {
  .gallery-grid figcaption {
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .gallery-grid figure:hover figcaption { transform: translateY(0); }
}

/* ============================================================
   Doctors — circular portrait, 2-up at every breakpoint
   ============================================================ */
.doctor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (min-width: 641px) {
  .doctor-grid { gap: 24px; }
}
@media (min-width: 901px) {
  .doctor-grid { gap: 32px; }
}

.doctor-card {
  --doctor-avatar: 132px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--dark-divider);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 26px 18px 24px;
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 641px) {
  .doctor-card { --doctor-avatar: 176px; padding: 34px 24px 30px; }
}
@media (min-width: 901px) {
  .doctor-card { --doctor-avatar: 216px; padding: 42px 32px 38px; }
}
.doctor-card:hover,
.doctor-card:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -22px rgba(18, 48, 74, 0.28);
}
.doctor-card:focus { outline: none; }
.doctor-card:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* Circular portrait */
.doctor-card .doctor-photo {
  position: relative;
  width: var(--doctor-avatar);
  height: var(--doctor-avatar);
  flex: 0 0 auto;
}
.doctor-card .doctor-photo-ring {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--light-bg, #EAF7F7);
  padding: 5px;
  box-shadow: 0 14px 34px -20px rgba(18, 48, 74, .55);
  transition: box-shadow 0.4s ease, transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.doctor-card:hover .doctor-photo-ring,
.doctor-card:focus-visible .doctor-photo-ring {
  transform: scale(1.04);
  box-shadow: 0 22px 46px -20px rgba(18, 48, 74, .6);
}
.doctor-card .doctor-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.doctor-card:hover .doctor-photo img,
.doctor-card:focus-visible .doctor-photo img { transform: scale(1.08); }

.doctor-card .doctor-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 18px;
}
.doctor-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  text-wrap: balance;
}
@media (min-width: 641px) {
  .doctor-card h3 { font-size: 1.15rem; }
}
@media (min-width: 901px) {
  .doctor-card h3 { font-size: 1.32rem; }
}
.doctor-card .doctor-role {
  display: block;
  margin: 7px 0 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-wrap: balance;
}
@media (min-width: 641px) {
  .doctor-card .doctor-role { font-size: 0.75rem; }
}
@media (min-width: 901px) {
  .doctor-card .doctor-role { font-size: 0.8rem; }
}
/* Single line of supporting info — credentials, clamped to one row */
.doctor-card .doctor-card-meta {
  display: block;
  margin: 10px 0 0;
  max-width: 100%;
  color: var(--text-color);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (min-width: 901px) {
  .doctor-card .doctor-card-meta { font-size: 0.9rem; }
}

.doctor-card .doctor-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 16px 0 0;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--dark-divider);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, gap 0.3s ease;
}
@media (min-width: 901px) {
  .doctor-card .doctor-card-cta { font-size: 0.88rem; padding: 9px 22px; }
}
.doctor-card:hover .doctor-card-cta,
.doctor-card:focus-visible .doctor-card-cta {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
  gap: 10px;
}

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, #12304A 0%, #159A9C 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 641px) {
  .cta-banner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 44px 36px;
    gap: 24px;
  }
}
@media (min-width: 901px) {
  .cta-banner { padding: 60px; }
}
.cta-banner::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  top: -200px; right: -150px;
  pointer-events: none;
}
.cta-banner::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.05), transparent 70%);
  bottom: -100px; left: -80px;
  pointer-events: none;
}
.cta-banner h2 { color: var(--white); margin-bottom: 4px; position: relative; z-index: 1; font-size: clamp(1.3rem, 2.8vw, 2.2rem); }
.cta-banner p { color: rgba(255,255,255,0.8); margin: 0; position: relative; z-index: 1; font-size: 1.05rem; }
.cta-banner .cta-actions { display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; width: 100%; }
@media (min-width: 641px) { .cta-banner .cta-actions { flex-direction: row; width: auto; } }

/* ============================================================
   Tariff table
   ============================================================ */
.tariff-table-wrap {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
table.tariff-table { width: 100%; border-collapse: collapse; min-width: 300px; }
table.tariff-table th, table.tariff-table td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--dark-divider);
  font-size: 0.85rem;
}
@media (min-width: 641px) {
  table.tariff-table th, table.tariff-table td { padding: 14px 18px; font-size: 0.9rem; }
}
@media (min-width: 901px) {
  table.tariff-table th, table.tariff-table td { padding: 15px 24px; font-size: 0.95rem; }
}
table.tariff-table th {
  background: var(--secondary);
  color: var(--primary);
  font-family: var(--font-head);
  font-weight: 600;
}
table.tariff-table tr:last-child td { border-bottom: none; }
table.tariff-table tr { transition: background 0.2s; }
table.tariff-table tbody tr:hover { background: #EAF0FF; }
table.tariff-table td.price { font-weight: 700; color: var(--primary); white-space: nowrap; }
.tariff-note { font-size: 0.85rem; color: var(--text-color); margin-top: 14px; }

/* ============================================================
   Therapy list
   ============================================================ */
.therapy-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 641px) {
  .therapy-list { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}
@media (min-width: 901px) {
  .therapy-list { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}

.therapy-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
@media (min-width: 641px) {
  .therapy-row { gap: 12px; padding: 12px 14px; font-size: 0.9rem; }
}
.therapy-row:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px -8px rgba(18,48,74,0.12);
  border-color: var(--accent);
}
.therapy-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.therapy-row:hover .dot { transform: scale(1.3); }

/* ============================================================
   FAQ accordion
   ============================================================ */
.accordion { display: flex; flex-direction: column; gap: 10px; }
.accordion-item {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.accordion-item.open { border-color: var(--accent); box-shadow: 0 4px 20px -8px rgba(21,154,156,0.35); }
.accordion-item button.accordion-trigger {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 16px;
  font-family: var(--font-head);
  font-size: 0.92rem;
  color: var(--primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: color 0.2s;
  min-height: 52px;
}
@media (min-width: 641px) {
  .accordion-item button.accordion-trigger { padding: 16px 18px; font-size: 0.98rem; }
}
@media (min-width: 901px) {
  .accordion-item button.accordion-trigger { padding: 20px 24px; font-size: 1.02rem; }
}
.accordion-item button.accordion-trigger:hover { color: var(--accent); }
.accordion-item .plus {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--secondary);
  color: var(--accent);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s, color 0.3s;
}
.accordion-item.open .plus { transform: rotate(45deg); background: var(--accent); color: var(--white); }
.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.accordion-panel .inner { padding: 0 16px 16px; font-size: 0.88rem; color: var(--text-color); line-height: 1.65; }
@media (min-width: 641px) {
  .accordion-panel .inner { padding: 0 18px 18px; font-size: 0.93rem; }
}
@media (min-width: 901px) {
  .accordion-panel .inner { padding: 0 24px 22px; font-size: 0.95rem; }
}

/* ============================================================
   Page hero (inner pages)
   ============================================================ */
.page-hero {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  padding: 36px 0 32px;
  position: relative;
  overflow: hidden;
}
@media (min-width: 641px) {
  .page-hero { padding: 48px 0 40px; }
}
@media (min-width: 901px) {
  .page-hero { padding: 70px 0 56px; }
}
.page-hero::before {
  content: '';
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(95,178,74,0.1), transparent 70%);
  bottom: -200px; right: -100px;
  pointer-events: none;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; position: relative; z-index: 1; }
.page-hero p { color: #DCE6FF; max-width: 60ch; margin: 0; position: relative; z-index: 1; }
.breadcrumb { font-size: 0.85rem; color: #B9C9EE; margin-bottom: 14px; position: relative; z-index: 1; }
.breadcrumb a { color: #ffffff; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--accent-yellow); }

/* ============================================================
   About page
   ============================================================ */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 901px) {
  .two-col { grid-template-columns: 1fr 1fr; gap: 48px; }
}
.two-col.reverse .col-media { order: 2; }
@media (max-width: 900px) {
  .two-col.reverse .col-media { order: 0; }
}
.value-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.value-list li { display: flex; gap: 12px; font-size: 0.96rem; color: var(--primary); }
.value-list li .tick {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--secondary); color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.75rem; margin-top: 2px;
}
.col-media img { border-radius: var(--radius-lg); box-shadow: var(--shadow); }

/* ============================================================
   Blog
   ============================================================ */

.blog-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.blog-card .blog-thumb {
  height: 112px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: transform 0.4s ease;
  overflow: hidden;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
@media (min-width: 641px) {
  .blog-card .blog-thumb { height: 124px; }
}
.blog-card:hover .blog-thumb { transform: scale(1.03); }
.blog-card .blog-body { padding: 12px 14px 14px; }
@media (min-width: 641px) {
  .blog-card .blog-body { padding: 14px 16px 16px; }
}
@media (min-width: 901px) {
  .blog-card .blog-body { padding: 16px 18px 18px; }
}
.blog-card .blog-tag {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--accent); margin-bottom: 5px; display: block;
}
.blog-card h3 { font-size: 1rem; margin-bottom: 6px; line-height: 1.32; }
.blog-card p {
  font-size: 0.88rem;
  margin-bottom: 10px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card a.read-more,
.blog-card button.read-more {
  font-weight: 600; font-size: 0.87rem;
  transition: color 0.2s, gap 0.2s;
  display: inline-flex; align-items: center; gap: 4px;
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  font-family: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.blog-card a.read-more:hover,
.blog-card button.read-more:hover { color: var(--primary); gap: 8px; }

/* Clickable blog card */
.blog-card[data-blog-body] {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.blog-card[data-blog-body]:focus { outline: none; }
.blog-card[data-blog-body]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

/* Inline article revealed by "Read More" */
.blog-card-full {
  display: none;
  padding: 14px 16px 4px;
  border-top: 1px solid var(--dark-divider);
  margin: 0 16px;
  padding-left: 0;
  padding-right: 0;
}
.blog-card.is-expanded .blog-card-full { display: block; }
.blog-card .blog-card-full p {
  -webkit-line-clamp: none;
  -webkit-box-orient: horizontal;
  display: block;
  overflow: visible;
  font-size: 0.9rem;
  line-height: 1.7;
  color: #4a5568;
  margin: 0 0 12px;
}
.blog-card-full p:last-child { margin-bottom: 0; }
.blog-card[data-blog-body] .read-more[aria-expanded="true"] {
  color: var(--primary);
  gap: 8px;
}
@media (min-width: 901px) {
  .blog-card-full { padding-top: 16px; margin: 0 18px; }
  .blog-card-full p { font-size: 0.94rem; }
}

/* ---- Blog article modal ---- */
.blog-modal .modal-content { max-width: 640px; }
.blog-modal .blog-modal-thumb {
  height: 168px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(135deg, #159A9C, #D6A84F);
  background-size: cover;
  background-position: center;
}
@media (max-width: 640px) {
  .blog-modal .blog-modal-thumb { height: 124px; }
}
.blog-modal .blog-modal-header { padding: 20px 28px 0; }
.blog-modal .blog-modal-header .blog-tag {
  margin-bottom: 6px;
  font-size: 0.72rem;
}
.blog-modal .blog-modal-header h2 {
  padding: 0;
  background: none;
  color: var(--primary);
  font-size: 1.4rem;
  line-height: 1.28;
  text-shadow: none;
  text-wrap: balance;
}
.blog-modal .modal-body { padding: 16px 28px 6px; }
.blog-modal .blog-modal-body p {
  margin: 0 0 14px;
  font-size: 0.98rem;
  line-height: 1.72;
  color: #4a5568;
}
.blog-modal .blog-modal-body p:last-child { margin-bottom: 0; }
@media (max-width: 640px) {
  .blog-modal .blog-modal-header { padding: 16px 20px 0; }
  .blog-modal .blog-modal-header h2 { font-size: 1.15rem; }
  .blog-modal .modal-body { padding: 14px 20px 4px; }
  .blog-modal .blog-modal-body p { font-size: 0.93rem; line-height: 1.65; }
}

.placeholder-note {
  background: var(--secondary);
  border: 1px dashed var(--accent);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 0.88rem;
  color: var(--primary);
  margin-bottom: 36px;
}

/* ============================================================
   Conditions search + chips
   ============================================================ */
.conditions-search {
  max-width: 480px;
  margin: 0 auto 28px;
}
.search-input {
  width: 100%;
  padding: 14px 20px;
  border: 2px solid var(--dark-divider);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--primary);
  background: var(--white);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.search-input::placeholder { color: var(--text-color); }
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 154, 156, 0.12);
}

.conditions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.condition-chip {
  display: inline-block;
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--primary);
  transition: background 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: default;
  line-height: 1.3;
}
.condition-chip:hover {
  background: var(--secondary);
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px -6px rgba(21, 154, 156, 0.2);
}
.conditions-note {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-color);
  margin-top: 20px;
}

/* ============================================================
   Symptoms grid
   ============================================================ */
.symptoms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
@media (min-width: 641px) {
  .symptoms-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 901px) {
  .symptoms-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
}

.symptom-card {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  padding: 28px 20px;
  min-height: 100px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.symptom-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px -8px rgba(18, 48, 74, 0.14);
  border-color: var(--accent);
}
.symptom-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  line-height: 1.35;
}
@media (min-width: 641px) {
  .symptom-card { padding: 32px 24px; min-height: 110px; }
  .symptom-text { font-size: 1.05rem; }
}

/* ============================================================
   Therapy card grid (cbphysiotherapy.in style)
   ============================================================ */
.therapy-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 641px) {
  .therapy-card-grid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
}
@media (min-width: 901px) {
  .therapy-card-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

.therapy-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.therapy-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.therapy-card-img {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s ease;
}
@media (min-width: 641px) {
  .therapy-card-img { height: 160px; }
}
.therapy-card:hover .therapy-card-img { transform: scale(1.03); }
.therapy-card-emoji {
  font-size: 3rem;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}
.therapy-card-body { padding: 16px; }
@media (min-width: 641px) {
  .therapy-card-body { padding: 18px 20px; }
}
.therapy-card-body h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
  line-height: 1.3;
}
.therapy-card-body p {
  font-size: 0.85rem;
  margin: 0;
  color: var(--text-color);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
@media (min-width: 641px) {
  .therapy-card-body h3 { font-size: 1.02rem; }
  .therapy-card-body p { font-size: 0.88rem; }
}

/* ============================================================
   Home services grid (2-col cards)
   ============================================================ */
.home-services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 641px) {
  .home-services-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}

.home-service-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}
.home-service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.home-service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary);
}
.home-service-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.home-service-list li {
  font-size: 0.88rem;
  color: var(--text-color);
  padding-left: 16px;
  position: relative;
  line-height: 1.5;
}
.home-service-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
@media (min-width: 641px) {
  .home-service-card { padding: 28px 24px; }
  .home-service-list li { font-size: 0.92rem; }
}

/* ============================================================
   Footer
   ============================================================ */
footer.site-footer {
  background: var(--primary);
  color: #DCE6FF;
  padding: 56px 0 24px;
}
@media (min-width: 901px) {
  footer.site-footer { padding: 64px 0 28px; }
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
@media (min-width: 641px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (min-width: 901px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 40px; }
}
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.footer-brand img { height: 48px; width: 48px; object-fit: contain; }
.footer-brand strong { color: var(--white); font-family: var(--font-head); font-size: 1.1rem; }
footer.site-footer h4 {
  color: var(--accent); font-size: 1.1rem; font-weight: 600;
  letter-spacing: 0.02em; margin-bottom: 16px;
}
footer.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
footer.site-footer a { color: #DCE6FF; font-size: 0.92rem; transition: color 0.2s; }
footer.site-footer a:hover { color: var(--accent-yellow); }
footer.site-footer p { color: #B9C9EE; font-size: 0.9rem; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 640px) {
  .footer-bottom { flex-direction: column; text-align: center; gap: 12px; }
}
.footer-bottom a { color: #B9C9EE; transition: color 0.2s; }
.footer-bottom a:hover { color: var(--accent-yellow); }
.social-row { display: flex; gap: 10px; margin-top: 6px; }
.social-row a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, transform 0.2s;
}
.social-row a:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }

/* ============================================================
   Floating contact buttons
   ============================================================ */
.float-contact {
  position: fixed;
  right: 12px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 90;
}
@media (min-width: 641px) {
  .float-contact { right: 18px; top: 50%; bottom: auto; transform: translateY(-50%); gap: 10px; }
}
@media (min-width: 901px) {
  .float-contact { right: 22px; top: 50%; bottom: auto; transform: translateY(-50%); gap: 12px; }
}
.float-contact a {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px -6px rgba(0,0,0,0.35);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s;
}
@media (min-width: 641px) {
  .float-contact a { width: 52px; height: 52px; }
}
@media (min-width: 901px) {
  .float-contact a { width: 58px; height: 58px; }
}
.float-contact a:hover { transform: scale(1.1); box-shadow: 0 12px 32px -4px rgba(0,0,0,0.4); }
.float-phone {
  background: #fff;
  color: var(--accent);
  border: 2px solid var(--accent);
  animation: pulsePhone 2.5s infinite;
}
.float-phone svg path { stroke: var(--accent); }
.float-whatsapp {
  background: #fff;
  color: #25D366;
  border: 2px solid #25D366;
  animation: pulse 2.5s infinite 0.3s;
}
.float-whatsapp svg path { stroke: #25D366; }
.float-contact a svg { pointer-events: none; }

/* ============================================================
   Home hero
   ============================================================ */
.home-hero {
  min-height: clamp(520px, 80vh, 800px);
  padding: 0;
  display: grid;
  place-items: center;
  isolation: isolate;
  background: var(--primary);
}
.hero-background,
.hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-background {
  object-fit: cover; object-position: center 46%; z-index: -2;
  animation: heroBgZoom 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-overlay {
  z-index: -1;
  background: linear-gradient(90deg, rgba(18,48,74,.85), rgba(18,48,74,.60) 52%, rgba(18,48,74,.75));
  animation: heroOverlayFade 1s 0.3s ease forwards;
  opacity: 0;
}
.home-hero .hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  text-align: center;
  padding: 80px 20px 100px;
}
@media (min-width: 901px) {
  .home-hero .hero-content { padding: 72px 24px 86px; gap: 18px; }
}
.hero-kicker {
  color: rgba(255,255,255,.88);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  animation: heroReveal 0.8s 0.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  background: rgba(21, 154, 156, 0.2);
  padding: 8px 20px;
  border-radius: 99px;
  border: 1px solid rgba(21, 154, 156, 0.3);
  display: inline-block;
}
.home-hero h1 { max-width: 900px; margin: 0; color: var(--white); font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 700; line-height: 1.08; }
.home-hero p.lead {
  font-size: 1.15rem; max-width: 540px; color: rgba(255,255,255,0.85); line-height: 1.7;
  margin: 0;
  text-wrap: balance;
  animation: heroReveal 0.8s 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.home-hero .hero-actions {
  justify-content: center; margin-top: 8px;
  animation: heroReveal 0.8s 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 641px) {
  .home-hero .hero-actions { width: auto; max-width: none; flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
.home-hero .hero-actions .btn {
  width: 100%;
}
@media (min-width: 641px) {
  .home-hero .hero-actions .btn { width: auto; }
}
.btn-hero-light { background: var(--white); color: var(--primary); border-color: var(--white); }
.btn-hero-light:hover { box-shadow: 0 14px 30px -16px rgba(0,0,0,.55); }
.home-hero .btn span { font-size: 1.25rem; line-height: 1; }
.hero-scroll {
  position: absolute;
  bottom: 20px;
  display: none;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,.82);
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  animation: float 3s ease-in-out infinite;
}
@media (min-width: 901px) {
  .hero-scroll { display: flex; }
}

/* ============================================================
   Scrolling specialties
   ============================================================ */
.specialties { padding: 64px 0 50px; background: transparent; }
@media (min-width: 901px) { .specialties { padding: 92px 0 76px; } }
.specialties.parallax-section { background: transparent; }

.specialties-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 28px;
  padding: 0;
}
@media (min-width: 901px) {
  .specialties-intro {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    gap: 32px;
    margin-bottom: 38px;
    padding: 0;
  }
}
.specialties-intro > div:first-child { max-width: 700px; }
.specialties-intro h2 { max-width: 620px; }
.specialties-intro p { margin-bottom: 0; max-width: 690px; }

/* Shared alignment and overflow safeguards across every page. */
.nav-wrap,
.topbar .container,
.footer-grid,
.footer-bottom,
.section-head,
.two-col > *,
.cta-banner > *,
.trust-item > div:last-child,
.doctor-body,
.blog-body,
.service-card,
.admin-card-head > * { min-width: 0; }

.section-head,
.specialties-intro,
.page-hero .container { text-wrap: pretty; }

.cta-banner > div:first-child { flex: 1 1 420px; max-width: 700px; }
.cta-banner .cta-actions { flex: 0 0 auto; }

@media (max-width: 640px) {
  .services-marquee { padding: 26px 0 34px; }
  .conditions-marquee { padding: 22px 0 30px; }
  .services-marquee-track,
  .conditions-marquee-track { gap: 14px; }
  .services-marquee-track .specialty-card.card-low,
  .services-marquee-track .specialty-card.card-high { transform: none; }
}

/* Tighter section rhythm — used on the services page below the therapies */
.section--tight { padding: 48px 0; }
.section--tight .section-head { margin-bottom: 28px; }
.section--tight .section-head h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 8px; }
.section--tight .section-head p { font-size: 0.98rem; }
.section--tight .cta-banner { padding: 40px; }

/* ============================================================
   Therapy group cards — all therapies of one kind inside one card
   ============================================================ */

/* Tighten the two therapy sections: they share one background, so a
   full section gap between them reads as empty space. */
.therapies-section { padding: 44px 0; }
.therapies-section--first { padding-top: 48px; }
.therapies-section .section-head { margin-bottom: 30px; }
.therapies-section .section-head h2 { margin-bottom: 8px; }
.therapies-section .section-head p { font-size: 1rem; }

.therapy-group {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 34px -26px rgba(18, 48, 74, 0.4);
}

.therapy-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  background: linear-gradient(135deg, #159A9C 0%, #0E7C7E 100%);
  color: var(--white);
}
.therapy-group--advanced .therapy-group-head {
  background: linear-gradient(135deg, #12304A 0%, #159A9C 100%);
}
.therapy-group-count {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  white-space: nowrap;
}

.therapy-group-list {
  list-style: none;
  margin: 0;
  padding: 6px 22px 22px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.therapy-group-item {
  padding: 16px 0 16px 30px;
  position: relative;
  border-bottom: 1px solid var(--dark-divider);
}
.therapy-group-item:last-child { border-bottom: none; }

/* marker dot */
.therapy-group-item::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 23px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(21, 154, 156, 0.16);
}
.therapy-group--advanced .therapy-group-item::before {
  background: #159A9C;
  box-shadow: 0 0 0 4px rgba(21, 154, 156, 0.18);
}

.therapy-group-item h3 {
  margin: 0 0 5px;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--primary);
}
.therapy-group-item p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.62;
  color: #3E4A63;
  max-width: 62ch;
}

@media (min-width: 768px) {
  .therapy-group-head { padding: 20px 28px; }
  .therapy-group-list { padding: 8px 28px 26px; }
  .therapy-group-item { padding: 17px 0 17px 32px; }
  .therapy-group-item h3 { font-size: 1.08rem; }
  .therapy-group-item p { font-size: 0.95rem; }
}

@media (max-width: 640px) {
  .therapy-group-head { padding: 15px 16px; }
  .therapy-group-count { font-size: 0.72rem; padding: 5px 10px; }
  .therapy-group-list { padding: 4px 16px 18px; }
  .therapy-group-item { padding: 14px 0 14px 26px; }
  .therapy-group-item::before { left: 2px; top: 20px; width: 8px; height: 8px; }
  .therapy-group-item h3 { font-size: 0.97rem; }
  .therapy-group-item p { font-size: 0.88rem; line-height: 1.58; }
}
.specialty-card { width: clamp(300px, 32vw, 460px); flex: 0 0 auto; }

.specialty-card img {
  width: 100%; height: 400px; object-fit: cover; border-radius: 28px;
  pointer-events: none; box-shadow: 0 18px 45px -34px rgba(18,48,74,.5);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s;
}
.specialty-card:hover img { transform: scale(1.04); box-shadow: 0 24px 55px -30px rgba(18,48,74,.6); }
.specialty-card h3 { margin: 12px 4px 0; text-align: center; color: var(--primary); font-size: 1rem; }

@media (min-width: 901px) {
  .specialty-card { width: clamp(340px, 35vw, 480px); }
  .specialty-card img { height: 520px; }
  .specialty-card h3 { font-size: 1.12rem; }
}
@media (min-width: 641px) and (max-width: 900px) {
  .specialty-card { width: clamp(300px, 46vw, 400px); }
  .specialty-card img { height: 430px; border-radius: 26px; }
  .specialty-card h3 { font-size: 0.98rem; }
}
@media (max-width: 640px) {
  .specialty-card { width: min(70vw, 250px); }
  .specialty-card img { height: 300px; border-radius: 22px; }
  .specialty-card h3 { margin: 10px 2px 0; font-size: 0.9rem; line-height: 1.35; }
}
.specialties-footer { text-align: center; padding-top: 8px; }

@media (max-width: 900px) {
  .site-header .nav-wrap { min-height: 60px; }
  .home-hero { min-height: calc(100svh - 120px); }
  .home-hero .hero-content { padding: 70px 20px 100px; }
  .home-hero h1 { font-size: clamp(2rem, 10vw, 3.2rem); }
}

@media (min-width: 901px) {
  .home-hero { min-height: 610px; }
}

body { overflow-x: clip; }

/* ============================================================
   Mobile catch-all — premium no-overlap layout
   ============================================================ */
@media (max-width: 640px) {
  html, body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
  section { padding: 48px 0; }
  .container { padding: 0 20px; }
  .parallax-section { padding: 52px 0; overflow: hidden; }

  /* ---- Typography rhythm: nothing overlaps ---- */
  .section-head { margin-bottom: 28px; }
  .section-head h1, .section-head h2 {
    font-size: clamp(1.4rem, 5.5vw, 1.8rem);
    line-height: 1.25;
    margin-bottom: 10px;
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
    text-wrap: balance;
  }
  .section-head p {
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .section-tag {
    font-size: 0.72rem;
    padding: 6px 14px;
    margin-bottom: 10px;
  }

  /* ---- Buttons: full-width, generous tap targets ---- */
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    font-size: 0.92rem;
    padding: 14px 24px;
    border-radius: var(--radius-md);
    gap: 8px;
    letter-spacing: 0.01em;
  }
  .btn span { font-size: 1.1rem; }
  .btn-primary, .btn-hero-light, .btn-on-dark {
    min-height: 52px;
    font-weight: 600;
  }

  /* Hide the floating arrow circle — use inline span arrow instead */
  .btn::before { display: none; }
  .btn { padding: 14px 24px; position: relative; overflow: hidden; }
  .btn:active { transform: translateY(0); }

  /* ---- Hero ---- */
  .home-hero { min-height: calc(100svh - 120px); }
  .home-hero .hero-content {
    padding: 70px 20px 80px;
    gap: 14px;
  }
  .home-hero h1 {
    font-size: clamp(1.8rem, 8.5vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
  }
  .home-hero p.lead {
    font-size: 0.92rem;
    line-height: 1.65;
    max-width: 48ch;
  }
  .hero-kicker {
    font-size: 0.7rem;
    padding: 7px 16px;
    letter-spacing: 0.12em;
  }
  .home-hero .hero-actions {
    width: 100%;
    max-width: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 4px;
  }
  .home-hero .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  /* ---- Trust strip ---- */
  .trust-strip { padding: 0 0 20px; }
  .trust-grid { gap: 12px; }
  .trust-item {
    padding: 16px;
    gap: 12px;
    border-radius: var(--radius-md);
  }
  .trust-item .icon-badge {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 12px;
  }
  .trust-item h3 { font-size: 0.95rem; margin-bottom: 2px; line-height: 1.3; }
  .trust-item p { font-size: 0.82rem; line-height: 1.5; }

  /* ---- CTA banner ---- */
  .cta-banner {
    flex-direction: column;
    gap: 20px;
    padding: 32px 20px;
    border-radius: var(--radius-md);
    text-align: center;
    align-items: center;
  }
  .cta-banner h2 {
    font-size: clamp(1.25rem, 5vw, 1.6rem);
    line-height: 1.2;
    margin-bottom: 6px;
  }
  .cta-banner p {
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0;
  }
  .cta-banner .cta-actions {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }
  .cta-banner .cta-actions .btn { width: 100%; }

  /* ---- Gallery grid ---- */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 190px;
    gap: 10px;
  }
  .gallery-grid figure.tall { grid-row: span 2; }
  .gallery-grid figcaption {
    font-size: 0.72rem;
    line-height: 1.3;
    padding: 20px 9px 8px;
  }

  /* ---- Blog grid ---- */
  .blog-grid { gap: 14px; }
  .blog-card { border-radius: var(--radius-md); }
  .blog-card .blog-img { height: 160px; }
  .blog-body { padding: 16px; }
  .blog-body h3 { font-size: 1rem; line-height: 1.3; margin-bottom: 6px; }
  .blog-body p { font-size: 0.85rem; line-height: 1.55; }
  .blog-link { font-size: 0.82rem; }

  /* ---- FAQ ---- */
  .faq-list { gap: 10px; }
  .faq-item {
    padding: 16px;
    border-radius: var(--radius-md);
  }
  .faq-item summary {
    font-size: 0.92rem;
    line-height: 1.4;
    padding-right: 28px;
  }
  .faq-item p { font-size: 0.85rem; line-height: 1.6; margin-top: 10px; }

  /* ---- Footer ---- */
  .footer-grid { gap: 28px; }
  .footer-brand { margin-bottom: 10px; }
  .footer-brand img { height: 40px; width: 40px; }
  .footer-brand strong { font-size: 1rem; }
  footer.site-footer h4 { font-size: 0.88rem; margin-bottom: 10px; }
  footer.site-footer a { font-size: 0.85rem; }
  footer.site-footer p { font-size: 0.82rem; line-height: 1.55; }

  /* ---- Social row ---- */
  .social-row { flex-wrap: wrap; gap: 10px; }

  /* ---- Brand must not overflow ---- */
  .brand { max-width: calc(100vw - 90px); }

  /* ---- Doctor cards ---- */
  .doctor-card { --doctor-avatar: 120px; padding: 22px 14px 20px; }

  /* ---- Conditions chips ---- */
  .conditions-grid { gap: 8px; }
  .condition-chip { padding: 6px 12px; font-size: 0.8rem; }

  /* ---- Symptoms grid ---- */
  .symptoms-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .symptom-card { padding: 18px 14px; min-height: 80px; }
  .symptom-text { font-size: 0.85rem; }

  /* ---- Search input ---- */
  .search-input { padding: 12px 16px; font-size: 0.9rem; }

  /* ---- Home services ---- */
  .home-services-grid { grid-template-columns: 1fr; }
  .home-service-card { padding: 16px; }
  .home-service-card h3 { font-size: 0.9rem; }
  .home-service-list li { font-size: 0.82rem; }

  /* ---- Therapy cards ---- */
  .therapy-card-img { height: 130px; }
  .therapy-card-emoji { font-size: 2.4rem; }
  .therapy-card-body { padding: 14px; }
  .therapy-card-body h3 { font-size: 0.92rem; }
  .therapy-card-body p { font-size: 0.82rem; -webkit-line-clamp: 2; }

  /* ---- Service type cards ---- */
  .service-types-grid { grid-template-columns: 1fr; gap: 14px; }
  .service-type-card { padding: 24px 18px; }
  .service-type-icon { width: 56px; height: 56px; }

  /* ---- Process cards ---- */
  .process-grid { grid-template-columns: 1fr; gap: 14px; }
  .process-card { padding: 20px 16px; }
  .process-number { font-size: 1.8rem; }
  .process-card h3 { font-size: 0.95rem; }
  .process-card h4 { font-size: 0.8rem; }
  .process-card p { font-size: 0.84rem; }

  /* ---- Two-col split ---- */
  .two-col-split { gap: 16px; }
  .two-col-left h2, .two-col-right h2 { font-size: 1.05rem; }
  .two-col-left p, .two-col-right p { font-size: 0.82rem; }
  .condition-card-name { font-size: 0.82rem; }
  .condition-card-overlay { padding: 20px 10px 11px; }
  .conditions-search .search-input { font-size: 0.85rem; padding: 10px 14px; }

  /* ---- Page hero ---- */
  .page-hero h1 { font-size: clamp(1.4rem, 6vw, 2rem); }

  /* ---- Approach cards ---- */
  .approach-card { padding: 18px 16px; }

  /* ---- Prevent any child from overflowing its parent ---- */
  .parallax-content, .parallax-section > .container {
    overflow-wrap: break-word;
    word-wrap: break-word;
    min-width: 0;
  }
  img, video, svg { max-width: 100%; height: auto; }
}

/* Extra-small: tighten further on tiny screens */
@media (max-width: 380px) {
  .home-hero h1 { font-size: clamp(1.5rem, 9vw, 2rem); }
  .home-hero .hero-content { padding: 56px 16px 64px; gap: 10px; }
  .hero-kicker { font-size: 0.65rem; padding: 5px 12px; }
  .trust-item { padding: 12px; gap: 8px; }
  .cta-banner { padding: 24px 16px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 160px; }
  .gallery-grid figure.tall { grid-row: span 2; }
}

/* ============================================================
   Service type cards (cbphysiotherapy.in style)
   ============================================================ */
.section-dark {
  background: var(--primary);
  padding: 56px 0;
}
.service-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .service-types-grid { grid-template-columns: 1fr; gap: 16px; }
}
.service-type-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  text-align: center;
  color: var(--white);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background 0.3s;
}
.service-type-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,0.14);
}
.service-type-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #7ee8a8;
}
.service-type-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: var(--white);
}
.service-type-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin: 0;
  line-height: 1.55;
}

/* ============================================================
   Process section (cbphysiotherapy.in 4-step style)
   ============================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 900px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
  .process-grid { grid-template-columns: 1fr; }
}
.process-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  padding: 28px 22px;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.process-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.process-number {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 2.8rem;
  font-weight: 800;
  color: rgba(21,154,156,0.16);
  line-height: 1;
}
.process-icon {
  font-size: 2rem;
  margin-bottom: 14px;
}
.process-card h3 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: var(--primary);
}
.process-card h3 span {
  font-size: 0.82rem;
  color: var(--text-color);
  font-weight: 400;
}
.process-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 10px;
}
.process-card p {
  font-size: 0.88rem;
  color: var(--text-color);
  margin: 0;
  line-height: 1.6;
}

/* ============================================================
   Blog grid — two posts per row at every breakpoint
   ============================================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  /* expanded cards should not stretch their row-mates */
  align-items: start;
}
@media (max-width: 900px) {
  .blog-grid { gap: 18px; }
}
@media (max-width: 640px) {
  .blog-grid { gap: 14px; }
}
.blog-card {
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}
.blog-img {
  height: 200px;
  overflow: hidden;
}
.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-img img { transform: scale(1.04); }
.blog-body { padding: 18px 20px; }
.blog-date {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.blog-body h3 {
  font-size: 1rem;
  margin: 8px 0;
  line-height: 1.35;
}
.blog-body p {
  font-size: 0.88rem;
  color: var(--text-color);
  margin: 0 0 12px;
  line-height: 1.55;
}
.blog-link {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-link:hover { color: var(--accent); }

/* ============================================================
   Two-column split (conditions + services side by side)
   ============================================================ */
.two-col-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.two-col-left,
.two-col-right {
  min-width: 0;
}
.two-col-left h2,
.two-col-right h2 {
  font-size: 1.4rem;
  margin: 10px 0;
}
.two-col-left p,
.two-col-right p {
  font-size: 0.9rem;
  color: var(--text-color);
  margin-bottom: 16px;
  line-height: 1.55;
}
/* ============================================================
   Condition cards with images (2-col big cards)
   ============================================================ */
.conditions-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}
@media (min-width: 768px) {
  .conditions-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .conditions-card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .conditions-card-grid { gap: 14px 12px; }
}

.condition-card--img {
  position: relative;
  display: block;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  background: linear-gradient(135deg, #EAF7F7 0%, #CFEDED 100%);
  padding: 0;
  text-align: center;
  font-family: inherit;
  color: var(--primary);
  aspect-ratio: 4 / 3;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}
@media (min-width: 641px) {
  .condition-card--img { border-radius: var(--radius-lg); }
}
.condition-card--img:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -12px rgba(18, 48, 74, 0.28);
}

/* contain, not cover — the label is part of these illustrations, so
   cropping them cuts the words off */
.condition-card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.condition-card-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(18, 48, 74, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  min-height: 46px;
}
.condition-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
  text-wrap: balance;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

@media (min-width: 641px) {
  .condition-card-name { font-size: 1.05rem; }
}
@media (max-width: 640px) {
  .condition-card-name { font-size: 0.82rem; padding: 0 4px; }
  .condition-card-overlay { padding: 10px 8px; min-height: 40px; }
}

/* ============================================================
   Condition detail modal — image + symptoms
   ============================================================ */
.condition-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 20px;
}
.condition-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 40px 100px -30px rgba(18, 48, 74, 0.5);
  transform: translateY(30px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.condition-modal.is-open .modal-content {
  transform: translateY(0) scale(1);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: none;
  background: rgba(0,0,0,0.35);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 3;
}
.modal-close:hover { background: rgba(0,0,0,0.55); }
.modal-header {
  position: relative;
}
.modal-img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
  border-radius: var(--radius-lg, 20px) var(--radius-lg, 20px) 0 0;
}
/* Condition modal only — title overlays the bottom of the photo */
#condition-modal .modal-header h2 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px 28px 20px;
  margin: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, transparent 100%);
  color: #fff;
  font-size: 1.35rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.modal-body {
  padding: 28px;
}
.modal-body h3 {
  font-size: 1.05rem;
  margin: 0 0 16px;
  color: var(--dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-body h3::before {
  content: '';
  width: 4px;
  height: 20px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.modal-symptoms-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.modal-symptoms-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #EAF7F7 0%, #D8EFEF 100%);
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--dark);
  border-left: 3px solid var(--accent);
}
.modal-symptoms-list li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21,154,156,0.14);
  border-radius: 50%;
}
.modal-footer {
  padding: 12px 28px 28px;
  text-align: center;
}

/* Doctor modal */
/* Doctor modal — stacked layout: photo, then name and role on white */
#doctor-modal .modal-header h2 {
  position: static;
  padding: 22px 28px 0;
  margin: 0;
  background: none;
  color: var(--primary);
  font-size: 1.45rem;
  line-height: 1.25;
  text-shadow: none;
  text-wrap: balance;
}
@media (min-width: 641px) {
  #doctor-modal .modal-header h2 { font-size: 1.6rem; }
}
#doctor-modal .modal-header .doctor-role {
  display: block;
  padding: 6px 28px 22px;
  margin: 0;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
#doctor-modal .modal-body {
  border-top: 1px solid var(--dark-divider);
  padding: 24px 28px;
}
#doctor-modal .modal-body .credentials {
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}
#doctor-modal .modal-body p {
  font-size: 1rem;
  line-height: 1.7;
  color: #4a5568;
  margin: 0;
}

/* Doctor card click-to-open — hover handled by the main .doctor-card rules above */

@media (max-width: 640px) {
  .modal-content { max-height: 92vh; border-radius: 16px; }
  .modal-img { height: 200px; border-radius: 16px 16px 0 0; }
  #condition-modal .modal-header h2 { font-size: 1.1rem; padding: 30px 20px 16px; }
  .modal-body { padding: 20px; }
  .modal-footer { padding: 8px 20px 24px; }
  .modal-symptoms-list li { font-size: 0.88rem; padding: 12px 14px; gap: 12px; }
  #doctor-modal .modal-header h2 { font-size: 1.2rem; padding: 18px 20px 0; }
  #doctor-modal .modal-header .doctor-role { padding: 5px 20px 18px; font-size: 0.85rem; }
  #doctor-modal .modal-body { padding: 20px; }
}


/* ============================================================
   Desktop navigation refinement + premium motion
   ============================================================ */
@media (min-width: 901px) {
  header.site-header {
    background: rgba(255, 255, 255, 0.88);
    border-bottom-color: rgba(225, 232, 238, 0.78);
    box-shadow: 0 1px 0 rgba(18, 48, 74, 0.03);
  }

  header.site-header.scrolled {
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 46px -30px rgba(18, 48, 74, 0.55);
  }

  .nav-wrap {
    width: 100%;
    max-width: 1380px;
    min-height: 76px;
    margin: 0 auto;
    padding: 10px clamp(20px, 3vw, 44px);
  }

  .brand { gap: 9px; }
  .brand img { width: 48px; height: 48px; }
  .brand .brand-text strong { font-size: 1.05rem; }
  .brand .brand-text span { font-size: 0.66rem; }

  nav.primary-nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(14px, 2vw, 30px);
    min-width: 0;
  }

  nav.primary-nav ul {
    align-items: center;
    gap: clamp(12px, 1.45vw, 24px);
    white-space: nowrap;
  }

  nav.primary-nav a:not(.btn) {
    position: relative;
    padding: 10px 0;
    border-bottom: 0;
    font-size: clamp(0.8rem, 0.9vw, 0.94rem);
  }

  nav.primary-nav a:not(.btn)::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 4px;
    left: 0;
    height: 2px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--accent), var(--accent));
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  }

  nav.primary-nav a:not(.btn):hover::after,
  nav.primary-nav a:not(.btn).active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  nav.primary-nav .nav-cta {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
  }

  nav.primary-nav .nav-cta .btn {
    min-height: 42px;
    padding: 10px clamp(14px, 1.45vw, 22px);
    font-size: clamp(0.78rem, 0.82vw, 0.9rem);
  }
}

@media (min-width: 1180px) {
  .brand { gap: 11px; }
  .brand img { width: 54px; height: 54px; }
  .brand .brand-text strong { font-size: 1.15rem; }
  .brand .brand-text span { font-size: 0.72rem; }
  .nav-wrap { min-height: 82px; }
}

/* GPU-composited hero depth. Values are updated by main.js. */
.home-hero { --hero-parallax-y: 0px; --hero-parallax-x: 0px; --content-parallax-y: 0px; }
.home-hero .hero-background {
  transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0) scale(1.12);
  animation: premiumHeroIn 1.65s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform;
}
.home-hero .hero-content {
  transform: translate3d(0, var(--content-parallax-y), 0);
  will-change: transform;
}
.home-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 20%, rgba(255,255,255,0.09) 43%, transparent 63%);
  transform: translateX(-120%);
  animation: heroLightSweep 1.8s 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes premiumHeroIn {
  from { opacity: 0.35; transform: translate3d(0, 18px, 0) scale(1.2); filter: saturate(0.75); }
  to { opacity: 1; transform: translate3d(var(--hero-parallax-x), var(--hero-parallax-y), 0) scale(1.12); filter: saturate(1); }
}
@keyframes heroLightSweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

.premium-reveal {
  opacity: 0;
  transform: translate3d(0, 44px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
    filter 0.7s ease;
  transition-delay: var(--reveal-delay, 0ms);
}
.premium-reveal.is-premium-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

@media (prefers-reduced-motion: reduce) {
  .home-hero .hero-background,
  .home-hero .hero-content { transform: none !important; animation: none !important; }
  .home-hero::after { display: none; }
  .premium-reveal { opacity: 1; transform: none; filter: none; }
}


/* ============================================================
   What We Treat directory page
   ============================================================ */
.treat-page { background: var(--white); }
.treat-intro {
  padding: 66px 0 36px;
  text-align: center;
  background: var(--white);
}
.treat-intro .container { max-width: 1120px; }
.treat-intro .section-tag { margin-bottom: 16px; }
.treat-intro h1 {
  margin: 0 0 24px;
  color: #0A1F44;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0;
}
.treat-intro p {
  max-width: 1080px;
  margin: 0 auto;
  color: var(--primary);
  font-size: clamp(0.95rem, 1.3vw, 1.12rem);
}
.treat-directory { padding: 34px 0 92px; background: var(--white); }
.treat-panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px 28px;
}
.treat-panel {
  min-width: 0;
  padding: 28px 30px 24px;
  border: 1px solid #9DB9FF;
  border-radius: 28px;
  background: var(--secondary);
  box-shadow: 0 18px 38px -34px rgba(18, 48, 74, 0.42);
}
.treat-panel h2 {
  margin: 0 0 18px;
  color: #0A1F44;
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  text-align: center;
}
.treat-list {
  height: 210px;
  overflow-y: auto;
  padding: 0 12px 0 0;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
  overscroll-behavior: contain;
}
.treat-list::-webkit-scrollbar { width: 6px; }
.treat-list::-webkit-scrollbar-track { background: transparent; }
.treat-list::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 999px; }
.treat-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 46px;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
}
.treat-list-icon {
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s;
}
.treat-list-item:hover .treat-list-icon { transform: translateX(4px); background: var(--primary); }

@media (max-width: 1100px) and (min-width: 901px) {
  nav.primary-nav { gap: 10px; }
  nav.primary-nav ul { gap: 10px; }
  nav.primary-nav .nav-cta .btn:first-child { display: none; }
}
@media (max-width: 760px) {
  .treat-intro { padding: 48px 0 24px; }
  .treat-intro h1 { margin-bottom: 18px; font-size: clamp(2rem, 11vw, 3.2rem); }
  .treat-directory { padding: 20px 0 56px; }
  .treat-panel-grid { grid-template-columns: 1fr; gap: 18px; }
  .treat-panel { padding: 24px 20px 20px; border-radius: 20px; }
  .treat-list { height: 190px; }
  .treat-list-item { min-height: 44px; font-size: 0.94rem; }
}

/* ============================================================
   Appointment booking page
   ============================================================ */
.appt-section {
  padding: 48px 0 72px;
  background: var(--white);
}

.appt-title {
  text-align: center;
  font-size: clamp(1.9rem, 5vw, 2.7rem);
  margin-bottom: 28px;
}
.appt-title span { color: var(--accent); }

.appt-card {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 32px 26px 36px;
}

.appt-subtitle {
  text-align: center;
  font-size: 1.35rem;
  margin-bottom: 28px;
}

.appt-field { margin-bottom: 18px; }

.appt-field > label {
  display: block;
  font-size: 1rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.appt-field input,
.appt-field select,
.appt-field textarea {
  width: 100%;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--dark-divider);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.appt-field textarea {
  resize: vertical;
  min-height: 76px;
  line-height: 1.5;
}

.appt-field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%2357697a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.appt-field input::placeholder,
.appt-field textarea::placeholder { color: #8b9aa8; }

.appt-field input:focus,
.appt-field select:focus,
.appt-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(21, 154, 156, 0.22);
}

.appt-field input.has-error,
.appt-field select.has-error,
.appt-field textarea.has-error { border-color: #d24b4b; }

.appt-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.appt-error {
  display: block;
  min-height: 1em;
  margin-top: 5px;
  font-size: 0.85rem;
  color: #d24b4b;
}

.appt-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #57697a;
  background: #f2f6fb;
  border: 1px solid rgba(18, 48, 74, 0.1);
  border-radius: 8px;
  padding: 8px 12px;
}

.appt-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px 0 4px;
}
.appt-consent input {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: var(--accent);
}
.appt-consent label {
  font-size: 0.98rem;
  color: var(--primary);
  line-height: 1.5;
}

.appt-submit {
  width: 100%;
  margin-top: 14px;
  padding: 15px 20px;
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  background: var(--accent);
  border: 0;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.appt-submit:hover { background: #0E7C7E; transform: translateY(-2px); }
.appt-submit:active { transform: translateY(0); }

.appt-success {
  margin: 18px 0 0;
  padding: 14px 16px;
  background: var(--secondary);
  border: 1px solid rgba(21, 154, 156, 0.45);
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-weight: 500;
}

@media (max-width: 520px) {
  .appt-card { padding: 24px 18px 30px; border-radius: var(--radius-md); }
  .appt-row { grid-template-columns: 1fr; }
}

.appt-extra-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(18, 48, 74, 0.12);
}
.appt-extra-links .btn {
  padding: 13px 26px;
  min-height: 46px;
  font-size: 0.9rem;
  border-color: var(--accent);
  color: var(--primary);
}
.appt-extra-links .btn:hover { background: var(--accent); color: var(--white); }
.appt-extra-links .btn-primary { background: var(--primary); color: var(--white); border-color: var(--primary); }
.appt-extra-links .btn-primary:hover { background: var(--accent); border-color: var(--accent); }

@media (max-width: 520px) {
  .appt-extra-links .btn { flex: 1 1 100%; }
}

main > section { padding: 72px 0; }
main > section:first-child { padding-top: 0; }

/* ============================================================
   Parallax system
   ============================================================ */
.parallax-section {
  position: relative;
  overflow: hidden;
  z-index: 0;
}
.parallax-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
  z-index: -2;
  transition: transform 0.1s linear;
}
.parallax-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.parallax-overlay--dark {
  background: linear-gradient(180deg, rgba(18,48,74,0.82) 0%, rgba(18,48,74,0.72) 100%);
}
.parallax-overlay--gradient {
  background: linear-gradient(135deg, rgba(18,48,74,0.88) 0%, rgba(21,154,156,0.75) 100%);
}
.parallax-overlay--soft {
  background: linear-gradient(180deg, rgba(232,238,255,0.92) 0%, rgba(232,238,255,0.85) 100%);
}
.parallax-content {
  position: relative;
  z-index: 1;
}

/* Parallax float elements — decorative shapes that drift on scroll */
.parallax-float {
  position: absolute;
  border-radius: 50%;
  opacity: 0.08;
  pointer-events: none;
  will-change: transform;
  z-index: -1;
  filter: blur(40px);
}

/* Section wave divider — creates organic shape between sections */
.wave-divider {
  width: 100%;
  height: 80px;
  position: relative;
  z-index: 2;
  margin-top: -1px;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Parallax section internal spacing when parallax-content wraps */
.parallax-section .parallax-content {
  position: relative;
  z-index: 1;
}
.parallax-section .parallax-content + .parallax-content {
  margin-top: 0;
}

/* ============================================================
   Mobile parallax fixes
   ============================================================ */
@media (max-width: 767px) {
  .parallax-section {
    overflow: hidden;
  }
  .parallax-bg {
    position: absolute;
    inset: -10%;
    width: 120%;
    height: 120%;
    transform: scale(1.15) !important;
    transition: none !important;
  }
  .parallax-float {
    opacity: 0.04;
    filter: blur(30px);
  }
  .parallax-section .parallax-content {
    padding: 40px 16px;
  }
  .parallax-section .section-head {
    margin-bottom: 20px;
  }
  .parallax-section .section-head h2 {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
  }
  .reveal-slide-left,
  .reveal-slide-right {
    transform: translateY(40px);
  }
  .reveal-slide-left.is-revealed,
  .reveal-slide-right.is-revealed {
    transform: translateY(0);
  }
}

/* ============================================================
   Section page transitions — scroll-triggered reveals
   ============================================================ */
.section-transition {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-transition.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Zoom-in reveal */
.reveal-zoom {
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-zoom.is-revealed {
  opacity: 1;
  transform: scale(1);
}

/* Slide from left */
.reveal-slide-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-left.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Slide from right */
.reveal-slide-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-slide-right.is-revealed {
  opacity: 1;
  transform: translateX(0);
}

/* Rotate-in reveal */
.reveal-rotate {
  opacity: 0;
  transform: perspective(800px) rotateY(-12deg) translateX(-40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-rotate.is-revealed {
  opacity: 1;
  transform: perspective(800px) rotateY(0) translateX(0);
}

/* Flip-in reveal */
.reveal-flip {
  opacity: 0;
  transform: perspective(800px) rotateX(15deg) translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-flip.is-revealed {
  opacity: 1;
  transform: perspective(800px) rotateX(0) translateY(0);
}

/* Blur reveal */
.reveal-blur {
  opacity: 0;
  filter: blur(12px);
  transform: translateY(30px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease;
}
.reveal-blur.is-revealed {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

/* Stagger delays for children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children > *:nth-child(8) { transition-delay: 560ms; }

/* Stats counter strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: center;
}
.stat-item h3 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white);
  margin-bottom: 4px;
  font-weight: 700;
}
.stat-item p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.8);
  margin: 0;
}

/* Testimonial card */
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid var(--dark-divider);
  position: relative;
}
.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 4rem;
  color: var(--accent);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}
.testimonial-card p {
  font-size: 1.05rem;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 16px;
  color: var(--primary);
}
.testimonial-card .author {
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .stats-strip { grid-template-columns: 1fr; gap: 16px; }
  .stat-item h3 { font-size: 2rem; }
}

/* ============================================================
   DIGITAL PARTNER
   Two placements, both static content driven by the CMS:
     .partner-block  inside the hero, below the Book Appointment button
     .partner-pill   a pill directly above the footer
   Both use the same four editable values, so the client only sets them once.
   ============================================================ */
.partner-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
}
.partner-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.72);
  margin: 0;
}
.partner-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: #ffffff;
}
.partner-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 170px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  padding: 5px 12px;
}
.partner-logo-link {
  display: inline-block;
  border-radius: 8px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}
.partner-logo-link:hover,
.partner-logo-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.45);
}
.partner-logo-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ---------- the pill above the footer ---------- */
.partner-pill-wrap {
  background: var(--white);
  padding: 30px 0;
}
.partner-pill {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 16px;
  margin: 0 auto;
  padding: 12px 24px;
  border: 1px solid var(--dark-divider);
  border-radius: 999px;
  background: var(--secondary);
  box-shadow: var(--shadow);
  text-align: center;
}
.partner-pill-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--text-color);
  margin: 0;
}
.partner-pill-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}
.partner-pill-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary);
}
@media (max-width: 640px) {
  .partner-block { margin-top: 20px; gap: 8px 12px; }
  .partner-logo { height: 32px; padding: 4px 10px; }
  .partner-name { font-size: 0.92rem; }
  .partner-label { font-size: 0.64rem; }
  .partner-pill-wrap { padding: 22px 0; }
  .partner-pill { padding: 10px 18px; gap: 8px 12px; }
  .partner-pill-logo { height: 28px; }
  .partner-pill-name { font-size: 0.92rem; }
}