/*
Theme Name: Pius X Poeldijk
Theme URI: https://piusxpoeldijk.nl/
Description: Thema voor Muziekvereniging Pius X Poeldijk, nagebouwd op basis van de oude Joomla-site (JSN Sky, kleur rood).
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 7.4
Text Domain: piusx
License: GPL-2.0-or-later
*/

:root {
	--px-red: #af0122;
	--px-text: #555;
	--px-dark: #333;
	--px-border: #ddd;
	--px-grey: #eee;
	--px-footer: #111;
	--px-width: 1150px;
	--px-head: "Fjalla One", Georgia, serif;
	--px-body: Arial, Helvetica, sans-serif;
}

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

html { font-size: 16px; }
body {
	margin: 0;
	background: #fff;
	color: var(--px-text);
	font-family: var(--px-body);
	font-size: .8rem;
	line-height: 1.5;
}
img { max-width: 100%; height: auto; }
a { color: var(--px-red); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
p { margin: 5px 0 12px; }
h1, h2, h3, h4 { font-family: var(--px-head); font-weight: 400; color: #000; line-height: 1.4; }
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; vertical-align: middle; padding: 4px 8px 4px 0; }

.px-container { max-width: var(--px-width); margin: 0 auto; padding: 0 16px; }

.screen-reader-text, .skip-link:not(:focus) {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 1000; background: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.px-header { background: #fff; border-bottom: 1px solid var(--px-border); position: relative; z-index: 50; }
.px-header .px-container { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 105px; }
.px-logo img { display: block; width: 179px; height: auto; }
.px-logo a { display: block; }

.px-nav ul { list-style: none; margin: 0; padding: 0; }
.px-nav > ul { display: flex; flex-wrap: wrap; justify-content: flex-end; }
.px-nav li { position: relative; margin-left: 10px; }
.px-nav a {
	display: block;
	padding: 4px 15px;
	font-family: var(--px-head);
	font-size: .96rem;
	line-height: 20px;
	text-transform: uppercase;
	color: #000;
	border-radius: 2px;
}
.px-nav a:hover, .px-nav a:focus { color: var(--px-red); text-decoration: none; }
.px-nav .current-menu-item > a,
.px-nav .current_page_item > a,
.px-nav .current-menu-ancestor > a,
.px-nav .current_page_parent > a { background: var(--px-red); color: #fff; }
.px-nav .menu-item-has-children > a::after { content: " \25BE"; font-size: .8em; }

.px-nav .sub-menu {
	position: absolute; top: 100%; left: 0; width: 200px; margin-top: 10px;
	background: #fff; box-shadow: 0 3px 8px rgba(0,0,0,.15);
	opacity: 0; visibility: hidden; transition: opacity .15s;
}
.px-nav li:hover > .sub-menu, .px-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; }
.px-nav .sub-menu::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.px-nav .sub-menu li { margin: 0; }
.px-nav .sub-menu a { margin: 0 10px; padding: 8px 5px; font-size: .8rem; text-transform: none; border-bottom: 1px solid #f2f2f2; }
.px-nav .sub-menu li:last-child a { border-bottom: 0; }

.px-menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: #000; }
.px-menu-toggle span, .px-menu-toggle span::before, .px-menu-toggle span::after {
	display: block; width: 24px; height: 3px; background: currentColor; position: relative; content: "";
}
.px-menu-toggle span::before { position: absolute; top: -7px; }
.px-menu-toggle span::after { position: absolute; top: 7px; }

/* ---------- Hero (home) ---------- */
.px-promo {
	background: #000 url("assets/images/bg-promo.jpg") center top / cover no-repeat;
	padding: 5px 0;
	text-align: center;
}
.px-promo img { display: block; width: 960px; max-width: 100%; margin: 0 auto; }

/* ---------- Main ---------- */
.px-main { padding: 10px 0 40px; }
.px-page-image { margin: 20px 0 0; }
.px-page-image img { display: block; width: 100%; }
.px-entry-title { font-size: 1.6rem; margin: 15px 0 10px; }
.px-entry { margin-bottom: 30px; }
.px-entry::after { content: ""; display: table; clear: both; }
.px-entry-content > * { max-width: 100%; }
.px-entry-content ol, .px-entry-content ul { padding-left: 22px; }
.px-entry-meta { color: #999; font-size: .9em; margin-bottom: 8px; }

/* Intro columns on the home page (was "content-top") */
.px-intro { margin: 10px 0 30px !important; gap: 24px !important; }
.px-intro .wp-block-column { text-align: center; padding: 10px; }
.px-intro h2 { font-size: 1.36rem; line-height: 40px; margin: 10px 0; text-transform: uppercase; }
.px-intro h2 a { color: var(--px-red); }
.px-intro .wp-block-image { margin: 15px auto 0; }
.px-intro .wp-block-image img { width: 50px; height: 50px; }
.px-more a, a.px-more { font-weight: 700; padding: 1px 4px; border-radius: 3px; }
.px-callout { color: #ff0000; font-size: 2rem !important; font-weight: 700; text-align: center; line-height: 1.3; }

/* Joomla page-builder rows → columns */
.wp-block-columns { margin-bottom: 20px; }
.wp-block-separator { border: 0; border-bottom: 2px solid #e0dede; margin: 25px 0; opacity: 1; }
.wp-block-table td, .wp-block-table th { border: 0; }
.wp-block-table thead { border-bottom: 1px solid var(--px-border); }

/* News */
.px-news-list .px-entry { padding-bottom: 20px; border-bottom: 1px solid var(--px-border); }
.px-news-list .px-entry:last-child { border-bottom: 0; }
.px-entry-title a { color: #000; }
.px-pagination { margin: 20px 0; }

/* ---------- Bottom band (Locatie / Repetitie / Social Media) ---------- */
.px-bottom { background: var(--px-grey); color: var(--px-dark); padding: 36px 0 25px; }
.px-bottom .px-container { display: grid; grid-template-columns: repeat(3, 1fr); gap: 25px; }
.px-bottom h3 { font-size: 1.04rem; text-transform: uppercase; margin: 10px 0 0; padding-bottom: 5px; line-height: 40px; }
.px-bottom ul { padding-left: 20px; }
.px-bottom li { margin-bottom: 6px; }
.px-social { display: flex; gap: 40px; justify-content: center; align-items: center; margin-top: 15px; }
.px-social img { width: 50px; height: 50px; display: block; }

/* ---------- Footer ---------- */
.px-footer { background: var(--px-footer); color: #999; text-align: center; font-size: .712rem; padding: 20px 0 10px; }
.px-footer a { color: #ccc; }
.px-footer p { margin: 0 0 10px; }

.px-gotop {
	position: fixed; right: 16px; bottom: 16px; background: #000; color: #999; padding: 8px 12px;
	font-family: var(--px-head); opacity: 0; visibility: hidden; transition: opacity .2s; z-index: 60;
}
.px-gotop.is-visible { opacity: .85; visibility: visible; }
.px-gotop:hover { color: #fff; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.px-menu-toggle { display: block; }
	.px-nav { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--px-border); display: none; }
	.px-nav.is-open { display: block; }
	.px-nav > ul { display: block; padding: 8px 16px 16px; }
	.px-nav li { margin: 0; }
	.px-nav a { padding: 10px 12px; border-bottom: 1px solid #f2f2f2; }
	.px-nav .sub-menu { position: static; opacity: 1; visibility: visible; box-shadow: none; width: auto; margin: 0 0 0 16px; }
	.px-nav .sub-menu a { margin: 0; }
}
@media (max-width: 781px) {
	.px-header .px-container { min-height: 80px; }
	.px-logo img { width: 140px; }
	.px-bottom .px-container { grid-template-columns: 1fr; }
	.px-callout { font-size: 1.5rem !important; }
	.px-entry-content table { display: block; overflow-x: auto; }
}
