:root {
  --navy: #192345;
  --navy-deep: #0f1730;
  --wine: #98233D;
  --white: #ffffff;
  --ivory: #f3eee4;
  --ink: #192345;
  --muted: #55607a;
  --display: "Oswald", "Arial Narrow", Impact, "Helvetica Neue", Arial, sans-serif;
  --serif: "Times New Roman", Times, Georgia, serif;
  --sans: Helvetica, Arial, "Helvetica Neue", sans-serif;
  --stripe-w: 14px;
  --hero-image: none; /* set to url("assets/hero.jpg") when a bar photo is available */
  --actionbar-h: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.55;
  padding-left: var(--stripe-w);
  padding-bottom: var(--actionbar-h);
}
img { max-width: 100%; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* athletic stripe accent */
.stripes {
  position: fixed; inset: 0 auto 0 0; width: var(--stripe-w); z-index: 60;
  background: linear-gradient(90deg, var(--navy) 0 33.3%, var(--white) 33.3% 66.6%, var(--wine) 66.6% 100%);
}

/* header / nav */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--white);
  box-shadow: 0 3px 0 var(--wine);
}
.nav { max-width: 1040px; margin: 0 auto; padding: 8px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; display: block; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 1.35rem; letter-spacing: .06em; text-transform: uppercase; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.nav-links a { display: block; padding: 10px 12px; text-decoration: none; font-family: var(--display); font-weight: 500; font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; border-radius: 4px; }
.nav-links a:hover, .nav-links a:focus-visible { background: var(--wine); }
.nav-toggle { display: none; background: none; border: 0; color: inherit; padding: 12px; cursor: pointer; }
.bars, .bars::before, .bars::after { display: block; width: 24px; height: 3px; background: currentColor; border-radius: 2px; content: ""; position: relative; }
.bars::before { position: absolute; top: -7px; }
.bars::after { position: absolute; top: 7px; }

:focus-visible { outline: 3px solid var(--wine); outline-offset: 2px; }
.site-header :focus-visible, .hero :focus-visible { outline-color: var(--white); }

/* type */
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; margin: 0 0 14px; text-transform: uppercase; letter-spacing: .01em; }
h1 { font-size: clamp(3rem, 11vw, 6.2rem); line-height: .92; }
h1 span { color: #e9b3c0; display: block; }
h2 { font-size: clamp(2.1rem, 6.5vw, 3.6rem); }
h2::after { content: ""; display: block; width: 72px; height: 7px; background: var(--wine); margin-top: 12px; }
h3 { font-size: 1.5rem; letter-spacing: .03em; }
.eyebrow { margin: 0 0 10px; font-family: var(--display); font-size: 1rem; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; color: var(--wine); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--navy); background-image: var(--hero-image); background-size: cover; background-position: center; color: var(--white); padding: 56px 0 84px; }
.hero::before { /* faint crest watermark */
  content: ""; position: absolute; right: -90px; top: -40px; width: 560px; height: 560px;
  background: url("assets/crest.png") center / contain no-repeat; opacity: .07; pointer-events: none;
  clip-path: circle(49.5%);
}
.hero::after { /* diagonal cut into the page */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 56px; background: var(--ivory);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero-inner { display: flex; align-items: center; gap: 44px; padding-bottom: 40px; }
.crest { width: 260px; height: 260px; border-radius: 50%; flex: none; box-shadow: 0 0 0 6px var(--wine), 0 0 0 12px var(--white); }
.hero .eyebrow { color: #e9b3c0; }
.lede { font-size: 1.25rem; max-width: 34ch; margin: 0 0 26px; }
.btn {
  display: inline-block; background: var(--wine); color: var(--white); border: 2px solid var(--wine);
  padding: 15px 26px; font: 700 1.05rem var(--display); letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border-radius: 3px; cursor: pointer;
  box-shadow: 5px 5px 0 var(--navy); transition: transform .12s ease, box-shadow .12s ease, background .12s ease, color .12s ease;
}
.btn:hover { background: var(--white); color: var(--wine); transform: translate(2px, 2px); box-shadow: 3px 3px 0 var(--navy); }
.btn:active { transform: translate(5px, 5px); box-shadow: 0 0 0 var(--navy); }
.hero .btn { box-shadow: 5px 5px 0 var(--white); }
.hero .btn:hover { box-shadow: 3px 3px 0 var(--wine); }
.btn-sm { padding: 11px 18px; font-size: .95rem; box-shadow: 4px 4px 0 var(--navy); }

/* today scoreboard */
.today { background: var(--navy-deep); color: var(--white); border-radius: 6px; padding: 22px 24px; border-top: 8px solid var(--wine); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.today-title { font-size: 1.9rem; margin-bottom: 14px; display: flex; align-items: center; gap: 12px; }
.today-title::after { display: none; }
.live-dot { width: 14px; height: 14px; border-radius: 50%; background: #ff4d6d; box-shadow: 0 0 0 0 rgba(255,77,109,.7); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px rgba(255,77,109,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,109,0); } }
.today-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.today-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 14px; background: rgba(255,255,255,.07); border-radius: 4px; }
.today-list .time { font-family: var(--display); font-weight: 700; font-size: 1.9rem; line-height: 1; min-width: 6.2rem; }
.today-list .match { font-weight: 700; font-size: 1.1rem; flex: 1 1 14rem; }
.today-list .league { font-family: var(--display); letter-spacing: .12em; font-size: .85rem; text-transform: uppercase; color: #e9b3c0; }
.today-list li.muted { display: block; background: none; padding: 0; color: #cfd5e6; }
.muted { color: var(--muted); }
.status { display: inline-block; font: 700 .8rem var(--display); letter-spacing: .14em; text-transform: uppercase; padding: 5px 10px; border-radius: 3px; }
.status.now { background: #ff4d6d; color: #fff; animation: blink 1.6s ease-in-out infinite; }
.status.soon { background: #ffd166; color: #3b2a00; }
@keyframes blink { 50% { opacity: .65; } }
.today .badge.off { color: var(--white); border-color: rgba(255,255,255,.7); }
.today .badge.tbd { background: transparent; color: #cfd5e6; border-color: #cfd5e6; }

/* quick info strip */
.quickinfo { background: var(--white); border-bottom: 4px solid var(--navy); }
.qi { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; padding-top: 18px; padding-bottom: 18px; }
.qi-address { margin: 0; display: grid; line-height: 1.3; }
.qi-address strong { font-family: var(--display); font-size: 1.3rem; text-transform: uppercase; letter-spacing: .04em; }
.qi-address span { color: var(--muted); font-size: .92rem; }
.qi-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.qi-facts li { font-weight: 700; }
.qi-facts small { display: block; font: 500 .72rem var(--display); letter-spacing: .18em; text-transform: uppercase; color: var(--wine); }
.qi-facts a { text-decoration: none; }

/* sections */
.section { padding: 72px 0; }
.section.alt { background: var(--white); clip-path: polygon(0 26px, 100% 0, 100% calc(100% - 26px), 0 100%); padding: 100px 0; margin: -1px 0; }
.section-lede { max-width: 60ch; color: var(--muted); margin: 0 0 26px; font-size: 1.05rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card { background: var(--ivory); border-left: 8px solid var(--wine); padding: 22px; border-radius: 4px; transition: transform .15s ease, box-shadow .15s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 10px 22px rgba(25,35,69,.18); }
.section:not(.alt) .card { background: var(--white); }
.card p { margin: 0 0 8px; }
.note { color: var(--muted); font-size: .95rem; }
.link { color: var(--wine); font-weight: 700; }
#menu-link-slot { margin: 26px 0 0; }
#menu-link-slot:empty { display: none; }

/* games */
.search { margin: 0 0 18px; }
.search label { display: block; font: 700 1rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--wine); margin-bottom: 6px; }
.search-box { position: relative; }
.search-box input { width: 100%; min-height: 52px; padding: 12px 48px 12px 16px; font: 500 1.05rem var(--sans); color: var(--navy); background: var(--white); border: 2px solid var(--navy); border-radius: 4px; box-shadow: 4px 4px 0 var(--navy); -webkit-appearance: none; appearance: none; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box input:focus { outline: 3px solid var(--wine); outline-offset: 2px; }
.search-clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--navy); color: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.search-clear:hover { background: var(--wine); }
.search-count { margin: 8px 0 0; min-height: 1.2em; font-weight: 700; color: var(--navy); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.tab { font: 500 1rem var(--display); text-transform: uppercase; letter-spacing: .1em; padding: 10px 18px; border: 2px solid var(--navy); background: transparent; color: var(--navy); border-radius: 999px; cursor: pointer; transition: background .12s ease, color .12s ease; }
.tab:hover { background: rgba(25,35,69,.1); }
.tab[aria-selected="true"] { background: var(--navy); color: var(--white); }
.games-list { display: grid; gap: 12px; }
.day-head { margin: 18px 0 2px; font-size: 1.6rem; }
.game { display: grid; grid-template-columns: 8.2rem 1fr auto; gap: 0 16px; align-items: center; background: var(--white); border-radius: 4px; overflow: hidden; box-shadow: 0 2px 0 rgba(25,35,69,.15); transition: transform .12s ease, box-shadow .12s ease; }
.game:hover { transform: translateX(4px); box-shadow: 0 4px 0 rgba(25,35,69,.25); }
.game .time { grid-row: 1 / span 2; align-self: stretch; display: flex; align-items: center; justify-content: center; padding: 16px 10px; background: var(--navy); color: var(--white); font-family: var(--display); font-weight: 700; font-size: 1.5rem; letter-spacing: .03em; text-align: center; }
.game.featured .time { background: var(--wine); }
.game.featured { box-shadow: 0 0 0 3px var(--wine); }
.game .match { font-weight: 700; font-size: 1.1rem; padding: 14px 0; }
.game .badge { margin-right: 16px; }
.game .meta { grid-column: 2 / -1; color: var(--muted); font-size: .92rem; padding: 0 16px 14px 0; margin-top: -8px; }
.badge { display: inline-block; font: 700 .82rem var(--display); letter-spacing: .12em; text-transform: uppercase; padding: 6px 11px; border-radius: 3px; white-space: nowrap; }
.badge.on { background: var(--wine); color: var(--white); }
.badge.off { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 4px 9px; }
.badge.tbd { background: var(--ivory); color: var(--muted); border: 2px dashed var(--muted); padding: 4px 9px; }
.legend { margin-top: 20px; font-size: .92rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.sample-note { background: #fff3cd; color: #5c4400; padding: 10px 14px; border-radius: 4px; font-size: .92rem; }
.empty { padding: 24px; background: var(--white); border-radius: 4px; border-left: 8px solid var(--muted); }

/* form */
.form { display: grid; gap: 14px; background: var(--white); padding: 26px; border-radius: 6px; border-top: 8px solid var(--navy); box-shadow: 0 10px 24px rgba(25,35,69,.12); }
.form label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; }
.form input, .form textarea { font: 400 1rem var(--sans); padding: 12px; border: 2px solid #c8c2b6; border-radius: 4px; background: var(--ivory); color: var(--ink); width: 100%; }
.form input:focus, .form textarea:focus { border-color: var(--wine); outline: none; background: var(--white); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form button { justify-self: start; }
.form-consent { margin: 0; font-size: .85rem; opacity: .85; line-height: 1.45; }
.form-msg { margin: 0; font-weight: 700; min-height: 1.2em; }

/* visit */
address { font-style: normal; margin: 0 0 12px; line-height: 1.6; font-size: 1.05rem; }
.facts { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.facts:empty { display: none; }
.facts strong { font-family: var(--display); text-transform: uppercase; letter-spacing: .1em; color: var(--wine); margin-right: 8px; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: 6px; background: #ddd; box-shadow: 8px 8px 0 var(--navy); }
.social { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a { display: inline-block; font: 500 1rem var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--navy); border: 2px solid var(--navy); border-radius: 999px; padding: 8px 16px; }
.social a:hover { background: var(--navy); color: var(--white); }
.social a.icon-link { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; padding: 0; background: var(--navy); color: var(--white); border-color: var(--navy); box-shadow: 3px 3px 0 var(--wine); transition: transform .15s, box-shadow .15s, background .15s; }
.social a.icon-link:hover { background: var(--wine); border-color: var(--wine); box-shadow: 3px 3px 0 var(--navy); transform: translate(-1px, -1px); }
.ig-feed { margin-top: 44px; }
.ig-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 12px 0 20px; }
.ig-grid .instagram-media { min-width: 0 !important; max-width: 100% !important; width: 100% !important; margin: 0 !important; }

/* whatsapp + mobile action bar */
.wa-chat { position: fixed; right: 16px; bottom: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 8px; padding: 12px 16px; border-radius: 999px; background: #25D366; color: #0b2e17; font: 700 .95rem var(--sans); text-decoration: none; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wa-chat:hover, .wa-chat:focus-visible { background: #1ebe5b; }
.wa-chat[hidden] { display: none; }
.actionbar { display: none; }

.footer { background: var(--navy); color: var(--white); text-align: center; padding: 40px 0; }
.footer img { border-radius: 50%; }
.footer p { margin: 8px 0 0; font-family: var(--display); font-weight: 700; letter-spacing: .14em; }
.footer .small { font: 400 .85rem var(--sans); letter-spacing: 0; opacity: .8; }

/* scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 800px) {
  :root { --stripe-w: 8px; --actionbar-h: 64px; }
  .nav-toggle { display: block; }
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; background: var(--navy); padding: 8px 12px 16px; border-top: 1px solid rgba(255,255,255,.2); }
  .nav-links.open { display: flex; }
  .hero { padding: 32px 0 72px; }
  .hero::before { width: 360px; height: 360px; right: -120px; top: 0; }
  .hero-inner { flex-direction: column; text-align: center; gap: 24px; }
  .crest { width: 170px; height: 170px; }
  .lede { margin-left: auto; margin-right: auto; }
  .today { padding: 18px 16px; }
  .today-list .time { font-size: 1.6rem; min-width: 0; }
  .qi { flex-direction: column; align-items: flex-start; }
  .section.alt { clip-path: polygon(0 16px, 100% 0, 100% calc(100% - 16px), 0 100%); padding: 80px 0; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .game { grid-template-columns: 1fr auto; }
  .game .time { grid-row: auto; grid-column: 1 / -1; padding: 10px; justify-content: flex-start; padding-left: 16px; }
  .game .match { padding: 12px 0 12px 16px; }
  .game .meta { grid-column: 1 / -1; padding: 0 16px 14px; margin-top: -4px; }
  .game:hover { transform: none; }
  .form .row { grid-template-columns: 1fr; }
  .map iframe { box-shadow: 5px 5px 0 var(--navy); }
  /* sticky quick-action bar */
  .actionbar { display: flex; position: fixed; left: var(--stripe-w); right: 0; bottom: 0; z-index: 56; background: var(--navy); border-top: 4px solid var(--wine); }
  .actionbar a { flex: 1; text-align: center; padding: 14px 4px; min-height: 60px; display: flex; align-items: center; justify-content: center; font: 700 .95rem var(--display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; color: var(--white); }
  .actionbar a + a { border-left: 1px solid rgba(255,255,255,.2); }
  .actionbar a:active { background: var(--wine); }
  .actionbar a[hidden] { display: none; }
  .wa-chat { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot, .status.now { animation: none; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .game { transition: none; }
}
