/* ==========================================================================
   TOUCHLINE - Shared Stylesheet
   Brand: Black #0A0A0A canvas, Gold #D4AF37 accent
   Fonts: Bebas Neue (display) + Satoshi (body)
   ========================================================================== */

:root {
  --black:        #0A0A0A;
  --off-black:    #111111;
  --dark-grey:    #1A1A1A;
  --mid-grey:     #555555;
  --light-grey:   #AAAAAA;
  --white:        #FFFFFF;
  --gold:         #D4AF37;
  --gold-hover:   #BFA030;
  --gold-light:   #F0D060;
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Satoshi', sans-serif;
}

/* ============= BASE RESET ============= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
}
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, textarea, select { font-family: inherit; }

/* ============= TYPOGRAPHY ============= */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 0.98; letter-spacing: 0.02em; }
.h-display { font-size: clamp(56px, 9vw, 120px); }
.h1 { font-size: clamp(48px, 7vw, 72px); }
.h2 { font-size: clamp(36px, 5vw, 48px); }
.h3 { font-family: var(--font-body); font-weight: 700; font-size: clamp(20px, 2.4vw, 24px); line-height: 1.3; letter-spacing: 0; }
.h4 { font-family: var(--font-body); font-weight: 700; font-size: clamp(16px, 2vw, 18px); line-height: 1.3; }

.body-lg  { font-size: clamp(16px, 2vw, 18px); line-height: 1.65; color: var(--white); }
.body     { font-size: clamp(15px, 1.6vw, 16px); line-height: 1.65; color: var(--white); }
.body-sm  { font-size: 13px; line-height: 1.5; color: var(--light-grey); }

.text-gold  { color: var(--gold); }
.text-light { color: var(--light-grey); }

.eyebrow {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--gold);
}

/* ============= LAYOUT ============= */
.container { max-width: 1280px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }

.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-lg { padding: 80px 0; }
@media (min-width: 768px) { .section-lg { padding: 128px 0; } }

.alt-bg { background: var(--off-black); }

.gold-rule {
  height: 1px; background: var(--gold); opacity: 0.4;
  width: 80px; margin: 24px 0;
}

/* ============= BUTTONS ============= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 14px 32px; border-radius: 2px; min-height: 44px;
  transition: all 150ms ease; cursor: pointer; gap: 8px;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-hover); transform: translateY(-1px); }

.btn-outline { background: transparent; border: 1px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--black); }

.btn-ghost { background: transparent; border: 1px solid rgba(255,255,255,0.25); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

@media (max-width: 600px) {
  .btn { width: 100%; max-width: 320px; }
}

/* ============= NAV ============= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: all 200ms ease;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 16px;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
}
@media (min-width: 768px) {
  .nav-inner { padding: 0 24px; height: 72px; }
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 28px; width: auto; }
@media (min-width: 768px) { .nav-logo img { height: 36px; } }

.nav-links { display: none; gap: 32px; align-items: center; }
@media (min-width: 1024px) { .nav-links { display: flex; } }
.nav-links a {
  font-size: 13px; font-weight: 500; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--white);
  transition: color 150ms ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-cta-group { display: none; gap: 12px; align-items: center; }
@media (min-width: 1024px) { .nav-cta-group { display: flex; } }

.nav-burger { display: flex; flex-direction: column; gap: 5px; padding: 8px; cursor: pointer; }
@media (min-width: 1024px) { .nav-burger { display: none; } }
.nav-burger span { width: 22px; height: 2px; background: var(--white); transition: all 200ms ease; }

.mobile-menu {
  position: fixed; top: 60px; left: 0; right: 0; bottom: 0; z-index: 99;
  background: var(--black); padding: 32px 24px;
  display: none; flex-direction: column; gap: 20px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-family: var(--font-display); font-size: 32px; color: var(--white);
  letter-spacing: 0.02em; padding: 8px 0;
}
.mobile-menu a.active { color: var(--gold); }
.mobile-menu .btn { margin-top: 16px; }

/* ============= FOOTER ============= */
.footer {
  background: var(--off-black); padding: 64px 0 24px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 40px;
  margin-bottom: 48px;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
.footer-logo img { height: 36px; margin-bottom: 16px; }
.footer-tagline { color: var(--light-grey); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer h4 {
  font-family: var(--font-body); font-weight: 500; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--gold); margin-bottom: 16px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--light-grey); font-size: 14px; transition: color 150ms ease; }
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
}
.footer-bottom p { color: var(--mid-grey); font-size: 12px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-legal a { color: var(--mid-grey); font-size: 12px; }
.footer-legal a:hover { color: var(--light-grey); }

/* ============= HERO ============= */
.hero {
  position: relative; min-height: 75vh; padding: 120px 0 64px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,10,10,0.55) 0%,
    rgba(10,10,10,0.7) 50%,
    rgba(10,10,10,0.95) 100%);
}
.hero-content { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { color: var(--white); margin-bottom: 24px; }
.hero h1 .gold { color: var(--gold); }
.hero-sub { color: var(--light-grey); font-size: clamp(16px, 2vw, 20px); max-width: 640px; margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* ============= STATS BAR ============= */
.stats {
  background: var(--gold); color: var(--black);
  padding: 48px 0; overflow: hidden;
}
.stats-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  text-align: center;
}
@media (min-width: 768px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.stat-num {
  font-family: var(--font-display); font-size: clamp(48px, 7vw, 80px);
  line-height: 0.95; color: var(--black);
}
.stat-label {
  font-size: 12px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--black); margin-top: 4px;
}

/* ============= CARDS ============= */
.card {
  background: var(--off-black);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 4px; padding: 32px;
  transition: all 200ms ease;
}
.card:hover {
  border-color: rgba(212,175,55,0.4);
  box-shadow: 0 0 24px rgba(212,175,55,0.08);
}

/* ============= SPONSOR LOGOS ============= */
/* Full-colour sponsor logos sit on light cards for visibility on dark site. */
.sponsor-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px;
}
@media (min-width: 640px)  { .sponsor-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .sponsor-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }
.sponsor-card {
  background: var(--white); border-radius: 4px;
  padding: 24px 20px; aspect-ratio: 16/10;
  display: flex; align-items: center; justify-content: center;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.sponsor-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,0.15);
}
.sponsor-card img {
  max-height: 64px; max-width: 100%; width: auto; object-fit: contain;
}

/* ============= PHOTO STRIPS ============= */
.photo-strip {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
}
@media (min-width: 768px) { .photo-strip { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.photo-strip img {
  width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 2px;
  filter: brightness(0.95) contrast(1.05);
  transition: filter 250ms ease, transform 250ms ease;
}
.photo-strip img:hover {
  filter: brightness(1.05) contrast(1.05);
  transform: scale(1.02);
}

/* ============= PAST EDITIONS CARDS ============= */
.edition-card {
  background: var(--off-black); border-radius: 4px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 250ms ease;
}
.edition-card:hover {
  border-color: rgba(212,175,55,0.4);
  transform: translateY(-2px);
}
.edition-card-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.edition-card-body { padding: 28px 24px; }
.edition-card .edition-num {
  font-family: var(--font-display); color: var(--gold);
  font-size: 56px; line-height: 0.95; margin-bottom: 4px;
}
.edition-card .edition-meta {
  color: var(--light-grey); font-size: 13px; letter-spacing: 0.05em; margin-bottom: 16px;
}
.edition-stats { display: flex; gap: 24px; margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,0.08); }
.edition-stat-num { font-family: var(--font-display); color: var(--white); font-size: 24px; line-height: 1; }
.edition-stat-label { color: var(--light-grey); font-size: 11px; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 2px; }

/* ============= FORM ============= */
.form-row { margin-bottom: 24px; }
.form-row label {
  display: block; font-size: 12px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--light-grey); margin-bottom: 8px;
}
.form-input, .form-textarea, .form-select {
  width: 100%; background: var(--dark-grey);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 2px;
  padding: 14px 16px; color: var(--white); font-size: 16px;
  transition: border-color 150ms ease;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--gold);
}
.form-input::placeholder { color: var(--mid-grey); }
.form-textarea { min-height: 140px; resize: vertical; }

/* ============= ACCORDION (FAQ) ============= */
.accordion-item { border-bottom: 1px solid rgba(255,255,255,0.1); }
.accordion-q {
  width: 100%; text-align: left; padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  color: var(--white); transition: color 150ms ease;
}
.accordion-q:hover { color: var(--gold); }
.accordion-q-icon {
  width: 24px; height: 24px; flex-shrink: 0;
  position: relative; color: var(--gold);
  transition: transform 250ms ease;
}
.accordion-q-icon::before, .accordion-q-icon::after {
  content: ''; position: absolute; top: 50%; left: 50%;
  width: 12px; height: 2px; background: currentColor; transform: translate(-50%,-50%);
}
.accordion-q-icon::after { transform: translate(-50%,-50%) rotate(90deg); transition: transform 250ms ease; }
.accordion-item.open .accordion-q-icon::after { transform: translate(-50%,-50%) rotate(0deg); }
.accordion-a {
  max-height: 0; overflow: hidden; transition: max-height 250ms ease;
  color: var(--light-grey); font-size: 15px; line-height: 1.7;
}
.accordion-item.open .accordion-a { max-height: 600px; padding-bottom: 24px; }
.accordion-cat { margin-top: 48px; margin-bottom: 8px; }
.accordion-cat:first-child { margin-top: 0; }

/* ============= UTILITIES ============= */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.center { text-align: center; }
.mt-md { margin-top: 24px; } .mt-lg { margin-top: 40px; }
.mb-md { margin-bottom: 24px; } .mb-lg { margin-bottom: 40px; }
.max-680 { max-width: 680px; }
.max-840 { max-width: 840px; }

/* ============= COOKIE BANNER ============= */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; z-index: 200;
  background: var(--off-black); border: 1px solid var(--gold);
  border-radius: 4px; padding: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  display: none;
}
.cookie-banner.show { display: block; }
@media (min-width: 768px) {
  .cookie-banner { left: auto; max-width: 480px; padding: 24px; }
}
.cookie-banner p { font-size: 13px; color: var(--light-grey); line-height: 1.6; margin-bottom: 16px; }
.cookie-banner p a { color: var(--gold); text-decoration: underline; }
.cookie-banner-btns { display: flex; gap: 8px; }
.cookie-banner .btn { flex: 1; padding: 10px 16px; font-size: 12px; min-height: 40px; }

/* ============= LEGAL PAGES ============= */
.legal-page { max-width: 800px; margin: 0 auto; padding: 120px 16px 80px; }
@media (min-width: 768px) { .legal-page { padding: 140px 24px 96px; } }
.legal-header { margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.legal-header h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 8px; }
.legal-meta { color: var(--mid-grey); font-size: 13px; }
.legal-section { margin-bottom: 40px; }
.legal-section h2 {
  font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px);
  color: var(--gold); margin-bottom: 16px; letter-spacing: 0.02em;
}
.legal-section h3 {
  font-family: var(--font-body); font-weight: 700; font-size: 16px;
  color: var(--white); margin: 20px 0 8px;
}
.legal-section p, .legal-section li {
  color: var(--light-grey); font-size: 15px; line-height: 1.75; margin-bottom: 12px;
}
.legal-section ul { padding-left: 24px; }
.legal-section a { color: var(--gold); text-decoration: underline; }
.legal-section strong { color: var(--white); font-weight: 600; }
