/* SABR Fight Club — mat blue, concrete, hazard-tape yellow */
:root {
  --mat: #101a3d;
  --mat-2: #1a2858;
  --concrete: #d8d6d1;
  --concrete-2: #c9c6bf;
  --ink: #0e1120;
  --tape: #f2c230;
  --chalk: #f5f4f1;
  --muted: #5d6170;
  --belt-white: #f5f4f1;
  --belt-blue: #2f55d4;
  --belt-purple: #6b3fa0;
  --belt-brown: #6e4a2f;
  --display: 'Big Shoulders Display', 'Arial Narrow', sans-serif;
  --body: 'Instrument Sans', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { margin: 0; background: var(--concrete); color: var(--ink); font: 400 17px/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: .92; margin: 0; letter-spacing: -.005em; }
h2 { font-size: clamp(44px, 7vw, 104px); }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--tape); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--tape); color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font: 600 16px/1 var(--body); text-decoration: none; border: 2px solid transparent; border-radius: 2px; cursor: pointer; transition: transform .15s ease, background-color .2s ease, color .2s ease; }
.btn:active { transform: translateY(1px); }
.btn-tape { background: var(--tape); color: var(--ink); }
.btn-tape:hover { background: #ffd54d; }
.btn-line { border-color: currentColor; background: transparent; color: inherit; }
.btn-line:hover { background: var(--chalk); color: var(--ink); border-color: var(--chalk); }
.btn-wide { width: 100%; margin-top: 8px; }
.linkish { background: none; border: 0; padding: 8px 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }

/* header */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 14px var(--gutter); color: var(--chalk); transition: background-color .3s ease, padding .3s ease; }
.top.solid { background: rgba(16, 26, 61, .94); backdrop-filter: blur(8px); padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 900 28px/1 var(--display); letter-spacing: .04em; }
.brand svg { width: 34px; height: 34px; color: var(--tape); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 15px; position: relative; }
.nav a:not(.btn)::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--tape); transition: right .25s ease; }
.nav a:not(.btn):hover::after { right: 0; }
.nav-cta { min-height: 42px; padding: 0 18px; font-size: 15px; }
.burger { display: none; width: 46px; height: 46px; background: none; border: 0; color: inherit; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .25s ease, top .25s ease; }
.burger span:first-child { top: 18px; }
.burger span:last-child { top: 27px; }
.burger[aria-expanded="true"] span:first-child { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 22px; transform: rotate(-45deg); }

/* hero */
.hero { position: relative; min-height: 100svh; background: var(--mat); color: var(--chalk); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); overflow: hidden; }
.hero-photo { grid-column: 2; grid-row: 1 / span 2; position: relative; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 30%; }
.hero-photo::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, var(--mat) 0%, rgba(16, 26, 61, 0) 35%); z-index: 1; }
.hero-copy { grid-column: 1; grid-row: 1 / span 2; align-self: end; padding: 120px var(--gutter) 56px; position: relative; z-index: 2; }
.ar { font: 700 clamp(56px, 7vw, 108px)/1 'Noto Kufi Arabic', sans-serif; color: var(--tape); margin-bottom: 8px; }
.hero-title { font-size: clamp(64px, min(10vw, 15vh), 150px); font-weight: 900; text-transform: uppercase; line-height: .84; }
.hero-title span { display: block; }
.lead { max-width: 34em; margin-top: 28px; font-size: clamp(17px, 1.4vw, 20px); color: #cfd3e3; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.next { position: absolute; right: var(--gutter); bottom: 40px; width: min(400px, 40vw); padding: 18px 20px; border-left: 4px solid var(--tape); background: rgba(16, 26, 61, .78); backdrop-filter: blur(10px); z-index: 2; }
.next-k { font-size: 14px; color: var(--tape); font-weight: 600; }
.next-what { font-weight: 600; margin-top: 4px; }
.next-clock { font: 800 clamp(40px, 4.4vw, 60px)/1 var(--display); font-variant-numeric: tabular-nums; margin-top: 8px; letter-spacing: .02em; }
.next-link { display: inline-block; margin-top: 10px; font-size: 15px; font-weight: 600; }

/* hazard tape marquee */
.tape { background: var(--tape); color: var(--ink); overflow: hidden; border-block: 3px solid var(--ink); transform: rotate(-1.2deg); margin: -14px -20px 0; position: relative; z-index: 3; }
.tape-run { display: flex; width: max-content; animation: run 38s linear infinite; }
.tape-run span { font: 900 clamp(22px, 2.6vw, 34px)/1 var(--display); text-transform: uppercase; padding: 14px 28px; white-space: nowrap; }
.tape-run span::after { content: ''; display: inline-block; width: 14px; height: 14px; background: var(--ink); transform: rotate(45deg); margin-left: 56px; vertical-align: middle; }
@keyframes run { to { transform: translateX(-50%); } }

/* sections */
.sec { padding: clamp(80px, 11vw, 150px) var(--gutter); max-width: var(--max); margin: 0 auto; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head p { color: var(--muted); max-width: 36em; }

/* disciplines */
.d-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: 48px; align-items: start; }
.d-list { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ink); }
.d-item { border-bottom: 2px solid var(--ink); }
.d-btn { width: 100%; display: grid; grid-template-columns: 1fr auto; gap: 4px 24px; padding: 22px 0; background: none; border: 0; text-align: left; color: inherit; font: inherit; cursor: pointer; }
.d-name { font: 800 clamp(34px, 4.4vw, 62px)/.95 var(--display); text-transform: uppercase; transition: color .2s ease, transform .3s ease; }
.d-count { align-self: center; font-size: 14px; color: var(--muted); }
.d-text { grid-column: 1 / -1; max-width: 34em; color: var(--muted); max-height: 0; overflow: hidden; transition: max-height .35s ease, margin .35s ease; }
.d-item.on .d-name { color: var(--belt-blue); transform: translateX(10px); }
.d-item.on .d-text { max-height: 140px; margin-top: 8px; }
.d-thumb { display: none; }
.d-view { position: sticky; top: 100px; margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: var(--mat); border-radius: 2px; }
.d-view img { width: 100%; height: 100%; object-fit: cover; transition: opacity .3s ease, transform .6s ease; }
.d-view img.swap { opacity: 0; transform: scale(1.04); }

/* timetable */
.timetable { max-width: none; background: var(--mat); color: var(--chalk); }
.timetable > * { max-width: calc(var(--max) - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
.timetable .sec-head p { color: #b3b9cf; }
.t-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.day { min-width: 58px; min-height: 48px; padding: 6px 12px; background: transparent; color: var(--chalk); border: 2px solid rgba(255, 255, 255, .22); border-radius: 2px; font: 600 15px/1.1 var(--body); cursor: pointer; }
.day small { display: block; font-weight: 400; font-size: 11px; opacity: .7; }
.day[aria-selected="true"] { background: var(--tape); color: var(--ink); border-color: var(--tape); }
.day:hover:not([aria-selected="true"]) { border-color: var(--chalk); }
.t-filter { display: grid; gap: 6px; font-size: 14px; color: #b3b9cf; }
.t-filter select, .field input, .field select { font: 500 16px var(--body); min-height: 50px; padding: 0 14px; border-radius: 2px; }
.t-filter select { background: var(--mat-2); color: var(--chalk); border: 2px solid rgba(255, 255, 255, .22); min-width: 230px; }
.t-list { list-style: none; margin: 0 auto; padding: 0; border-top: 1px solid rgba(255, 255, 255, .2); }
.t-row { display: grid; grid-template-columns: 120px minmax(0, 1.4fr) minmax(0, 1fr) 140px auto; gap: 16px; align-items: center; padding: 18px 0; border-bottom: 1px solid rgba(255, 255, 255, .2); }
.t-row.past { opacity: .45; }
.t-row.live .t-time::after { content: 'On now'; display: inline-block; margin-left: 8px; font: 600 11px/1 var(--body); background: #e5484d; color: #fff; padding: 4px 6px; border-radius: 2px; vertical-align: middle; }
.t-time { font: 800 30px/1 var(--display); font-variant-numeric: tabular-nums; }
.t-time small { display: block; font: 400 13px var(--body); color: #b3b9cf; margin-top: 4px; }
.t-class { font-weight: 600; font-size: 19px; }
.t-coach { color: #b3b9cf; font-size: 15px; }
.t-book { min-height: 42px; padding: 0 16px; font-size: 14px; }
.t-empty { padding: 32px 0; color: #b3b9cf; }
.lvl { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; }
.lvl::before { content: ''; width: 28px; height: 8px; border-radius: 1px; background: var(--belt-white); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); }
.lvl-int::before { background: var(--belt-blue); }
.lvl-adv::before { background: var(--belt-purple); }
.lvl-all::before { background: linear-gradient(90deg, var(--belt-white) 0 25%, var(--belt-blue) 25% 50%, var(--belt-purple) 50% 75%, var(--belt-brown) 75%); }
.belts { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; color: #b3b9cf; }

/* coaches */
.c-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.coach { margin: 0; }
.coach-img { aspect-ratio: 3 / 4; overflow: hidden; background: var(--mat); border-radius: 2px; }
.coach-img img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.08); transition: filter .4s ease, transform .6s ease; }
.coach:hover .coach-img img { filter: none; transform: scale(1.03); }
.coach h3 { font-size: 30px; margin-top: 16px; text-transform: uppercase; }
.coach-role { font-weight: 600; color: var(--belt-blue); font-size: 15px; margin-top: 6px; }
.coach-note { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* membership */
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--ink); }
.plan { padding: 28px 24px 24px; display: flex; flex-direction: column; border-right: 2px solid var(--ink); background: var(--concrete); }
.plan:last-child { border-right: 0; }
.plan.best { background: var(--ink); color: var(--chalk); }
.plan h3 { font-size: 34px; text-transform: uppercase; }
.plan-flag { font-size: 13px; font-weight: 600; color: var(--tape); margin-top: 6px; min-height: 20px; }
.plan-price { font: 900 64px/1 var(--display); margin-top: 18px; font-variant-numeric: tabular-nums; }
.plan-price small { font: 500 15px var(--body); margin-left: 6px; }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; flex: 1; }
.plan li { padding: 8px 0; border-top: 1px solid rgba(128, 128, 128, .35); font-size: 15px; }
.plan .btn { width: 100%; }
.plan:not(.best) .btn-line:hover { background: var(--ink); color: var(--chalk); border-color: var(--ink); }

/* trial form */
.trial { max-width: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ink); color: var(--chalk); }
.trial-photo img { width: 100%; height: 100%; object-fit: cover; min-height: 360px; }
.trial-box { padding: clamp(48px, 7vw, 100px) var(--gutter); max-width: 640px; }
.trial-box h2 { font-size: clamp(44px, 5vw, 72px); }
.trial-sub { color: #b3b9cf; margin: 16px 0 28px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select { width: 100%; background: #1b1f33; color: var(--chalk); border: 2px solid #3a3f58; }
.field input::placeholder { color: #7d8299; }
.field input:focus, .field select:focus { border-color: var(--tape); outline: none; }
.field.bad input, .field.bad select { border-color: #ff6b6b; }
.err { color: #ff8f8f; font-size: 14px; min-height: 0; margin-top: 4px; }
.err:empty { display: none; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #cfd3e3; margin: 6px 0 4px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--tape); flex: none; }
.done h3 { font-size: clamp(40px, 5vw, 64px); text-transform: uppercase; color: var(--tape); }
.done p { margin: 16px 0 24px; color: #cfd3e3; }
.done-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.done:focus { outline: none; }

/* faq */
.q-list { border-top: 2px solid var(--ink); max-width: 900px; }
.q-list details { border-bottom: 2px solid var(--ink); }
.q-list summary { list-style: none; cursor: pointer; padding: 22px 48px 22px 0; font-weight: 600; font-size: 20px; position: relative; }
.q-list summary::-webkit-details-marker { display: none; }
.q-list summary::after { content: ''; position: absolute; right: 8px; top: 50%; width: 18px; height: 18px; margin-top: -9px; background: linear-gradient(var(--ink), var(--ink)) center / 100% 3px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 3px 100% no-repeat; transition: transform .25s ease; }
.q-list details[open] summary::after { transform: rotate(45deg); }
.q-list details p { padding: 0 0 24px; color: var(--muted); max-width: 44em; }

/* visit */
.visit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: 0; }
.v-addr { font-size: 20px; margin: 24px 0; max-width: 22em; }
.hours { margin: 0 0 28px; border-top: 2px solid var(--ink); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--concrete-2); }
.hours dt { font-weight: 600; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.v-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.visit .btn-line:hover { background: var(--ink); color: var(--chalk); border-color: var(--ink); }
.v-photo { aspect-ratio: 1; overflow: hidden; border-radius: 2px; }
.v-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }

/* footer */
.foot { background: var(--mat); color: var(--chalk); padding: 40px var(--gutter) 28px; overflow: hidden; }
.foot-big { font: 900 clamp(120px, 30vw, 460px)/.8 var(--display); color: var(--mat-2); letter-spacing: -.02em; margin-bottom: 28px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 15px; border-top: 1px solid rgba(255, 255, 255, .2); padding-top: 20px; }
.foot-row a { margin-right: 16px; }
.foot-note { font-size: 13px; color: #8a90a8; margin-top: 16px; }
.float-cta { position: fixed; right: 16px; bottom: 16px; z-index: 40; box-shadow: 0 8px 24px rgba(0, 0, 0, .3); transform: translateY(120px); transition: transform .3s ease; display: none; }
.float-cta.show { transform: none; }

/* tablet & mobile */
@media (max-width: 1080px) {
  .t-row { grid-template-columns: 100px minmax(0, 1fr) auto; }
  .t-coach, .t-row .lvl { grid-column: 2; }
  .t-book { grid-column: 3; grid-row: 1 / span 3; }
  .c-grid, .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plan:nth-child(2) { border-right: 0; }
  .plan:nth-child(-n+2) { border-bottom: 2px solid var(--ink); }
}
@media (max-width: 860px) {
  .burger { display: block; z-index: 2; }
  .nav { position: fixed; inset: 0; background: var(--mat); flex-direction: column; align-items: flex-start; justify-content: center; gap: 22px; padding: 80px var(--gutter); opacity: 0; transform: translateY(-12px); transition: opacity .3s ease, transform .3s ease, visibility 0s .3s; visibility: hidden; }
  .nav.open { opacity: 1; transform: none; visibility: visible; transition: opacity .3s ease, transform .3s ease; }
  .nav a:not(.btn) { font: 800 44px/1 var(--display); text-transform: uppercase; }
  .nav-cta { margin-top: 12px; min-height: 52px; font-size: 16px; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-photo { grid-column: 1; grid-row: 1; position: absolute; inset: 0; }
  .hero-photo::before { background: linear-gradient(180deg, rgba(16, 26, 61, .55) 0%, rgba(16, 26, 61, .7) 45%, var(--mat) 85%); }
  .hero-copy { grid-row: 1; padding-top: 120px; }
  .hero-copy { grid-row: 1; }
  .next { position: relative; right: auto; bottom: auto; width: auto; grid-row: 2; margin: 0 var(--gutter) 48px; max-width: 460px; }
  .sec-head, .d-wrap, .visit, .trial { grid-template-columns: 1fr; }
  .d-view { display: none; }
  .d-thumb { display: block; grid-column: 1 / -1; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; border-radius: 2px; max-height: 0; opacity: 0; transition: max-height .35s ease, opacity .35s ease, margin .35s ease; }
  .d-item.on .d-thumb { max-height: 400px; opacity: 1; margin-top: 14px; }
  .trial-photo img { min-height: 240px; max-height: 320px; }
  .float-cta { display: inline-flex; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .t-row { grid-template-columns: 74px minmax(0, 1fr); gap: 6px 14px; }
  .t-time { font-size: 24px; }
  .t-book { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .t-filter, .t-filter select { width: 100%; min-width: 0; }
  .day { min-width: 0; flex: 1 1 calc(25% - 6px); }
  .c-grid { gap: 14px; }
  .coach h3 { font-size: 24px; }
  .coach-note { display: none; }
  .plans { grid-template-columns: 1fr; }
  .plan { border-right: 0; border-bottom: 2px solid var(--ink); }
  .plan:last-child { border-bottom: 0; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
