/* Weightlifting Club Hoorn -- house style.
   The colours are taken from the club crest itself: navy #00295b, red #9b0000, gold #9e6b18.
   Two of them are used a shade lighter than the crest for text, because the crest versions do not
   reach the 4.5:1 contrast that small text needs on a dark background.
   Headings in Poppins, body text in Sora, both self-hosted so that no request goes to
   Google on every visit. */

/* ---- fonts --------------------------------------------------------------------- */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/font/poppins-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/font/poppins-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/font/poppins-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/static/font/poppins-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/font/sora-variable-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC,
    U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
    U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Sora';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('/static/font/sora-variable-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304,
    U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
    U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- variables ----------------------------------------------------------------- */
:root {
  --navy: #00295b;
  --navy-deep: #001b3d;
  --red: #9b0000;
  --red-light: #e74c4c; /* used for link hover, so it needs 4.5:1 too */
  --gold: #b47a1b;   /* light enough for small text: 4.9:1 on the surface colour */
  --black: #0b0c0f;
  --surface: #14161c;
  --surface-border: #23262f;
  --white: #f4f5f7;
  --grey: #b3b9c4;

  --font-heading: 'Poppins', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Sora', ui-sans-serif, system-ui, sans-serif;
  --width: 72rem;
  --radius: 0.5rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  text-wrap: pretty;
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
  margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.2rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 1.6em 0 0.5em;
}

p { margin: 0 0 1.1em; }

a { color: var(--white); text-decoration-color: var(--red-light); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red-light); }

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

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: -9999px;
  background: var(--white);
  color: var(--navy-deep);
  padding: 0.6rem 1rem;
  z-index: 10;
}
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---- site header --------------------------------------------------------------- */
.site-header {
  background: var(--navy-deep);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
}
.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__logo { width: 2.75rem; height: 2.75rem; }
.brand__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.nav { margin-left: auto; }
.nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav a {
  text-decoration: none;
  font-size: 0.95rem;
  color: var(--grey);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}
.nav a:hover { color: var(--white); border-bottom-color: var(--red); }
.nav a[aria-current='page'] { color: var(--white); border-bottom-color: var(--gold); }

.lang-switch {
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--grey);
  border: 1px solid var(--surface-border);
  border-radius: 2rem;
  padding: 0.2rem 0.8rem;
}
.lang-switch:hover { color: var(--white); border-color: var(--red); }

/* ---- sections ------------------------------------------------------------------ */
.section {
  max-width: var(--width);
  margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}
.section--narrow { max-width: 44rem; }
.section--dark {
  max-width: none;
  background: linear-gradient(180deg, var(--surface) 0%, var(--black) 100%);
  border-top: 1px solid var(--surface-border);
  border-bottom: 1px solid var(--surface-border);
}
.section--dark > * {
  max-width: var(--width);
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4em;
}

.split { display: grid; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; }
@media (min-width: 48rem) {
  .split { grid-template-columns: 1.1fr 1fr; }
  .split--reversed .split__text { order: 2; }
  .split__media--portrait { max-width: 22rem; }
}
.split__media img { border-radius: var(--radius); border: 1px solid var(--surface-border); }

.signpost { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 0.5rem; }
.signpost a {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  background: var(--navy);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.6rem 1.1rem;
}
.signpost a:hover { background: var(--red); color: var(--white); }

/* ---- video --------------------------------------------------------------------- */
.video { margin: clamp(2rem, 5vw, 3.5rem) auto; max-width: 48rem; }
.video video { width: 100%; border-radius: var(--radius); border: 1px solid var(--surface-border); background: #000; }
.video figcaption, .highlight figcaption {
  margin-top: 0.6rem;
  font-size: 0.9rem;
  color: var(--grey);
}

/* ---- track record -------------------------------------------------------------- */
.track-record {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  margin-top: clamp(2rem, 5vw, 3rem);
}
@media (min-width: 60rem) {
  .track-record { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .list:last-child { grid-column: 1 / -1; }
}
.list {
  background: rgba(0, 41, 91, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.list h3 { border-bottom: 2px solid var(--red); padding-bottom: 0.4rem; }
.list h4:first-of-type { margin-top: 0.8em; }

.entries { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.entries li { display: grid; gap: 0.1rem; }
.entry__text { font-weight: 600; line-height: 1.4; }
.entry__detail { color: var(--grey); font-size: 0.92rem; line-height: 1.5; }

@media (min-width: 60rem) {
  .list:last-child .entries { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 2rem; }
}

/* ---- highlights ---------------------------------------------------------------- */
.highlights { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
@media (min-width: 48rem) {
  .highlights { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.highlight { margin: 0; }
.highlight img { border-radius: var(--radius); border: 1px solid var(--surface-border); }

/* ---- footer -------------------------------------------------------------------- */
.footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.95rem;
}
.footer__inner {
  max-width: var(--width);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3rem) 1.25rem;
  display: grid;
  gap: 2rem;
}
@media (min-width: 48rem) {
  .footer__inner { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.footer h2 { font-size: 1rem; letter-spacing: 0.06em; text-transform: uppercase; }
.footer address { font-style: normal; color: var(--grey); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.footer__list--row { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: center; }
.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1rem 1.25rem;
  color: var(--grey);
}
.footer a { color: var(--grey); text-decoration: none; }
.footer a:hover { color: var(--white); text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---- buttons ------------------------------------------------------------------- */
.button {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--white);
  background: var(--red);
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.7rem 1.4rem;
  cursor: pointer;
}
.button:hover { background: var(--red-light); color: var(--white); }
.button--quiet { background: transparent; border-color: var(--surface-border); }
.button--quiet:hover { background: var(--navy); border-color: var(--red); }
.centered { text-align: center; margin-top: 2rem; }

/* ---- hero ---------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--navy-deep);
  overflow: hidden;
}
.hero__background {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}
.hero--image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(11, 12, 15, 0.35) 0%, rgba(11, 12, 15, 0.85) 100%);
}
.hero__text {
  max-width: var(--width);
  margin: 0 auto;
  padding: clamp(3rem, 9vw, 7rem) 1.25rem;
}
.hero--image .hero__text { max-width: min(var(--width), 100%); }
.hero__text > * { max-width: 46rem; }
.hero__subheading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(1.05rem, 0.9rem + 0.8vw, 1.4rem);
  color: var(--white);
}
.hero__text .button { margin-top: 0.6rem; }

/* ---- cards --------------------------------------------------------------------- */
/* Flexible instead of a fixed number of columns: there are four cards on the home page and
   five on /aanbod, and this keeps the last row centred instead of leaving one card sitting
   alone on the left. */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 2rem;
}
.card {
  flex: 1 1 20rem;
  max-width: 26rem;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  overflow: hidden;
}
.card picture img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.card__text { padding: 1.25rem 1.25rem 1.5rem; }
.card__text h3 { margin-bottom: 0.4em; }
.card__text p { margin: 0; color: var(--grey); }

/* ---- people -------------------------------------------------------------------- */
.people { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); margin-top: 2rem; }
@media (min-width: 44rem) { .people { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.person {
  display: grid;
  gap: 1.25rem;
  align-items: start;
  grid-template-columns: minmax(0, 9rem) minmax(0, 1fr);
}
.person picture img {
  border-radius: var(--radius);
  border: 1px solid var(--surface-border);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  width: 100%;
}
.person__text h3 { margin-bottom: 0.1em; }
.person__role {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.6em;
}
.person__text p:last-child { margin: 0; color: var(--grey); }

/* ---- faq ----------------------------------------------------------------------- */
.faq { display: grid; gap: 0.75rem; margin-top: 1.5rem; }
.faq__item {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
}
.faq__item summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.4;
}
.faq__item summary::marker { color: var(--red-light); }
.faq__item[open] summary { border-bottom: 1px solid var(--surface-border); }
.faq__item p { margin: 0; padding: 1rem 1.25rem; color: var(--grey); }

/* ---- rates --------------------------------------------------------------------- */
.note { color: var(--grey); max-width: 46rem; }
.rates { display: grid; gap: clamp(1.25rem, 3vw, 2rem); margin-top: 2rem; }
@media (min-width: 48rem) { .rates { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.rate {
  background: rgba(0, 41, 91, 0.35);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem);
}
.rate h3 { border-bottom: 2px solid var(--red); padding-bottom: 0.4rem; margin-bottom: 0.8rem; }
.rate__note { color: var(--grey); font-size: 0.92rem; }
.rate__entries { margin: 0; display: grid; gap: 0.6rem; }
.rate__entry {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  border-bottom: 1px dotted var(--surface-border);
  padding-bottom: 0.5rem;
}
.rate__entry:last-child { border-bottom: 0; padding-bottom: 0; }
.rate__entry dt { color: var(--white); }
.rate__entry dd { margin: 0 0 0 auto; font-family: var(--font-heading); font-weight: 600; white-space: nowrap; }

/* ---- form ---------------------------------------------------------------------- */
.split--form { align-items: start; }
@media (min-width: 48rem) { .split--form { grid-template-columns: 1.2fr 1fr; } }
.form { display: grid; gap: 1rem; margin-top: 1.5rem; max-width: 32rem; }
.form__field { display: grid; gap: 0.35rem; margin: 0; }
.form__field label { font-size: 0.9rem; color: var(--grey); }
.form__required { color: var(--gold); }
.form input, .form textarea {
  font: inherit;
  color: var(--white);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius);
  padding: 0.6rem 0.75rem;
  width: 100%;
}
.form input:focus, .form textarea:focus { border-color: var(--gold); }
.form__honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.notice {
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  border: 1px solid;
}
.notice ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }
.notice--success { background: rgba(0, 90, 40, 0.25); border-color: #2f8f5b; }
.notice--error { background: rgba(155, 0, 0, 0.25); border-color: var(--red-light); }
.notice--warn { background: color-mix(in srgb, var(--gold) 20%, transparent); border-color: var(--gold); }

.contact-details h3 { margin-top: 1.5em; }
.contact-details address { font-style: normal; color: var(--grey); }

/* ---- schedule ------------------------------------------------------------------ */
.schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  text-align: left;
}
.schedule th, .schedule td {
  border-bottom: 1px solid var(--surface-border);
  padding: 0.85rem 0.5rem;
  vertical-align: top;
}
.schedule th {
  font-family: var(--font-heading);
  font-weight: 600;
  width: 10rem;
}
.schedule__classes { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.schedule__classes li { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
.schedule__time { font-variant-numeric: tabular-nums; min-width: 8rem; }
.schedule__level { color: var(--gold); }
.schedule__empty th, .schedule__none { color: var(--grey); font-weight: 400; }

/* ---- running text (privacy, terms) --------------------------------------------- */
.prose h2 { font-size: 1.3rem; margin-top: 2em; }
.prose section:first-of-type h2 { margin-top: 1.2em; }
.prose ul { color: var(--grey); padding-left: 1.2rem; display: grid; gap: 0.4rem; }
.updated { color: var(--grey); font-size: 0.9rem; }
