/* Stichting BPO – design system (Figma homepage) */

:root {
  --red: #b71c1c;
  --red-dark: #8e1515;
  --red-soft: #f7eaea;
  --ink: #1a1a1a;
  --ink-soft: #3a3a3a;
  --muted: #6b6b6b;
  --line: #e6e6e6;
  --surface: #f4f4f4;
  --white: #ffffff;
  --charcoal: #222222;
  --charcoal-deep: #161616;
  --container: 1120px;
  --radius: 2px;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 1rem;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
}

.skip-link:focus {
  top: 1rem;
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible,
.nav-toggle:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

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

/* Full image visible, scaled into a frame (no hard crop) */
.img-frame {
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--surface);
}

.img-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

/* Fill frame edge-to-edge (intentional crop) */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

p {
  margin: 0 0 1rem;
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.25rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--red);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--red-dark);
}

.btn--light {
  background: var(--white);
  color: var(--red);
}

.btn--light:hover {
  background: var(--red-soft);
}

.btn--nav {
  white-space: nowrap;
}

.btn__arrow {
  font-size: 1rem;
  line-height: 1;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--ink);
  border-bottom: 1px solid transparent;
}

.text-link:hover {
  color: var(--red);
  border-bottom-color: var(--red);
}

/* Topbar + header */
.topbar {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar__inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 96px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  flex-shrink: 0;
}

.brand__logo {
  height: 68px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.brand__partner {
  height: 58px;
  width: auto;
  max-width: 96px;
  object-fit: contain;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.primary-nav__list {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

.primary-nav__list a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.primary-nav__list a:hover,
.primary-nav__list a.is-active {
  color: var(--red);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero – balanced horizontal inset, text toward center */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-rows: minmax(640px, calc(100vh - 12rem));
  align-items: stretch;
  gap: 1.5rem;
  width: 100%;
  min-height: 640px;
  height: auto;
  padding: 1.35rem clamp(1.25rem, 3vw, 2.5rem);
  box-sizing: border-box;
  background: var(--white);
  overflow: hidden;
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  min-width: 0;
  min-height: 0;
  height: 100%;
  width: 100%;
  max-width: 28rem;
  margin-left: auto;
  margin-right: 0;
  padding: 2.5rem 1.25rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--red);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  background: currentColor;
}

.eyebrow--light {
  color: #ffb4b4;
}

.section--flush {
  padding-top: 0;
  padding-bottom: 0;
}

.prose--wide {
  max-width: none;
  margin-bottom: 2rem;
}

.mt-lg {
  margin-top: 2rem;
}

.mt-md {
  margin-top: 1.5rem;
}

.mb-0 {
  margin-bottom: 0 !important;
}

.mb-sm {
  margin-bottom: 0.75rem;
}

.news-list-item__title {
  font-size: 1.45rem;
  text-transform: none;
  letter-spacing: 0;
}

.card-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
}

.form-heading {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem;
}

.trainer-card__image--placeholder img {
  max-height: 120px;
  width: auto;
  opacity: 0.7;
}

.hero__title {
  font-size: clamp(2.6rem, 4.6vw, 4.25rem);
  margin-bottom: 1.1rem;
  max-width: 11ch;
  line-height: 0.98;
}

.hero__title span {
  color: var(--red);
}

.hero__text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  max-width: 36ch;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.9rem;
}

.hero__media {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: 100%;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  place-items: center;
}

.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  object-position: center center;
}

.hero__badge {
  position: absolute;
  right: 1.5rem;
  bottom: 1.5rem;
  background: var(--white);
  padding: 0.85rem 1rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}

.hero__badge::before {
  content: "";
  display: block;
  width: 24px;
  height: 3px;
  background: var(--red);
  margin-bottom: 0.45rem;
}

/* Stats */
.stats {
  background: var(--charcoal);
  color: var(--white);
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stats__item {
  padding: 2rem 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stats__item:last-child {
  border-right: 0;
}

.stats__value {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.45rem;
}

.stats__label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section--surface {
  background: var(--surface);
}

.section__intro {
  max-width: 46rem;
  margin-bottom: 2.75rem;
}

.section__title {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  margin-bottom: 1rem;
}

.section__text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52ch;
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem 1.5rem 1.5rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.feature-card__num {
  color: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.55rem;
  margin-bottom: 0.85rem;
}

.feature-card p {
  color: var(--muted);
  flex: 1;
}

.feature-card .text-link {
  margin-top: 1rem;
  color: var(--red);
}

/* News */
.news-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 1.25rem;
}

.news-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.news-card__image {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--surface);
  display: grid;
  place-items: center;
}

.news-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.news-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.news-card__meta {
  color: var(--muted);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
}

.news-card h3 {
  font-size: 1.35rem;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.25;
}

.news-card p {
  color: var(--muted);
  margin: 0;
}

.news-card .text-link {
  margin-top: auto;
  color: var(--red);
}

.news-highlight {
  background: var(--charcoal);
  color: var(--white);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
}

.news-highlight__label {
  color: var(--red);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.news-highlight h3 {
  font-size: 1.8rem;
  margin-bottom: 1rem;
}

.news-highlight ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-highlight li a {
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 0.85rem;
}

.news-highlight li a:hover {
  color: #ffb4b4;
}

.news-highlight__date {
  display: block;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.8rem;
  margin-bottom: 0.25rem;
}

/* Split / talent */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 0;
  align-items: stretch;
  overflow: hidden;
  border: 1px solid var(--line);
}

.split__media {
  position: relative;
  background: var(--surface);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.split__media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}

.split__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.5rem clamp(1.5rem, 4vw, 4rem);
  background: var(--white);
}

.split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

/* Partners */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}

.partner-card {
  background: var(--white);
  border: 1px solid var(--line);
  height: 120px;
  display: grid;
  place-items: center;
  padding: 1.1rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

a.partner-card:hover {
  border-color: var(--red);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.partner-card img {
  width: 100%;
  height: 100%;
  max-height: 72px;
  object-fit: contain;
  object-position: center;
}

/* CTA + footer */
.cta-banner {
  background: var(--red);
  color: var(--white);
}

.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.75rem 0;
}

.cta-banner__title {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  max-width: 16ch;
}

.site-footer {
  background: var(--charcoal-deep);
  color: rgba(255, 255, 255, 0.82);
  padding-top: 3.5rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}

.site-footer__brand img {
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 1rem;
  background: var(--white);
  padding: 0.35rem;
}

.site-footer h3 {
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.site-footer h3 a {
  color: inherit;
  text-decoration: none;
}

.site-footer h3 a:hover {
  color: #ffb4b4;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a:hover {
  color: #ffb4b4;
}

.footer-social {
  margin-top: 1.15rem;
}

.footer-social__label {
  margin: 0 0 0.55rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb4b4;
}

.footer-social__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social__link:hover {
  color: var(--white);
  border-color: rgba(255, 180, 180, 0.55);
  background: rgba(183, 28, 28, 0.22);
}

.footer-social__icon {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}

.site-footer__bottom a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__bottom a:hover {
  color: #ffb4b4;
}

.news-archive-title {
  margin: 2.5rem 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.news-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.12rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  vertical-align: middle;
}

.form-row.has-error input,
.form-row.has-error select,
.form-row.has-error textarea {
  border-color: var(--red);
}

.field-error {
  margin: 0.35rem 0 0;
  color: var(--red-dark);
  font-size: 0.9rem;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem 1.05rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 3px solid var(--red);
  background: linear-gradient(160deg, rgba(183, 28, 28, 0.22) 0%, rgba(255, 255, 255, 0.04) 58%);
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.footer-contact:hover {
  border-color: rgba(255, 180, 180, 0.45);
  transform: translateY(-2px);
  color: var(--white);
}

.footer-contact__eyebrow {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb4b4;
}

.footer-contact__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.05;
  color: var(--white);
  letter-spacing: 0.02em;
}

.footer-contact__text {
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-weight: 600;
  color: #ffb4b4;
}

.footer-contact:hover .footer-contact__cta span {
  transform: translate(2px, -2px);
}

.footer-contact__cta span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1.1rem 0 1.4rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
}

.site-footer__bottom p {
  margin: 0;
}

/* Page chrome for subpages */
.page-hero {
  background:
    linear-gradient(120deg, rgba(22, 22, 22, 0.92), rgba(183, 28, 28, 0.72)),
    url("../img/hero-home.webp") center/cover no-repeat;
  color: var(--white);
  padding: 4.5rem 0 3.5rem;
}

.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 0.75rem;
}

.page-hero p {
  max-width: 48ch;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.page-content {
  padding: 3.5rem 0 4.5rem;
}

.prose {
  max-width: 760px;
}

.prose h2 {
  font-size: 1.8rem;
  margin: 2rem 0 0.85rem;
}

.prose a {
  color: var(--red);
  text-decoration: underline;
}

.content-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 1.75rem;
  margin-bottom: 1.25rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
}

table.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

table.data-table th,
table.data-table td {
  text-align: left;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.data-table th {
  background: var(--surface);
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}

table.data-table a {
  color: var(--red);
}

.trainer-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.trainer-card {
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.trainer-card__image {
  aspect-ratio: 1 / 1;
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.trainer-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.trainer-card__body {
  padding: 1.5rem;
}

.trainer-card h2 {
  font-size: 1.7rem;
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}

.trainer-site {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: -0.15rem 0 1.1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  background: linear-gradient(135deg, var(--red-soft) 0%, var(--white) 55%);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.trainer-site:hover {
  border-color: rgba(183, 28, 28, 0.35);
  box-shadow: 0 10px 24px rgba(26, 26, 26, 0.08);
  transform: translateY(-1px);
  color: var(--ink);
}

.trainer-site__mark {
  flex: 0 0 auto;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(183, 28, 28, 0.12);
}

.trainer-site__text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
  flex: 1;
}

.trainer-site__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}

.trainer-site__url {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

.trainer-site__arrow {
  flex: 0 0 auto;
  color: var(--red);
  font-size: 1.05rem;
  transition: transform 0.2s ease;
}

.trainer-site:hover .trainer-site__arrow {
  transform: translate(2px, -2px);
}

.trainer-more {
  margin-top: 0.75rem;
}

.trainer-more summary {
  cursor: pointer;
  color: var(--red);
  font-weight: 600;
  list-style: none;
}

.trainer-more summary::-webkit-details-marker {
  display: none;
}

.trainer-more summary::after {
  content: " →";
}

.trainer-more[open] summary {
  margin-bottom: 0.75rem;
}

.trainer-more[open] summary::after {
  content: " ↑";
}

.trainer-more p:last-child {
  margin-bottom: 0;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.calendar-card h2,
.calendar-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--red);
}

.calendar-card dl {
  margin: 0;
  display: grid;
  gap: 0.65rem;
}

.calendar-card dt {
  font-weight: 700;
}

.calendar-card dd {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

/* Forms */
.form {
  display: grid;
  gap: 1rem;
  max-width: 640px;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label {
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  padding: 0.85rem 0.9rem;
  border: 1px solid #cfcfcf;
  border-radius: var(--radius);
  font: inherit;
  background: var(--white);
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  outline: 2px solid rgba(183, 28, 28, 0.25);
  border-color: var(--red);
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

.alert {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
}

.alert--success {
  background: #e8f6ec;
  color: #1d6b38;
  border: 1px solid #b7e0c4;
}

.alert--error {
  background: #fdeceb;
  color: #8a1f1b;
  border: 1px solid #f0c2bf;
}

.news-list {
  display: grid;
  gap: 1.25rem;
}

.news-list-item {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1.25rem;
  border: 1px solid var(--line);
  background: var(--white);
  overflow: hidden;
}

.news-list-item__image {
  min-height: 180px;
  background: var(--surface);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.news-list-item__image img {
  width: 100%;
  height: 100%;
  max-height: 220px;
  object-fit: contain;
  object-position: center;
}

.news-list-item__body {
  padding: 1.25rem 1.25rem 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.article-hero-image {
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  background: var(--surface);
  display: grid;
  place-items: center;
  padding: 0.75rem;
}

.article-hero-image img {
  width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
  object-position: center;
}

.article-meta {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

/* Responsive */
@media (max-width: 1200px) {
  .hero {
    grid-template-rows: minmax(520px, 58vw);
    min-height: 520px;
  }
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 0;
    min-height: 0;
    padding: 0;
  }

  .hero__content {
    max-width: none;
    height: auto;
    margin: 0;
    padding: 3.25rem 1.5rem;
  }

  .hero__media {
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .news-card__image {
    aspect-ratio: 16 / 11;
  }

  .partner-card {
    height: 108px;
  }

  .stats__grid,
  .feature-grid,
  .news-grid,
  .partners-grid,
  .site-footer__grid,
  .split,
  .trainer-grid,
  .calendar-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-highlight {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 860px) {
  .nav-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 7.5rem);
    left: 0;
    right: 0;
    bottom: auto;
    max-height: calc(100vh - 7.5rem);
    overflow-y: auto;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.5rem;
    gap: 1rem;
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.25s ease, opacity 0.25s ease;
    z-index: 40;
  }

  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .primary-nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .btn--nav {
    justify-content: center;
  }

  .topbar__right {
    display: none;
  }

  .cta-banner__inner,
  .site-footer__bottom,
  .news-list-item {
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .news-list-item__body {
    padding: 0 1.25rem 1.25rem;
  }

  .news-list-item__image {
    min-height: 200px;
  }

  .news-list-item__image img {
    max-height: 260px;
  }

  .article-hero-image img {
    max-height: min(55vh, 420px);
  }
}

@media (max-width: 640px) {
  .stats__grid,
  .feature-grid,
  .news-grid,
  .partners-grid,
  .site-footer__grid,
  .split,
  .trainer-grid,
  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .stats__item {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .brand__logo {
    height: 52px;
    max-width: 140px;
  }

  .brand__partner {
    display: none;
  }

  .hero__title {
    max-width: none;
  }

  .hero__media {
    aspect-ratio: 5 / 4;
  }

  .partner-card {
    height: 96px;
    padding: 0.85rem 1rem;
  }

  .partner-card img {
    max-height: 56px;
  }

  .trainer-card__image {
    aspect-ratio: 1 / 1;
  }

  .article-hero-image {
    padding: 0.5rem;
  }

  .article-hero-image img {
    max-height: min(50vh, 360px);
  }
}
