/*
Theme Name: Mestre LMS
Theme URI: https://mestre.nl/
Description: Lichtgewicht zelfstandig WordPress-thema voor het Mestre leerplatform.
Author: Mestre
Version: 0.6.2
Text Domain: mestre-lms
*/

:root {
	--bungee: "Bungee", Impact, sans-serif;
	--font-body: "DM Sans", Arial, Helvetica, sans-serif;
	--mestre-brand-softwhite: #f6f2ed;
	--mestre-brand-plannen: #f0ba5f;
	--mestre-brand-ondersteunen: #bce1e6;
	--mestre-brand-organiseren: #aad194;
	--mestre-brand-teal: #74adaf;
	--mestre-brand-black: #30373d;
	--mestre-white: #ffffff;
	--mestre-font-family: var(--font-body);
	--mestre-font-size-body: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
	--mestre-font-size-small: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
	--mestre-font-size-navigation: clamp(0.9375rem, 0.9rem + 0.1875vw, 1.0625rem);
	--mestre-font-size-h1: clamp(2.5rem, 1.75rem + 3vw, 5rem);
	--mestre-font-size-h2: clamp(2rem, 1.5rem + 2vw, 3.75rem);
	--mestre-font-size-h3: clamp(1.625rem, 1.3rem + 1.4vw, 2.75rem);
	--mestre-font-size-h4: clamp(1.375rem, 1.15rem + 1vw, 2.125rem);
	--mestre-font-size-h5: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
	--mestre-font-size-h6: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
	--mestre-content-width: 78rem;
	--mestre-reading-width: 48rem;
	--mestre-space-page: clamp(1.25rem, 4vw, 4rem);
	--mestre-space-section: clamp(3rem, 7vw, 7rem);
	--mestre-radius-small: 0.5rem;
	--mestre-radius: 1rem;
	--mestre-shadow: 0 1rem 3rem rgba(48, 55, 61, 0.08);
	--theme-primary: var(--mestre-brand-teal);
	--theme-background: var(--mestre-brand-softwhite);
	--theme-text: var(--mestre-brand-black);
}

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--mestre-brand-softwhite);
	color: var(--mestre-brand-black);
	font-family: var(--mestre-font-family);
	font-size: var(--mestre-font-size-body);
	font-weight: 400;
	line-height: 1.65;
}

button,
input,
select,
textarea {
	font: inherit;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: var(--mestre-brand-teal);
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
	color: var(--mestre-brand-black);
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin-block: 0 0.5em;
	color: var(--mestre-brand-black);
	font-family: var(--bungee);
	font-weight: 400;
}

h1 { font-size: var(--mestre-font-size-h1); line-height: 1.05; }
h2 { font-size: var(--mestre-font-size-h2); line-height: 1.1; }
h3 { font-size: var(--mestre-font-size-h3); line-height: 1.15; }
h4 { font-size: var(--mestre-font-size-h4); line-height: 1.2; }
h5 { font-size: var(--mestre-font-size-h5); line-height: 1.25; }
h6 { font-size: var(--mestre-font-size-h6); line-height: 1.3; }

p,
ul,
ol,
blockquote {
	margin-block: 0 1.25em;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	top: 1rem;
	left: 1rem;
	z-index: 100000;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	clip: auto;
	background: var(--mestre-white);
	color: var(--mestre-brand-black);
}

.mestre-container {
	width: min(calc(100% - (2 * var(--mestre-space-page))), var(--mestre-content-width));
	margin-inline: auto;
}

.mestre-reading-width {
	max-width: var(--mestre-reading-width);
}

.site-header {
	position: relative;
	z-index: 20;
	border-bottom: 1px solid rgba(48, 55, 61, 0.12);
	background: rgba(246, 242, 237, 0.96);
}

.site-header__inner {
	display: flex;
	min-height: 5.25rem;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}

.site-branding a {
	color: var(--mestre-brand-black);
	font-size: clamp(1.4rem, 2vw, 2rem);
	font-weight: 700;
	letter-spacing: -0.04em;
	text-decoration: none;
}

.custom-logo {
	display: block;
	width: auto;
	height: 3rem;
	max-width: min(22rem, 58vw);
	object-fit: contain;
}

.primary-navigation ul {
	display: flex;
	align-items: center;
	gap: clamp(1rem, 2.5vw, 2.25rem);
	margin: 0;
	padding: 0;
	list-style: none;
}

.primary-navigation a {
	color: var(--mestre-brand-black);
	font-family: var(--bungee);
	font-size: var(--mestre-font-size-navigation);
	font-weight: 400;
	text-decoration: none;
}

.primary-navigation .menu-item-has-children {
	position: relative;
}

.primary-navigation .sub-menu {
	display: none;
	position: absolute;
	top: 100%;
	right: 0;
	min-width: 15rem;
	padding: 0.6rem;
	border: 1px solid rgba(48, 55, 61, 0.12);
	border-radius: var(--mestre-radius-small);
	background: var(--mestre-white);
	box-shadow: var(--mestre-shadow);
	flex-direction: column;
	align-items: stretch;
	gap: 0;
}

.primary-navigation .menu-item-has-children:hover > .sub-menu,
.primary-navigation .menu-item-has-children:focus-within > .sub-menu {
	display: flex;
}

.primary-navigation .sub-menu a {
	display: block;
	padding: 0.65rem 0.8rem;
	border-radius: calc(var(--mestre-radius-small) * 0.75);
	font-family: var(--font-body);
	font-weight: 600;
}

.primary-navigation .sub-menu a:hover,
.primary-navigation .sub-menu a:focus-visible {
	background: var(--mestre-brand-ondersteunen);
}

.primary-navigation .current-menu-item > a,
.primary-navigation a:hover,
.primary-navigation a:focus-visible {
	color: var(--mestre-brand-teal);
}

.site-main {
	min-height: 60vh;
}

.mestre-page-header {
	padding-block: clamp(3rem, 7vw, 6rem);
	background: var(--theme-primary);
}

.mestre-page-header h1 {
	max-width: 15ch;
	margin: 0;
}

.mestre-content {
	padding-block: var(--mestre-space-section);
}

.mestre-content > *:first-child {
	margin-top: 0;
}

.mestre-content > *:last-child {
	margin-bottom: 0;
}

.mestre-card {
	padding: clamp(1.25rem, 3vw, 2rem);
	border-top: 0.375rem solid var(--theme-primary);
	border-radius: var(--mestre-radius);
	background: var(--mestre-white);
	box-shadow: var(--mestre-shadow);
}

.mestre-button,
button,
input[type="button"],
input[type="submit"] {
	display: inline-flex;
	min-height: 3rem;
	align-items: center;
	justify-content: center;
	padding: 0.65rem 1.25rem;
	border: 0;
	border-radius: var(--mestre-radius-small);
	background: var(--theme-primary);
	color: var(--mestre-brand-black);
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.mestre-button:hover,
.mestre-button:focus-visible,
button:hover,
button:focus-visible,
input[type="submit"]:hover,
input[type="submit"]:focus-visible {
	filter: brightness(0.94);
	color: var(--mestre-brand-black);
}

.mestre-button--dark {
	background: var(--mestre-brand-black);
	color: var(--mestre-white);
}

.mestre-button--dark:hover,
.mestre-button--dark:focus-visible {
	color: var(--mestre-white);
}

.mestre-home-hero {
	padding-block: clamp(2rem, 5vw, 5rem);
	background: linear-gradient(135deg, var(--mestre-brand-ondersteunen), color-mix(in srgb, var(--mestre-brand-teal) 72%, white));
}

.mestre-home-intro {
	max-width: 54rem;
	padding-block: clamp(2rem, 5vw, 4rem);
}

.mestre-home-intro h1,
.mestre-student-panel h1 {
	max-width: 16ch;
	font-size: clamp(2.25rem, 1.7rem + 2.7vw, 4.75rem);
}

.mestre-home-intro__text {
	max-width: 44rem;
	margin-block: 1rem 1.75rem;
	font-size: clamp(1.05rem, 1rem + 0.3vw, 1.25rem);
}

.mestre-student-panel {
	display: grid;
	overflow: hidden;
	grid-template-columns: minmax(0, 1.6fr) minmax(16rem, 0.75fr);
	border-radius: clamp(1rem, 2vw, 1.5rem);
	background: var(--mestre-white);
	box-shadow: 0 1.5rem 4rem rgba(48, 55, 61, 0.13);
}

.mestre-student-panel__main,
.mestre-student-panel__notice {
	padding: clamp(1.5rem, 4vw, 3.5rem);
}

.mestre-student-panel__notice {
	border-left: 1px solid rgba(48, 55, 61, 0.12);
	background: color-mix(in srgb, var(--mestre-brand-plannen) 35%, white);
}

.mestre-student-panel__notice p:last-child { margin-bottom: 0; }
.mestre-student-panel__course { margin: 1rem 0 0.65rem; font-size: clamp(1.05rem, 1rem + 0.35vw, 1.3rem); font-weight: 700; }
.mestre-student-panel__progress { overflow: hidden; max-width: 36rem; height: 0.7rem; border-radius: 999px; background: rgba(48, 55, 61, 0.12); }
.mestre-student-panel__progress span { display: block; height: 100%; border-radius: inherit; background: var(--mestre-brand-organiseren); }
.mestre-student-panel__actions { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; margin-top: 1.5rem; }
.mestre-text-link { color: var(--mestre-brand-black); font-weight: 700; }
.mestre-home-section { padding-block: clamp(3rem, 7vw, 6rem); background: var(--mestre-brand-softwhite); }
.mestre-home-page-content { border-top: 1px solid rgba(48, 55, 61, 0.12); }

input:not([type="button"]):not([type="submit"]),
select,
textarea {
	width: 100%;
	padding: 0.75rem 0.9rem;
	border: 1px solid rgba(48, 55, 61, 0.24);
	border-radius: var(--mestre-radius-small);
	background: var(--mestre-white);
	color: var(--mestre-brand-black);
}

.mestre-theme--plannen { --theme-primary: var(--mestre-brand-plannen); }
.mestre-theme--ondersteunen { --theme-primary: var(--mestre-brand-ondersteunen); }
.mestre-theme--organiseren { --theme-primary: var(--mestre-brand-organiseren); }
.mestre-theme--teal { --theme-primary: var(--mestre-brand-teal); }

.site-footer {
	min-height: 11.5rem;
	padding-block: 1rem 2.5rem;
	background: #242423;
	color: var(--mestre-brand-softwhite);
}

.site-footer__inner {
	border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.site-footer__bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: clamp(1.5rem, 4vw, 4rem);
	padding-top: 2rem;
}

.site-footer__brands {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	flex: 0 0 auto;
}

.site-footer__brands a {
	display: block;
	transition: opacity 160ms ease;
}

.site-footer__brands a:hover,
.site-footer__brands a:focus-visible {
	opacity: 0.78;
}

.site-footer__group-logo,
.site-footer__supermentor-logo {
	display: block;
	height: auto;
}

.site-footer__group-logo {
	width: 6rem;
}

.site-footer__supermentor-logo {
	width: 9rem;
}

.site-footer__navigation {
	margin-right: auto;
}

.site-footer__navigation ul {
	display: flex;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-footer a {
	color: var(--mestre-brand-ondersteunen);
}

.site-footer p {
	margin: 0;
	font-size: 0.75rem;
	opacity: 0.72;
}

@media (max-width: 48rem) {
	.mestre-student-panel { grid-template-columns: 1fr; }
	.mestre-student-panel__notice { border-top: 1px solid rgba(48, 55, 61, 0.12); border-left: 0; }
	.site-header__inner,
	.site-footer__bar {
		align-items: flex-start;
		flex-direction: column;
	}

	.site-footer__bar { gap: 1.25rem; }
	.site-footer__brands { gap: 1rem; }
	.site-footer__supermentor-logo { width: min(9rem, 42vw); }
	.site-footer__navigation { margin-right: 0; }

	.site-header__inner {
		padding-block: 1rem;
	}

	.primary-navigation ul {
		align-items: flex-start;
		flex-direction: column;
		gap: 0.5rem;
	}
}
