/* SyntekGym styles. Colors live in the :root block so a gym can be re-themed quickly. */
:root {
  --ink: #15171A;
  --ink-2: #0D0E10;
  --panel: #1E2125;
  --panel-2: #24272C;
  --line: #2A2D32;
  --line-2: #3A3D43;
  --bone: #F5F2EB;
  --muted: #B9B4AA;
  --muted-2: #8A8D93;
  --soft: #D6D1C7;
  --accent: #C23B22;           /* overridden per gym in the layout */
  --accent-text: #EE6A4F;      /* accent-colored text on dark backgrounds */
  --ok: #3FA66B;
  --warn: #E0A43A;
  --paper: #FFFFFF;
  --paper-line: #E2DDD2;
  --paper-text: #1A1A1A;
  --paper-muted: #4A4740;
  --dark-accent: #9E2F1A;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', 'Segoe UI', sans-serif;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 17px; line-height: 1.55; }
img { max-width: 100%; }
a { color: var(--accent-text); }
a:hover { color: #FF8A70; }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
.ic { flex: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.section { padding: 88px 0; }
.section-tight { padding: 56px 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-lg { display: flex; flex-direction: column; gap: 40px; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-sm { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.center { text-align: center; }
.hide { display: none !important; }

.kicker { font-family: var(--display); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 15px; color: var(--accent-text); }
.h1 { font-family: var(--display); font-weight: 800; font-size: clamp(56px, 8vw, 104px); line-height: .92; text-transform: uppercase; letter-spacing: .01em; }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 52px); line-height: 1; text-transform: uppercase; }
.h3 { font-family: var(--display); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1.1; }
.lead { font-size: 20px; color: var(--soft); max-width: 600px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 12px 22px; border-radius: 4px; border: 2px solid transparent; font-family: var(--body); font-weight: 700; font-size: 16px; text-decoration: none; cursor: pointer; line-height: 1.1; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.1); }
.btn-ghost { border-color: var(--bone); color: var(--bone); background: transparent; }
.btn-ghost:hover { color: var(--bone); background: rgba(245,242,235,.08); }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { color: var(--ink); filter: brightness(.95); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; filter: brightness(1.3); }
.btn-danger { background: transparent; border-color: #A33; color: #F28B82; }
.btn-danger:hover { color: #fff; background: #A33; }
.btn-ok { background: var(--ok); color: #0B1A10; }
.btn-ok:hover { color: #0B1A10; filter: brightness(1.1); }
.btn-lg { min-height: 52px; padding: 15px 28px; font-size: 18px; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* Demo + flash */
.demo-banner { background: #E0A43A; color: #1A1408; text-align: center; font-size: 14px; font-weight: 600; padding: 6px 12px; }
.flash { padding: 14px 18px; border-radius: var(--radius); margin: 16px 0; font-weight: 600; border: 1px solid; }
.flash-success { background: #12301F; border-color: #2B6B45; color: #BFF0D2; }
.flash-error { background: #3A1512; border-color: #7A2A22; color: #FFC9C0; }
.flash-info { background: #172333; border-color: #2D4A6B; color: #C8DDF5; }

/* Header */
.utility { background: var(--ink-2); border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.utility .wrap { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; padding-top: 9px; padding-bottom: 9px; }
.utility a { color: var(--bone); text-decoration: none; }
.utility a:hover { color: var(--accent-text); }
.site-nav { position: sticky; top: 0; z-index: 20; background: var(--ink); border-bottom: 1px solid var(--line); }
.site-nav .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--bone); text-decoration: none; }
.brand:hover { color: var(--bone); }
.brand-mark { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; line-height: 1; }
.brand-sub { font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px 24px; font-weight: 600; }
.nav-links a { color: var(--bone); text-decoration: none; }
.nav-links a:hover { color: var(--accent-text); }

/* Placeholders for photos */
.ph { background: repeating-linear-gradient(135deg, var(--panel) 0 14px, var(--panel-2) 14px 28px); border: 1px solid var(--line); border-radius: var(--radius); display: flex; align-items: flex-end; padding: 14px; color: var(--muted-2); font-size: 13px; }
.ph-light { background: repeating-linear-gradient(135deg, #ECE7DC 0 12px, #E4DED1 12px 24px); border: 0; color: #55524C; }

/* Hero */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding: 72px 0; }
.hero-copy { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero-media { flex: 1 1 400px; min-width: 0; aspect-ratio: 4 / 5; max-height: 580px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 32px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; }
.facts strong { color: var(--bone); }

/* Light (paper) sections */
.paper { background: var(--bone); color: var(--paper-text); }
.paper .kicker { color: var(--dark-accent); }
.paper .muted { color: var(--paper-muted); }
.paper a { color: var(--dark-accent); }
.paper a:hover { color: #6E1F10; }
.paper-card { background: var(--paper); border: 1px solid var(--paper-line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.step-num { font-family: var(--display); font-weight: 800; font-size: 44px; line-height: 1; color: var(--dark-accent); }

/* Cards (dark) */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card-flush { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.card-flush .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-title { font-family: var(--display); font-weight: 700; font-size: 24px; text-transform: uppercase; }
.dark-band { background: var(--ink-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Schedule */
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { min-height: 44px; padding: 9px 20px; border-radius: 999px; border: 2px solid var(--line-2); background: transparent; color: var(--bone); font-family: var(--body); font-weight: 700; font-size: 15px; cursor: pointer; }
.pill[aria-pressed="true"] { background: var(--bone); border-color: var(--bone); color: var(--ink); }
.day-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 180px; }
.day-name { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.slot { background: var(--ink); border-radius: 4px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.slot-time { font-size: 13px; color: var(--muted); font-weight: 600; }
.slot-name { font-weight: 700; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--accent-text); }
.empty-note { color: var(--muted-2); font-size: 14px; }

/* Booking list */
.day-block { display: flex; flex-direction: column; gap: 10px; }
.day-head { font-family: var(--display); font-weight: 800; font-size: 26px; text-transform: uppercase; display: flex; gap: 12px; align-items: baseline; }
.class-row { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.class-row.cancelled { opacity: .6; }
.class-info { display: flex; flex-direction: column; gap: 2px; min-width: 220px; }
.class-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.spots { font-size: 14px; color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--panel-2); color: var(--soft); border: 1px solid var(--line-2); }
.badge-ok { background: #12301F; border-color: #2B6B45; color: #9BE5BA; }
.badge-warn { background: #3A2A0E; border-color: #7A5A1E; color: #F5CF86; }
.badge-bad { background: #3A1512; border-color: #7A2A22; color: #FFB4A8; }
.badge-accent { background: var(--accent); border-color: var(--accent); color: #fff; }

/* Pricing */
.price-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.price-card.featured { border: 2px solid var(--accent); }
.price-flag { position: absolute; top: -13px; left: 24px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 10px; border-radius: 3px; }
.price { font-family: var(--display); font-weight: 800; font-size: 56px; line-height: 1; }
.price-row { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.price-sm { font-family: var(--display); font-weight: 800; font-size: 30px; white-space: nowrap; }
.price-card .btn { margin-top: auto; }

/* Coaches */
.belt-bar { width: 36px; height: 10px; border-radius: 2px; display: inline-block; border: 1px solid rgba(0,0,0,.15); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 22px 0; font-weight: 700; font-size: 19px; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq .answer { padding: 0 40px 22px 0; color: var(--soft); white-space: pre-line; }
.faq { border-top: 1px solid var(--line); }

.cta-band { background: var(--accent); }
.cta-band .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding-top: 60px; padding-bottom: 60px; }
.cta-band h2 { color: #fff; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 5vw, 60px); line-height: .95; text-transform: uppercase; }

.contact-line { display: flex; gap: 14px; align-items: flex-start; }
.contact-line .ic { color: var(--accent-text); margin-top: 2px; }
.social { width: 48px; height: 48px; border: 2px solid var(--line-2); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--bone); }
.social:hover { color: var(--bone); background: rgba(245,242,235,.08); }

.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; align-items: center; padding-top: 28px; padding-bottom: 28px; }
.site-footer a { color: var(--bone); text-decoration: none; }

/* Forms */
.form { display: flex; flex-direction: column; gap: 18px; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
label.field .hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], input[type=time], input[type=number], input[type=search], input[type=url], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border-radius: 4px; border: 1px solid var(--line-2); background: var(--ink-2); color: var(--bone); font-family: var(--body); font-size: 16px;
}
input[type=color] { width: 60px; height: 44px; border: 1px solid var(--line-2); background: var(--ink-2); border-radius: 4px; padding: 2px; }
textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin: 0; }
legend { padding: 0 8px; font-weight: 700; }
.auth-box { max-width: 520px; margin: 0 auto; }
.form-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }

/* Waiver */
.waiver-text { background: var(--paper); color: var(--paper-text); border-radius: var(--radius); padding: 28px; max-height: 420px; overflow-y: auto; white-space: pre-line; font-size: 16px; line-height: 1.6; }
.sig-wrap { background: #fff; border-radius: var(--radius); border: 2px dashed #9A958B; position: relative; }
.sig-wrap canvas { display: block; width: 100%; height: 200px; touch-action: none; cursor: crosshair; border-radius: var(--radius); }
.sig-line { position: absolute; left: 24px; right: 24px; bottom: 48px; border-bottom: 1px solid #CCC6BA; pointer-events: none; }
.sig-x { position: absolute; left: 24px; bottom: 52px; color: #9A958B; font-weight: 700; pointer-events: none; }
.sig-img { background: #fff; border-radius: 4px; padding: 6px; max-width: 360px; }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; }
table.data th, table.data td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { background: var(--panel); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(255,255,255,.02); }
table.data a { color: var(--bone); font-weight: 600; }

/* Admin */
.admin-shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.admin-side { flex: 1 1 220px; max-width: 100%; background: var(--ink-2); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 4px; color: var(--soft); text-decoration: none; font-weight: 600; min-height: 44px; }
.admin-side a:hover { background: var(--panel); color: var(--bone); }
.admin-side a.on { background: var(--panel); color: var(--bone); box-shadow: inset 3px 0 0 var(--accent); }
.admin-side .side-brand { padding: 4px 12px 18px; }
.admin-main { flex: 999 1 640px; min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.admin-title { font-family: var(--display); font-weight: 800; font-size: 40px; text-transform: uppercase; line-height: 1; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--bone); }
.stat:hover { color: var(--bone); border-color: var(--line-2); }
.stat-num { font-family: var(--display); font-weight: 800; font-size: 42px; line-height: 1; }
.stat-label { color: var(--muted); font-size: 14px; font-weight: 600; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.toolbar > * { flex: 0 1 auto; }
.toolbar input[type=search] { min-width: 240px; }
.inline-form { display: inline; }

/* Kiosk */
.kiosk { min-height: 100vh; display: flex; flex-direction: column; }
.kiosk-top { display: flex; justify-content: space-between; align-items: center; padding: 20px 28px; border-bottom: 1px solid var(--line); gap: 12px; flex-wrap: wrap; }
.kiosk-main { flex: 1; display: flex; flex-direction: column; align-items: center; padding: 40px 24px; gap: 28px; }
.kiosk-search { width: 100%; max-width: 720px; font-size: 28px !important; min-height: 72px !important; padding: 14px 22px !important; border-radius: 8px !important; }
.kiosk-results { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.kiosk-person { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 76px; padding: 16px 22px; background: var(--panel); border: 2px solid var(--line); border-radius: 8px; color: var(--bone); font-family: var(--body); font-size: 24px; font-weight: 700; cursor: pointer; text-align: left; }
.kiosk-person:hover, .kiosk-person:focus { border-color: var(--accent); }
.kiosk-classes { width: 100%; max-width: 720px; display: flex; flex-direction: column; gap: 10px; }
.kiosk-class { min-height: 76px; font-size: 22px; justify-content: space-between; padding: 16px 22px; border-radius: 8px; }
.kiosk-done { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.kiosk-done .big { font-family: var(--display); font-weight: 800; font-size: 64px; text-transform: uppercase; line-height: 1; }
.kiosk-check { width: 120px; height: 120px; border-radius: 50%; background: var(--ok); color: #0B1A10; display: flex; align-items: center; justify-content: center; }

@media (max-width: 720px) {
  .section { padding: 60px 0; }
  .admin-main { padding: 20px 16px; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); flex-direction: row; flex-wrap: wrap; }
  .admin-side .side-brand { width: 100%; padding-bottom: 8px; }
  .form-card { padding: 20px; }
  .wrap { padding: 0 16px; }
}

@media print {
  body { background: #fff; color: #000; }
  .no-print, .site-nav, .utility, .site-footer, .demo-banner, .admin-side { display: none !important; }
  .waiver-text { max-height: none; overflow: visible; padding: 0; }
  .card, .form-card { border: 0; background: #fff; color: #000; padding: 0; }
}

table.data td.small { white-space: nowrap; }
