/* Jens Netball — brand tokens and components, matched to the redesign canvas */
:root {
  --ground: #0D0B0F;
  --header: #141117;
  --surface: #18151B;
  --chip: #241F28;
  --footer: #09080B;
  --line: #2E2933;
  --input-line: #3A3340;
  --ghost-line: #6B5E72;
  --text: #F6F2F7;
  --text-2: #E4DCE7;
  --text-3: #D9CFDD;
  --muted: #B3A9B8;
  --faint: #9C92A2;
  --accent: #FF4FA3;
  --accent-hover: #FF85BF;
  --accent-light: #FFB3D6;
  --button: #D10F6E;
  --button-dark: #A30A55;
  --selected: #2A1420;
  --selected-line: #5A2442;
  --radius-card: 20px;
  --radius-control: 12px;
  --font-head: 'Archivo', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 400 16px/1.6 var(--font-body);
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 800; line-height: 1.05; margin: 0 0 16px; letter-spacing: -0.01em; }
h1 { font-size: clamp(44px, 7vw, 88px); font-weight: 900; line-height: 0.98; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 22px; }
p { margin: 0 0 16px; color: var(--text-2); }
.muted { color: var(--muted); }
.accent { color: var(--accent); }
.eyebrow {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--accent); margin: 0 0 12px;
}
.eyebrow-plain {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text); margin: 0 0 4px;
}
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--button); color: #fff; padding: 12px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; }

/* Header */
.site-header { background: var(--ground); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; min-height: 80px; padding-top: 10px; padding-bottom: 10px; }
.brand {
  font-family: var(--font-head); font-weight: 900; font-size: 24px; color: var(--text);
  text-decoration: none; letter-spacing: -0.01em; white-space: nowrap;
}
.logo { height: 56px; width: auto; display: block; }
.logo-footer { height: 72px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 2px; flex: 1 1 auto; }
.main-nav a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px;
  color: var(--text-2); font-weight: 500; font-size: 15px; text-decoration: none;
}
.main-nav a:hover { color: var(--text); }
.main-nav a.active, .main-nav a[aria-current="page"] { background: var(--selected); color: var(--accent); font-weight: 600; }
.nav-tools { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  width: 44px; height: 44px; border-radius: 10px; border: 0; background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; text-decoration: none;
}
.icon-btn:hover { color: var(--text); background: var(--chip); }
.account-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 6px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--text); font-size: 14px; font-weight: 600; text-decoration: none;
}
.account-pill:hover { border-color: var(--accent); color: var(--text); }
.avatar {
  width: 32px; height: 32px; border-radius: 999px; background: var(--selected); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700;
}

/* Footer */
.site-footer { background: var(--footer); border-top: 1px solid var(--line); padding: 64px 0 32px; margin-top: 0; }
.footer-inner { display: flex; flex-direction: column; gap: 48px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; }
.footer-grid nav, .footer-grid > div { display: flex; flex-direction: column; gap: 12px; font-size: 14px; }
.footer-grid nav a { color: var(--muted); text-decoration: none; }
.footer-grid nav a:hover { color: var(--accent-hover); }
.footer-grid p { margin: 0; font-size: 14px; line-height: 1.6; }
.footer-brand { gap: 16px !important; }
.socials { display: flex; gap: 8px; }
.socials .icon-btn { background: var(--surface); border: 1px solid var(--line); color: var(--text-2); }
.copyright {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px;
  border-top: 1px solid var(--line); font-size: 13px; color: var(--faint);
}

/* Buttons and controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px;
  padding: 0 22px; border-radius: var(--radius-control); font: 700 16px var(--font-body);
  text-decoration: none; cursor: pointer; border: 1.5px solid transparent;
}
.btn-lg { min-height: 52px; padding: 0 26px; }
.btn-block { width: 100%; white-space: nowrap; padding: 0 12px; font-size: 15px; }
.btn-primary { background: var(--button); color: #fff; }
.btn-primary:hover { background: var(--button-dark); color: #fff; }
.btn-white { background: #fff; color: var(--button-dark); font-weight: 800; }
.btn-white:hover { color: var(--button-dark); background: #f4eef3; }
.btn-ghost { border-color: var(--ghost-line); color: var(--text); background: rgba(13,11,15,0.6); font-weight: 600; }
.btn-ghost:hover { border-color: var(--accent); color: var(--text); }
.btn-outline { border-color: var(--input-line); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-outline-pink { border-color: var(--button); color: var(--accent-hover); background: transparent; }
.btn-outline-pink:hover { color: #fff; background: var(--button); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 14px; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border-radius: var(--radius-control);
  border: 1px solid var(--input-line); background: var(--surface); color: var(--text); font: 16px var(--font-body);
}
label { display: block; font-weight: 600; color: var(--text-2); margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--text-2); }
.check input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--button); }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--ground); }
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.35;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,11,15,0.9) 0%, rgba(13,11,15,0.4) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero-inner { position: relative; padding-top: 120px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 28px; }
.pill {
  align-self: flex-start; padding: 8px 14px; border-radius: 999px; background: rgba(13,11,15,0.7);
  border: 1px solid #4A3F50; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-light);
}
.lede { margin: 0; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--text-2); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Stats strip */
.strip { background: var(--header); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.strip-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; padding-top: 28px; padding-bottom: 28px; }
.strip-grid > div { display: flex; flex-direction: column; gap: 4px; }
.stat { font-family: var(--font-head); font-weight: 800; font-size: 28px; color: var(--accent); }
.stat-label { font-size: 14px; color: var(--muted); }

/* Section heads and grids */
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 40px; margin-bottom: 40px; }
.section-head > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center > div { align-items: center; }
.section-note { margin: 0; max-width: 420px; color: var(--muted); font-size: 16px; line-height: 1.6; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-plans { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; align-items: stretch; }

/* Cards */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--text);
}
a.card:hover { border-color: var(--accent); color: var(--text); }
.card p { margin: 0; }
.card-media { padding: 0; overflow: hidden; gap: 0; }
.card-photo { width: 100%; height: 240px; object-fit: cover; object-position: center; display: block; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.card-body h3 { margin: 0; font-size: 24px; }
.card-body p { font-size: 15px; color: var(--muted); line-height: 1.6; }

/* Image placeholders (replace with canvas photos) */
.photo { width: 100%; height: 100%; min-height: 200px; object-fit: cover; object-position: center; display: block; }
.photo.tall { height: 520px; border-radius: 24px; }
img.photo, img.card-photo { max-width: 100%; }
.photo-placeholder {
  background: linear-gradient(135deg, var(--chip), var(--surface)); border: 1px dashed var(--input-line);
  display: flex; align-items: center; justify-content: center; padding: 16px; text-align: center;
  color: var(--faint); font-size: 14px;
}
.photo-placeholder span { max-width: 90%; }

/* Library tiles */
.tile {
  position: relative; display: block; min-height: 340px; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: #fff; background: var(--surface); border: 1px solid var(--line);
}
.tile:hover { border-color: var(--accent); color: #fff; }
.tile-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.45; }
.tile::after {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(13,11,15,0.95) 25%, rgba(13,11,15,0.35) 100%);
}
.tile-body { position: relative; z-index: 1; padding: 32px; height: 340px; box-sizing: border-box; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; }
.tile-body h3 { margin: 0; font-weight: 900; font-size: 40px; }
.tile-body p { margin: 0; font-size: 16px; color: #F0E8F2; }
.tag { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--button); font-size: 13px; font-weight: 700; color: #fff; }
.tile-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--accent-light); }

/* Why train with us */
.why { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.why-grid { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; padding-top: 96px; padding-bottom: 96px; }
.why-copy { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.why-copy > div:first-child { display: flex; flex-direction: column; gap: 12px; }
.why-photo { flex: 1 1 380px; min-width: 0; }
.point { display: flex; gap: 18px; }
.point-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; background: var(--selected); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
}
.point h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; }
.point p { margin: 0; color: var(--muted); line-height: 1.6; }

/* Plans */
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
}
.plan-head { display: flex; flex-direction: column; gap: 6px; }
.plan-name { font-weight: 700; color: var(--accent); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.plan-price { font-family: var(--font-head); font-weight: 800; font-size: 44px; line-height: 1; color: var(--text); }
.plan-price small { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--muted); }
.plan-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--text-2); flex: 1; }
.plan-featured { background: var(--button); border-color: var(--button); color: #fff; }
.plan-featured .plan-name, .plan-featured .plan-price, .plan-featured .plan-price small, .plan-featured .plan-list { color: #fff; }
.plan-featured .plan-price small { color: #ffe3f0; }
.badge { padding: 4px 10px; border-radius: 999px; background: #fff; color: var(--button-dark); font-size: 12px; font-weight: 700; white-space: nowrap; }

/* Call to action */
.cta {
  border-radius: 28px; background: var(--surface); border: 1px solid var(--line); padding: 48px;
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
}
.cta > div { display: flex; flex-direction: column; gap: 8px; max-width: 620px; }
.cta h2 { margin: 0; font-size: 36px; }
.cta p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }

/* Library and detail pages */
.band { background: var(--header); border-bottom: 1px solid var(--line); padding: 48px 0; }
.two-col { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.two-col > .content { flex: 999 1 640px; min-width: 0; }
.two-col > aside { flex: 1 1 280px; display: flex; flex-direction: column; gap: 16px; }
.filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }
.filter-panel h2 { font-size: 20px; margin-bottom: 12px; }
.filter-panel details { border-top: 1px solid var(--line); padding: 12px 0; }
.filter-panel summary { font-weight: 700; cursor: pointer; min-height: 36px; display: flex; align-items: center; gap: 8px; color: var(--text); }
.count-badge {
  background: var(--button); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 13px;
  min-width: 24px; text-align: center;
}
.filter-row { display: flex; align-items: center; gap: 10px; min-height: 40px; color: var(--text-2); }
.filter-row input { width: 20px; height: 20px; accent-color: var(--button); }
.filter-row .count { margin-left: auto; color: var(--faint); font-size: 14px; }
.filter-row.disabled { color: var(--faint); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.tabs a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
  text-decoration: none; color: var(--text-2); border: 1px solid var(--input-line);
}
.tabs a[aria-current="page"] { background: var(--button); color: #fff; border-color: var(--button); }
.results-line { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; color: var(--muted); }
.card-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.empty { background: var(--surface); border: 1px dashed var(--input-line); border-radius: var(--radius-card); padding: 32px; text-align: center; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px;
  background: var(--chip); color: var(--text-2); font-size: 14px;
}
.chip-accent { background: var(--selected); border: 1px solid var(--selected-line); color: var(--accent-light); }
.step-num {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 50%; background: var(--button);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.steps li { display: flex; gap: 16px; align-items: flex-start; color: var(--text-2); }
.crumbs { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.side-card h3 { font-size: 18px; }
.side-card.tint { background: var(--selected); border-color: var(--selected-line); }
.side-card ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 40px; }
.media { aspect-ratio: 16 / 9; background: var(--chip); border-radius: var(--radius-card); display: flex; align-items: center; justify-content: center; color: var(--muted); border: 1px solid var(--line); }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 32px; max-width: 640px; }

/* Trainers */
.trainer { display: flex; flex-direction: column; gap: 12px; }
.trainer .role { color: var(--accent); font-weight: 700; margin: 0; }

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .cta { padding: 28px; }
  .form-card { padding: 24px; }
  .hero-inner { padding-top: 72px; padding-bottom: 64px; }
  .photo.tall { height: 360px; }
  .tile-body h3 { font-size: 32px; }
}
