/* ==========================================================================
   Beantown Barbell Club — self-hosted type
   Big Shoulders Display: Chicago industrial-signage condensed, for headlines
   IBM Plex Sans: body copy   IBM Plex Mono: records/labels ("ledger" data)
   ========================================================================== */
@font-face {
  font-family: 'Big Shoulders Display';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/big-shoulders-display-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 100 700;
  font-display: swap;
  src: url('../fonts/ibm-plex-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
}

/* ==========================================================================
   Beantown Barbell Club — design tokens & base reset

   Palette: "Iron & Ledger" — near-black steel, chalk-white text, plate red
   (the IWF competition-plate / no-lift-light red) as the primary accent,
   brass (medal tone) as the secondary. Grounded in the sport's own materials
   rather than an arbitrary gradient.
   ========================================================================== */
:root {
  --color-bg: #0d0e10;
  --color-bg-alt: #131417;
  --color-surface: #18191c;
  --color-surface-hi: #202226;
  --color-border: rgba(242, 239, 230, 0.08);
  --color-text: #f2efe6;
  --color-text-muted: #9c988e;
  --color-accent: #c8102e;
  --color-accent-hi: #ff4d5e;
  --color-accent-2: #b6924f;
  --color-focus: #ffcf5c;

  --font-display: 'Big Shoulders Display', "Arial Narrow", "Helvetica Neue Condensed", Impact, sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --container-w: 1180px;
  --radius: 6px;
  --radius-sm: 4px;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --header-h: 76px;

  /* Knurl — a diamond-hatch texture echoing a barbell shaft's knurling.
     The site's one recurring material signature; used as a thin seam on
     .page-header and .cta-band below. */
  --knurl:
    repeating-linear-gradient(45deg, rgba(242, 239, 230, 0.12) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(242, 239, 230, 0.12) 0 1px, transparent 1px 7px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.1;
  margin: 0 0 0.5em;
  font-weight: 800;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 900; text-shadow: 0 1px 0 rgba(242, 239, 230, 0.08), 0 -1px 1px rgba(0, 0, 0, 0.4); }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); color: var(--color-accent-2); }
h3 { font-size: 1.05rem; color: var(--color-text); letter-spacing: 0.08em; }
p { margin: 0 0 1em; color: var(--color-text-muted); max-width: 68ch; }

.container {
  width: 100%;
  max-width: var(--container-w);
  margin-inline: auto;
  padding-inline: 24px;
}

.section { padding-block: clamp(48px, 8vw, 96px); }
.section--alt { background: var(--color-bg-alt); }
.section-head { max-width: 720px; margin-bottom: 2.5rem; }
.section-head p { color: var(--color-text-muted); }

:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 3px;
}


/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.85em 1.6em;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px); }

.btn--primary { background: var(--color-accent); color: #fff5f7; }
.btn--primary:hover { background: var(--color-accent-hi); box-shadow: 0 8px 20px rgba(200, 16, 46, 0.35); }

.btn--ghost { border-color: rgba(242, 239, 230, 0.4); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-accent-2); color: var(--color-accent-2); }

.btn--block { width: 100%; justify-content: center; }
.btn[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

/* ==========================================================================
   Site header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(13, 14, 16, 0.7);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.site-header.is-scrolled {
  background: rgba(13, 14, 16, 0.95);
  border-bottom-color: var(--color-border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  color: var(--color-text);
}
.brand img { height: 34px; width: auto; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.6rem;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 4px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.primary-nav ul {
  display: flex;
  gap: 1.9rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.92rem;
  color: var(--color-text-muted);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  color: var(--color-text);
  border-color: var(--color-accent);
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; }
  .primary-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    background: var(--color-bg);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
    overflow-y: auto;
  }
  .primary-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 1.5rem 24px;
  }
  .primary-nav li { border-bottom: 1px solid var(--color-border); }
  .primary-nav a { display: block; padding: 1.1rem 0; font-size: 1.1rem; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: min(88vh, 760px);
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.35) 0%, rgba(13, 14, 16, 0.55) 55%, var(--color-bg) 100%);
}
.hero-content { padding-block: 4rem 3.5rem; max-width: 760px; }
.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-accent-2);
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}
.hero p.lede { font-size: 1.15rem; color: var(--color-text); opacity: 0.9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.8rem; }

.page-header {
  position: relative;
  min-height: 340px;
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
  isolation: isolate;
}
.page-header::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 14, 16, 0.45) 0%, var(--color-bg) 100%);
}
.page-header::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 8px;
  z-index: 1;
  opacity: 0.7;
  background-image: var(--knurl);
}
.page-header h1 { margin: 0; }
.page-header .container { padding-block: 3rem; }

/* ==========================================================================
   Cards & grids
   ========================================================================== */
.grid { display: grid; gap: 1.75rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--color-accent-2); transform: translateY(-3px); }
.card img { aspect-ratio: 4 / 3; object-fit: cover; }
.card-body { padding: 1.6rem; display: flex; flex-direction: column; gap: 0.75rem; flex: 1; }
.card-body h2 { font-size: 1.3rem; margin-bottom: 0.2rem; }
.card-body p { flex: 1; }

.feature {
  padding: 1.6rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}
.feature h3 { color: var(--color-accent-2); margin-bottom: 0.6rem; }
.feature p { margin: 0; }

/* ==========================================================================
   Coach profiles
   ========================================================================== */
.coach {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.2rem;
  padding-block: 2.5rem;
  border-top: 1px solid var(--color-border);
}
.coach:first-of-type { border-top: none; }
.coach-id h2 { margin-bottom: 0.1rem; font-size: clamp(1.3rem, 1.8vw, 1.7rem); overflow-wrap: break-word; }
.coach-id .role {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-size: 0.8rem;
}
.coach-lists { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 1.4rem; }
.coach-lists h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-accent-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
}
.coach-lists ul { margin: 0; padding-left: 1.1rem; color: var(--color-text-muted); font-size: 0.92rem; }
.coach-lists li { margin-bottom: 0.35rem; }

@media (max-width: 720px) {
  .coach { grid-template-columns: 1fr; }
  .coach-lists { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Info list (facility / contact meta)
   ========================================================================== */
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.4rem; }
.info-list li { border-top: 1px solid var(--color-border); padding-top: 1rem; }
.info-list h3 { color: var(--color-accent-2); margin-bottom: 0.4rem; }
.info-list p { margin: 0; color: var(--color-text-muted); }

.tag-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem 1.5rem; }
.tag-list li {
  padding: 0.6rem 0.9rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Contact form
   ========================================================================== */
.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 900px) {
  .contact-layout { grid-template-columns: 1fr; }
}

.form-field { margin-bottom: 1.2rem; }
.form-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.8em 1em;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text);
  font: inherit;
  resize: vertical;
}
.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--color-accent);
}

/* honeypot field — hidden from real users, catches simple bots */
.form-field--hp { position: absolute; left: -9999px; top: -9999px; }

.form-status {
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  display: none;
}
.form-status.is-visible { display: block; }
.form-status--ok { background: rgba(182, 146, 79, 0.15); color: var(--color-accent-2); border: 1px solid rgba(182, 146, 79, 0.35); }
.form-status--error { background: rgba(255, 77, 94, 0.12); color: var(--color-accent-hi); border: 1px solid rgba(255, 77, 94, 0.3); }

/* ==========================================================================
   CTA band
   ========================================================================== */
.cta-band {
  position: relative;
  text-align: center;
  padding-block: clamp(48px, 8vw, 88px);
  background: radial-gradient(circle at top, var(--color-surface-hi), var(--color-bg-alt));
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  opacity: 0.7;
  background-image: var(--knurl);
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { margin-inline: auto; margin-bottom: 1.8rem; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding-block: 3.5rem 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}
.footer-grid h4 {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--color-accent-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.8rem;
  margin-bottom: 0.9rem;
}
.footer-grid p, .footer-grid address, .footer-grid ul {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  margin: 0 0 0.5rem;
  font-style: normal;
  list-style: none;
  padding: 0;
}
.footer-grid a { text-decoration: none; }
.footer-grid a:hover { color: var(--color-accent-2); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
}
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Utilities
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  background: var(--color-accent);
  color: #fff5f7;
  padding: 0.7em 1.1em;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top 0.15s ease;
  text-decoration: none;
  font-weight: 700;
}
.skip-link:focus { top: 12px; }
