/*
Theme Name: Ballencue Snooker
Theme URI: https://ballencuesnooker.com
Author: Ballencue Snooker
Description: Tables, café and late nights — Mumbai
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: ballencuesnooker
*/
/* Ballencue Snooker — the club as a scoreboard
   Midnight blue baize, ivory, brass. Balls as markers, tables as the nav. */

:root {
	--baize: #12305a;
	--baize-deep: #0b1f3d;
	--ink: #0a1628;
	--ivory: #f2eddf;
	--brass: #c9a24b;
	--chalk: #8fb8d8;
	--line: #24395c;
	--display: "Bodoni Moda", Georgia, serif;
	--sans: "Jost", "Segoe UI", sans-serif;
	--pad: clamp(18px, 4vw, 54px);
	--ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--ink);
	color: var(--ivory);
	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1rem; }

h1, h2, h3 {
	font-family: var(--display);
	font-weight: 500;
	line-height: 1.14;
	letter-spacing: -0.01em;
	margin: 0;
}
h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 2.1vw, 1.7rem); }
h3 { font-size: 1.05rem; letter-spacing: 0; }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--pad); }

.kicker {
	font-family: var(--sans);
	font-size: .66rem;
	font-weight: 500;
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--brass);
	margin: 0;
}

.skip { position: absolute; left: -9999px; top: 0; background: var(--brass); color: var(--ink); padding: .8rem 1.2rem; z-index: 99; }
.skip:focus { left: 1rem; top: 1rem; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

/* ---------- scoreboard ---------- */

.score { background: var(--baize-deep); border-bottom: 1px solid var(--line); }
.score .wrap { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; padding-block: .45rem; font-family: var(--sans); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(242, 237, 223, .6); }
.score .t { display: flex; align-items: center; gap: .4rem; }
.score .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--chalk); }
.score .dot.busy { background: var(--brass); }
.score .right { margin-left: auto; color: var(--brass); }

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

.bar { background: var(--ink); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; min-height: 70px; }
.brand { display: flex; align-items: center; gap: .7rem; }
.brand .ball {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: radial-gradient(circle at 33% 30%, #fff5, transparent 55%), var(--baize);
	border: 1px solid var(--brass);
	display: grid;
	place-items: center;
	font-family: var(--display);
	font-size: .78rem;
	color: var(--ivory);
}
.brand b { font-family: var(--display); font-size: 1.2rem; font-weight: 500; letter-spacing: .01em; }
.brand small { display: block; font-family: var(--sans); font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: rgba(242, 237, 223, .5); }

.nav { display: flex; gap: 1.3rem; align-items: center; }
.nav a { font-size: .86rem; letter-spacing: .04em; padding-block: .2rem; border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--brass); }
.nav a[aria-current="page"] { color: var(--brass); border-color: var(--brass); }
.nav .cta { background: var(--brass); color: var(--ink); padding: .45rem .85rem; border: 0; font-weight: 500; font-size: .82rem; }
.nav .cta:hover { background: var(--ivory); }
.menu-toggle { display: none; background: none; border: 1px solid var(--line); padding: .3rem .55rem; font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; }

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

.hero { position: relative; }
.hero img { width: 100%; height: clamp(280px, 38vw, 480px); object-fit: cover; opacity: .85; }
.hero .in {
	position: absolute;
	inset: auto 0 0;
	padding: 0 var(--pad) clamp(20px, 3vw, 36px);
	background: linear-gradient(180deg, transparent, rgba(10, 22, 40, .94) 62%);
}
.hero h1 { max-width: 22ch; }
.hero p { color: rgba(242, 237, 223, .72); max-width: 46ch; margin: .5rem 0 0; }

/* ---------- sections ---------- */

.sec { padding-block: clamp(34px, 5vw, 64px); }
.sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1.2rem; flex-wrap: wrap; border-bottom: 1px solid var(--line); padding-bottom: .6rem; margin-bottom: clamp(18px, 2.6vw, 28px); }
.sec-head h2 { max-width: 26ch; }
.sec-head .kicker { color: rgba(242, 237, 223, .5); }

/* ---------- tables list ---------- */

.tables { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tables th {
	text-align: left;
	font-family: var(--sans);
	font-size: .62rem;
	font-weight: 500;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: rgba(242, 237, 223, .5);
	padding: .45rem .6rem .45rem 0;
	border-bottom: 1px solid var(--brass);
}
.tables td { padding: .8rem .6rem .8rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.tables .name { font-family: var(--display); font-size: 1.05rem; }
.tables .muted { color: rgba(242, 237, 223, .6); font-size: .86rem; }
.tables .num { text-align: right; font-family: var(--display); font-size: 1.02rem; white-space: nowrap; }
.tables .pill {
	display: inline-flex;
	align-items: center;
	gap: .35rem;
	font-size: .6rem;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--chalk);
}
.tables .pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; display: block; }
.tables .pill.busy { color: var(--brass); }

/* ---------- slots ---------- */

.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .4rem; margin-top: .8rem; }
.slots button {
	background: transparent;
	border: 1px solid var(--line);
	color: rgba(242, 237, 223, .8);
	padding: .45rem .3rem;
	font-size: .78rem;
	letter-spacing: .04em;
	cursor: pointer;
	transition: background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
}
.slots button:hover { border-color: var(--brass); }
.slots button.on { background: var(--brass); border-color: var(--brass); color: var(--ink); }
.slots button.used { opacity: .35; text-decoration: line-through; cursor: not-allowed; }

/* ---------- booking panel ---------- */

.book { background: var(--baize); border: 1px solid var(--line); padding: clamp(18px, 2.6vw, 28px); }
.book h2 { color: var(--ivory); }
.book .hint { font-size: .86rem; color: rgba(242, 237, 223, .65); }
.form { display: grid; gap: .8rem; margin-top: 1rem; }
.form label { font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(242, 237, 223, .6); }
.form input,
.form select { width: 100%; background: var(--baize-deep); border: 1px solid var(--line); padding: .55rem .6rem; font-size: .92rem; color: var(--ivory); }
.form input:focus,
.form select:focus { outline: none; border-color: var(--brass); }
.form button { background: var(--brass); color: var(--ink); border: 0; padding: .7rem 1rem; font-weight: 500; font-size: .86rem; cursor: pointer; }
.form button:hover { background: var(--ivory); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(22px, 3.6vw, 48px); align-items: start; }

/* ---------- chalkboard menu ---------- */

.chalk { background: var(--baize); border: 1px solid var(--line); padding: clamp(18px, 2.6vw, 30px); }
.chalk-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px dashed rgba(242, 237, 223, .3); padding-bottom: .5rem; margin-bottom: .8rem; }
.menu-row { display: flex; align-items: baseline; gap: .5rem; padding-block: .45rem; font-size: .94rem; }
.menu-row .dots { flex: 1; border-bottom: 1px dotted rgba(242, 237, 223, .25); transform: translateY(-3px); }
.menu-row .price { font-family: var(--display); color: var(--brass); }
.menu-row small { display: block; color: rgba(242, 237, 223, .55); font-size: .74rem; }

/* ---------- house notes ---------- */

.notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.note { background: var(--ink); padding: 1.1rem 1rem 1.2rem; }
.note .kicker { color: var(--brass); margin-bottom: .3rem; }
.note p { margin: 0; font-size: .88rem; color: rgba(242, 237, 223, .7); }

/* ---------- split ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 3.6vw, 48px); align-items: center; }
.split img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); }
.split h2 { margin-bottom: .7rem; }
.split p { color: rgba(242, 237, 223, .72); max-width: 46ch; }

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

.cta { background: var(--baize-deep); border-top: 1px solid var(--line); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.6rem; flex-wrap: wrap; padding-block: clamp(26px, 4vw, 44px); }
.cta h2 { max-width: 24ch; }
.cta p { margin: .4rem 0 0; color: rgba(242, 237, 223, .65); }

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

.foot { background: var(--ink); border-top: 1px solid var(--line); padding-block: 1.8rem 1rem; }
.foot .cols { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(18px, 3vw, 40px); padding-bottom: 1.2rem; }
.foot h4 { font-family: var(--sans); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(242, 237, 223, .45); margin-bottom: .5rem; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin-bottom: .3rem; font-size: .88rem; color: rgba(242, 237, 223, .75); }
.foot a:hover { color: var(--brass); }
.foot-note { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: .8rem; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(242, 237, 223, .45); }

/* ---------- responsive ---------- */

@media (max-width: 940px) {
	.hero-grid, .split { grid-template-columns: 1fr; }
	.notes { grid-template-columns: 1fr; }
	.foot .cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
	.menu-toggle { display: inline-block; }
	.nav {
		position: absolute;
		inset: 100% 0 auto;
		flex-direction: column;
		align-items: flex-start;
		gap: 0;
		background: var(--ink);
		border-bottom: 1px solid var(--line);
		padding: .3rem var(--pad) 1rem;
		display: none;
	}
	.nav.open { display: flex; }
	.bar .wrap { position: relative; }
	.nav a { width: 100%; padding-block: .55rem; border-bottom: 1px solid var(--line); }
	.nav .cta { margin-top: .5rem; width: auto; }
	.score .right { display: none; }
	.two { grid-template-columns: 1fr; }
	.tables .hide-sm { display: none; }
	.foot .cols { grid-template-columns: 1fr; }
}

/* ---------- developer credit ---------- */

.theme-credit {
	font-size: inherit;
	opacity: .75;
	margin: 0;
	letter-spacing: .02em;
	display: inline;
}

.theme-credit a {
	border-bottom: 1px solid currentColor;
	text-decoration: none;
}