/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Alberta Soccer Brand Palette */
  --navy:      #0A2240;
  --navy-deep: #051C2C;
  --sky:       #54C8E8;
  --sky-light: #95D4EB;
  --green:     #00B189;
  --coral:     #FF5C35;
  --gold:      #FFB600;
  --white:     #FFFFFF;
  --sky-tint:  #B8D8EB;
  --green-tint:#A6E1CE;
  --coral-tint:#FFC1AB;
  --gold-tint: #FEE299;

  --gray:   #f5f5f5;
  --border: #e2e2e2;
  --text:   #1a1a1a;
  --muted:  #555555;

  --radius: 10px;
  --shadow: 0 2px 16px rgba(10,34,64,0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 3px solid var(--sky);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo-img {
  height: 80px;
  width: auto;
  display: block;
  mix-blend-mode: lighten;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--sky); }

.nav-cta {
  background: var(--sky);
  color: var(--navy) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background 0.2s !important;
}

.nav-cta:hover { background: var(--sky-light) !important; }

.nav-burger {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  background: var(--navy-deep);
  padding: 12px 24px 20px;
}

.nav-mobile.open { display: flex; }
.nav-mobile li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.nav-mobile a { color: rgba(255,255,255,0.85); font-size: 1rem; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  background-image: url('assets/hero-bg');
  background-size: cover;
  background-position: center 30%;
  padding: 80px 24px;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10,34,64,0.88) 0%,
    rgba(10,34,64,0.70) 50%,
    rgba(5,28,44,0.75) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  margin: 0 auto;
}

.hero-logos {
  height: 56px;
  width: auto;
  display: block;
  margin-bottom: 28px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.80);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--sky);
  color: var(--navy);
  border-color: var(--sky);
}

.btn-primary:hover { background: var(--sky-light); border-color: var(--sky-light); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.45);
}

.btn-ghost:hover { border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
  font-weight: 700;
}

.btn-white:hover { background: var(--sky-tint); }

/* ── Stats Bar ── */
.stats-bar {
  background: var(--sky);
  padding: 32px 24px;
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy);
  line-height: 1;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--navy-deep);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 6px;
}

/* ── Sections ── */
.section { padding: 80px 24px; }
.section-dark { background: var(--navy); color: var(--white); }
.section-navy { background: var(--navy-deep); color: var(--white); }

.container {
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--sky);
  margin-bottom: 10px;
}

.section-dark .section-label,
.section-navy .section-label { color: var(--sky); }
.label-light { color: var(--sky-light) !important; }

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-dark h2,
.section-navy h2 { color: var(--white); }

.section-intro {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 700px;
  margin-bottom: 52px;
  line-height: 1.75;
}

.section-dark .section-intro,
.section-navy .section-intro { color: rgba(255,255,255,0.65); }

/* ── About Cards ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--sky);
  transition: box-shadow 0.2s, transform 0.2s;
}

.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.card-icon {
  width: 44px;
  height: 44px;
  background: var(--navy);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon svg {
  width: 22px;
  height: 22px;
  color: var(--sky);
}

.card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}

.card p { font-size: 0.9rem; color: var(--muted); line-height: 1.65; }

/* ── Category Cards ── */
.levels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.level-card {
  border-radius: var(--radius);
  padding: 32px 28px;
  border-top: 4px solid;
  background: rgba(255,255,255,0.05);
  border-left: 1px solid rgba(255,255,255,0.1);
  border-right: 1px solid rgba(255,255,255,0.1);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.level-1 { border-top-color: var(--sky); }
.level-2 { border-top-color: var(--green); }
.level-3 { border-top-color: var(--gold); }

.level-number {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.level-1 .level-number { color: var(--sky-light); }
.level-2 .level-number { color: var(--green-tint); }
.level-3 .level-number { color: var(--gold-tint); }

.level-name {
  font-size: 1.7rem;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}

.level-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
}

.pathway-note {
  text-align: center;
  color: rgba(255,255,255,0.55);
  font-size: 0.9rem;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,0.2);
  border-radius: 8px;
}

.pathway-note strong { color: var(--sky); }

/* ── Pathway Section ── */
.pathway-graphic-wrapper {
  background: #f8f9fa;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  margin-bottom: 40px;
  text-align: center;
}

.pathway-graphic {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

.pathway-explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.pathway-explain-card {
  background: var(--gray);
  border-radius: var(--radius);
  padding: 28px;
  border: 1px solid var(--border);
  border-top: 4px solid var(--sky);
}

.pathway-explain-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.pathway-explain-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.pathway-explain-card p:last-child { margin-bottom: 0; }

.pathway-org-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}

.pathway-org-link {
  display: block;
  background: var(--white);
  border: 1.5px solid var(--sky);
  border-radius: 8px;
  padding: 14px 16px;
  transition: box-shadow 0.2s, transform 0.2s;
  text-decoration: none;
}

a.pathway-org-link:hover {
  box-shadow: 0 4px 12px rgba(84,200,232,0.2);
  transform: translateY(-1px);
}

.pathway-org-link-soon {
  border-color: var(--border);
  cursor: default;
  opacity: 0.7;
}

.pathway-org-link-name {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.pathway-org-link-sub {
  font-size: 0.8rem;
  color: var(--muted);
}

a.pathway-org-link .pathway-org-link-sub { color: var(--sky); }

@media (max-width: 768px) {
  .pathway-explain-grid { grid-template-columns: 1fr; }
}

/* ── Metrics Strip ── */
.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.metric-item {
  background: var(--navy);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  border-bottom: 3px solid var(--sky);
}

.metric-value {
  display: block;
  font-size: 2rem;
  font-weight: 900;
  color: var(--sky);
  line-height: 1;
  margin-bottom: 6px;
}

.metric-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--white);
  margin-bottom: 4px;
}

.metric-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255,255,255,0.45);
}

@media (max-width: 640px) {
  .metrics-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ── Referee Directory ── */
.filters {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  align-items: center;
}

.filter-input, .filter-select {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}

.filter-input { min-width: 220px; flex: 1; max-width: 300px; }
.filter-select { min-width: 180px; }
.filter-input:focus, .filter-select:focus { border-color: var(--sky); }

.btn-reset {
  padding: 10px 18px;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover { border-color: var(--navy); color: var(--navy); }

.results-info {
  margin-bottom: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}

.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.referee-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.referee-table thead {
  background: var(--navy);
  color: var(--white);
}

.referee-table th {
  padding: 14px 16px;
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.referee-table th.sortable { cursor: pointer; user-select: none; }
.referee-table th.sortable:hover { background: var(--navy-deep); }

.sort-icon { opacity: 0.5; font-size: 0.75rem; }
.sort-icon.asc::after { content: '↑'; }
.sort-icon.desc::after { content: '↓'; }

.referee-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.referee-table tbody tr:last-child td { border-bottom: none; }
.referee-table tbody tr:hover { background: #f0f7fc; }

.name-cell { font-weight: 600; color: var(--navy); }

.badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.badge-north { background: #dbeafe; color: #1e3a5f; }
.badge-south { background: #fef3c7; color: #7a4f00; }
.badge-cat1  { background: #d0f0fa; color: #0a5f7a; }
.badge-cat2  { background: #d1f5eb; color: #005c4a; }
.badge-cat3  { background: #fef3c7; color: #7a4f00; }
.badge-obs   { background: #ffe8e2; color: #7a2a12; }

.class-pill {
  font-size: 0.875rem;
  color: var(--muted);
}

.class-district, .class-regional, .class-provincial, .class-national {}

.table-note {
  text-align: center;
  color: var(--muted);
  padding: 40px;
  font-size: 0.9rem;
}

/* ── Apply / Intake ── */
.apply-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}

.apply-content p {
  color: rgba(255,255,255,0.80);
  margin-bottom: 20px;
  line-height: 1.75;
}

.apply-details {
  list-style: none;
  margin-bottom: 32px;
}

.apply-details li {
  color: rgba(255,255,255,0.85);
  font-size: 0.95rem;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.apply-details li:last-child { border-bottom: none; }

.apply-contact {
  background: rgba(84,200,232,0.10);
  border-radius: var(--radius);
  padding: 32px;
  border: 1px solid rgba(84,200,232,0.25);
}

.apply-contact h3 { color: var(--sky); font-size: 1.2rem; margin-bottom: 8px; }
.apply-contact p { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-bottom: 16px; }

.contact-links { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

.contact-link {
  color: var(--sky);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(84,200,232,0.4);
  transition: text-decoration-color 0.2s;
}

.contact-link:hover { text-decoration-color: var(--sky); }

.resource-links { margin-bottom: 20px; }

.resource-links h4 {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: rgba(255,255,255,0.5);
  margin-bottom: 8px;
}

.resource-link {
  display: inline-block;
  color: var(--sky);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(84,200,232,0.3);
  transition: text-decoration-color 0.2s;
}

.resource-link:hover { text-decoration-color: var(--sky); }

.contact-orgs { display: flex; gap: 8px; flex-wrap: wrap; }

.org-pill {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.80);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  padding: 32px 24px;
  border-top: 3px solid var(--sky);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo-img {
  height: 70px;
  width: auto;
  opacity: 0.9;
}

.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  max-width: 600px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .apply-container { grid-template-columns: 1fr; gap: 32px; }
  .filter-input { max-width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; }
  .hero { padding: 60px 24px; min-height: 480px; }
  .hero-logos { height: 40px; }
}

@media (max-width: 480px) {
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .stat-number { font-size: 1.8rem; }
}
