/*
Theme Name: Flexishelf
Theme URI: https://flexishelf.com
Author: Flexishelf
Description: Blokthema voor Flexishelf — schappenverdelers, pushers en POS-oplossingen. Alle teksten en foto's zijn te bewerken in de WordPress-editor. Werkt samen met WooCommerce en de plugin Flexishelf B2B.
Version: 1.0.1
Requires at least: 6.5
Tested up to: 7.1
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: flexishelf
Tags: block-patterns, full-site-editing, e-commerce
*/

/* ------------------------------------------------------------
   Basis
------------------------------------------------------------ */
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { -webkit-font-smoothing: antialiased; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }
.fs-main > .wp-block-post-content { margin-top: 0; }
.fs-main > .wp-block-post-content > .alignfull:first-child { margin-top: 0; }
.fs-main > .wp-block-post-content > * + .alignfull { margin-top: 0; }
img { height: auto; }

/* ------------------------------------------------------------
   Header
------------------------------------------------------------ */
.fs-header-wrap { position: sticky; top: 0; z-index: 50; }
.admin-bar .fs-header-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .fs-header-wrap { top: 0; } }
.fs-header {
	position: relative;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
/* Blur on a separate layer: backdrop-filter on the header itself would trap the full-screen mobile menu. */
.fs-header::before {
	content: "";
	position: absolute; inset: 0; z-index: -1;
	background: rgba(244, 246, 249, 0.92);
	-webkit-backdrop-filter: blur(10px);
	backdrop-filter: blur(10px);
}
.fs-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 1.5rem clamp(16px, 4vw, 48px);
	font-family: var(--wp--preset--font-family--heading);
	font-size: 1.5rem; font-weight: 600;
}
.fs-header .wp-block-site-logo img { max-height: 46px; width: auto; }
.fs-header .fs-nav a { text-decoration: none; }
.fs-header .fs-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fs-header-actions { gap: 0.75rem; }
.fs-header-actions .wc-block-mini-cart__button,
.fs-header-actions .wc-block-customer-account a { min-height: 44px; min-width: 44px; display: inline-flex; align-items: center; justify-content: center; }
.fs-btn-small .wp-block-button__link { padding: 0.7rem 1.1rem; font-size: 0.9375rem; }
@media (max-width: 781px) {
	.fs-header .fs-btn-small { display: none; }
	.fs-header > .wp-block-group { flex-wrap: nowrap !important; gap: 0.5rem; }
	.fs-header .wp-block-site-logo { flex: 1 1 auto; min-width: 0; }
	.fs-header .wp-block-site-logo img { max-height: 36px; }
	.fs-header .fs-nav { order: 3; }
	.fs-header-actions { order: 2; gap: 0.25rem; }
}

/* ------------------------------------------------------------
   Secties en typografie
------------------------------------------------------------ */
.fs-section h2 { margin-top: 0.4rem; }
.fs-section-head { gap: 1.5rem 3rem; margin-bottom: var(--wp--preset--spacing--50); }
.fs-section-title { max-width: 680px; }
.fs-lead { max-width: 400px; margin: 0; }

.fs-eyebrow,
.fs-figlabel,
.fs-spec-label,
.fs-tags,
.fs-footer-label {
	font-family: var(--wp--preset--font-family--mono);
	font-size: var(--wp--preset--font-size--x-small);
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.fs-eyebrow { display: flex; align-items: center; gap: 10px; margin: 0; opacity: 0.85; }
.fs-eyebrow::before {
	content: "";
	width: 10px; height: 10px; flex: none;
	background: var(--wp--preset--color--orange);
}
.fs-figlabel { margin: 0; opacity: 0.7; }

/* Achtergrond met millimeterraster op donkere secties */
.fs-gridbg {
	background-image:
		linear-gradient(rgba(143, 163, 196, 0.10) 1px, transparent 1px),
		linear-gradient(90deg, rgba(143, 163, 196, 0.10) 1px, transparent 1px);
	background-size: 32px 32px;
}
.has-navy-background-color a:where(:not(.wp-element-button)) { color: #fff; }

/* Knoppen */
.fs-btn-arrow .wp-block-button__link::after { content: " →"; }
.fs-btn-light .wp-block-button__link {
	color: #fff;
	border: 1px solid rgba(201, 211, 227, 0.55);
	background: transparent;
}
.fs-btn-light .wp-block-button__link:hover { background: rgba(255, 255, 255, 0.08); }
.wp-block-button__link { min-height: 44px; }
.wp-block-button.has-orange-background-color .wp-block-button__link:hover,
.wp-block-button__link.has-orange-background-color:hover { filter: brightness(1.06); }

/* ------------------------------------------------------------
   Hero
------------------------------------------------------------ */
.fs-hero h1 { margin: 1.25rem 0; }
.fs-hero-img { margin: 0 -6% 0 0; }
.fs-hero-img img { filter: drop-shadow(0 40px 50px rgba(0, 0, 0, 0.45)); border-radius: 0; }
.fs-hero .fs-figlabel { border-bottom: 1px solid rgba(201, 211, 227, 0.25); padding-bottom: 0.75rem; }
.fs-specs { border-top: 1px solid rgba(201, 211, 227, 0.25); gap: 0 !important; }
.fs-spec { padding: 1.5rem 1.5rem 0.5rem 0; }
.fs-spec p { margin: 0; }
.fs-spec-label { color: #8FA3C4; }
.fs-spec-value { font-family: var(--wp--preset--font-family--heading); font-size: 1.5rem; font-weight: 600; margin-top: 0.35rem !important; }
@media (max-width: 781px) { .fs-hero-img { margin: 0; } }

/* ------------------------------------------------------------
   Kaarten
------------------------------------------------------------ */
.fs-cards { gap: 20px; }
.fs-card {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 18px;
	padding: 28px;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.fs-card > * { margin: 0 !important; }
.fs-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -24px rgba(8, 57, 113, 0.45); }
.fs-card h3, .fs-card h4 { margin-top: 0.25rem !important; }
.fs-card-img {
	height: 200px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	border-bottom: 1px solid #EEF1F5;
	padding-bottom: 12px;
	margin-bottom: 0.5rem !important;
}
.fs-card-img img { max-height: 188px; width: auto !important; max-width: 100%; object-fit: contain; border-radius: 0 !important; transition: transform .35s ease; }
.fs-card:hover .fs-card-img img { transform: scale(1.04); }
.fs-tags { color: var(--wp--preset--color--slate); }
.fs-more { margin-top: auto !important; padding-top: 0.5rem; font-weight: 600; }
.fs-more a { text-decoration: none; }
.fs-more a::after { content: " →"; }
.fs-more a:hover { text-decoration: underline; }

.fs-card--dark { border-color: transparent; justify-content: space-between; padding: 32px; }
.fs-card--dark .fs-eyebrow { color: #8FA3C4; }
.fs-card--dark .wp-block-buttons { margin-top: auto !important; }

.fs-card--glass { background: rgba(21, 38, 74, 0.55); border-color: rgba(143, 163, 196, 0.25); }
.fs-card--glass .fs-card-img { border-bottom-color: rgba(143, 163, 196, 0.2); }
.fs-card--glass .fs-figlabel { color: #8FA3C4; opacity: 1; }

.fs-card--variant .fs-card-img { height: 210px; }

.fs-result { border-radius: 22px; padding: clamp(24px, 4vw, 48px) !important; }
.fs-plain-img img { border-radius: 0; }

/* Voordelen met icoon */
.fs-feature::before {
	content: "";
	width: 48px; height: 48px;
	border-radius: 12px;
	background-color: var(--wp--preset--color--navy);
	background-repeat: no-repeat;
	background-position: center;
	background-size: 24px 24px;
	margin-bottom: 0.5rem;
}
.fs-feature--fill::before   { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 20h18'/%3E%3Cpath d='M6 20V8M10 20V8M14 20V8M18 20V8'/%3E%3Cpath d='M12 3v3M10.5 4.5 12 6l1.5-1.5'/%3E%3C/svg%3E"); background-color: var(--wp--preset--color--orange); }
.fs-feature--check::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='3'/%3E%3Cpath d='m8 12 3 3 5-6'/%3E%3C/svg%3E"); background-color: var(--wp--preset--color--orange); }
.fs-feature--montage::before{ background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 18h16'/%3E%3Cpath d='M8 18V8l4-4 4 4v10'/%3E%3Cpath d='M10 12h4'/%3E%3C/svg%3E"); }
.fs-feature--eye::before    { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7S2 12 2 12z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.fs-feature--ruler::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='8' width='20' height='8' rx='1'/%3E%3Cpath d='M6 8v3M10 8v4M14 8v3M18 8v4'/%3E%3C/svg%3E"); }
.fs-feature--cycle::before  { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 0 1-15.5 6.2'/%3E%3Cpath d='M3 12A9 9 0 0 1 18.5 5.8'/%3E%3Cpath d='M19 2v4h-4'/%3E%3Cpath d='M5 22v-4h4'/%3E%3C/svg%3E"); }

/* Foto met label */
.fs-photo { position: relative; margin-top: var(--wp--preset--spacing--40); }
.fs-photo img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.fs-photo figcaption,
.wp-block-gallery.fs-mosaic.has-nested-images figure.wp-block-image figcaption {
	position: absolute;
	inset: auto auto 14px 14px;
	box-sizing: border-box;
	-webkit-backdrop-filter: none; backdrop-filter: none;
	overflow: visible;
	margin: 0 !important;
	font-family: var(--wp--preset--font-family--mono);
	font-size: 12px !important;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: rgba(8, 57, 113, 0.9) !important;
	color: #fff !important;
	padding: 6px 12px !important;
	border-radius: 999px;
	width: auto !important;
	max-height: none !important;
	text-shadow: none !important;
}

/* ------------------------------------------------------------
   Werkwijze
------------------------------------------------------------ */
.fs-section > .fs-section-title { max-width: 1240px; margin-left: auto !important; margin-right: auto !important; }
.fs-section > .fs-section-title > * { max-width: 680px; }
.fs-steps { border-top: 2px solid var(--wp--preset--color--navy); margin-top: var(--wp--preset--spacing--50) !important; row-gap: 0 !important; }
.fs-step { padding-top: 1.75rem; }
.fs-step-num {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 4rem; font-weight: 700; line-height: 1;
	color: var(--wp--preset--color--navy);
	margin: 0;
}
.fs-step--accent .fs-step-num { color: var(--wp--preset--color--orange); }

/* ------------------------------------------------------------
   Referenties — fotomozaïek
------------------------------------------------------------ */
.fs-reference { max-width: 420px; }
.fs-reference > * { margin: 0.35rem 0 0 !important; }
.fs-pin { display: flex; align-items: center; gap: 10px; }
.fs-pin::before {
	content: ""; width: 22px; height: 22px; flex: none;
	background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083971' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5A7 7 0 0 1 19 9.5C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E") no-repeat center / contain;
}
.wp-block-gallery.fs-mosaic.has-nested-images {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	grid-auto-rows: 240px;
	grid-auto-flow: dense;
	gap: 16px !important;
}
.wp-block-gallery.fs-mosaic.has-nested-images figure.wp-block-image {
	width: auto !important;
	margin: 0 !important;
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	background: var(--wp--preset--color--line);
}
.wp-block-gallery.fs-mosaic.has-nested-images figure.wp-block-image img {
	width: 100% !important; height: 100% !important;
	object-fit: cover; border-radius: 0;
	transition: transform .5s ease;
}
.wp-block-gallery.fs-mosaic figure.wp-block-image:hover img { transform: scale(1.04); }
.wp-block-gallery.fs-mosaic figure.wp-block-image::before { display: none !important; }
.fs-mosaic > figure:nth-child(8n+1) { grid-column: span 2; grid-row: span 2; }
.fs-mosaic > figure:nth-child(8n+2) { grid-row: span 2; }
.fs-mosaic > figure:nth-child(8n+5),
.fs-mosaic > figure:nth-child(8n+6),
.fs-mosaic > figure:nth-child(8n+7),
.fs-mosaic > figure:nth-child(8n+8) { grid-column: span 2; }
@media (max-width: 900px) {
	.wp-block-gallery.fs-mosaic.has-nested-images { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 560px) {
	.wp-block-gallery.fs-mosaic.has-nested-images { grid-template-columns: 1fr; grid-auto-rows: 240px; }
	.fs-mosaic > figure:nth-child(n) { grid-column: auto; grid-row: auto; }
}

/* ------------------------------------------------------------
   Contact
------------------------------------------------------------ */
.fs-contact-list { list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--40); border-top: 1px solid var(--wp--preset--color--line); }
.fs-contact-list li {
	display: flex; align-items: center; gap: 14px;
	padding: 16px 0;
	border-bottom: 1px solid var(--wp--preset--color--line);
}
.fs-contact-list li::before {
	content: ""; width: 22px; height: 22px; flex: none;
	background: no-repeat center / contain;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083971' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.fs-contact-list .fs-ci-mail { font-weight: 600; }
.fs-contact-list .fs-ci-mail::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083971' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3 7l9 6 9-6'/%3E%3C/svg%3E"); }
.fs-contact-list .fs-ci-store::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083971' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l1.5-5h15L21 9'/%3E%3Cpath d='M4 9v11h16V9'/%3E%3Cpath d='M3 9h18'/%3E%3C/svg%3E"); }
.fs-contact-list .fs-ci-box::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23083971' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8l-9-5-9 5 9 5 9-5z'/%3E%3Cpath d='M3 8v8l9 5 9-5V8'/%3E%3Cpath d='M12 13v8'/%3E%3C/svg%3E"); }

.fs-form {
	background: #fff;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 22px;
	padding: clamp(24px, 3vw, 40px);
	box-shadow: 0 30px 60px -40px rgba(8, 57, 113, 0.35);
	display: grid;
	gap: 18px;
}
.fs-form .fs-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px; }
.fs-form label { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 600; }
.fs-form input[type="text"],
.fs-form input[type="email"],
.fs-form input[type="tel"],
.fs-form textarea {
	min-height: 48px;
	padding: 10px 14px;
	border: 1px solid #C3CCD8;
	border-radius: 10px;
	font: inherit; font-weight: 400; font-size: 16px;
	background: #F8F9FB; color: var(--wp--preset--color--ink);
}
.fs-form textarea { min-height: 130px; resize: vertical; }
.fs-form input:focus, .fs-form textarea:focus { outline: 2px solid var(--wp--preset--color--navy); outline-offset: 1px; }
.fs-form fieldset { border: 0; margin: 0; padding: 0; }
.fs-form legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding: 0; }
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chips label { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; min-height: 40px; padding: 0 14px; border: 1px solid #C3CCD8; border-radius: 999px; cursor: pointer; }
.fs-form .fs-consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--wp--preset--color--slate); }
.fs-form .fs-consent input { margin-top: 4px; }
.fs-form button {
	min-height: 54px; border: 0; border-radius: 12px; cursor: pointer;
	background: var(--wp--preset--color--navy); color: #fff;
	font: 600 16px var(--wp--preset--font-family--body);
}
.fs-form button:hover { background: var(--wp--preset--color--ink); }
.fs-form .fs-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fs-form-note { margin: 0; font-size: 13px; color: var(--wp--preset--color--slate); text-align: center; }
.fs-form-msg { border-radius: 12px; padding: 14px 16px; font-weight: 500; }
.fs-form-msg--ok { background: #E7F5EA; color: #1E6A32; }
.fs-form-msg--err { background: #FBEAEA; color: #8A1F1F; }

/* ------------------------------------------------------------
   Footer
------------------------------------------------------------ */
.fs-footer a { color: #E8EEF8; text-decoration: none; }
.fs-footer a:hover { text-decoration: underline; }
.fs-footer-logo img { border-radius: 0; }
.fs-footer-label { color: #8FA3C4; margin-bottom: 0.5rem; }
.fs-footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: var(--wp--preset--font-size--small); }
.fs-footer-sep { border: 0; height: 1px; opacity: 1; width: 100% !important; max-width: none !important; margin: var(--wp--preset--spacing--50) 0 var(--wp--preset--spacing--30) !important; background-color: #22355A !important; }

/* ------------------------------------------------------------
   WooCommerce
------------------------------------------------------------ */
.woocommerce-store-notice, p.demo_store { background: var(--wp--preset--color--navy); }
.wp-block-post-title,
.wp-block-query-title { font-size: var(--wp--preset--font-size--xx-large); line-height: 1.05; }
.single-product .wp-block-post-title { font-size: clamp(2rem, 3.4vw, 2.75rem); }
.wc-block-components-product-image img { border-radius: 14px; }
.wc-block-components-product-price, .woocommerce .price { color: var(--wp--preset--color--ink); }
.wp-block-woocommerce-product-template .wc-block-components-product-image img,
.woocommerce ul.products li.product img { background: #fff; border-radius: 14px; }
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row select,
.woocommerce form .form-row textarea { border-radius: 10px; min-height: 44px; }
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation li a { display: block; padding: 10px 0; text-decoration: none; border-bottom: 1px solid var(--wp--preset--color--line); }
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a { font-weight: 700; color: var(--wp--preset--color--navy); }

/* Toegankelijkheid */
:focus-visible { outline: 2px solid var(--wp--preset--color--orange); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	* { transition: none !important; }
}
