/*
Theme Name: Kapsalon Ida de Vos
Theme URI: https://www.idadevos.nl/
Author: Morris Hofstra
Description: Blokthema voor Kapsalon Ida de Vos in Gorredijk. Donker, luxe ontwerp met champagnegouden accenten. Navigatie, headerafbeelding, inhoud en footer zijn volledig aan te passen in de blokeditor (Weergave > Editor). Lettertypen worden lokaal geladen, zonder Google Fonts.
Requires at least: 6.6
Tested up to: 7.1
Requires PHP: 7.4
Version: 1.1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ida-de-vos
Tags: block-theme, full-site-editing, dark, one-column, custom-logo, editor-style, block-patterns, wide-blocks
*/

/* ------------------------------------------------------------------
   Basis
------------------------------------------------------------------ */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

::selection {
	background: #d8b878;
	color: #402d00;
}

:where(.wp-site-blocks) {
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}

.wp-site-blocks > * {
	margin-block-start: 0;
}

.wp-site-blocks > main {
	flex: 1 0 auto;
}

a {
	text-underline-offset: 0.18em;
	text-decoration-thickness: 1px;
	transition: color 0.2s ease;
}

:focus-visible {
	outline: 2px solid #f5d491;
	outline-offset: 3px;
}

/* ------------------------------------------------------------------
   Header
------------------------------------------------------------------ */
.wp-site-blocks > header.wp-block-template-part,
.wp-site-blocks > .wp-block-template-part:has(> .idv-header) {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 50;
	margin-block-start: 0;
}

.idv-header {
	position: relative;
	isolation: isolate;
	box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

/* Achtergrond met blur op een pseudo-element: een backdrop-filter op de
   header zelf zou het mobiele menu (position: fixed) opsluiten in de header. */
.idv-header::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: -1;
	background-color: rgba(10, 10, 12, 0.9);
	-webkit-backdrop-filter: blur(24px);
	backdrop-filter: blur(24px);
}

.idv-header__inner {
	min-height: 80px;
}

.idv-header .wp-block-site-logo img {
	filter: drop-shadow(0 2px 10px rgba(245, 212, 145, 0.2));
	transition: transform 0.3s ease;
}

.idv-header .wp-block-site-logo a:hover img {
	transform: scale(1.05);
}

/* Actieve pagina in het menu */
.idv-header .wp-block-navigation .current-menu-item > a,
.idv-header .wp-block-navigation .current-menu-ancestor > a,
.idv-header .wp-block-navigation .current_page_item > a,
.idv-header .wp-block-navigation a[aria-current="page"] {
	color: #f5d491;
	font-weight: 700;
}

.idv-header .wp-block-navigation a {
	padding-block: 0.25rem;
}

/* Submenu's */
.idv-header .wp-block-navigation .wp-block-navigation__submenu-container {
	background-color: #212126 !important;
	border: 1px solid rgba(216, 184, 120, 0.22) !important;
	border-radius: 8px;
	padding: 0.5rem 0;
	min-width: 220px;
}

.idv-header .wp-block-navigation .wp-block-navigation__submenu-container a {
	padding: 0.5rem 1rem;
}

/* Hamburgermenu tot 1024px, zoals in het ontwerp */
@media (max-width: 1023px) {
	.idv-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.idv-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

.idv-header .wp-block-navigation__responsive-container-open,
.idv-header .wp-block-navigation__responsive-container-close {
	color: #f5d491;
}

.idv-header .wp-block-navigation__responsive-container-open svg {
	width: 28px;
	height: 28px;
}

/* Uitklapmenu (mobiel) */
.idv-header .wp-block-navigation__responsive-container.is-menu-open {
	background-color: rgba(18, 18, 22, 0.97) !important;
	-webkit-backdrop-filter: blur(16px);
	backdrop-filter: blur(16px);
	padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
}

.idv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
	padding-top: 4rem;
}

.idv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 0;
	width: 100%;
}

.idv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
	width: 100%;
	border-bottom: 1px solid #2a2a2c;
}

.idv-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item > a {
	display: block;
	width: 100%;
	padding: 1rem 0;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.5rem;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
}

/* ------------------------------------------------------------------
   Knoppen
------------------------------------------------------------------ */
.wp-block-button__link,
.wp-element-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.25);
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.wp-block-button__link:hover,
.wp-element-button:hover {
	transform: translateY(-1px);
	filter: brightness(1.05);
	box-shadow: 0 10px 30px -10px rgba(216, 184, 120, 0.35);
}

.wp-block-button.is-style-outline > .wp-block-button__link {
	box-shadow: none;
}

.wp-block-button.is-style-outline > .wp-block-button__link:hover {
	background-color: rgba(216, 184, 120, 0.08) !important;
	border-color: #d8b878 !important;
	color: #ffe59d !important;
	filter: none;
}

/* Knop met telefoonicoon */
.wp-block-button.is-style-telefoon > .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 18px;
	height: 18px;
	background-color: currentColor;
	-webkit-mask: url("assets/icons/phone_in_talk.svg") center / contain no-repeat;
	mask: url("assets/icons/phone_in_talk.svg") center / contain no-repeat;
}

.wp-block-button.is-style-telefoon > .wp-block-button__link {
	white-space: nowrap;
}

@media (max-width: 420px) {
	.idv-header .wp-block-button.is-style-telefoon > .wp-block-button__link {
		padding-inline: 0.75rem;
		font-size: 0.8125rem;
	}
}

/* ------------------------------------------------------------------
   Headerafbeelding
------------------------------------------------------------------ */
.idv-hero .wp-block-image,
.idv-hero .wp-block-cover {
	margin-block: 0;
}

.idv-hero .wp-block-image img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 460px;
	object-fit: cover;
	box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

/* ------------------------------------------------------------------
   Inhoudskader (pagina-inhoud)
------------------------------------------------------------------ */
.idv-content-card > .idv-title-row {
	margin-block-end: 2rem;
}

.idv-content-card .wp-block-post-content > :first-child {
	margin-block-start: 0;
}

.idv-content-card .wp-block-post-content > :last-child {
	margin-block-end: 0;
}

.wp-block-post-content :where(h2, h3, h4) {
	margin-block-start: 2.25rem;
	margin-block-end: 0.75rem;
}

.wp-block-post-content :where(h2, h3, h4) + * {
	margin-block-start: 0;
}

.wp-block-post-content :where(strong, b) {
	font-weight: 600;
	color: #f7f6f3;
}

/* ------------------------------------------------------------------
   Blokstijl: kaart
------------------------------------------------------------------ */
.is-style-kaart {
	background-color: #18181c;
	border: 1px solid rgba(216, 184, 120, 0.22);
	border-radius: 8px;
	padding: clamp(1.25rem, 3vw, 2rem);
	transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.is-style-kaart:hover {
	border-color: rgba(255, 229, 157, 0.55);
	box-shadow: inset 0 0 40px -20px rgba(216, 184, 120, 0.25), 0 10px 30px -10px rgba(216, 184, 120, 0.15);
}

.is-style-kaart > :first-child {
	margin-block-start: 0;
}

.is-style-kaart > :last-child {
	margin-block-end: 0;
}

/* ------------------------------------------------------------------
   Blokstijl: alinea met icoon
------------------------------------------------------------------ */
p[class*="is-style-icoon-"] {
	position: relative;
	padding-left: 1.75rem;
}

p[class*="is-style-icoon-"]::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.1em;
	width: 18px;
	height: 18px;
	background-color: #f5d491;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-size: contain;
	mask-size: contain;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
}

p.is-style-icoon-adres::before {
	-webkit-mask-image: url("assets/icons/location_on.svg");
	mask-image: url("assets/icons/location_on.svg");
}

p.is-style-icoon-telefoon::before {
	-webkit-mask-image: url("assets/icons/call.svg");
	mask-image: url("assets/icons/call.svg");
}

p.is-style-icoon-email::before {
	-webkit-mask-image: url("assets/icons/mail.svg");
	mask-image: url("assets/icons/mail.svg");
}

p[class*="is-style-icoon-"] a {
	color: inherit;
	text-decoration: none;
}

p[class*="is-style-icoon-"] a:hover {
	color: #f5d491;
}

/* Blokstijl: label / kicker */
p.is-style-kicker {
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.45;
	text-transform: uppercase;
	color: #d8b878;
}

/* ------------------------------------------------------------------
   Blokstijl: openingstijden (tabel)
   Zet "Gesloten" cursief, dan kleurt die regel automatisch grijs.
------------------------------------------------------------------ */
.wp-block-table.is-style-openingstijden {
	margin: 0;
}

.wp-block-table.is-style-openingstijden table {
	border-collapse: collapse;
	width: 100%;
	font-size: 0.8125rem;
	line-height: 1.55;
	table-layout: auto;
}

.wp-block-table.is-style-openingstijden td,
.wp-block-table.is-style-openingstijden th {
	border: 0;
	border-bottom: 1px solid #2a2a2c;
	padding: 0.4rem 0;
	text-align: left;
	font-weight: 400;
}

.wp-block-table.is-style-openingstijden tr:last-child td {
	border-bottom: 0;
}

.wp-block-table.is-style-openingstijden td:first-child {
	color: #f5d491;
	font-weight: 500;
}

.wp-block-table.is-style-openingstijden td:first-child::before {
	content: "";
	display: inline-block;
	width: 6px;
	height: 6px;
	margin-right: 0.45rem;
	border-radius: 50%;
	background-color: #f5d491;
	vertical-align: 0.15em;
}

.wp-block-table.is-style-openingstijden td:last-child {
	text-align: right;
	color: #f7f6f3;
}

.wp-block-table.is-style-openingstijden td em {
	font-style: normal;
}

.wp-block-table.is-style-openingstijden tr:has(em) td:first-child {
	color: #d0c5b5;
	font-weight: 400;
}

.wp-block-table.is-style-openingstijden tr:has(em) td:first-child::before {
	display: none;
}

.wp-block-table.is-style-openingstijden tr:has(em) td:last-child {
	color: #998f81;
}

/* ------------------------------------------------------------------
   Blokstijl: prijslijst (tabel)
------------------------------------------------------------------ */
.wp-block-table.is-style-prijslijst table {
	border-collapse: collapse;
	width: 100%;
	table-layout: auto;
}

.wp-block-table.is-style-prijslijst td,
.wp-block-table.is-style-prijslijst th {
	border: 0;
	border-bottom: 1px dotted rgba(255, 255, 255, 0.14);
	padding: 0.85rem 0;
	vertical-align: top;
	text-align: left;
}

.wp-block-table.is-style-prijslijst thead th {
	border-bottom: 1px solid rgba(216, 184, 120, 0.4);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #d8b878;
}

.wp-block-table.is-style-prijslijst td:first-child {
	color: #f7f6f3;
	font-weight: 400;
	padding-right: 1rem;
}

.wp-block-table.is-style-prijslijst td:first-child em {
	display: block;
	font-style: normal;
	font-size: 0.8125rem;
	color: #afafa8;
	margin-top: 0.15rem;
}

.wp-block-table.is-style-prijslijst td:last-child,
.wp-block-table.is-style-prijslijst th:last-child {
	text-align: right;
	white-space: nowrap;
	color: #f5d491;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 1.125rem;
}

.wp-block-table.is-style-prijslijst th:last-child {
	font-family: inherit;
	font-size: 0.6875rem;
	color: #d8b878;
}

/* Gewone tabellen */
.wp-block-table:not([class*="is-style-"]) td,
.wp-block-table:not([class*="is-style-"]) th {
	border-color: #2a2a2c;
}

/* ------------------------------------------------------------------
   Blokstijl: labels (lijst als pillen)
------------------------------------------------------------------ */
ul.is-style-labels {
	list-style: none;
	padding-left: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

ul.is-style-labels li {
	margin: 0;
	padding: 0.35rem 0.85rem;
	border: 1px solid rgba(216, 184, 120, 0.4);
	border-radius: 9999px;
	background-color: #18181c;
	color: #ffe59d;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	line-height: 1.45;
	text-transform: uppercase;
}

/* Blokstijl: afbeelding met gouden kader */
.wp-block-image.is-style-goudkader img {
	border: 1px solid rgba(216, 184, 120, 0.35);
	border-radius: 8px;
	padding: 6px;
	background-color: #18181c;
}

/* ------------------------------------------------------------------
   Lijsten in de inhoud
------------------------------------------------------------------ */
.wp-block-post-content ul:not(.is-style-labels) {
	padding-left: 1.25rem;
}

.wp-block-post-content ul:not(.is-style-labels) li::marker {
	color: #d8b878;
}

/* ------------------------------------------------------------------
   Footer
------------------------------------------------------------------ */
.idv-footer {
	box-shadow: 0 -1px 12px rgba(0, 0, 0, 0.4);
}

.idv-footer a {
	text-decoration: none;
}

.idv-footer a:hover {
	color: #f5d491;
}

.idv-footer__bottom a {
	color: inherit;
}

/* ------------------------------------------------------------------
   Berichtenoverzicht
------------------------------------------------------------------ */
.idv-post-list .wp-block-post-featured-image img {
	border-radius: 6px;
}

.wp-block-query-pagination a {
	text-decoration: none;
}

/* ------------------------------------------------------------------
   Formulieren (zoeken, reacties, formulierplugins)
------------------------------------------------------------------ */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="search"],
input[type="url"],
input[type="date"],
input[type="number"],
select,
textarea,
.wp-block-search__input {
	background-color: #0a0a0c;
	color: #f7f6f3;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 4px;
	padding: 0.7rem 0.9rem;
	font: inherit;
	font-size: 0.9375rem;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
select:focus,
textarea:focus,
.wp-block-search__input:focus {
	outline: none;
	border-color: #d8b878;
	box-shadow: inset 0 0 0 1px rgba(216, 184, 120, 0.35), 0 0 0 3px rgba(216, 184, 120, 0.12);
}

.wp-block-search__inside-wrapper {
	gap: 0.5rem;
}

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

@media (max-width: 1023px) {
	.idv-header .wp-block-navigation {
		order: 3;
		flex: 0 0 auto;
	}

	.idv-header .wp-block-buttons {
		margin-left: auto;
	}
}
