/* Kalasag Strength Club: chalk paper, ink type, bumper-plate color codes. */

:root {
  --chalk: #f2f0ea;
  --paper: #fbfaf7;
  --ink: #17171a;
  --text: #2b2b30;
  --muted: #57575f;
  --rule: #d6d2c7;
  --board: #1f2023;
  --board-text: #ecebe6;
  --board-muted: #b4b3ad;
  --strength: #c8232c;
  --olympic: #1f4fbf;
  --conditioning: #e3b21a;
  --mobility: #2c8a4b;
  --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --body: "Figtree", system-ui, sans-serif;
  --wrap: 1240px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  background: var(--chalk);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

[hidden] {
  display: none !important;
}

body.modal-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.005em;
}

h2 {
  font-size: clamp(2.5rem, 6vw, 4.25rem);
}

h3 {
  font-size: 1.75rem;
  line-height: 1;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--olympic);
  outline-offset: 3px;
}

.board :focus-visible,
.trial-copy :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--chalk);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 20px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 60;
  padding: 10px 14px;
  background: var(--ink);
  color: var(--chalk);
  font-weight: 600;
}

.skip:focus {
  top: 12px;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--chalk);
  font: 700 1rem/1.1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.btn:hover {
  background: var(--strength);
  border-color: var(--strength);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
}

.btn-ghost:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--chalk);
}

.btn-small {
  min-height: 40px;
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn-wide {
  width: 100%;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(242, 240, 234, 0.96);
  border-bottom: 1px solid var(--rule);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
}

.mark {
  color: var(--strength);
}

.main-nav {
  display: none;
  gap: 28px;
  font-weight: 600;
}

.main-nav a {
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  border-bottom-color: var(--ink);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn {
  display: none;
}

.menu-button {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.menu-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0 20px;
  border: 0;
  background: var(--chalk);
  color: var(--ink);
}

.menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.menu-dialog nav {
  display: grid;
  margin-top: 16px;
}

.menu-dialog nav a {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  text-decoration: none;
}

@media (min-width: 760px) {
  .header-actions .btn {
    display: inline-flex;
  }
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }

  .menu-button {
    display: none;
  }
}

/* Hero */

.hero {
  padding: 28px 0 56px;
}

.hero-grid {
  display: grid;
  gap: 28px;
}

.hero h1 {
  font-size: clamp(3rem, 12vw, 6.25rem);
  font-weight: 900;
  line-height: 0.9;
  max-width: 11ch;
  text-wrap: balance;
}

.lede {
  margin-top: 20px;
  max-width: 48ch;
  font-size: 1.125rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 28px;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.hero-facts dt {
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-facts dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1;
}

.hero-photo {
  margin: 0;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 63% center;
  border-radius: var(--radius);
}

.board {
  margin-top: 36px;
  padding: 22px 20px 24px;
  border-radius: var(--radius);
  background: var(--board);
  color: var(--board-text);
}

.board-title {
  color: var(--board-text);
  font-size: 1.6rem;
}

.board-list {
  display: grid;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.board-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 12px 0 12px 16px;
  border-left: 4px solid var(--plate);
}

.board-when {
  color: var(--board-muted);
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}

.board-name {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1.05;
}

.board-type {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--board-muted);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .hero {
    padding: 56px 0 80px;
  }

  .hero-grid {
    grid-template-columns: 6fr 5fr;
    align-items: center;
    gap: 56px;
  }

  .hero-photo img {
    aspect-ratio: 4 / 5;
  }

  .lede {
    font-size: 1.25rem;
  }

  .board {
    display: grid;
    grid-template-columns: 200px 1fr;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
  }

  .board-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 0;
  }
}

/* Plates: the class-type color code */

.slot-strength,
.type-strength {
  --plate: var(--strength);
}

.slot-olympic,
.type-olympic {
  --plate: var(--olympic);
}

.slot-conditioning,
.type-conditioning {
  --plate: var(--conditioning);
}

.slot-mobility,
.type-mobility {
  --plate: var(--mobility);
}

.plate {
  display: inline-block;
  flex: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.18);
}

.plate-strength {
  background: var(--strength);
}

.plate-olympic {
  background: var(--olympic);
}

.plate-conditioning {
  background: var(--conditioning);
}

.plate-mobility {
  background: var(--mobility);
}

/* Sections */

.section {
  padding: 64px 0;
}

.section-head {
  display: grid;
  gap: 14px;
  margin-bottom: 32px;
}

.section-head p {
  max-width: 60ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

@media (min-width: 900px) {
  body {
    font-size: 17px;
  }

  .section {
    padding: 96px 0;
  }

  .section-head {
    grid-template-columns: 5fr 6fr;
    align-items: end;
    gap: 48px;
  }
}

/* Schedule */

.schedule {
  border-top: 1px solid var(--rule);
}

.filters {
  display: grid;
  gap: 18px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.filter-group {
  display: grid;
  gap: 8px;
}

.filter-label {
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 600;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: 600 0.95rem/1 var(--body);
  cursor: pointer;
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--chalk);
}

#day-filter .chip {
  justify-content: center;
  padding: 8px 4px;
}

/* Mobile: seven equal day buttons in one row; type buttons in a tidy 1 + 2 + 2 grid. */
#day-filter {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

#type-filter {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

#type-filter .chip:first-child {
  grid-column: 1 / -1;
}

@media (min-width: 640px) {
  #day-filter {
    display: flex;
    gap: 8px;
  }

  #day-filter .chip {
    min-width: 52px;
    padding: 8px 14px;
  }

  #type-filter {
    display: flex;
  }
}

.schedule-count {
  margin: 18px 0 6px;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.timetable {
  margin: 0;
  padding: 0;
  list-style: none;
}

.slot {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 4px 14px;
  align-items: center;
  padding: 16px 0 16px 14px;
  border-bottom: 1px solid var(--rule);
  border-left: 5px solid var(--plate);
}

.slot-time {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.4rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.slot-main {
  display: grid;
  gap: 2px;
}

.slot-name {
  color: var(--ink);
  font-size: 1.0625rem;
  font-weight: 700;
}

.slot-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.9rem;
}

.slot-book {
  grid-column: 2;
  justify-self: start;
  min-height: 40px;
  padding: 6px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: 700 0.95rem/1 var(--body);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.slot-book:hover {
  color: var(--strength);
}

.slot-note {
  grid-column: 2;
  color: var(--muted);
  font-size: 0.9rem;
}

.schedule-empty {
  display: grid;
  justify-items: start;
  gap: 14px;
  padding: 28px 0;
}

@media (min-width: 900px) {
  .filters {
    grid-template-columns: auto 1fr;
    align-items: end;
    gap: 40px;
  }

  .slot {
    grid-template-columns: 110px 1fr auto;
    padding: 18px 8px 18px 20px;
  }

  .slot-time {
    font-size: 1.6rem;
  }

  .slot-book,
  .slot-note {
    grid-column: 3;
  }
}

/* Class types */

.types {
  background: var(--paper);
}

.types-grid {
  display: grid;
  gap: 36px;
}

.types-photo {
  margin: 0;
}

.types-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.types-intro {
  margin-top: 14px;
  max-width: 52ch;
  color: var(--muted);
}

.type-list {
  margin: 28px 0 0;
}

.type-row {
  padding: 18px 0 18px 18px;
  border-left: 5px solid var(--plate);
  border-bottom: 1px solid var(--rule);
}

.type-row dt {
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.type-row dd {
  margin: 8px 0 0;
  max-width: 62ch;
}

@media (min-width: 900px) {
  .types-grid {
    grid-template-columns: 5fr 6fr;
    align-items: start;
    gap: 64px;
  }

  .types-photo {
    position: sticky;
    top: 96px;
  }

  .types-photo img {
    aspect-ratio: 4 / 5;
  }
}

/* Coaches */

.coach-list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 16px;
  margin: 0 -20px;
  padding: 0 20px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  list-style: none;
}

.coach {
  scroll-snap-align: start;
}

.coach img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.coach-role {
  margin: 6px 0 10px;
  color: var(--muted);
  font-weight: 600;
}

.coach p:last-child {
  max-width: 40ch;
}

@media (min-width: 760px) {
  .coach-list {
    grid-auto-flow: row;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin: 0;
    padding: 0;
    overflow: visible;
  }

  .coach:nth-child(2) {
    margin-top: 48px;
  }
}

/* Membership */

.membership {
  background: var(--chalk);
  border-top: 1px solid var(--rule);
}

.plans {
  display: grid;
  gap: 16px;
}

.plan {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 26px 22px;
  border: 1.5px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper);
}

.plan-main {
  border-color: var(--ink);
  border-top: 8px solid var(--strength);
}

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}

.amount {
  color: var(--ink);
  font-family: var(--display);
  font-size: 3.25rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.per {
  color: var(--muted);
  font-weight: 600;
}

.plan ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1;
}

.plan li {
  padding-left: 18px;
  position: relative;
}

.plan li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--ink);
}

.plan .btn {
  align-self: start;
}

.plan-note {
  margin-top: 20px;
  color: var(--muted);
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

/* Trial booking */

.trial {
  background: var(--board);
  color: var(--board-text);
}

.trial h2 {
  color: var(--board-text);
}

.trial-grid {
  display: grid;
  gap: 40px;
}

.trial-copy > p {
  margin-top: 14px;
  max-width: 48ch;
  color: var(--board-muted);
  font-size: 1.0625rem;
}

.steps {
  display: grid;
  gap: 22px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 52px;
  max-width: 50ch;
  color: var(--board-muted);
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -4px;
  color: var(--conditioning);
  font-family: var(--display);
  font-size: 2.25rem;
  font-weight: 900;
  line-height: 1;
}

.steps strong {
  display: block;
  color: var(--board-text);
  font-size: 1.0625rem;
}

.form-card {
  padding: 26px 20px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--text);
}

.field {
  display: grid;
  gap: 6px;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  color: var(--ink);
  font-weight: 600;
}

.field legend {
  padding: 0;
  margin-bottom: 6px;
}

.optional {
  color: var(--muted);
  font-weight: 400;
}

input[type="text"],
input[type="tel"],
input[type="email"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid #8f8c84;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.4 var(--body);
}

textarea {
  resize: vertical;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--olympic);
  outline-offset: 1px;
  border-color: var(--ink);
}

[aria-invalid="true"] {
  border-color: var(--strength) !important;
}

.hint {
  color: var(--muted);
  font-size: 0.9rem;
}

.error {
  color: #a8141d;
  font-size: 0.9rem;
  font-weight: 600;
}

.error:empty {
  display: none;
}

.radios {
  display: grid;
  gap: 8px;
}

.radios label,
.check label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  cursor: pointer;
}

.radios input,
.check input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--ink);
}

.confirmation {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 8px 0;
}

.confirmation .check {
  color: var(--mobility);
}

.confirmation h3 {
  font-size: 2.25rem;
}

.confirmation h3:focus {
  outline: none;
}

.demo-note {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 560px) {
  .radios {
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: 20px;
  }
}

@media (min-width: 900px) {
  .trial-grid {
    grid-template-columns: 5fr 6fr;
    gap: 72px;
    align-items: start;
  }

  .form-card {
    padding: 36px;
  }
}

/* FAQ */

.faq-grid {
  display: grid;
  gap: 28px;
}

.faq-list details {
  border-bottom: 1px solid var(--rule);
}

.faq-list details:first-child {
  border-top: 2px solid var(--ink);
}

.faq-list summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-size: 1.75rem;
  line-height: 0.8;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  max-width: 64ch;
  padding: 0 0 22px;
}

@media (min-width: 900px) {
  .faq-grid {
    grid-template-columns: 4fr 7fr;
    gap: 64px;
  }
}

/* Visit */

.visit {
  background: var(--paper);
}

.visit-grid {
  display: grid;
  gap: 36px;
}

address {
  margin-top: 20px;
  color: var(--ink);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
}

.visit-note {
  margin-top: 10px;
  max-width: 44ch;
  color: var(--muted);
}

.contact-links {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  font-weight: 600;
}

.contact-links a {
  text-underline-offset: 4px;
}

.hours {
  width: 100%;
  max-width: 380px;
  margin-top: 28px;
  border-collapse: collapse;
}

.hours caption {
  padding-bottom: 8px;
  color: var(--ink);
  font-weight: 700;
  text-align: left;
}

.hours th,
.hours td {
  padding: 9px 0;
  border-top: 1px solid var(--rule);
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.hours th {
  font-weight: 600;
}

.hours td {
  text-align: right;
}

.visit-media {
  display: grid;
  gap: 20px;
}

.floor-photo {
  margin: 0;
}

.floor-photo img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
}

.map {
  margin: 0;
}

.map svg {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.map figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (min-width: 900px) {
  .visit-grid {
    grid-template-columns: 5fr 6fr;
    gap: 64px;
    align-items: start;
  }
}

/* Footer */

.site-footer {
  padding: 48px 0 104px;
  background: var(--ink);
  color: var(--board-muted);
}

.site-footer .wordmark {
  color: var(--board-text);
}

.footer-grid {
  display: grid;
  gap: 28px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.site-footer a {
  color: var(--board-text);
  text-underline-offset: 4px;
}

.small {
  font-size: 0.875rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 4fr 4fr 3fr;
    gap: 40px;
  }

  .site-footer {
    padding-bottom: 56px;
  }
}

/* Mobile action bar */

.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 10px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: var(--chalk);
  border-top: 1px solid var(--rule);
}

@media (min-width: 760px) {
  .mobile-bar {
    display: none;
  }
}
