/*
Theme Name: Mazaar Market
Theme URI: https://ventuz.be
Author: Ventuz
Author URI: https://ventuz.be
Description: Thema voor Mazaar Market, Marokkaanse supermarkt in Turnhout. Contactgegevens en openingsuren via Weergave → Customizer → Mazaar Market.
Version: 1.3.0
Requires at least: 6.3
Requires PHP: 7.4
Text Domain: mazaar
*/

:root {
	--zwart: #111111;
	--zwart-2: #1c1c1c;
	--groen: #b9d442;        /* kar op de gevel */
	--groen-fel: #c8e35a;
	--groen-market: #62c946; /* woord MARKET op de gevel */
	--groen-donker: #557a10; /* leesbaar op wit */
	--zand: #f6f1e7;
	--zand-2: #ece3d1;
	--terracotta: #c4542f;
	--tekst: #1d1d1b;
	--tekst-zacht: #5c5a55;
	--wit: #ffffff;
	--rand: #e3dccd;
	--radius: 18px;
	--schaduw: 0 14px 40px -18px rgba(17, 17, 17, .35);
	--kop-hoogte: 76px;
	--kop-font: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
	--tekst-font: "Nunito Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--kop-hoogte) + 12px); }

body {
	margin: 0;
	background: var(--wit);
	color: var(--tekst);
	font-family: var(--tekst-font);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--groen-donker); }
h1, h2, h3 { font-family: var(--kop-font); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 600; }
p { margin: 0 0 1em; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.wrap--smal { width: min(760px, 100% - 32px); }

.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; z-index: 100; background: var(--groen); color: var(--zwart); padding: 10px 16px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--groen); outline-offset: 3px; }

/* ---------- Knoppen ---------- */

.knoppen { display: flex; flex-wrap: wrap; gap: 12px; }

.knop {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px;
	border: 2px solid transparent; border-radius: 999px;
	font-family: var(--kop-font); font-size: 1.08rem; font-weight: 700;
	text-decoration: none; cursor: pointer;
	transition: transform .15s ease, background-color .15s ease, color .15s ease;
}
.knop:hover { transform: translateY(-2px); }
.knop svg { width: 18px; height: 18px; fill: currentColor; }
.knop--groen { background: var(--groen); color: var(--zwart); }
.knop--groen:hover { background: var(--groen-fel); }
.knop--wit { background: transparent; color: var(--wit); border-color: rgba(255, 255, 255, .7); }
.knop--wit:hover { background: var(--wit); color: var(--zwart); }
.knop--zwart { background: var(--zwart); color: var(--wit); }
.knop--zwart:hover { background: var(--groen-donker); }
.knop--klein { min-height: 42px; padding: 0 18px; font-size: 1rem; }

/* ---------- Kop ---------- */

.kop {
	position: sticky; top: 0; z-index: 50;
	background: rgba(17, 17, 17, .96);
	backdrop-filter: blur(8px);
	border-bottom: 3px solid var(--groen);
}
.admin-bar .kop { top: 32px; }
@media (max-width: 782px) { .admin-bar .kop { top: 0; } }

.kop__binnen { display: flex; align-items: center; justify-content: space-between; height: var(--kop-hoogte); gap: 20px; }

.merk { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.merk__kar { width: 50px; height: auto; }
.merk__eigen { max-height: 56px; width: auto; }
/* Woordmerk: MAZAAR groot, MARKET klein en gespatieerd eronder */
.merk__tekst { display: inline-flex; flex-direction: column; font-family: var(--kop-font); line-height: 1; text-transform: uppercase; white-space: nowrap; }
.merk__a { color: var(--wit); font-weight: 700; font-size: 1.6rem; letter-spacing: .01em; }
.merk__b { color: var(--groen); font-weight: 600; font-size: .62rem; letter-spacing: .62em; margin-top: 3px; padding-left: 2px; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav .menu { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav .menu a { color: var(--wit); text-decoration: none; font-weight: 700; font-size: .98rem; padding: 6px 0; border-bottom: 2px solid transparent; }
.nav .menu a:hover { color: var(--groen); border-color: var(--groen); }

.menuknop { display: none; }

@media (max-width: 900px) {
	.menuknop {
		display: grid; gap: 5px; place-content: center;
		width: 46px; height: 46px; border-radius: 12px;
		background: transparent; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer;
	}
	.menuknop span:not(.sr) { display: block; width: 22px; height: 2.5px; background: var(--wit); border-radius: 2px; transition: transform .2s, opacity .2s; }
	.menuknop[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
	.menuknop[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
	.menuknop[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

	.nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 18px;
		padding: 18px 16px 24px;
		background: var(--zwart); border-bottom: 3px solid var(--groen);
		display: none;
	}
	.nav.is-open { display: flex; }
	.nav .menu { flex-direction: column; gap: 4px; }
	.nav .menu a { display: block; padding: 10px 0; font-size: 1.15rem; border: 0; }
}

@media (max-width: 420px) {
	.merk__a { font-size: 1.4rem; }
	.merk__kar { width: 42px; }
}
@media (max-width: 340px) {
	.kop__binnen { gap: 8px; }
	.merk { gap: 6px; }
	.merk__a { font-size: 1.15rem; }
	.merk__kar { width: 34px; }
	.menuknop { width: 40px; height: 40px; }
}

/* ---------- Held ---------- */

.held {
	position: relative; isolation: isolate; overflow: hidden;
	min-height: min(86vh, 780px);
	display: flex; align-items: flex-end;
	padding: 140px 0 72px;
	color: var(--wit); background: var(--zwart);
}
.held__foto { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 70% 60%; }
.held::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background:
		linear-gradient(90deg, rgba(12, 12, 12, .96) 0%, rgba(12, 12, 12, .9) 45%, rgba(12, 12, 12, .45) 75%, rgba(12, 12, 12, .15) 100%),
		linear-gradient(0deg, rgba(12, 12, 12, .9) 0%, rgba(12, 12, 12, 0) 50%);
}
.held__grid { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; width: min(1180px, 100% - 32px); }
.held__tekst { max-width: 640px; }
.held h1 { font-size: clamp(2.6rem, 5.4vw, 4.6rem); font-weight: 700; max-width: 15ch; margin-bottom: .35em; text-shadow: 0 4px 30px rgba(0, 0, 0, .5); }
.held h1 span { color: var(--groen); }
.held__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); max-width: 50ch; color: rgba(255, 255, 255, .86); margin-bottom: 1.6em; }

.held__labels { display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.zwevend {
	display: flex; align-items: center; gap: 10px;
	padding: 12px 18px; border-radius: 18px;
	background: var(--wit); color: var(--zwart); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);
	font-weight: 700; line-height: 1.15; font-size: .95rem;
	animation: zweef 6s ease-in-out infinite;
}
.zwevend strong { font-family: var(--kop-font); font-size: 1.8rem; color: var(--groen-donker); }
.zwevend--vers { background: rgba(17, 17, 17, .85); color: var(--wit); border: 2px solid var(--groen); backdrop-filter: blur(6px); animation-delay: -3s; }
.zwevend--vers img { width: 40px; }
@keyframes zweef { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) {
	.held { min-height: 0; padding-top: 220px; }
	.held__foto { object-position: 72% 40%; height: 62%; }
	.held::before { background: linear-gradient(0deg, rgba(12, 12, 12, 1) 0%, rgba(12, 12, 12, .96) 48%, rgba(12, 12, 12, .2) 75%, rgba(12, 12, 12, .1) 100%); }
	.held__labels { display: none; }
}

/* Troeven */
.troeven { background: var(--wit); border-bottom: 1px solid var(--rand); }
.troeven__rij { display: grid; grid-template-columns: repeat(4, 1fr); }
.troef { display: flex; align-items: center; gap: 14px; padding: 26px 18px; }
.troef + .troef { border-left: 1px solid var(--rand); }
.troef svg { flex: none; width: 46px; height: 46px; padding: 11px; border-radius: 14px; background: var(--zand); fill: none; stroke: var(--groen-donker); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.troef strong { display: block; font-family: var(--kop-font); font-weight: 600; font-size: 1.12rem; line-height: 1.2; }
.troef span { font-size: .9rem; color: var(--tekst-zacht); }
@media (max-width: 980px) {
	.troeven__rij { grid-template-columns: 1fr 1fr; }
	.troef:nth-child(3) { border-left: 0; }
	.troef:nth-child(n+3) { border-top: 1px solid var(--rand); }
}
@media (max-width: 520px) {
	.troeven__rij { grid-template-columns: 1fr; }
	.troef + .troef { border-left: 0; border-top: 1px solid var(--rand); }
	.troef { padding: 16px 4px; }
}

/* Oproep om vooraf te bestellen */
.oproep { background: var(--groen); color: var(--zwart); position: relative; overflow: hidden; }
.oproep::before {
	content: ""; position: absolute; inset: 0; opacity: .12;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23111' stroke-width='2'%3E%3Cpath d='M40 8l9 23 23 9-23 9-9 23-9-23-23-9 23-9z'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
}
.oproep__binnen { position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 32px; align-items: center; padding: 44px 0; }
.oproep__kar { width: 120px; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .25)); }
.oproep h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .25em; }
.oproep p { margin: 0; font-size: 1.08rem; max-width: 52ch; }
@media (max-width: 760px) {
	.oproep__binnen { grid-template-columns: 1fr; text-align: center; justify-items: center; gap: 18px; }
	.oproep__kar { width: 96px; }
}

/* Vaste contactbalk op de gsm */
.actiebalk { display: none; }
@media (max-width: 760px) {
	.actiebalk {
		position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60;
		display: grid; grid-template-columns: repeat(3, 1fr);
		background: var(--zwart); border: 2px solid var(--groen); border-radius: 18px;
		box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .6); overflow: hidden;
	}
	.actiebalk a {
		display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 9px 4px;
		color: var(--wit); text-decoration: none; font-weight: 700; font-size: .8rem;
	}
	.actiebalk a + a { border-left: 1px solid rgba(255, 255, 255, .12); }
	.actiebalk a:first-child { background: var(--groen); color: var(--zwart); }
	.actiebalk svg { width: 20px; height: 20px; fill: currentColor; }
	body { padding-bottom: 84px; }
}

.status {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 7px 16px 7px 12px; margin-bottom: 22px;
	border-radius: 999px; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .2);
	font-weight: 700; font-size: .95rem;
}
.status[hidden] { display: none; }
.status__stip { width: 10px; height: 10px; border-radius: 50%; background: #e4572e; box-shadow: 0 0 0 4px rgba(228, 87, 46, .25); }
.status.is-open .status__stip { background: var(--groen-fel); box-shadow: 0 0 0 4px rgba(200, 227, 90, .25); animation: puls 2s infinite; }
@keyframes puls { 50% { box-shadow: 0 0 0 8px rgba(200, 227, 90, 0); } }

.score {
	display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px;
	margin-top: 34px; color: var(--wit); text-decoration: none;
	font-size: .95rem;
}
.score__cijfer { font-family: var(--kop-font); font-weight: 700; font-size: 1.6rem; }
.score__sterren { color: #f5b301; letter-spacing: 2px; font-size: 1.1rem; }
.score__sterren span { background: linear-gradient(90deg, #f5b301 20%, rgba(255, 255, 255, .35) 20%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.score__tekst { text-decoration: underline; text-underline-offset: 3px; color: rgba(255, 255, 255, .8); }

/* ---------- Band ---------- */

.band { background: var(--groen); color: var(--zwart); overflow: hidden; padding: 14px 0; }
.band__rol { display: flex; width: max-content; gap: 28px; align-items: center; animation: rol 32s linear infinite; font-family: var(--kop-font); font-weight: 600; font-size: 1.25rem; text-transform: uppercase; white-space: nowrap; }
.band__rol i { font-style: normal; font-size: .9rem; }
@keyframes rol { to { transform: translateX(-50%); } }

/* ---------- Secties ---------- */

.sectie { position: relative; padding: clamp(64px, 9vw, 112px) 0; }
.sectie--zand { background: var(--zand); }
.sectie--zwart { background: var(--zwart); color: var(--wit); overflow: hidden; }
.sectie__kop { max-width: 680px; margin-bottom: 48px; }
.sectie__kop p:last-child { color: var(--tekst-zacht); font-size: 1.1rem; }

.boven {
	display: inline-flex; align-items: center; gap: 10px;
	font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem;
	color: var(--groen-donker); margin-bottom: 14px;
}
.boven::before { content: ""; width: 26px; height: 3px; border-radius: 3px; background: currentColor; }
.sectie--zwart .boven { color: var(--groen); }

/* Kaarten */

.kaarten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 980px) { .kaarten { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .kaarten { grid-template-columns: 1fr; } }

.kaart {
	padding: 30px 28px 26px;
	border-radius: var(--radius);
	background: var(--zand);
	border: 1px solid var(--rand);
	transition: transform .2s ease, box-shadow .2s ease;
}
.kaart:hover { transform: translateY(-4px); box-shadow: var(--schaduw); }
.kaart p { color: var(--tekst-zacht); margin: 0; }
.kaart__icoon {
	width: 58px; height: 58px; padding: 13px; margin-bottom: 18px;
	border-radius: 16px; background: var(--zwart);
	fill: none; stroke: var(--groen); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
.kaart--donker { background: var(--zwart); color: var(--wit); border-color: var(--zwart); position: relative; overflow: hidden; }
.kaart--donker h3 { color: var(--groen); }

.vinkjes { list-style: none; margin: 0 0 1.6em; padding: 0; display: grid; gap: 8px; }
.vinkjes li { position: relative; padding-left: 28px; }
.vinkjes li::before {
	content: ""; position: absolute; left: 0; top: .42em;
	width: 16px; height: 16px; border-radius: 50%;
	background: var(--groen) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' fill='none' stroke='%23111' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.kaart--donker .vinkjes { margin: 0; }
.vinkjes--twee { grid-template-columns: 1fr 1fr; column-gap: 20px; }
@media (max-width: 520px) { .vinkjes--twee { grid-template-columns: 1fr; } }

/* Duo (foto + tekst) */

.duo { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.duo--omgekeerd { grid-template-columns: 1fr 1.05fr; }
@media (max-width: 900px) {
	.duo, .duo--omgekeerd { grid-template-columns: 1fr; }
	.duo--omgekeerd .duo__fotos { order: -1; }
}
.duo__tekst > p { color: var(--tekst-zacht); font-size: 1.07rem; }
.duo__fotos { position: relative; }
.foto { border-radius: var(--radius); box-shadow: var(--schaduw); object-fit: cover; width: 100%; }
.foto--groot { aspect-ratio: 4 / 3.3; }
.foto--klein {
	position: absolute; right: -18px; bottom: -36px;
	width: 46%; aspect-ratio: 1;
	border: 6px solid var(--zand);
}
@media (max-width: 900px) { .foto--klein { right: 12px; bottom: -26px; width: 40%; } .duo__fotos { margin-bottom: 26px; } }

.feiten { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 30px; }
.feiten div { padding: 18px 16px; border-radius: 14px; background: var(--zand); border: 1px solid var(--rand); }
.feiten strong { display: block; font-family: var(--kop-font); font-size: 2rem; line-height: 1; color: var(--groen-donker); margin-bottom: 6px; }
.feiten span { font-size: .88rem; color: var(--tekst-zacht); line-height: 1.35; display: block; }
@media (max-width: 520px) { .feiten { grid-template-columns: 1fr; } }

/* ---------- Bezoek ---------- */

.bezoek { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 6vw, 72px); align-items: start; }
@media (max-width: 900px) { .bezoek { grid-template-columns: 1fr; } }
.status--los { margin-bottom: 18px; }

.uren { list-style: none; margin: 0 0 28px; padding: 0; border-top: 1px solid rgba(255, 255, 255, .14); }
.uren li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 4px; border-bottom: 1px solid rgba(255, 255, 255, .14); font-variant-numeric: tabular-nums; }
.uren li.is-vandaag { color: var(--groen); font-weight: 800; }
.uren li.is-vandaag span:first-child::after { content: " · vandaag"; font-weight: 600; font-size: .85em; }

address { font-style: normal; margin-bottom: 26px; color: rgba(255, 255, 255, .85); }
address a { color: var(--groen); }

.kaartvak {
	position: relative; overflow: hidden;
	min-height: 440px; height: 100%;
	border-radius: var(--radius); background: var(--zwart-2);
	display: grid; place-items: center;
}
.kaartvak > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.kaartvak .knop { position: relative; }
.kaartvak__noot { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 12px 18px; font-size: .82rem; color: rgba(255, 255, 255, .75); background: rgba(0, 0, 0, .55); }
.kaartvak iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Zellige-patroon */

.zellige {
	position: absolute; inset: 0; pointer-events: none; opacity: .07;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23b9d442' stroke-width='2'%3E%3Cpath d='M40 8l9 23 23 9-23 9-9 23-9-23-23-9 23-9z'/%3E%3Crect x='26' y='26' width='28' height='28' transform='rotate(45 40 40)'/%3E%3Ccircle cx='0' cy='0' r='10'/%3E%3Ccircle cx='80' cy='0' r='10'/%3E%3Ccircle cx='0' cy='80' r='10'/%3E%3Ccircle cx='80' cy='80' r='10'/%3E%3C/g%3E%3C/svg%3E");
	background-size: 80px 80px;
}
.zellige--rand { position: relative; height: 14px; opacity: 1; background-color: var(--groen); background-size: 40px 14px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='14' viewBox='0 0 40 14'%3E%3Cpath d='M0 7l10-7 10 7-10 7zM20 7l10-7 10 7-10 7z' fill='%23111' fill-opacity='.22'/%3E%3C/svg%3E"); }

/* ---------- Voet ---------- */

.voet { background: var(--zwart-2); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.voet__binnen { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 0.8fr; gap: 40px; padding: 64px 0 40px; }
@media (max-width: 980px) { .voet__binnen { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .voet__binnen { grid-template-columns: 1fr; } }
.voet h3 { color: var(--wit); font-size: 1.15rem; }
.voet a { color: var(--groen); }
.voet__merk p { margin-top: 16px; max-width: 30ch; }
.uren--klein { border-top: 0; margin: 0; }
.uren--klein li { padding: 4px 0; border-bottom: 0; }
.sociaal { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.voet__onder {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px;
	padding: 20px 0 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem;
}

/* ---------- Gewone pagina's ---------- */

.pagina { background: var(--zand); min-height: 60vh; }
.tekst { background: var(--wit); padding: clamp(28px, 5vw, 56px); border-radius: var(--radius); box-shadow: var(--schaduw); }
.tekst h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.tekst h2 { font-size: 1.6rem; margin-top: 1.4em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.band__rol, .status.is-open .status__stip { animation: none; }
	.knop, .kaart { transition: none; }
}
