/* The price page (/prices, resources/views/prices.blade.php), on top of the landing page's look (home.css):
   every payment option along the top, and below them a carousel with one card per option (prices.js). */

.prices-page { padding-top: clamp(20px, 3vw, 40px); padding-bottom: 40px; }
.prices-home { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge);
  color: var(--ink-2); font: 600 .8125rem var(--font); text-decoration: none; transition: border-color .15s, color .15s; }
.prices-home:hover, .prices-home:focus-visible { border-color: var(--gold); color: var(--gold); }

.prices-intro { max-width: 60ch; margin-bottom: clamp(18px, 3vw, 30px); }
.prices-intro h1 { margin: 8px 0 0; font: 700 clamp(2rem, 3vw + 1rem, 3.25rem) var(--font-display); letter-spacing: -.03em; line-height: 1.05; }
.prices-intro .copy { margin: 10px 0 0; color: var(--ink-2); font-size: 1.0625rem; }

.prices-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(14px, 2vw, 22px); }   /* never wider than the page */

/* ---------- the payment options along the top: a row that scrolls sideways when it does not fit ---------- */
.price-tabs ul { position: relative; display: flex; gap: 8px; margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x proximity;
  scrollbar-width: none; }
.price-tabs ul::-webkit-scrollbar { display: none; }
.price-tabs li { flex: 0 0 auto; scroll-snap-align: start; }
.price-tabs a { position: relative; display: grid; gap: 2px; min-width: 150px; padding: 10px 16px 12px; border-radius: var(--radius-sm);
  border: 1px solid var(--edge); background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  color: var(--ink); text-decoration: none; transition: background-color .15s, border-color .15s, transform .15s; }
.price-tabs a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px; background: var(--gold);
  transform: scaleX(0); transition: transform .2s ease; }
.price-tabs a:hover { border-color: var(--edge-strong); transform: translateY(-1px); }
.price-tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.price-tabs a[aria-current="true"] { background: linear-gradient(140deg, rgba(242, 183, 5, .18), rgba(242, 183, 5, .05)); border-color: rgba(242, 183, 5, .45); }
.price-tabs a[aria-current="true"]::after { transform: scaleX(1); }
.price-tab-name { font: 600 .9375rem var(--font-display); letter-spacing: -.01em; white-space: nowrap; }
.price-tab-detail { color: var(--ink-3); font-size: .8125rem; white-space: nowrap; }
.price-tabs a[aria-current="true"] .price-tab-name { color: var(--gold-2); }

/* ---------- the carousel: one card per option, the ones either side peeking in; moved by hand only ---------- */
.price-carousel { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.price-track { position: relative; display: flex; align-items: flex-start; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  /* the first and last cards can sit in the middle too, with a neighbour peeking in on one side */
  padding: 6px max(6%, calc((100% - 720px) / 2)) 18px;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.price-track::-webkit-scrollbar { display: none; }
.price-track:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: var(--radius); }
.price-arrow { display: grid; place-items: center; width: 48px; height: 48px; padding: 0; border-radius: 999px; border: 1px solid var(--edge-strong);
  background: var(--glass-solid); color: var(--ink); cursor: pointer; box-shadow: var(--shadow); transition: border-color .15s, color .15s, opacity .15s; }
.price-arrow svg { width: 22px; height: 22px; }
.price-arrow:hover, .price-arrow:focus-visible { border-color: var(--gold); color: var(--gold); }
.price-arrow:disabled { opacity: .35; cursor: default; border-color: var(--edge); color: var(--ink-3); }
.price-count { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--ink-3); font-size: .8125rem; font-variant-numeric: tabular-nums; }
/* without scripts there is nothing to move the carousel but the track itself */
html:not(.js) .price-arrow, html:not(.js) .price-count { display: none; }

/* ---------- a card ---------- */
.price-option { flex: 0 0 min(720px, 100%); scroll-snap-align: center; position: relative; padding: clamp(22px, 3vw, 36px); border-radius: var(--radius);
  border: 1px solid var(--edge); box-shadow: var(--shadow);
  background: linear-gradient(160deg, rgba(242, 183, 5, .16), rgba(255, 255, 255, .04) 45%, rgba(255, 255, 255, .02)), rgba(9, 14, 30, .88);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); transition: opacity .3s ease, transform .3s ease; }
.price-option:focus { outline: none; }
/* a link straight to one option (/prices#walk-in-...) brings its card into the carousel without the browser also
   scrolling the whole page down to it: the cards sit just under the heading, near the top of the page */
.price-option { scroll-margin-top: 100vh; }
/* the cards either side of the chosen one step back */
.js [data-prices] .price-option:not(.is-on) { opacity: .45; transform: scale(.96); }
@media (prefers-reduced-motion: reduce) {
  .price-track { scroll-behavior: auto; }
  .price-option, .price-tabs a, .price-tabs a::after { transition: none; }
}
.price-option h2 { margin: 0; font: 700 clamp(1.6rem, 1.6vw + 1rem, 2.25rem) var(--font-display); letter-spacing: -.02em; }
.price-detail { margin: 6px 0 0; color: var(--ink-3); font-size: .9375rem; }
.price-amount { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; }
.price-amount b { font: 700 clamp(2.4rem, 3vw + 1.4rem, 3.5rem) var(--font-display); letter-spacing: -.03em; color: var(--gold); }
.price-amount span { color: var(--ink-2); font-size: 1rem; }
.price-rates { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 22px 0 0; }
.price-rates > div { padding: 14px 16px; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .05); border: 1px solid var(--edge); }
.price-rates dt { color: var(--ink-3); font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.price-rates dd { margin: 4px 0 0; }
.price-rates b { font: 700 clamp(1.8rem, 1.6vw + 1.2rem, 2.4rem) var(--font-display); letter-spacing: -.02em; color: var(--gold); }
.price-period { margin: 8px 0 0; color: var(--ink-2); font-size: .9375rem; }
.price-features { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--edge); list-style: none; display: grid; gap: 10px;
  color: var(--ink-2); font-size: 1rem; }
.price-features li { position: relative; padding-left: 28px; }
.price-features li::before { content: ""; position: absolute; left: 3px; top: .42em; width: 13px; height: 7px; border: solid var(--gold);
  border-width: 0 0 2px 2px; transform: rotate(-45deg); }
/* what members get on top of the training: the exclusive member benefits */
.price-benefits { margin: 22px 0 0; padding: 16px 18px; border-radius: var(--radius-sm); border: 1px solid var(--edge);
  background: linear-gradient(140deg, rgba(242, 183, 5, .10), rgba(255, 255, 255, .03)); }
.price-benefits h3 { margin: 0 0 10px; font: 600 .6875rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.price-benefits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--ink); font-size: .9375rem; }
.price-benefits li { position: relative; padding-left: 26px; }
.price-benefits li::before { content: "★"; position: absolute; left: 2px; top: 0; color: var(--gold); font-size: .875rem; }

/* things to know before booking (who books the court, the head coach's availability) */
.price-notes { margin: 22px 0 0; padding: 14px 16px 14px 18px; border-radius: var(--radius-sm); border: 1px solid rgba(242, 183, 5, .35);
  border-left: 3px solid var(--gold); background: rgba(242, 183, 5, .08); }
.price-notes p { margin: 0 0 6px; font: 600 .6875rem var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.price-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--ink); font-size: .9375rem; }
.price-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: linear-gradient(140deg, var(--gold-2), var(--gold)); color: #0B1024; font: 700 .9375rem var(--font); text-decoration: none;
  box-shadow: 0 10px 24px -12px rgba(242, 183, 5, .8); transition: filter .15s, transform .15s; }
.price-link:hover, .price-link:focus-visible { filter: brightness(1.08); transform: translateY(-1px); }
.price-link:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

/* ---------- phones: the cards fill the width and the arrows tuck in under them ---------- */
@media (max-width: 819px) {
  .price-carousel { grid-template-columns: auto minmax(0, 1fr) auto; }
  .price-track { padding: 6px 4% 16px; gap: 12px; }
  .price-option { flex-basis: 92%; }
  .price-arrow { grid-row: 2; width: 44px; height: 44px; }
  .price-arrow--prev { grid-column: 1; }
  .price-arrow--next { grid-column: 3; }
  .price-count { grid-row: 2; grid-column: 2; }
  .price-track { grid-column: 1 / -1; grid-row: 1; }
  .prices-home { display: none; }   /* the logo goes home too, and the bar has little room */
}
@media (max-width: 559px) {
  .price-option { padding: 20px 16px; }
  .price-rates { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }   /* two prices a row, so 1:1 to 1:4 fit in two rows */
  .price-rates > div { padding: 10px 12px; }
  .price-rates b { font-size: 1.6rem; }
  .price-features { font-size: .9375rem; }
}
