/* ==========================================================
   Another Look Hair Institute — homepage promo pop-up
   Loaded on the home page only (index.html). Pairs with
   /assets/js/promo-popup.js, which builds the markup.
   ========================================================== */

.alhi-promo {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(0, 0, 0, .74);
  opacity: 0;
  transition: opacity .28s ease;
}
.alhi-promo.is-open { opacity: 1; }
.alhi-promo[hidden] { display: none; }

.alhi-promo__panel {
  position: relative;
  width: fit-content;
  max-width: min(92vw, 600px);
  background: #000;
  border: 1px solid var(--gold, #d0a96f);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
  transform: translateY(10px);
  transition: transform .28s ease;
}
.alhi-promo.is-open .alhi-promo__panel { transform: translateY(0); }

.alhi-promo__link { display: block; line-height: 0; }

.alhi-promo__img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
  margin: 0 auto;
}

.alhi-promo__actions {
  display: flex;
  justify-content: center;
  padding: 16px 16px 18px;
}
.alhi-promo__actions[hidden] { display: none; }

.alhi-promo__close {
  position: absolute;
  top: -18px;
  right: -18px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--gold, #d0a96f);
  border-radius: 50%;
  background: #000;
  color: var(--gold, #d0a96f);
  cursor: pointer;
  transition: background .2s ease, color .2s ease;
}
.alhi-promo__close:hover,
.alhi-promo__close:focus-visible {
  background: var(--gold, #d0a96f);
  color: #000;
}
.alhi-promo__close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.alhi-promo__close svg { width: 18px; height: 18px; }

/* Keep the close button on-screen on narrow phones */
@media (max-width: 620px) {
  .alhi-promo { padding: 28px 14px; }
  .alhi-promo__close { top: -14px; right: -10px; width: 40px; height: 40px; }
}

html.alhi-promo-lock,
html.alhi-promo-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  .alhi-promo,
  .alhi-promo__panel { transition: none; transform: none; }
}
