/* Racket.Circle — classic club theme: cream paper, ink type, Baskerville headings, Inter text, mono labels */
:root {
  --paper: #fffee9;
  --ink: #2d2e2a;
  --ink-soft: rgba(45, 46, 42, .72);
  --line: rgba(45, 46, 42, .9);
  --danger: #a3261e;
  --ok: #2f6b3a;
  --serif: 'Libre Baskerville', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --script: 'Pinyon Script', 'Snell Roundhand', cursive;
  --gutter: clamp(16px, 2vw, 28px);
  /* Wix motion curves (measured from the template) */
  --ease-fade: cubic-bezier(.25, .46, .45, .94);
  --ease-fold: cubic-bezier(.175, .885, .32, 1.275);
  --ease-img: cubic-bezier(.445, .05, .55, .95);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.modal-open { overflow: hidden; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15.75px; line-height: 1.35; -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip; }
/* Each section keeps its own animations inside the screen (FAQ cards turning in, the sliding racket).
   Done per section because older iPhones ignore overflow on <body>, which left empty space on the right. */
main > section, .site-header, .site-footer { overflow-x: hidden; overflow-x: clip; max-width: 100%; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; font-weight: 400; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.center { text-align: center; }

/* ---------- Type ---------- */
.h-xxl { font-family: var(--serif); font-size: clamp(2.6rem, 5vw, 4.5rem); line-height: .95; }
.h-xl { font-family: var(--serif); font-size: clamp(2.2rem, 3.75vw, 3.375rem); line-height: 1; }
.h-l { font-family: var(--serif); font-size: clamp(1.9rem, 2.8vw, 2.53rem); line-height: 1; }
.h-m { font-family: var(--serif); font-size: clamp(1.45rem, 1.9vw, 1.69rem); line-height: 1.1; }
.h-quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.15rem, 1.56vw, 1.41rem); line-height: 1.1; }
.mono { font-family: var(--mono); font-size: .98rem; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.caps { text-transform: uppercase; }
.lead { max-width: 21rem; margin: 0 auto; }
.mono-link { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; display: inline-block; }
.mono-link:hover { text-decoration-thickness: 2px; }

.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: .6rem 2.4rem; border: 1px solid var(--ink); border-radius: 999px; background: transparent; color: var(--ink); text-decoration: none; text-transform: uppercase; font-size: 15.75px; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.pill:hover { background: var(--ink); color: var(--paper); }
.pill.small { text-transform: none; font-size: 14px; min-height: 50px; width: min(296px, 70%); }

/* ---------- Crest (brand mark) ---------- */
.crest { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 4vw, 3.5rem); text-decoration: none; color: var(--ink); }
.crest-text { display: grid; justify-items: center; line-height: 1; }
.crest-small { font-family: var(--serif); font-size: clamp(1.3rem, 2.4vw, 2.2rem); }
.crest-name { font-family: var(--serif); font-size: clamp(2.2rem, 5.4vw, 5rem); text-transform: uppercase; letter-spacing: -.01em; margin-top: .15em; }
.crest-script { font-family: var(--script); font-size: clamp(3rem, 7.4vw, 6.8rem); line-height: .75; margin: -.12em 0 .05em; }

/* Line-drawn racket (plain CSS shapes) */
.racket { position: relative; display: inline-block; width: 100px; height: 210px; }
.racket i { position: absolute; display: block; border-color: var(--ink); }
.racket .head { left: 0; top: 0; width: 100px; height: 128px; border: 4px solid var(--ink); border-radius: 50%;
  background:
    repeating-linear-gradient(0deg, transparent 0 11px, var(--ink) 11px 12.5px),
    repeating-linear-gradient(90deg, transparent 0 11px, var(--ink) 11px 12.5px);
  background-clip: padding-box; }
.racket .shaft { left: 48px; top: 126px; width: 4px; height: 44px; background: var(--ink); }
.racket .grip { left: 44px; top: 166px; width: 12px; height: 44px; border: 3px solid var(--ink); border-radius: 3px 3px 5px 5px; }
.racket-crest { flex: none; margin: -40px -20px; transform: rotate(var(--r)) scale(.62); }
.racket-crest.left { --r: 55deg; }
.racket-crest.right { --r: -55deg; }
.racket-big { width: 150px; height: 315px; }
.racket-big .head { width: 150px; height: 192px; border-width: 6px; background:
    repeating-linear-gradient(0deg, transparent 0 22px, var(--ink) 22px 26px),
    repeating-linear-gradient(90deg, transparent 0 22px, var(--ink) 22px 26px); background-clip: padding-box; }
.racket-big .shaft { left: 72px; top: 189px; width: 6px; height: 66px; }
.racket-big .grip { left: 65px; top: 249px; width: 20px; height: 66px; border-width: 5px; }
.ring { display: block; width: 46px; height: 46px; border: 6px solid var(--ink); border-radius: 50%; }

/* ---------- Header (not sticky, as in the template) ---------- */
.site-header { padding: 56px var(--gutter) 0; position: relative; }
.nav-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 26px; }
.nav-side { justify-self: start; padding-left: 26px; text-decoration: none; }
.nav-side:hover { text-decoration: underline; text-underline-offset: 3px; }
.nav-row .pill { justify-self: end; padding: .6rem 2.6rem; }
.nav-links { display: flex; gap: 1.45rem; text-transform: uppercase; }
.nav-links a { text-decoration: none; }
.nav-links a:hover, .nav-links a.active { text-decoration: underline; text-underline-offset: 3px; }
.only-menu { display: none; }
.menu-btn { display: none; }

/* ---------- Hero ---------- */
.hero { text-align: center; padding: 78px var(--gutter) 78px; display: grid; justify-items: center; gap: 0; }
.hero .h-xl { margin-bottom: 44px; }
.hero .lead { margin-bottom: 56px; }

/* ---------- Way: full-width photo with slow parallax ---------- */
.way { position: relative; overflow: hidden; min-height: 973px; color: var(--paper); isolation: isolate; }
.way-media { position: absolute; left: 0; right: 0; top: -20svh; bottom: -20%; z-index: -1; background: #444 var(--img) center / cover no-repeat; will-change: transform; }
.way-media::after { content: ''; position: absolute; inset: 0; background: rgba(28, 30, 26, .5); }
.way-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; padding: 108px 15% 0; }
.way .h-l { max-width: 12ch; }
.way p { max-width: 30rem; }
.on-dark { color: var(--paper); }

/* ---------- Section headings ---------- */
.sec-head { text-align: center; display: grid; justify-items: center; gap: 36px; padding: 0 var(--gutter); }
.sec-head p { max-width: 22rem; }

/* ---------- Session cards ---------- */
.sessions { padding: 135px 0 110px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; padding: 96px 17px 0; }
.card { border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; text-align: center; background: var(--paper); }
.card.skeleton { min-height: 560px; border-color: rgba(45, 46, 42, .2); background: linear-gradient(90deg, transparent, rgba(45, 46, 42, .05), transparent) 0 0 / 200% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.card-img { width: 100%; height: 150px; object-fit: cover; border-bottom: 1px solid var(--line); }
.card-body { display: grid; justify-items: center; align-content: start; gap: 0; padding: 22px 22px 20px; }
.card-title { font-size: 18px; line-height: 1.5; }
.card-when { font-size: 14px; margin-top: 2px; color: var(--ink-soft); }
.price { display: flex; align-items: flex-start; justify-content: center; font-family: var(--serif); margin-top: 10px; }
.price sup { font-size: 18px; line-height: 1; margin-top: 10px; margin-right: 4px; }
.price b { font-weight: 400; font-size: 64px; line-height: 1.2; }
.price-sub { font-size: 12px; line-height: 1; }
.card-desc { font-size: 14px; line-height: 1.4; margin-top: 18px; max-width: 26rem; }
.card-desc a { text-underline-offset: 2px; }
.tiers { display: flex; flex-wrap: wrap; justify-content: center; gap: .25rem .9rem; margin-top: 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.tiers .current { text-decoration: underline; text-underline-offset: 3px; }
.tiers .sold, .tiers .closed { text-decoration: line-through; opacity: .5; }
.card .pill.small { margin: 40px auto 0; }
.share-link { margin-top: 14px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; color: var(--ink-soft); }
.share-link:hover { color: var(--ink); }
.share-link::after { content: ' ↗'; }
.card.is-full .price b { opacity: .45; }
.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; border: 1px solid var(--line); display: grid; gap: .6rem; }

/* ---------- How it works: alternating rows ---------- */
.how { padding: 120px 0 0; }
.how .sec-head { margin-bottom: 96px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0 29px 0 29px; margin-bottom: 22px; align-items: start; }
.row img { width: 100%; aspect-ratio: 693 / 824; object-fit: cover; }
.row-text { display: grid; gap: 22px; max-width: 31rem; padding-top: 22px; }
.row-text p:last-child { margin-top: 4px; }
.row.flip img { order: 2; }
.row.flip .row-text { order: 1; }

/* ---------- FAQ: cards turn in from the right ---------- */
.faq { padding: 140px 0 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 80px 23px 0; align-items: stretch; }
.faq-img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; }
.faq-cards { display: grid; gap: 23px; }
.turn-wrap { position: relative; }
.faq-card { border: 1px solid var(--line); padding: 36px 28px 40px; background: var(--paper); display: grid; gap: 28px; min-height: 214px; align-content: start; }
.faq-card h3 { font-family: var(--serif); font-style: italic; font-size: 22.5px; line-height: 1.1; }
.faq-card p { max-width: 26rem; }
.turn, .pan-in, .pan-out { will-change: transform; }

/* ---------- Check booking ---------- */
.check { padding: 150px 0 0; }
.line-form { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1.5rem 2rem; margin: 56px auto 0; padding: 0 var(--gutter); max-width: 900px; }
.line-form label { display: grid; gap: .4rem; flex: 1 1 220px; }
.line-form .mono { font-size: 12px; }
.line-form input { background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: .55rem 0; font-size: 1rem; outline: none; }
.line-form input:focus { border-bottom-width: 2px; }
.line-form input::placeholder { color: rgba(45, 46, 42, .4); }
#lookupResult { max-width: 560px; margin: 2rem auto 0; padding: 0 var(--gutter); }
.lookup-card { border: 1px solid var(--line); padding: 28px; display: grid; gap: .5rem; justify-items: start; }
.lookup-card h3 { font-family: var(--serif); font-size: 1.6rem; }

/* ---------- CTA ---------- */
.cta { position: relative; min-height: 680px; padding: 220px 0 0 13.2%; }
.cta-text { display: grid; justify-items: start; gap: 0; }
.cta .h-xxl { margin-bottom: 48px; }
.cta p { max-width: 17rem; margin-bottom: 36px; }
.cta .pill { text-transform: none; padding: .6rem 2.3rem; }
.pan-wrap { position: absolute; }
.ring-wrap { left: 78.4%; top: 250px; }
.racket-wrap { right: 9.6%; top: 225px; }
.racket-wrap .racket { transform-origin: 50% 50%; }

/* ---------- Footer ---------- */
.site-footer { padding: 220px var(--gutter) 40px; display: grid; justify-items: center; }
.site-footer .crest-name { font-size: clamp(2rem, 4.3vw, 3.9rem); }
.site-footer .crest-script { font-size: clamp(2.6rem, 5.9vw, 5.4rem); }
.site-footer .crest-small { font-size: clamp(1.2rem, 1.9vw, 1.75rem); }
.foot-nav { margin-top: 80px; }
.foot-cols { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 90px; text-align: center; }
.foot-cols > div { display: grid; gap: .55rem; justify-items: center; align-content: start; }
.foot-cols a { text-decoration: none; }
.foot-cols a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot-fine { margin-top: 100px; font-size: 15.75px; }

/* ---------- Status labels ---------- */
.status { display: inline-block; font-family: var(--mono); text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; padding: .3rem .7rem; border: 1px solid currentColor; border-radius: 999px; }
.status.confirmed { color: var(--ok); }
.status.pending_verification, .status.awaiting_payment { color: #8a5a12; }
.status.cancelled, .status.expired, .status.late_payment { color: var(--danger); }
.form-error { color: var(--danger); font-size: .92rem; margin-top: 1rem; }
.form-error:empty { display: none; }

/* ---------- Booking dialog ---------- */
.dialog { width: min(560px, calc(100% - 24px)); max-height: calc(100svh - 24px); border: 1px solid var(--ink); padding: 0; background: var(--paper); color: var(--ink); border-radius: 0; overflow: auto; overscroll-behavior: contain; }
.dialog::backdrop { background: rgba(45, 46, 42, .55); }
.dialog[open] { animation: dlgIn .5s var(--ease-fade) both; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(16px); } }
.dialog-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); font-size: 1.3rem; line-height: 1; cursor: pointer; z-index: 2; }
.dialog-session { padding: 1.6rem 1.6rem 1.2rem; border-bottom: 1px solid var(--ink); display: grid; gap: .45rem; }
.dialog-session strong { font-family: var(--serif); font-weight: 400; font-size: 1.7rem; line-height: 1.05; padding-right: 2.6rem; }
.dialog-session span { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.step { padding: 1.6rem; display: grid; gap: 1rem; }
.dlg-title { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; padding-right: 2.6rem; }
.step label { display: grid; gap: .4rem; }
.step .mono { font-size: 11.5px; }
.step input, .step select, .step textarea { width: 100%; background: #fff; border: 1px solid rgba(45, 46, 42, .45); border-radius: 0; padding: .7rem .75rem; font-size: 1rem; }
.step input:focus, .step select:focus, .step textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.hint { font-size: .92rem; }
.fine { font-size: .82rem; color: var(--ink-soft); }
.break { word-break: break-all; }
.btn { display: inline-flex; justify-content: center; align-items: center; width: 100%; min-height: 50px; padding: .8rem 1rem; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 999px; text-decoration: none; font-size: .98rem; cursor: pointer; transition: background-color .3s ease, color .3s ease; }
.btn:hover { background: transparent; color: var(--ink); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-line { background: transparent; color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--paper); }
.link { background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; font-size: inherit; }
.upi-box { display: grid; grid-template-columns: 200px 1fr; gap: 1.2rem; align-items: start; }
.upi-box img { width: 200px; height: 200px; background: #fff; border: 1px solid rgba(45, 46, 42, .3); }
.upi-actions { display: grid; gap: .7rem; }
.alt-qr { border: 1px solid rgba(45, 46, 42, .35); padding: .8rem 1rem; }
.alt-qr summary { cursor: pointer; font-family: var(--mono); text-transform: uppercase; font-size: .78rem; letter-spacing: .05em; }
.alt-qr-body { display: grid; gap: .8rem; margin-top: .8rem; }
.alt-qr-body img { max-width: 260px; margin: 0 auto; }
#holdNote.urgent { color: var(--danger); }
.done { text-align: center; justify-items: center; }
.done-icon { width: 64px; height: 64px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-family: var(--serif); font-size: 1.9rem; }
.done-icon.ok { color: var(--ok); }
.done-icon.wait { color: #8a5a12; }
.ref-box { display: grid; gap: .3rem; border: 1px dashed var(--ink); padding: .9rem 1.4rem; }
.ref-box strong { font-family: var(--mono); font-size: 1.35rem; letter-spacing: .06em; }

/* ---------- Template animations ---------- */
/* Entrance: fade + fold down from the top edge in 3D (Wix "fold in", 1.2s) */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes foldIn {
  from { transform: translateY(-50%) perspective(800px) rotateX(-90deg) translateY(50%); }
  to { transform: translateY(-50%) perspective(800px) rotateX(0deg) translateY(50%); }
}
html.js [data-anim] { opacity: 0; }
html.js [data-anim].in { opacity: 1; }
html.js [data-anim="fold"].in { animation: fadeIn 1.2s var(--ease-fade) backwards, foldIn 1.2s var(--ease-fold) backwards; }
html.js [data-anim="fade"].in { animation: fadeIn 1.2s var(--ease-img) backwards; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .site-header { padding-top: 76px; display: grid; justify-items: center; }
  .menu-btn { display: grid; gap: 5px; position: absolute; top: 30px; left: 50%; transform: translateX(-50%); background: none; border: 0; padding: 8px; cursor: pointer; }
  .menu-btn span { display: block; width: 20px; height: 1.5px; background: var(--ink); }
  .nav-row { grid-template-columns: 1fr; justify-items: center; margin-top: 26px; }
  .nav-side { display: none; }
  .nav-row .pill { justify-self: center; text-transform: uppercase; padding: .6rem 2.2rem; }
  .nav-links#navLinks { display: none; position: absolute; top: 70px; left: var(--gutter); right: var(--gutter); z-index: 30; flex-direction: column; align-items: center; gap: 1rem; padding: 1.6rem; background: var(--paper); border: 1px solid var(--ink); }
  .nav-links#navLinks.open { display: flex; }
  .only-menu { display: inline; }
  .crest { gap: 2px; }
  .crest-name, .site-footer .crest-name { font-size: 6.4vw; }
  .crest-script, .site-footer .crest-script { font-size: 10.5vw; }
  .crest-small, .site-footer .crest-small { font-size: 5vw; }
  .racket-crest { transform: rotate(var(--r)) scale(.26); margin: -78px -30px; }
  .hero { padding: 90px var(--gutter) 60px; }
  .hero .h-xl { margin-bottom: 22px; }
  .hero .lead { margin-bottom: 30px; max-width: 22rem; }
  /* One spacing rhythm on phones: 16px sides, ~72px between sections, 16px heading-to-subtitle */
  .sec-head { gap: 16px; padding: 0 16px; }
  .way { min-height: 560px; }
  .way-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; padding: 56px 16px 56px; gap: 16px; }
  .sessions { padding: 72px 0 0; }
  .cards { grid-template-columns: 1fr; gap: 16px; padding: 40px 16px 0; max-width: 520px; margin: 0 auto; }
  .card-body { padding: 20px 16px 20px; }
  .card .pill.small { margin-top: 24px; }
  .how { padding-top: 72px; }
  .how .sec-head { margin-bottom: 40px; }
  .row { grid-template-columns: 1fr; gap: 16px; padding: 0 16px; margin-bottom: 40px; }
  .row:last-of-type { margin-bottom: 0; }
  .row.flip img, .row.flip .row-text { order: 0; }
  .row img { aspect-ratio: 4 / 5; }
  .row-text { padding-top: 0; gap: 12px; }
  .faq { padding-top: 72px; }
  .faq-grid { grid-template-columns: 1fr; gap: 16px; padding: 40px 16px 0; }
  .faq-img { min-height: 0; aspect-ratio: 4 / 3; height: auto; }
  .faq-cards { gap: 16px; }
  .faq-card { min-height: 0; padding: 24px 20px 26px; gap: 14px; }
  .check { padding-top: 72px; }
  .line-form { margin-top: 32px; padding: 0 16px; gap: 1.25rem; }
  .line-form label { flex: 1 1 100%; min-width: 0; }
  .line-form input { min-width: 0; width: 100%; }
  .line-form .pill { width: 100%; }
  .cta { padding: 88px 16px 0; min-height: 600px; text-align: center; }
  .cta-text { justify-items: center; }
  .cta .h-xxl { margin-bottom: 16px; }
  .cta p { margin-bottom: 24px; max-width: 22rem; }
  .ring-wrap { left: 22%; top: 400px; }
  .racket-wrap { right: -12px; top: 330px; transform: scale(.8); transform-origin: top right; }
  .site-footer { padding: 72px 16px 32px; }
  .foot-nav { flex-wrap: wrap; justify-content: center; gap: .6rem 1.2rem; margin-top: 36px; }
  .foot-cols { grid-template-columns: 1fr; gap: 1.4rem; margin-top: 40px; }
  .foot-fine { margin-top: 40px; text-align: center; font-size: 13px; }
}
@media (max-width: 560px) {
  .grid2 { grid-template-columns: 1fr; }
  .upi-box { grid-template-columns: 1fr; justify-items: center; }
  .price b { font-size: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-anim] { opacity: 1; animation: none !important; }
  .card.skeleton { animation: none; }
}
