/* Precision Dance brand: red, black, white, Poppins (matches precisiondance.co.nz) */
:root {
  --red: #db0000;
  --red-dark: #b00000;
  --black: #0b0b0b;
  --blush: #f6eaea;
  --bg: #faf7f7;
  --card: #ffffff;
  --text: #111111;
  --muted: #6b6666;
  --line: #ebe4e4;
  --radius: 14px;
  --shadow: 0 1px 2px rgb(0 0 0 / .04), 0 10px 30px rgb(0 0 0 / .06);
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* names used by the admin page */
  --accent: var(--red);
  --accent-text: #fff;
  --selected: var(--blush);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; font-family: var(--font); font-weight: 300; line-height: 1.6;
  background: var(--bg); color: var(--text); -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-weight: 600; line-height: 1.2; }
strong, b { font-weight: 600; }
a { color: var(--red); }
button { font-family: inherit; }
:focus-visible { outline: 3px solid rgb(219 0 0 / .45); outline-offset: 2px; }

/* ---------- Site header ---------- */
.site-top { background: #fff; border-bottom: 1px solid var(--line); }
.site-top .inner {
  max-width: 1160px; margin: 0 auto; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.logo img { height: 52px; width: auto; display: block; }
.back { font-size: .88rem; font-weight: 500; color: var(--text); text-decoration: none; white-space: nowrap; }
.back:hover { color: var(--red); }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--black); color: #fff; overflow: hidden; }
.hero-bg { position: absolute; inset: 0 0 0 38%; background: center 30% / cover no-repeat; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, var(--black) 0%, rgb(11 11 11 / .55) 30%, rgb(11 11 11 / 0) 65%),
    linear-gradient(0deg, var(--black) 0%, rgb(11 11 11 / 0) 35%);
}
.hero-inner { position: relative; max-width: 1160px; margin: 0 auto; padding: 76px 16px 92px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px;
  text-transform: uppercase; letter-spacing: .2em; font-size: .76rem; font-weight: 600;
}
.eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 2px; background: var(--red); }
.hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.8rem); font-weight: 700; letter-spacing: -.015em; margin: 0 0 14px; max-width: 13ch; }
.hero .lead { max-width: 44ch; margin: 0 0 30px; font-size: 1.05rem; color: rgb(255 255 255 / .8); }
.trust { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .86rem; color: rgb(255 255 255 / .85); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { color: var(--red); flex: none; }

/* ---------- Progress stepper ---------- */
.stepper {
  position: sticky; top: 0; z-index: 10;
  background: rgb(255 255 255 / .94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.stepper ol { max-width: 1160px; margin: 0 auto; padding: 12px 16px; list-style: none; display: flex; gap: 10px; counter-reset: step; }
.stepper li { flex: 1; display: flex; align-items: center; gap: 10px; font-size: .86rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.stepper li:last-child { flex: none; }
.stepper li::before {
  counter-increment: step; content: counter(step); flex: none;
  display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid var(--line); background: #fff; font-weight: 600; font-size: .82rem;
}
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); }
.stepper li.active { color: var(--text); }
.stepper li.active::before { border-color: var(--red); color: var(--red); }
.stepper li.done { color: var(--text); }
.stepper li.done::before { content: "✓"; background: var(--red); border-color: var(--red); color: #fff; }
.stepper li.done::after { background: var(--red); }
@media (max-width: 400px) { .stepper ol { gap: 6px; } .stepper li { gap: 6px; font-size: .8rem; } }

/* ---------- Layout ---------- */
.layout {
  max-width: 1160px; margin: 0 auto; padding: 32px 16px 72px;
  display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; align-items: start;
}
.step-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin-bottom: 24px; scroll-margin-top: 76px;
}
.step-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.step-head .num {
  flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red); color: #fff; font-weight: 600; font-size: .92rem;
}
.step-head h2 { margin: 0; font-size: 1.3rem; }
.sub { margin: 26px 0 10px; font-size: .76rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sub.first { margin-top: 0; }

/* ---------- Show cards ---------- */
.shows { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.show {
  position: relative; display: flex; flex-direction: column; overflow: hidden; padding: 0;
  text-align: left; font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 12px;
  transition: border-color .15s, transform .15s, box-shadow .15s;
}
.show:hover:not(:disabled) { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #d9cdcd; }
.show[aria-pressed="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgb(219 0 0 / .12); }
.show:disabled { cursor: not-allowed; opacity: .6; }
.show .img { position: relative; aspect-ratio: 16 / 10; background: var(--black) center / cover no-repeat; }
.show .img.placeholder { background: radial-gradient(circle at 70% 25%, rgb(219 0 0 / .6), transparent 60%), var(--black); }
.date-chip {
  position: absolute; left: 10px; bottom: 10px; padding: 4px 10px; border-radius: 8px;
  background: #fff; color: var(--text); font-size: .78rem; font-weight: 600; box-shadow: 0 2px 8px rgb(0 0 0 / .25);
}
.sel-badge {
  position: absolute; top: 10px; right: 10px; width: 30px; height: 30px; border-radius: 50%;
  display: none; place-items: center; background: var(--red); color: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .3);
}
.show[aria-pressed="true"] .sel-badge { display: grid; }
.soldout-tag {
  position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: 6px;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
}
.show .body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.show h3 { margin: 0; font-size: 1.08rem; }
.meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .85rem; }
.meta svg { flex: none; color: var(--red); }
.blurb { margin: 0; color: var(--muted); font-size: .88rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.show .foot { margin-top: auto; padding-top: 12px; display: flex; justify-content: space-between; align-items: baseline; border-top: 1px dashed var(--line); }
.from { font-size: .82rem; color: var(--muted); }
.from strong { color: var(--text); font-size: 1.05rem; }
.pick { font-size: .85rem; font-weight: 600; color: var(--red); }

/* ---------- Date pills ---------- */
.dates { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
.date {
  display: flex; flex-direction: column; padding: 10px 14px; text-align: left;
  font: inherit; color: inherit; cursor: pointer;
  background: #fff; border: 2px solid var(--line); border-radius: 12px; transition: border-color .15s, background .15s;
}
.date:hover:not(:disabled) { border-color: #d3c6c6; }
.date[aria-checked="true"] { border-color: var(--red); background: var(--blush); }
.date:disabled { cursor: not-allowed; opacity: .5; }
.date .dow { font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.date .day { font-size: 1.15rem; font-weight: 600; }
.date .time { font-size: .9rem; }
.date .left { margin-top: 4px; font-size: .76rem; font-weight: 500; color: var(--red); }
.date:disabled .left { color: var(--muted); }

/* ---------- Ticket rows ---------- */
.ticket { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.ticket:first-child { border-top: 0; padding-top: 4px; }
.ticket .name { display: block; font-weight: 600; }
.ticket .note { font-size: .85rem; color: var(--muted); }
.ticket-right { display: flex; align-items: center; gap: 16px; }
.ticket .price { font-weight: 600; white-space: nowrap; }
.qty { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.qty button {
  width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 1.25rem; line-height: 1; background: #fff; color: var(--text); box-shadow: 0 1px 2px rgb(0 0 0 / .12);
}
.qty button.plus { background: var(--red); color: #fff; }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty output { min-width: 24px; text-align: center; font-weight: 600; }

/* ---------- Order summary ---------- */
.summary-col { position: sticky; top: 76px; }
.summary-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 76px; }
.summary-head { position: relative; padding: 18px 20px; background: var(--black); color: #fff; }
.summary-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--red); }
.summary-head h2 { margin: 0; font-size: 1.05rem; }
.summary-body { padding: 20px; }
.order-show { display: flex; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.order-show .thumb { flex: none; width: 64px; height: 64px; border-radius: 10px; background: var(--black) center / cover no-repeat; }
.order-show strong { display: block; }
.order-show span { display: block; font-size: .85rem; color: var(--muted); }
.lines { width: 100%; border-collapse: collapse; font-size: .94rem; }
.lines td { padding: 5px 0; }
.lines td:last-child { text-align: right; }
.lines .total td { padding-top: 12px; border-top: 1px solid var(--line); font-size: 1.1rem; font-weight: 600; }
.empty { margin: 0; color: var(--muted); font-size: .92rem; }
.buyer { margin-top: 18px; }
.buyer .sub { margin: 0 0 8px; }
.buyer .field { margin-bottom: 10px; gap: 4px; }
.buyer .field > span { padding: 4px 0; font-size: .9rem; }
.buyer input { width: 100%; font: inherit; font-size: 16px; font-weight: 400; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.buyer input:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.terms { display: flex; gap: 10px; align-items: flex-start; margin: 18px 0; font-size: .9rem; cursor: pointer; }
.terms input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 12px 0 0; font-size: .8rem; color: var(--muted); }
.message { margin: 12px 0 0; font-size: .9rem; color: var(--red); }
.message:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 15px 20px; border: 0; border-radius: 8px; cursor: pointer; text-decoration: none;
  font: inherit; font-weight: 600; font-size: 1rem; background: var(--red); color: #fff;
  transition: background .15s, transform .1s;
}
.btn:hover:not(:disabled) { background: var(--red-dark); }
.btn:active:not(:disabled) { transform: scale(.99); }
.btn:disabled { background: #d8cfcf; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--text); border: 2px solid var(--line); }
.btn.ghost:hover { background: #fff; border-color: var(--text); }

/* ---------- Mobile order bar ---------- */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--black); color: #fff; box-shadow: 0 -6px 24px rgb(0 0 0 / .25);
}
.mobilebar strong { display: block; font-size: 1.1rem; }
.mobilebar span { font-size: .8rem; color: rgb(255 255 255 / .7); }
.mobilebar .btn { width: auto; padding: 12px 20px; }

/* ---------- Footer ---------- */
.site-foot { background: var(--black); color: rgb(255 255 255 / .7); font-size: .88rem; }
.site-foot .inner { max-width: 1160px; margin: 0 auto; padding: 44px 16px 36px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 28px 48px; }
.site-foot p { margin: 6px 0 0; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { color: var(--red); }
.site-foot .brand { color: #fff; font-weight: 700; font-size: 1.05rem; letter-spacing: .1em; text-transform: uppercase; }
.site-foot .brand span { color: var(--red); }
.site-foot .h { color: #fff; font-weight: 600; }
.site-foot .bottom { border-top: 1px solid rgb(255 255 255 / .1); padding: 16px; text-align: center; font-size: .78rem; }

/* ---------- Simple pages (terms, success) ---------- */
.page { max-width: 760px; margin: 0 auto; padding: 48px 16px 72px; }
.page-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.page-card h1 { margin-top: 0; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.page-card ol { padding-left: 1.2em; }
.page-card li { margin-bottom: 10px; }
.page-card li::marker { color: var(--red); font-weight: 600; }
.done-icon { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: var(--red); color: #fff; box-shadow: 0 0 0 10px var(--blush); }
.center { text-align: center; }
.actions-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.actions-row .btn { width: auto; }

/* ---------- Shared bits used by the admin page ---------- */
.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px 48px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; font-weight: 500; }
select { font: inherit; padding: 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); }
.muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; padding-top: 24px; }
  .summary-col { position: static; }
  .hero-bg { inset: 0; opacity: .5; }
  .hero-bg::after { background: linear-gradient(90deg, rgb(11 11 11 / .85), rgb(11 11 11 / .3)); }
  .hero-inner { padding: 48px 16px 56px; }
  body.has-bar { padding-bottom: 76px; }
}
@media (min-width: 901px) {
  .mobilebar { display: none !important; }
}
@media (max-width: 560px) {
  .logo img { height: 40px; }
  .step-card { padding: 18px; }
  .stepper li { font-size: .76rem; gap: 6px; }
  .stepper li::before { width: 24px; height: 24px; }
  .ticket { flex-wrap: wrap; }
  .ticket-right { width: 100%; justify-content: space-between; }
  .page-card { padding: 22px; }
}
