/* Rewards: the Detail Club loyalty bar, the trading card, maintenance plans, and the social icon
   rows. Bundled into the home and checkout styles, and loaded on loyalty.html and maintenance.html. */

/* ---------- Social icon rows (socials.js) ---------- */
.cc-socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cc-social {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #cfe9ff; border: 1px solid rgba(120, 200, 255, .3);
  background: radial-gradient(circle at 35% 30%, rgba(47, 140, 255, .22), rgba(6, 12, 20, .9) 70%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .4);
  transition: transform .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.cc-social svg { width: 20px; height: 20px; fill: currentColor; }
.cc-social:hover { color: #fff; border-color: rgba(150, 215, 255, .8); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .45), 0 0 18px rgba(47, 140, 255, .45); }
.cc-social:focus-visible { outline: 2px solid #2f8cff; outline-offset: 3px; }
footer .cc-socials { margin-top: 10px; }

/* ---------- Detail Club bar: always at the bottom of the screen (cc-loyalty.js) ---------- */
.cc-club {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
  display: flex; align-items: center; gap: 14px;
  height: 38px; padding: 0 max(20px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(20px, env(safe-area-inset-left));
  background: linear-gradient(180deg, rgba(6, 12, 20, .82), rgba(3, 6, 9, .96));
  border-top: 1px solid rgba(120, 200, 255, .22);
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .45);
  color: #dce9f3; font: 500 12px/1 SpaceGrotesk, Arial, sans-serif; letter-spacing: .02em; text-decoration: none;
}
.cc-club:hover { color: #fff; }
.cc-club:focus-visible { outline: 2px solid #2f8cff; outline-offset: -3px; }
.cc-club-label { white-space: nowrap; color: #9fd8ff; text-transform: uppercase; letter-spacing: .16em; font-size: 10.5px; }
.cc-club-track { flex: 1; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; max-width: 520px; margin: 0 auto; }
.cc-club-seg { position: relative; height: 6px; border-radius: 3px; background: rgba(120, 170, 220, .14); box-shadow: inset 0 0 0 1px rgba(120, 200, 255, .18); overflow: hidden; }
/* the notch at the end of each segment */
.cc-club-seg::after { content: ""; position: absolute; right: 0; top: -1px; bottom: -1px; width: 2px; background: rgba(190, 228, 255, .5); }
.cc-club-fill { position: absolute; inset: 0; border-radius: inherit; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, #1d6fe0, #6fc0ff 70%, #e6f6ff); box-shadow: 0 0 10px rgba(80, 170, 255, .9);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1); }
.cc-club-seg.is-lit .cc-club-fill { transform: scaleX(1); }
.cc-club-count { white-space: nowrap; }
.cc-club.is-ready { border-top-color: rgba(255, 200, 90, .6); }
.cc-club.is-ready .cc-club-count { color: #ffd27a; }
.cc-club.is-ready .cc-club-fill { background: linear-gradient(90deg, #e0a52b, #ffd27a 70%, #fff4d6); box-shadow: 0 0 12px rgba(255, 200, 90, .9); }
@media (max-width: 600px) { .cc-club { gap: 10px; } .cc-club-label { display: none; } .cc-club-track { gap: 4px; } }
@media (prefers-reduced-motion: reduce) { .cc-club-fill { transition: none; } }
/* Everything that sat at the bottom moves up above the bar */
html.cc-club-on .quick-book { bottom: 52px !important; }
html.cc-club-on footer { padding-bottom: 150px !important; }

/* ---------- Rewards pages (loyalty.html, maintenance.html) on the booking-page base ---------- */
.rw-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 28px; }
.rw-top img { width: 64px; height: 64px; object-fit: contain; }
.rw-top nav { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.rw-top nav a { color: #a9c2d4; text-decoration: none; }
.rw-top nav a:hover, .rw-top nav a[aria-current] { color: #fff; }
.rw-lead { color: #c4d2dc; max-width: 60ch; font-size: 17px; }
.rw-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 0; padding: 0; list-style: none; }
.rw-steps li { padding: 16px; border-radius: 14px; border: 1px solid rgba(120, 200, 255, .2); background: rgba(10, 18, 26, .6); font-size: 15px; color: #cfdbe5; }
.rw-steps strong { display: block; color: #fff; margin-bottom: 6px; }
@media (max-width: 640px) { .rw-steps { grid-template-columns: 1fr; } }
.rw-prices { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.rw-prices th, .rw-prices td { padding: 12px 8px; border-bottom: 1px solid rgba(160, 200, 230, .16); text-align: left; }
.rw-prices th { color: #93a6b5; font-weight: 500; font-size: 13px; }
.rw-prices td:nth-child(2) { color: #8b98a4; text-decoration: line-through; }
.rw-prices td:nth-child(3) { color: #9fd8ff; font-weight: 600; }
.rw-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* ---------- The two reward flip cards: artwork cut from the card design (rewards-cards.js) ---------- */
.rw-card { width: 100%; max-width: 400px; }
.rw-flip-box { perspective: 1400px; }
.rw-flipper { position: relative; transform-style: preserve-3d; transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.rw-flipper.is-flipped { transform: rotateY(180deg); }
.rw-face { position: relative; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.rw-back { position: absolute; inset: 0; transform: rotateY(180deg); }
.rw-face img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 34px rgba(0, 0, 0, .6)) drop-shadow(0 0 22px rgba(47, 140, 255, .28)); }
.rw-flip { display: block; margin: 16px auto 0; min-height: 44px; padding: 0 20px; background: rgba(6, 12, 20, .6); border: 1px solid rgba(150, 200, 255, .35); color: #dce9f3; border-radius: 999px; font: inherit; font-size: 14px; cursor: pointer; }
.rw-flip[aria-pressed="true"] { border-color: #bfe4ff; color: #fff; }
.rw-flip:focus-visible { outline: 2px solid #2f8cff; outline-offset: 3px; }
/* Stamps sit exactly over the five empty circles in the artwork */
.rw-stamps i { position: absolute; top: 52.6%; width: 10.6%; aspect-ratio: 1; margin: -5.3% 0 0 -5.3%; border-radius: 50%; opacity: 0;
  background: radial-gradient(circle at 38% 32%, #f2faff, #7cc8ff 42%, #1d6fe0 78%); box-shadow: 0 0 16px rgba(90, 180, 255, .95); transition: opacity .4s ease; }
.rw-stamps i:nth-child(1) { left: 20.9%; }
.rw-stamps i:nth-child(2) { left: 35.7%; transition-delay: .2s; }
.rw-stamps i:nth-child(3) { left: 50.6%; transition-delay: .4s; }
.rw-stamps i:nth-child(4) { left: 65.6%; transition-delay: .6s; }
.rw-stamps i:nth-child(5) { left: 80.6%; transition-delay: .8s; }
.is-in .rw-stamps i.is-lit, .rw-member-card .rw-stamps i.is-lit { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .rw-flipper, .rw-stamps i { transition: none; } }
/* A member's own numbers under their card on the Detail Club page */
.rw-member-card { display: grid; gap: 16px; justify-items: center; }
.rw-member { width: 100%; max-width: 400px; padding: 16px; border-radius: 14px; border: 1px solid rgba(160, 215, 255, .22); background: rgba(6, 12, 20, .72); }
.rw-member h2 { margin: 0; font-size: 20px; }
.rw-member p { margin: 2px 0 12px; font-size: 13px; color: #9fd8ff; }
.rw-stats { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; font-size: 14px; color: #cfdbe5; font-variant-numeric: tabular-nums; }
.rw-stats dt { color: #93a6b5; }
.rw-stats dd { margin: 0; text-align: right; color: #fff; font-weight: 600; }
.rw-ready { margin: 0; width: 100%; max-width: 400px; padding: 12px 16px; border-radius: 12px; border: 1px solid rgba(255, 200, 90, .55); background: rgba(40, 28, 6, .5); color: #ffe2a6; text-align: center; }

/* ---------- Homepage Rewards section ---------- */
.rw-show .section-top { margin-bottom: 28px; }
/* position lifts it over the fixed background video */
.rw-deck, .rw-cta-row { position: relative; z-index: 3; }
.rw-deck { display: grid; grid-template-columns: repeat(2, minmax(0, 400px)); justify-content: center; gap: clamp(20px, 3vw, 40px); }
.rw-cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
@media (max-width: 640px) { .rw-deck { grid-template-columns: minmax(0, 340px); gap: 32px; } }

/* Rewards pages: readable body copy, and the card leads the first screen next to the heading */
.rw-page .m-note { font-size: 15px; }
.rw-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 360px); gap: clamp(24px, 5vw, 56px); align-items: center; }
.rw-hero h1 { font-size: clamp(34px, 5.5vw, 58px); }
@media (max-width: 700px) { .rw-hero { grid-template-columns: minmax(0, 1fr); } .rw-hero .rw-card, .rw-hero .rw-member-card { width: min(340px, 100%); justify-self: center; } }
