/* ============================================
   Junior Mental Performance Finder — site.css
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F7F8F5;
  --ink: #1B2B23;
  --green: #1F4D3A;
  --green-dark: #163728;
  --gold: #C88B2A;
  --gold-light: #E4B75E;
  --muted: #5B6B60;
  --line: #DDE3DA;
  --white: #FFFFFF;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 43, 35, 0.06), 0 4px 16px rgba(27, 43, 35, 0.05);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--green);
  text-decoration: none;
}
a:hover { color: var(--gold); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  color: var(--green-dark);
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 12px;
}
h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.75rem); }
h3, .h3 { font-family: var(--font-body); font-size: 1.05rem; font-weight: 600; color: var(--ink); }

p { margin: 0 0 12px; }

.small { font-size: 0.875rem; }
.muted { color: var(--muted); }
.lead {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
}

/* ---------- Header ---------- */
.header {
  background: var(--green);
  border-bottom: 3px solid var(--gold);
}
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--white) !important;
  letter-spacing: -0.01em;
}
.nav a {
  color: rgba(255,255,255,0.88) !important;
  margin-left: 28px;
  font-weight: 500;
  font-size: 0.95rem;
}
.nav a:hover { color: var(--gold-light) !important; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 64px;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
}
.footer .small { color: var(--muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 40px;
}
.hero h1 { max-width: 720px; }

.cta {
  display: flex;
  gap: 14px;
  margin: 24px 0 8px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--green-dark) !important;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 22px;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
}
.btn.secondary {
  background: transparent;
  color: var(--green) !important;
  border: 1.5px solid var(--green);
}
.btn.secondary:hover {
  background: var(--green);
  color: var(--white) !important;
}

/* ---------- Scoreboard stats (signature element) ---------- */
.stats {
  display: flex;
  margin-top: 36px;
  background: var(--green-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
.stat {
  flex: 1;
  padding: 20px 16px;
  text-align: center;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: var(--gold);
  opacity: 0.5;
}
.stat strong {
  display: block;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.stat span {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
}

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.card ul { margin: 0; padding-left: 20px; }
.card li { margin-bottom: 6px; }

.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid3 h3 { color: var(--green); margin-bottom: 6px; }
.grid3 p { color: var(--muted); font-size: 0.92rem; margin: 0; }

@media (max-width: 720px) {
  .grid3 { grid-template-columns: 1fr; }
  .stats { flex-direction: column; }
  .stat + .stat::before { display: none; border-top: 1px solid var(--gold); top: 0; left: 20%; right: 20%; width: auto; height: 1px; }
  .header-row { flex-direction: column; align-items: flex-start; gap: 10px; }
  .nav a { margin-left: 0; margin-right: 20px; }
}

/* ---------- Chips (popular starting points) ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--green) !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 500;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.chip:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--green-dark) !important;
}

/* ---------- Badges ---------- */
.badge {
  display: inline-block;
  background: rgba(31, 77, 58, 0.08);
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  margin-right: 6px;
}

/* ---------- Coach list / rows ---------- */
.list .card { padding: 20px 24px; }
.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.row .right { flex-shrink: 0; }
.list h2, .list h3 { margin-bottom: 6px; }
.list a:not(.btn):not(.chip) { color: var(--green); }

/* ---------- Filters form ---------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-bottom: 24px;
}
.filters label {
  display: flex;
  flex-direction: column;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  gap: 6px;
}
.filters label.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding-bottom: 10px;
}
.filters select {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--bg);
  color: var(--ink);
  min-width: 160px;
}
.filters select:focus { outline: 2px solid var(--gold); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs {
  margin-bottom: 18px;
  color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--gold); }
.breadcrumbs span { color: var(--ink); font-weight: 500; }
