/*
 * Borgerweert brand layer — Variant A (photo first), chosen by the board in November 2026.
 *
 * Loaded after site.css, components.css and pages.css. It holds:
 *   1. Self-hosted Barlow / Barlow Condensed (SIL OFL, see ../fonts/OFL-Barlow.txt)
 *   2. Buttons (one system: primary = gravel clay, light, ghost)
 *   3. Home: photo hero, facts band, start cards, text-only fallbacks
 *   4. Photo intro for Tennis, Padel and Academy
 *
 * Colour and font tokens live in site.css (:root --bgw-*). Keep this file readable (not minified).
 */

/* 1. Fonts ------------------------------------------------------------------ */
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: italic; font-weight: 400; font-display: swap; src: url("../fonts/barlow-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/barlow-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/barlow-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700 900; font-display: swap; src: url("../fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); }

/* 2. Buttons ---------------------------------------------------------------- */
.bgw-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }

.bgw-button-primary,
.bgw-button-light,
.bgw-button-ghost,
.bgw-pages .bgw-page-button,
.reserve-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--bgw-radius);
  font: 600 1rem/1.1 var(--bgw-body);
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.bgw-button-primary,
.bgw-pages .bgw-page-button,
.reserve-link { background: var(--bgw-clay); color: #fff; }
.bgw-button-primary:hover,
.bgw-pages .bgw-page-button:hover,
.reserve-link:hover { background: var(--bgw-clay-dark); color: #fff; }
.bgw-button-light { background: #fff; color: var(--bgw-ink); }
.bgw-button-light:hover { background: var(--bgw-canvas); }
.bgw-button-ghost { border-color: currentColor; color: inherit; background: transparent; }
.bgw-button-ghost:hover { background: rgb(255 255 255 / 12%); }
.reserve-link { min-height: 44px; padding: .6rem 1rem; font-size: .9rem; }

/* Light buttons need an outline on light backgrounds. */
.bgw-home-actions .bgw-button-light { border-color: var(--bgw-ink); }

.bgw-pages .bgw-text-link { font-weight: 600; }

/* External links (e.g. Tennis en Padel Vlaanderen, mail) keep their outlined style, with the shared shape and type. */
.bgw-button { border-radius: var(--bgw-radius); font-family: var(--bgw-body); font-weight: 600; }

.wp-element-button,
.wp-block-button__link { border-radius: var(--bgw-radius); font-family: var(--bgw-body); font-weight: 600; }

/* 3. Home ------------------------------------------------------------------- */
.bgw-home-photo-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(30rem, 72vh, 44rem);
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--bgw-deep);
}
.bgw-home-photo-hero__image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}
.bgw-home-photo-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgb(20 24 26 / 55%) 0%, rgb(20 24 26 / 20%) 45%, rgb(20 24 26 / 0%) 70%),
    linear-gradient(180deg, rgb(20 24 26 / 40%) 0%, rgb(20 24 26 / 8%) 30%, rgb(20 24 26 / 45%) 60%, rgb(20 24 26 / 88%) 100%);
}
.bgw-home-photo-hero.is-text-only { min-height: 0; }
.bgw-home-photo-hero.is-text-only::before { display: none; }
.bgw-home-photo-hero__copy {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  padding: clamp(5rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem) clamp(2.25rem, 5vw, 4rem);
}
.bgw-home-photo-hero .bgw-eyebrow { margin: 0; color: var(--bgw-peach); }
.bgw-home-photo-hero h1 { margin: 0; color: #fff; font-size: var(--bgw-type-hero); }
.bgw-home-photo-hero h1 em { font-style: normal; color: inherit; }
.bgw-home-photo-hero .bgw-home-lead { max-width: 46ch; margin: 0; color: rgb(255 255 255 / 92%); font-size: clamp(1.05rem, 1.6vw, 1.2rem); line-height: 1.55; }

.bgw-home-facts { color: #fff; background: var(--bgw-deep); }
.bgw-home-facts ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
.bgw-home-facts li { max-width: none; }
.bgw-home-facts li + li { border-left: 1px solid rgb(255 255 255 / 16%); }
.bgw-home-facts a { display: grid; gap: .3rem; height: 100%; padding: 1.5rem clamp(1rem, 3vw, 2.5rem); color: inherit; text-decoration: none; }
.bgw-home-facts a:hover { background: rgb(255 255 255 / 6%); }
.bgw-home-facts strong { color: var(--bgw-peach); font: 700 clamp(2.25rem, 4vw, 3rem)/1 var(--bgw-display); }
.bgw-home-facts span { font-size: .95rem; line-height: 1.35; }

.bgw-home-start { padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 4rem); }
.bgw-home-start header .bgw-eyebrow { margin: 0; }
.bgw-home-start h2 { margin: .35em 0 0; font-size: var(--bgw-type-section); }
.bgw-start-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); margin-top: 2rem; }
.bgw-start-cards > a {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 8px;
  color: inherit;
  background: var(--bgw-paper);
  box-shadow: 0 1px 2px rgb(33 35 36 / 6%), 0 8px 24px rgb(33 35 36 / 8%);
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.bgw-start-cards > a:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgb(33 35 36 / 8%), 0 14px 32px rgb(33 35 36 / 12%); }
.bgw-start-cards__media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--bgw-deep); }
.bgw-start-cards__media img { width: 100%; height: 100%; object-fit: cover; }
.bgw-start-cards__media > span {
  position: absolute;
  top: .75rem;
  left: .75rem;
  padding: .4rem .55rem;
  border-radius: 4px;
  background: var(--bgw-paper);
  font: 600 .72rem/1 var(--bgw-body);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.bgw-start-cards__copy { display: grid; align-content: start; gap: .4rem; padding: 1.1rem 1.25rem 1.4rem; }
.bgw-start-cards__copy strong { font: 700 1.6rem/1.1 var(--bgw-display); }
.bgw-start-cards__copy small { color: var(--bgw-text); font-size: 1rem; line-height: 1.5; }
.bgw-start-cards__copy em { margin-top: .35rem; color: var(--bgw-clay); font-style: normal; font-weight: 600; }

/* Photos already used higher on the page are not repeated: these sections then become text-only bands. */
.bgw-home-about.is-text-only {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  color: #fff;
  background: var(--bgw-deep);
  overflow: hidden;
}
.bgw-home-about.is-text-only::after {
  /* Tennis court lines as a quiet graphic motif. */
  content: "";
  position: absolute;
  top: 2rem;
  right: -6rem;
  bottom: 2rem;
  width: min(48%, 34rem);
  border: 2px solid rgb(250 247 242 / 18%);
  background:
    linear-gradient(rgb(250 247 242 / 18%), rgb(250 247 242 / 18%)) 50% 0 / 2px 100% no-repeat,
    linear-gradient(rgb(250 247 242 / 18%), rgb(250 247 242 / 18%)) 0 22% / 100% 2px no-repeat,
    linear-gradient(rgb(250 247 242 / 18%), rgb(250 247 242 / 18%)) 0 78% / 100% 2px no-repeat;
  pointer-events: none;
}
.bgw-home-about.is-text-only > section { position: relative; z-index: 1; max-width: 46rem; }
.bgw-home-about.is-text-only .bgw-eyebrow { color: var(--bgw-peach); }
.bgw-home-cafe.is-text-only { grid-template-columns: minmax(0, 1fr); background: var(--bgw-peach); }

/* 4. Photo intro (Tennis, Padel, Academy) ------------------------------------ */
.bgw-photo-intro {
  --tone: var(--bgw-peach);
  --shade: 20 24 26;
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(22rem, 52vh, 32rem);
  align-items: end;
  overflow: hidden;
  border-bottom: 8px solid var(--tone);
  color: #fff;
  background: rgb(var(--shade));
}
.bgw-photo-intro--padel { --tone: var(--bgw-blue); }
.bgw-photo-intro--academy { --tone: var(--bgw-peach); --shade: 33 76 89; }
.bgw-photo-intro__image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.bgw-photo-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgb(var(--shade) / 92%) 0%, rgb(var(--shade) / 72%) 42%, rgb(var(--shade) / 15%) 100%);
}
.bgw-photo-intro__copy { display: grid; gap: .9rem; max-width: 44rem; padding: clamp(3rem, 7vw, 5.5rem) clamp(1rem, 4vw, 4rem); }
.bgw-photo-intro .bgw-eyebrow { margin: 0; color: var(--tone); }
.bgw-photo-intro h1 { margin: 0; color: #fff; font-size: var(--bgw-type-page); }
.bgw-photo-intro h1 em { font-style: normal; color: inherit; }
.bgw-photo-intro__copy > p:not(.bgw-eyebrow) { max-width: 46ch; margin: 0; color: rgb(255 255 255 / 92%); font-size: clamp(1.05rem, 1.5vw, 1.15rem); line-height: 1.55; }

/* 5. Academy ------------------------------------------------------------------ */
/* Audience chips in the photo intro (replace the former four large tiles). */
.bgw-chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.bgw-chips a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .55rem 1.1rem;
  border: 2px solid rgb(255 255 255 / 75%);
  border-radius: 999px;
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}
.bgw-chips a:hover { background: rgb(255 255 255 / 14%); }
.bgw-chips a.is-primary { border-color: #fff; background: #fff; color: var(--bgw-deep); }
.bgw-chips a.is-primary:hover { background: var(--bgw-canvas); }

/* Kidstennis colour levels. */
.bgw-level-dot {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: .85em;
  height: .85em;
  margin-right: .55em;
  border: 1.5px solid var(--bgw-ink);
  border-radius: 50%;
  vertical-align: -.05em;
  background: var(--level);
  color: var(--level-ink, var(--bgw-ink));
  font: 700 .9rem/1 var(--bgw-display);
  font-style: normal;
}
.bgw-level-dot--wit { --level: #fff; }
.bgw-level-dot--blauw { --level: #2f6fb7; --level-ink: #fff; }
.bgw-level-dot--rood { --level: #c8332b; --level-ink: #fff; }
.bgw-level-dot--oranje { --level: #ee8a2a; }
.bgw-level-dot--groen { --level: #3f8f4f; --level-ink: #fff; }
.bgw-level-dot--geel { --level: #f2d43b; }

.bgw-academy-kids { display: grid; gap: clamp(1.75rem, 3vw, 2.5rem); padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 4vw, 4rem); background: var(--bgw-canvas); }
.bgw-academy-kids > header { display: grid; gap: .6rem; max-width: 48rem; }
.bgw-academy-kids > header > * { margin: 0; }
.bgw-academy-kids h2 { font-size: var(--bgw-type-section); }
.bgw-academy-kids > header > p:not(.bgw-eyebrow) { color: var(--bgw-text); font-size: 1.1rem; }

.bgw-level-track { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr)); gap: 1.25rem 1rem; margin: 0; padding: 0; list-style: none; }
.bgw-level-track::before {
  /* Dashed path connecting the levels (wide screens only). */
  content: "";
  position: absolute;
  top: 1.45rem;
  right: 0;
  left: 1.5rem;
  border-top: 2px dashed rgb(33 35 36 / 30%);
}
.bgw-level-track li { max-width: none; }
.bgw-level-track a { position: relative; display: grid; justify-items: start; gap: .2rem; color: inherit; text-decoration: none; }
.bgw-level-track a:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.bgw-level-track .bgw-level-dot { width: 2.9rem; height: 2.9rem; margin: 0 0 .5rem; border-width: 2px; font-size: 1.05rem; }
.bgw-level-track strong { font: 700 1.4rem/1.1 var(--bgw-display); }
.bgw-level-track__ages { font-weight: 600; }
.bgw-level-track small { color: var(--bgw-text); font-size: .9rem; line-height: 1.4; hyphens: auto; overflow-wrap: break-word; }
.bgw-level-track li { min-width: 0; }

.bgw-academy-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.5rem); }
.bgw-academy-card {
  display: grid;
  align-content: start;
  gap: .5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-radius: 8px;
  background: var(--bgw-paper);
  box-shadow: 0 1px 2px rgb(33 35 36 / 6%), 0 8px 24px rgb(33 35 36 / 8%);
}
.bgw-academy-card > * { margin: 0; }
.bgw-academy-card h3 { font-size: var(--bgw-type-card); }
.bgw-academy-card > p:not(.bgw-academy-card__status) { color: var(--bgw-text); }
.bgw-academy-card__status { display: flex; align-items: center; gap: .5rem; color: var(--bgw-deep); font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.bgw-academy-card__status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.bgw-academy-card--stage .bgw-academy-card__status { color: var(--success, #2e6547); }
.bgw-academy-card .bgw-actions { align-items: center; margin-top: .5rem; }
.bgw-academy-card .bgw-actions .bgw-text-link { margin: 0; }
.bgw-academy-card--stage .bgw-button { border-color: var(--bgw-clay); background: var(--bgw-clay); color: #fff; }
.bgw-academy-card--stage .bgw-button:hover { border-color: var(--bgw-clay-dark); background: var(--bgw-clay-dark); }

/* 6. Reservations: guest contribution per season ---------------------------- */
.bgw-guest-season { margin-top: 1.25rem; }
.bgw-guest-season h4 { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .4rem; font: 700 1.15rem/1.2 var(--bgw-display); }
.bgw-guest-season h4 span {
  padding: .25rem .55rem;
  border: 1px solid var(--bgw-line);
  border-radius: 999px;
  font: 600 .7rem/1.2 var(--bgw-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.bgw-guest-season.is-current h4 span { border-color: #2e6547; background: #2e6547; color: #fff; }
.bgw-guest-season ul { margin: 0; padding: 0; list-style: none; }
.bgw-guest-season li { display: flex; max-width: none; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--bgw-line); }
.bgw-guest-season li strong { white-space: nowrap; }
.bgw-guest-season:not(.is-current) { color: var(--bgw-text); font-size: .92rem; }
.bgw-guest-season.is-current + .bgw-guest-season { margin-top: 1.75rem; }

/* 7. Membership: season-aware page ------------------------------------------- */
.bgw-anchor { display: block; position: relative; top: -6rem; visibility: hidden; }
.bgw-now-badge { display: inline-flex; align-items: center; gap: .45rem; color: #2e6547; }
.bgw-now-badge::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: currentColor; }
.bgw-membership-grid--single { grid-template-columns: minmax(0, 32rem); }
.bgw-membership-grid--single.has-notice { grid-template-columns: minmax(0, 32rem) minmax(0, 1fr); align-items: start; }
.bgw-membership-grid--single .bgw-membership-notice { margin: 0; }
.bgw-membership-notice {
  display: grid;
  gap: .4rem;
  max-width: 52rem;
  margin: 0 clamp(1rem, 3vw, 2.5rem) clamp(3rem, 6vw, 5rem);
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border-left: 4px solid var(--bgw-peach);
  border-radius: 0 8px 8px 0;
  background: var(--bgw-paper);
}
.bgw-membership-notice > * { margin: 0; }
.bgw-membership-notice h3 { font-size: var(--bgw-type-card); }
.bgw-membership-notice > p:not(.bgw-eyebrow) { color: var(--bgw-text); }
.bgw-membership__prorata { margin: .75rem 0 0; padding: .6rem .8rem; border-left: 3px solid var(--bgw-peach); background: var(--bgw-canvas); color: var(--bgw-text); font-size: .9rem; line-height: 1.45; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 760px) {
  .bgw-home-facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgw-home-facts li:nth-child(3) { border-left: 0; }
  .bgw-home-facts li:nth-child(n + 3) { border-top: 1px solid rgb(255 255 255 / 16%); }
  .bgw-start-cards { grid-template-columns: minmax(0, 1fr); }
  .bgw-start-cards__media { aspect-ratio: 16 / 9; }
  /* On phones the photo becomes a band above the text, so it stays visible. */
  .bgw-photo-intro { min-height: 0; align-items: start; }
  .bgw-photo-intro__image { position: static; z-index: auto; aspect-ratio: 16 / 9; height: auto; }
  .bgw-photo-intro::before { display: none; }
  .bgw-photo-intro__copy { padding-top: 1.75rem; padding-bottom: 2.25rem; }
  .bgw-home-about.is-text-only::after { display: none; }
  .bgw-level-track { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .bgw-level-track::before { display: none; }
  .bgw-academy-cards { grid-template-columns: minmax(0, 1fr); }
  .bgw-membership-grid--single,
  .bgw-membership-grid--single.has-notice { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .bgw-level-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bgw-home-photo-hero .bgw-actions > a,
  .bgw-photo-intro .bgw-actions > a { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .bgw-start-cards > a { transition: none; }
  .bgw-start-cards > a:hover { transform: none; }
}
@media (forced-colors: active) {
  .bgw-button-primary, .bgw-button-light, .bgw-pages .bgw-page-button { border-color: ButtonText; }
}
