/*
 * theme.css — AK Turf. Pitch-marking signage: turf green, chalk white, amber.
 * Opens DARK (a floodlit ground at night is the natural state of this brand);
 * html[data-theme="light"] holds the day mode, a chalked pitch under sun.
 */

:root {
  color-scheme: dark;

  --canvas: #0e1a12;
  --surface: #26312a;
  --surface-2: #1a2620;
  --border: #3d4a40;
  --border-strong: #5c6b5c;
  --ink: #edf2e8;
  --muted: #949c92;

  --accent: #e8a23d;
  --accent-hover: #f2b358;
  --accent-ink: #17100a;
  --accent-text: #82a18c;
  --accent-soft: #33301f;
  --accent-strong: #f0b968;
  --accent-border: #7a5a28;

  --success: #3f9a55;
  --success-ink: #0b1a0e;
  --success-soft: #16301d;
  --success-strong: #6dc384;

  --warning: #d9822b;
  --warning-ink: #17100a;
  --warning-soft: #3a2712;
  --warning-strong: #eaa564;

  --danger: #c1503b;
  --danger-ink: #17100a;
  --danger-soft: #3a1c15;
  --danger-strong: #e07f6b;

  --chart-1: #e8a23d;
  --chart-2: #3f9a55;
  --chart-3: #82a18c;
  --chart-4: #c1503b;
  --chart-5: #5c6b5c;
  --chart-6: #f0b968;

  /* AK Turf's own tokens: the solid pitch-green block behind the hero
     headline, and the map-style closing band — a deeper, flatter green than
     --surface, meant to sit under white type at scale. */
  --x-pitch: #163d24;
  --x-pitch-ink: #f3f6ef;
  --x-line: #edf2e8;

  --font-display: "Anton", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display-weight: 400;
  --display-tracking: 0em;
  --eyebrow-tracking: 0.08em;

  /* Brutalist / bold-geometric: sharp corners, thick ink outlines, hard
     offset shadows instead of a soft blur. */
  --radius-btn: 0px;
  --radius-card: 0px;
  --radius-input: 0px;
  --border-w: 2px;
  --border-strong-w: 3px;
  --shadow-btn: 5px 5px 0 0 var(--ink);
  --shadow-card: 7px 7px 0 0 color-mix(in srgb, var(--ink) 70%, transparent);
  --shadow-raised: 9px 9px 0 0 color-mix(in srgb, var(--ink) 65%, transparent);
  --caps: uppercase;
  --caps-tracking: 0.02em;
  --btn-weight: 800;
  --card-pad: 1.5rem;
  --measure: 62ch;
}

html[data-theme="light"] {
  color-scheme: light;

  --canvas: #f4f0e2;
  --surface: #ffffff;
  --surface-2: #ece5d0;
  --border: #d3c9ab;
  --border-strong: #a89c78;
  --ink: #142016;
  --muted: #55604f;

  --accent: #e08a1f;
  --accent-hover: #c77916;
  --accent-ink: #16100a;
  --accent-text: #33633f;
  --accent-soft: #f3e2bf;
  --accent-strong: #8a5411;
  --accent-border: #cf9c4d;

  --success: #1f7a3d;
  --success-ink: #f4f0e2;
  --success-soft: #dcebdf;
  --success-strong: #185f30;

  --warning: #a15b06;
  --warning-ink: #f4f0e2;
  --warning-soft: #f2e2c9;
  --warning-strong: #7d4705;

  --danger: #a83b28;
  --danger-ink: #f4f0e2;
  --danger-soft: #f0dcd6;
  --danger-strong: #832c1c;

  --chart-1: #a15b06;
  --chart-2: #1f7a3d;
  --chart-3: #33633f;
  --chart-4: #a83b28;
  --chart-5: #55604f;
  --chart-6: #8a5411;

  --x-pitch: #17381f;
  --x-pitch-ink: #f4f0e2;
  --x-line: #142016;

  --shadow-btn: 5px 5px 0 0 var(--ink);
  --shadow-card: 7px 7px 0 0 color-mix(in srgb, var(--ink) 22%, transparent);
  --shadow-raised: 9px 9px 0 0 color-mix(in srgb, var(--ink) 20%, transparent);
}

/*
 * app.css — AK Turf's own stylesheet. The ground itself: the full-bleed
 * hero, the pitch-marking bands, the slot grid's own cells and the fixed
 * booking bar. Every colour below is a var() from theme.css; black/white
 * appear only as translucent depth (a photo wash), never as a painted colour.
 */

html {
  scroll-behavior: smooth;
}
html.reduced-motion {
  scroll-behavior: auto;
}

body {
  padding-bottom: 4.75rem; /* clears the fixed mobile booking bar */
}
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  width: 100%;
  min-height: 100svh;
  overflow: hidden;
  background: var(--x-pitch);
  border-bottom: var(--border-strong-w) solid var(--ink);
}
.hero-media {
  position: absolute;
  inset: 0;
}
.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.62) 0%,
    rgba(0, 0, 0, 0) 20%,
    rgba(0, 0, 0, 0) 52%,
    rgba(0, 0, 0, 0.8) 100%
  );
}
.hero-nav {
  position: absolute;
  inset-inline: 0;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}
.hero-wordmark {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--x-pitch-ink);
  text-decoration: none;
}
.hero-links {
  display: none;
  gap: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
@media (min-width: 768px) {
  .hero-links {
    display: flex;
  }
}
.hero-links a {
  color: var(--x-pitch-ink);
  text-decoration: none;
  opacity: 0.85;
}
.hero-links a:hover {
  opacity: 1;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.hero-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.hero-toggle {
  color: var(--x-pitch-ink);
  border-color: color-mix(in srgb, var(--x-pitch-ink) 45%, transparent);
}
.hero-toggle:hover {
  color: var(--x-pitch-ink);
  background: color-mix(in srgb, var(--x-pitch-ink) 18%, transparent);
}

.hero-block {
  position: absolute;
  left: clamp(1rem, 4vw, 3rem);
  right: clamp(1rem, 4vw, 3rem);
  /* Clears the fixed mobile booking bar pinned along the same bottom edge. */
  bottom: 5.5rem;
  z-index: 10;
  max-width: 38rem;
  background: var(--x-pitch);
  color: var(--x-pitch-ink);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: var(--border-strong-w) solid var(--x-line);
  box-shadow: var(--shadow-raised);
}
.hero-block.reveal {
  animation: hero-rise 700ms var(--ease-out, ease) both;
}
html.reduced-motion .hero-block.reveal {
  animation: none;
}
@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.9;
  margin: 0 0 0.75rem;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.75rem, 9vw, 6rem);
  line-height: 0.92;
  text-transform: uppercase;
  letter-spacing: var(--display-tracking);
  margin: 0;
}
.hero-cta-row {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  margin-top: 1.5rem;
}
@media (min-width: 640px) {
  .hero-cta-row {
    flex-direction: row;
    align-items: center;
    gap: 1.25rem;
  }
}
.hero-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  opacity: 0.9;
}

/* ---- Bands --------------------------------------------------------------- */
.band {
  position: relative;
  width: 100%;
  padding-block: clamp(3rem, 7vw, 5.5rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  background: var(--canvas);
  border-bottom: var(--border-strong-w) solid var(--ink);
}
.band-tint {
  background: var(--surface-2);
}
.band-head {
  margin-bottom: 2.5rem;
}
.band-head-tight {
  margin-top: 1.75rem;
  margin-bottom: 0;
}
.section-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  text-transform: uppercase;
  line-height: 0.98;
  margin: 0;
}
.section-sub {
  margin-top: 0.75rem;
  color: var(--muted);
  max-width: 60ch;
}

/* ---- Pitches -------------------------------------------------------------- */
.pitch-row {
  border-top: var(--border-w) solid var(--border);
  padding-top: 2rem;
  margin-top: 2rem;
}
.pitch-row:first-of-type {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}
.pitch-photo {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: var(--border-strong-w) solid var(--ink);
}
@media (min-width: 768px) {
  .pitch-photo {
    aspect-ratio: 21 / 9;
  }
}
.pitch-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pitch-caption {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 1rem;
  margin-top: 1rem;
}
.pitch-number {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-text);
}
.pitch-kind {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 0.95rem;
}
.pitch-rate {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--ink);
}

/* ---- Tonight's slots ------------------------------------------------------ */
.slots-legend {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
@media (min-width: 480px) {
  .slots-legend {
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }
}
.slots-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.slot-cell-sample {
  pointer-events: none;
}
.slot-cell {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.25rem;
  height: 2.25rem;
  padding-inline: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border: var(--border-w) solid transparent;
}
.slot-cell-open {
  cursor: pointer;
  color: var(--accent-text);
  border-color: var(--accent);
  background: transparent;
  transition: background-color 150ms var(--ease, ease);
}
.slot-cell-open:hover {
  background: var(--accent-soft);
}
.slot-cell-booked {
  cursor: not-allowed;
  color: var(--muted);
  border-color: var(--border);
  background: var(--surface-2);
  text-decoration: line-through;
}

/* ---- The turf / weekly footfall (full-bleed photos inside a padded band) -- */
.turf-photo,
.footfall-photo {
  margin-inline: calc(-1 * clamp(1.25rem, 4vw, 3rem));
  width: calc(100% + 2 * clamp(1.25rem, 4vw, 3rem));
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: var(--border-strong-w) solid var(--ink);
}
@media (min-width: 768px) {
  .turf-photo,
  .footfall-photo {
    aspect-ratio: 21 / 9;
  }
}
.turf-photo img,
.footfall-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.turf-caption {
  margin-top: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-text);
}

/* ---- House rules — a dense two-column text block, not cards -------------- */
.rules-list {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 3rem;
  margin: 0;
}
@media (min-width: 640px) {
  .rules-list {
    grid-template-columns: 1fr 1fr;
  }
}
.rules-row {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding-block: 0.9rem;
  margin: 0;
  border-top: var(--border-w) solid var(--border);
}
.rules-row dt {
  margin: 0;
  flex-shrink: 0;
  line-height: 1.6;
}
.rules-row dd {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
}
.rules-icon {
  color: var(--accent-text);
}

/* ---- Closing band ---------------------------------------------------------- */
.closing-band {
  position: relative;
  width: 100%;
  padding-block: clamp(4rem, 10vw, 7rem);
  padding-inline: clamp(1.25rem, 4vw, 3rem);
  background: var(--x-pitch);
  color: var(--x-pitch-ink);
}
.closing-inner {
  max-width: 46rem;
}
.closing-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
  margin: 0 0 0.5rem;
}
.closing-address {
  font-style: normal;
  line-height: 1.5;
  margin: 0 0 0.5rem;
}
.closing-meta {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  opacity: 0.9;
  margin: 0 0 2.5rem;
}
.closing-title {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  font-size: clamp(2.5rem, 7vw, 5.5rem);
  line-height: 0.95;
  text-transform: uppercase;
  margin: 0 0 2rem;
}

/* ---- Fixed booking bar ------------------------------------------------------ */
.booking-fab {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  height: 3rem;
  inset-inline: 1rem;
  bottom: 1rem;
  padding-inline: 1.25rem;
  background: var(--accent);
  color: var(--accent-ink);
  border: var(--border-strong-w) solid var(--ink);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: var(--shadow-raised);
  transition: background-color 150ms var(--ease, ease);
}
.booking-fab:hover {
  background: var(--accent-hover);
  color: var(--accent-ink);
  text-decoration: none;
}
@media (min-width: 768px) {
  .booking-fab {
    inset-inline: auto;
    right: 2rem;
    bottom: 2rem;
    justify-content: flex-start;
  }
  .hero-block {
    bottom: clamp(1.5rem, 5vw, 3.5rem);
  }
}
