/* ============================================================
   Benny's Big Bash — Town Trail
   Shared styles. Mobile first. Poster mood, web function.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --royal:  #0e2a6c;  /* primary, headings */
  --navy:   #020d2f;  /* background */
  --gold:   #cb9121;  /* accents, main button */
  --cream:  #e7e0da;  /* ticket card */
  --steel:  #5a719b;  /* secondary / muted */
  --white:  #ffffff;

  --ink:    #1a2238;  /* body text on cream */
  --ink-mut:#54607a;  /* muted body text on cream */

  --ticket-radius: 18px;
  --notch: 18px;      /* size of the scalloped side notches */

  --shadow-card: 0 24px 60px rgba(0,0,0,.45);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--white);
  background-color: var(--navy);
  /* stadium-light glow behind the ticket */
  background-image:
    radial-gradient(120% 80% at 50% -10%, rgba(203,145,33,.22), transparent 55%),
    radial-gradient(90% 60% at 12% 0%, rgba(90,113,155,.30), transparent 50%),
    radial-gradient(90% 60% at 88% 0%, rgba(90,113,155,.30), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.wrap {
  max-width: 540px;
  margin: 0 auto;
  padding: 22px 16px 40px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Brand line above the ticket ---------- */
.eyebrow {
  text-align: center;
  margin: 6px 0 16px;
}
.eyebrow .bash {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: clamp(15px, 4.5vw, 20px);
  color: var(--gold);
  margin: 0;
}
.eyebrow .sub {
  font-size: 12px;
  color: var(--steel);
  letter-spacing: .03em;
  margin: 2px 0 0;
}

/* ============================================================
   Ticket card
   ============================================================ */
.ticket {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  border-radius: var(--ticket-radius);
  box-shadow: var(--shadow-card);
  padding: 26px 22px 18px;
  /* scalloped side edges via masking notches top + bottom centre */
}

/* Side notches (the classic ticket pinch) */
.ticket::before,
.ticket::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(var(--notch) * 2);
  height: calc(var(--notch) * 2);
  background: var(--navy);
  border-radius: 50%;
  transform: translateY(-50%);
}
.ticket::before { left:  calc(var(--notch) * -1); }
.ticket::after  { right: calc(var(--notch) * -1); }

.ticket h1 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .98;
  font-size: clamp(30px, 9vw, 46px);
  margin: 4px 0 14px;
  text-shadow: 3px 3px 0 var(--gold);  /* hard offset, big headings only */
}

.ticket h2 {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  color: var(--royal);
  font-weight: 400;
  letter-spacing: .01em;
  font-size: clamp(24px, 7vw, 34px);
  margin: 2px 0 12px;
  text-shadow: 2px 2px 0 var(--gold);
}

.ticket p { color: var(--ink-mut); margin: 0 0 14px; }
.ticket p.lead { color: var(--ink); font-size: 16px; }

/* Dashed perforation line */
.perf {
  border: none;
  border-top: 2px dashed rgba(14,42,108,.35);
  margin: 18px -22px;
}

/* Football icon as a divider dot */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: rgba(14,42,108,.30);
}
.divider::before,
.divider::after {
  content: "";
  height: 2px;
  background: currentColor;
  flex: 1;
}
.divider svg { width: 22px; height: 22px; display: block; }

/* Faux barcode footer */
.barcode {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.barcode .bars {
  width: 100%;
  height: 42px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0, var(--ink) 2px,
    transparent 2px, transparent 4px,
    var(--ink) 4px, var(--ink) 5px,
    transparent 5px, transparent 9px,
    var(--ink) 9px, var(--ink) 12px,
    transparent 12px, transparent 14px
  );
  opacity: .82;
  border-radius: 2px;
}
.barcode .code {
  font-size: 11px;
  letter-spacing: .35em;
  color: var(--ink-mut);
  text-transform: uppercase;
}

/* ============================================================
   Info rows with icons (calendar / pin / clock)
   ============================================================ */
.facts { display: grid; gap: 10px; margin: 4px 0 4px; }
.fact {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink);
}
.fact svg { width: 18px; height: 18px; flex: none; color: var(--royal); }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 15px 18px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform .06s ease, filter .15s ease;
}
.btn:active { transform: translateY(1px); }

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 6px 0 #9c6e15;
}
.btn-gold:hover { filter: brightness(1.04); }
.btn-gold:active { box-shadow: 0 3px 0 #9c6e15; }

.btn-link {
  background: none;
  color: var(--royal);
  font-weight: 600;
  text-decoration: underline;
  padding: 10px;
  width: auto;
}

/* ============================================================
   Forms
   ============================================================ */
.field { margin-bottom: 14px; }
.field label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--royal);
  margin-bottom: 6px;
}
.field label .req { color: #b23b2e; }

.field input[type="text"],
.field input[type="tel"],
.field input[type="email"] {
  width: 100%;
  padding: 13px 14px;
  font-size: 16px;            /* 16px avoids iOS zoom on focus */
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  border: 1.5px solid rgba(14,42,108,.25);
  border-radius: 10px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input:focus {
  border-color: var(--royal);
  box-shadow: 0 0 0 3px rgba(14,42,108,.12);
}
.field input[aria-invalid="true"] {
  border-color: #b23b2e;
  box-shadow: 0 0 0 3px rgba(178,59,46,.12);
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 14px;
  color: var(--ink);
}
.check input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  accent-color: var(--royal);
}
.check a { color: var(--royal); font-weight: 600; }

/* Inline validation / status messages */
.msg { font-size: 13px; margin: 6px 0 0; min-height: 0; }
.msg.error { color: #b23b2e; }
.msg.ok { color: #1d6b3a; }

.formstatus {
  font-size: 14px;
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  display: none;
}
.formstatus.error { display: block; background: rgba(178,59,46,.10); color: #8e2c22; }

/* ============================================================
   Map page specifics — map is the hero
   ============================================================ */
.map-frame {
  margin: 16px -6px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid rgba(14,42,108,.18);
  background: #cdd6e6;
}
.map-placeholder {
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  color: var(--royal);
  padding: 20px;
  background:
    repeating-linear-gradient(45deg, rgba(14,42,108,.05) 0 12px, transparent 12px 24px),
    #d7deea;
}
.map-placeholder svg { width: 44px; height: 44px; opacity: .7; }
.map-placeholder strong { font-size: 15px; }
.map-placeholder span { font-size: 13px; color: var(--ink-mut); }
.map-frame img { width: 100%; height: auto; display: block; }

/* ============================================================
   Footer line
   ============================================================ */
.tagline {
  text-align: center;
  color: var(--gold);
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: clamp(13px, 4vw, 16px);
  margin: 22px 0 4px;
}
.foot-note { text-align: center; color: var(--steel); font-size: 12px; margin: 6px 0 0; }

.credit {
  text-align: center;
  font-size: 12px;
  color: var(--steel);
  margin: 14px 0 2px;
}
.credit a { color: var(--steel); text-decoration: underline; }
.credit a:hover { color: var(--white); }

/* ============================================================
   Terms page (long-form, readable on dark)
   ============================================================ */
.terms .ticket { padding-top: 24px; }
.terms ol { padding-left: 20px; margin: 8px 0 0; }
.terms li { color: var(--ink); margin-bottom: 14px; line-height: 1.55; }
.terms .todo { color: #8e2c22; font-style: italic; }
.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--steel);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 4px;
}
.back:hover { color: var(--white); }

.spacer { flex: 1; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.hidden { display: none !important; }
