/*
Theme Name:        Serviceclub Rooi
Theme URI:         https://serviceclubrooi.nl/
Author:            Serviceclub Rooi
Author URI:        https://serviceclubrooi.nl/
Description:       Maatwerkthema voor Serviceclub Rooi (Sint-Oedenrode), een-op-een gebaseerd op het ontwerp van de oorspronkelijke website serviceclubrooi.nl. Grote foto met slogan op de homepage, blauwe band met kernpunten, nieuwsoverzicht in drie kolommen, plakkende kopbalk met meekrimpend logo en donkere footer.
Version:           1.0.0
Requires at least: 6.6
Tested up to:      7.1
Requires PHP:      7.4
License:           GNU General Public License v2 or later
License URI:       https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:       serviceclubrooi
Tags:              one-column, custom-logo, custom-menu, featured-images, editor-style
*/

/* ==========================================================================
   1. Variabelen & basis
   ========================================================================== */

:root {
	--scr-blue: #01406e;
	--scr-blue-dark: #012f52;
	--scr-red: #de0a16;
	--scr-dark: #2a2a2a;
	--scr-text: #000;
	--scr-font: "Helvetica", "Arial", sans-serif;
	--scr-bar: 50px;          /* hoogte witte menubalk */
	--scr-pad: 70px;          /* ruimte boven de menubalk (desktop) */
	--scr-inner: 1000px;      /* maximale contentbreedte */
	--scr-ease: 500ms;
}

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

html,
body {
	margin: 0;
	padding: 0;
}

body {
	font-family: var(--scr-font);
	font-size: 16px;
	line-height: 1.15;
	color: var(--scr-text);
	background-color: #fff;
	-webkit-text-size-adjust: 100%;
}

h1, h2, h3, h4, h5, h6,
p, ul, ol, figure, blockquote {
	margin: 0;
}

img,
video,
iframe {
	max-width: 100%;
}

img {
	height: auto;
	border: 0;
}

a {
	color: var(--scr-blue);
}

.inner {
	max-width: var(--scr-inner);
	width: 100%;
	margin: 0 auto;
	padding: 0 10px;
}

.clear {
	clear: both;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.skip-link:focus {
	clip: auto;
	clip-path: none;
	height: auto;
	width: auto;
	margin: 0;
	left: 10px;
	top: 10px;
	z-index: 100000;
	padding: 12px 18px;
	background: #fff;
	color: var(--scr-blue);
	font-weight: bold;
	box-shadow: 0 0 0 2px var(--scr-blue);
}

:focus-visible {
	outline: 2px solid var(--scr-blue);
	outline-offset: 2px;
}

.site {
	position: relative;
	display: flex;
	flex-direction: column;
	min-height: calc(100vh - var(--wp-admin--admin-bar--height, 0px));
}

.site > * {
	flex-shrink: 0;
}

/* Korte pagina's: footer blijft onderaan het scherm. */
.site-main {
	flex-grow: 1;
}

/* ==========================================================================
   2. Achtergrondafbeeldingen
   ========================================================================== */

/* Vaste achtergrond achter de pagina's; alleen de bovenste 420px is zichtbaar. */
.background {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: -125vh; /* voorkomt een gat op iOS bij het meeschuiven van de adresbalk */
	z-index: -2;
	background-size: cover;
	background-position: center top;
	background-repeat: no-repeat;
}

.background--whiteout {
	top: 420px;
	z-index: -1;
	background-color: #fff;
}

/* Homepage: de grote foto achter kopbalk + hero. */
.background--hero {
	position: absolute;
	bottom: auto;
	height: calc(var(--scr-pad) + 80vh);
	background-position: center;
}

/* ==========================================================================
   3. Kopbalk & navigatie
   ========================================================================== */

.header-pad {
	height: var(--scr-pad);
}

/* De kopbalk neemt (net als op de oude site) geen ruimte in: hij ligt over de foto heen. */
.site-header {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	left: 0;
	right: 0;
	z-index: 999;
	height: 0;
}

.admin-bar .site-header {
	top: 32px;
}

.site-header__bar {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: var(--scr-bar);
	background-color: #fff;
	z-index: 1;
}

.site-header__inner {
	position: relative;
	z-index: 2;
	height: var(--scr-bar);
}

.site-logo {
	position: absolute;
	top: -50px;
	left: 10px;
	display: block;
	width: 150px;
	height: 150px;
}

.site-logo img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

.main-navigation .menu {
	display: flex;
	flex-wrap: wrap;
	list-style: none;
	margin: 0 0 0 160px;
	padding: 0;
}

.main-navigation li {
	background-color: #fff;
	line-height: var(--scr-bar);
	padding: 0 10px;
}

.main-navigation a {
	color: #000;
	text-decoration: none;
}

.main-navigation a:hover,
.main-navigation a:focus-visible,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current_page_parent > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--scr-blue);
}

.main-navigation .sub-menu,
.main-navigation .children {
	display: none;
}

/* Klein (na scrollen): logo krimpt en het menu schuift op. */
.site-header.is-small .site-logo {
	top: 5px;
	width: 40px;
	height: 40px;
}

.site-header.is-small .main-navigation .menu {
	margin-left: 50px;
}

.site-header.is-animated,
.site-header.is-animated .site-logo,
.site-header.is-animated .site-header__bar,
.site-header.is-animated .main-navigation .menu {
	transition: all var(--scr-ease);
}

.menu-toggle {
	display: none;
}

/* ==========================================================================
   4. Homepage
   ========================================================================== */

.hero {
	position: relative;
	height: 80vh;
}

.hero__inner {
	position: relative;
	height: 100%;
}

.hero__tagline {
	position: absolute;
	bottom: 5px;
	right: 10px;
	margin: 0;
	font-size: 70px;
	line-height: 1.15;
	font-weight: bold;
	letter-spacing: -3px;
	color: #fff;
	text-align: right;
	text-shadow: 0 0 3px #000;
}

.shorttext {
	width: 100%;
	padding: 10px;
	background-color: var(--scr-blue);
}

.shorttext .inner {
	max-width: 700px;
	padding: 20px 0;
}

.shorttext__list {
	list-style: none;
	margin: 0;
	padding: 0;
	text-align: center;
}

.shorttext__list li {
	margin: 10px 0;
	color: #fff;
	font-size: 26px;
}

.front-content {
	background-color: #fff;
}

.front-content > .inner {
	padding-top: 30px;
	padding-bottom: 10px;
}

/* ==========================================================================
   5. Nieuwsoverzicht (kaarten)
   ========================================================================== */

.activity-list {
	background-color: #fff;
}

.activity-list > .inner {
	padding: 30px 10px;
}

.activity-list__title {
	font-size: 1.5em;
}

.activity-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	column-gap: 5%;
	list-style: none;
	margin: 0;
	padding: 0;
}

.activity {
	display: flex;
	flex-direction: column;
	padding-top: 25px;
}

.activity__title {
	font-size: 1em;
	font-weight: bold;
}

.activity__date {
	display: block;
	font-size: 12px;
	line-height: 16px;
}

.activity__excerpt {
	margin: 8px 0 20px;
	line-height: 1.15;
}

.activity-list--home .activity__excerpt {
	margin: 0;
	padding-top: 30px;
}

.activity .button {
	align-self: flex-end;
	margin-top: 5px;
}

.activity-list__more {
	margin: 30px 0 0;
	text-align: right;
}

.activity-list__more a {
	color: var(--scr-blue);
	font-weight: bold;
	text-decoration: none;
}

.activity-list__more a:hover {
	text-decoration: underline;
}

.no-results {
	margin: 20px 0;
}

/* ==========================================================================
   6. Knoppen & formulieren
   ========================================================================== */

a.button,
.button,
button.button,
input[type="submit"],
.wp-element-button,
.wp-block-button__link {
	display: inline-block;
	padding: 8px 14px;
	border: 0;
	border-radius: 3px;
	background-color: var(--scr-blue);
	color: #fff;
	font-family: var(--scr-font);
	font-size: 16px;
	line-height: 1.15;
	text-decoration: none;
	cursor: pointer;
}

a.button:hover,
.button:hover,
input[type="submit"]:hover,
.wp-element-button:hover,
.wp-block-button__link:hover {
	background-color: var(--scr-blue-dark);
	color: #fff;
}

a.button.button--secondary,
.button.button--secondary {
	background-color: transparent;
	color: var(--scr-blue);
	box-shadow: inset 0 0 0 2px var(--scr-blue);
}

a.button.button--secondary:hover,
.button.button--secondary:hover {
	background-color: var(--scr-blue);
	color: #fff;
}

.scr-form {
	max-width: 500px;
	margin: 20px 0;
}

.scr-form__field {
	margin: 10px 0;
}

.scr-form label {
	display: block;
	margin-bottom: 4px;
}

.scr-form input[type="text"],
.scr-form input[type="email"],
.scr-form textarea,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content input[type="url"],
.entry-content textarea,
.entry-content select {
	display: block;
	width: 100%;
	max-width: 500px;
	padding: 8px;
	border: 1px solid #b4b4b4;
	border-radius: 3px;
	background: #fff;
	color: #000;
	font-family: var(--scr-font);
	font-size: 16px;
}

.scr-form textarea,
.entry-content textarea {
	min-height: 150px;
	resize: vertical;
}

.scr-form input:focus,
.scr-form textarea:focus {
	outline: 2px solid var(--scr-blue);
	outline-offset: 0;
	border-color: var(--scr-blue);
}

.scr-form__hp {
	position: absolute !important;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.scr-notice {
	margin: 20px 0;
	padding: 12px 14px;
	border-left: 4px solid var(--scr-blue);
	background: #eef3f8;
}

.scr-notice--success {
	border-left-color: #2e7d32;
	background: #eaf4eb;
}

.scr-notice--error {
	border-left-color: var(--scr-red);
	background: #fbeaeb;
}

/* ==========================================================================
   7. Content-pagina's
   ========================================================================== */

.headerpadding {
	padding-top: 120px;
}

.contentcontainer .heading {
	padding: 40px 0;
	background-color: rgba(255, 255, 255, 0.5);
	color: #fff;
	font-size: 26px;
	text-shadow: 0 0 3px #000;
}

.contentcontainer .heading h1 {
	font-size: 2em;
	line-height: 1.15;
	overflow-wrap: break-word;
}

.contentcontainer .body {
	padding: 20px 0;
	background-color: #fff;
}

.contentcontainer .body > .inner::after,
.entry-content::after {
	content: "";
	display: table;
	clear: both;
}

.entry-meta {
	display: block;
}

.entry-thumbnail {
	float: right;
	width: 300px;
	height: 200px;
	margin: 0 0 10px 20px;
}

.entry-thumbnail img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.entry-content {
	line-height: 1.3;
}

.entry-content p {
	margin: 20px 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
	margin: 20px 0 0;
	line-height: 1.2;
}

.entry-content h2 + p,
.entry-content h3 + p,
.entry-content h4 + p {
	margin-top: 10px;
}

.entry-content ul,
.entry-content ol {
	margin: 20px 0;
	padding: 0 0 0 30px;
}

.entry-content li {
	padding-left: 5px;
}

.entry-content li > ul,
.entry-content li > ol {
	margin: 5px 0;
}

.entry-content blockquote,
.entry-content .wp-block-quote {
	margin: 20px 0;
	padding: 5px 0 5px 20px;
	border-left: 4px solid var(--scr-blue);
}

.entry-content figure,
.entry-content .wp-block-image {
	margin: 20px 0;
}

.entry-content figcaption,
.wp-caption-text,
.gallery-caption {
	font-size: 12px;
	margin-top: 6px;
	color: #444;
}

.entry-content table {
	border-collapse: collapse;
	width: 100%;
	margin: 20px 0;
}

.entry-content th,
.entry-content td {
	border: 1px solid #ddd;
	padding: 6px 8px;
	text-align: left;
}

.entry-content hr {
	border: 0;
	border-top: 1px solid #ddd;
	margin: 30px 0;
}

.alignleft {
	float: left;
	margin: 5px 20px 10px 0;
}

.alignright {
	float: right;
	margin: 5px 0 10px 20px;
}

.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.wp-caption {
	max-width: 100%;
}

/* Vastgezette berichten en reacties krijgen geen afwijkende stijl. */
.sticky,
.bypostauthor {
	display: block;
}

.activity.sticky {
	display: flex;
}

.entry-footer {
	clear: both;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 30px 0 10px;
}

/* Paginering in het nieuwsoverzicht */
.pagination {
	clear: both;
	margin: 40px 0 10px;
}

.pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 6px;
}

.pagination .page-numbers {
	display: inline-block;
	min-width: 36px;
	padding: 8px 12px;
	border-radius: 3px;
	background: #eef3f8;
	color: var(--scr-blue);
	text-align: center;
	text-decoration: none;
}

.pagination .page-numbers.current,
.pagination a.page-numbers:hover {
	background: var(--scr-blue);
	color: #fff;
}

.pagination .page-numbers.dots {
	background: transparent;
}

/* ==========================================================================
   8. Footer
   ========================================================================== */

.site-footer {
	width: 100%;
	min-height: 150px;
	overflow: hidden;
	background-color: var(--scr-dark);
	color: #fff;
}

.footer-grid {
	display: grid;
	grid-template-columns: 25% 50% 25%;
	min-height: 150px;
}

.footer-logo {
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer-logo img {
	display: block;
	width: 75px;
	height: 75px;
}

.footer-menu,
.footer-navigation .menu {
	list-style: none;
	margin: 0;
	padding: 46px 0;
	columns: 2;
	column-gap: 0;
}

.footer-navigation li {
	break-inside: avoid;
}

.footer-navigation a {
	color: #fff;
	text-decoration: none;
}

.footer-navigation a:hover,
.footer-navigation a:focus-visible {
	text-decoration: underline;
}

.footer-navigation .sub-menu,
.footer-navigation .children {
	display: none;
}

.footer-meta {
	padding: 46px 0;
	font-size: 12px;
	text-align: right;
}

.social-links {
	display: flex;
	justify-content: flex-end;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0 0 10px;
}

.social-links a {
	display: block;
	width: 40px;
	height: 40px;
}

.social-links svg {
	display: block;
	width: 40px;
	height: 40px;
}

.footer-meta p {
	margin: 0;
	line-height: 1.2;
}

.footer-meta a {
	color: #fff;
	text-decoration: none;
}

/* ==========================================================================
   9. Responsief
   ========================================================================== */

@media screen and (max-width: 1000px) {
	.main-navigation li {
		padding-left: 0;
	}

	.contentcontainer .heading {
		padding: 20px 0;
	}
}

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

@media screen and (max-width: 600px) {
	.admin-bar .site-header {
		top: 0; /* de admin-balk scrolt op mobiel mee */
	}

	.header-pad {
		height: 0;
	}

	.site-header.is-animated,
	.site-header.is-animated .site-logo,
	.site-header.is-animated .site-header__bar,
	.site-header.is-animated .main-navigation .menu {
		transition: none;
	}

	.site-logo,
	.site-header.is-small .site-logo {
		top: 5px;
		width: 40px;
		height: 40px;
	}

	.menu-toggle {
		display: block;
		position: absolute;
		top: 12px;
		right: 10px;
		width: 26px;
		height: 26px;
		padding: 0;
		border: 0;
		background: transparent;
		cursor: pointer;
	}

	.menu-toggle__bars,
	.menu-toggle__bars::before,
	.menu-toggle__bars::after {
		content: "";
		position: absolute;
		left: 1px;
		right: 1px;
		height: 3px;
		border-radius: 2px;
		background-color: #000;
		transition: transform 200ms, opacity 200ms;
	}

	.menu-toggle__bars {
		top: 50%;
		margin-top: -1.5px;
	}

	.menu-toggle__bars::before {
		left: 0;
		right: 0;
		top: -8px;
	}

	.menu-toggle__bars::after {
		left: 0;
		right: 0;
		top: 8px;
	}

	.site-header.is-open .menu-toggle__bars {
		background-color: transparent;
	}

	.site-header.is-open .menu-toggle__bars::before {
		transform: translateY(8px) rotate(45deg);
	}

	.site-header.is-open .menu-toggle__bars::after {
		transform: translateY(-8px) rotate(-45deg);
	}

	.main-navigation .menu,
	.site-header.is-small .main-navigation .menu {
		display: none;
		position: absolute;
		top: var(--scr-bar);
		left: 0;
		right: 0;
		margin: 0;
		background-color: #fff;
		border-bottom: 1px solid silver;
	}

	.site-header.is-open .main-navigation .menu {
		display: block;
	}

	.main-navigation li {
		padding: 0;
	}

	.main-navigation a {
		display: block;
		padding: 0 10px;
		line-height: var(--scr-bar);
	}

	.hero {
		height: 60vh;
		max-height: 500px;
	}

	.background--hero {
		height: min(60vh, 500px);
	}

	.hero__tagline {
		font-size: 48px;
		letter-spacing: -2px;
	}

	.shorttext__list li {
		font-size: 22px;
	}

	.activity-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.headerpadding {
		padding-top: 50px;
	}

	.contentcontainer .heading {
		padding: 30px 0;
		font-size: 18px;
	}

	.entry-thumbnail {
		float: none;
		width: 100%;
		height: 200px;
		margin: 10px 0 0;
	}

	.footer-grid {
		grid-template-columns: 33.333% 66.667%;
	}

	.footer-meta {
		grid-column: 1 / -1;
		padding: 0 0 30px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.site-header.is-animated,
	.site-header.is-animated * {
		transition: none !important;
	}
}
