/* The Jingle Bell Bop - 2026 site
   Brand: PayPal-era blue #0079AD, panto red #C8102E, snow #FDFCFA, holly #1A7F4B */

:root {
  --blue: #0079AD;
  --blue-dark: #00587f;
  --blue-light: #00A0E3;
  --red: #C8102E;
  --red-dark: #9c0c24;
  --gold: #E8B10B;
  --green: #1A7F4B;
  --ink: #17262F;
  --muted: #5B6B7A;
  --line: #E4EAF0;
  --snow: #FDFCFA;
  --bg: #F4F7FA;
  --radius: 16px;
  --shadow: 0 2px 10px rgba(15, 40, 60, .07);
  --shadow-lg: 0 12px 34px rgba(15, 40, 60, .14);
  --head: "Mouse Memoirs", "Trebuchet MS", sans-serif;
  --body: "Comfortaa", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { font-family: var(--head); font-weight: 400; line-height: 1.1; margin: 0 0 .4em; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); color: var(--red); }
h2 { font-size: clamp(1.9rem, 4.5vw, 2.6rem); color: var(--blue); }
h3 { font-size: clamp(1.4rem, 3.2vw, 1.8rem); color: var(--ink); }

p { margin: 0 0 1em; }

.wrap { width: min(1120px, 92vw); margin-inline: auto; }
.wrap-narrow { width: min(760px, 92vw); margin-inline: auto; }

/* ---------- Header ----------
   Menu strip sits at the very top and sticks; the snowy band with the logo
   sits under it and scrolls away. */
.header-band {
  display: grid;
  place-items: center;
  padding: .5rem 1rem;
  background-color: #fff;
  background-image: url('../img/headerbg.png');
  background-repeat: no-repeat;
  background-position: center center;   /* sky above, snow line at the foot */
  background-size: cover;
}
.header-band .brand img { width: min(64vw, 300px); height: auto; }
@media (min-width: 820px) {
  .header-band .brand img { width: min(40vw, 460px); height: auto; }
}

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: var(--blue);
  background-image: linear-gradient(180deg, var(--blue) 0%, var(--blue-dark) 100%);
  box-shadow: 0 2px 14px rgba(0, 0, 0, .18);
}
.header-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; padding: .5rem 0;
}
.nav { display: flex; gap: .35rem; align-items: center; }
.nav-close { display: none; }
.nav a {
  font-family: var(--head); font-size: 1.5rem; color: #fff;
  padding: .35rem .8rem; border-radius: 999px; white-space: nowrap;
  transition: background .2s ease, transform .2s ease;
}
.nav a:hover, .nav a:focus { background: rgba(255, 255, 255, .18); text-decoration: none; transform: translateY(-1px); }
.nav a.cta { background: var(--red); }
.nav a.cta:hover { background: var(--red-dark); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .26); }

.nav-toggle {
  display: none; font-family: var(--head); font-size: 1.4rem;
  background: var(--red); color: #fff; border: 0; border-radius: 999px;
  padding: .5rem 1.1rem; cursor: pointer;
}
.nav-toggle:hover { background: var(--red-dark); }

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 84vw);
    background: var(--blue-dark); flex-direction: column; align-items: stretch;
    padding: 5rem 1.25rem 2rem; gap: .5rem;
    transform: translateX(105%); transition: transform .28s ease;
    box-shadow: -8px 0 30px rgba(0, 0, 0, .3);
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.75rem; text-align: center; background: rgba(255, 255, 255, .1); }
  .nav-close {
    display: block;
    position: absolute; top: 1rem; right: 1rem; background: none; border: 0;
    color: #fff; font-size: 2rem; line-height: 1; cursor: pointer;
  }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .5); z-index: 899; }
}

/* ---------- Hero ----------
   Mobile first: the caption sits BELOW the video, so the video is never
   swallowed by text. From 820px up there is room to overlay it. */
.hero { position: relative; background: #06283b; }
.hero video, .hero > img {
  width: 100%; display: block;
  max-height: calc(100vh - 220px);
  max-height: calc(100svh - 220px);
  min-height: 190px;
  object-fit: cover; object-position: center 30%;
}
.hero-overlay {
  padding: 1.25rem 0 1.5rem;
  background: #06283b;
  color: #fff; text-align: center;
}
.hero-overlay h1 {
  color: #fff; margin-bottom: .15em;
  font-size: clamp(1.9rem, 7vw, 3.6rem);
}
.hero-date {
  font-family: var(--head); font-size: clamp(1.25rem, 5vw, 2.1rem);
  color: var(--gold); letter-spacing: .04em;
}

@media (min-width: 820px) {
  .hero-overlay {
    position: absolute; inset: auto 0 0 0;
    padding: 2.5rem 0 1.5rem;
    background: linear-gradient(180deg, rgba(6, 40, 59, 0) 0%, rgba(6, 40, 59, .88) 70%);
  }
  .hero-overlay h1 { text-shadow: 0 3px 18px rgba(0, 0, 0, .5); }
  /* The logo band is deeper on desktop, so leave more room for it. */
  .hero video, .hero > img { max-height: max(320px, calc(100vh - 430px)); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; font-family: var(--head); font-size: 1.6rem; line-height: 1.15;
  padding: .6rem 1.6rem; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  box-shadow: 0 4px 14px rgba(200, 16, 46, .28);
}
.btn:hover, .btn:focus { background: var(--red-dark); color: #fff; text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.btn:disabled, .btn[aria-disabled="true"] { background: #b8c4cf; box-shadow: none; cursor: not-allowed; transform: none; }
.btn-blue { background: var(--blue); box-shadow: 0 4px 14px rgba(0, 121, 173, .28); }
.btn-blue:hover { background: var(--blue-dark); }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); box-shadow: none; }
.btn-ghost:hover { background: var(--blue); color: #fff; }
.btn-sm { font-size: 1.15rem; padding: .35rem 1rem; }
.btn-block { display: block; width: 100%; }

/* ---------- Sections & cards ---------- */
.section { padding: clamp(2rem, 5vw, 3.5rem) 0; }
.section-tight { padding: 1.5rem 0; }
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(1.25rem, 3vw, 2rem); margin-bottom: 1.25rem;
}
.card-red { border-top: 5px solid var(--red); }
.card-blue { border-top: 5px solid var(--blue); }
.grid { display: grid; gap: 1.25rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
/* Two big, evenly sized photos per row - the source images vary wildly in
   shape, so they are cropped to a common ratio rather than left ragged. */
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.gallery img {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 560px) {
  .gallery { grid-template-columns: minmax(0, 1fr); }
}

.ribbon {
  display: inline-block; background: var(--gold); color: #46340a; font-family: var(--head);
  font-size: 1.3rem; padding: .15rem 1rem; border-radius: 999px; letter-spacing: .06em;
}
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.stack > * + * { margin-top: 1rem; }

/* ---------- Alerts ---------- */
.alert { border-radius: 12px; padding: .9rem 1.1rem; margin-bottom: 1.1rem; border-left: 5px solid; }
.alert-error { background: #fdecef; border-color: var(--red); color: #7c0a1e; }
.alert-ok { background: #e9f7ef; border-color: var(--green); color: #10603a; }
.alert-info { background: #e8f4fb; border-color: var(--blue); color: #044a6c; }
.alert-warn { background: #fff6e3; border-color: var(--gold); color: #6b4e05; }
.alert ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------- Forms ---------- */
label { display: block; font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.field { margin-bottom: 1.1rem; }
.hint { font-size: .85rem; color: var(--muted); margin-top: .25rem; }
input[type=text], input[type=email], input[type=tel], input[type=number],
input[type=password], input[type=date], input[type=time], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  padding: .75rem .9rem; border: 2px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 121, 173, .14);
}
input[aria-invalid="true"] { border-color: var(--red); }
textarea { min-height: 120px; resize: vertical; }
.checkline { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.checkline input { width: 22px; height: 22px; flex: 0 0 auto; margin-top: .2rem; accent-color: var(--blue); }
fieldset { border: 0; padding: 0; margin: 0 0 1.25rem; }
legend { font-family: var(--head); font-size: 1.6rem; color: var(--blue); padding: 0; margin-bottom: .5rem; }

/* ---------- Show picker ---------- */
.showpick { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.showpick label {
  position: relative; display: block; margin: 0; cursor: pointer; font-weight: 400;
  border: 3px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem;
  background: #fff; transition: all .18s ease;
}
.showpick input { position: absolute; opacity: 0; pointer-events: none; }
.showpick label:hover { border-color: var(--blue-light); }
.showpick input:checked + .showpick-body { color: inherit; }
.showpick label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0, 121, 173, .12); }
.showpick label.sold-out { opacity: .55; cursor: not-allowed; background: #f7f9fb; }
.showpick .time { font-family: var(--head); font-size: 2rem; color: var(--red); line-height: 1; }
.showpick .meta { font-size: .9rem; color: var(--muted); }
.showpick .left { font-size: .85rem; font-weight: 700; color: var(--green); }
.showpick .left.low { color: var(--red); }

/* ---------- Ticket rows ---------- */
.ticket-row {
  display: flex; gap: 1rem; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line); flex-wrap: wrap;
}
.ticket-row:last-child { border-bottom: 0; }
.ticket-row .info { flex: 1 1 260px; }
.ticket-row .name { font-weight: 700; }
.ticket-row .price { font-family: var(--head); font-size: 1.6rem; color: var(--blue); }
.ticket-row .desc { font-size: .88rem; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: .4rem; }
.stepper button {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--blue);
  background: #fff; color: var(--blue); font-size: 1.5rem; line-height: 1; cursor: pointer;
  display: grid; place-items: center; transition: all .15s ease;
}
.stepper button:hover:not(:disabled) { background: var(--blue); color: #fff; }
.stepper button:disabled { opacity: .35; cursor: not-allowed; }
.stepper input {
  width: 62px; text-align: center; font-weight: 700; padding: .55rem .3rem;
  -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Basket summary ---------- */
.summary { position: sticky; top: 92px; }
.summary-line { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; }
.summary-total {
  display: flex; justify-content: space-between; gap: 1rem;
  border-top: 2px solid var(--line); margin-top: .6rem; padding-top: .6rem;
  font-family: var(--head); font-size: 1.9rem; color: var(--red);
}
.discount { color: var(--green); }

/* ---------- Ticket / QR ---------- */
.eticket {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; max-width: 620px; margin-inline: auto;
}
.eticket-head { background: var(--red); color: #fff; padding: 1.2rem; text-align: center; }
.eticket-head h1 { color: #fff; margin: 0; font-size: 2.2rem; }
.eticket-body { padding: 1.5rem; }
.eticket .ref {
  font-family: var(--head); font-size: 3rem; letter-spacing: .12em;
  color: var(--red); text-align: center; line-height: 1;
}
.eticket .qr { display: block; margin: 1rem auto; width: 240px; max-width: 70%; }
.dl { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: .35rem 1rem; margin: 1rem 0; }
.dl dt { color: var(--muted); font-size: .9rem; }
.dl dd { margin: 0; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink); color: #c6d3dd; padding: 2.5rem 0 2rem; margin-top: 3rem;
  font-size: .92rem;
}
.site-footer a { color: #9fd6f0; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.site-footer h4 { font-family: var(--head); font-size: 1.4rem; color: #fff; margin-bottom: .3rem; }

/* ---------- Steps ---------- */
.steps { display: flex; gap: .5rem; justify-content: center; margin-bottom: 1.5rem; flex-wrap: wrap; }
.steps li {
  list-style: none; font-size: .85rem; color: var(--muted);
  padding: .3rem .9rem; border-radius: 999px; background: #fff; box-shadow: var(--shadow);
}
.steps li.on { background: var(--blue); color: #fff; font-weight: 700; }
.steps li.done { background: var(--green); color: #fff; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; background: #fff; }
table.data th, table.data td { padding: .6rem .7rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { background: #f2f6fa; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.data tr:hover td { background: #fafcfe; }

.badge { display: inline-block; padding: .12rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 700; }
.badge-paid { background: #e9f7ef; color: #10603a; }
.badge-pending { background: #fff6e3; color: #6b4e05; }
.badge-cancelled, .badge-failed { background: #fdecef; color: #7c0a1e; }
.badge-refunded { background: #eef1f4; color: #445; }

@media print {
  .site-header, .site-footer, .noprint { display: none !important; }
  body { background: #fff; }
  .eticket { box-shadow: none; }
}
