/*
Theme Name: NCGK Nijmegen
Theme URI: https://github.com/michelkok/ncgk-wordpress
Description: Childthema van Hello Elementor voor NCGK Nijmegen. Pagina's maak je in Elementor; dit thema verzorgt de header, de footer, de lettertypes en de pagina's van nieuws, agenda en verhuurruimtes. Kleuren en lettertypes zijn Elementor-variabelen (kleur-primair, font-kop, …). Werkt samen met de plugin "NCGK Nijmegen: site".
Template: hello-elementor
Version: 0.2.0
Requires at least: 6.9
Requires PHP: 8.1
Author: NCGK Nijmegen
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ncgk
*/

/* Colours and fonts: the Elementor Variables (--kleur-*, --font-*), with defaults
   from inc/tokens.php. Sizes, radii and shadows below. */

@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: italic; font-weight: 400; font-display: swap; src: url("assets/fonts/source-sans-3-latin-400-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 600; font-display: swap; src: url("assets/fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: italic; font-weight: 600; font-display: swap; src: url("assets/fonts/source-serif-4-latin-600-italic.woff2") format("woff2"); }
@font-face { font-family: "Source Serif 4"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); }

:root {
	--ncgk-wrap: 72rem;
	--ncgk-gutter: clamp(1rem, 4vw, 1.5rem);
	--ncgk-radius: 4px;
	--ncgk-shadow-sm: 0 1px 2px rgba(24, 32, 42, 0.06);
	--ncgk-shadow-md: 0 2px 4px rgba(24, 32, 42, 0.06), 0 4px 12px rgba(24, 32, 42, 0.08);
	--ncgk-header-h: 84px;
}

/* ---------- Base (theme content: news, activities, rooms, header, footer) ---------- */
body {
	font-family: var(--font-tekst), "Source Sans 3", system-ui, sans-serif;
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--kleur-tekst);
	background: var(--kleur-wit);
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-kop), "Source Serif 4", Georgia, serif; font-weight: 600; line-height: 1.2; color: var(--kleur-nachtblauw); margin: 0 0 0.75rem; }
h1 { font-size: clamp(1.953rem, 4vw, 3.052rem); }
h2 { font-size: clamp(1.563rem, 3vw, 2.441rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.563rem); }
h4 { font-size: 1.125rem; }
a { color: var(--kleur-merktekst); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--kleur-primair-donker); }
:focus-visible { outline: 3px solid var(--kleur-primair); outline-offset: 2px; }
p { margin: 0 0 1rem; }
img { max-width: 100%; height: auto; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--ncgk-wrap) + 2 * var(--ncgk-gutter)); margin-inline: auto; padding-inline: var(--ncgk-gutter); }
.wrap--narrow { max-width: calc(48rem + 2 * var(--ncgk-gutter)); }
.site-main--elementor, body .site-main.article { max-width: none; padding: 0; }

/* Buttons used by the theme and the NCGK widgets (Elementor buttons use the "knop" classes).
   The :is() raises specificity above Hello Elementor's reset for [type=button]/[type=submit]. */
:is(a, button).ncgk-button {
	display: inline-block; padding: 0.75rem 1.25rem;
	font: 600 1rem/1.2 var(--font-tekst), sans-serif; text-decoration: none;
	color: var(--kleur-wit); background: var(--kleur-primair);
	border: 1px solid var(--kleur-primair); border-radius: var(--ncgk-radius); cursor: pointer;
}
:is(a, button).ncgk-button:is(:hover, :focus) { color: var(--kleur-wit); background: var(--kleur-merktekst); border-color: var(--kleur-merktekst); }
:is(a, button).ncgk-button--outline { color: var(--kleur-primair); background: var(--kleur-wit); }
:is(a, button).ncgk-button--outline:is(:hover, :focus) { color: var(--kleur-primair); background: var(--kleur-lichtblauw); border-color: var(--kleur-primair); }
:is(a, button).ncgk-button--small { padding: 0.35rem 0.75rem; font-size: 0.875rem; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--kleur-wit); border-bottom: 1px solid var(--kleur-lijn); }
.admin-bar .site-header { top: var(--wp-admin--admin-bar--height, 32px); }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: var(--ncgk-header-h); }
.site-brand { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; color: var(--kleur-nachtblauw); text-decoration: none; }
.site-brand:hover { color: var(--kleur-nachtblauw); }
.site-brand__logo { width: 48px; height: 48px; object-fit: contain; }
.site-brand__name { font-family: var(--font-kop), serif; font-weight: 700; font-size: 1.25rem; line-height: 1.1; }

.site-nav__list { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
.site-nav__list a { display: block; padding: 0.5rem 0.75rem; font-weight: 600; font-size: 1rem; color: var(--kleur-tekst); text-decoration: none; border-bottom: 3px solid transparent; }
.site-nav__list a:hover { color: var(--kleur-primair); }
.site-nav__list .current-menu-item > a, .site-nav__list .current-page-ancestor > a { color: var(--kleur-primair); border-bottom-color: var(--kleur-primair); }
.site-nav__list .nav-verhuur > a { margin-left: 0.75rem; padding: 0.5rem 1rem; color: var(--kleur-primair); border: 1px solid var(--kleur-primair); border-radius: var(--ncgk-radius); }
.site-nav__list .nav-verhuur > a::after { content: " ↗"; }
.site-nav__list .nav-verhuur > a:hover { color: var(--kleur-wit); background: var(--kleur-primair); }
.site-nav__list .nav-lang > a { font-weight: 400; color: var(--kleur-grijze-tekst); }

button.menu-toggle { display: none; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; font: 600 1rem var(--font-tekst), sans-serif; color: var(--kleur-nachtblauw); background: transparent; border: 1px solid var(--kleur-lijn-sterk); border-radius: var(--ncgk-radius); cursor: pointer; }
button.menu-toggle:is(:hover, :focus) { color: var(--kleur-nachtblauw); background: var(--kleur-lichtgrijs); border-color: var(--kleur-lijn-sterk); }
.site-header--verhuur button.menu-toggle:is(:hover, :focus) { color: var(--kleur-wit); background: rgba(255, 255, 255, 0.12); }
.menu-toggle__bars, .menu-toggle__bars::before, .menu-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; }
.menu-toggle__bars::before, .menu-toggle__bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle__bars::before { top: -6px; }
.menu-toggle__bars::after { top: 6px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::before { top: 0; transform: rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { top: 0; transform: rotate(-45deg); }

@media (max-width: 980px) {
	:root { --ncgk-header-h: 68px; }
	.site-header__inner { flex-wrap: wrap; gap: 0 1rem; }
	.site-brand__logo { width: 40px; height: 40px; }
	.site-brand__name { font-size: 1.125rem; }
	button.menu-toggle { display: inline-flex; }
	.site-nav { display: none; flex-basis: 100%; padding-bottom: 1rem; }
	.menu-open .site-nav { display: block; }
	.site-nav__list { flex-direction: column; align-items: stretch; }
	.site-nav__list li { border-top: 1px solid var(--kleur-lijn); }
	.site-nav__list a { padding: 0.9rem 0; font-size: 1.125rem; border-bottom: 0; }
	.site-nav__list .nav-verhuur { border-top: 0; margin-top: 1rem; }
	.site-nav__list .nav-verhuur > a { margin: 0; text-align: center; }
}

/* Rental header: dark, with its own menu. */
.site-header--verhuur { background: var(--kleur-primair-donker); border-bottom: 0; }
.site-header--verhuur .site-brand, .site-header--verhuur .site-nav__list a, .site-header--verhuur button.menu-toggle { color: var(--kleur-wit); }
.site-header--verhuur .site-brand__logo { background: var(--kleur-wit); padding: 3px; border-radius: var(--ncgk-radius); }
.site-header--verhuur .site-nav__list a:hover, .site-header--verhuur .site-nav__list .current-menu-item > a { color: var(--kleur-blauw-accent); border-bottom-color: var(--kleur-blauw-accent); }
.site-header--verhuur .site-nav__list .nav-back > a { font-weight: 400; opacity: 0.85; }
.site-header--verhuur button.menu-toggle { border-color: rgba(255, 255, 255, 0.4); }
.site-header--verhuur .site-nav__list li { border-top-color: rgba(255, 255, 255, 0.16); }

/* ---------- Page header (theme templates) ---------- */
.page-hero { margin-bottom: clamp(2rem, 4vw, 3rem); padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 2.5rem); background: var(--kleur-lichtblauw); border-bottom: 1px solid var(--kleur-blauw-zacht); }
.page-hero h1 { margin: 0 0 0.75rem; }
.page-hero__kicker { margin: 0 0 0.5rem; font-weight: 600; color: var(--kleur-merktekst); }
.page-hero__lead { margin: 0; max-width: 62ch; font-size: 1.25rem; line-height: 1.4; }

/* ---------- News post, activity, room ---------- */
.article { padding-bottom: clamp(3rem, 7vw, 5rem); }
.article__image { margin: 0 0 1.5rem; }
.article__image img { width: 100%; border-radius: var(--ncgk-radius); }
.article__facts { font-weight: 600; color: var(--kleur-merktekst); }
.article__body .entry-content > * + * { margin-top: 1rem; }
.article__body ul { padding-left: 1.25rem; }
.article__columns { display: grid; grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr); gap: 3rem; align-items: start; }
@media (max-width: 820px) { .article__columns { grid-template-columns: 1fr; gap: 2rem; } }
.article__back { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--kleur-lijn); }
.price-box { padding: 1.5rem; background: var(--kleur-lichtgrijs); border: 1px solid var(--kleur-lijn); border-radius: var(--ncgk-radius); }
.price-box__title { font-size: 1.563rem; }
.price-box dl { margin: 0 0 1rem; }
.price-box__row { display: flex; justify-content: space-between; padding-block: 0.5rem; border-bottom: 1px solid var(--kleur-lijn); }
.price-box dd { margin: 0; font-weight: 700; }
.price-box__note { font-size: 0.875rem; color: var(--kleur-grijze-tekst); }
.link-list { margin: 0 0 2rem; padding-left: 1.25rem; }
.link-list li { margin-bottom: 0.5rem; }

/* ---------- Footer ---------- */
.site-footer { padding-block: 4rem 1.5rem; background: var(--kleur-primair-donker); color: rgba(255, 255, 255, 0.78); font-size: 1rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--kleur-wit); text-decoration: underline; text-underline-offset: 3px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .site-footer__grid { grid-template-columns: 1fr; } }
.site-footer p { margin: 0 0 0.5rem; }
.site-brand--footer { margin-bottom: 1rem; color: var(--kleur-wit); }
.site-brand--footer .site-brand__logo { width: 44px; height: 44px; padding: 5px; background: var(--kleur-wit); border-radius: var(--ncgk-radius); }
.site-brand--footer .site-brand__name { font-size: 1.125rem; }
.site-footer__heading { margin-bottom: 0.75rem; font-size: 1.125rem; color: var(--kleur-wit); }
.site-footer__links { margin: 0; padding: 0; list-style: none; }
.site-footer__links li { margin-bottom: 0.5rem; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: 0.875rem; }
.site-footer__bottom p { margin: 0; }

/* ---------- Elementor content: details the class system can't express ---------- */
/* FAQ accordions: + / – marker. */
.elementor .faq-vraag::after { content: "+"; flex-shrink: 0; font: 400 1.5rem/1 var(--font-tekst), sans-serif; color: var(--kleur-primair); }
.elementor details[open] > .faq-vraag::after { content: "–"; }
.elementor .faq-vraag::-webkit-details-marker { display: none; }
.elementor .faq-vraag .e-accordion-item-icon, .elementor .faq-vraag [class*="icon"] { display: none; }
/* "Zondag live" badge dot. */
.elementor .live-label::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 0.5rem; border-radius: 50%; background: currentColor; vertical-align: 1px; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
