/* ============================================
   IRONHOUSE — strength & conditioning
   ============================================ */

/* --- design tokens --- */
:root {
  --ink: #0A0B0A;
  --ink-raised: #131514;
  --ink-line: #232725;
  --lime: #C9F94A;
  --lime-dim: #93B92C;
  --bone: #F2F3EF;
  --grey: #8E948D;
  --grey-dim: #61665F;
  --font-display: "Archivo Black", "Arial Black", Impact, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --shell: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
}

/* --- reset --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink);
  color: var(--bone);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
ul { list-style: none; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* --- layout --- */
.shell {
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
main > section { padding-block: clamp(64px, 9vw, 116px); }

/* --- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 11, 10, .9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand__mark {
  width: 26px; height: 26px;
  background: var(--lime);
  clip-path: polygon(0 22%, 100% 0, 100% 78%, 0 100%);
}
.brand__name {
  font-family: var(--font-display);
  font-size: 21px;
  letter-spacing: .04em;
}
.brand__name em { font-style: normal; color: var(--lime); }

.site-nav { display: flex; align-items: center; gap: 30px; }
.site-nav__link {
  font-size: 14px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--grey);
  transition: color .2s ease;
}
.site-nav__link:hover { color: var(--bone); }
.site-nav__link--cta {
  background: var(--lime);
  color: var(--ink);
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
}
.site-nav__link--cta:hover { background: var(--bone); color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--bone); margin: 5px 0;
  transition: transform .3s ease, opacity .2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- hero --- */
.hero {
  position: relative;
  border-bottom: 1px solid var(--ink-line);
  background:
    radial-gradient(60% 70% at 78% 20%, rgba(201, 249, 74, .10), transparent 62%),
    linear-gradient(180deg, #0E100E, var(--ink));
}
.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 18px;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 11vw, 8rem);
  line-height: .88;
  letter-spacing: -.02em;
  margin-bottom: 22px;
}
.hero__lede {
  color: var(--grey);
  font-size: clamp(16px, 2vw, 19px);
  max-width: 46ch;
  margin-bottom: 32px;
}
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 30px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .18s ease, background .25s ease, color .25s ease, border-color .25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--lime); color: var(--ink); }
.btn--solid:hover { background: var(--bone); }
.btn--ghost { border-color: var(--ink-line); color: var(--bone); }
.btn--ghost:hover { border-color: var(--lime); color: var(--lime); }
.btn--block { width: 100%; }

/* --- stats --- */
.stat-row {
  display: flex;
  gap: clamp(28px, 6vw, 72px);
  margin-top: clamp(44px, 7vw, 80px);
  padding-top: 28px;
  border-top: 1px solid var(--ink-line);
}
.stat__label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey-dim);
}
.stat__value {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
  color: var(--lime);
}

/* --- section headings --- */
.section-head { margin-bottom: clamp(32px, 5vw, 56px); }
.section-head__title {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 5vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.section-head__note {
  color: var(--grey);
  margin-top: 12px;
  max-width: 52ch;
}

/* --- programme cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 30px 26px 26px;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: var(--lime-dim); transform: translateY(-4px); }
.card__index {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: .16em;
  color: var(--lime);
  margin-bottom: 16px;
}
.card__title {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 10px;
}
.card__text { color: var(--grey); font-size: 15px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-dim);
  border: 1px solid var(--ink-line);
  border-radius: 99px;
  padding: 5px 12px;
}

/* --- timetable --- */
.timetable { background: var(--ink-raised); border-block: 1px solid var(--ink-line); }
.schedule { width: 100%; border-collapse: collapse; }
.schedule__caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.schedule th {
  text-align: left;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--grey-dim);
  padding: 0 14px 14px 0;
  border-bottom: 1px solid var(--ink-line);
}
.schedule td {
  padding: 18px 14px 18px 0;
  border-bottom: 1px solid var(--ink-line);
  font-size: 15px;
}
.schedule tbody tr { transition: background .25s ease; }
.schedule tbody tr:hover { background: rgba(201, 249, 74, .04); }
.schedule td:first-child {
  font-family: var(--font-display);
  color: var(--bone);
  font-size: 17px;
  width: 110px;
}
.pill {
  display: inline-block;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
}
.pill--open { background: rgba(201, 249, 74, .14); color: var(--lime); }
.pill--full { background: rgba(255, 255, 255, .06); color: var(--grey-dim); }

/* --- coaches --- */
.coach-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.coach__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  border: 1px solid var(--ink-line);
  transition: transform .5s ease;
}
.coach:hover .coach__photo { transform: scale(1.03); }
.coach { overflow: hidden; border-radius: var(--radius); }
.coach__name { font-family: var(--font-display); font-size: 19px; }
.coach__role { color: var(--grey); font-size: 14px; margin-top: 4px; }

/* --- membership --- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.plan {
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: var(--radius);
  padding: 32px 28px;
  position: relative;
}
.plan--featured { border-color: var(--lime); background: linear-gradient(180deg, rgba(201, 249, 74, .07), var(--ink-raised)); }
.plan__flag {
  position: absolute;
  top: -12px; left: 28px;
  background: var(--lime);
  color: var(--ink);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 99px;
}
.plan__name {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 12px;
}
.plan__price { font-family: var(--font-display); font-size: 2.6rem; line-height: 1; }
.plan__period { font-family: var(--font-body); font-size: 15px; font-weight: 400; color: var(--grey-dim); }
.plan__features { margin: 22px 0 26px; display: grid; gap: 10px; }
.plan__features li {
  font-size: 15px;
  color: var(--grey);
  padding-left: 24px;
  position: relative;
}
.plan__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 2px;
  background: var(--lime);
}

/* --- footer --- */
.site-footer { border-top: 1px solid var(--ink-line); padding-block: 34px; }
.site-footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--grey-dim);
}
.site-footer__nav { display: flex; gap: 22px; flex-wrap: wrap; }
.site-footer__nav a:hover { color: var(--lime); }

/* --- responsive --- */
@media (max-width: 900px) {
  .site-nav {
    position: fixed;
    inset: 72px 0 auto;
    flex-direction: column;
    gap: 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
    padding: 8px var(--gutter) 26px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav__link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--ink-line);
    font-size: 16px;
  }
  .site-nav__link--cta { text-align: center; margin-top: 16px; border-bottom: 0; }
  .nav-toggle { display: block; }
  .card-grid, .coach-grid, .plan-grid { grid-template-columns: 1fr; }
  .schedule th:nth-child(3), .schedule td:nth-child(3) { display: none; }
}
@media (max-width: 560px) {
  .stat-row { gap: 24px; }
  .site-footer__inner { justify-content: center; text-align: center; }
  .site-footer__nav a { display: inline-block; padding: 10px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
