/**
 * 상담 및 예약 페이지 모션
 * easing: cubic-bezier(.22, 1, .36, 1)
 */

:root {
  --rv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rv-dur: 1s;
  --rv-rise: 36px;
}

.rv-line { display: block; overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.rv-line-inner { display: block; }

html.js-motion .rv-line-inner {
  translate: 0 110%;
  transition: translate var(--rv-dur) var(--rv-ease);
}
html.js-motion .is-reveal .rv-line-inner {
  translate: 0 0;
  transition-delay: calc(0.08s + 0.12s * var(--i, 0));
}

html.js-motion .reservation-hero .reservation-hero-breadcrumb,
html.js-motion .reservation-hero .reservation-hero-desc,
html.js-motion .reservation-methods-section .clinic-visit-eyebrow,
html.js-motion .reservation-kakao-card,
html.js-motion .reservation-phone-card,
html.js-motion .reservation-hours-notice,
html.js-motion .reservation-hours-body,
html.js-motion .reservation-hours-action {
  opacity: 0;
  transform: translateY(var(--rv-rise));
  transition: opacity var(--rv-dur) var(--rv-ease), transform var(--rv-dur) var(--rv-ease);
}

html.js-motion .reservation-hero.is-reveal .reservation-hero-breadcrumb,
html.js-motion .reservation-hero.is-reveal .reservation-hero-desc,
html.js-motion .reservation-methods-section.is-reveal .clinic-visit-eyebrow,
html.js-motion .reservation-kakao-card.is-reveal,
html.js-motion .reservation-methods-section.is-reveal .reservation-kakao-card,
html.js-motion .reservation-phone-card.is-reveal,
html.js-motion .reservation-methods-section.is-reveal .reservation-phone-card,
html.js-motion .reservation-hours-notice.is-reveal,
html.js-motion .reservation-hours-section.is-reveal .reservation-hours-notice,
html.js-motion .reservation-hours-body.is-reveal,
html.js-motion .reservation-hours-section.is-reveal .reservation-hours-body,
html.js-motion .reservation-hours-action.is-reveal,
html.js-motion .reservation-hours-section.is-reveal .reservation-hours-action {
  opacity: 1;
  transform: none;
}

html.js-motion .reservation-hero.is-reveal .reservation-hero-breadcrumb { transition-delay: 0.05s; }
html.js-motion .reservation-hero.is-reveal .rv-line-inner { transition-delay: calc(0.18s + 0.14s * var(--i, 0)); }
html.js-motion .reservation-hero.is-reveal .reservation-hero-desc { transition-delay: 0.5s; }

html.js-motion .reservation-methods-section.is-reveal .clinic-visit-eyebrow { transition-delay: 0.05s; }
html.js-motion .reservation-methods-section.is-reveal .rv-line-inner { transition-delay: calc(0.12s + 0.12s * var(--i, 0)); }
html.js-motion .reservation-methods-section.is-reveal .reservation-kakao-card,
html.js-motion .reservation-kakao-card.is-reveal { transition-delay: 0.18s; }
html.js-motion .reservation-methods-section.is-reveal .reservation-phone-card,
html.js-motion .reservation-phone-card.is-reveal { transition-delay: 0.3s; }

html.js-motion .reservation-hours-section.is-reveal .rv-line-inner { transition-delay: calc(0.1s + 0.12s * var(--i, 0)); }
html.js-motion .reservation-hours-section.is-reveal .reservation-hours-notice,
html.js-motion .reservation-hours-notice.is-reveal { transition-delay: 0.28s; }
html.js-motion .reservation-hours-section.is-reveal .reservation-hours-body,
html.js-motion .reservation-hours-body.is-reveal { transition-delay: 0.22s; }
html.js-motion .reservation-hours-section.is-reveal .reservation-hours-action,
html.js-motion .reservation-hours-action.is-reveal { transition-delay: calc(0.3s + 0.1s * var(--i, 0)); }

@media (max-width: 1023px) {
  :root { --rv-rise: 28px; --rv-dur: 0.85s; }
  html.js-motion .reservation-kakao-card.is-reveal,
  html.js-motion .reservation-methods-section.is-reveal .reservation-kakao-card,
  html.js-motion .reservation-phone-card.is-reveal,
  html.js-motion .reservation-methods-section.is-reveal .reservation-phone-card,
  html.js-motion .reservation-hours-action.is-reveal,
  html.js-motion .reservation-hours-section.is-reveal .reservation-hours-action { transition-delay: 0.06s; }
}

@media (prefers-reduced-motion: reduce) {
  html.js-motion .rv-line-inner,
  html.js-motion [class*="reservation-"] {
    opacity: 1 !important; transform: none !important; translate: none !important;
    clip-path: none !important; transition: none !important;
  }
}
html.motion-reduced.js-motion .rv-line-inner,
html.motion-reduced.js-motion [class*="reservation-"] {
  opacity: 1 !important; transform: none !important; translate: none !important;
  clip-path: none !important; transition: none !important;
}
