/* SerliGym: gym website + member portal.
   Palette: graphite (rubber floor), chalk, steel, and the gym's own colour as the "plate" colour.
   One family (Archivo): expanded heavy for headlines, normal width for reading. */
:root {
  --graphite: #23292b;
  --graphite-2: #2f3739;
  --chalk: #f5f6f2;
  --paper: #ffffff;
  --steel: #66717a;
  --line: #dfe3df;
  --ink: #1d2224;
  --ok: #1f8a4c;
  --warn: #b7791f;
  --bad: #c0392b;
  --r: 10px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-stretch: 100%; font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--chalk); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.s-wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.s-ico { width: 18px; height: 18px; flex: none; }
.s-muted { color: var(--steel); }
.s-h1, .s-h2, .s-h3 { font-stretch: 125%; font-weight: 850; letter-spacing: -0.01em; }
.s-h1 { font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: .95; }
.s-h2 { font-size: clamp(1.7rem, 4.2vw, 2.6rem); }
.s-h3 { font-size: 1.15rem; font-stretch: 112%; }
.s-lead { font-size: 1.15rem; max-width: 34em; }

/* Buttons */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 2px solid var(--brand);
  background: var(--brand); color: #fff; font: inherit; font-weight: 700; font-stretch: 110%; text-decoration: none; cursor: pointer; white-space: nowrap; }
.s-btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.s-btn.ghost { background: transparent; color: inherit; border-color: currentColor; }
.s-btn.ghost:hover { background: rgba(255,255,255,.08); }
.s-btn.light { background: #fff; color: var(--graphite); border-color: #fff; }
.s-btn.small { min-height: 38px; padding: 0 16px; font-size: .92rem; }
.s-btn.block { width: 100%; }
.s-btn.danger { background: transparent; color: var(--bad); border-color: #e7c1bc; }
.s-btn[disabled] { opacity: .6; cursor: default; }
.s-link { color: var(--brand); font-weight: 600; text-decoration: none; }
.s-link:hover { text-decoration: underline; }

/* Nav */
.s-nav { position: sticky; top: 0; z-index: 20; background: var(--graphite); color: #fff; }
.s-nav-in { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.s-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-weight: 800; font-stretch: 115%; font-size: 1.08rem; }
.s-logo-img { max-height: 40px; width: auto; }
.s-logo-mark { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 900; box-shadow: inset 0 0 0 5px rgba(255,255,255,.18); }
.s-links { display: flex; align-items: center; gap: 22px; }
.s-links a { text-decoration: none; font-weight: 600; opacity: .85; }
.s-links a:hover, .s-links a.on { opacity: 1; }
.s-links a.s-btn { opacity: 1; }
.s-menu-toggle, .s-burger { display: none; }
@media (max-width: 860px) {
  .s-burger { display: grid; gap: 5px; padding: 10px; cursor: pointer; }
  .s-burger span { display: block; width: 22px; height: 2px; background: #fff; }
  .s-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--graphite); flex-direction: column; align-items: stretch; gap: 0; padding: 6px 20px 18px; }
  .s-links a { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
  .s-links a.s-btn { margin-top: 12px; border-bottom: 0; }
  .s-menu-toggle:checked ~ .s-links { display: flex; }
}

/* Hero */
.s-hero { position: relative; background: var(--graphite); color: #fff; overflow: hidden; }
.s-hero.has-photo { background: #1a1f20 var(--hero) center/cover no-repeat; }
.s-hero.has-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(20,24,25,.92) 0%, rgba(20,24,25,.72) 45%, rgba(20,24,25,.15) 100%); }
.s-hero-in { position: relative; padding: 76px 20px 64px; }
.s-hero .s-h1 { max-width: 11em; }
.s-hero .s-lead { color: rgba(255,255,255,.82); margin-top: 18px; }
.s-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
/* The plate stripe: the gym's colour as a band, like the rim of a bumper plate */
.s-plate { height: 10px; background: repeating-linear-gradient(90deg, var(--brand) 0 64px, var(--brand-dark) 64px 68px); }
.s-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: rgba(255,255,255,.08); border-radius: var(--r); overflow: hidden; margin-top: 44px; max-width: 760px; }
.s-today > div { background: rgba(35,41,43,.86); padding: 14px 16px; display: flex; gap: 10px; align-items: flex-start; }
.s-today strong { display: block; font-stretch: 110%; }
.s-today span { color: rgba(255,255,255,.7); font-size: .93rem; }

/* Sections */
.s-sec { padding: 72px 0; }
.s-sec.paper { background: var(--paper); }
.s-sec-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.s-sec-head p { margin: 8px 0 0; color: var(--steel); max-width: 36em; }

/* Price board: plans read like the board by the front desk */
.s-board { border-top: 3px solid var(--graphite); }
.s-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 200px; gap: 8px 28px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.s-row h3 { font-size: 1.35rem; font-stretch: 118%; font-weight: 800; }
.s-row .s-row-meta { color: var(--steel); font-size: .95rem; }
.s-row .s-row-meta b { color: var(--ink); font-weight: 600; }
.s-price { text-align: right; }
.s-price strong { display: block; font-size: 1.9rem; font-stretch: 120%; font-weight: 850; line-height: 1; }
.s-price small { color: var(--steel); }
.s-price .s-btn { margin-top: 10px; }
@media (max-width: 720px) {
  .s-row { grid-template-columns: 1fr auto; }
  .s-row .s-row-meta { grid-column: 1 / -1; order: 3; }
  .s-price .s-btn { min-height: 34px; padding: 0 14px; }
}

/* Timetable */
.s-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.s-day { background: var(--paper); border-radius: var(--r); padding: 12px; min-height: 120px; border: 1px solid var(--line); }
.s-day.today { border-color: var(--brand); box-shadow: inset 0 3px 0 var(--brand); }
.s-day h3 { font-size: .98rem; font-stretch: 112%; margin-bottom: 10px; }
.s-day h3 span { color: var(--steel); font-weight: 500; font-stretch: 100%; }
.s-cls { display: block; text-decoration: none; padding: 8px 10px; border-radius: 8px; background: var(--chalk); border-left: 4px solid var(--c, var(--brand)); margin-bottom: 8px; font-size: .9rem; line-height: 1.35; }
.s-cls strong { display: block; }
.s-cls small { color: var(--steel); display: block; }
.s-cls.full small.spots { color: var(--bad); }
.s-empty { color: var(--steel); font-size: .9rem; }
@media (max-width: 900px) {
  .s-days { grid-template-columns: 1fr; }
  .s-day { min-height: 0; }
  .s-day .s-cls { display: grid; grid-template-columns: 64px 1fr; gap: 2px 10px; }
  .s-day .s-cls strong { grid-column: 2; }
  .s-day .s-cls .t { grid-row: 1 / span 3; font-weight: 700; color: var(--ink); }
}
.s-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.s-tab { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; font-weight: 600; font-size: .93rem; }
.s-tab.on { background: var(--graphite); color: #fff; border-color: var(--graphite); }

/* Trainers */
.s-coaches { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px 24px; }
.s-coach { display: grid; grid-template-columns: 64px 1fr; gap: 14px; }
.s-coach .s-ini { width: 64px; height: 64px; border-radius: 50%; background: var(--graphite); color: #fff; display: grid; place-items: center; font-weight: 850; font-stretch: 120%; font-size: 1.3rem; box-shadow: inset 0 0 0 6px var(--brand); }
.s-coach h3 { font-size: 1.08rem; font-stretch: 112%; margin: 4px 0 2px; }
.s-coach .spec { color: var(--brand-dark); font-weight: 600; font-size: .92rem; }
.s-coach p { color: var(--steel); font-size: .95rem; margin: 6px 0 0; }

/* Branches */
.s-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 0 40px; }
.s-branch { padding: 22px 0; border-top: 3px solid var(--graphite); }
.s-branch h3 { font-size: 1.3rem; font-stretch: 118%; margin-bottom: 12px; }
.s-branch ul { list-style: none; margin: 0 0 14px; padding: 0; }
.s-branch li { display: flex; gap: 10px; padding: 5px 0; color: var(--ink); }
.s-branch li .s-ico { color: var(--steel); margin-top: 3px; }
.s-branch .acts { display: flex; flex-wrap: wrap; gap: 8px; }

.s-about { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: start; }
.s-about p { font-size: 1.08rem; }
@media (max-width: 760px) { .s-about { grid-template-columns: 1fr; gap: 16px; } }

.s-cta-band { background: var(--brand); color: #fff; padding: 48px 0; }
.s-cta-band .s-wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }

/* Footer */
.s-foot { background: var(--graphite); color: #fff; padding: 44px 0 18px; }
.s-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; }
.s-foot .s-muted { color: rgba(255,255,255,.65); margin-top: 10px; }
.s-foot-links { display: flex; flex-direction: column; gap: 10px; }
.s-foot-links a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; opacity: .88; }
.s-foot-links a:hover { opacity: 1; text-decoration: underline; }
.s-foot-base { display: flex; justify-content: space-between; margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: .85rem; color: rgba(255,255,255,.55); }
.s-foot-base a { color: rgba(255,255,255,.55); text-decoration: none; }

/* Forms */
.s-form { display: grid; gap: 16px; }
.s-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .s-grid2 { grid-template-columns: 1fr; } }
.s-field { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.s-field small { font-weight: 400; color: var(--steel); }
.s-input, .s-field input, .s-field select, .s-field textarea { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid #cdd3cf; border-radius: 10px; background: #fff; font: inherit; font-weight: 400; color: var(--ink); }
.s-field textarea { min-height: 90px; }
.s-input:focus, .s-field input:focus, .s-field select:focus, .s-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.s-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.s-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand); flex: none; }
.s-otp { font-size: 1.8rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.s-hp { position: absolute; left: -9999px; }
.s-choices { display: grid; gap: 10px; }
.s-choice { display: grid; grid-template-columns: 22px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1.5px solid #cdd3cf; border-radius: 12px; background: #fff; cursor: pointer; font-weight: 400; }
.s-choice input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.s-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.s-choice strong { display: block; }
.s-choice small { color: var(--steel); }
.s-choice .amt { font-weight: 800; font-stretch: 115%; white-space: nowrap; }

.s-alert { padding: 12px 16px; border-radius: 10px; margin: 0 0 16px; font-weight: 500; background: #eef2f1; }
.s-alert.success { background: #e6f4ec; color: #145c33; }
.s-alert.error { background: #fbe9e7; color: #8e2a1e; }
.s-alert.info { background: #eaf0f7; color: #234a73; }

.s-page { padding: 44px 0 72px; }
.s-narrow { max-width: 640px; margin: 0 auto; }
.s-panel { background: var(--paper); border-radius: 16px; padding: 28px; border: 1px solid var(--line); }
@media (max-width: 600px) { .s-panel { padding: 20px; } }
.s-center { min-height: 100vh; display: grid; place-items: center; padding: 20px; text-align: center; }
.s-sum { display: grid; gap: 6px; padding: 16px; background: var(--chalk); border-radius: 12px; }
.s-sum div { display: flex; justify-content: space-between; gap: 12px; }
.s-sum .tot { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-weight: 800; font-size: 1.1rem; }
.s-steps { display: flex; gap: 6px; margin-bottom: 18px; }
.s-steps span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); }
.s-steps span.on { background: var(--brand); }

/* ---------- Member portal ---------- */
body.portal { background: var(--chalk); min-height: 100vh; }
.p-top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; padding-top: max(12px, env(safe-area-inset-top)); background: var(--graphite); color: #fff; }
.p-top .s-logo { font-size: 1rem; }
.p-top .s-logo-mark { width: 32px; height: 32px; }
.p-me { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.14); display: grid; place-items: center; text-decoration: none; font-weight: 700; font-size: .85rem; }
.p-main { max-width: 560px; margin: 0 auto; padding: 18px 16px 110px; }
.p-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; justify-content: center; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.p-tabs a { flex: 1; max-width: 120px; display: grid; justify-items: center; gap: 2px; padding: 9px 0 8px; text-decoration: none; color: var(--steel); font-size: .74rem; font-weight: 600; }
.p-tabs a .s-ico { width: 22px; height: 22px; }
.p-tabs a.on { color: var(--brand); }
.p-hello { font-size: 1.5rem; font-stretch: 118%; font-weight: 850; margin: 4px 0 14px; }
.p-card { background: var(--paper); border-radius: 16px; padding: 18px; border: 1px solid var(--line); margin-bottom: 14px; }
.p-card h2 { font-size: 1.05rem; font-stretch: 112%; font-weight: 800; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.p-card h2 a { font-size: .85rem; font-weight: 600; font-stretch: 100%; color: var(--brand); text-decoration: none; }
/* Membership pass: the hero of the portal */
.p-pass { position: relative; border-radius: 18px; padding: 20px; color: #fff; background: var(--graphite); overflow: hidden; margin-bottom: 14px; }
.p-pass::after { content: ""; position: absolute; right: -95px; top: -95px; width: 190px; height: 190px; border-radius: 50%; border: 22px solid var(--brand); opacity: .9; box-shadow: 0 0 0 10px var(--graphite), 0 0 0 14px var(--brand-dark); }
.p-pass > * { position: relative; z-index: 1; }
.p-pass .plan { font-size: 1.45rem; font-stretch: 120%; font-weight: 850; line-height: 1.05; max-width: 70%; }
.p-pass .state { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: rgba(255,255,255,.14); }
.p-pass .state.ok { background: var(--ok); }
.p-pass .state.warn { background: var(--warn); }
.p-pass .state.bad { background: var(--bad); }
.p-pass .facts { display: flex; gap: 22px; margin-top: 18px; flex-wrap: wrap; }
.p-pass .facts b { display: block; font-size: 1.15rem; font-stretch: 110%; }
.p-pass .facts span { font-size: .8rem; color: rgba(255,255,255,.65); }
.p-bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.15); margin-top: 16px; overflow: hidden; }
.p-bar i { display: block; height: 100%; background: var(--brand); }
.p-pass .acts { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.p-list { list-style: none; margin: 0; padding: 0; }
.p-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.p-list li:first-child { border-top: 0; padding-top: 2px; }
.p-list small { color: var(--steel); display: block; }
.p-pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: #eef2f1; color: var(--steel); white-space: nowrap; }
.p-pill.ok { background: #e6f4ec; color: #145c33; }
.p-pill.warn { background: #fdf3e1; color: #8a5a12; }
.p-pill.bad { background: #fbe9e7; color: #8e2a1e; }
.p-owe { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.p-owe b { font-size: 1.4rem; font-stretch: 115%; }
.p-qr { background: #fff; border-radius: 20px; padding: 22px; text-align: center; border: 1px solid var(--line); }
.p-qr #qr { width: min(72vw, 300px); margin: 6px auto 14px; }
.p-qr #qr svg { width: 100%; height: auto; display: block; }
.p-qr .code { font-size: 1.6rem; font-stretch: 120%; font-weight: 850; letter-spacing: .04em; }
.p-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; background: var(--chalk); display: grid; place-items: center; font-weight: 800; font-size: 1.4rem; }
.p-day { font-size: .9rem; font-weight: 700; color: var(--steel); margin: 18px 0 8px; }
.p-cls { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; background: var(--paper); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--brand)); border-radius: 12px; padding: 12px; margin-bottom: 8px; }
.p-cls .t { font-weight: 800; font-stretch: 110%; }
.p-cls small { color: var(--steel); display: block; font-size: .82rem; }
.p-cls form { margin: 0; }
.p-switch { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 6px; }
.p-switch a { flex: none; }
.p-kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: .95rem; }
.p-kv dt { color: var(--steel); }
.p-kv dd { margin: 0; }
.p-login { max-width: 420px; margin: 4vh auto 0; }
.p-login .s-h2 { margin-bottom: 8px; }
@media (min-width: 700px) { .p-main { padding-top: 28px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print { .s-nav, .p-tabs, .p-top, .s-foot { display: none; } }
.s-cls .t { display: block; font-weight: 700; }
/* Without a photo, a bumper plate in the gym's colour fills the right of the hero. */
.s-hero:not(.has-photo)::after { content: ""; position: absolute; right: -140px; top: 50%; width: 560px; height: 560px; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, var(--graphite) 0 9%, var(--brand) 9% 14%, var(--graphite) 14% 33%, var(--brand) 33% 36%, var(--graphite-2) 36% 64%, var(--brand) 64% 100%);
  opacity: .9; pointer-events: none; }
.s-hero:not(.has-photo) .s-hero-in { z-index: 1; }
@media (max-width: 860px) { .s-hero:not(.has-photo)::after { width: 340px; height: 340px; right: -170px; top: 120px; transform: none; opacity: .45; } }
