/* ==========================================================================
   Bakkerscadeaukaart.nl — Custom Styles
   ========================================================================== */

/* ---------- Global ---------- */

body {
	background-color: #f9f7f4;
	font-family: 'Roboto', Arial, sans-serif;
	color: #333;
}

a {
	color: #b9a488;
}

a:hover,
a:focus {
	color: #9a8468;
}

h1, h2, h3, h4, h5, h6 {
	font-family: 'Roboto', Arial, sans-serif;
	color: #b9a488;
	font-weight: 300;
}

/* ---------- Header ---------- */

.hfg_header {
	background-color: rgba(209, 196, 175, 0.75) !important;
	position: absolute;
	width: 100%;
	z-index: 100;
	top: 0;
}

/* When logged in, compensate for admin bar.
   The admin bar adds 32px at top — the header and hero must both adjust. */
.admin-bar .hfg_header {
	top: 32px;
}

.admin-bar .bck-hero-banner {
	margin-top: -32px !important;
	padding-top: 152px !important; /* 120px content offset + 32px admin bar */
}

.admin-bar .bck-page-banner.alignfull {
	margin-top: -32px !important;
	padding-top: 72px !important; /* 40px + 32px admin bar */
}

@media screen and (max-width: 782px) {
	.admin-bar .hfg_header {
		top: 46px;
	}
	.admin-bar .bck-hero-banner {
		margin-top: -46px !important;
		padding-top: 166px !important;
	}
	.admin-bar .bck-page-banner.alignfull {
		margin-top: -46px !important;
		padding-top: 86px !important;
	}
}

/* Make Neve header row backgrounds transparent so .hfg_header bg shows */
.header--row,
.header--row-inner,
.header-main-inner {
	background-color: transparent !important;
}

/* Collapse header row to just fit the logo. Neve multiplies heights via
   several wrapper divs + builder items, so we override them all. */
.hfg_header,
.hfg_header .header--row,
.hfg_header .header--row-inner,
.hfg_header .header-main-inner,
.hfg_header .row,
.hfg_header .header-main {
	min-height: 0 !important;
	height: auto !important;
}

.hfg_header .header--row,
.hfg_header .header--row-inner,
.hfg_header .header-main-inner {
	padding-top: 4px !important;
	padding-bottom: 4px !important;
}

.hfg_header .builder-item,
.hfg_header .builder-item--logo,
.hfg_header .site-logo,
.hfg_header .nv-nav-wrap,
.hfg_header .primary-menu-ul {
	padding-top: 0 !important;
	padding-bottom: 0 !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* Smaller logo to pair with the shorter bar. */
.hfg_header .site-logo .brand::before {
	width: 100px !important;
	height: 60px !important;
	margin-top: 2px !important;
}

/* Hide the default site title/tagline text in header */
.hfg_header .site-title,
.hfg_header .site-description,
.hfg_header .nv-title-tagline-wrap {
	display: none !important;
}

/* Logo — larger to match original (120×78) */
.hfg_header .builder-item--logo img {
	max-height: 78px;
	width: auto;
}

/* Nav links — match original exactly */
.hfg_header .nav-menu-primary .nav-ul li a {
	color: #fff !important;
	text-transform: uppercase;
	font-size: 14px;
	font-weight: 900;
	letter-spacing: normal;
	line-height: 39.2px;
}

.hfg_header .nav-menu-primary .nav-ul li a:hover,
.hfg_header .nav-menu-primary .nav-ul li.current-menu-item a {
	border-bottom: 3px solid #fff;
	padding-bottom: 5px;
}

/* ---------- Hero / Banner Section ---------- */

/* Pull page content flush to top — eliminate gap between header and hero */
.neve-main {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.single-page-container,
.page-header {
	margin-top: 0 !important;
	padding-top: 0 !important;
}

.bck-hero-banner,
.bck-hero-banner.wp-block-cover {
	position: relative;
	min-height: 600px !important;
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 110px; /* clear fixed header */
	padding-bottom: 50px; /* match ::after mask so content stays above it */
	overflow: hidden;
}

/* Mask the baked-in diagonal at the bottom of index-bg.png with a strip of
   body-background color. Height is enough to cover the slant at the height
   our container renders. */
.bck-hero-banner::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 50px;
	background: #f9f7f4;
	pointer-events: none;
	z-index: 1;
}

/* Remove the dark overlay — original has no overlay on the hero image */
.bck-hero-banner > .wp-block-cover__background {
	opacity: 0 !important;
}

/* Fill full width with `cover`. Position `center top` so the diagonal that
   is baked into the bottom of index-bg.png gets cropped off-screen. */
.bck-hero-banner > .wp-block-cover__image-background {
	object-fit: cover !important;
	object-position: center top !important;
}

.bck-hero-banner .wp-block-cover__inner-container {
	max-width: 1120px;
	width: 100%;
	margin: 0 auto;
	padding: 40px 20px;
}

/* Vertically align the text column with the gift-card image column and
   give them breathing room so the 460px CTA button can't overflow into the
   card column. */
.bck-hero-banner .wp-block-columns {
	align-items: center !important;
	gap: 40px;
}

/* Sub-page banners keep a light overlay */
.bck-page-banner > .wp-block-cover__background {
	opacity: 0.35 !important;
}

/* Sub-page banners — tall band that extends behind the fixed header, matching
   the live site's ~400px bakery-kitchen strip on interior pages. */
.bck-page-banner,
.bck-page-banner.alignfull,
.bck-page-banner.wp-block-cover {
	min-height: 400px !important;
	padding-top: 110px; /* clear the fixed header overlay */
	padding-bottom: 0;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Same bg crop as the home hero — keep the baked-in diagonal cropped off
   the bottom of index-bg.png. */
.bck-page-banner > .wp-block-cover__image-background {
	object-fit: cover !important;
	object-position: center center !important;
}

.bck-hero-banner h1,
.bck-hero-banner h2,
.bck-hero-banner .wp-block-cover__inner-container h1,
.bck-hero-banner .wp-block-cover__inner-container h2 {
	color: #fff !important;
	font-weight: 900;
	font-size: 31px;
	line-height: 36px;
	text-shadow: 0 1px 4px rgba(0,0,0,0.3);
	margin-bottom: 24px;
	max-width: 460px;
}

/* CTA Button — "Vind een bakker in de buurt"
   ORIGINAL IS GREEN (gradient), not beige! The beige is fallback bg. */
/* Outer wrapper: keep it invisible — the pill is the inner link only.
   Gutenberg/Neve apply their own padding+background to .wp-block-button,
   which was creating a double-stack pill behind the real button. */
.wp-block-button.bck-cta-btn {
	background: none !important;
	background-image: none !important;
	background-color: transparent !important;
	border-radius: 0 !important;
	padding: 0 !important;
	margin: 0 !important;
	border: none !important;
	box-shadow: none !important;
	display: block;
}

.wp-block-button.bck-cta-btn .wp-block-button__link {
	background: linear-gradient(to top, #88c03d, #99d746) !important;
	color: #fff !important;
	border-radius: 30px !important;
	padding: 15px 38px !important;
	font-size: 15px;
	font-weight: 700;
	line-height: 22px !important;
	text-transform: uppercase;
	letter-spacing: normal;
	border: none;
	display: inline-block;
	text-decoration: none;
	transition: opacity 0.2s ease;
	width: 360px;
	min-width: 360px;
	max-width: 360px;
	text-align: center;
	position: relative;
	box-sizing: border-box;
}

/* Right-pointing chevron arrow to match the live site button. */
.wp-block-button.bck-cta-btn .wp-block-button__link::after {
	content: "\203A"; /* single right-pointing angle quotation */
	position: absolute;
	right: 22px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
}

.wp-block-button.bck-cta-btn .wp-block-button__link:hover {
	opacity: 0.9;
}

/* Gift card image in hero */
.bck-hero-card img {
	max-width: 560px;
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* 50/50 split inside the widened 1120px container:
   text column ~520px holds the 460px CTA with margin; card column ~520px
   fits the 500px card image cleanly — no overflow into the other column. */
.bck-hero-banner .wp-block-columns > .wp-block-column:first-child {
	flex-basis: 50% !important;
}

.bck-hero-banner .wp-block-column.bck-hero-card {
	flex-basis: 50% !important;
}

/* ---------- Banner Strip (sub-pages) ---------- */

.bck-page-banner {
	min-height: 160px;
	background-size: cover;
	background-position: center;
	margin-bottom: 0;
}

/* ---------- Search Section ---------- */

.bck-search-section {
	max-width: 960px;
	margin: 0 auto;
	padding: 8px 20px 40px;
}

.bck-search-section label,
.bck-search-label {
	font-size: 15px;
	color: #333;
	margin-bottom: 8px;
	display: block;
}

/* ---------- WP Store Locator Overrides ---------- */

/* Hide radius and results dropdowns and labels */
.wpsl-select-wrap {
	display: none !important;
}

/* Hide WPSL's own "Uw locatie" label when we provide our own */
#wpsl-wrap .wpsl-input label,
#wpsl-search-wrap .wpsl-input label,
.wpsl-input > div:first-child {
	display: none !important;
}

/* Inline search layout */
#wpsl-search-wrap {
	margin-bottom: 0;
}

#wpsl-search-wrap form {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.wpsl-search {
	margin-bottom: 15px;
}

/* Search input — match original: 420×60px */
#wpsl-search-input {
	background: #fcfcfc;
	border: 1px solid #e4e4e4;
	border-radius: 3px;
	padding: 16px 16px;
	font-size: 16px;
	font-family: 'Roboto', Arial, sans-serif;
	width: 420px !important;
	height: 60px;
	box-sizing: border-box;
}

#wpsl-search-input::placeholder {
	color: #aaa;
}

#wpsl-search-input:focus {
	outline: none;
	border-color: #b9a488;
}

/* Search button — match original: 160×59px, border-radius 10px */
#wpsl-search-btn {
	background: linear-gradient(to top, #88c03d, #99d746);
	color: #fff;
	border: none;
	border-radius: 10px;
	padding: 0 28px;
	height: 59px;
	min-width: 160px;
	font-size: 14px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	cursor: pointer;
	font-family: 'Roboto', Arial, sans-serif;
	transition: opacity 0.2s ease;
}

#wpsl-search-btn:hover {
	opacity: 0.9;
}

/* Store listing results */
#wpsl-stores li {
	border-bottom: 1px solid #e4e4e4;
	padding: 12px 0;
}

#wpsl-stores li strong {
	color: #333;
}

#wpsl-stores li p {
	color: #707070;
	margin: 2px 0;
}

.wpsl-direction-wrap a {
	color: #88c03d;
}

/* Map canvas */
.wpsl-gmap-canvas {
	border-radius: 3px;
}

/* ---------- "Let op" Notice ---------- */

.bck-notice {
	font-size: 14px;
	color: #333;
	margin-top: 20px;
	line-height: 1.6;
}

.bck-notice strong {
	color: #333;
}

/* ---------- Breadcrumbs ---------- */

.bck-breadcrumb {
	font-size: 13px;
	color: #707070;
	padding: 20px 20px 0;
	max-width: 960px;
	margin: 0 auto;
	display: block;
	width: 100%;
	box-sizing: border-box;
}

.bck-breadcrumb a {
	color: #b9a488;
	text-decoration: none;
}

.bck-breadcrumb a:hover {
	text-decoration: underline;
}

/* ---------- Page Content ---------- */

.bck-page-content {
	max-width: 960px;
	margin: 0 auto;
	padding: 20px 20px 50px;
}

.bck-page-content h1 {
	font-size: 32px;
	font-weight: 300;
	color: #b9a488;
	margin-bottom: 20px;
	text-transform: uppercase;
}

.bck-page-content h2 {
	font-size: 26px;
	font-weight: 300;
	color: #b9a488;
	margin-top: 40px;
	margin-bottom: 15px;
}

.bck-page-content p {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 15px;
}

/* ---------- FAQ Page ---------- */

.bck-faq-question {
	font-weight: 700;
	font-size: 15px;
	color: #333;
	margin-top: 25px;
	margin-bottom: 8px;
}

.bck-faq-answer {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 20px;
}

.bck-faq-intro {
	font-size: 15px;
	line-height: 1.7;
	color: #333;
	margin-bottom: 30px;
}

.bck-faq-intro a {
	color: #b9a488;
	text-decoration: underline;
}

/* ---------- Footer ---------- */

/* Hide Neve's default footer entirely — we use our custom footer */
.site-footer .hfg_footer,
.site-footer .footer--row {
	display: none !important;
}

.site-footer {
	padding: 0;
	margin: 0;
}

/* ---------- Responsive ---------- */

@media screen and (max-width: 960px) {
	.bck-hero-banner {
		min-height: 400px;
	}

	.bck-hero-card img {
		max-width: 300px;
	}

	.bck-cta-btn,
	.bck-cta-btn a,
	.wp-block-button.bck-cta-btn .wp-block-button__link {
		min-width: 280px;
	}

	#wpsl-search-input {
		width: 100% !important;
	}
}

@media screen and (max-width: 720px) {
	.hfg_header .nav-menu-primary .nav-ul li a {
		font-size: 13px;
	}

	.bck-hero-banner {
		min-height: 300px;
		padding-top: 80px;
	}

	.bck-hero-banner h1,
	.bck-hero-banner h2,
	.bck-hero-banner .wp-block-cover__inner-container h1,
	.bck-hero-banner .wp-block-cover__inner-container h2 {
		font-size: 22px;
	}

	.bck-hero-card img {
		max-width: 200px;
		margin-top: 20px;
	}

	.bck-cta-btn,
	.bck-cta-btn a,
	.wp-block-button.bck-cta-btn .wp-block-button__link {
		padding: 14px 30px !important;
		font-size: 14px;
		min-width: auto;
	}

	.bck-page-content h1 {
		font-size: 26px;
	}

	.bck-footer-partners {
		text-align: center;
		margin-top: 15px;
	}
}

@media screen and (max-width: 480px) {
	.bck-hero-banner h1,
	.bck-hero-banner h2 {
		font-size: 18px;
	}

	.bck-hero-card {
		display: none;
	}

	.bck-page-content {
		padding: 15px 15px 40px;
	}
}
