:root {
  color-scheme: dark;
  --bg-primary: #0f172a;
  --bg-secondary: #13203a;
  --bg-surface: #162541;
  --text-primary: #f8fafc;
  --text-muted: #cbd5f5;
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.18);
  --border: rgba(148, 163, 209, 0.22);
  --shadow: 0 18px 40px rgba(8, 15, 30, 0.32);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1120px, calc(100% - 3rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
  background: rgba(10, 16, 28, 0.85);
  border-bottom: 1px solid rgba(148, 163, 209, 0.14);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.brand span {
  color: var(--accent);
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.25rem;
  padding: 0;
  margin: 0;
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links .active {
  color: var(--accent);
}

.hero {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
  background: radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.24), transparent 55%), var(--bg-primary);
}

.hero-content {
  display: grid;
  gap: 2.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 600;
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(2rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1.2rem;
  color: var(--text-muted);
}

.hero-panel {
  background: var(--bg-surface);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.hero-panel ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
  display: grid;
  gap: 0.8rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border 0.2s ease, color 0.2s ease;
}

.button.primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 16px 38px rgba(56, 189, 248, 0.35);
}

.button.primary:hover,
.button.primary:focus {
  transform: translateY(-2px);
}

.button.ghost {
  border-color: rgba(148, 163, 209, 0.4);
  color: var(--text-primary);
}

.button.ghost:hover,
.button.ghost:focus {
  border-color: var(--accent);
  color: var(--accent);
}

.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section.alt {
  background: var(--bg-secondary);
}

.spotlight-grid {
  display: grid;
  margin-top: 2.5rem;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.trainer-card {
  background: var(--bg-surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  padding: 1.9rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.trainer-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
}

.tag.strength {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent);
}

.tag.endurance {
  background: rgba(34, 197, 94, 0.2);
  color: #34d399;
}

.tag.rehab {
  background: rgba(251, 191, 36, 0.2);
  color: #facc15;
}

.location {
  font-size: 0.95rem;
  color: rgba(203, 213, 245, 0.8);
}

.trainer-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
  color: var(--text-muted);
}

.inline-link {
  color: var(--accent);
  font-weight: 600;
}

.inline-link:hover,
.inline-link:focus {
  text-decoration: underline;
}

.category-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

.filter-list {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.filter-item {
  background: var(--bg-primary);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.resource-card {
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.15), rgba(13, 22, 38, 0.9));
  border-radius: 20px;
  padding: clamp(2rem, 5vw, 3rem);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: var(--shadow);
  display: grid;
  gap: 1.25rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.method-panel {
  background: rgba(16, 26, 45, 0.8);
  border: 1px solid rgba(148, 163, 209, 0.18);
  border-radius: 24px;
  padding: clamp(2.2rem, 5vw, 3rem);
  display: grid;
  gap: 2rem;
  box-shadow: var(--shadow);
}

.method-list {
  display: grid;
  gap: 1.5rem;
  margin: 0;
}

.method-list div {
  display: grid;
  gap: 0.4rem;
}

.method-list dt {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--accent);
  text-transform: uppercase;
  font-size: 0.9rem;
}

.method-list dd {
  margin: 0;
  color: var(--text-muted);
}

.contact-hero {
  background: var(--bg-secondary);
  text-align: center;
}

.contact-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.contact-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.85rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 1rem;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 209, 0.15);
  padding: 2.5rem 0;
  background: rgba(8, 13, 24, 0.92);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.footer-links {
  display: inline-flex;
  gap: 1.25rem;
  color: var(--text-muted);
}

.not-found {
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.2), transparent 60%), var(--bg-primary);
  min-height: 100vh;
}

.eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

.narrow {
  width: min(680px, calc(100% - 3rem));
  margin: 0 auto;
  text-align: center;
}

@media (max-width: 720px) {
  .nav-wrapper {
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .footer-content {
    justify-content: center;
    text-align: center;
  }
}
