/*
Theme Name: Hazenkamp
Theme URI: https://hsvdehazenkamp.nl
Author: HSV De Hazenkamp
Author URI: https://hsvdehazenkamp.nl
Description: Custom thema voor HSV De Hazenkamp — honk- en softbalvereniging Nijmegen. Frisse community-vibe met terracotta accenten op een crème basis.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: hazenkamp
*/

/* ====== Design tokens ====== */
:root {
  --bg: #FAF7F2;
  --bg-warm: #F4EDE2;
  --surface: #FFFFFF;
  --ink: #1F2937;
  --ink-soft: #4B5563;
  --ink-mute: #6B7280;
  --line: #E7E0D2;

  --accent: #B85C38;
  --accent-deep: #8E4426;
  --accent-soft: #F4D8B8;
  --green: #2C5F4A;
  --green-soft: #D6E3D5;

  --radius: 14px;
  --radius-lg: 24px;
  --shadow: 0 2px 8px rgba(31,41,55,.04), 0 18px 40px -20px rgba(31,41,55,.12);
  --shadow-lg: 0 30px 60px -25px rgba(31,41,55,.25);

  --font-display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --container: 1320px;
}

/* ====== Reset & base ====== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background:
    linear-gradient(rgba(250,247,242,.20), rgba(250,247,242,.20)),
    url('/wp-content/themes/hazenkamp/assets/bg-stadium.jpg') center 80%/cover fixed,
    var(--bg);
  color: var(--ink);
  line-height: 1.55;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, iframe { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -.015em;
  margin: 0 0 .4em;
  line-height: 1.1;
  color: var(--ink);
}
h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.05rem; letter-spacing: .01em; }

p { margin: 0 0 1em; color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.2rem;
  padding: .4rem .8rem;
  border-radius: 100px;
  background: var(--accent-soft);
}
.hero-accent { color: #FF6B00; text-shadow: 0 2px 12px rgba(0,0,0,.55); font-weight: 600; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .35em;
  color: var(--accent); font-weight: 600;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.link-arrow:hover { color: var(--accent-deep); }

/* ====== Buttons ====== */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .9rem 1.6rem;
  border-radius: 100px;
  font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, background .2s, color .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-sm { padding: .55rem 1.1rem; font-size: .9rem; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 4px 14px rgba(184,92,56,.25); }
.btn-primary:hover { background: var(--accent-deep); transform: translateY(-1px); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-secondary:hover { background: #1E4734; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: #fff; }

.lid-cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ====== Header (lint-style: topbar + mainbar) ====== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 14px rgba(31,41,55,.08);
}

/* Topbar — smal, donker, links/contact/social */
.topbar {
  background: #14202F;
  color: rgba(255,255,255,.78);
  font-size: .82rem;
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 8px;
  gap: 16px;
}
.topbar-meta {
  display: flex; align-items: center; gap: 18px;
  flex-wrap: wrap;
}
.topbar-meta a {
  display: inline-flex; align-items: center; gap: 6px;
  color: inherit;
  transition: color .2s;
}
.topbar-meta a:hover { color: var(--accent-soft); }
.topbar-meta svg { opacity: .65; }
.topbar-divider { opacity: .35; }
.topbar-loc { color: rgba(255,255,255,.55); }

.topbar-social {
  display: flex; align-items: center; gap: 14px;
}
.topbar-social a {
  display: inline-flex; align-items: center;
  width: 28px; height: 28px;
  justify-content: center;
  color: rgba(255,255,255,.65);
  border-radius: 50%;
  transition: background .2s, color .2s, transform .2s;
}
.topbar-social a:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

/* Mainbar — wit, dik genoeg om uit te springen, accent-band */
.mainbar {
  background: #fff;
  border-bottom: 3px solid var(--accent);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding-block: 14px;
}
.logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
}
.logo-mark {
  display: block;
  width: 52px; height: 52px;
  object-fit: contain;
}
.logo-mark.big { width: 64px; height: 64px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-text strong { font-size: 1.2rem; font-weight: 700; color: var(--ink); }
.logo-text small {
  font-size: .72rem; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .1em; margin-top: 3px;
}

.primary-nav .nav-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; align-items: center; gap: 4px;
}
.primary-nav .nav-list > li {
  position: relative;
}
.primary-nav .nav-list > li > a {
  display: inline-block;
  font-weight: 500; font-size: .95rem;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 8px;
  transition: background .2s, color .2s;
}
.primary-nav .nav-list > li > a:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.primary-nav .nav-list .current-menu-item > a,
.primary-nav .nav-list .current-menu-parent > a,
.primary-nav .nav-list .current-menu-ancestor > a {
  color: var(--accent);
  background: var(--accent-soft);
}
.primary-nav .nav-list a.btn {
  padding: .55rem 1.1rem;
  margin-left: 10px;
}
.primary-nav .nav-list a.btn:hover {
  background: var(--accent-deep);
  color: #fff;
}

/* Submenu (dropdown) */
.primary-nav .sub-menu {
  position: absolute;
  top: 100%; left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  min-width: 220px;
  padding: 8px;
  margin: 4px 0 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s, transform .18s, visibility .18s;
  z-index: 200;
}
.primary-nav .menu-item-has-children:hover > .sub-menu,
.primary-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.primary-nav .sub-menu li a {
  display: block;
  padding: 10px 14px;
  font-size: .9rem;
  color: var(--ink);
  border-radius: 6px;
  transition: background .15s, color .15s;
}
.primary-nav .sub-menu li a:hover {
  background: var(--bg-warm);
  color: var(--accent);
}
.primary-nav .menu-item-has-children > a::after {
  content: "▾";
  margin-left: 4px;
  font-size: .7em;
  opacity: .6;
}

.nav-toggle {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 5px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--ink); border-radius: 2px; transition: transform .2s;
}

/* ====== Hero ====== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-block: 80px 60px;
  color: #fff;
}
.hero.hero-compact {
  min-height: 0;
  padding-block: 70px 70px;
}
.hero.hero-compact h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  margin-bottom: .4em;
}
.hero.hero-compact .hero-lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  margin-bottom: 1.6rem;
}
.hero.hero-compact .hero-content { max-width: 680px; }
.hero-image { display: none; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15,23,42,.10) 0%, rgba(15,23,42,.40) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero .eyebrow { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.hero h1 { color: #fff; margin-bottom: .5em; }
.hero-lead {
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  color: rgba(255,255,255,.92);
  max-width: 600px;
  margin-bottom: 2.4rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.6); }
.hero .btn-ghost:hover { background: #fff; color: var(--ink); }

.hero-stats {
  display: flex; gap: 40px;
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.2);
  max-width: 480px;
}
.hero-stats > div { display: flex; flex-direction: column; gap: 4px; }
.hero-stats strong { font-family: var(--font-display); font-size: 2.2rem; font-weight: 500; line-height: 1; }
.hero-stats span { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }

/* ====== Section heads ====== */
.section-head { max-width: 640px; margin-bottom: 50px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { font-size: 1.07rem; }

/* ====== News block (Neptunus-stijl: 1 featured + grid) ====== */
.news-block {
  padding-block: 60px 70px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.news-block-head {
  display: flex; justify-content: space-between; align-items: end;
  flex-wrap: wrap; gap: 16px;
  margin-bottom: 32px;
}
.news-block-head h2 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  margin: 0;
}

/* === Featured (1 grote card, image + body side-by-side op desktop) === */
.news-featured {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 22px;
  color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-featured:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  color: var(--ink);
}
.news-featured-image {
  min-height: 360px;
  background-size: cover; background-position: center;
}
.news-featured-body {
  display: flex; flex-direction: column; justify-content: center;
  padding: 40px 44px;
  gap: 10px;
}
.news-featured-body time {
  font-size: .78rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}
.news-featured-body h3 {
  font-size: clamp(1.4rem, 2.1vw, 1.8rem);
  line-height: 1.2;
  margin: 4px 0 10px;
}
.news-featured-body p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin: 0 0 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: .7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .12em;
  padding: .35rem .75rem;
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: 100px;
  margin-bottom: 4px;
}

/* === Grid (4 cols, gelijke cards) === */
.news-block-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.news-block-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--ink);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.news-block-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
  box-shadow: var(--shadow);
  color: var(--ink);
}
.news-block-image {
  aspect-ratio: 16/10;
  background-size: cover; background-position: center;
  background-color: var(--bg-warm);
}
.news-block-body {
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 5px;
  flex: 1;
}
.news-block-body time {
  font-size: .72rem;
  color: var(--ink-mute);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 500;
}
.news-block-body h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 4px 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-block-body p {
  font-size: .85rem;
  color: var(--ink-mute);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ====== Intro-row (2 koloms: nieuws links + welkom rechts) ====== */
.intro-row-section {
  padding-block: 50px 70px;
  background: rgba(250,247,242,.30);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-bottom: 1px solid var(--line);
}
.intro-row {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 36px;
  align-items: start;
}
.intro-news .news-featured-vertical {
  display: block;
  margin-bottom: 18px;
}
.intro-news .news-featured-vertical .news-featured-image {
  min-height: 0;
  aspect-ratio: 16/9;
}
.intro-news .news-featured-vertical .news-featured-body {
  padding: 26px 30px 28px;
}
.intro-news .news-featured-vertical .news-featured-body h3 {
  font-size: clamp(1.3rem, 1.8vw, 1.6rem);
}
.news-block-grid-compact {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}
.intro-news-cta {
  margin-top: 20px;
  text-align: right;
}
.intro-welcome {
  align-self: start;
}
.intro-welcome-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.intro-welcome-inner h2 {
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  margin-bottom: .7em;
  line-height: 1.15;
}
.intro-welcome-inner h3 {
  font-size: 1.1rem;
  margin-top: 1.4em;
  margin-bottom: .5em;
  color: var(--accent);
}
.intro-welcome-inner p {
  font-size: .92rem;
  color: var(--ink-soft);
  margin-bottom: .9em;
}
.intro-welcome-inner .btn {
  width: 100%;
  justify-content: center;
  margin-top: 16px;
}
.intro-welcome-stats {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.intro-welcome-stats > div {
  flex: 1;
  display: flex; flex-direction: column; gap: 2px;
  text-align: center;
}
.intro-welcome-stats strong {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.intro-welcome-stats span {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

/* ====== Invite (legacy, niet in front-page) ====== */
.invite {
  padding-block: 70px 80px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.invite-inner {
  max-width: 760px;
  text-align: center;
}
.invite-inner h2 {
  font-size: clamp(1.7rem, 2.8vw, 2.4rem);
  margin-bottom: .8em;
}
.invite-inner p {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 1.1em;
}
.invite-inner a {
  color: var(--accent);
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.invite-stats {
  display: flex; gap: 50px;
  justify-content: center;
  margin-top: 2.4em;
  padding-top: 2em;
  border-top: 1px solid var(--line);
}
.invite-stats > div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.invite-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.invite-stats span {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

/* ====== Welcome (legacy, niet meer in front-page maar laat staan voor backwards compat) ====== */
.welcome { padding-block: 100px; }
.welcome-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.welcome-text h2 { max-width: 12ch; }
.welcome-text p { font-size: 1.07rem; }
.welcome-photos {
  display: grid; grid-template-columns: repeat(2, 1fr);
  grid-template-rows: 200px 200px; gap: 16px;
}
.photo {
  background-size: cover; background-position: center;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.photo-1 { grid-row: 1 / 3; }
.welcome-stats {
  grid-column: 1 / -1;
  display: flex; gap: 50px;
  margin-top: 20px;
  padding-top: 30px;
  border-top: 1px solid var(--line);
  justify-content: center;
}
.welcome-stats > div { display: flex; flex-direction: column; gap: 4px; text-align: center; }
.welcome-stats strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
}
.welcome-stats span {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-mute);
}

/* ====== Teams ====== */
.teams { padding-block: 110px; background: rgba(244,237,226,.35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); border-block: 1px solid var(--line); }
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.team-card {
  background: var(--surface);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.age-pill {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .1em;
  padding: .4rem .8rem;
  background: var(--green-soft); color: var(--green);
  border-radius: 100px; margin-bottom: 1rem;
}
.team-card h3 { margin-bottom: .3em; }
.team-card p { font-size: .95rem; margin-bottom: 1.2em; }
.train-day {
  font-size: .85rem; color: var(--ink-mute); font-weight: 500;
  display: flex; align-items: center; gap: .4em;
}
.train-day::before { content: "⏱"; }

/* ====== Trainingen ====== */
.trainingen { padding-block: 110px; background: rgba(250,247,242,.30); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.trainingen-grid {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start;
}
.schedule-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 16px 8px; box-shadow: var(--shadow);
}
.schedule { list-style: none; margin: 0; padding: 0; }
.schedule li {
  display: grid; grid-template-columns: 60px 80px 1fr;
  gap: 20px; padding: 14px 24px; align-items: center;
  border-bottom: 1px solid var(--line);
}
.schedule li:last-child { border-bottom: none; }
.schedule .day { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--accent); }
.schedule .time { font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.schedule .team { color: var(--ink-soft); font-size: .95rem; }

/* ====== Nieuws ====== */
.nieuws { padding-block: 110px; background: var(--bg-warm); border-block: 1px solid var(--line); }
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.news-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: transform .3s, box-shadow .3s;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-image { aspect-ratio: 16/10; background-size: cover; background-position: center; background-color: var(--bg-warm); }
.news-body { padding: 28px; }
.news-body time {
  font-size: .82rem; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .08em; font-weight: 500;
}
.news-body h3 { margin: 10px 0 8px; font-size: 1.2rem; line-height: 1.3; }
.news-body p { font-size: .95rem; margin-bottom: 1.2em; }
.section-cta { margin-top: 40px; text-align: center; }

/* ====== Lid worden ====== */
.lid-worden { padding-block: 110px; background: transparent; }
.lid-worden .lid-text {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 40px 44px;
  box-shadow: var(--shadow);
}
.lid-worden .lid-text > :first-child { margin-top: 0; }
.lid-worden .lid-text > :last-child { margin-bottom: 0; }
.lid-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.lid-text h2 br + * { color: var(--accent); }
.check-list { list-style: none; padding: 0; margin: 1.5em 0 2em; }
.check-list li {
  padding: 8px 0 8px 32px;
  position: relative;
  color: var(--ink-soft); font-size: 1.02rem;
}
.check-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 10px;
  width: 22px; height: 22px;
  background: var(--green); color: #fff;
  display: grid; place-items: center;
  border-radius: 50%; font-size: .8rem; font-weight: bold;
}
.lid-photo {
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  min-height: 460px;
  box-shadow: var(--shadow-lg);
}

/* ====== Sponsoren ====== */
.sponsoren { padding-block: 110px; background: rgba(250,247,242,.30); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.sponsoren .section-head a.btn { margin-bottom: 1.5em; }
.sponsor-wall {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-bottom: 50px;
}
.sponsor-wall.sponsor-wall-3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 960px;
  margin-inline: auto;
  margin-bottom: 50px;
}
.sponsor-wall.sponsor-wall-3 .sponsor-logo {
  aspect-ratio: auto;
  height: 130px;
  padding: 18px 24px;
  min-width: 0;
}
.sponsor-wall.sponsor-wall-3 .sponsor-logo img {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.sponsor-logo {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px; text-align: center;
  font-family: var(--font-display);
  font-weight: 500; color: var(--ink-soft); font-size: 1.05rem;
  display: grid; place-items: center;
  aspect-ratio: 2/1;
  transition: transform .2s, border-color .2s, box-shadow .2s;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.sponsor-logo span {
  display: block;
  line-height: 1.2;
  font-size: clamp(.8rem, 2.4vw, 1.05rem);
  padding-inline: 4px;
}
.sponsor-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: grayscale(20%);
  transition: filter .2s, transform .2s;
}
.sponsor-logo:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow);
}
.sponsor-logo:hover img {
  filter: grayscale(0%);
}

.sponsorkliks {
  background: var(--surface); color: var(--ink);
  padding: 36px 48px; border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  max-width: 960px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 40px; flex-wrap: wrap;
}
.sponsorkliks h3 { color: var(--ink); margin-bottom: .3em; }
.sponsorkliks p { color: var(--ink-soft); margin: 0; max-width: 540px; }
.sponsorkliks .btn-secondary { background: var(--accent); border-color: var(--accent); }
.sponsorkliks .btn-secondary:hover { background: var(--accent-deep); border-color: var(--accent-deep); }

/* ====== Contact ====== */
.contact { padding-block: 110px; background: rgba(250,247,242,.30); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 60px; }
.contact-info p.address {
  background: var(--bg-warm);
  padding: 20px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  font-size: 1rem; color: var(--ink);
}
.note {
  font-size: .92rem; color: var(--ink-mute);
  background: #FFF7E6; padding: 14px 18px;
  border-radius: var(--radius); border-left: 4px solid #E0A030;
}
.contact-emails { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 24px; }
.contact-emails a {
  background: var(--surface); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 100px;
  font-size: .9rem; color: var(--ink);
}
.contact-emails a:hover { border-color: var(--accent); color: var(--accent); }
.contact-map {
  border-radius: var(--radius-lg);
  overflow: hidden; min-height: 460px;
  box-shadow: var(--shadow);
}
.contact-map iframe { width: 100%; height: 100%; min-height: 460px; border: 0; }

/* ====== Page (default sub-pages) ====== */
.page-hero {
  position: relative;
  background:
    linear-gradient(135deg, rgba(31,41,55,.55) 0%, rgba(184,92,56,.42) 100%),
    linear-gradient(180deg, rgba(31,41,55,.35) 0%, rgba(31,41,55,.65) 100%);
  padding: 38px 0 32px;
  border-bottom: 3px solid var(--accent);
  text-align: center;
  color: #fff;
}
.page-hero h1 {
  color: #fff;
  max-width: 22ch;
  margin: .1em auto;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
}
.page-hero p {
  color: rgba(255,255,255,.9);
  max-width: 560px;
  margin: .35em auto 0;
  font-size: .95rem;
}
.page-hero time {
  color: rgba(255,255,255,.75);
}
.page-body { padding-block: 80px; background: rgba(250,247,242,.30); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.page-body .container { max-width: 920px; }
.page-body--wide .container { max-width: var(--container); }

/* Speelschema breder + compactere tabel-rijen */
body.page-id-7 .page-body .container { max-width: var(--container); }
body.page-id-7 .page-body table td,
body.page-id-7 .page-body table th { padding: 12px 16px; vertical-align: top; }
body.page-id-7 .page-body table td:first-child { font-weight: 600; white-space: nowrap; }

/* Content tile (sub-pages + single post) */
.content-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin: 0 auto;
}
.content-card-featured img {
  width: 100%; height: auto;
  display: block;
}
.content-card-body {
  padding: 44px 56px;
}
.content-card-body > :first-child { margin-top: 0; }
.content-card-body > :last-child { margin-bottom: 0; }
.content-back-link {
  text-align: center;
  margin-top: 32px;
}
@media (max-width: 640px) {
  .content-card-body { padding: 28px 24px; }
}
.page-body * + h2 {
  margin-top: 0.6em;
  padding-top: 1em;
  border-top: 1px solid var(--line);
}
.page-body ul, .page-body ol { padding-left: 1.4em; color: var(--ink-soft); }
.page-body li { margin-bottom: .35em; }
.page-body li .btn { margin-top: .6em; }
.page-body img, .page-body figure { border-radius: var(--radius); margin: 1.5em 0; }

/* Tables in page content */
.page-body table {
  width: 100%; border-collapse: collapse;
  background: var(--surface); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin: 1.5em 0;
}
.page-body th, .page-body td {
  padding: 14px 18px; text-align: left;
  border-bottom: 1px solid var(--line);
}
.page-body th { background: var(--bg-warm); font-weight: 600; }
.page-body tr:last-child td { border-bottom: none; }

/* Pull quotes / highlights */
.page-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--bg-warm);
  padding: 18px 24px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5em 0; font-style: italic;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Buttons inside content area */
.wp-block-button__link {
  background: var(--accent); color: #fff !important;
  padding: .85rem 1.5rem !important; border-radius: 100px !important;
  font-weight: 600; box-shadow: 0 4px 14px rgba(184,92,56,.25);
}
.wp-block-button.is-style-outline .wp-block-button__link {
  background: transparent; border: 1.5px solid var(--ink); color: var(--ink) !important;
  box-shadow: none;
}

/* ====== Single post ====== */
.single-post .page-hero time {
  display: inline-block;
  font-size: .85rem; color: var(--ink-mute);
  text-transform: uppercase; letter-spacing: .1em;
  margin-bottom: 1em;
}
.single-post .page-body { padding-block: 60px 80px; }

/* ====== News archive (index/home) ====== */
.archive-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
  padding-block: 60px;
}

/* ====== Footer ====== */
.site-footer {
  background: var(--ink); color: rgba(255,255,255,.7);
  padding-top: 70px;
}
.footer-inner {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 50px; padding-bottom: 50px;
}
.footer-col h4 { color: #fff; margin-bottom: 1em; font-size: 1rem; font-weight: 600; }
.footer-col p { color: rgba(255,255,255,.7); line-height: 1.6; }
.footer-col p strong { color: #fff; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: .55em; }
.footer-col ul a { color: rgba(255,255,255,.7); font-size: .94rem; }
.footer-col ul a:hover { color: var(--accent-soft); }

.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: 24px; }
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bottom small { color: rgba(255,255,255,.55); font-size: .85rem; }
.footer-bottom a { color: rgba(255,255,255,.75); border-bottom: 1px solid rgba(255,255,255,.2); }

/* ====== Responsive ====== */
@media (max-width: 1100px) {
  .intro-row { grid-template-columns: 1fr; gap: 28px; }
  .intro-welcome { position: static; max-height: none; overflow: visible; order: 1; }
  .intro-news { order: 2; }
  .news-block-grid-compact { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 960px) {
  .welcome-grid, .trainingen-grid, .lid-grid, .contact-grid { grid-template-columns: 1fr; gap: 50px; }
  .team-grid, .news-grid, .archive-grid { grid-template-columns: repeat(2, 1fr); }
  .news-featured { grid-template-columns: 1fr; }
  .news-featured-image { min-height: 240px; aspect-ratio: 16/9; }
  .news-featured-body { padding: 28px; }
  .news-block-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .sponsor-wall { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .welcome-photos { grid-template-rows: 160px 160px; }
  .welcome-stats { gap: 30px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .container { padding-inline: 20px; }
  .welcome, .teams, .trainingen, .nieuws, .lid-worden, .sponsoren, .contact, .page-body, .invite { padding-block: 60px; }
  .invite-stats { gap: 30px; }

  /* Topbar op mobile: compacter — alleen social rechts */
  .topbar-meta { font-size: .78rem; gap: 12px; }
  .topbar-loc, .topbar-divider { display: none; }

  .nav-toggle { display: flex; }
  .primary-nav .nav-list {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .primary-nav.open .nav-list { display: flex; }
  .primary-nav .nav-list > li {
    padding: 0; border-bottom: 1px solid var(--line);
  }
  .primary-nav .nav-list > li > a {
    display: block;
    padding: 14px 8px;
    border-radius: 0;
  }
  .primary-nav .nav-list > li:last-child { border-bottom: none; padding-top: 10px; }
  .primary-nav .nav-list a.btn { display: inline-block; margin-left: 8px; }
  .primary-nav .sub-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 8px 16px;
    background: transparent;
  }

  .hero { min-height: 78vh; padding-block: 60px 40px; }
  .hero-stats { gap: 24px; }
  .hero-stats strong { font-size: 1.7rem; }

  .team-grid, .news-grid, .archive-grid, .news-block-grid { grid-template-columns: 1fr; }
  /* Sponsor-wall: 2 kolommen op kleine mobile zodat SVIZ-tekst-tile niet overstroomt */
  .sponsor-wall, .sponsor-wall.sponsor-wall-3 { grid-template-columns: repeat(2, 1fr); }
  .sponsor-wall.sponsor-wall-3 .sponsor-logo { padding: 14px 10px; height: 110px; }
  /* Tabellen op mobile horizontaal scrollbaar */
  .page-body table { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
  body.page-id-7 .page-body table td { min-width: 140px; }
  .news-block-grid-compact { grid-template-columns: 1fr !important; }
  .news-featured-image { min-height: 200px; }
  .news-featured-body { padding: 22px; }
  .page-hero { padding: 28px 0 22px; }
  .page-hero h1 { font-size: 1.7rem; }
  .page-hero p { font-size: .85rem; }
  .sponsor-wall { grid-template-columns: repeat(2, 1fr); }
  .sponsorkliks { padding: 28px; flex-direction: column; align-items: flex-start; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; padding-bottom: 32px; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 420px) {
  h1 { font-size: 2.1rem; }
  .hero-actions { width: 100%; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}
