/* =========================================================
   THE HILLS LUX CLUB — VIP layer
   Booking/enquiry modal · floating concierge button ·
   scroll-reveal motion. Loads on top of hologram.css tokens.
   ========================================================= */

/* ---------- page fade transition ---------- */
.vip-fade { opacity: 0; }
.vip-fade.vip-in { opacity: 1; transition: opacity 0.55s var(--ease); }
@media (prefers-reduced-motion: reduce) { .vip-fade { opacity: 1 !important; } }

/* ---------- cursor-follow gold glow (desktop pointer only) ---------- */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px;
  border-radius: 50%; pointer-events: none; z-index: 2; opacity: 0;
  background: radial-gradient(circle, rgba(231,207,148,0.12), rgba(231,207,148,0.045) 42%, transparent 70%);
  transition: opacity 0.7s var(--ease); will-change: transform;
}
.cursor-glow.is-on { opacity: 1; }

/* ---------- at-a-glance stats (animated counters) ---------- */
.vip-stats {
  position: relative; z-index: 5; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4.5rem) var(--pad);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.4rem, 3vw, 3rem);
  border-top: 1px solid rgba(220,232,245,0.08); border-bottom: 1px solid rgba(220,232,245,0.08);
}
.vip-stat { text-align: center; }
.vip-stat__num {
  display: block; font-family: var(--serif); font-weight: 500; color: var(--gold-2);
  font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1; letter-spacing: 0.01em;
  text-shadow: 0 0 24px rgba(231,207,148,0.22);
}
.vip-stat__label {
  display: block; margin-top: 0.6rem; font-family: var(--mono);
  font-size: 0.58rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
@media (max-width: 720px) { .vip-stats { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.4rem; } }

/* ---------- membership tiers ---------- */
.tiers { position: relative; z-index: 5; max-width: var(--maxw); margin: 0 auto; padding: clamp(4.5rem, 10vw, 8rem) var(--pad); text-align: center; }
.tiers__head { font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, 5vw, 3.4rem); margin: 1rem auto clamp(2.4rem, 5vw, 3.8rem); }
.tiers__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2.4vw, 1.8rem); text-align: left; }
.tier {
  position: relative; display: flex; flex-direction: column;
  border: 1px solid var(--edge); background: linear-gradient(180deg, rgba(20,24,30,0.6), rgba(20,24,30,0.18));
  padding: clamp(1.6rem, 3vw, 2.4rem);
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tier:hover { transform: translateY(-6px); border-color: var(--edge-hot); box-shadow: 0 26px 60px rgba(0,0,0,0.45); }
.tier--feature { border-color: var(--gold); box-shadow: 0 0 44px rgba(231,207,148,0.12); }
.tier--feature::before {
  content: "Most requested"; position: absolute; top: -0.7rem; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: #14110a;
  font-family: var(--mono); font-size: 0.5rem; letter-spacing: 0.18em; text-transform: uppercase; padding: 0.3rem 0.7rem;
}
.tier__name { font-family: var(--serif); font-weight: 600; font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-2); }
.tier__line { color: var(--muted); margin: 0.4rem 0 1.4rem; font-size: 0.95rem; }
.tier__list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.8rem; flex: 1; }
.tier__list li { position: relative; padding-left: 1.3rem; color: var(--ink); font-size: 0.92rem; line-height: 1.4; }
.tier__list li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 5px; height: 5px; background: var(--gold); transform: rotate(45deg); box-shadow: 0 0 8px rgba(231,207,148,0.5); }
.tier__btn { all: unset; cursor: pointer; text-align: center; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; padding: 0.95rem; border: 1px solid var(--edge-hot); color: var(--gold-2); transition: background 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease); }
.tier__btn:hover { background: var(--gold); color: #000; border-color: var(--gold); }
.tier--feature .tier__btn { background: var(--gold); color: #000; border-color: var(--gold); }
.tier--feature .tier__btn:hover { background: transparent; color: var(--gold-2); }
@media (max-width: 820px) { .tiers__grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; } }

/* ---------- testimonials ---------- */
.testimonials { position: relative; z-index: 5; text-align: center; padding: clamp(4.5rem, 10vw, 7.5rem) var(--pad); border-top: 1px solid rgba(220,232,245,0.08); }
.quotes { position: relative; max-width: 62ch; margin: 1.6rem auto 0; }
.quote {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  transition: opacity 0.9s var(--ease);
  font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2.15rem); line-height: 1.4; color: var(--ink);
}
.quote.is-active { opacity: 1; position: relative; pointer-events: auto; }
.quote cite { display: block; margin-top: 1.3rem; font-family: var(--mono); font-style: normal; font-size: 0.6rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-2); }
.quotes__dots { display: flex; gap: 0.5rem; justify-content: center; margin-top: 2rem; }
.quotes__dots button { all: unset; cursor: pointer; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); transition: background 0.3s var(--ease), transform 0.3s var(--ease); }
.quotes__dots button.is-active { background: var(--gold-2); transform: scale(1.25); }

/* ---------- scroll-reveal motion ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* ---------- floating concierge button ---------- */
.concierge-fab {
  position: fixed; right: clamp(1rem, 3vw, 2.2rem); bottom: clamp(1rem, 3vw, 2.2rem);
  z-index: 90; display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.85rem 1.25rem; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #14110a; border: 1px solid var(--gold-2);
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 0 rgba(231,207,148,0.5);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), opacity 0.5s var(--ease);
  animation: fabPulse 3.4s ease-in-out infinite;
}
.concierge-fab:hover { transform: translateY(-3px); box-shadow: 0 20px 50px rgba(0,0,0,0.55), 0 0 24px rgba(231,207,148,0.4); }
.concierge-fab__dot { width: 8px; height: 8px; border-radius: 50%; background: #1c4d2e; box-shadow: 0 0 8px #6fe39a; }
.concierge-fab__label { white-space: nowrap; }
@keyframes fabPulse { 0%,100% { box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 0 rgba(231,207,148,0.45);} 50% { box-shadow: 0 14px 40px rgba(0,0,0,0.5), 0 0 0 10px rgba(231,207,148,0);} }
@media (max-width: 560px) { .concierge-fab__label { display: none; } .concierge-fab { padding: 0.85rem; } }
@media (prefers-reduced-motion: reduce) { .concierge-fab { animation: none; } }

/* ---------- booking / enquiry modal ---------- */
.book {
  position: fixed; inset: 0; z-index: 130; display: grid; place-items: center;
  padding: 1.5rem var(--pad);
  background: radial-gradient(120% 90% at 50% 30%, rgba(10,12,15,0.86), rgba(4,5,6,0.95));
  opacity: 0; visibility: hidden; transition: opacity 0.5s var(--ease), visibility 0.5s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.book.is-open { opacity: 1; visibility: visible; }
body.book-open { overflow: hidden; }

.book__panel {
  position: relative; width: min(620px, 100%); max-height: 92vh; overflow-y: auto;
  border: 1px solid var(--edge); background: rgba(18,21,27,0.92);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  box-shadow: 0 40px 110px rgba(0,0,0,0.6), inset 0 0 60px rgba(150,170,200,0.04);
  transform: translateY(24px) scale(0.98); transition: transform 0.6s var(--ease-io);
}
.book.is-open .book__panel { transform: none; }
.book__panel::-webkit-scrollbar { width: 6px; }
.book__panel::-webkit-scrollbar-thumb { background: var(--edge); border-radius: 3px; }

.book__close {
  position: absolute; top: 0.9rem; right: 1rem; cursor: pointer; background: none; border: none;
  color: var(--muted); font-family: var(--mono); font-size: 1.3rem; line-height: 1; padding: 0.2rem;
  transition: color 0.3s var(--ease);
}
.book__close:hover { color: var(--gold-2); }

.book__eyebrow { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); }
.book__title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.05; margin: 0.6rem 0 0.3rem; }
.book__service { color: var(--gold-2); font-family: var(--serif); font-style: italic; }
.book__lede { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; max-width: 46ch; }

.book__form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem 1.2rem; text-align: left; }
.book__form[hidden] { display: none; }   /* attribute must beat .book__form's display:grid */
.book__form .field--full { grid-column: 1 / -1; }
.book__form .field input,
.book__form .field select,
.book__form .field textarea {
  width: 100%; background: transparent; border: none; border-bottom: 1px solid rgba(220,232,245,0.22);
  color: var(--ink); font-family: var(--sans); font-weight: 300; font-size: 0.98rem;
  padding: 1.3rem 0 0.6rem; outline: none; transition: border-color 0.4s var(--ease);
}
.book__form .field textarea { resize: vertical; min-height: 2.4rem; }
.book__form .field select { color-scheme: dark; cursor: pointer; }
.book__form .field select option { background: #14171c; color: var(--ink); }
.book__form .field input:focus,
.book__form .field select:focus,
.book__form .field textarea:focus { border-color: var(--gold-2); }
.book__form .field input[type="date"] { color-scheme: dark; font-family: var(--mono); letter-spacing: 0.04em; }
.book__form .field input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(0.7) sepia(1) saturate(2) hue-rotate(5deg); cursor: pointer; }
/* floating labels (match site) */
.book__form .field { position: relative; }
.book__form .field label {
  position: absolute; left: 0; top: 1.3rem; font-size: 0.92rem; color: var(--faint);
  pointer-events: none; transition: all 0.35s var(--ease);
}
.book__form .field input:focus + label,
.book__form .field input:not(:placeholder-shown) + label,
.book__form .field textarea:focus + label,
.book__form .field textarea:not(:placeholder-shown) + label,
.book__form .field--filled label,
.book__form .field select:focus + label {
  top: 0; font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-2);
}
.book__error { grid-column: 1/-1; color: #e98a8a; font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.05em; margin: -0.4rem 0; }
.book__error[hidden] { display: none; }
.book__fine { grid-column: 1/-1; color: var(--faint); font-family: var(--mono); font-size: 0.54rem; letter-spacing: 0.08em; text-align: center; margin-top: 0.2rem; }
.book__btn { grid-column: 1/-1; margin-top: 0.4rem; }

/* success state */
.book__done { text-align: center; padding: 1rem 0 0.4rem; animation: fadeUp 0.7s var(--ease) both; }
.book__done[hidden] { display: none; }
.book__done .tick {
  width: 56px; height: 56px; margin: 0 auto 1.2rem; border-radius: 50%;
  border: 1px solid var(--edge-hot); display: grid; place-items: center;
  color: var(--gold-2); font-size: 1.6rem; box-shadow: 0 0 28px rgba(231,207,148,0.25);
}
.book__done h3 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.5rem,4vw,2.2rem); margin-bottom: 0.6rem; }
.book__done p { color: var(--muted); max-width: 42ch; margin: 0 auto; }

@media (max-width: 540px) { .book__form { grid-template-columns: 1fr; } }
