/*
 * BloomPost footer (template-parts/bp-footer.php)
 * Maten uit Figma "Kaart first flows": "footer desktop" (>=1024px) en
 * "footer" mobiel (<=767px). Tablet (768-1023px) is daartussen afgeleid.
 * Lettergroottes volgen de Figma-variabelen "mobile vs desktop sizes":
 * H1 28px / P 18px op desktop, H1 19px / P 12px op mobiel.
 */

.bp-footer {
	--bp-ink: #0f2c30;
	--bp-ink-50: rgba(15, 44, 48, 0.5);
	--bp-green: #68bfad;
	--bp-green-mid: #b3dfd6;
	--bp-grey-bg: #f5f5f5;
	--bp-line: #676f70;
	--bp-font: "Helvetica-Neue", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--bp-h1: 28px;
	--bp-p: 18px;
	--bp-btn: 24px;

	color: var(--bp-ink);
	font-family: var(--bp-font);
	font-size: var(--bp-p);
	font-weight: 400;
	line-height: 1.1;
	text-align: left;
}

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

.bp-footer .bp-sr {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	margin: -1px !important;
	padding: 0 !important;
	overflow: hidden !important;
	clip: rect(0 0 0 0) !important;
	clip-path: inset(50%) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

.bp-footer .bp-icon {
	display: block;
	flex: none;
}

.bp-footer p {
	margin: 0;
}

.bp-footer ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.bp-footer a {
	color: inherit;
	text-decoration: none;
}

.bp-footer a,
.bp-footer a:hover,
.bp-footer a:focus,
.bp-footer a:focus-visible {
	color: inherit;
	text-decoration: none;
}

.bp-footer__inner {
	width: min(1300px, calc(100% - 40px));
	margin: 0 auto;
}

.bp-footer .bp-footer__title {
	margin: 0;
	padding: 0;
	color: var(--bp-ink);
	font-family: var(--bp-font);
	font-size: var(--bp-h1);
	font-weight: 700;
	line-height: 1.22;
	letter-spacing: 0;
	text-transform: none;
}

.bp-footer .bp-footer__title--light {
	color: #fff;
}

/* knoppen: reset van de Hello Elementor-knopstijl */
.bp-footer .bp-footer__btn,
.bp-footer button.bp-footer__btn {
	-webkit-appearance: none;
	appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin: 0;
	border: 0;
	border-radius: 100px;
	background: var(--bp-ink);
	box-shadow: none;
	color: #fff;
	font-family: var(--bp-font);
	font-size: var(--bp-btn);
	font-weight: 700;
	line-height: 1.22;
	text-align: center;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.bp-footer .bp-footer__btn:hover,
.bp-footer .bp-footer__btn:focus-visible {
	background: #1d4a50;
	color: #fff;
	text-decoration: none;
}

/* ---------- groen blok ---------- */
.bp-footer__top {
	padding: 56px 0;
	background: var(--bp-green);
}

.bp-footer__top-row {
	display: flex;
	align-items: stretch;
	justify-content: space-between;
	gap: 32px;
}

.bp-footer__logo {
	display: block;
	flex: 0 1 234px;
	align-self: center;
	min-width: 0;
}

.bp-footer__logo img {
	display: block;
	width: 234px;
	max-width: 100%;
	height: auto;
}

/* Hulp nodig? */
.bp-footer__help {
	display: flex;
	flex: 0 0 350px;
	flex-direction: column;
	gap: 16px;
	padding: 16px 32px;
	border-radius: 16px;
	background: var(--bp-green-mid);
}

.bp-footer__help-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.bp-footer__help-txt {
	display: block;
	font-size: var(--bp-p);
	line-height: 1.1;
}

.bp-footer .bp-footer__contact {
	display: flex;
	align-items: center;
	gap: 16px;
	color: var(--bp-ink);
}

.bp-footer__contact-icon {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
}

.bp-footer__contact-body {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bp-footer__contact-title {
	font-size: var(--bp-p);
	font-weight: 700;
	line-height: 1.22;
	overflow-wrap: anywhere;
}

.bp-footer__contact-txt {
	font-size: var(--bp-p);
	line-height: 1.1;
}

.bp-footer .bp-footer__faq {
	align-self: stretch;
	min-height: 53px;
	padding: 12px 20px;
}

/* nieuwsbrief + social media */
.bp-footer__aside {
	display: flex;
	flex: 0 1 506px;
	flex-direction: column;
	justify-content: space-between;
	gap: 56px;
	min-width: 0;
}

.bp-footer__newsletter {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bp-footer__newsletter-txt {
	color: #fff;
	font-size: var(--bp-p);
	font-weight: 300;
	line-height: 1.1;
}

.bp-footer__newsletter-form {
	display: flex;
	gap: 8px;
	margin: 0;
}

.bp-footer .bp-footer__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 45px;
	margin: 0;
	padding: 0 15px;
	border: 0;
	border-radius: 100px;
	outline: 0;
	background: #fff;
	box-shadow: none;
	color: var(--bp-ink);
	font-family: var(--bp-font);
	font-size: var(--bp-p);
	font-weight: 300;
	line-height: 1;
}

.bp-footer .bp-footer__input::placeholder {
	color: var(--bp-ink-50);
	opacity: 1;
}

.bp-footer .bp-footer__input,
.bp-footer .bp-footer__input:focus,
.bp-footer .bp-footer__input:hover {
	border: 0 !important;
	border-radius: 100px !important;
	padding: 0 15px !important;
	outline: 0;
	box-shadow: none;
}

.bp-footer .bp-footer__input:focus-visible {
	box-shadow: 0 0 0 2px var(--bp-ink);
}

.bp-footer .bp-footer__subscribe {
	flex: none;
	height: 45px;
	padding: 8px 16px;
}

.bp-footer__social {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bp-footer__social-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.bp-footer .bp-footer__social-list a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: #fff;
	transition: opacity 0.2s ease;
}

.bp-footer .bp-footer__social-list a:hover,
.bp-footer .bp-footer__social-list a:focus-visible {
	opacity: 0.75;
}

/* ---------- grijs blok ---------- */
.bp-footer__bottom {
	padding: 52px 0;
	background: var(--bp-grey-bg);
}

.bp-footer__bottom > .bp-footer__inner {
	display: flex;
	flex-direction: column;
	gap: 24px;
}

.bp-footer__cols {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 32px;
}

.bp-footer__col {
	display: flex;
	flex-direction: column;
	gap: 16px;
	min-width: 0;
}

.bp-footer .bp-footer__col-toggle {
	display: none;
}

.bp-footer__links {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.bp-footer__links a {
	display: inline-block;
	font-size: var(--bp-p);
	line-height: 1.6;
}

/* betaalmethodes + Kiyoh */
.bp-footer__col--pay {
	flex: 0 0 288px;
	gap: 8px;
}

.bp-footer__payments {
	display: grid;
	grid-template-columns: repeat(4, 60px);
	gap: 16px;
}

.bp-footer__payments li {
	display: block;
	width: 60px;
	height: 36px;
	overflow: hidden;
	border-radius: 8px;
	background: #fff;
}

.bp-footer__payments img {
	display: block;
	width: 60px;
	height: 36px;
	object-fit: contain;
}

.bp-footer__kiyoh {
	display: block;
	max-width: 100%;
	height: auto;
}

.bp-footer__kiyoh--desktop {
	width: 288px;
	margin-top: 8px; /* 8px gap + 8px = 16px in Figma */
}

.bp-footer__kiyoh--mobile {
	display: none;
	width: 204px;
	margin: 0 auto;
}

/* menu onderaan + adres */
.bp-footer__legal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	text-align: center;
}

.bp-footer__legal li {
	font-size: var(--bp-p);
	line-height: 1.1;
}

.bp-footer__legal li + li::before {
	content: "\00a0\00b7\00a0";
}

.bp-footer__address {
	max-width: 360px;
	margin: 0 auto;
	color: var(--bp-ink-50);
	font-size: var(--bp-p);
	line-height: 1.1;
	text-align: center;
}

.bp-footer__address a {
	color: inherit;
}

@media (min-width: 1024px) {
	.bp-footer__contact-title {
		white-space: nowrap;
	}
}

/* ---------- desktop smal (1024-1199px) ---------- */
@media (min-width: 1024px) and (max-width: 1199.98px) {
	.bp-footer__help {
		flex-basis: 330px;
		padding: 16px 24px;
	}
}

/* ---------- tablet (768-1023px) ---------- */
@media (max-width: 1023.98px) {
	.bp-footer {
		--bp-h1: 24px;
		--bp-p: 16px;
		--bp-btn: 20px;
	}

	.bp-footer__top {
		padding: 48px 0;
	}

	.bp-footer__top-row {
		display: grid;
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 40px 32px;
	}

	.bp-footer__logo {
		grid-column: 1 / -1;
		justify-self: center;
	}

	.bp-footer__help {
		padding: 20px 24px;
	}

	.bp-footer .bp-footer__faq {
		min-height: 45px;
		padding: 8px 16px;
	}

	.bp-footer__aside {
		justify-content: flex-start;
		gap: 40px;
	}

	.bp-footer .bp-footer__input,
	.bp-footer .bp-footer__subscribe {
		height: 45px;
	}

	.bp-footer__bottom {
		padding: 40px 0;
	}

	.bp-footer__cols {
		display: grid;
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 40px 32px;
	}

	/* betaalmethodes boven de menukolommen, Kiyoh gecentreerd erboven */
	.bp-footer__col--pay {
		display: flex;
		flex-direction: column;
		grid-column: 1 / -1;
		grid-row: 1;
		gap: 8px;
	}

	.bp-footer__kiyoh--desktop {
		order: -1;
		align-self: center;
		margin: 0 0 24px;
	}

	.bp-footer__payments {
		grid-template-columns: repeat(8, 60px);
	}

	.bp-footer__col[data-bp-accordion] {
		grid-row: 2;
	}

	.bp-footer__links {
		gap: 8px;
	}
}

/* ---------- mobiel (<=767px) ---------- */
@media (max-width: 767.98px) {
	.bp-footer {
		--bp-h1: 19px;
		--bp-p: 12px;
		--bp-btn: 16px;
	}

	.bp-footer__top {
		padding: 40px 0;
	}

	.bp-footer__top-row {
		display: flex;
		flex-direction: column;
		gap: 40px;
	}

	.bp-footer__logo {
		flex: none;
		align-self: center;
	}

	.bp-footer__help {
		flex: none;
		padding: 20px;
	}

	.bp-footer__contact-title {
		line-height: 1.25;
	}

	/* volgorde mobiel ontwerp: e-mail, WhatsApp, telefoon */
	.bp-footer__contact--email {
		order: 1;
	}

	.bp-footer__contact--app {
		order: 2;
	}

	.bp-footer__contact--phone {
		order: 3;
	}

	.bp-footer .bp-footer__faq {
		order: 4;
		align-self: flex-start;
		min-height: 36px;
		padding: 8px 16px;
	}

	.bp-footer__aside {
		flex: none;
		gap: 40px;
		padding: 0 20px;
	}

	.bp-footer__newsletter-txt {
		font-weight: 400;
	}

	.bp-footer .bp-footer__input,
	.bp-footer .bp-footer__subscribe {
		height: 36px;
	}

	.bp-footer .bp-footer__input {
		font-size: 12px;
	}

	.bp-footer__bottom {
		padding: 20px 0;
	}

	.bp-footer__bottom > .bp-footer__inner {
		gap: 24px;
	}

	.bp-footer__cols {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.bp-footer__col--pay {
		display: flex;
		flex: none;
		order: -1;
		gap: 8px;
		margin-bottom: 24px;
	}

	.bp-footer__kiyoh--mobile {
		display: block;
		margin-bottom: 16px; /* 24px in Figma (8px gap + 16px) */
	}

	.bp-footer__kiyoh--desktop {
		display: none;
	}

	.bp-footer__payments {
		grid-template-columns: repeat(4, 60px);
	}

	/* menukolommen als accordeon */
	.bp-footer__col[data-bp-accordion] {
		gap: 0;
		border-top: 0.5px solid var(--bp-line);
	}

	.bp-footer__col[data-bp-accordion]:nth-last-child(2) {
		border-bottom: 0.5px solid var(--bp-line);
	}

	.bp-footer__col-label {
		display: none;
	}

	.bp-footer .bp-footer__col-toggle {
		-webkit-appearance: none;
		appearance: none;
		display: flex;
		align-items: center;
		justify-content: space-between;
		gap: 24px;
		width: 100%;
		min-height: 55px;
		margin: 0;
		padding: 16px 0;
		border: 0;
		border-radius: 0;
		background: transparent;
		box-shadow: none;
		color: var(--bp-ink);
		font: inherit;
		text-align: left;
		cursor: pointer;
	}

	.bp-footer .bp-footer__col-toggle:hover,
	.bp-footer .bp-footer__col-toggle:focus {
		background: transparent;
		color: var(--bp-ink);
	}

	.bp-footer__col-toggle .bp-icon {
		color: var(--bp-line);
		transition: transform 0.3s ease;
	}

	.bp-footer__col-toggle[aria-expanded="true"] .bp-icon {
		transform: rotate(180deg);
	}

	.bp-footer__col-panel {
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows 0.3s ease;
	}

	.bp-footer__col-panel > * {
		min-height: 0;
		overflow: hidden;
	}

	.bp-footer__col.is-open .bp-footer__col-panel {
		grid-template-rows: 1fr;
	}

	.bp-footer__links {
		gap: 8px;
	}

	.bp-footer__col.is-open .bp-footer__links {
		padding-bottom: 16px;
	}

	.bp-footer__legal li,
	.bp-footer__address {
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.bp-footer *,
	.bp-footer *::before,
	.bp-footer *::after {
		transition: none !important;
	}
}

@media (max-width: 767.98px) {
	.bp-footer__col[data-bp-accordion]:not(.is-open) .bp-footer__col-panel > * {
		visibility: hidden;
		transition: visibility 0s 0.3s;
	}
}

/* Klaviyo-formulier in de nieuwsbriefkolom (klaviyo-form-Xy6gde) */
.bp-footer__newsletter > [class^="klaviyo-form-"] {
	width: 100%;
	min-width: 0;
}

/* Klaviyo: geen witte focus-rand van het thema (reset.css) */
.bp-footer__newsletter > [class^="klaviyo-form-"] input:focus,
.bp-footer__newsletter > [class^="klaviyo-form-"] input:focus-visible,
.bp-footer__newsletter > [class^="klaviyo-form-"] button:focus,
.bp-footer__newsletter > [class^="klaviyo-form-"] button:focus-visible {
	box-shadow: none !important;
	outline: none !important;
}

/* Klaviyo: ook geen donkere rand van reset.css rond het e-mailveld bij focus */
.bp-footer__newsletter > [class^="klaviyo-form-"] input:focus,
.bp-footer__newsletter > [class^="klaviyo-form-"] input:focus-visible {
	border-color: transparent !important;
}

/* Klaviyo: kleur placeholdertekst */
.bp-footer__newsletter > [class^="klaviyo-form-"] input::placeholder {
	color: #8B9799 !important;
	opacity: 1 !important;
}

/* ---------- linkkleur vastzetten ----------
 * De Elementor-kit (.elementor-kit-4 a) laadt op o.a. de PDP en shop-archieven na dit
 * bestand en maakte de footerlinks groen. Hogere specificiteit per linkgroep, zodat de
 * knop (wit) en de social-iconen (wit) ongemoeid blijven.
 */
.bp-footer a.bp-footer__logo,
.bp-footer .bp-footer__links a,
.bp-footer .bp-footer__links a:visited,
.bp-footer .bp-footer__links a:hover,
.bp-footer .bp-footer__links a:focus,
.bp-footer .bp-footer__legal a,
.bp-footer .bp-footer__legal a:visited,
.bp-footer .bp-footer__legal a:hover,
.bp-footer .bp-footer__legal a:focus {
	color: var(--bp-ink);
}

.bp-footer .bp-footer__address a,
.bp-footer .bp-footer__address a:visited,
.bp-footer .bp-footer__address a:hover {
	color: inherit;
}
