/* Coach Journal — korfbal landing (light/dark via system preference) */

:root {
  color-scheme: light dark;

  --bg: #f7f8fa;
  --bg-elevated: #ffffff;
  --text: #111827;
  --text-muted: #4b5563;
  --primary: #1e3a8a;
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --korf: #ffc107;
  --border: #e5e7eb;
  --shadow: 0 1px 3px rgb(15 23 42 / 8%), 0 8px 24px rgb(15 23 42 / 6%);
  --badge-bg: rgb(30 58 138 / 8%);
  --badge-text: #1e3a8a;
  --cta-disabled: #9ca3af;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f172a;
    --bg-elevated: #1e293b;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --primary: #93c5fd;
    --accent: #60a5fa;
    --accent-hover: #93c5fd;
    --korf: #fcd34d;
    --border: #334155;
    --shadow: 0 1px 3px rgb(0 0 0 / 30%), 0 8px 24px rgb(0 0 0 / 25%);
    --badge-bg: rgb(147 197 253 / 12%);
    --badge-text: #bfdbfe;
    --cta-disabled: #64748b;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue',
    Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--accent-hover);
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.hero-wrap {
  position: relative;
  width: 100%;
  margin: 0;
  padding: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 5vw, 2rem)
    clamp(2.75rem, 7vw, 4rem);
  flex-shrink: 0;
  isolation: isolate;
  background: var(--bg) url('../assets/korfball-court.png') center 35% / cover
    no-repeat;
}

.hero-wrap__scrim {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgb(247 248 250 / 0.94) 0%,
    rgb(247 248 250 / 0.88) 28%,
    rgb(247 248 250 / 0.72) 55%,
    rgb(247 248 250 / 0.45) 100%
  );
}

@media (prefers-color-scheme: dark) {
  .hero-wrap__scrim {
    background: linear-gradient(
      180deg,
      rgb(15 23 42 / 0.93) 0%,
      rgb(15 23 42 / 0.86) 30%,
      rgb(15 23 42 / 0.72) 58%,
      rgb(15 23 42 / 0.55) 100%
    );
  }
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0;
  max-width: 44rem;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
}

.brand {
  margin-bottom: 1.75rem;
}

.brand-logo {
  width: min(440px, 90vw);
  height: auto;
  margin: 0 auto;
}

.brand-logo--dark {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .brand-logo--light {
    display: none;
  }

  .brand-logo--dark {
    display: block;
  }
}

.badge {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.35rem 0.85rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--badge-text);
  background: var(--badge-bg);
  border-radius: 999px;
  border: 1px solid var(--border);
}

.hero__title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 5.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero__subtitle {
  margin: 0 0 2rem;
  font-size: clamp(1.05rem, 2.8vw, 1.2rem);
  color: var(--text-muted);
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.75rem;
  font-size: 1.0625rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: 0.625rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  transition:
    background 0.15s ease,
    transform 0.15s ease;
  width: min(100%, 20rem);
}

.cta:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
}

.cta:focus-visible {
  outline: 2px solid var(--korf);
  outline-offset: 3px;
}

.cta--disabled {
  background: var(--cta-disabled);
  cursor: not-allowed;
  pointer-events: none;
}

.cta-hint {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
  max-width: 28ch;
}

.usps {
  padding: 0 clamp(1.25rem, 5vw, 2rem) clamp(2.5rem, 6vw, 3.5rem);
  max-width: 56rem;
  margin: 0 auto;
  width: 100%;
  flex-shrink: 0;
}

.usps__heading {
  margin: 0 0 1.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-muted);
}

.usps__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 640px) {
  .usps__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }
}

.usp-card {
  padding: 1.25rem 1.35rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.usp-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--korf));
  opacity: 0.85;
}

.usp-card__title {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.usp-card__body {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.site-footer {
  margin-top: auto;
  padding: 1.5rem clamp(1.25rem, 5vw, 2rem);
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin-bottom: 0.75rem;
}

.site-footer__label {
  font-weight: 500;
  color: var(--text-muted);
}

.lang-switch {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.5rem;
}

.lang-switch__btn {
  padding: 0.35rem 0.65rem;
  font-size: 0.8125rem;
  font-family: inherit;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: none;
  border-radius: 0.35rem;
  cursor: pointer;
  transition:
    background 0.12s ease,
    color 0.12s ease;
}

.lang-switch__btn:hover {
  color: var(--text);
  background: var(--badge-bg);
}

.lang-switch__btn--active {
  color: var(--text);
  background: var(--bg-elevated);
  box-shadow: 0 1px 2px rgb(15 23 42 / 8%);
}

@media (prefers-color-scheme: dark) {
  .lang-switch__btn--active {
    box-shadow: 0 1px 2px rgb(0 0 0 / 35%);
  }
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.site-footer__meta {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 0.75rem;
}

.site-footer__meta a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

.site-footer__meta a:hover {
  color: var(--accent);
}

.site-footer__sep {
  opacity: 0.45;
}
