/*
Theme Name: Brand Energizer
Theme URI: https://brandenergizer.nl
Author: Brand Energizer
Description: Licht blokthema voor brandenergizer.nl in de Brand Energizer-huisstijl (navy en goud, Figtree). Alle teksten, knoppen en foto's zijn aan te passen in de WordPress-editor.
Version: 1.1.1
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: brandenergizer-nl
*/

/* ---------- Basis ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
img { max-width: 100%; height: auto; }

/* ---------- Gebogen overgang bovenaan een sectie ---------- */
/* Voeg de klasse be-curve-top toe aan een sectie: er verschijnt een boog in de achtergrondkleur van die sectie. */
.be-curve-top { position: relative; }
.be-curve-top::before {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	top: -79px;
	height: 80px;
	background: inherit;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80C400 0 1040 0 1440 80Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80' preserveAspectRatio='none'%3E%3Cpath d='M0 80C400 0 1040 0 1440 80Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
	pointer-events: none;
	z-index: 1;
}
@media (max-width: 781px) {
	.be-curve-top::before { top: -39px; height: 40px; }
}

/* ---------- Tekststijlen ---------- */
.be-eyebrow {
	font-weight: 800;
	font-size: 15px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	margin-bottom: 0;
}
.be-lead { font-size: 19px; line-height: 1.6; }
.be-statement {
	font-size: clamp(28px, 3.6vw, 48px);
	line-height: 1.2;
	font-weight: 900;
	letter-spacing: -0.01em;
}

/* Vinkjes-lijst in de hero */
.be-checks { list-style: none; padding-left: 0; display: flex; flex-wrap: wrap; gap: 10px 28px; }
.be-checks li { position: relative; padding-left: 28px; margin: 0; }
.be-checks li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.25em;
	width: 18px;
	height: 18px;
	background: var(--wp--preset--color--goud);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.be-checks--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; font-weight: 600; }
.be-checks--grid li::before { background: var(--wp--preset--color--goud-donker); }

.be-checks--navy li::before { background: var(--wp--preset--color--navy); }
.be-checks--navy { flex-direction: column; font-weight: 600; font-size: 17px; }
.be-adviesband { border-radius: 28px; }
@media (max-width: 781px) { .be-adviesband { padding: 32px 24px !important; } }

/* ---------- Knoppen ---------- */
.wp-block-button__link { transition: transform .15s ease, background-color .15s ease, color .15s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button.is-style-outline > .wp-block-button__link { border-width: 2px; }
.be-on-dark .wp-block-button.is-style-outline > .wp-block-button__link { color: #fff; border-color: #fff; }
.be-on-dark .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--navy); }
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--navy); color: #fff; }
.be-shopband .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--wp--preset--color--goud); border-color: var(--wp--preset--color--goud); }
.be-shopband .wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--wp--preset--color--goud); color: var(--wp--preset--color--navy); }

/* ---------- Kaarten ---------- */
.be-card, .be-step, .be-review, .be-project, .be-team, .be-formbox { border-radius: 24px; }
.be-card { display: flex; flex-direction: column; }
.be-card > .be-card-link { margin-top: auto; }
.be-card-icon img {
	width: 60px;
	height: 60px;
	padding: 14px;
	border-radius: 16px;
	background: var(--wp--preset--color--creme);
	box-sizing: border-box;
}
.be-card-icon.is-dark img { background: var(--wp--preset--color--navy); }
.be-card-link a { font-weight: 800; text-decoration: none; }
.be-card-link a:hover { text-decoration: underline; }

.be-step-num {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-weight: 900;
	font-size: 20px;
	margin: 0;
	padding: 0 !important;
	flex: 0 0 auto;
}

.be-project { overflow: hidden; padding: 0 !important; }
.be-project .wp-block-image { margin: 0; }
.be-project .wp-block-image img { width: 100%; display: block; transition: transform .3s ease; }
.be-project:hover .wp-block-image img { transform: scale(1.03); }
.be-tag {
	display: inline-block;
	align-self: flex-start;
	padding: 6px 12px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 700;
	margin: 0;
}

.be-stars { color: var(--wp--preset--color--goud); font-size: 20px; letter-spacing: 2px; margin: 0; }
.be-review { border: 1px solid var(--wp--preset--color--lijn); }

.be-team .wp-block-image { margin: 0; }
.be-team .wp-block-image img { border-radius: 18px; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.be-team { max-width: 380px; }
@media (max-width: 781px) { .be-team { margin-left: auto; margin-right: auto; } }

.be-photo img { border-radius: 28px; }
.be-badge {
	display: inline-block;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 800;
	font-size: 15px;
}

/* ---------- Shopband ---------- */
.be-shopband { border: 1px solid #3A3F5E; border-radius: 20px; }

/* ---------- Contactregels ---------- */
.be-contactline a { text-decoration: none; font-weight: 700; }
.be-contactline a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.be-topbar a { color: #fff; text-decoration: none; }
.be-topbar a:hover { text-decoration: underline; color: #fff; }
.be-header { border-bottom: 1px solid var(--wp--preset--color--lijn); }
.be-header .wp-block-navigation a { font-weight: 600; text-decoration: none; }
.be-header .wp-block-navigation a:hover { color: var(--wp--preset--color--goud-donker); }
.be-logo img { height: 80px !important; width: auto !important; max-width: none; }
.be-hero-art img { width: 100% !important; height: auto !important; max-width: 560px; }
.be-hero-art { margin-left: auto; margin-right: auto; }

/* ---------- Footer ---------- */
.be-footer a { color: var(--wp--preset--color--grijs-op-navy); text-decoration: none; }
.be-footer a:hover { color: #fff; text-decoration: underline; }
.be-footer .be-footer-shop a { color: var(--wp--preset--color--goud); font-weight: 700; }
.be-footer-bottom { border-top: 1px solid #3A3F5E; }

/* ---------- Contactformulier ---------- */
.be-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.be-form .be-field { display: flex; flex-direction: column; gap: 8px; }
.be-form .be-field--full { grid-column: 1 / -1; }
.be-form label { font-weight: 700; font-size: 15px; }
.be-form input[type="text"],
.be-form input[type="email"],
.be-form input[type="tel"],
.be-form textarea,
.be-form select {
	min-height: 52px;
	border: 1px solid #C9CBD6;
	border-radius: 14px;
	padding: 12px 16px;
	font: inherit;
	font-size: 16px;
	background: #fff;
	color: var(--wp--preset--color--navy);
	width: 100%;
	box-sizing: border-box;
}
.be-form textarea { min-height: 140px; resize: vertical; }
.be-form input:focus, .be-form textarea:focus { outline: 3px solid var(--wp--preset--color--goud); outline-offset: 1px; border-color: var(--wp--preset--color--navy); }
.be-form .be-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.be-form .be-form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.be-form button {
	min-height: 52px;
	padding: 0 32px;
	border: 0;
	border-radius: 999px;
	background: var(--wp--preset--color--goud);
	color: var(--wp--preset--color--navy);
	font: inherit;
	font-weight: 800;
	font-size: 17px;
	cursor: pointer;
	transition: transform .15s ease;
}
.be-form button:hover { transform: translateY(-1px); }
.be-form-note { font-size: 14px; color: var(--wp--preset--color--tekstgrijs); }
.be-form-melding { grid-column: 1 / -1; padding: 14px 18px; border-radius: 14px; font-weight: 700; margin: 0; }
.be-form-melding.is-ok { background: #E7F4EA; color: #1D5A2C; }
.be-form-melding.is-fout { background: #FBEAEA; color: #8A1F1F; }

/* ---------- Mobiel ---------- */
@media (max-width: 781px) {
	.be-logo img { height: 60px !important; }
	.be-hide-mobile { display: none !important; }
}

/* ---------- Bliksemschicht bij binnenkomst ---------- */
.be-bliksem { display: none; }
.be-bliksem.is-actief {
	display: block;
	position: fixed;
	inset: 0;
	z-index: 99999;
	pointer-events: none;
	animation: be-bliksem-weg 2.5s ease forwards;
}
.be-bliksem__flits {
	position: absolute;
	inset: 0;
	background: radial-gradient(ellipse 90% 70% at 50% 45%, rgba(255, 240, 210, .55), rgba(226, 176, 103, .22) 50%, rgba(31, 34, 51, 0) 85%);
	opacity: 0;
	animation: be-flits 1.3s ease-out .4s forwards;
}
.be-bliksem__svg { position: absolute; top: 0; left: 50%; height: 100%; width: auto; aspect-ratio: 1 / 2; max-width: none; transform: translateX(-50%); overflow: visible; }
.be-bliksem__svg--links { left: 18%; }
.be-bliksem__svg--rechts { left: 82%; }
@media (max-width: 781px) { .be-bliksem__svg--links, .be-bliksem__svg--rechts { display: none; } }
.be-bliksem__svg path {
	fill: none;
	stroke-linejoin: miter;
	stroke-linecap: round;
	stroke-dasharray: 1;
	stroke-dashoffset: 1;
	animation: be-slag .45s cubic-bezier(.55, 0, .85, .35) var(--d, 0s) forwards, be-flikker 1.4s linear calc(var(--d, 0s) + .45s);
}
.be-bliksem__gloed { stroke: #E2B067; stroke-width: 2.6; filter: blur(6px); opacity: .75; }
.be-bliksem__kern { stroke: #FFF4DC; stroke-width: .8; filter: drop-shadow(0 0 8px #E2B067) drop-shadow(0 0 18px rgba(226, 176, 103, .8)); }
.be-bliksem__tak { stroke: #F3D29C; stroke-width: .45; filter: drop-shadow(0 0 6px #E2B067); animation-delay: calc(var(--d, 0s) + .25s), calc(var(--d, 0s) + .7s) !important; }
@keyframes be-slag { to { stroke-dashoffset: 0; } }
@keyframes be-flikker { 0%, 100% { opacity: 1; } 12% { opacity: .35; } 22% { opacity: 1; } 34% { opacity: .55; } 44% { opacity: 1; } }
@keyframes be-flits { 0% { opacity: 0; } 12% { opacity: 1; } 30% { opacity: .3; } 45% { opacity: .8; } 100% { opacity: 0; } }
@keyframes be-bliksem-weg { 0%, 72% { opacity: 1; } 100% { opacity: 0; } }
.be-strike .be-logo img { animation: be-logo-gloed 1.2s ease-out .4s; }
@keyframes be-logo-gloed { 0% { filter: none; } 30% { filter: drop-shadow(0 0 12px #E2B067) brightness(1.2); } 100% { filter: none; } }
@media (prefers-reduced-motion: reduce) { .be-bliksem { display: none !important; } }
