:root {
  --black: #000;
  --bg: #0b0b0b;
  --bg-alt: #121110;
  --surface: #191715;
  --line: rgba(212, 170, 80, 0.22);
  --text: #f4efe4;
  --muted: #b5ad9c;
  --gold: #d4a944;
  --gold-light: #f2d27c;
  --gold-dark: #94701f;
  --gold-gradient: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 45%, var(--gold-dark) 100%);
  --green: #3fbf6b;
  --radius: 14px;
  --heading: "Josefin Sans", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--gold-light); }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.3rem, 6vw, 4.2rem); text-transform: uppercase; }
h2 { font-size: clamp(1.8rem, 4vw, 2.7rem); text-transform: uppercase; }
h3 { font-size: 1.4rem; text-transform: uppercase; }

.container { width: min(1160px, 100% - 32px); margin-inline: auto; }

.skip-link {
  position: absolute; left: -9999px; top: 8px;
  background: var(--gold); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 100;
}
.skip-link:focus { left: 8px; }

.eyebrow {
  font-family: var(--heading);
  text-transform: uppercase;
  letter-spacing: 0.25em;
  font-size: 0.85rem;
  color: var(--gold);
  margin: 0 0 0.8rem;
}

.muted { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--heading);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  padding: 0.95em 1.6em 0.8em;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.btn-gold { background: var(--gold-gradient); color: #140f04; box-shadow: 0 6px 24px rgba(212, 169, 68, 0.25); }
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(212, 169, 68, 0.35); }
.btn-ghost { border: 1.5px solid var(--gold); color: var(--gold-light); }
.btn-ghost:hover { background: rgba(212, 169, 68, 0.1); }
.btn-sm { font-size: 0.85rem; padding: 0.8em 1.3em 0.65em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 52px; width: auto; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a {
  color: var(--text); text-decoration: none;
  font-family: var(--heading); text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.85rem;
}
.nav a:hover { color: var(--gold-light); }

/* Hero */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.7) 45%, rgba(0,0,0,0.25) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 30%),
    url("images/snooker-room.jpg") center / cover no-repeat;
}
.hero-content { padding: 96px 0; max-width: 1160px; }
.hero-content h1 { max-width: 16ch; }
.lead { font-size: 1.2rem; color: #e2dccf; max-width: 36ch; margin: 0 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.open-status {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 2rem 0 0; font-weight: 500; color: var(--muted);
}
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.open-status.is-open { color: var(--green); }
.open-status.is-closed { color: #d77; }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-head { text-align: center; margin-bottom: 48px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--gold); transform: translateY(-3px); }
.card p { color: var(--muted); margin: 0; }
.card-num {
  display: flex; align-items: center; height: 72px;
  font-family: var(--heading); font-weight: 700; font-size: 4.5rem; line-height: 1;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 12px;
}
.card-num svg { color: var(--gold); }

/* Hours */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.big-hours {
  font-family: var(--heading); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1;
  margin: 0.2em 0 0.4em;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.big-hours span { padding: 0 0.15em; }
.split .muted { margin-bottom: 1.8rem; max-width: 40ch; }

.hours-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.hours-table th, .hours-table td { padding: 15px 24px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table th { text-align: left; font-weight: 500; }
.hours-table td { text-align: right; color: var(--muted); }
.hours-table tr.today { background: rgba(212, 169, 68, 0.12); }
.hours-table tr.today th, .hours-table tr.today td { color: var(--gold-light); font-weight: 600; }
.hours-table tr.today th::after {
  content: "Today"; margin-left: 10px; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 999px; border: 1px solid var(--gold); vertical-align: 2px;
}

/* Gallery */
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.gallery figure { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery-more { text-align: center; margin-top: 28px; }
.gallery-more a { text-decoration: none; font-weight: 500; }
.gallery-more a:hover { text-decoration: underline; }

/* Find us */
.contact { font-style: normal; margin-bottom: 1.8rem; }
.contact p { margin: 0 0 1rem; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.3) contrast(1.05); }

/* CTA band */
.cta-band {
  padding: 88px 0; text-align: center;
  background:
    radial-gradient(ellipse at center, rgba(212, 169, 68, 0.16) 0%, transparent 65%),
    var(--black);
}
.cta-inner p { color: var(--muted); margin: 0 0 1.8rem; }

/* Footer */
.site-footer { background: var(--black); border-top: 1px solid var(--line); padding: 48px 0 32px; text-align: center; }
.footer-logo { width: 240px; margin: 0 auto 20px; }
.footer-cols { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 32px; color: var(--muted); font-size: 0.95rem; }
.footer-cols p { margin: 0; }
.footer-cols a { color: var(--muted); }
.footer-cols a:hover { color: var(--gold-light); }
.copyright { color: #6f695e; font-size: 0.85rem; margin: 24px 0 0; }
.powered-by { color: #6f695e; font-size: 0.8rem; margin: 6px 0 0; }
.powered-by a { color: var(--muted); }
.powered-by a:hover { color: var(--gold-light); }

/* 404 */
.not-found {
  min-height: calc(100vh - 76px - 260px);
  display: flex; align-items: center;
  padding: 96px 0;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(212, 169, 68, 0.12) 0%, transparent 60%), var(--bg);
}
.not-found-inner { display: flex; flex-direction: column; align-items: center; }
.not-found-code {
  font-family: var(--heading); font-weight: 700; font-size: clamp(6rem, 22vw, 11rem); line-height: 1;
  margin: 0 0 0.1em;
  background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.not-found .lead { margin-inline: auto; }
.not-found .hero-actions { justify-content: center; }

.mobile-book { display: none; }

/* Responsive */
@media (max-width: 900px) {
  .nav { display: none; }
  .header-inner { justify-content: space-between; }
  .cards { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .header-inner { height: 64px; }
  .brand img { height: 40px; }
  .site-header .btn-sm { display: none; }
  .hero { min-height: 82vh; }
  .hero-bg {
    background:
      linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.65) 60%, rgba(0,0,0,0.45) 100%),
      url("images/snooker-room.jpg") center / cover no-repeat;
  }
  .hero-content { padding: 64px 0 96px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .gallery { grid-template-columns: 1fr; }
  .hours-table th, .hours-table td { padding: 13px 16px; }
  .mobile-book {
    display: flex; position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60;
    box-shadow: 0 10px 30px rgba(0,0,0,0.6);
  }
  .site-footer { padding-bottom: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
