/* Game Hub by Villa Estelle: components + layout (uses tokens.css) */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 var(--fs-body)/var(--lh-body) var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--c-red); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-lg { width: 28px; height: 28px; }
.muted { color: var(--text-muted); }

/* ---------- type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 800 var(--fs-label)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-accent); }
.eyebrow::before { content: ""; width: 10px; height: 10px; background: currentColor; transform: rotate(45deg); }
.h2 { font: 900 var(--fs-h2)/var(--lh-tight) var(--font-head); text-transform: uppercase; letter-spacing: .005em; margin-top: 10px; }
.h3 { font: 800 var(--fs-h3)/1.05 var(--font-head); text-transform: uppercase; letter-spacing: .01em; }
.lead { font-size: var(--fs-lead); color: var(--text-muted); }
.accent { color: var(--c-red-bright); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); border: 2px solid transparent; font: 800 16px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.btn-primary { background: var(--c-red); color: var(--text-on-red); }
.btn-primary:hover { background: var(--c-red-hover); }
.btn-secondary { border-color: var(--text); color: var(--text); background: transparent; }
.btn-secondary:hover { background: var(--text); color: var(--bg); }
.btn-ghost { color: var(--text-accent); padding: 0 4px; min-height: 44px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-block { width: 100%; }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- header (fixed) ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; background: var(--bg); border-bottom: 1px solid var(--border); }
.hdr-in { height: var(--header-h); display: flex; align-items: center; gap: 32px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: 44px; text-decoration: none; }
.brand img { width: 52px; height: 52px; border-radius: 50%; background: #fff; }
.brand-name { display: block; font: 900 28px/1 var(--font-head); letter-spacing: .06em; text-transform: uppercase; }
.brand-sub { display: block; font: 700 12px/1.3 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
.nav-desktop { display: flex; gap: 6px; margin-left: auto; }
.nav-desktop a { display: flex; align-items: center; height: 44px; padding: 0 12px; font: 700 16px/1 var(--font-body); letter-spacing: .05em; text-transform: uppercase; text-decoration: none; border-bottom: 3px solid transparent; }
.nav-desktop a:hover { color: var(--c-blue); }
.nav-desktop a[aria-current="true"] { color: var(--c-blue); border-bottom-color: var(--c-blue); }
.hdr-call { display: none; }
.chips-nav { display: none; }

/* ---------- mobile fixed CTA ---------- */
.m-cta { display: none; }

/* ---------- sections ---------- */
.section { position: relative; padding: 36px 0 72px; scroll-margin-top: calc(var(--header-h) + var(--chips-h)); }
.anchor { scroll-margin-top: calc(var(--header-h) + var(--chips-h) + 16px); }
.section + .section { border-top: 1px solid var(--border); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }

/* ---------- 1. HOME / hero ---------- */
.hero { position: relative; height: 100vh; min-height: 640px; max-height: 1100px; padding: 0; margin-top: var(--header-h); height: calc(100vh - var(--header-h)); overflow: hidden; background: var(--bg); scroll-margin-top: var(--header-h); }
.hero-photo { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; object-fit: cover; object-position: center 35%; height: 100%; }
.hero-shade { position: absolute; top: 0; bottom: 0; right: 0; width: 64%; background: linear-gradient(0deg, rgba(12,12,14,.55), rgba(12,12,14,0) 45%); }
.hero-panel { position: absolute; top: 0; bottom: 0; left: 0; width: 820px; background: var(--bg); clip-path: var(--slash); }
.hero-stripe { position: absolute; top: 0; bottom: 0; left: 700px; width: 56px; background: var(--c-red); clip-path: polygon(70% 0, 100% 0, 30% 100%, 0 100%); }
.hero-in { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; }
.hero-text { width: 600px; }
.status { display: inline-flex; align-items: center; gap: 10px; font: 800 var(--fs-label)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.status .dot { width: 10px; height: 10px; background: var(--c-green); transform: rotate(45deg); }
.status b { color: var(--c-green); font-weight: 800; }
.display { font: 900 var(--fs-display)/.86 var(--font-head); text-transform: uppercase; margin: 22px 0 0; }
.display .accent { display: block; }
.hero .lead { margin: 22px 0 30px; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.stats { display: flex; margin-top: 44px; }
.stats > li { padding: 0 28px; border-left: 2px solid var(--border); }
.stats > li:first-child { padding-left: 0; border-left: 0; }
.stats b { display: block; font: 900 40px/1 var(--font-head); }
.stats span { display: block; font-size: var(--fs-label); font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .08em; }
.scroll-cue { position: absolute; z-index: 2; right: var(--gutter); bottom: 32px; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; background: var(--bg); border-radius: var(--r-sm); font: 800 var(--fs-label)/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; text-decoration: none; color: var(--text); }

/* ---------- 2. ABOUT & COURTS ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 72px; row-gap: 20px;
  grid-template-areas: "head amen" "text amen" "courts courts" "soon rules"; }
.about-head { grid-area: head; }
.about-text { grid-area: text; display: grid; gap: 14px; }
.about-text p { color: var(--text-muted); font-size: 17px; }
.amen-block { grid-area: amen; align-self: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.amen-block h3 { margin-bottom: 6px; }
.amen-block > p { color: var(--text-muted); margin-bottom: 16px; }
.amen { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.amen li { display: flex; flex-direction: column; gap: 8px; padding: 14px 12px; background: var(--surface-2); border-radius: var(--r-md); font-weight: 700; font-size: 16px; line-height: 1.25; }
.amen .icon { color: var(--c-blue); }
.courts { grid-area: courts; margin-top: 8px; }
.courts-head { display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.courts-head .h3 { font-size: 40px; }
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.court-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; display: flex; flex-direction: column; }
.court-card img { width: 100%; height: 150px; object-fit: cover; }
.court-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.court-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-input); font: 800 var(--fs-label)/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text); }
.badge.blue { border-color: var(--c-blue); color: var(--c-blue); }
.court-body p { color: var(--text-muted); }
.court-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 6px; }
.price { font: 900 var(--fs-price)/1 var(--font-head); color: var(--text-price); }
.price small { font: 700 15px var(--font-body); color: var(--text-muted); margin-left: 4px; }
.soon-block { grid-area: soon; margin-top: 40px; }
.rules-block { grid-area: rules; margin-top: 40px; }
.soon-block .h3, .rules-block .h3 { margin-bottom: 14px; }
.soon { display: grid; gap: 10px; }
.soon li { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: start; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.soon .ic { width: 44px; height: 44px; display: grid; place-items: center; background: var(--surface-2); border-radius: var(--r-md); color: var(--c-blue); }
.soon h4 { font: 800 17px/1.3 var(--font-body); }
.soon p { color: var(--text-muted); }
.soon .when { font: 900 22px/1 var(--font-head); color: var(--c-red-text); letter-spacing: .04em; }
.rules { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); padding: 8px 20px; counter-reset: r; }
.rules li { padding: 12px 0 12px 40px; position: relative; border-bottom: 1px solid var(--border); color: var(--text-muted); counter-increment: r; }
.rules li:last-child { border-bottom: 0; }
.rules li::before { content: counter(r, decimal-leading-zero); position: absolute; left: 0; top: 11px; font: 900 20px/1.2 var(--font-head); color: var(--c-blue); }
.rules b { color: var(--text); }
.policies { display: grid; gap: 10px; margin-top: 14px; }
.policy { display: grid; grid-template-columns: 24px 1fr; gap: 12px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); }
.policy .icon { color: var(--c-blue); margin-top: 2px; }
.policy p { color: var(--text-muted); }
.policy b { color: var(--text); display: block; }

/* ---------- 3. RATES, OPEN PLAY, GALLERY ---------- */
.rates-grid { display: grid; grid-template-columns: 600px 1fr; gap: 48px; align-items: start; }
.rate-panel { background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--c-red); border-radius: var(--r-md); padding: 28px; }
.rate-list { margin: 20px 0 8px; }
.rate-row { display: flex; align-items: baseline; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.rate-row:last-child { border-bottom: 0; }
.rate-name { font-weight: 700; font-size: 17px; }
.rate-name small { display: block; font-weight: 500; font-size: 16px; color: var(--text-muted); }
.rate-dots { flex: 1; border-bottom: 2px dotted var(--border-input); transform: translateY(-5px); min-width: 20px; }
.rate-price { font: 900 30px/1 var(--font-head); white-space: nowrap; }
.rate-price small { font: 700 14px var(--font-body); color: var(--text-muted); margin-left: 2px; }
.tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 8px; margin-left: 8px; border-radius: var(--r-sm); background: var(--c-red); color: #fff; font: 800 13px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.tag.blue { background: var(--c-blue); color: var(--text-on-blue); }
.pay-head { margin-top: 18px; font-weight: 700; }
.pay-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 22px; }
.pay-list li { display: inline-flex; align-items: center; min-height: 36px; padding: 0 12px; background: var(--surface-2); border-radius: var(--r-sm); font-weight: 700; font-size: 16px; }
.op-card { position: relative; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--c-blue); border-radius: var(--r-md); padding: 26px 28px; overflow: hidden; }
.op-card .h3 { font-size: 44px; margin: 8px 0 12px; }
.op-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 20px; }
.op-facts li { display: flex; gap: 10px; align-items: center; font-weight: 700; }
.op-facts .icon { color: var(--c-blue); }
.op-card p.muted { margin-bottom: 18px; }
.gallery { margin-top: 28px; }
.gallery .h3 { margin-bottom: 14px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile { margin: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
.tile img { width: 100%; height: 150px; object-fit: cover; }
.tile figcaption { padding: 10px 14px; font-weight: 700; font-size: 16px; }

/* ---------- 4. CONTACT (Option 1 · Map + Details) ---------- */
.contact-head { max-width: 860px; margin-bottom: 28px; }
.contact-head .lead { margin-top: 14px; }
.ct-panel { display: grid; grid-template-columns: 1fr 480px; min-height: 540px; background: var(--surface); border: 1px solid var(--border); border-top: 3px solid var(--c-red); border-radius: var(--r-md); overflow: hidden; }
.ct-map { position: relative; min-height: 320px; background: var(--surface-2); }
.ct-map img, .ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.ct-map img { filter: grayscale(.3); }
.ct-det { background: var(--surface-2); padding: 34px 38px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.ct-place { font: 900 72px/.9 var(--font-head); text-transform: uppercase; margin-top: 4px; }
.ct-addr { color: var(--text-muted); font-size: 17px; }
.ct-copy { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; background: none; border: 0; color: var(--text-accent); font: 700 16px var(--font-body); cursor: pointer; }
.ct-copy:hover span { text-decoration: underline; }
.ct-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 4px 0 0; }
.ct-links { display: flex; flex-direction: column; align-items: flex-start; }
.ct-det .btn-ghost { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0; font: 700 16px var(--font-body); text-transform: none; letter-spacing: 0; color: var(--text-accent); text-decoration: none; }
.ct-det .btn-ghost:hover { text-decoration: underline; }
.ct-hours { width: 100%; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border-input); }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; }
.hours dt { color: var(--text-muted); }
.hours dd { margin: 0; font-weight: 700; text-align: right; }
.hours .is-today { color: var(--text); font-weight: 800; }
.today-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 7px; margin-left: 6px; background: var(--c-blue); color: var(--text-on-blue); border-radius: var(--r-sm); font: 800 12px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; vertical-align: 1px; }
.ct-note { color: var(--text-muted); }

/* ---------- footer ---------- */
.site-footer { border-top: 2px solid var(--c-red); background: var(--surface); padding: 40px 0 48px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.foot-grid h2 { font: 800 var(--fs-label)/1.2 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--text-accent); margin-bottom: 10px; }
.foot-grid p, .foot-grid li { color: var(--text-muted); }
.foot-grid a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 700; color: var(--text); }
.foot-grid a:hover { color: var(--c-blue); }
.copy { margin-top: 28px; color: var(--text-muted); font-size: 16px; }

/* ======================= MOBILE ======================= */
@media (max-width: 760px) {
  body { padding-bottom: var(--mcta-h); }
  .hdr-in { gap: 10px; }
  .brand img { width: 40px; height: 40px; }
  .brand-name { font-size: 24px; }
  .brand-sub { display: none; }
  .nav-desktop, .hdr-book { display: none; }
  .hdr-call { display: grid; place-items: center; width: 44px; height: 44px; margin-left: auto; border: 1px solid var(--border-input); border-radius: var(--r-sm); }
  .chips-nav { display: flex; gap: 8px; height: var(--chips-h); align-items: center; padding: 0 16px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--border); }
  .chips-nav::-webkit-scrollbar { display: none; }
  .chips-nav a { flex: 0 0 auto; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border-input); border-radius: var(--r-sm); font: 800 14px/1 var(--font-body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; }
  .chips-nav a[aria-current="true"] { background: var(--c-blue); border-color: var(--c-blue); color: var(--text-on-blue); }
  .m-cta { display: flex; gap: 10px; position: fixed; inset: auto 0 0; z-index: 50; height: var(--mcta-h); padding: 12px 16px; background: var(--bg); border-top: 2px solid var(--c-red); }
  .m-cta .btn { flex: 1; }
  .m-cta .m-call { flex: 0 0 52px; padding: 0; }

  .section { padding: 28px 0 44px; }
  /* hero */
  .hero { margin-top: calc(var(--header-h) + var(--chips-h)); height: auto; min-height: 0; max-height: none; padding-bottom: 32px; }
  .hero-photo, .hero-shade { position: relative; width: 100%; height: 230px; object-position: 30% 30%; }
  .hero-shade { position: absolute; top: 0; height: 230px; background: linear-gradient(0deg, var(--bg) 0%, rgba(12,12,14,0) 50%); }
  .hero-panel { display: none; }
  .hero-stripe { top: 0; bottom: auto; height: 230px; left: auto; right: 40px; width: 36px; }
  .hero-in { height: auto; display: block; margin-top: -14px; }
  .hero-text { width: auto; }
  .display { margin-top: 14px; }
  .hero .lead { margin: 12px 0 0; }
  .hero-ctas { display: none; }
  .stats { margin-top: 20px; }
  .stats > li { padding: 0 14px; }
  .stats span { white-space: nowrap; letter-spacing: .04em; }
  .stats b { font-size: 30px; }
  .scroll-cue { display: none; }
  /* about: prices (courts) before long text */
  .about-grid { display: flex; flex-direction: column; gap: 20px; }
  .about-head { order: 1; }
  .courts { order: 2; margin-top: 0; }
  .about-text { order: 3; }
  .amen-block { order: 4; }
  .soon-block { order: 5; margin-top: 8px; }
  .rules-block { order: 6; margin-top: 8px; }
  .courts-head { display: none; }
  .cards-3 { grid-template-columns: 1fr; gap: 12px; }
  .court-card { display: grid; grid-template-columns: 112px 1fr; }
  .court-card img { height: 100%; min-height: 150px; }
  .court-body { padding: 12px 14px; gap: 6px; }
  .court-body p { display: none; }
  .court-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .court-foot { padding-top: 2px; }
  .court-foot .btn-ghost { display: none; }
  .amen { grid-template-columns: 1fr 1fr; }
  .amen li { flex-direction: row; align-items: center; }
  /* rates */
  .rates-grid { grid-template-columns: 1fr; gap: 20px; }
  .rate-panel { padding: 20px 16px; }
  .rate-list { margin-top: 12px; }
  .rate-name { font-size: 16px; }
  .rate-price { font-size: 26px; }
  .op-card { padding: 20px 16px; }
  .op-card .h3 { font-size: 36px; }
  .op-facts { grid-template-columns: 1fr; }
  .tile img { height: 120px; }
  /* contact: map on top, details below */
  .contact-head { margin-bottom: 16px; }
  .ct-panel { grid-template-columns: 1fr; min-height: 0; }
  .ct-map { min-height: 240px; }
  .ct-map img { object-fit: none; object-position: 50% 50%; }
  .ct-det { padding: 20px 16px 22px; }
  .ct-place { font-size: 52px; }
  .ct-row { flex-direction: column; align-items: stretch; width: 100%; gap: 4px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
}
