/*
Theme Name: Free2MUV
Theme URI: https://measurablemarketingconsultancy.com/
Author: Measurable Marketing Consultancy
Author URI: https://measurablemarketingconsultancy.com/
Description: Lightweight, accessible block theme for Free2MUV (aangepast bewegen & coaching). Dutch, French and English ready with Polylang. Includes page patterns for every page.
Version: 1.0.0
Requires at least: 6.6
Tested up to: 6.9
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: free2muv
*/

/* ---------- Base ---------- */
:root {
	--f2m-navy: #0B2545;
	--f2m-blue: #1557B0;
	--f2m-light: #CFE0F5;
	--f2m-tint: #F2F7FD;
	--f2m-amber: #F5A623;
	--f2m-muted: #33445F;
	--f2m-line: #E3EAF4;
	--f2m-radius: 22px;
	--f2m-gutter: clamp(16px, 5vw, 80px);
	--f2m-section: clamp(56px, 8vw, 104px);
}
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; }
:where(a, button, summary, input, textarea, select):focus-visible { outline: 3px solid var(--f2m-amber); outline-offset: 3px; border-radius: 4px; }
.screen-reader-text { border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; word-wrap: normal !important; }
.f2m-wrap { max-width: 1200px; margin: 0 auto; padding-left: var(--f2m-gutter); padding-right: var(--f2m-gutter); box-sizing: content-box; }
.f2m-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; box-sizing: border-box; padding: 12px 24px; border-radius: 999px; background: var(--f2m-blue); color: #fff !important; font-weight: 700; text-decoration: none; }
.f2m-btn:hover { background: var(--f2m-navy); }
.wp-site-blocks > * + * { margin-block-start: 0; }
main#main { padding-bottom: 0; }
main > .wp-block-post-content > *:first-child { margin-block-start: 0; }
.f2m-page-title { padding-top: var(--f2m-section); }

/* ---------- Skip link ---------- */
.f2m-skip { position: absolute; left: 16px; top: -100px; z-index: 1000; background: #fff; color: var(--f2m-navy); padding: 12px 18px; border-radius: 8px; font-weight: 700; }
.f2m-skip:focus { top: 12px; }

/* ---------- Header ---------- */
.f2m-topbar { background: var(--f2m-navy); color: #fff; font-size: 0.9375rem; }
.f2m-topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 44px; gap: 16px; }
.f2m-topbar__contact { display: flex; gap: 24px; }
.f2m-topbar a { color: #fff; text-decoration: none; }
.f2m-topbar a:hover { text-decoration: underline; }
.f2m-lang ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.f2m-lang a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 36px; border-radius: 6px; font-weight: 700; }
.f2m-lang a[aria-current] { background: #fff; color: var(--f2m-navy); }
.f2m-header { background: #fff; border-bottom: 1px solid var(--f2m-line); position: sticky; top: 0; z-index: 50; }
.admin-bar .f2m-header { top: 32px; }
.f2m-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 88px; gap: 24px; }
.f2m-logo { height: 56px; width: auto; display: block; }
.f2m-nav { display: flex; align-items: center; gap: 28px; }
.f2m-menu { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.f2m-menu > li { position: relative; }
.f2m-menu a { color: var(--f2m-navy); text-decoration: none; font-weight: 700; font-size: 1.0625rem; display: inline-flex; align-items: center; min-height: 44px; }
.f2m-menu a:hover, .f2m-menu a[aria-current="page"], .f2m-menu .current-menu-item > a { color: var(--f2m-blue); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.f2m-menu .menu-item-has-children > a::after { content: ""; width: 8px; height: 8px; margin-left: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.f2m-menu .sub-menu { list-style: none; margin: 0; padding: 12px; position: absolute; left: -12px; top: 100%; min-width: 280px; background: #fff; border: 1px solid var(--f2m-line); border-radius: 16px; box-shadow: 0 16px 40px rgba(11,37,69,.12); display: none; }
.f2m-menu li:hover > .sub-menu, .f2m-menu li:focus-within > .sub-menu { display: block; }
.f2m-menu .sub-menu a { display: flex; padding: 6px 12px; border-radius: 8px; font-size: 1rem; }
.f2m-menu .sub-menu a:hover { background: var(--f2m-tint); }
.f2m-burger { display: none; align-items: center; gap: 8px; min-height: 48px; padding: 0 16px; border: 1.5px solid var(--f2m-light); border-radius: 12px; background: #fff; color: var(--f2m-navy); font: inherit; font-weight: 700; cursor: pointer; }
@media (max-width: 1080px) {
	.f2m-burger { display: inline-flex; }
	.f2m-header__inner { min-height: 72px; flex-wrap: wrap; }
	.f2m-logo { height: 44px; }
	.f2m-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 8px; padding: 8px 0 24px; }
	.f2m-nav.is-open { display: flex; }
	.f2m-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.f2m-menu > li { border-bottom: 1px solid var(--f2m-line); }
	.f2m-menu a { padding: 6px 0; }
	.f2m-menu .sub-menu { display: block; position: static; box-shadow: none; border: 0; padding: 0 0 8px 16px; min-width: 0; }
	.f2m-menu .menu-item-has-children > a::after { display: none; }
	.f2m-nav__cta { margin-top: 12px; }
	.f2m-hide-sm { display: none; }
	.admin-bar .f2m-header { top: 0; position: relative; }
}

/* ---------- Footer ---------- */
.f2m-footer { background: var(--f2m-navy); color: #D5E2F3; padding: 72px 0 32px; font-size: 1.0625rem; }
.f2m-footer a { color: #D5E2F3; }
.f2m-footer a:hover { color: #fff; }
.f2m-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.f2m-footer__logo { display: inline-block; background: #fff; border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.f2m-footer__logo .f2m-logo { height: 48px; }
.f2m-footer__h { color: #fff; font-size: 1.125rem; margin: 0 0 12px; }
.f2m-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.f2m-footer address { font-style: normal; line-height: 1.8; }
.f2m-social { margin-top: 12px !important; display: flex !important; gap: 16px !important; }
.f2m-footer__legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid #2A4870; margin-top: 48px; padding-top: 24px; font-size: 0.9375rem; }
.f2m-footer__links { display: flex; gap: 20px; }
@media (max-width: 800px) { .f2m-footer__grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Sections (used by the page patterns) ---------- */
.f2m-section { padding-top: var(--f2m-section) !important; padding-bottom: var(--f2m-section) !important; }
.f2m-section.is-tint, .f2m-hero { background: var(--f2m-tint); }
.f2m-section.is-navy { background: var(--f2m-navy); color: #fff; position: relative; overflow: hidden; }
.f2m-section.is-navy :where(h1,h2,h3) { color: #fff; }
.f2m-section.is-navy p { color: #D5E2F3; }
.f2m-section.is-navy a { color: #fff; }
.f2m-section.is-navy::after { content: ""; position: absolute; right: -140px; top: -200px; width: 520px; height: 520px; border: 14px solid var(--f2m-amber); border-radius: 50%; opacity: .35; pointer-events: none; }
.f2m-section.is-navy > * { position: relative; z-index: 1; }
.f2m-section.is-bordered { border-bottom: 1px solid var(--f2m-line); }
.f2m-eyebrow { font-weight: 700; font-size: 1rem !important; letter-spacing: .04em; text-transform: uppercase; color: var(--f2m-blue); display: flex; align-items: center; gap: 10px; margin-bottom: 0 !important; }
.f2m-eyebrow::before { content: ""; width: 32px; height: 4px; border-radius: 4px; background: var(--f2m-amber); flex-shrink: 0; }
.is-navy .f2m-eyebrow { color: var(--f2m-amber); }
.f2m-lead { font-size: 1.3125rem; color: var(--f2m-muted); max-width: 62ch; }
.f2m-narrow { max-width: 760px; }
.f2m-center { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.f2m-note { font-size: 1rem; color: var(--f2m-muted); }

/* Hero */
.f2m-hero { padding-top: clamp(40px, 7vw, 88px) !important; padding-bottom: clamp(48px, 8vw, 96px) !important; overflow: hidden; }
.f2m-hero .wp-block-columns { align-items: center; gap: clamp(32px, 5vw, 64px); }
.f2m-hero h1 { margin-top: 16px; }
.f2m-hero-img { position: relative; margin: 0; }
.f2m-hero-img::before { content: ""; position: absolute; left: -24px; right: -24px; top: -28px; height: 55%; border: 14px solid var(--f2m-amber); border-bottom: 0; border-radius: 999px 999px 0 0; z-index: 0; }
.f2m-hero-img img { position: relative; z-index: 1; border-radius: 28px; aspect-ratio: 4 / 3.4; object-fit: cover; width: 100%; margin-top: 32px; }
.f2m-page-hero { padding-top: clamp(40px, 6vw, 80px) !important; padding-bottom: clamp(40px, 6vw, 80px) !important; background: var(--f2m-tint); }
.f2m-page-hero h1 { font-size: var(--wp--preset--font-size--xx-large); margin-top: 12px; }

/* Check lists */
.f2m-checks { list-style: none; padding: 0 !important; display: grid; gap: 12px 28px; }
.f2m-checks li { position: relative; padding-left: 34px; }
.f2m-checks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--f2m-blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }
.f2m-checks.is-2col { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.f2m-checks.is-inline { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 1rem; color: var(--f2m-muted); }
@media (max-width: 700px) { .f2m-checks.is-2col { grid-template-columns: 1fr; } }

/* Chips */
.f2m-chips { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 12px; font-weight: 700; }
.f2m-chips li { margin: 0; }
.f2m-chips a, .f2m-chips li:not(:has(a)) { display: inline-block; padding: 10px 20px; border-radius: 999px; background: var(--f2m-tint); border: 1.5px solid var(--f2m-light); color: var(--f2m-navy); text-decoration: none; }
.f2m-chips a:hover { border-color: var(--f2m-blue); color: var(--f2m-blue); }

/* Cards */
.f2m-cards { gap: 24px !important; }
.f2m-card { border: 1.5px solid var(--f2m-line); border-radius: var(--f2m-radius); overflow: hidden; background: #fff; height: 100%; display: flex; flex-direction: column; padding: 0 0 24px !important; }
.f2m-card > * { margin-left: 26px !important; margin-right: 26px !important; }
.f2m-card > .wp-block-image:first-child { margin: 0 0 8px !important; }
.f2m-card > .wp-block-image img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.f2m-card h3 { margin-top: 12px; }
.f2m-card p { font-size: 1.0625rem; color: var(--f2m-muted); }
.f2m-card .f2m-more { margin-top: auto !important; }
.f2m-card.is-navy { background: var(--f2m-navy); border-color: var(--f2m-navy); }
.f2m-card.is-navy :where(h3, a, strong) { color: #fff; }
.f2m-card.is-navy p { color: #D5E2F3; }
.f2m-card.is-plain { padding: 28px 0 !important; }
.f2m-card.is-plain.is-tint { background: var(--f2m-tint); border-color: var(--f2m-light); }
.f2m-cards > .wp-block-column { display: flex; flex-direction: column; }
.f2m-price { font-size: 1rem !important; }
.f2m-price strong { font-family: var(--wp--preset--font-family--display); font-size: 1.625rem; color: var(--f2m-navy); }
.f2m-more a { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.f2m-more a::after { content: "\2192"; transition: transform .15s; }
.f2m-more a:hover::after { transform: translateX(4px); }

/* Price list */
.f2m-pricelist { list-style: none; padding: 0 !important; margin: 0; }
.f2m-pricelist li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--f2m-line); }
.f2m-pricelist li strong { white-space: nowrap; font-family: var(--wp--preset--font-family--display); font-size: 1.25rem; }

/* MUV */
.f2m-muv .wp-block-column { border-top: 2px solid #3A5A86; padding-top: 24px; }
.f2m-letter { font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: clamp(5rem, 9vw, 8rem) !important; line-height: .85 !important; color: #fff !important; margin: 0 !important; }
.f2m-letter.is-amber { color: var(--f2m-amber) !important; }
.is-tint .f2m-letter, .f2m-muv.is-light .f2m-letter { color: var(--f2m-navy) !important; }
.is-tint .f2m-letter.is-amber { color: var(--f2m-blue) !important; }
.is-tint .f2m-muv .wp-block-column { border-top-color: var(--f2m-light); }

/* Steps */
.f2m-steps .wp-block-column { text-align: center; }
.f2m-step-num { width: 72px; height: 72px; border-radius: 50%; background: var(--f2m-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.875rem !important; margin: 0 auto 8px !important; }
.f2m-steps .wp-block-column:last-child .f2m-step-num { background: var(--f2m-amber); color: var(--f2m-navy); }

/* About */
.f2m-about { background: var(--f2m-tint); border-radius: 32px; padding: clamp(28px, 5vw, 64px) !important; }
.f2m-about .wp-block-columns { align-items: center; gap: clamp(28px, 5vw, 56px); }
.f2m-portrait { position: relative; margin: 0; }
.f2m-portrait::before { content: ""; position: absolute; left: -16px; top: -16px; width: 120px; height: 120px; border-radius: 50%; background: var(--f2m-amber); }
.f2m-portrait img { position: relative; border-radius: 24px; width: 100%; aspect-ratio: 1 / 1.05; object-fit: cover; }

/* Gallery */
.f2m-gallery { gap: 20px !important; }
.f2m-gallery .wp-block-image { margin: 0; }
.f2m-gallery img { border-radius: var(--f2m-radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }

/* CTA */
.f2m-cta { background: var(--f2m-blue); color: #fff; border-radius: 32px; padding: clamp(32px, 6vw, 72px) !important; position: relative; overflow: hidden; }
.f2m-cta::after { content: ""; position: absolute; left: 55%; bottom: -260px; width: 520px; height: 520px; border: 14px solid var(--f2m-amber); border-radius: 50%; opacity: .5; pointer-events: none; }
.f2m-cta > * { position: relative; z-index: 1; }
.f2m-cta h2 { color: #fff; }
.f2m-cta p { color: #E6EEF9; }
.f2m-cta .wp-block-button__link { background: #fff; color: var(--f2m-navy); }
.f2m-cta .wp-block-button__link:hover { background: var(--f2m-navy); color: #fff; }
.f2m-cta .is-style-outline .wp-block-button__link { background: transparent; color: #fff; border: 2px solid #fff; }

/* Outline buttons */
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--f2m-navy); border: 2px solid var(--f2m-navy); padding-top: calc(1rem - 2px); padding-bottom: calc(1rem - 2px); }
.wp-block-button.is-style-outline .wp-block-button__link:hover { background: var(--f2m-navy); color: #fff; }

/* FAQ */
.f2m-faq .wp-block-details { border: 1.5px solid var(--f2m-line); border-radius: 16px; padding: 4px 24px; margin-block-start: 12px; }
.f2m-faq summary { font-weight: 700; font-size: 1.125rem; padding: 14px 0; cursor: pointer; min-height: 44px; }
.f2m-faq .wp-block-details[open] { background: var(--f2m-tint); }

/* Contact */
.f2m-contact-box { background: var(--f2m-tint); border-radius: var(--f2m-radius); padding: 32px !important; }
.f2m-embed { border: 2px dashed var(--f2m-light); border-radius: var(--f2m-radius); padding: 32px; text-align: center; color: var(--f2m-muted); }

/* Plain content (legal pages, blog) */
.f2m-plain { padding-top: var(--f2m-section); padding-bottom: var(--f2m-section); }
.f2m-404 { text-align: center; padding: 40px 0; }

/* Columns stack a bit earlier than core default for readability */
@media (max-width: 900px) {
	.f2m-stack-md.wp-block-columns { flex-wrap: wrap !important; }
	.f2m-stack-md.wp-block-columns > .wp-block-column { flex-basis: 100% !important; }
}
@media (min-width: 782px) and (max-width: 1100px) {
	.f2m-cards.is-4 { flex-wrap: wrap !important; }
	.f2m-cards.is-4 > .wp-block-column { flex-basis: calc(50% - 12px) !important; flex-grow: 0; }
}
