/* Homepage-only reference composition. Finalized shell and hero are untouched. */
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/editorial-1.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Libre Baskerville";
  src: url("../fonts/editorial-2.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/editorial-3.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/editorial-4.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/editorial-5.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/editorial-6.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
.rd-section {
  --font-body: "Source Sans 3", Arial, sans-serif;
  --font-heading: "Libre Baskerville", Georgia, serif;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1rem + 0.15vw, 1.2rem);
  line-height: 1.6;
}
.rd-section h2,
.rd-section h3 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.3;
}
.rd-section h2 {
  font-size: clamp(1.7rem, 1.2rem + 1.55vw, 2.65rem);
  margin: 0 0 24px;
}
.rd-section h3 {
  font-size: clamp(1.3rem, 1.05rem + 0.7vw, 1.75rem);
}
.rd-section p {
  margin: 0 0 22px;
}
.rd-section a {
  transition:
    background-color 0.2s,
    color 0.2s;
}
.rd-section :focus-visible,
.rd-lightbox :focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 4px;
}
.rd-button,
.rd-treatments .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 10px 25px;
  background: var(--color-primary);
  color: #fff;
  border: 0;
  border-radius: 6px;
  font:
    600 1.05rem/1.4 "Source Sans 3",
    sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
  box-shadow: none;
  transition: background-color 0.2s;
}
.rd-button:hover,
.rd-treatments .btn:hover {
  background: var(--color-primary-hover);
  color: white;
  transform: none;
}
.rd-treatments {
  padding-block: 64px;
}
.rd-treatments .container {
  max-width: 1360px;
}
.rd-treatments .treatments__grid {
  gap: 32px;
}
.rd-treatments .treat-card {
  background: white;
  border: 0;
  box-shadow: none;
  border-radius: 0;
}
.rd-treatments .treat-card__media {
  border-radius: 0;
  aspect-ratio: 3/2;
}
.rd-treatments .treat-card__body {
  padding: 24px 0 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.rd-treatments .treat-card__body .btn {
  width: 100%;
  margin-top: auto;
}
.rd-treatments .section-head {
  margin-bottom: 40px;
}
.rd-treatments .treat-card__title {
  font-weight: 400;
}
.rd-more-services {
  padding: 0 0 40px;
}
.rd-more-services > .container {
  max-width: 1360px;
}
.rd-more-services summary {
  color: var(--color-primary);
  font-weight: 600;
  padding: 18px 0;
  cursor: pointer;
  font-size: 1.15rem;
}
.rd-more-services .nh-grid {
  padding-top: 20px;
}
.rd-more-services .nh-card {
  box-shadow: none;
  border-radius: 0;
}
.rd-more-services .nh-card__title {
  font-weight: 400;
}
.rd-treatments .treat-card {
  flex-direction: column;
}
.rd-treatments .treat-card__body {
  align-items: stretch;
  text-align: left;
}
.rd-treatments .treat-card__media {
  flex: auto;
}
.rd-treatments .treat-card__media img {
  aspect-ratio: 3/2;
  height: 100%;
  object-fit: cover;
}
.rd-lightbox .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rd-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-primary);
  color: white;
  min-height: 440px;
}
.rd-split__copy {
  padding: clamp(32px, 4vw, 70px) clamp(24px, 3vw, 48px);
  align-self: center;
  max-width: 760px;
  width: 100%;
  margin-inline: auto;
}
.rd-split h2 {
  color: white;
  font-size: clamp(1.65rem, 1.1rem + 1.4vw, 2.3rem);
}
.rd-split__copy p:last-of-type {
  margin-bottom: 28px;
}
.rd-split__image {
  min-width: 0;
  min-height: 100%;
}
.rd-split__image img {
  width: 100%;
  height: 100%;
  max-height: 640px;
  display: block;
  object-fit: cover;
}
.rd-split .rd-button {
  background: var(--color-gold);
  color: var(--color-primary-deep);
  width: 100%;
}
.rd-split .rd-button:hover {
  background: #9ed34a;
}
.rd-split__image {
  position: relative;
  min-height: 440px;
}
.rd-split__image img {
  position: absolute;
  inset: 0;
  max-height: none;
}
.rd-split--reverse .rd-split__image {
  grid-column: 1;
  grid-row: 1;
}
.rd-split--reverse .rd-split__copy {
  grid-column: 2;
}
.rd-split--light {
  background: var(--color-cream);
  color: var(--color-text);
}
.rd-split--light h2 {
  color: var(--color-primary);
}
.rd-split--light .rd-button {
  background: var(--color-primary);
  color: white;
}
.rd-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--color-cream);
  margin-top: 64px;
}
.rd-pair > section {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.rd-pair__image {
  aspect-ratio: 1.65;
  overflow: hidden;
}
.rd-pair__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.rd-pair__copy {
  padding: 30px 32px 36px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.rd-pair h2 {
  font-size: clamp(1.7rem, 1.1rem + 1.4vw, 2.3rem);
}
.rd-pair .rd-button {
  width: 100%;
  margin-top: auto;
}
.rd-pair__copy p:last-of-type {
  margin-bottom: 26px;
}
.rd-centered {
  text-align: center;
  padding: 58px 24px;
}
.rd-narrow {
  max-width: 900px;
  margin-inline: auto;
}
.rd-profile .rd-button {
  margin-top: 8px;
}
.rd-small {
  font-size: 0.95rem !important;
  line-height: 1.55;
}
.rd-profile .rd-small {
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}
.rd-gallery__intro {
  padding-top: 30px;
  padding-bottom: 22px;
}
.rd-gallery__intro p {
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 0;
}
.rd-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 24px 18px;
  max-width: 1360px;
  margin: auto;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.rd-gallery__toolbar button {
  font: inherit;
  background: none;
  border: 1px solid var(--color-border);
  padding: 8px 14px;
  color: var(--color-primary);
  cursor: pointer;
  min-height: 40px;
}
.rd-gallery__viewport {
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
  cursor: grab;
}
.rd-gallery__viewport.is-dragging {
  cursor: grabbing;
}
.rd-gallery__track {
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
}
.rd-gallery__item {
  width: clamp(260px, 30vw, 460px);
  height: clamp(210px, 22vw, 345px);
  flex: none;
  border: 0;
  padding: 0;
  background: var(--color-cream);
  cursor: inherit;
  overflow: hidden;
}
.rd-gallery__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.rd-gallery__item:hover img {
  filter: brightness(0.92);
}
.rd-phone {
  padding-block: 58px 64px;
}
.rd-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rd-phone .rd-actions {
  margin-top: 22px;
}
.rd-phone p {
  max-width: 850px;
  margin-inline: auto;
}
.rd-find {
  max-width: 1280px;
  padding: 58px 32px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 48px;
  align-items: center;
}
.rd-find__copy {
  min-width: 0;
}
.rd-find h2 {
  font-size: 2rem;
}
.rd-find address {
  font-style: normal;
  margin-bottom: 22px;
}
.rd-find a[href^="mailto"] {
  overflow-wrap: anywhere;
}
.rd-find iframe {
  width: 100%;
  height: 420px;
  border: 0;
  background: var(--color-cream);
}
.rd-testimonials {
  padding: 64px 0 60px;
  background: linear-gradient(180deg, #fff 0%, var(--color-cream-light) 100%);
  overflow-x: clip; /* the moving track never widens the page */
}
.rd-reviews__head {
  max-width: 900px;
  margin-inline: auto;
  padding-inline: 24px;
  text-align: center;
}
.rd-testimonials h2 {
  margin-bottom: 10px;
}
.rd-section .rd-reviews__head p {
  margin: 0;
  color: var(--color-text-muted);
}

/* "Google Reviews" pill above the heading: large G so the section reads
   as Google reviews at a glance */
.rd-reviews__badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 9px 22px 9px 10px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  box-shadow: 0 10px 24px -14px rgba(23, 34, 77, 0.35);
  color: var(--color-primary-deep);
  font: 700 1.15rem/1 var(--font-body);
  text-decoration: none;
}
.rd-reviews__badge svg {
  width: 40px;
  height: 40px;
}
.rd-reviews__badge:hover {
  border-color: #4285f4;
}

/* Marquee: the track drifts right-to-left (homepage-redesign.js) and the
   edges fade out so cards slide in and out softly */
.rd-reviews {
  margin-top: 30px;
  overflow: hidden;
  cursor: grab;
  touch-action: pan-y; /* sideways swipes move the cards, vertical ones scroll the page */
  -webkit-user-select: none;
  user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}
.rd-reviews__track {
  display: flex;
  gap: 24px;
  width: max-content;
  margin: 0;
  padding: 14px 24px 28px; /* room for the hover lift and shadow */
  list-style: none;
  will-change: transform;
}
.rd-reviews__track > li {
  display: flex;
}
.rd-reviews.is-dragging {
  cursor: grabbing;
}
.rd-reviews.is-dragging .rd-gr {
  transform: none; /* no hover lift while dragging */
}

/* Review card */
.rd-gr {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 340px;
  padding: 26px 24px 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(23, 34, 77, 0.05),
    0 18px 36px -22px rgba(23, 34, 77, 0.35);
  overflow: hidden;
  text-align: left;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}
/* Google-coloured strip along the top of every card */
.rd-gr::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(
    90deg,
    #4285f4 0 25%,
    #ea4335 25% 50%,
    #fbbc05 50% 75%,
    #34a853 75%
  );
}
.rd-gr:hover {
  transform: translateY(-6px);
  box-shadow:
    0 1px 2px rgba(23, 34, 77, 0.05),
    0 26px 44px -22px rgba(23, 34, 77, 0.45);
}
.rd-gr__head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rd-gr__avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: #4285f4;
  color: #fff;
  font: 600 1rem/1 var(--font-body);
  letter-spacing: 0.04em;
}
/* Google-style coloured initials, cycling through the brand colours */
.rd-reviews__track > li:nth-child(4n + 2) .rd-gr__avatar {
  background: #ea4335;
}
.rd-reviews__track > li:nth-child(4n + 3) .rd-gr__avatar {
  background: #f29900;
}
.rd-reviews__track > li:nth-child(4n + 4) .rd-gr__avatar {
  background: #34a853;
}
.rd-gr__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.rd-gr__who {
  flex: 1;
  min-width: 0;
}
.rd-section .rd-gr__name {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--color-primary-deep);
}
.rd-section .rd-gr__meta {
  margin: 3px 0 0;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--color-text-muted);
}
.rd-gr__g {
  flex: none;
  align-self: flex-start;
  width: 28px;
  height: 28px;
}
.rd-gr__rating {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 12px;
}
/* Stars: --rating (0–5) fills them from the left, so 4.5 works too */
.rd-gr__stars {
  --star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2.5l2.94 5.96 6.56.95-4.75 4.63 1.12 6.54L12 17.5l-5.87 3.08 1.12-6.54L2.5 9.41l6.56-.95z'/%3E%3C/svg%3E");
  width: 110px;
  height: 20px;
  background: linear-gradient(
    90deg,
    #fbbc04 calc(var(--rating, 5) / 5 * 100%),
    #dfe5ee 0
  );
  -webkit-mask: var(--star) 0 0 / 22px 20px repeat-x;
  mask: var(--star) 0 0 / 22px 20px repeat-x;
}
.rd-gr__source {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--color-text-muted);
  text-decoration: none;
}
.rd-gr__source:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.rd-gr__text {
  margin: 0;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.rd-section .rd-gr__text p {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  overflow: hidden;
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--color-text);
}
.rd-section .rd-reviews__more {
  margin: 14px 0 0;
  padding-inline: 24px;
  text-align: center;
}
.rd-reviews__more .rd-button {
  gap: 10px;
}
.rd-reviews__more svg {
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 50%;
  background: #fff;
}
@media (max-width: 767px) {
  .rd-testimonials {
    padding: 44px 0 42px;
  }
  .rd-reviews {
    margin-top: 24px;
  }
  .rd-reviews__badge {
    padding-block: 7px;
    font-size: 1.05rem;
  }
  .rd-reviews__badge svg {
    width: 34px;
    height: 34px;
  }
  .rd-reviews__track {
    gap: 16px;
    padding-inline: 16px;
  }
  .rd-gr {
    width: min(300px, 80vw);
    padding: 22px 18px 20px;
  }
}
/* Reduced motion: no drifting — visitors scroll the cards sideways instead */
@media (prefers-reduced-motion: reduce) {
  .rd-reviews {
    overflow-x: auto;
    cursor: auto;
    -webkit-user-select: auto;
    user-select: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .rd-gr,
  .rd-gr:hover {
    transform: none;
    transition: none;
  }
}
.rd-contact {
  background: var(--color-cream);
  padding: 60px 24px;
}
.rd-contact__intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 35px;
}
.rd-contact__intro h2 {
  font-size: clamp(2rem, 1.2rem + 2vw, 3.1rem);
  margin-bottom: 16px;
}
.rd-contact__intro > p:first-of-type {
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem);
}
.rd-contact__form {
  max-width: 800px;
  margin: auto;
  padding: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  border-radius: 0;
}
.rd-contact__form h3 {
  display: none;
}
.rd-contact__form input,
.rd-contact__form textarea {
  background: white;
  border: 1px solid #acbfd0;
  border-radius: 2px;
  font-family: var(--font-body);
  font-size: 1.1rem;
}
.rd-contact__form label {
  font-weight: 600;
}
.rd-contact__form .btn {
  background: var(--color-primary);
  border-radius: 5px;
  font-family: var(--font-body);
  font-size: 1.1rem;
}
.rd-contact .nh-whatsapp-note {
  color: var(--color-text);
  font-size: 1rem;
}
.rd-centers {
  max-width: 1320px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 28px;
  padding: 32px;
}
.rd-centers > a {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  text-decoration: none;
  color: var(--color-primary-deep);
  font-size: 1rem;
  line-height: 1.4;
  min-width: 0;
  padding: 4px 0;
  font-weight: 900;
}
.rd-centers .icon {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 2px;
}
.rd-centers > a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
/* Home page location links only (other pages keep the plain .rd-centers list) */
#service-areas {
  gap: 6px 18px;
  padding: 28px 32px;
}
#service-areas > a {
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  font-size: 1.14rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--color-primary-deep);
  /* background: var(--color-cream-light); */
  /* border: 1px solid var(--color-border); */
  /* border-left: 4px solid var(--color-gold); */
  border-radius: var(--radius);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}
#service-areas .icon {
  width: 34px;
  height: 34px;
  padding: 8px;
  margin-top: 0;
  border-radius: 50%;
  color: var(--color-white);
  background: var(--color-primary);
  box-shadow: 0 0 0 1px var(--color-border);
}
#service-areas > a:hover,
#service-areas > a:focus-visible {
  color: var(--color-white);
  background: var(--color-primary);
  border-color: var(--color-primary);
  border-left-color: var(--color-gold);
  text-decoration: none;
  box-shadow: 0 8px 20px rgba(0, 114, 188, 0.2);
  transform: translateY(-2px);
}
/* On a location page, its own link in the list stays highlighted */
#service-areas > a[aria-current="page"] {
  color: var(--color-primary);
  border-left-color: var(--color-gold);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
@media (prefers-reduced-motion: reduce) {
  #service-areas > a,
  #service-areas > a:hover,
  #service-areas > a:focus-visible {
    transition: none;
    transform: none;
  }
}
@media (max-width: 767px) {
  #service-areas {
    gap: 4px;
    padding: 20px 16px;
  }
  #service-areas > a {
    padding: 8px 10px;
    font-size: 1.08rem;
  }
  #service-areas .icon {
    width: 30px;
    height: 30px;
    padding: 7px;
  }
}
.rd-stats {
  padding-block: 26px !important;
  background: var(--color-primary);
}
.rd-stats .stats__grid {
  gap: 0;
}
.rd-stats .stat {
  padding: 14px 20px;
}
.rd-stats .stat__value {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 1.2rem + 2vw, 3rem);
  font-weight: 400;
  line-height: 1.2;
  white-space: nowrap;
  margin-bottom: 8px;
}
.rd-stats .stat__label {
  font-family: var(--font-body);
  font-size: 1rem;
}
.rd-stats .ph {
  background: none;
  box-shadow: none;
  padding: 0;
}
/* ---------- Video Gallery ----------
   Matches the Video Gallery section on thehoperehab.pk (client request):
   beige band, outlined tag, Castoro heading, 3 × 16:9 YouTube players. */
@font-face {
  font-family: "Castoro";
  src: url("../fonts/castoro-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Lexend";
  src: url("../fonts/lexend-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
.hr-videos {
  background: #f2edea;
  padding: 100px 20px;
}
.hr-videos__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  max-width: 1280px;
  margin-inline: auto;
}
.hr-videos__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #6e6e6e57;
  border-radius: 3px;
  color: #0c3975;
  font: 400 16px/1.4 "Lexend", sans-serif;
  text-transform: uppercase;
}
.hr-videos__tag svg {
  width: 20px;
  height: 20px;
  fill: #2fee09;
  flex: none;
}
.hr-videos__title {
  margin: 0;
  color: #0a1d25;
  font: 400 40px/1.2 "Castoro", Georgia, serif;
  text-align: center;
}
.hr-videos__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 20px;
  width: 100%;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.hr-videos__item {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
  transform: translateZ(0); /* keeps the iframe clipped to the rounded corners */
}
.hr-videos__item iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}
.hr-videos__more {
  margin: 48px 0 0;
  text-align: center;
}
.hr-videos__more .rd-button {
  gap: 10px;
  background: #e60000;
}
.hr-videos__more .rd-button:hover {
  background: #c00000;
}
.hr-videos__more svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}
@media (max-width: 1024px) {
  .hr-videos__grid {
    grid-template-columns: 50%;
    justify-content: center;
    row-gap: 20px;
  }
}
@media (max-width: 767px) {
  .hr-videos {
    padding-block: 50px;
  }
  .hr-videos__title {
    font-size: 35px;
  }
  .hr-videos__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hr-videos__more {
    width: 100%;
    margin-top: 32px;
  }
  .hr-videos__more .rd-button {
    width: 100%;
  }
}
.rd-lightbox {
  padding: 16px;
  border: 0;
  background: var(--color-primary-deep);
  color: white;
  width: min(1200px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
}
.rd-lightbox::backdrop {
  background: rgba(5, 14, 30, 0.92);
}
.rd-lightbox__close {
  display: block;
  margin-left: auto;
  width: 44px;
  height: 44px;
  font-size: 30px;
  color: white;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.rd-lightbox__image img {
  display: block;
  margin: auto;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100dvh - 180px);
  object-fit: contain;
}
.rd-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  font:
    1rem/1.4 "Source Sans 3",
    sans-serif;
}
.rd-lightbox__controls p {
  margin: 0;
  text-align: center;
}
.rd-lightbox__controls button {
  width: 48px;
  height: 48px;
  flex: none;
  background: var(--color-primary);
  color: white;
  border: 0;
  cursor: pointer;
  font-size: 24px;
}
@media (max-width: 991px) {
  .rd-split__copy {
    padding: 32px 24px;
  }
  .rd-pair__copy {
    padding: 26px 24px;
  }
  .rd-find {
    gap: 30px;
  }
  .rd-centers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rd-stats .stat {
    padding: 12px;
  }
  .rd-stats .stat__value {
    font-size: 2.2rem;
  }
}
@media (max-width: 767px) {
  .rd-treatments {
    padding: 40px 0;
  }
  .rd-treatments .treatments__grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .rd-treatments .treat-card__body {
    padding-top: 20px;
  }
  .rd-section h2 {
    margin-bottom: 20px;
  }
  .rd-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .rd-split__copy {
    grid-column: 1 !important;
    grid-row: auto;
    padding: 30px 22px;
  }
  .rd-split__image {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-height: 0;
    aspect-ratio: 1.5;
  }
  .rd-split__image img {
    max-height: none;
    height: 100%;
  }
  .rd-split--reverse .rd-split__image {
    grid-row: 1 !important;
  }
  .rd-split--reverse .rd-split__copy {
    grid-row: 2;
  }
  .rd-pair {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }
  .rd-pair__image {
    aspect-ratio: 1.65;
  }
  .rd-pair__copy {
    padding: 26px 22px 30px;
  }
  .rd-centered {
    padding: 40px 22px;
  }
  .rd-profile {
    padding-bottom: 24px;
  }
  .rd-gallery__intro {
    padding-bottom: 20px;
  }
  .rd-gallery__toolbar {
    padding-inline: 22px;
    font-size: 0.8rem;
    gap: 10px;
    align-items: flex-start;
  }
  .rd-gallery__toolbar button {
    flex: none;
    font-size: 0.8rem;
  }
  .rd-gallery__item {
    width: 80vw;
    height: 58vw;
    max-height: 310px;
  }
  .rd-actions {
    flex-direction: column;
  }
  .rd-actions .rd-button {
    width: 100%;
  }
  .rd-find {
    padding: 40px 22px;
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .rd-find iframe {
    height: 300px;
  }
  .rd-contact {
    padding: 42px 22px;
  }
  .rd-contact__form .form-row {
    grid-template-columns: 1fr;
  }
  .rd-contact__form .btn {
    width: 100%;
  }
  .rd-centers {
    padding: 25px 22px;
    gap: 12px;
    grid-template-columns: 1fr;
  }
  .rd-centers > a {
    font-size: 0.99rem;
    font-weight: 800;
  }
  .rd-stats .stats__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .rd-stats .stat:nth-child(2) {
    border-right: 0;
  }
  .rd-stats .stat {
    padding: 16px 8px;
  }
  .rd-stats .stat__value {
    font-size: 2rem;
  }
  .rd-stats .stat__label {
    font-size: 0.85rem;
  }
  .rd-lightbox {
    padding: 12px;
  }
  .rd-lightbox__controls {
    font-size: 0.9rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-section a {
    transition: none;
  }
  .rd-gallery__track {
    will-change: auto;
  }
}

/* ---------- Home team preview ----------
   Same cards as the /team listing. These rules mirror the Team block in
   inner-pages.css (not loaded on the homepage), scoped to .home-team. */
.home-team .inner-team__intro {
  margin: 22px auto 0;
  max-width: 720px;
}
.home-team .inner-member {
  height: 100%;
}
.home-team .inner-member .nh-member__photo {
  display: block;
  cursor: pointer;
}
.home-team .inner-member .nh-member__body {
  display: flex;
  flex-direction: column;
}
.home-team .inner-member h3 {
  color: var(--color-primary-deep);
}
.home-team .inner-member .nh-member__role {
  min-height: 0;
  margin-bottom: 10px;
}
.home-team .inner-member__intro {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  margin: 0 0 22px;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}
.home-team .inner-member:hover .nh-member__photo img,
.home-team .inner-member:focus-visible .nh-member__photo img {
  transform: scale(1.035);
}
.home-team .inner-member:focus-visible {
  outline: 3px solid var(--color-gold);
  outline-offset: 3px;
}
.home-team .inner-team__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px 24px;
}
.home-team .inner-team__grid .inner-member {
  border-radius: var(--radius);
  box-shadow: 0 4px 14px rgba(79, 13, 14, 0.08);
  transition: box-shadow 0.3s ease;
}
.home-team .inner-team__grid .inner-member:hover,
.home-team .inner-team__grid .inner-member:focus-visible {
  box-shadow: 0 8px 22px rgba(79, 13, 14, 0.14);
}
.home-team .inner-team__grid .nh-member__photo,
.home-team .inner-team__grid .nh-member__photo img {
  aspect-ratio: 5 / 6;
}
.home-team .inner-team__grid .nh-member__body {
  padding: 20px;
  overflow-wrap: break-word;
}
.home-team .inner-team__grid .nh-member__body h3 {
  font-size: 1.125rem;
}
.home-team .inner-team__grid .nh-member__role {
  font-size: 0.85rem;
}
.home-team .inner-team__grid .inner-member__intro {
  font-size: 0.9rem;
}
.home-team__more {
  margin-top: 40px;
  text-align: center;
}
@media (max-width: 991px) {
  .home-team .inner-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 20px;
  }
}
@media (max-width: 767px) {
  .home-team .inner-team__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 12px;
  }
  .home-team .inner-team__grid .nh-member__body {
    padding: 14px 12px 16px;
  }
  .home-team .inner-team__grid .nh-member__body h3 {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 6px;
  }
  .home-team .inner-team__grid .nh-member__role {
    font-size: 0.78rem;
    line-height: 1.45;
    margin-bottom: 8px;
  }
  .home-team .inner-team__grid .inner-member__intro {
    font-size: 0.8rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .home-team .inner-team__grid .nh-card__cta {
    gap: 8px;
    font-size: 0.8rem;
  }
  .home-team__more {
    margin-top: 28px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home-team .inner-member:hover .nh-member__photo img {
    transform: none;
  }
}

/* ---------- FAQ accordion ----------
   Desktop: heading + help card on the left, questions on the right.
   Tablet/mobile: heading, questions, then the help card. */
.rd-faq {
  background: var(--color-cream-light);
  padding: clamp(48px, 6vw, 84px) 24px;
}
.rd-faq__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.5fr);
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "intro list"
    "help list";
  gap: 28px clamp(32px, 5vw, 72px);
  max-width: 1200px;
  margin-inline: auto;
}
.rd-faq__intro {
  grid-area: intro;
}
.rd-faq__intro .services__kicker {
  margin-bottom: 10px;
}
.rd-faq h2 {
  margin-bottom: 16px;
}
.rd-section .rd-faq__intro p:last-child {
  margin: 0;
  color: var(--color-text-muted);
}

/* Question cards */
.rd-faq__list {
  grid-area: list;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.rd-faq__item {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}
.rd-faq__item.is-open {
  border-color: rgba(0, 114, 188, 0.35);
  box-shadow: 0 18px 34px -24px rgba(23, 34, 77, 0.45);
}
.rd-section .rd-faq__q {
  margin: 0;
  font: inherit;
  letter-spacing: normal;
}
.rd-faq__q button {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: none;
  border: 0;
  border-radius: 12px;
  color: var(--color-primary-deep);
  font: 600 1.08rem/1.45 var(--font-body);
  text-align: left;
  cursor: pointer;
}
.rd-faq__q button:hover .rd-faq__text,
.rd-faq__item.is-open .rd-faq__text {
  color: var(--color-primary);
}
.rd-faq__num {
  flex: none;
  width: 28px;
  color: var(--color-gold-dark);
  font: 700 0.9rem/1 var(--font-body);
  letter-spacing: 0.04em;
}
.rd-faq__text {
  flex: 1;
  min-width: 0;
  transition: color 0.2s ease;
}
/* Plus that turns into a minus inside a circle */
.rd-faq__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-cream);
  transition: background-color 0.25s ease;
}
.rd-faq__icon::before,
.rd-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  border-radius: 2px;
  background: var(--color-primary);
  transform: translate(-50%, -50%);
  transition:
    transform 0.3s ease,
    background-color 0.25s ease;
}
.rd-faq__icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
/* Light hover only on closed questions; open ones keep their solid blue
   circle (darker on hover) so the white minus never disappears */
.rd-faq__item:not(.is-open) .rd-faq__q button:hover .rd-faq__icon {
  background: #d7e9f6;
}
.rd-faq__item.is-open .rd-faq__icon {
  background: #0072BC;
}
.rd-faq__item.is-open .rd-faq__q button:hover .rd-faq__icon {
  background: var(--color-primary-hover);
}
.rd-faq__item.is-open .rd-faq__icon::before,
.rd-faq__item.is-open .rd-faq__icon::after {
  background: #fff;
}
.rd-faq__item.is-open .rd-faq__icon::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

/* Answers slide open (grid rows 0fr → 1fr). Without JavaScript every
   answer simply stays visible. */
.rd-faq__a {
  display: grid;
  grid-template-rows: 1fr;
}
.js .rd-faq__a {
  grid-template-rows: 0fr;
  visibility: hidden;
  transition:
    grid-template-rows 0.35s ease,
    visibility 0s linear 0.35s;
}
.js .rd-faq__item.is-open .rd-faq__a {
  grid-template-rows: 1fr;
  visibility: visible;
  transition:
    grid-template-rows 0.35s ease,
    visibility 0s;
}
.rd-faq__a > div {
  min-height: 0;
  overflow: hidden;
}
.rd-section .rd-faq__a p {
  margin: 0;
  padding: 0 22px 22px 66px; /* lines up with the question text */
  color: var(--color-text-muted);
  font-size: 1rem;
  line-height: 1.7;
}
.rd-faq__a a {
  color: var(--color-primary);
  font-weight: 600;
}

/* "Still have a question?" card */
.rd-faq__help {
  grid-area: help;
  align-self: start;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-gold);
  border-radius: 12px;
  box-shadow: 0 18px 34px -26px rgba(23, 34, 77, 0.4);
}
.rd-section .rd-faq__help p {
  margin: 0;
  color: var(--color-text-muted);
  font-size: 1rem;
}
.rd-section .rd-faq__help .rd-faq__help-title {
  margin-bottom: 6px;
  color: var(--color-primary-deep);
  font-size: 1.15rem;
  font-weight: 700;
}
.rd-faq__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.rd-faq__actions .rd-button {
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  font-size: 1rem;
}
.rd-faq__actions .icon {
  width: 18px;
  height: 18px;
}
.rd-section .rd-faq__whatsapp {
  background: rgb(19, 185, 19);
  color: var(--color-primary-deep);
  box-shadow: inset 0 0 0 1px var(--color-border);
}
.rd-section .rd-faq__whatsapp:hover {
  background: var(--color-primary);
  color: #fff;
  box-shadow: none;
}
.rd-faq__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-bottom: 4px;
  border-bottom: 2px solid var(--color-gold);
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}
.rd-faq__all .icon {
  width: 18px;
  height: 18px;
}
@media (max-width: 991px) {
  .rd-faq__inner {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "intro"
      "list"
      "help";
  }
  .rd-faq__intro {
    max-width: 680px;
  }
}
@media (max-width: 767px) {
  .rd-faq {
    padding-inline: 16px;
  }
  .rd-faq__q button {
    gap: 12px;
    padding: 16px;
    font-size: 1rem;
  }
  .rd-faq__num {
    width: 22px;
    font-size: 0.8rem;
  }
  .rd-faq__icon {
    width: 32px;
    height: 32px;
  }
  .rd-section .rd-faq__a p {
    padding: 0 16px 18px;
    font-size: 0.95rem;
  }
  .rd-faq__actions .rd-button {
    flex: 1 1 auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rd-faq__item,
  .rd-faq__text,
  .rd-faq__icon,
  .rd-faq__icon::before,
  .rd-faq__icon::after,
  .js .rd-faq__a,
  .js .rd-faq__item.is-open .rd-faq__a {
    transition: none;
  }
}

/* ---------- Latest blog posts ----------
   Reuses the treatment-card design above; titles sized like /blog */
.home-blog .section-head .services__kicker {
  margin-bottom: 10px;
}
.home-blog .section-head h2 {
  margin-bottom: 0;
}
.rd-section.home-blog h3.treat-card__title {
  margin-bottom: 14px;
  font-size: clamp(1.2rem, 1.05rem + 0.45vw, 1.45rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.home-blog .treat-card__title a {
  color: inherit;
  text-decoration: none;
}
.home-blog .treat-card__title a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}
.home-blog .treat-card__body p {
  font-size: 1rem;
  line-height: 1.65;
}
.home-blog__more {
  margin-top: 44px;
  text-align: center;
}
@media (max-width: 767px) {
  .home-blog__more {
    margin-top: 32px;
  }
  .home-blog__more .rd-button {
    width: 100%;
  }
}
