/*
Theme Name: Beter voor Vlaardingen
Theme URI: https://www.betervoorvlaardingen.nl
Author: Beter voor Vlaardingen
Author URI: https://www.betervoorvlaardingen.nl
Description: De officiële moderne huisstijlwebsite van Beter voor Vlaardingen.
Version: 1.1.2
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: beter-voor-vlaardingen
*/

:root {
  --navy: #083760;
  --brand: #0b4a87;
  --sky: #61b9e8;
  --light: #eef8fd;
  --red: #e21a2c;
  --yellow: #ffcb05;
  --royal: #0967c9;
  --green: #68b82a;
  --ink: #183247;
  --muted: #607483;
  --white: #ffffff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: #f4f9fc;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
.wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: fixed; left: 12px; top: -60px; z-index: 100000; padding: 12px 18px; border-radius: 8px; background: var(--yellow); color: var(--navy); font-weight: 800; }
.skip-link:focus { top: 12px; }
.admin-bar .site-header { top: 32px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 84px;
  padding: 10px max(24px, calc((100vw - 1240px) / 2));
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #dbe8f1;
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 13px; text-decoration: none; min-width: 280px; }
.brand img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; box-shadow: 0 5px 15px rgba(8,55,96,.18); }
.brand span { display: flex; flex-direction: column; gap: 4px; }
.brand strong { color: var(--brand); font-size: 18px; letter-spacing: -.02em; }
.brand small { color: var(--muted); font-size: 11px; }
.site-header nav { display: flex; justify-content: center; gap: 26px; flex: 1; }
.site-header nav a { color: #37566d; font-size: 14px; font-weight: 700; text-decoration: none; }
.site-header nav a:hover, .site-header nav a:focus-visible { color: var(--brand); }
.header-cta { padding: 13px 18px; border-radius: 999px; background: var(--yellow); color: var(--navy); font-size: 14px; font-weight: 800; text-decoration: none; white-space: nowrap; }

.hero { position: relative; overflow: hidden; background: var(--navy); }
.hero-image { display: block; width: 100%; aspect-ratio: 2.42 / 1; object-fit: cover; object-position: center; }
.color-track { position: absolute; inset: auto 0 0; display: grid; grid-template-columns: 1.05fr .7fr 1fr 1.15fr; height: 9px; }
.color-track span:nth-child(1) { background: var(--red); }
.color-track span:nth-child(2) { background: var(--yellow); }
.color-track span:nth-child(3) { background: var(--royal); }
.color-track span:nth-child(4) { background: var(--green); }

.hero-message {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 76px;
  align-items: end;
  margin-top: 38px;
  padding: 58px 54px 64px;
  overflow: hidden;
  border-radius: 34px;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,203,5,.26) 0 78px, transparent 79px),
    radial-gradient(circle at 2% 100%, rgba(97,185,232,.22) 0 145px, transparent 146px),
    linear-gradient(135deg, #ffffff 0%, #edf8fd 100%);
  box-shadow: 0 22px 60px rgba(8,55,96,.09);
}
.hero-message::before { content: ""; position: absolute; left: 0; top: 0; width: 130px; height: 7px; background: var(--red); box-shadow: 130px 0 var(--yellow), 260px 0 var(--royal), 390px 0 var(--green); }
.eyebrow { margin: 0 0 12px; color: var(--royal); font-size: 13px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: #94d7f7; }
h1 { margin: 0; color: var(--navy); font-size: clamp(40px, 5vw, 70px); line-height: .98; letter-spacing: -.055em; }
h2 { margin: 0; color: var(--navy); font-size: clamp(34px, 4vw, 54px); line-height: 1.04; letter-spacing: -.045em; }
.hero-copy { border-left: 5px solid var(--yellow); padding-left: 28px; }
.hero-copy p { margin: 0; color: #405c70; font-size: 18px; line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--brand); color: white; }
.button.primary:hover { background: var(--navy); }
.button.secondary { border: 1px solid #b9cfdd; color: var(--brand); background: white; }
.button.yellow { background: var(--yellow); color: var(--navy); }

.priorities {
  margin-top: 42px;
  margin-bottom: 100px;
  padding: 68px 42px 76px;
  border-radius: 36px;
  background:
    radial-gradient(circle, rgba(11,74,135,.08) 1.5px, transparent 1.5px) 0 0 / 24px 24px,
    rgba(255,255,255,.84);
  box-shadow: inset 0 0 0 1px rgba(11,74,135,.08);
}
.section-heading { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; align-items: end; margin-bottom: 34px; }
.section-heading > p { margin: 0 0 4px; color: var(--muted); font-size: 17px; line-height: 1.6; }
.priority-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.priority-card { position: relative; min-height: 330px; overflow: hidden; padding: 30px 26px 26px; border-radius: 24px; background: var(--card-bg); border: 1px solid rgba(11,74,135,.12); transition: transform .2s, box-shadow .2s; }
.priority-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(8,55,96,.10); }
.priority-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--accent); }
.priority-card::after { content: ""; position: absolute; width: 120px; height: 120px; right: -48px; top: -48px; border-radius: 50%; background: rgba(11,74,135,.06); }
.priority-card.red { --accent: var(--red); --card-bg: #fff0f2; }
.priority-card.yellow { --accent: #e5ad00; --card-bg: #fff8d6; }
.priority-card.blue { --accent: var(--royal); --card-bg: #eaf4ff; }
.priority-card.green { --accent: var(--green); --card-bg: #eef8e8; }
.priority-number { display: block; margin-bottom: 48px; color: var(--accent); font-size: 13px; font-weight: 900; letter-spacing: .16em; }
.priority-card h3 { margin: 0 0 15px; color: var(--navy); font-size: 23px; line-height: 1.08; letter-spacing: -.025em; }
.priority-card p { margin: 0; color: #4a6577; font-size: 15px; line-height: 1.58; }
.priority-card a { position: absolute; left: 26px; bottom: 24px; color: var(--brand); font-size: 13px; font-weight: 800; text-decoration: none; }

.safety { position: relative; overflow: hidden; padding-block: 100px; color: white; background: var(--navy); }
.safety::after { content: ""; position: absolute; width: 620px; height: 620px; right: -260px; top: -320px; border: 100px solid rgba(97,185,232,.07); border-radius: 50%; }
.safety-layout { position: relative; z-index: 1; display: grid; grid-template-columns: .85fr 1.15fr; gap: 90px; align-items: center; }
.safety-intro h2 { color: white; }
.safety-intro > p:not(.eyebrow) { margin: 25px 0 30px; color: #d2e3ee; font-size: 17px; line-height: 1.7; }
.safety-stats { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid rgba(255,255,255,.15); border-radius: 26px; overflow: hidden; background: rgba(255,255,255,.04); }
.safety-stats article { min-height: 180px; padding: 32px; border-right: 1px solid rgba(255,255,255,.13); border-bottom: 1px solid rgba(255,255,255,.13); }
.safety-stats article:nth-child(2n) { border-right: 0; }
.safety-stats article:nth-child(n+3) { border-bottom: 0; }
.safety-stats strong { display: block; margin-bottom: 12px; color: var(--yellow); font-size: clamp(34px, 4vw, 50px); line-height: 1; letter-spacing: -.04em; }
.safety-stats span { display: block; color: #dceaf2; font-size: 14px; line-height: 1.5; }

.choice-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 90px;
  align-items: center;
  margin-block: 80px;
  padding: 58px;
  border-radius: 38px;
  background: linear-gradient(125deg, #fff8d9 0%, #ffffff 48%, #e8f6fc 100%);
  box-shadow: 0 22px 65px rgba(8,55,96,.08);
}
.growth-figure { min-height: 420px; padding: 42px; border-radius: 34px; display: flex; align-items: center; justify-content: center; gap: 20px; background: linear-gradient(145deg, #dff3fd, #f4fafe); }
.population { flex: 1; min-width: 0; padding: 27px 16px; text-align: center; border-radius: 22px; background: white; box-shadow: 0 14px 34px rgba(8,55,96,.1); }
.population span, .population small { display: block; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.population strong { display: block; margin: 14px 0 8px; color: var(--brand); font-size: clamp(26px, 3vw, 43px); letter-spacing: -.05em; }
.population.future { background: var(--red); transform: translateY(38px); }
.population.future span, .population.future small, .population.future strong { color: white; }
.population-arrow { color: var(--brand); font-size: 32px; font-weight: 900; }
.choice-copy > p:not(.eyebrow) { margin: 24px 0 20px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: #345368; font-weight: 700; line-height: 1.5; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 900; }

.youth-parking { display: grid; grid-template-columns: 1fr 1fr; }
.youth-parking article { min-height: 620px; display: flex; align-items: center; justify-content: center; padding: 70px; }
.youth-panel { color: white; background: linear-gradient(145deg, #07509a, #083760); }
.parking-panel { background: var(--yellow); }
.panel-content { width: min(520px, 100%); }
.panel-number { display: block; width: 58px; height: 58px; margin-bottom: 62px; border-radius: 50%; color: var(--navy); background: white; text-align: center; line-height: 58px; font-weight: 900; }
.youth-panel h2 { color: white; }
.panel-content > p:not(.eyebrow) { margin: 26px 0 0; font-size: 17px; line-height: 1.7; opacity: .88; }
.parking-panel .eyebrow { color: var(--brand); }
.parking-panel .panel-number { color: white; background: var(--red); }
.parking-hours { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 30px; }
.parking-hours strong, .parking-hours span { padding: 12px 16px; border-radius: 999px; font-size: 14px; }
.parking-hours strong { color: white; background: var(--green); }
.parking-hours span { color: white; background: var(--navy); }

.news {
  margin-block: 80px;
  padding: 70px 42px 58px;
  border-radius: 38px;
  background: linear-gradient(120deg, rgba(97,185,232,.16), rgba(255,255,255,.8) 45%, rgba(104,184,42,.12)), white;
  box-shadow: inset 0 0 0 1px rgba(11,74,135,.08);
}
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.news-card { position: relative; min-height: 355px; padding: 32px; border-radius: 26px; color: inherit; background: white; border: 1px solid #d4e8f3; text-decoration: none; transition: transform .2s, box-shadow .2s; box-shadow: 0 10px 30px rgba(8,55,96,.07); }
.news-card:hover { transform: translateY(-5px); box-shadow: 0 18px 45px rgba(8,55,96,.12); }
.news-card.featured { color: white; background: var(--brand); border-color: var(--brand); }
.news-card.facebook { color: white; background: #1769c2; border-color: #1769c2; }
.news-card.dynamic-news { overflow: hidden; }
.news-card.dynamic-news.has-image { padding-top: 178px; }
.news-card-image { position: absolute; inset: 0 0 auto; display: block; height: 150px; overflow: hidden; background: #dcecf5; }
.news-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.news-card.dynamic-news:hover .news-card-image img { transform: scale(1.035); }
.dynamic-news .news-label { margin-bottom: 18px; }
.dynamic-news p { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 3; -webkit-box-orient: vertical; }
.news-label { display: block; margin-bottom: 55px; color: var(--royal); font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.featured .news-label, .facebook .news-label { color: #b9e0f4; }
.social-mark { position: absolute; right: 28px; top: 22px; color: rgba(255,255,255,.22); font-size: 88px; font-weight: 900; line-height: 1; }
.news-card h3 { margin: 0 0 15px; font-size: 26px; line-height: 1.12; letter-spacing: -.03em; }
.news-card p { margin: 0; font-size: 15px; line-height: 1.6; opacity: .82; }
.news-link { position: absolute; left: 32px; bottom: 28px; font-size: 13px; font-weight: 900; }
.news-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button.facebook-button { color: white; background: #1769c2; }
.latest-article { display: grid; grid-template-columns: minmax(260px, .72fr) 1.28fr; min-height: 300px; margin-top: 22px; overflow: hidden; border-radius: 28px; color: white; background: var(--navy); text-decoration: none; box-shadow: 0 16px 38px rgba(8,55,96,.16); transition: transform .2s, box-shadow .2s; }
.latest-article:hover { transform: translateY(-4px); box-shadow: 0 22px 48px rgba(8,55,96,.23); }
.latest-article > img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.latest-article > div { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 42px; }
.latest-badge { display: inline-block; margin-bottom: 20px; padding: 8px 12px; border-radius: 999px; color: var(--navy); background: var(--yellow); font-size: 11px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.latest-article h3 { margin: 0 0 14px; font-size: clamp(27px, 3vw, 40px); line-height: 1.05; letter-spacing: -.035em; }
.latest-article p { max-width: 650px; margin: 0 0 24px; color: #d9e8f2; font-size: 15px; line-height: 1.65; }
.latest-article strong { color: var(--yellow); font-size: 13px; }
.source-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 20px; margin-top: 25px; color: var(--muted); font-size: 13px; }
.source-row a { color: var(--brand); font-weight: 800; text-decoration: none; }

.team-section { padding-block: 100px; color: white; background: #0a2d4b; }
.team-heading { display: grid; grid-template-columns: 1.2fr .8fr; gap: 70px; align-items: end; margin-bottom: 42px; }
.team-heading h2 { color: white; }
.team-heading > p { margin: 0; color: #cbdce7; font-size: 17px; line-height: 1.65; }
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.team-card { position: relative; overflow: hidden; min-height: 390px; border-radius: 24px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.team-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7px; background: var(--accent); }
.team-card.red { --accent: var(--red); }
.team-card.yellow { --accent: var(--yellow); }
.team-card.blue { --accent: var(--sky); }
.team-card.green { --accent: var(--green); }
.team-photo { position: relative; height: 255px; overflow: hidden; background: #173e5d; }
.team-photo::after { content: ""; position: absolute; inset: 55% 0 0; background: linear-gradient(transparent, rgba(6,31,52,.68)); }
.team-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.94) contrast(1.02); }
.team-photo img.nicky { object-fit: contain; background: #fff; transform: scaleX(-1); }
.team-photo img.werner { transform: scale(1); }
.team-photo img.ben { transform: scale(1.15); }
.team-photo img.marco { transform: scale(1.25); transform-origin: center top; }
.initials { position: absolute; left: 20px; bottom: 18px; z-index: 1; display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border: 4px solid #0a2d4b; border-radius: 50%; color: var(--navy); background: var(--accent); font-size: 17px; font-weight: 900; }
.team-info { padding: 24px 26px 29px; }
.team-card h3 { margin: 0 0 8px; font-size: 22px; }
.team-card p { margin: 0; color: #a9c0cf; font-size: 14px; }
.team-info a { display: inline-block; margin-top: 18px; color: #bce3f7; font-size: 12px; font-weight: 800; text-decoration: none; }
.team-info a:hover { color: var(--yellow); }

.program-strip { padding-block: 78px; background: var(--light); }
.program-layout { display: flex; align-items: center; justify-content: space-between; gap: 45px; }
.program-layout h2 { max-width: 770px; font-size: clamp(32px, 4vw, 50px); }
.program-layout .button { flex: 0 0 auto; }
.contact-section { padding-block: 105px; color: white; background: var(--brand); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; align-items: center; }
.contact-intro h2 { color: white; }
.contact-intro > p:not(.eyebrow) { max-width: 600px; margin: 24px 0 30px; color: #d8e9f3; font-size: 17px; line-height: 1.7; }
.contact-card { display: flex; gap: 28px; padding: 34px; border-radius: 26px; font-style: normal; background: white; color: var(--ink); box-shadow: 0 25px 60px rgba(0,0,0,.18); }
.contact-card img { flex: 0 0 110px; width: 110px; height: 110px; border-radius: 50%; object-fit: cover; }
.contact-card div { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.contact-card strong { color: var(--navy); font-size: 20px; }
.contact-card span { color: var(--muted); font-size: 15px; line-height: 1.55; }
.contact-card a { color: var(--brand); font-size: 14px; font-weight: 800; }

footer { padding-block: 28px; color: #d1e0e9; background: #061f34; }
.footer-layout { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: 13px; }
.footer-layout a { text-decoration: none; }
.footer-links { display: flex; gap: 24px; }
.footer-links a:hover, .footer-layout > a:hover { color: var(--yellow); }

.content-shell { min-height: 60vh; padding-block: 80px 110px; }
.content-heading, .article-content { max-width: 900px; }
.content-heading { margin-bottom: 40px; }
.content-heading > p:not(.eyebrow) { color: var(--muted); font-size: 18px; line-height: 1.65; }
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card { overflow: hidden; border-radius: 24px; background: white; box-shadow: 0 12px 35px rgba(8,55,96,.09); }
.post-image { display: block; height: 260px; overflow: hidden; }
.post-image img { width: 100%; height: 100%; object-fit: cover; }
.post-card-content { padding: 28px; }
.post-card-content time { color: var(--royal); font-size: 12px; font-weight: 900; text-transform: uppercase; }
.post-card h2 { margin: 12px 0; font-size: 28px; }
.post-card h2 a, .text-link { text-decoration: none; }
.text-link { color: var(--brand); font-weight: 800; }
.navigation.pagination { grid-column: 1 / -1; margin-top: 20px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.nav-links .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 42px; min-height: 42px; padding: 8px 12px; border-radius: 999px; color: var(--brand); background: white; font-weight: 800; text-decoration: none; }
.nav-links .page-numbers.current { color: white; background: var(--brand); }
.article-content h1 { margin-bottom: 35px; }
.article-hero { margin-bottom: 35px; overflow: hidden; border-radius: 24px; }
.entry-content { color: #314f63; font-size: 18px; line-height: 1.75; }
.entry-content h2, .entry-content h3 { margin-top: 1.5em; }
.entry-content a { color: var(--brand); }
.entry-content img { border-radius: 14px; }
.post-navigation { margin-top: 45px; }
.error-page p { font-size: 18px; }
.error-page .button { margin-top: 20px; }

@media (max-width: 1050px) {
  .site-header { flex-wrap: wrap; gap: 10px 18px; padding-block: 8px 12px; }
  .brand { min-width: 0; margin-right: auto; }
  .site-header nav { order: 3; width: 100%; justify-content: flex-start; overflow-x: auto; padding: 5px 0 1px; }
  .hero-message, .safety-layout, .choice-section, .contact-layout { grid-template-columns: 1fr; gap: 45px; }
  .priority-grid, .team-grid { grid-template-columns: repeat(2, 1fr); }
  .growth-figure { min-height: 330px; }
  .youth-parking article { min-height: 570px; padding: 55px 38px; }
}

@media (max-width: 782px) {
  .admin-bar .site-header { top: 46px; }
}

@media (max-width: 760px) {
  .section-heading, .team-heading { grid-template-columns: 1fr; gap: 16px; }
  .safety-stats { grid-template-columns: 1fr; }
  .safety-stats article { min-height: 140px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13) !important; }
  .safety-stats article:last-child { border-bottom: 0 !important; }
  .youth-parking { grid-template-columns: 1fr; }
  .news-grid, .post-list { grid-template-columns: 1fr; }
  .news-card { min-height: 320px; }
  .latest-article { grid-template-columns: 1fr; }
  .latest-article > img { min-height: 230px; max-height: 290px; }
  .latest-article > div { padding: 30px 25px 34px; }
  .program-layout { align-items: flex-start; flex-direction: column; }
  .contact-card { flex-direction: column; }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .brand img { width: 46px; height: 46px; }
  .brand strong { font-size: 15px; }
  .brand small { display: none; }
  .header-cta { padding: 11px 14px; font-size: 12px; }
  .site-header nav { gap: 20px; }
  .site-header nav a { font-size: 12px; white-space: nowrap; }
  .hero-image { min-height: 245px; object-position: 55% center; }
  .hero-message { margin-top: 18px; padding: 45px 22px 52px; border-radius: 24px; }
  .hero-copy { padding-left: 20px; }
  .hero-copy p { font-size: 16px; }
  .priorities, .news { margin-block: 45px; padding: 58px 18px; border-radius: 26px; }
  .priority-grid, .team-grid { grid-template-columns: 1fr; }
  .priority-card { min-height: 290px; }
  .safety, .team-section, .contact-section { padding-block: 72px; }
  .choice-section { margin-block: 45px; padding: 42px 18px 58px; border-radius: 26px; }
  .growth-figure { padding: 25px 16px; gap: 9px; }
  .population { padding: 20px 8px; }
  .population-arrow { font-size: 21px; }
  .youth-parking article { min-height: auto; padding: 75px 20px; }
  .panel-number { margin-bottom: 42px; }
  .program-strip { padding-block: 60px; }
  .contact-card { padding: 26px; }
  .contact-card img { width: 90px; height: 90px; flex-basis: 90px; }
  .footer-layout { align-items: flex-start; flex-direction: column; }
  .content-shell { padding-block: 55px 80px; }
}
