/* "More from the clinic" slider on the homepage, and the Testimonials and Final results pages.
   Written with logical properties (and the --dir variable where a rotation must mirror), so the
   same rules work left to right and right to left. This file is not part of the generated rtl.css. */

/* ---- The slider on the homepage ------------------------------------------- */
.explore {
  --gap: 22px;
  padding-block: 28px 110px;
}
.explore-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(26px, 3vw, 42px);
}
.explore-head h2 {
  margin: 0;
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.06em;
  color: var(--ink);
}
.explore-controls {
  display: none;
  align-items: center;
  gap: 14px;
  padding-bottom: 6px;
  font-size: 12px;
  color: var(--muted);
}
.explore.is-scrollable .explore-controls {
  display: flex;
}
.explore-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: var(--ink);
  background: transparent;
  border: 1px solid #9db5a5;
  border-radius: 50%;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    opacity 0.2s ease;
}
.explore-arrow:hover:not(:disabled) {
  background: #e6eee7;
  border-color: var(--accent);
}
.explore-arrow:disabled {
  opacity: 0.35;
  cursor: default;
}
.explore-arrow:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.explore-track {
  list-style: none;
  margin: 0;
  padding: 0 0 26px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 2 * var(--gap)) / 3);
  gap: var(--gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  /* Room for the hover lift and the card shadow, so neither is clipped by the scroll area. */
  margin-block: -8px -18px;
  padding-block: 8px 26px;
}
.explore-track::-webkit-scrollbar {
  display: none;
}
.explore-track:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
  border-radius: 24px;
}
.explore-slide {
  scroll-snap-align: start;
  min-width: 0;
}

.explore-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 12px 12px 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 1px 0 #ffffff, 0 14px 34px #193e3108;
  transition:
    transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 0.4s ease,
    border-color 0.3s ease;
}
.explore-card:hover {
  transform: translateY(-5px);
  border-color: #9db5a5;
  box-shadow: 0 22px 50px #193e3118;
}
.explore-card:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #2c614b30;
}

.explore-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  border-radius: 14px;
  margin-bottom: 24px;
}
.explore-index {
  position: absolute;
  z-index: 3;
  inset-block-start: 16px;
  inset-inline-start: 18px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--accent);
}
/* All three thumbnails share one deep green panel, so the row reads as a set. */
.explore-visual-quote,
.explore-visual-look,
.explore-visual-results {
  background: radial-gradient(80% 70% at 50% 40%, #1c4634 0%, #0d1e16 62%, #08120d 100%);
}
.explore-visual-quote .explore-index,
.explore-visual-look .explore-index,
.explore-visual-results .explore-index {
  color: #a9c4b3;
}

/* Testimonials: two quote cards, fanned out on warm ivory. Sizes use cqw (a percentage of
   the thumbnail's width) so the whole composition scales with the card. */
.explore-visual {
  container-type: inline-size;
}
.explore {
  --dir: 1;
}
html[dir='rtl'] .explore {
  --dir: -1;
}
.explore-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 2.6cqw;
  width: 58%;
  padding: 5cqw 5.4cqw 5cqw;
  color: #0e2b20;
  background: #fff;
  border-radius: 3.4cqw;
  box-shadow:
    0 1.2cqw 2.4cqw #1c3d2f14,
    0 5cqw 9cqw #1c3d2f26;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.explore-note-back {
  padding-bottom: 12cqw;
  inset-block-start: 10%;
  inset-inline-end: 8%;
  transform: rotate(calc(var(--dir) * 5deg));
}
.explore-note-front {
  inset-block-end: 10%;
  inset-inline-start: 8%;
  transform: rotate(calc(var(--dir) * -3deg));
}
.explore-card:hover .explore-note-back {
  transform: rotate(calc(var(--dir) * 7deg)) translateY(-1.5cqw);
}
.explore-card:hover .explore-note-front {
  transform: rotate(calc(var(--dir) * -4.5deg)) translateY(1.5cqw);
}
.explore-note-mark {
  height: 5.5cqw;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 11cqw;
  line-height: 0.9;
  color: #b8975a;
}
.explore-note-text {
  font-size: 4.3cqw;
  line-height: 1.28;
  letter-spacing: -0.02em;
}
.explore-note-back .explore-note-text {
  font-size: 3.6cqw;
  color: #35574a;
}
.explore-note-by {
  display: flex;
  align-items: center;
  gap: 2cqw;
  padding-top: 2.4cqw;
  border-top: 1px solid #1c3d2f1c;
  font-size: max(9px, 2.9cqw);
  color: #5a7a68;
}
.explore-note-by em {
  display: grid;
  place-items: center;
  width: 5.6cqw;
  height: 5.6cqw;
  font-size: 2.9cqw;
  font-style: normal;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}

/* A closer look: the whole portrait in cream line art on deep emerald, with a small lens
   over the nose. */
.explore-visual-look {
  --art: #eaf1e4;
}
.explore-visual-look::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(#ffffff12 1px, transparent 1px) 0 0 / 100% 8cqw,
    linear-gradient(90deg, #ffffff12 1px, transparent 1px) 0 0 / 8cqw 100%;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent);
  mask-image: radial-gradient(70% 70% at 50% 45%, #000, transparent);
}
.explore-visual-look::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: 0;
  height: 26%;
  background: linear-gradient(transparent, #0b1a13 94%);
  pointer-events: none;
}
.explore-art,
.explore-lens-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--art);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-image: url('assets/treatment-portrait.svg');
  mask-image: url('assets/treatment-portrait.svg');
}
.explore-art {
  opacity: 0.92;
  -webkit-mask-size: auto 94%;
  mask-size: auto 94%;
  -webkit-mask-position: 50% 50%;
  mask-position: 50% 50%;
}
/* The magnifier. Sizes are measured against the portrait so the lens lines up with the face:
   the portrait is 94% of the panel's height, centred, and its nose sits 54% of the way down it.
   The lens is centred on that point, and the drawing inside it is the same portrait enlarged
   1.7 times about the same point, so it reads as a true magnification of what is underneath.
   Lens width 22% of the panel; enlarged portrait height = 1.7 x 94% = 160% of the panel =
   about 581% of the lens. */
.explore-lens {
  position: absolute;
  z-index: 2;
  inset-inline-start: 39%;
  inset-block-start: 40%;
  width: 22%;
  aspect-ratio: 1;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.explore-lens-glass {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, #3f8468 0%, #28664e 52%, #1b4a39 100%);
  border: 1.1cqw solid var(--art);
  box-shadow:
    0 2.4cqw 5cqw #00000066,
    inset 0 0 0 0.5cqw #ffffff2e,
    inset 0 -2cqw 4cqw #0a1f1655;
}
/* A soft reflection across the top of the glass. */
.explore-lens-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(150deg, #ffffff2e 0%, transparent 38%);
  pointer-events: none;
}
.explore-lens-glass::before {
  background: var(--art);
  -webkit-mask-size: auto 581%;
  mask-size: auto 581%;
  -webkit-mask-position: 50% 55%;
  mask-position: 50% 55%;
}
/* The handle leaves the ring at 45 degrees toward the bottom of the end side. */
.explore-lens::after {
  content: '';
  position: absolute;
  left: calc(50% + var(--dir) * 35.4%);
  top: 85.4%;
  width: 54%;
  height: 2.6cqw;
  background: var(--art);
  border-radius: 1.3cqw;
  box-shadow: 0 1.2cqw 3cqw #00000055;
  transform: rotate(calc(90deg - var(--dir) * 45deg));
  transform-origin: left center;
}
.explore-card:hover .explore-lens {
  transform: translate(calc(var(--dir) * 5%), -4%);
}

/* Final results: three result photographs fanned out on a dark panel. */
.explore-visual-results {
  background: radial-gradient(80% 70% at 50% 40%, #1c4634 0%, #0d1e16 62%, #08120d 100%);
}
.explore-visual-results .explore-index {
  color: #a9c4b3;
}
.explore-visual-results img {
  position: absolute;
  inset-block-start: 15%;
  height: 72%;
  width: auto;
  border-radius: 8px;
  box-shadow: 0 14px 34px #00000066;
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
/* The centre photograph is in front, the second leans toward the end side, and the third sits
   flat at the start side; logical properties and --dir keep the same arrangement mirrored in
   Arabic and Kurdish. Photographs are picked by type (the first child is the number label). */
.explore-visual-results img:nth-of-type(1) {
  left: 50%;
  z-index: 2;
  height: 78%;
  inset-block-start: 11%;
  transform: translateX(-50%);
}
.explore-visual-results img:nth-of-type(2) {
  inset-inline-end: 11%;
  transform: rotate(calc(var(--dir) * 8deg));
}
.explore-visual-results img:nth-of-type(3) {
  inset-inline-start: 0;
}
.explore-card:hover .explore-visual-results img:nth-of-type(2) {
  transform: rotate(calc(var(--dir) * 12deg)) translateX(calc(var(--dir) * 6px));
}

/* About: the doctor's portrait on the same green panel, with a small white note over its
   lower edge. The note leans with --dir, so it mirrors in Arabic and Kurdish. */
.explore-visual-about {
  background: radial-gradient(80% 70% at 50% 40%, #1c4634 0%, #0d1e16 62%, #08120d 100%);
}
.explore-visual-about .explore-index {
  color: #a9c4b3;
}
.explore-visual-about img {
  position: absolute;
  left: 50%;
  inset-block-start: 11%;
  width: auto;
  height: 68%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 14px 34px #00000066;
  transform: translateX(-50%);
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.explore-about-tag {
  position: absolute;
  z-index: 2;
  left: 50%;
  inset-block-end: 11%;
  padding: 2.4cqw 4cqw;
  font-size: 3.9cqw;
  line-height: 1.3;
  white-space: nowrap;
  color: #0e2b20;
  background: #fff;
  border-radius: 2.4cqw;
  box-shadow: 0 1.2cqw 3cqw #00000040;
  transform: translateX(-50%) rotate(calc(var(--dir) * -2.5deg));
  transition: transform 0.55s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.explore-card:hover .explore-visual-about img {
  transform: translateX(-50%) translateY(-1.5cqw);
}
.explore-card:hover .explore-about-tag {
  transform: translateX(-50%) rotate(calc(var(--dir) * -4deg)) translateY(1cqw);
}

.explore-title {
  margin: 0 14px 10px;
  font-size: clamp(28px, 2.5vw, 36px);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.explore-link {
  color: inherit;
  text-decoration: none;
}
/* The whole card is the link. */
.explore-link::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 4;
  border-radius: 22px;
}
.explore-link:focus-visible {
  outline: none;
}
.explore-text {
  margin: 0 14px 24px;
  font-size: 14px;
  line-height: 1.75;
  color: var(--muted);
}
.explore-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: auto 14px 0;
  font-size: 12px;
  color: var(--accent);
}
.explore-cta svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  transition: transform 0.3s ease;
}
.explore-card:hover .explore-cta svg {
  transform: translate(2px, -2px);
}
html[dir='rtl'] .explore-card:hover .explore-cta svg {
  transform: translate(-2px, -2px);
}

@media (max-width: 1000px) {
  .explore-track {
    grid-auto-columns: calc((100% - var(--gap)) / 2.18);
  }
}
@media (max-width: 700px) {
  .explore {
    --gap: 14px;
    padding-block: 10px 80px;
  }
  .explore-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .explore-arrow {
    width: 40px;
    height: 40px;
  }
  .explore-track {
    grid-auto-columns: min(84%, 340px);
  }
  .explore-card {
    padding: 10px 10px 22px;
  }
  .explore-title,
  .explore-text,
  .explore-cta {
    margin-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .explore-card,
  .explore-lens,
  .explore-note,
  .explore-visual-results img,
  .explore-visual-about img,
  .explore-about-tag,
  .explore-cta svg {
    transition: none;
  }
  .explore-card:hover {
    transform: none;
  }
}

/* ---- Testimonials and Final results pages -------------------------------- */
.contact-page .results {
  padding-block: 0 24px;
}
.contact-page .results-head {
  justify-content: flex-start;
}
.page-lead {
  margin: 0 0 26px;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.testimonial-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.testimonial-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 28px;
  height: 100%;
  margin: 0;
  padding: clamp(28px, 3.6vw, 52px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
}
.testimonial-mark {
  position: absolute;
  inset-block-start: 22px;
  inset-inline-end: 30px;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 130px;
  line-height: 1;
  color: #2c614b24;
  pointer-events: none;
}
.testimonial-card blockquote {
  position: relative;
  margin: 0;
  padding-block-start: 34px;
}
.testimonial-card blockquote p {
  margin: 0;
  font-size: clamp(21px, 2.1vw, 29px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.testimonial-card figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.testimonial-initial {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
}
.testimonial-card figcaption strong {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
}
.testimonial-card figcaption span:not(.testimonial-initial) {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}
.testimonial-note {
  margin: 0;
  font-size: 11px;
  color: #6c7f73;
}
.page-cta {
  margin-top: 34px;
  padding: clamp(30px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: #e6eee7;
  border-radius: 22px;
}
.page-cta h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -0.055em;
  color: var(--ink);
}
.page-cta p {
  margin: 0;
  max-width: 420px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.page-cta .solid-button {
  flex: none;
  min-width: 190px;
  gap: 34px;
}
@media (max-width: 800px) {
  .testimonial-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .page-cta {
    flex-direction: column;
    align-items: flex-start;
  }
  .page-cta .solid-button {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---- A closer look page ----------------------------------------------------- */
.treatments-back {
  padding-top: 136px;
}
.treatments-page .treatments {
  padding-top: 34px;
}
@media (max-width: 700px) {
  .treatments-back {
    padding-top: 104px;
  }
}

/* ---- About page ----------------------------------------------------------- */
/* The About section, moved from the homepage to its own page (opened from the slider). It keeps
   its homepage design; only the space above it is shorter, under the back link. */
.about-page {
  padding-bottom: 0;
}
.about-page .about-studio {
  padding-block: 40px 64px;
}
.about-page .page-cta {
  margin-bottom: 80px;
}
@media (max-width: 700px) {
  .about-page .about-studio {
    padding-block: 28px 44px;
  }
  .about-page .page-cta {
    margin-bottom: 48px;
  }
}
