/* Sports in Bars - design system (see site/DESIGN.md)
   Two themes: light (default, warm cream) and dark (stout, via
   [data-theme="dark"] on <html>). Colours are driven by CSS variables so
   every component follows the active theme automatically. */

:root {
  /* brand constants (same in both themes) */
  --brass: #b9832f;
  --brass-bright: #d3a24a;
  --green: #2a865b;
  --green-deep: #12513a;
  --live: #e5484d;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius: 14px;
  --wrap: 1140px;

  /* LIGHT THEME (default) */
  --bg: #f7f1e4;           /* warm cream page background */
  --surface: #fffdf7;      /* cards, raised surfaces */
  --surface-2: #f1e8d6;    /* hover / subtle fills */
  --board-bg: #1c2119;     /* the fixture chalkboard stays dark in both themes */
  --board-fg: #f6eeda;
  --board-line: rgba(246,238,218,.16);
  --ink: #241d13;          /* primary text */
  --ink-dim: #6f6446;      /* secondary text */
  --line: #e0d3b8;         /* hairlines/borders */
  --line-soft: #ebe0cb;
  --brass-link: #9a6b1f;   /* accessible brass on light bg */
  --shadow: 0 10px 30px rgba(60,42,10,.10);
  --hero-scrim-top: rgba(30,22,10,.20);
  --hero-scrim-bot: rgba(30,22,10,.78);
  --header-bg: color-mix(in srgb, var(--bg) 86%, transparent);
  --footer-grad: linear-gradient(180deg, #17604494, #12513a);
  --tag-bg: rgba(120,90,30,.08);
}

[data-theme="dark"] {
  --bg: #17130e;
  --surface: #221c15;
  --surface-2: #2e261c;
  --board-bg: #171c15;
  --board-fg: #f6eeda;
  --board-line: rgba(246,238,218,.16);
  --ink: #f6eeda;
  --ink-dim: #c4b79a;
  --line: #473d2c;
  --line-soft: #362d21;
  --brass-link: var(--brass-bright);
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --hero-scrim-top: rgba(18,15,12,.35);
  --hero-scrim-bot: rgba(18,15,12,.92);
  --header-bg: color-mix(in srgb, var(--bg) 88%, transparent);
  --footer-grad: linear-gradient(180deg, #103a2b, var(--green-deep));
  --tag-bg: rgba(255,255,255,.06);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background .25s ease, color .25s ease;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.7rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.65rem, 3vw, 2.2rem); margin-bottom: 0.6em; }
h3 { font-size: 1.28rem; }

a { color: var(--brass-link); text-decoration: none; }
a:hover { color: var(--brass); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 60px 0; }
.narrow { max-width: 680px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; z-index: 100; background: var(--brass); color: #fff; padding: 8px 16px; border-radius: 6px; }

.eyebrow { font-size: 0.76rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: var(--brass-link); margin-bottom: 14px; }
.eyebrow a { color: inherit; }

.section > h2, .hero h2 { position: relative; padding-bottom: 14px; }
.section > h2::after, .hero h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--brass); }

/* ------------------------------------------------------------- header */

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.header-in { display: flex; align-items: center; justify-content: space-between; height: 70px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; }
.brand-name em { color: var(--brass-link); font-style: italic; }
.logo-mark { width: 27px; height: 27px; }
.nav { display: flex; align-items: center; gap: 24px; }
.nav a { color: var(--ink-dim); font-weight: 500; font-size: 0.96rem; }
.nav a:hover { color: var(--ink); }
.nav .btn { color: #fff; }

/* theme toggle */
.theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color .16s, color .16s; }
.theme-toggle:hover { border-color: var(--brass); color: var(--brass-link); }
.theme-toggle svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
.theme-toggle .i-moon { display: block; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* facebook icon in header */
.fb-icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: #1877f2; transition: transform .16s ease-out, background .16s; }
.fb-icon svg { width: 21px; height: 21px; }
.fb-icon:hover { transform: translateY(-2px); background: var(--surface-2); color: #1877f2; }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 5px 0; }

/* ------------------------------------------------------------ buttons */

.btn { display: inline-block; padding: 13px 24px; border-radius: 10px; font-weight: 600; font-size: 0.96rem; line-height: 1.2; transition: transform .16s ease-out, background .16s, border-color .16s; }
.btn-brass { background: var(--brass); color: #fff !important; box-shadow: 0 4px 14px rgba(150,107,31,.28); }
.btn-brass:hover { background: var(--brass-bright); transform: translateY(-2px); }
.btn-ghost { border: 1px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--brass); color: var(--brass-link); }

/* --------------------------------------------------------------- hero */

.hero { padding: 100px 0 76px; }
.hero-sub { padding: 66px 0 42px; }
.hero .lede { max-width: 580px; }

/* home hero: copy + photo collage */
.hero-home { padding: 84px 0 76px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-art { position: relative; height: 460px; }
.hero-photo { position: absolute; background-size: cover; background-position: center; border-radius: var(--radius); box-shadow: var(--shadow); border: 4px solid var(--surface); }
.hero-photo.hp-1 { width: 62%; height: 60%; top: 0; right: 4%; transform: rotate(2.2deg); z-index: 2; }
.hero-photo.hp-2 { width: 52%; height: 48%; bottom: 6%; left: 0; transform: rotate(-3deg); z-index: 3; }
.hero-photo.hp-3 { width: 40%; height: 40%; bottom: 0; right: 12%; transform: rotate(4deg); z-index: 1; }
.hero-badge { position: absolute; top: 8%; left: 2%; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--board-bg); color: var(--board-fg); font-size: 0.82rem; font-weight: 600; box-shadow: var(--shadow); }
.hero-badge .live-dot { margin: 0; }
.lede { color: var(--ink-dim); font-size: 1.18rem; margin-top: 20px; }
.lede a { text-decoration: underline; text-underline-offset: 3px; }
.hero-cities { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.pill { border: 1px solid var(--line); border-radius: 999px; padding: 11px 22px; color: var(--ink); font-weight: 500; background: var(--surface); transition: border-color .16s, transform .16s ease-out; }
.pill span { color: var(--brass-link); font-weight: 600; margin-left: 6px; }
.pill:hover { border-color: var(--brass); transform: translateY(-2px); }
.hero-stats { margin-top: 30px; color: var(--ink-dim); font-size: 0.96rem; }
.hero-stats strong { color: var(--ink); font-family: var(--font-display); font-size: 1.18rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* photo hero on bar pages - scrim keeps white text readable in both themes */
.bar-hero { padding: 96px 0 40px; background-size: cover; background-position: center; border-bottom: 1px solid var(--line); color: #fff; }
.bar-hero .eyebrow { color: #f0d9a6; }
.bar-hero .eyebrow a { color: #fff; }
.bar-hero h1 { color: #fff; }
.bar-address { color: #fff; font-size: 1.15rem; margin-top: 10px; opacity: .94; }
.bar-hero .sports li { color: #fff; border-color: rgba(255,255,255,.28); background: rgba(255,255,255,.12); }
.bar-hero .sport-ic { color: #f0d9a6; }

/* ------------------------------------------------- sport tags + icons */

.sports { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 4px; }
.sports li { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--tag-bg); border: 1px solid var(--line); font-size: 0.85rem; font-weight: 500; color: var(--ink); }
.sport-ic { display: inline-flex; width: 17px; height: 17px; color: var(--brass-link); }
.sport-ic svg { width: 100%; height: 100%; }
.sports-mini { margin: 12px 0 0; gap: 6px; }
.sports-mini li { padding: 4px 10px 4px 8px; font-size: 0.76rem; }
.sports-mini .sport-ic { width: 14px; height: 14px; }

/* -------------------------------------------------- chalkboard fixture */
/* the board is intentionally dark in both themes - it's a chalkboard */

.board { background: var(--board-bg); color: var(--board-fg); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 38px; box-shadow: var(--shadow); }
.board .eyebrow { color: #e0b05e; }
.board h2 { padding-bottom: 0; color: var(--board-fg); }
.board h2::after { display: none; }
.board-list { list-style: none; margin-top: 20px; }
.board-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; padding: 14px 0; border-bottom: 1px dashed var(--board-line); font-variant-numeric: tabular-nums; }
.board-list li:last-child { border-bottom: 0; }
.fx-comp { font-weight: 600; min-width: 260px; }
.fx-when { color: #e0b05e; font-size: 0.9rem; font-weight: 500; }
.fx-note, .fx-match { color: #c4b79a; font-size: 0.95rem; }
.board-foot { margin-top: 16px; color: #c4b79a; font-size: 0.9rem; font-style: italic; }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--live); margin-right: 4px; animation: pulse 1.4s ease infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* -------------------------------------------------------------- cards */

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }

.card { display: block; background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; color: var(--ink); transition: transform .18s ease-out, border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brass) 50%, var(--line)); color: var(--ink); box-shadow: var(--shadow); }
.card-img { display: block; height: 168px; background-size: cover; background-position: center; }
.card-body { display: block; padding: 22px 24px 24px; }
.bar-card h3 { margin-bottom: 4px; }
.card-meta { color: var(--ink-dim); font-size: 0.92rem; }
.card-chips { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.78rem; font-weight: 500; padding: 4px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-dim); }
.chip-green { background: var(--green-deep); border-color: var(--green); color: #d5f0e2; }
.card-cta { display: inline-block; margin-top: 16px; color: var(--brass-link); font-weight: 600; font-size: 0.92rem; }
.card:hover .card-cta { color: var(--brass); }
.city-card p { color: var(--ink-dim); font-size: 0.97rem; margin-top: 4px; }

/* video cards (lazy YouTube) */
.video-card { text-align: left; border: 1px solid var(--line-soft); cursor: pointer; font: inherit; padding: 0; width: 100%; }
.video-card .card-img { position: relative; }
.video-card .play { position: absolute; inset: 0; margin: auto; width: 56px; height: 56px; border-radius: 50%; background: rgba(185,131,47,.94); box-shadow: 0 4px 20px rgba(0,0,0,.4); transition: transform .16s ease-out, background .16s; }
.video-card .play::after { content: ""; position: absolute; top: 50%; left: 54%; transform: translate(-50%,-50%); border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff; }
.video-card:hover .play { transform: scale(1.08); background: var(--brass-bright); }
.video-embed { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------------------------------------------------------- cta panel */

.cta-panel { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; background: linear-gradient(120deg, var(--green-deep), #17402f); border: 1px solid var(--green); border-radius: var(--radius); padding: 38px 42px; box-shadow: var(--shadow); color: #fff; }
.cta-panel h2 { padding: 0; color: #fff; }
.cta-panel h2::after { display: none; }
.cta-panel p { color: #d5f0e2; margin-top: 8px; max-width: 520px; }

/* ---------------------------------------------------- bar page detail */

.bar-cols { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: start; }
.bar-cols aside { position: sticky; top: 94px; }
.bar-cols h2 { margin-top: 36px; }
.bar-cols > div > h2:first-child { margin-top: 0; }

.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; color: var(--ink); }
.prose p + p { color: var(--ink-dim); }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.prose.narrow h2 { margin-top: 36px; }

.factbar { display: flex; flex-wrap: wrap; gap: 14px; margin: 26px 0 8px; }
.fact { flex: 1; min-width: 110px; background: var(--surface); border: 1px solid var(--line-soft); border-radius: 12px; padding: 18px 20px; }
.fact-n { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 600; color: var(--brass-link); line-height: 1; }
.fact-l { display: block; margin-top: 6px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-dim); }

.map-frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin-top: 8px; line-height: 0; }

/* fixtures embed (tablesleague.com) */
.fixtures-embed { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fixtures-embed iframe { display: block; width: 100%; height: 2600px; border: 0; }
@media (max-width: 560px) { .fixtures-embed iframe { height: 2400px; } }

/* ---------------------------------------------------------- logo lab */

.logo-lab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.logo-lab-card { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.logo-lab-stage { display: grid; place-items: center; min-height: 176px; padding: 28px; background: #120f0c; }
.logo-lab-stage.light { background: var(--bg); }
.logo-lab-stage img { display: block; width: min(100%, 430px); height: auto; }
.logo-lab-copy { padding: 22px 24px 24px; }
.logo-lab-copy p { color: var(--ink-dim); margin-top: 8px; font-size: 0.96rem; }
.logo-lab-current { display: flex; align-items: center; gap: 10px; color: var(--ink); font-family: var(--font-display); font-size: 1.32rem; font-weight: 600; }
.logo-lab-current em { color: var(--brass-link); font-style: italic; }
.logo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 18px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--surface); }
.logo-strip img { height: 38px; width: auto; max-width: 100%; }
.logo-strip .logo-mark { flex: 0 0 auto; }

.steps { margin-left: 20px; }
.steps li { margin-bottom: 14px; color: var(--ink-dim); }
.steps li strong { color: var(--ink); }

/* -------------------------------------------------------------- forms */

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--ink-dim); margin-bottom: 14px; }
.form input, .form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; color: var(--ink); font: inherit; font-size: 0.97rem; }
.form input:focus, .form textarea:focus { outline: 2px solid var(--brass); outline-offset: 1px; border-color: transparent; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form .btn { border: 0; cursor: pointer; width: 100%; margin-top: 4px; }
.form-note { font-size: 0.82rem; color: var(--ink-dim); margin-top: 12px; text-align: center; }

/* ------------------------------------------------------- social band */

.social-band { background: linear-gradient(115deg, #1877f2, #0f5bc4 55%, var(--green-deep)); color: #fff; }
.social-in { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 46px 24px; }
.social-copy .eyebrow { color: #cfe1ff; }
.social-copy h2 { color: #fff; padding: 0; margin-bottom: 8px; }
.social-copy h2::after { display: none; }
.social-copy p { color: #e4eefc; max-width: 540px; }
.btn-fb { display: inline-flex; align-items: center; gap: 10px; background: #fff; color: #1877f2; font-weight: 600; padding: 14px 24px; border-radius: 10px; box-shadow: var(--shadow); transition: transform .16s ease-out; white-space: nowrap; }
.btn-fb svg { width: 20px; height: 20px; }
.btn-fb:hover { transform: translateY(-2px); color: #1877f2; }

/* -------------------------------------------------------------- footer */

.site-footer { background: var(--footer-grad); border-top: 1px solid var(--green); margin-top: 0; color: #e0f2e8; }
.foot-fb { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: #cfe7d9; font-size: 0.9rem; }
.foot-fb svg { width: 17px; height: 17px; }
.foot-fb:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding: 58px 24px 40px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.22rem; color: #fff; }
.foot-tag { color: #a9d3bf; font-size: 0.92rem; margin-top: 10px; }
.site-footer h3 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: #a9d3bf; margin-bottom: 14px; }
.site-footer nav a { display: block; color: #e0f2e8; font-size: 0.95rem; padding: 4px 0; }
.site-footer nav a:hover { color: #fff; }
.foot-base { border-top: 1px solid rgba(255,255,255,.14); padding: 20px 24px; color: #a9d3bf; font-size: 0.88rem; }

/* ------------------------------------------------------------- mobile */

@media (max-width: 900px) {
  .bar-cols { grid-template-columns: 1fr; gap: 32px; }
  .bar-cols aside { position: static; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { height: 320px; max-width: 460px; margin-top: 12px; }
}
@media (max-width: 560px) {
  .hero-art { height: 260px; }
  .hero-badge { font-size: 0.74rem; padding: 7px 12px; }
}
@media (max-width: 860px) {
  .nav { display: none; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; align-items: flex-start; gap: 4px; background: var(--surface); border-bottom: 1px solid var(--line); padding: 16px 24px 20px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; }
  .nav-toggle { display: block; }
  .theme-toggle { margin-left: auto; }
  .fb-icon { order: 3; }
  .social-in { padding: 36px 24px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 68px 0 50px; }
  .board { padding: 26px; }
  .fx-comp { min-width: 0; }
  .cta-panel { padding: 30px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }
