/*
Theme Name: Haarstudio Yolanda
Author: Haarstudio Yolanda
Description: Complete website van Haarstudio Yolanda als blokthema: de vertrouwde look (zwarte achtergrond, zijbalk met de haarfoto, witte inhoudskaarten) met alle pagina's, teksten en foto's ingebouwd.
Version: 1.1.0
Requires at least: 6.5
Tested up to: 6.8
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: haarstudio-yolanda
*/

/*
 * Headerfoto van de zijbalk: assets/images/header.jpg in deze themamap.
 * Andere foto? Vervang dat bestand door een nieuwe foto met dezelfde naam.
 */
:root {
	--hy-shadow: 0 0 1px rgba(0, 0, 0, 0.15);
	--hy-line: rgba(255, 255, 255, 0.1);
}

/* ---------- Basis (mobiel eerst) ---------- */
html { font-size: 62.5%; }
body {
	margin: 0;
	background-color: #000;
	color: #333;
	font-family: "Noto Serif", Georgia, serif;
	font-size: 1.5rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
.wp-site-blocks { padding: 0; }
.wp-site-blocks > * { margin-block-start: 0 !important; }

a { color: #333; }
img { max-width: 100%; height: auto; }
iframe, embed, object, video { max-width: 100%; }

/* Lay-out */
.hy-site { position: relative; }
.hy-site::after { content: ""; display: table; clear: both; }
.hy-site > * { margin-block-start: 0 !important; }
.hy-sidebar { position: relative; z-index: 1; }
.hy-content { padding: 7.6923% 0; }

/* ---------- Zijbalk / header ---------- */
.hy-site-header {
	margin: 0 !important;
	padding: 7.6923%;
	background-color: #000;
	background-image: url("assets/images/header.jpg");
	background-repeat: no-repeat;
	background-position: 50% 50%;
	background-size: cover;
}
.hy-site-header > * { margin-block-start: 0 !important; }
.hy-site-header .wp-block-site-title {
	margin: 0;
	font-family: "Noto Sans", Arial, sans-serif;
	font-size: 2.2rem;
	font-weight: 700;
	line-height: 1.3636;
}
.hy-site-header .wp-block-site-title a { color: #fff; text-decoration: none; }
.hy-site-header .wp-block-site-title a:hover,
.hy-site-header .wp-block-site-title a:focus { color: rgba(255, 255, 255, 0.7); }
.hy-site-header .wp-block-site-tagline {
	margin: 0.5em 0 0 !important;
	font-family: "Noto Sans", Arial, sans-serif;
	font-size: 1.2rem;
	line-height: 1.5;
	color: #fff;
}

/* Menu */
.hy-nav { margin-top: 1.6em !important; font-size: 1.5rem; }
.hy-nav .wp-block-navigation__container { gap: 0 !important; width: 100%; }
.hy-nav .wp-block-navigation-item { width: 100%; border-top: 1px solid var(--hy-line); }
.hy-nav .wp-block-navigation-item:last-child { border-bottom: 1px solid var(--hy-line); }
.hy-nav .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 0.8em 0;
	color: #fff;
	text-decoration: none;
}
.hy-nav .wp-block-navigation-item__content:hover,
.hy-nav .wp-block-navigation-item__content:focus { color: rgba(255, 255, 255, 0.7); }
.hy-nav .current-menu-item > .wp-block-navigation-item__content { font-weight: 700; }
/* Uitklapmenu op de telefoon */
.hy-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 2em; }
.hy-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding: 0.8em 0; font-size: 1.8rem; }

/* ---------- Inhoudskaart ---------- */
.hy-entry {
	margin: 0 7.6923% !important;
	padding-top: 7.6923%;
	background: #fff;
	box-shadow: var(--hy-shadow);
}
.hy-entry + .hy-entry { margin-top: 7.6923% !important; }
.hy-entry > * { margin-block-start: 0 !important; }
.hy-entry-title {
	margin: 0 0 1.1538em !important;
	padding: 0 7.6923%;
	font-size: 2.6rem;
	line-height: 1.1538;
	font-weight: 700;
	color: #333;
}
.hy-entry-title a { color: #333; text-decoration: none; }
.hy-entry-content,
.hy-entry-summary { padding: 0 7.6923% 7.6923%; }
.hy-entry-meta { padding: 0 7.6923% 7.6923%; font-family: "Noto Sans", Arial, sans-serif; font-size: 1.2rem; color: #707070; }

/* Teksten in de pagina's (ook oude inhoud uit de klassieke editor) */
.hy-entry-content > * { margin-block-start: 0 !important; margin-block-end: 1.6em; }
.hy-entry-content > *:last-child { margin-block-end: 0; }
.hy-entry-content p { margin: 0 0 1.6em; }
.hy-entry-content p:last-child { margin-bottom: 0; }
.hy-entry-content a { color: #333; text-decoration: none; border-bottom: 1px solid #333; }
.hy-entry-content a:hover, .hy-entry-content a:focus { border-bottom-color: transparent; }
.hy-entry-content a:has(img) { border-bottom: 0; }
.hy-entry-content ul, .hy-entry-content ol { margin: 0 0 1.6em 1.3333em; padding: 0; }
.hy-entry-content ul { list-style: disc; }
.hy-entry-content li > ul, .hy-entry-content li > ol { margin-bottom: 0; }
.hy-entry-content strong, .hy-entry-content b { font-weight: 700; }
.hy-entry-content h1, .hy-entry-content h2, .hy-entry-content h3,
.hy-entry-content h4, .hy-entry-content h5, .hy-entry-content h6 { color: #333; line-height: 1.3; margin: 1.6em 0 0.8em; }
.hy-entry-content blockquote { margin: 0 0 1.6em; padding-left: 1em; border-left: 4px solid #707070; color: #707070; font-style: italic; }
.hy-entry-content iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; }
.hy-entry-content table { border-collapse: collapse; width: 100%; }
.hy-entry-content td, .hy-entry-content th { border: 1px solid #eaeaea; padding: 0.4em; }

/* Uitlijning van afbeeldingen uit de klassieke editor */
.aligncenter { display: block; margin-left: auto !important; margin-right: auto !important; }
.alignleft { float: left; margin: 0.4em 1.6em 1.6em 0; }
.alignright { float: right; margin: 0.4em 0 1.6em 1.6em; }
.alignnone { margin: 0; }
img.aligncenter { margin-bottom: 1.6em; }
.wp-caption { max-width: 100%; margin-bottom: 1.6em; }
.wp-caption-text, figcaption { font-family: "Noto Sans", Arial, sans-serif; font-size: 1.2rem; color: #707070; padding: 0.5em 0; }
.hy-entry-content::after { content: ""; display: table; clear: both; }

/* Paginanummering van berichten */
.hy-pagination { margin: 7.6923% 7.6923% 0 !important; padding: 1em 7.6923%; background: #fff; box-shadow: var(--hy-shadow); font-family: "Noto Sans", Arial, sans-serif; }
.hy-pagination a { color: #333; }

/* ---------- Tablet ---------- */
@media screen and (min-width: 46.25em) {
	body { font-size: 1.7rem; line-height: 1.6471; }
	.hy-site-header .wp-block-site-title { font-size: 2.9rem; line-height: 1.2069; }
	.hy-site-header .wp-block-site-tagline { font-size: 1.4rem; }
	.hy-entry-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.2em !important; }
}
@media screen and (min-width: 55em) {
	body { font-size: 1.9rem; line-height: 1.6842; }
	.hy-site-header .wp-block-site-title { font-size: 3.2rem; line-height: 1.25; }
	.hy-site-header .wp-block-site-tagline { font-size: 1.6rem; }
	.hy-entry-title { font-size: 3.9rem; line-height: 1.2308; margin-bottom: 1.2308em !important; }
}

/* ---------- Desktop: vaste zijbalk links ---------- */
@media screen and (min-width: 59.6875em) {
	body { font-size: 1.5rem; line-height: 1.6; }
	body::before {
		content: "";
		display: block;
		position: fixed;
		top: 0;
		left: 0;
		z-index: 0;
		width: 29.4118%;
		height: 100%;
		min-height: 100%;
		background-color: #000;
		background-image: url("assets/images/header.jpg");
		background-repeat: no-repeat;
		background-position: 50% 50%;
		background-size: cover;
		box-shadow: var(--hy-shadow);
	}
	.hy-site { max-width: 1403px; margin: 0 auto; }
	.hy-sidebar {
		float: left;
		position: sticky;
		top: 0;
		width: 29.4118%;
		max-width: 413px;
		margin-right: -100%;
	}
	.admin-bar .hy-sidebar { top: 32px; }
	.hy-site-header {
		margin: 20% 0 !important;
		padding: 0 20%;
		background: transparent;
	}
	.hy-site-header .wp-block-site-title { font-size: 2.2rem; line-height: 1.3636; }
	.hy-site-header .wp-block-site-tagline { font-size: 1.2rem; }
	.hy-nav { margin: 20% 0 0 !important; font-size: 1.2rem; }
	.hy-nav .wp-block-navigation-item__content { padding: 0.5em 0; }
	.hy-content {
		float: left;
		width: 70.5882%;
		margin-left: 29.4118%;
		/* 8,3333% van de inhoudskolom, net als in het oude thema */
		padding: 5.8823% 0;
	}
	.hy-entry { margin: 0 8.3333% !important; padding-top: 8.3333%; }
	.hy-entry + .hy-entry { margin-top: 8.3333% !important; }
	.hy-entry-title { padding: 0 10%; font-size: 3.1rem; line-height: 1.1613; margin-bottom: 1.1613em !important; }
	.hy-entry-content, .hy-entry-summary, .hy-entry-meta { padding: 0 10% 10%; }
	.hy-pagination { margin: 8.3333% 8.3333% 0 !important; padding: 1em 10%; }
}
@media screen and (min-width: 68.75em) {
	body { font-size: 1.7rem; line-height: 1.6471; }
	.hy-nav { font-size: 1.4rem; }
	.hy-nav .wp-block-navigation-item__content { padding: 0.4643em 0; }
	.hy-site-header .wp-block-site-title { font-size: 2.4rem; line-height: 1.1667; }
	.hy-site-header .wp-block-site-tagline { font-size: 1.4rem; }
	.hy-entry-title { font-size: 3.5rem; line-height: 1.2; margin-bottom: 1.2em !important; }
}
@media screen and (min-width: 77.5em) {
	body { font-size: 1.9rem; line-height: 1.6842; }
	.hy-nav { font-size: 1.6rem; }
	.hy-nav .wp-block-navigation-item__content { padding: 0.5em 0; }
	.hy-site-header .wp-block-site-title { font-size: 2.7rem; line-height: 1.1852; }
	.hy-site-header .wp-block-site-tagline { font-size: 1.6rem; }
	.hy-entry-title { font-size: 3.9rem; line-height: 1.2308; margin-bottom: 1.2308em !important; }
}
@media screen and (min-width: 87.6875em) {
	body::before { width: calc(50% - 289px); }
}
