/* Luxury editorial layer — Dr. Aida */

:root {
  --lux-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --lux-ivory: #fdfcf9;
  --lux-champagne: #f5f0e8;
  --lux-charcoal: #1c1b1a;
  --lux-gold: #9e8b6a;
  --lux-gold-line: #c4b59a;
  --lux-section: clamp(5rem, 12vw, 9rem);
}

/* —— Hero cinematic —— */
.hero-cinematic {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.hero-cinematic__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: lux-orb 14s ease-in-out infinite;
}

.hero-cinematic__orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: 8%;
  left: -8%;
  background: radial-gradient(circle, rgba(158, 139, 104, 0.22), transparent 70%);
}

.hero-cinematic__orb--2 {
  width: min(40vw, 320px);
  height: min(40vw, 320px);
  bottom: 18%;
  right: 5%;
  background: radial-gradient(circle, rgba(245, 240, 232, 0.95), transparent 65%);
  animation-delay: -4s;
}

@keyframes lux-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(12px, -18px) scale(1.05); }
}

.hero-headline__line {
  display: block;
  overflow: hidden;
}

.hero-headline__inner {
  display: inline-block;
  transform: translateY(110%);
  opacity: 0;
}

.hero-cinematic.is-ready .hero-headline__inner {
  animation: lux-headline-in 1.1s var(--lux-ease) forwards;
}

.hero-cinematic.is-ready .hero-headline__line:nth-child(2) .hero-headline__inner {
  animation-delay: 0.12s;
}

.hero-cinematic.is-ready .hero-headline__line:nth-child(3) .hero-headline__inner {
  animation-delay: 0.24s;
}

@keyframes lux-headline-in {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.hero-parallax-wrap {
  will-change: transform;
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* —— Section system —— */
.lux-section {
  position: relative;
  padding-block: var(--lux-section);
}

.lux-section--dark {
  background: var(--lux-charcoal);
  color: var(--lux-ivory);
}

.lux-eyebrow {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.lux-section--dark .lux-eyebrow {
  color: rgba(196, 181, 154, 0.9);
}

.lux-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.lux-lede {
  max-width: 28rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(28, 27, 26, 0.52);
}

.lux-section--dark .lux-lede {
  color: rgba(247, 244, 238, 0.55);
}

/* Image reveal mask */
.img-reveal {
  position: relative;
  overflow: hidden;
  border-radius: inherit;
}

.img-reveal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: var(--lux-ivory);
  transform-origin: right center;
  transition: transform 1.2s var(--lux-ease);
}

.img-reveal.is-visible::before {
  transform: scaleX(0);
}

.img-reveal img,
.img-reveal .group\/media {
  transform: scale(1.06);
  transition: transform 1.4s var(--lux-ease);
}

.img-reveal.is-visible img,
.img-reveal.is-visible .group\/media img {
  transform: scale(1);
}

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(28px);
}

[data-stagger].is-visible > * {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.9s var(--lux-ease),
    transform 0.9s var(--lux-ease);
}

[data-stagger].is-visible > *:nth-child(1) { transition-delay: 0ms; }
[data-stagger].is-visible > *:nth-child(2) { transition-delay: 80ms; }
[data-stagger].is-visible > *:nth-child(3) { transition-delay: 160ms; }
[data-stagger].is-visible > *:nth-child(4) { transition-delay: 240ms; }
[data-stagger].is-visible > *:nth-child(5) { transition-delay: 320ms; }
[data-stagger].is-visible > *:nth-child(6) { transition-delay: 400ms; }

/* —— Stats band —— */
.lux-stats {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #1a1918 0%, #141312 100%);
  color: var(--lux-ivory);
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.lux-stats__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 80% at 20% 50%, rgba(158, 139, 104, 0.12), transparent),
    radial-gradient(ellipse 50% 60% at 85% 30%, rgba(200, 179, 138, 0.08), transparent);
}

.lux-stat {
  text-align: center;
  padding: 1.5rem 1rem;
}

@media (min-width: 768px) {
  .lux-stat {
    text-align: left;
    padding: 0;
  }

  .lux-stat + .lux-stat {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    padding-left: clamp(1.5rem, 4vw, 3rem);
  }
}

.lux-stat__value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 500;
  line-height: 1;
  color: var(--lux-ivory);
}

.lux-stat__value [data-counter-target] {
  font-variant-numeric: tabular-nums;
}

.lux-stat__label {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(247, 244, 238, 0.42);
}

/* —— Treatment cards premium —— */
.treatment-card {
  position: relative;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid rgba(28, 27, 26, 0.06);
  background: rgba(253, 252, 249, 0.85);
  transition:
    transform 0.6s var(--lux-ease),
    box-shadow 0.6s var(--lux-ease),
    border-color 0.5s ease;
}

.treatment-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: linear-gradient(135deg, rgba(158, 139, 104, 0.08), transparent 60%);
  transition: opacity 0.5s ease;
}

@media (hover: hover) {
  .treatment-card:hover {
    transform: translateY(-6px);
    border-color: rgba(158, 139, 104, 0.25);
    box-shadow: 0 32px 80px rgba(28, 27, 26, 0.1);
  }

  .treatment-card:hover::before {
    opacity: 1;
  }

  .treatment-card:hover .treatment-card__arrow {
    transform: translate(4px, -4px);
    color: var(--lux-gold);
  }

  .treatment-card:hover .treatment-card__media img {
    transform: scale(1.06);
  }
}

.treatment-card__media {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.treatment-card__media img {
  transition: transform 1.2s var(--lux-ease);
}

.treatment-card__body {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.75rem 1.75rem;
}

.treatment-card__arrow {
  transition: transform 0.45s var(--lux-ease), color 0.35s ease;
}

/* Featured treatment editorial */
.treatment-feature {
  position: relative;
}

.treatment-feature__image {
  position: relative;
  z-index: 1;
}

.treatment-feature__copy {
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .treatment-feature--overlap .treatment-feature__copy {
    margin-top: -4rem;
    margin-left: -3rem;
    padding: 2.5rem 3rem;
    background: rgba(253, 252, 249, 0.92);
    border-radius: 1.5rem;
    border: 1px solid rgba(28, 27, 26, 0.06);
    box-shadow: 0 40px 100px rgba(28, 27, 26, 0.08);
    backdrop-filter: blur(16px);
  }
}

/* —— Process journey —— */
.lux-process__step {
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: 2.5rem;
}

.lux-process__step::before {
  content: "";
  position: absolute;
  left: 1.125rem;
  top: 2.5rem;
  bottom: 0;
  width: 1px;
  background: linear-gradient(180deg, rgba(158, 139, 104, 0.4), transparent);
}

.lux-process__step:last-child::before {
  display: none;
}

.lux-process__num {
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: 1px solid rgba(158, 139, 104, 0.35);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.875rem;
  color: var(--lux-gold);
  background: var(--lux-ivory);
}

/* —— Testimonials carousel —— */
.lux-testimonials__frame {
  position: relative;
}

.lux-testimonials__viewport {
  overflow: hidden;
  border-radius: 1.5rem;
  outline: none;
  touch-action: pan-y pinch-zoom;
}

.lux-testimonials__viewport:focus-visible {
  box-shadow: 0 0 0 2px rgba(158, 139, 104, 0.45);
}

.lux-testimonials__track {
  display: flex;
  transition: transform 0.65s var(--lux-ease);
  will-change: transform;
}

.lux-story {
  position: relative;
  flex: 0 0 100%;
  min-width: 0;
  min-height: clamp(16rem, 38vw, 20rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(253, 252, 249, 0.98), rgba(245, 240, 232, 0.85));
  border: 1px solid rgba(28, 27, 26, 0.07);
  box-shadow: 0 20px 60px rgba(28, 27, 26, 0.07);
}

.lux-testimonials__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .lux-testimonials__controls {
    justify-content: flex-start;
    margin-top: 1.75rem;
  }
}

.lux-testimonials__arrow {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid rgba(28, 27, 26, 0.1);
  background: rgba(253, 252, 249, 0.9);
  color: rgba(28, 27, 26, 0.65);
  transition:
    border-color 0.35s ease,
    color 0.35s ease,
    background 0.35s ease,
    opacity 0.35s ease;
}

.lux-testimonials__arrow:hover:not(:disabled) {
  border-color: rgba(158, 139, 104, 0.4);
  color: var(--lux-charcoal);
  background: #fff;
}

.lux-testimonials__arrow:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.lux-testimonials__dots {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lux-testimonials__dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 999px;
  border: none;
  padding: 0;
  background: rgba(28, 27, 26, 0.15);
  transition:
    width 0.4s var(--lux-ease),
    background 0.35s ease;
  cursor: pointer;
}

.lux-testimonials__dot.is-active {
  width: 1.75rem;
  background: var(--lux-gold);
}

.lux-testimonials__counter {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  font-variant-numeric: tabular-nums;
  color: rgba(28, 27, 26, 0.45);
}

@media (max-width: 767px) {
  .lux-testimonials__counter {
    margin-left: 0;
    width: 100%;
    text-align: center;
    order: 4;
  }
}

.lux-testimonials__hint {
  margin-top: 0.75rem;
  text-align: center;
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(28, 27, 26, 0.32);
}

@media (min-width: 768px) {
  .lux-testimonials__hint {
    text-align: left;
  }
}

.lux-story__quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.35;
  color: var(--lux-charcoal);
}

.lux-story__mark {
  font-size: 4rem;
  line-height: 0.5;
  color: rgba(158, 139, 104, 0.25);
  font-family: Georgia, serif;
}

/* —— Trust credentials —— */
.lux-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(28, 27, 26, 0.08);
  background: rgba(253, 252, 249, 0.7);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(28, 27, 26, 0.55);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s ease, color 0.35s ease;
}

@media (hover: hover) {
  .lux-trust-pill:hover {
    border-color: rgba(158, 139, 104, 0.35);
    color: var(--lux-charcoal);
  }
}

/* —— CTA emotional —— */
.lux-cta {
  position: relative;
  overflow: hidden;
  border-radius: 2rem;
  min-height: clamp(22rem, 50vh, 32rem);
  isolation: isolate;
}

.lux-cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.lux-cta__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.lux-cta__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(28, 27, 26, 0.88) 0%,
    rgba(28, 27, 26, 0.55) 45%,
    rgba(28, 27, 26, 0.35) 100%
  );
}

.lux-cta__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: inherit;
  padding: clamp(2.5rem, 6vw, 4.5rem);
}

.lux-cta__title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.25rem, 6vw, 4.25rem);
  font-weight: 500;
  line-height: 1.02;
  color: var(--lux-ivory);
  max-width: 14ch;
}

/* —— Doctor profile —— */
.lux-doctor {
  margin-top: clamp(2.5rem, 6vw, 4rem);
}

.lux-doctor__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3rem);
  align-items: center;
}

.lux-doctor__copy {
  order: 2;
  max-width: 36rem;
}

.lux-doctor__visual {
  order: 1;
  width: 100%;
  display: flex;
  justify-content: center;
}

.lux-doctor__figure {
  position: relative;
  width: min(100%, 20rem);
  margin: 0 auto;
  aspect-ratio: 3 / 4;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow:
    0 24px 70px rgba(28, 27, 26, 0.1),
    0 0 0 1px rgba(28, 27, 26, 0.06);
  background: linear-gradient(145deg, #f5f0e8, #ebe4d8);
}

.lux-doctor__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 12%;
}

.lux-doctor__photo--placeholder {
  display: grid;
  place-items: center;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  color: rgba(28, 27, 26, 0.4);
  background: linear-gradient(145deg, #f5f0e8, #ebe4d8);
}

@media (max-width: 1023px) {
  .lux-doctor__copy {
    text-align: center;
    margin-inline: auto;
  }

  .lux-doctor__rule {
    margin-inline: auto;
  }

  .lux-doctor__bio {
    margin-inline: auto;
  }
}

.lux-doctor__quote {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 500;
  line-height: 1.25;
  color: var(--lux-charcoal);
}

.lux-doctor__rule {
  margin-top: 1.75rem;
  height: 1px;
  width: 4rem;
  background: linear-gradient(90deg, var(--lux-gold), transparent);
}

.lux-doctor__name {
  margin-top: 1.5rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  color: var(--lux-charcoal);
}

.lux-doctor__role {
  margin-top: 0.5rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--lux-gold);
}

.lux-doctor__bio {
  margin-top: 1rem;
  max-width: 32rem;
  font-size: 0.9375rem;
  line-height: 1.75;
  color: rgba(28, 27, 26, 0.55);
}

@media (min-width: 640px) {
  .lux-doctor__figure {
    width: min(100%, 22rem);
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 1024px) {
  .lux-doctor__grid {
    grid-template-columns: 1fr min(42vw, 26rem);
    gap: clamp(3rem, 6vw, 5rem);
  }

  .lux-doctor--flip .lux-doctor__grid {
    grid-template-columns: min(42vw, 26rem) 1fr;
  }

  .lux-doctor__copy {
    order: 1;
  }

  .lux-doctor__visual {
    order: 2;
    justify-content: flex-end;
  }

  .lux-doctor--flip .lux-doctor__copy {
    order: 2;
  }

  .lux-doctor--flip .lux-doctor__visual {
    order: 1;
    justify-content: flex-start;
  }

  .lux-doctor__figure {
    width: 100%;
    max-height: min(520px, 72vh);
    aspect-ratio: 4 / 5;
  }
}

@media (min-width: 1280px) {
  .lux-doctor__grid {
    grid-template-columns: 1fr 28rem;
  }

  .lux-doctor--flip .lux-doctor__grid {
    grid-template-columns: 28rem 1fr;
  }
}

/* —— Connect hub (map always visible) —— */
.connect-hub__grid {
  display: grid;
  gap: clamp(1.25rem, 3vw, 1.75rem);
}

.connect-hub__aside {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connect-hub__card {
  border-radius: 1.5rem;
  border: 1px solid rgba(28, 27, 26, 0.06);
  background: rgba(253, 252, 249, 0.92);
  box-shadow: 0 20px 60px rgba(28, 27, 26, 0.06);
  backdrop-filter: blur(12px);
}

.connect-hub__card--info {
  padding: 1.25rem 1.5rem;
}

.connect-hub__card--map {
  overflow: hidden;
  padding: 0;
}

.connect-hub__card--map > div {
  border: none !important;
  border-radius: inherit;
  box-shadow: none !important;
}

.connect-hub__card--forms {
  padding: clamp(1.25rem, 3vw, 2rem);
  min-height: min(100%, 28rem);
}

.connect-hub__main {
  min-width: 0;
}

@media (min-width: 1024px) {
  .connect-hub__grid {
    grid-template-columns: minmax(300px, 380px) 1fr;
    gap: 1.75rem;
    align-items: start;
  }

  .connect-hub__aside {
    position: sticky;
    top: max(6rem, env(safe-area-inset-top) + 5rem);
  }

  .connect-hub__card--map .aspect-\[4\/3\] {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 1023px) {
  .connect-hub__grid {
    grid-template-columns: 1fr;
  }

  .connect-hub__aside {
    order: 1;
  }

  .connect-hub__main {
    order: 2;
  }
}

/* —— Clinic space gallery —— */
.lux-gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.8vw, 1.15rem);
}

@media (min-width: 768px) {
  .lux-gallery__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(0.85rem, 1.5vw, 1.35rem);
  }
}

.lux-gallery__cell {
  min-width: 0;
}

.lux-gallery__frame {
  height: 100%;
  box-shadow:
    0 16px 48px rgba(28, 27, 26, 0.08),
    0 0 0 1px rgba(28, 27, 26, 0.05);
  transition:
    transform 0.65s var(--lux-ease),
    box-shadow 0.65s var(--lux-ease);
}

@media (hover: hover) {
  .lux-gallery__cell:hover .lux-gallery__frame {
    transform: translateY(-4px);
    box-shadow:
      0 28px 70px rgba(28, 27, 26, 0.12),
      0 0 0 1px rgba(158, 139, 104, 0.18);
  }

  .lux-gallery__cell:hover .lux-gallery__frame img {
    transform: scale(1.05);
  }
}

.lux-gallery__frame img {
  object-position: center center;
}

/* —— Philosophy split —— */
.lux-editorial-split {
  display: grid;
  gap: 3rem;
}

@media (min-width: 1024px) {
  .lux-editorial-split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: start;
  }

  .lux-editorial-split--reverse .lux-editorial-split__visual {
    order: 2;
  }

  .lux-editorial-split--reverse .lux-editorial-split__copy {
    order: 1;
  }
}

.lux-pillar {
  padding: 1.75rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(28, 27, 26, 0.05);
  background: rgba(245, 240, 232, 0.45);
  transition:
    transform 0.5s var(--lux-ease),
    border-color 0.4s ease,
    box-shadow 0.5s var(--lux-ease);
}

@media (hover: hover) {
  .lux-pillar:hover {
    transform: translateY(-3px);
    border-color: rgba(158, 139, 104, 0.2);
    box-shadow: 0 20px 50px rgba(28, 27, 26, 0.06);
  }
}

/* Parallax layer */
[data-parallax] {
  will-change: transform;
}

/* Slide from sides */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 1s var(--lux-ease), transform 1s var(--lux-ease);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 1s var(--lux-ease), transform 1s var(--lux-ease);
}

.reveal-left.is-visible,
.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* Marquee trust */
.lux-marquee {
  overflow: hidden;
  border-block: 1px solid rgba(28, 27, 26, 0.06);
  background: rgba(245, 240, 232, 0.5);
  padding-block: 1.25rem;
}

.lux-marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: lux-marquee 28s linear infinite;
}

.lux-marquee__item {
  flex-shrink: 0;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: rgba(28, 27, 26, 0.38);
  white-space: nowrap;
}

@keyframes lux-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .lux-marquee__track,
  .hero-cinematic__orb,
  .floating-card {
    animation: none;
  }

  .hero-headline__inner {
    transform: none;
    opacity: 1;
  }

  [data-stagger] > *,
  .reveal,
  .reveal-left,
  .reveal-right,
  .img-reveal {
    opacity: 1;
    transform: none;
  }

  .img-reveal::before {
    display: none;
  }
}
