/* Dom's Private Gym mock-ups: shared tokens and components (scheme A, Iron and Chalk).
   Light and dark follow the device until the visitor chooses; the choice is kept in localStorage. */
:root {
  --bg: #F3F1EC; --surface: #FFFFFF; --line: #D8D4CA; --fg: #0D0E10; --muted: #5A606A;
  --accent: #FFD60A; --on-accent: #0D0E10;
  --iron: #0D0E10; --chalk: #F3F1EC;
  --lose: #D5202B; --gain: #1F4FD8; --keep: #F2C200; --eat: #1F9D55;
  --pad: clamp(16px, 4vw, 72px);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --cond: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --head-h: 68px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D0E10; --surface: #1A1C20; --line: #2E3238; --fg: #F3F1EC; --muted: #9BA1AA;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D0E10; --surface: #1A1C20; --line: #2E3238; --fg: #F3F1EC; --muted: #9BA1AA;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--head-h); }
body { margin: 0; background: var(--bg); color: var(--fg); font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
main { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1.06; letter-spacing: .005em; text-wrap: balance; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; max-width: 56ch; }
.muted { color: var(--muted); }
.label { font: 700 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; }
.wrap { padding-inline: var(--pad); }
.mark-hi { background: var(--accent); color: var(--on-accent); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* Buttons: square, 2px radius everywhere */
.btn { display: inline-flex; align-items: center; gap: .6em; min-height: 52px; padding: 0 26px; border: 2px solid var(--accent); border-radius: 2px;
  background: var(--accent); color: var(--on-accent); font: 700 15px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), background .2s, color .2s, border-color .2s; }
.btn:hover { background: var(--fg); border-color: var(--fg); color: var(--bg); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn i { font-size: 1.2em; transition: transform .25s var(--ease); }
.btn:hover i { transform: translateX(4px); }
.btn.ghost { background: transparent; border-color: var(--fg); color: var(--fg); }
.btn.ghost:hover { background: var(--fg); color: var(--bg); }
.btn.sm { min-height: 44px; padding: 0 18px; font-size: 13px; }

/* Header */
.site-head { position: sticky; top: 0; z-index: 50; height: var(--head-h); display: flex; align-items: center; gap: 24px; padding-inline: var(--pad);
  background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand svg { width: 58px; height: auto; flex: none; overflow: visible; }
.brand svg * { fill: none; stroke: var(--fg); stroke-width: 2.5; }
.brand svg .fillable { transition: fill .3s; }
.brand span { font: 400 21px/1 var(--display); text-transform: uppercase; letter-spacing: .03em; white-space: nowrap; }
.site-nav { margin-left: auto; display: flex; gap: 28px; }
.site-nav a { font: 600 15px/1 var(--body); text-decoration: none; padding: 8px 0; background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 3px no-repeat; transition: background-size .3s var(--ease); }
.site-nav a:hover { background-size: 100% 3px; }
.head-actions { display: flex; align-items: center; gap: 14px; }
.tel { font: 700 16px/1 var(--body); text-decoration: none; white-space: nowrap; display: inline-flex; gap: 8px; align-items: center; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid var(--line); border-radius: 2px; font-size: 20px; }
.icon-btn:hover { border-color: var(--fg); }
.theme-toggle .ph-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ph-moon { display: block; }
:root[data-theme="dark"] .theme-toggle .ph-sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .ph-moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .ph-sun { display: none; }
}
.menu-btn { display: none; }
@media (max-width: 1100px) {
  .site-nav, .head-actions .tel, .head-actions .btn { display: none; }
  .head-actions { margin-left: auto; }
  .menu-btn { display: grid; }
}
@media (max-width: 420px) { .brand span { font-size: 17px; } .brand svg { width: 46px; } }

/* Phone menu: a sibling of the header at the body root so nothing can clip it */
.mobile-menu { position: fixed; inset: 0; z-index: 100; background: var(--bg); padding: 20px var(--pad) 32px; display: flex; flex-direction: column; gap: 8px;
  transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; }
.mobile-menu.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.mobile-menu .close { align-self: flex-end; }
.mobile-menu nav { display: grid; margin-top: 12px; }
.mobile-menu nav a { font: 400 clamp(34px, 10vw, 54px)/1.25 var(--display); text-transform: uppercase; text-decoration: none; border-bottom: 1px solid var(--line); padding: 6px 0; }
.mobile-menu .btn { margin-top: auto; justify-content: center; }
.mobile-menu .tel { font-size: 20px; justify-content: center; padding: 12px 0; }

/* Shared blocks */
.hours { width: 100%; border-collapse: collapse; font-size: 16px; }
.hours th { text-align: left; font-weight: 600; padding: 9px 0; }
.hours td { text-align: right; padding: 9px 0; font-variant-numeric: tabular-nums; color: var(--muted); }
.hours tr + tr { border-top: 1px solid var(--line); }
.hours tr.today th, .hours tr.today td { color: var(--fg); font-weight: 700; }
.hours tr.today th::after { content: "Today"; margin-left: 10px; font: 700 11px/1 var(--body); letter-spacing: .1em; text-transform: uppercase; background: var(--accent); color: var(--on-accent); padding: 3px 6px; border-radius: 2px; }
.hours small { display: block; font-size: 13px; }

.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 600 14px/1.2 var(--body); }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 2px; background: var(--surface); color: var(--fg); font: 400 16px/1.4 var(--body); }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: 3px solid var(--accent); outline-offset: 0; border-color: var(--fg); }
.form .note { font-size: 14px; color: var(--muted); }
.form .thanks { padding: 16px; border: 2px solid var(--accent); border-radius: 2px; font-weight: 600; }
@media (max-width: 560px) { .form .row { grid-template-columns: 1fr; } }

.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 0; font: 600 19px/1.35 var(--body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { flex: none; font-size: 22px; transition: transform .3s var(--ease); }
.faq details[open] summary i { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 68ch; color: var(--muted); }

.site-foot { border-top: 1px solid var(--line); padding: 56px var(--pad) 28px; display: grid; gap: 40px; }
.site-foot .cols { display: grid; gap: 40px; grid-template-columns: 1.4fr 1fr 1fr 1fr; }
.site-foot h3 { font: 700 13px/1.2 var(--body); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
.site-foot li { padding: 4px 0; }
.site-foot a { text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.site-foot .legal { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }
@media (max-width: 900px) { .site-foot .cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-foot .cols { grid-template-columns: 1fr; } }

/* Black and white photography with the yellow doing the work */
.bw { filter: grayscale(1) contrast(1.12); }
.photo { position: relative; overflow: hidden; background: var(--surface); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.ph-note { position: fixed; left: 12px; bottom: 12px; z-index: 40; }

/* Mock-up switcher (not part of the design; removed for the real build) */
.switcher { position: fixed; right: 12px; bottom: 12px; z-index: 90; display: flex; gap: 2px; background: var(--iron); padding: 4px; border-radius: 2px; font: 700 12px/1 var(--body); letter-spacing: .06em; text-transform: uppercase; box-shadow: 0 6px 24px rgb(0 0 0 / .35); }
.switcher a { color: var(--chalk); text-decoration: none; padding: 9px 11px; border-radius: 2px; }
.switcher a[aria-current] { background: var(--accent); color: var(--iron); }
@media print { .switcher { display: none; } }
