/* =========================================================
   NinjaTickets UK — Design System
   Black / charcoal / dark red / white. Mobile-first.
   No external fonts or CDN dependencies — system font stack
   for speed and reliability.
   ========================================================= */

:root {
  --black: #0a0a0c;
  --charcoal: #17171b;
  --charcoal-light: #232328;
  --charcoal-lighter: #313138;
  --red: #b3122a;
  --red-bright: #e01b3a;
  --red-dark: #7a0c1c;
  /* Brighter than --red-bright specifically for body-text-sized links on
     black/charcoal backgrounds - #e01b3a alone falls just under WCAG AA
     4.5:1 for normal (non-large) text; this variant clears it (~5.8:1). */
  --red-link: #ff4d6d;
  --white: #ffffff;
  --off-white: #f4f3f1;
  --grey-100: #d8d8dc;
  --grey-300: #9c9ca4;
  --grey-500: #6b6b73;
  --grey-700: #46464c;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 18px;

  --shadow-card: 0 4px 18px rgba(0, 0, 0, 0.35);
  --shadow-pop: 0 10px 30px rgba(0, 0, 0, 0.5);

  --container-max: 1240px;
}

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

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

body {
  margin: 0;
  background: var(--black);
  color: var(--off-white);
  font-family: var(--font-sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--white);
}

h1 { font-size: clamp(1.9rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.4vw, 1.5rem); }
p { margin: 0 0 1em; color: var(--grey-100); }

ul, ol { padding-left: 1.2em; color: var(--grey-100); }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

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

.skip-link {
  position: absolute;
  left: 8px; top: -60px;
  background: var(--red);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 1000;
  transition: top 0.15s ease;
  font-weight: 700;
}
.skip-link:focus { top: 8px; }

:focus-visible {
  outline: 3px solid var(--red-bright);
  outline-offset: 2px;
}

/* =================== Buttons =================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.98rem;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--red);
  color: var(--white);
}
.btn-primary:hover { background: var(--red-bright); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--grey-700);
}
.btn-outline:hover { border-color: var(--red-bright); color: var(--red-bright); }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }

/* =================== Header / Nav =================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 12, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--charcoal-lighter);
}

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  max-width: var(--container-max);
  margin: 0 auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--white);
}
.brand .ninja-mark { width: 36px; height: 36px; flex: none; }
.brand .brand-ninja { color: var(--red-bright); }

.main-nav {
  display: none;
}

.main-nav ul {
  list-style: none;
  display: flex;
  gap: 22px;
  margin: 0;
  padding: 0;
  align-items: center;
}

.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--grey-100);
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-sm);
  color: var(--white);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  border-top: 1px solid var(--charcoal-lighter);
  background: var(--charcoal);
}
.mobile-nav.is-open { display: block; }
.mobile-nav ul { list-style: none; margin: 0; padding: 10px 20px 18px; }
.mobile-nav li { border-bottom: 1px solid var(--charcoal-lighter); }
.mobile-nav a {
  display: block;
  padding: 13px 4px;
  font-weight: 600;
  color: var(--grey-100);
}
.mobile-nav a:hover { color: var(--red-bright); }

@media (min-width: 900px) {
  .main-nav { display: block; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none !important; }
}

/* =================== Hero + Search =================== */

.hero {
  position: relative;
  padding: 56px 0 60px;
  background:
    radial-gradient(ellipse at top right, rgba(179, 18, 42, 0.28), transparent 55%),
    linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--charcoal-lighter);
  overflow: hidden;
}

.hero-inner { max-width: 760px; }

.hero .eyebrow {
  display: inline-block;
  color: var(--red-bright);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.8rem;
  margin-bottom: 12px;
}

.hero p.lead {
  font-size: 1.1rem;
  color: var(--grey-100);
  max-width: 620px;
}

.search-panel {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-top: 26px;
  box-shadow: var(--shadow-pop);
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.search-input-wrap {
  flex: 1 1 260px;
  position: relative;
}

.search-input-wrap input[type="search"] {
  width: 100%;
  padding: 14px 16px 14px 42px;
  border-radius: var(--radius-md);
  border: 1px solid var(--charcoal-lighter);
  background: var(--black);
  color: var(--white);
  font-size: 1rem;
}
.search-input-wrap input::placeholder { color: var(--grey-500); }
.search-input-wrap .icon {
  position: absolute;
  left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--grey-500);
  width: 18px; height: 18px;
}

.search-select {
  padding: 14px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--charcoal-lighter);
  background: var(--black);
  color: var(--white);
  font-size: 0.95rem;
  flex: 1 1 160px;
}

.search-panel .btn-primary { flex: 1 1 160px; }

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.quick-links a {
  font-size: 0.85rem;
  color: var(--grey-300);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--charcoal-lighter);
  padding: 6px 12px;
  border-radius: 999px;
}
.quick-links a:hover { color: var(--white); border-color: var(--red); }

/* =================== Sections =================== */

.section {
  padding: 46px 0;
  border-bottom: 1px solid var(--charcoal-light);
}
.section:last-of-type { border-bottom: none; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}
.section-head p.section-sub { margin: 4px 0 0; }
.section-head .view-all { font-weight: 700; color: var(--red-link); font-size: 0.92rem; flex: none; }
.section-head .view-all:hover { text-decoration: underline; }

.section-alt { background: var(--charcoal); }

/* =================== Grids / Cards =================== */

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(1, 1fr);
}
@media (min-width: 600px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .grid-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 900px) { .grid-6 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1100px) { .grid-6 { grid-template-columns: repeat(6, 1fr); } }

.card {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
}
.card:hover { border-color: var(--red); transform: translateY(-2px); }

.card-media {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--charcoal-lighter), var(--charcoal));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.card-media .cat-tag {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--red);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
}
.card-media .media-mark { width: 46%; height: 46%; opacity: 0.5; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.event-image { margin-bottom: 22px; }
.event-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid var(--charcoal-lighter);
}
.event-image .image-credit { font-size: 0.72rem; color: var(--grey-500); margin: 6px 0 0; }

.card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.card-body h3 { font-size: 1.05rem; margin: 0; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-meta {
  font-size: 0.84rem;
  color: var(--grey-300);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
}
.card { position: relative; }

.card-foot {
  margin-top: auto;
  padding-top: 8px;
}

/* Category tile */
.cat-tile {
  position: relative;
  border-radius: var(--radius-md);
  padding: 22px 18px;
  background: linear-gradient(160deg, var(--charcoal-light), var(--charcoal));
  border: 1px solid var(--charcoal-lighter);
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: border-color .15s ease, transform .15s ease;
}
.cat-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.cat-tile .cat-icon { width: 30px; height: 30px; color: var(--red-bright); margin-bottom: 10px; }
.cat-tile h3 { font-size: 1.05rem; margin: 0 0 2px; }
.cat-tile span.count { color: var(--grey-300); font-size: 0.82rem; }
.cat-tile a.stretched { position: absolute; inset: 0; }

/* City chip grid */
.city-tile {
  border-radius: var(--radius-md);
  padding: 16px;
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  text-align: center;
  font-weight: 700;
  position: relative;
  transition: border-color .15s ease, transform .15s ease;
}
.city-tile:hover { border-color: var(--red); transform: translateY(-2px); }
.city-tile span.count { display: block; font-weight: 500; font-size: 0.78rem; color: var(--grey-300); margin-top: 3px; }
.city-tile a.stretched { position: absolute; inset: 0; }

/* Guide card */
.guide-card { padding: 18px; }
.guide-card .guide-kicker { color: var(--red-bright); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }

/* =================== Badges / meta =================== */

.badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--charcoal-lighter);
  color: var(--grey-100);
}
.badge-red { background: var(--red); color: var(--white); }

/* =================== Breadcrumbs =================== */

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--grey-300);
  padding: 14px 0;
}
.breadcrumbs a { color: var(--grey-300); }
.breadcrumbs a:hover { color: var(--red-bright); }
.breadcrumbs .sep { margin: 0 6px; color: var(--grey-700); }

/* =================== Page header (category/city/guide) ============ */

.page-header {
  padding: 30px 0 34px;
  background: linear-gradient(180deg, var(--charcoal) 0%, var(--black) 100%);
  border-bottom: 1px solid var(--charcoal-lighter);
}
.page-header p.lead { max-width: 700px; }

/* =================== Filter bar =================== */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  padding: 14px;
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-md);
}
.filter-bar select, .filter-bar input[type="search"] {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--charcoal-lighter);
  background: var(--black);
  color: var(--white);
  font-size: 0.92rem;
}
.filter-bar input[type="search"] { flex: 1 1 200px; }

.result-count { color: var(--grey-300); font-size: 0.88rem; margin-bottom: 14px; }

.empty-state {
  padding: 40px 20px;
  text-align: center;
  color: var(--grey-300);
  border: 1px dashed var(--charcoal-lighter);
  border-radius: var(--radius-md);
}

/* =================== Event detail page =================== */

.event-hero {
  padding: 30px 0;
  background: var(--charcoal);
  border-bottom: 1px solid var(--charcoal-lighter);
}
.event-hero .badges { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.event-key-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 20px;
}
@media (min-width: 640px) { .event-key-facts { grid-template-columns: repeat(4, 1fr); } }
.event-key-facts .fact { background: var(--charcoal-light); border: 1px solid var(--charcoal-lighter); border-radius: var(--radius-sm); padding: 12px 14px; }
.event-key-facts .fact .label { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--grey-300); margin-bottom: 3px; }
.event-key-facts .fact .value { font-weight: 700; color: var(--white); }

.provider-list { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.provider-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  flex-wrap: wrap;
}
.provider-row .provider-name { font-weight: 700; color: var(--white); }
.provider-row .provider-note { font-size: 0.82rem; color: var(--grey-300); }

.content-columns { display: grid; grid-template-columns: 1fr; gap: 34px; }
@media (min-width: 960px) { .content-columns { grid-template-columns: 2fr 1fr; } }

.info-block { margin-bottom: 26px; }
.info-block h2 { font-size: 1.3rem; }

.faq-item { border-bottom: 1px solid var(--charcoal-lighter); padding: 14px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; color: var(--white); }
.faq-item p { margin-top: 10px; }

.sidebar-box {
  background: var(--charcoal-light);
  border: 1px solid var(--charcoal-lighter);
  border-radius: var(--radius-md);
  padding: 18px;
  margin-bottom: 18px;
}
.sidebar-box h3 { font-size: 1rem; }

/* =================== Article / guide content =================== */

.article-body { max-width: 780px; }
.article-body h2 { margin-top: 1.4em; font-size: 1.4rem; }
.article-body h3 { margin-top: 1.2em; }
.article-body ul, .article-body ol { color: var(--grey-100); }
.article-body a { color: var(--red-link); text-decoration: underline; }
.article-meta { color: var(--grey-300); font-size: 0.85rem; margin-bottom: 20px; }

.callout {
  background: var(--charcoal-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
  color: var(--grey-100);
}

/* =================== Forms (contact) =================== */

.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-weight: 700; margin-bottom: 6px; color: var(--white); font-size: 0.92rem; }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--charcoal-lighter);
  background: var(--charcoal-light);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.form-field textarea { resize: vertical; min-height: 120px; }

/* =================== Footer =================== */

.site-footer {
  background: var(--charcoal);
  border-top: 1px solid var(--charcoal-lighter);
  padding: 44px 0 24px;
  margin-top: 20px;
}
.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-col h4 { color: var(--white); font-size: 0.85rem; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.footer-col a { color: var(--grey-300); font-size: 0.92rem; }
.footer-col a:hover { color: var(--red-bright); }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; color: var(--white); margin-bottom: 10px; }
.footer-brand .ninja-mark { width: 30px; height: 30px; }
.footer-note { color: var(--grey-500); font-size: 0.85rem; max-width: 420px; }
.footer-bottom {
  border-top: 1px solid var(--charcoal-lighter);
  margin-top: 34px;
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--grey-500);
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--grey-500); }
.footer-bottom a:hover { color: var(--red-bright); }

/* =================== Utility =================== */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.cluster { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* =================== 404 =================== */

.error-page { padding: 90px 0; text-align: center; }
.error-page .code { font-size: 5rem; font-weight: 900; color: var(--red); line-height: 1; }

/* =================== Cookie banner =================== */

.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 900;
  background: var(--charcoal);
  border-top: 1px solid var(--charcoal-lighter);
  padding: 16px 20px;
  display: none;
}
.cookie-banner.is-visible { display: block; }
.cookie-banner-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
}
.cookie-banner p { margin: 0; font-size: 0.88rem; max-width: 560px; }
.cookie-actions { display: flex; gap: 10px; flex: none; }

@media print {
  .site-header, .site-footer, .cookie-banner, .search-panel { display: none; }
}
