/* Mobile-first styles. Colours are set once here and reused everywhere. */
:root {
  --teal: #12525e;
  --teal-dark: #0b3a43;
  --mint: #17f1a5;
  --mint-soft: #d9fdee;
  --lime: #d4ff3f;
  --cream: #fffef5;
  --sand: #f2f0dc;
  --ink: #10262b;
  --muted: #55696e;
  --line: #dfe5dc;
  --white: #ffffff;
  --error: #b42318;
  --whatsapp: #128c4a;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 38, 43, 0.06), 0 6px 20px rgba(16, 38, 43, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
}
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.5rem; font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; }
p { margin: 0 0 1em; }
[id] { scroll-margin-top: 80px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 16px; }
.section { padding: 44px 0; }
.section-alt { background: var(--sand); }
.section-head { margin-bottom: 20px; }
.section-head p { color: var(--muted); margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border: 2px solid transparent; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); }
.btn-accent { background: var(--lime); color: var(--ink); }
.btn-accent:hover { background: #c5f227; }
.btn-outline { background: transparent; border-color: var(--teal); color: var(--teal); }
.btn-outline:hover { background: var(--mint-soft); }
.btn-whatsapp { background: var(--white); border-color: var(--whatsapp); color: var(--whatsapp); }
.btn-whatsapp:hover { background: #eafaf1; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.6; cursor: wait; }

/* Sample-data notice */
.sample-bar {
  background: var(--ink); color: var(--cream);
  font-size: 0.8125rem; text-align: center; padding: 8px 16px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--cream); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: 60px; }
.logo {
  font-weight: 900; font-size: 1.35rem; letter-spacing: -0.03em;
  color: var(--teal); text-decoration: none;
  background: var(--mint); padding: 2px 10px; border-radius: 8px;
}
.menu-toggle {
  min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font: inherit; font-weight: 600; color: var(--ink); cursor: pointer;
}
.nav { display: none; flex-direction: column; gap: 4px; padding: 8px 0 16px; }
.nav.open { display: flex; }
.nav a { padding: 12px 4px; text-decoration: none; color: var(--ink); font-weight: 600; }
.nav a.btn { color: var(--white); margin-top: 6px; }

/* Hero */
.hero { background: var(--mint); padding: 36px 0 44px; }
.hero h1 { color: var(--teal-dark); }
.hero-lead { font-size: 1.0625rem; color: var(--teal-dark); max-width: 34em; }
.search-card {
  background: var(--white); border-radius: var(--radius); padding: 16px;
  box-shadow: var(--shadow); display: grid; gap: 12px; margin-top: 20px;
}
.hero-note { margin: 14px 0 0; font-size: 0.875rem; color: var(--teal-dark); }

/* Form fields */
label, .label { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], select, textarea {
  width: 100%; min-height: 48px; padding: 11px 12px;
  border: 1.5px solid #c3cdc6; border-radius: 10px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--white);
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus, .btn:focus-visible, a:focus-visible, button:focus-visible {
  outline: 3px solid var(--mint); outline-offset: 2px; border-color: var(--teal);
}
.field { margin-bottom: 16px; }
.field-hint { font-size: 0.8125rem; color: var(--muted); margin-top: 4px; }
.field-error { font-size: 0.8125rem; color: var(--error); margin-top: 4px; font-weight: 600; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--error); }
.field-row { display: grid; gap: 0 12px; }

.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-pill { position: relative; margin: 0; }
.check-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.check-pill span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px;
  border: 1.5px solid #c3cdc6; border-radius: 999px; background: var(--white);
  font-weight: 600; font-size: 0.9375rem;
}
.check-pill input:checked + span { background: var(--teal); border-color: var(--teal); color: var(--white); }
.check-pill input:focus-visible + span { outline: 3px solid var(--mint); outline-offset: 2px; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 0.875rem; margin: 0; }
.consent input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--teal); }
.privacy-note {
  background: var(--sand); border-radius: 10px; padding: 12px 14px;
  font-size: 0.8125rem; color: var(--muted); margin-bottom: 14px;
}
.privacy-note strong { color: var(--ink); }
.form-or { text-align: center; color: var(--muted); font-size: 0.875rem; margin: 14px 0 10px; }
.form-status { margin-top: 12px; color: var(--error); font-weight: 600; font-size: 0.9rem; }
.hp { position: absolute; left: -9999px; }

.success { text-align: center; padding: 12px 0; }
.success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--mint);
  display: grid; place-items: center; margin: 0 auto 14px; font-size: 1.6rem; color: var(--teal-dark);
}

/* Cards */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 20px 16px; }

.paths { display: grid; gap: 14px; }
.path-card { padding: 22px 18px; }
.path-card.dark { background: var(--teal); color: var(--white); border-color: var(--teal); }
.path-card.dark p { color: #cfe6e3; }
.path-card p { color: var(--muted); }

.sport-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.sport-tile {
  display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 12px 14px;
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  text-decoration: none; color: var(--ink); font-weight: 700;
}
.sport-tile:hover { border-color: var(--teal); }
.sport-tile .icon { font-size: 1.4rem; }

.coach-grid { display: grid; gap: 14px; }
.coach-card { display: flex; flex-direction: column; padding: 16px; text-decoration: none; color: inherit; }
.coach-card:hover { border-color: var(--teal); }
.coach-top { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.coach-name { font-size: 1.1rem; font-weight: 800; margin: 0; }
.coach-sports { color: var(--muted); font-size: 0.9rem; margin: 0; }
.coach-headline { margin: 0 0 12px; font-size: 0.9375rem; }
.coach-meta { display: grid; gap: 4px; font-size: 0.875rem; color: var(--muted); margin: 0 0 14px; padding: 0; list-style: none; }
.coach-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.rate { font-weight: 800; }
.rate small { font-weight: 500; color: var(--muted); }
.link-arrow { font-weight: 700; color: var(--teal); }

.avatar {
  position: relative; flex: none; width: 64px; height: 64px; border-radius: 50%;
  background: var(--a, var(--teal)); overflow: visible;
}
.avatar svg, .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar svg { fill: rgba(255, 255, 255, 0.82); }
.avatar-badge {
  position: absolute; right: -4px; bottom: -4px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--line); display: grid; place-items: center; font-size: 0.85rem;
}
.avatar.lg { width: 96px; height: 96px; }
.avatar.lg .avatar-badge { width: 34px; height: 34px; font-size: 1.1rem; }

.tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  background: var(--mint-soft); color: var(--teal-dark); font-size: 0.8125rem; font-weight: 600;
}
.tag-sample { background: #fff3c4; color: #5c4d00; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Steps */
.steps-wrap { display: grid; gap: 14px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; counter-increment: step; }
.steps li::before {
  content: counter(step); width: 36px; height: 36px; border-radius: 50%;
  background: var(--lime); color: var(--ink); font-weight: 800; display: grid; place-items: center;
}
.steps strong { display: block; }
.steps span { color: var(--muted); font-size: 0.9375rem; }

/* Browse */
.page-head { padding: 28px 0 8px; }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; margin-bottom: 14px; }
.filters label { font-size: 0.8125rem; margin-bottom: 4px; }
.results-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; min-height: 44px; }
.link-btn { background: none; border: 0; padding: 10px 0; font: inherit; font-weight: 700; color: var(--teal); text-decoration: underline; cursor: pointer; }
.empty { text-align: center; padding: 36px 18px; }

/* Profile */
.back-link { display: inline-block; padding: 14px 0; font-weight: 600; text-decoration: none; }
.profile { display: grid; gap: 16px; padding-bottom: 96px; }
.profile-head { display: flex; gap: 16px; align-items: center; }
.profile-head h1 { font-size: 1.6rem; margin-bottom: 4px; }
.profile-block { margin-top: 22px; }
.profile-block h2 { font-size: 1.15rem; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.fact { background: var(--sand); border-radius: 12px; padding: 12px; }
.fact dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.fact dd { margin: 2px 0 0; font-weight: 800; }
.list-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-check li { padding-left: 26px; position: relative; }
.list-check li::before { content: "✓"; position: absolute; left: 0; color: var(--teal); font-weight: 800; }
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
  background: var(--white); border-top: 1px solid var(--line);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}

/* Footer */
.site-footer { background: var(--teal-dark); color: #cfe6e3; padding: 32px 0; font-size: 0.9rem; }
.site-footer a { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 12px 0; }
.footer-links a { padding: 6px 0; }
.site-footer .logo { display: inline-block; }

/* Larger screens */
@media (min-width: 720px) {
  h1 { font-size: 2.75rem; }
  h2 { font-size: 1.875rem; }
  .section { padding: 64px 0; }
  .container { padding: 0 24px; }
  .menu-toggle { display: none; }
  .nav { display: flex; flex-direction: row; align-items: center; gap: 22px; padding: 0; }
  .nav a { padding: 8px 0; }
  .nav a.btn { margin: 0; padding: 10px 18px; min-height: 42px; }
  .hero { padding: 64px 0 72px; }
  .search-card { grid-template-columns: 1fr 1fr auto; align-items: end; padding: 20px; max-width: 760px; }
  .paths, .steps-wrap { grid-template-columns: 1fr 1fr; }
  .sport-grid { grid-template-columns: repeat(4, 1fr); }
  .coach-grid { grid-template-columns: repeat(2, 1fr); }
  .filters { grid-template-columns: repeat(4, 1fr); padding: 18px; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .card-pad { padding: 28px; }
  .profile { grid-template-columns: 1.3fr 1fr; align-items: start; gap: 24px; padding-bottom: 48px; }
  .profile-form { position: sticky; top: 84px; }
  .sticky-cta { display: none; }
  .narrow { max-width: 680px; }
}
@media (min-width: 1000px) {
  .coach-grid { grid-template-columns: repeat(3, 1fr); }
}
