/* Final visual repairs requested from the reference screenshots. */
:root {
  --key-cursor: url("/assets/cursor/key-cursor-32.png") 6 6;
  --link-line-duration: 800ms;
  --link-line-easing: cubic-bezier(0.45, 0, 0.55, 1);
  --apply-hover-duration: 420ms;
  --apply-hover-easing: cubic-bezier(0.22, 1, 0.36, 1);
}

html,
body,
body * {
  cursor: var(--key-cursor), auto;
}

body :is(a, button, summary, label, input, textarea, select, .button) {
  cursor: var(--key-cursor), pointer;
}

:disabled {
  cursor: not-allowed !important;
}

.hero__slideshow {
  position: absolute;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  background: #85745e;
}

.hero__slideshow .hero__slide {
  z-index: 0;
  opacity: 0;
  object-position: center;
  will-change: transform;
  transform: translate3d(100%, 0, 0);
  transition: transform 3000ms cubic-bezier(0.76, 0, 0.24, 1);
}

.hero__slideshow .hero__slide.is-active {
  z-index: 1;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.hero__slideshow .hero__slide.is-leaving {
  z-index: 2;
  opacity: 1;
  transform: translate3d(-100%, 0, 0);
}

.hero__slideshow--static .hero__slide {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  transition: none;
}
.home-page .hero__card {
  width: min(700px, 61vw);
  padding-block: clamp(24px, 2.4vw, 34px);
  padding-inline: clamp(48px, 5vw, 72px);
}

.home-page .hero__card h1 {
  margin-bottom: 1rem;
  font-size: clamp(3.35rem, 4.65vw, 5.1rem);
  line-height: 0.94;
}

.home-page .hero__copy {
  max-width: 56ch;
  margin: 1rem auto 1.4rem;
  line-height: 1.65;
}

.scope-strip__intro {
  max-width: 900px;
  margin: 0.75rem auto 1.75rem;
  color: rgba(32, 39, 64, 0.78);
  font-size: clamp(0.87rem, 1.15vw, 1rem);
  line-height: 1.75;
}

.recommendation-card {
  color: inherit;
  text-decoration: none;
}

.process__intro {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.process__intro p:last-child {
  max-width: 22ch;
  margin: 0.65rem 0 0;
  color: rgba(32, 39, 64, 0.68);
  font-size: 0.82rem;
  line-height: 1.6;
}

.process__note {
  grid-column: 2;
  margin: 0.9rem 0 0;
  padding-top: 0.85rem;
  color: rgba(32, 39, 64, 0.68);
  border-top: 1px solid var(--line-gold);
  font-size: 0.78rem;
}

.process__number-two {
  display: inline-block;
  transform: scale(1.18);
  transform-origin: 0 100%;
}

.process__number {
  white-space: nowrap;
}

.button[href^="/apply.php"] {
  transition:
    color var(--apply-hover-duration) var(--apply-hover-easing),
    background var(--apply-hover-duration) var(--apply-hover-easing),
    border-color var(--apply-hover-duration) var(--apply-hover-easing),
    transform var(--apply-hover-duration) var(--apply-hover-easing);
}

.membership-card__key {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  font-size: 0;
}

.membership-card__key svg {
  width: 28px;
  height: 28px;
  display: block;
  overflow: visible;
}

.membership-card__description {
  min-height: 4.6em;
  margin: 0.95rem 0;
  color: rgba(32, 39, 64, 0.72);
  font-size: 0.75rem;
  line-height: 1.55;
}

.membership-card--featured .membership-card__description {
  color: rgba(246, 242, 234, 0.72);
}

.membership-card li strong {
  font-weight: 650;
}

/* Animated gold line for every textual footer link. */
.site-footer__nav a,
.site-footer__contact a,
.site-footer__bottom a:not(.site-footer__operator-link) {
  position: relative;
  display: inline-block;
}

.site-footer__nav a::after,
.site-footer__contact a::after,
.site-footer__bottom a:not(.site-footer__operator-link)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.32rem;
  height: 1px;
  background: var(--brass-light);
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform var(--link-line-duration) var(--link-line-easing);
}

.primary-nav a::after {
  transition: transform var(--link-line-duration) var(--link-line-easing);
}

.site-footer__nav a:hover::after,
.site-footer__nav a:focus-visible::after,
.site-footer__contact a:hover::after,
.site-footer__contact a:focus-visible::after,
.site-footer__bottom a:not(.site-footer__operator-link):hover::after,
.site-footer__bottom a:not(.site-footer__operator-link):focus-visible::after {
  transform: scaleX(1);
  transform-origin: left center;
}

/* Exact line icons sampled from the supplied scope reference strip. */
.scope-item__icon {
  width: 50px;
  height: 34px;
  display: block;
  margin: 0 auto 0.75rem;
  background-image: url("/assets/img/scope/scope-line-icons.png");
  background-repeat: no-repeat;
  background-size: 558px 131px;
}

.scope-item__icon--restaurant {
  background-position: -67px -13px;
}

.scope-item__icon--hotel {
  background-position: -210px -13px;
}

.scope-item__icon--event {
  background-position: -346px -15px;
}

.scope-item__icon--transport {
  background-position: -483px -15px;
}

.site-footer__instagram {
  width: 28px;
  height: 28px;
  display: grid !important;
  place-items: center;
  margin-top: 0.7rem;
  color: var(--brass-light);
  border: 1px solid currentColor;
  border-radius: 8px;
  transition: color 200ms ease, transform 200ms ease;
}

.site-footer__instagram::before {
  content: "";
  width: 10px;
  height: 10px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.site-footer__instagram span {
  position: absolute;
  color: inherit;
  top: 5px;
  right: 5px;
  width: 3px;
  height: 3px;
  background: currentColor;
  border-radius: 50%;
}

.site-footer__instagram::after {
  display: none;
}

.site-footer__instagram:hover,
.site-footer__instagram:focus-visible {
  color: var(--cream);
  transform: translateY(-2px);
}

/* Restore normal table layout so columns fill the bordered width. */
.legal__table {
  width: 100%;
  min-width: 0;
  display: table;
  overflow: visible;
  table-layout: fixed;
}

@media (max-width: 980px) {
  .home-page .hero__inner {
    justify-content: center;
    align-items: center;
  }
}

@media (max-width: 700px) {
  .home-page .hero__card {
    width: calc(100% - 18px);
    padding: 34px 24px;
  }

  .home-page .hero__card h1 {
    font-size: clamp(3rem, 12vw, 4.25rem);
  }

  .scope-strip__intro {
    margin-bottom: 1.1rem;
    text-align: left;
  }

  .process__intro p:last-child,
  .process__note {
    max-width: none;
  }

  .process__note {
    grid-column: 1;
  }

  .membership-card__description {
    min-height: 0;
  }

  .legal__table {
    min-width: 0;
    display: block;
    overflow-x: auto;
    table-layout: auto;
  }

  .legal__table thead,
  .legal__table tbody {
    width: 620px;
    display: table;
    table-layout: fixed;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__slideshow .hero__slide {
    opacity: 0;
    animation: none;
    transform: none;
    transition: none;
  }

  .hero__slideshow .hero__slide.is-active {
    opacity: 1;
  }

  .site-footer__nav a::after,
  .site-footer__contact a::after,
  .site-footer__bottom a:not(.site-footer__operator-link)::after {
    transition: none;
  }
}
