/* Forty Micron — component styles (front end and editor). Colours and type come from theme.json. */

:root {
	--fm-carbon: var(--wp--preset--color--carbon);
	--fm-base: var(--wp--preset--color--basecoat);
	--fm-line: var(--wp--preset--color--line);
	--fm-clear: var(--wp--preset--color--clearcoat);
	--fm-mist: var(--wp--preset--color--mist);
	--fm-gold: var(--wp--preset--color--gold);
	--fm-gold-deep: var(--wp--preset--color--gold-deep);
	--fm-primer: var(--wp--preset--color--primer);
	--fm-ink: var(--wp--preset--color--ink);
	--fm-display: var(--wp--preset--font-family--display);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
::selection { background: var(--fm-gold); color: var(--fm-carbon); }
:where(.wp-site-blocks) :focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 3px; }
img { height: auto; }

.screen-reader-text:focus { background: var(--fm-clear); color: var(--fm-carbon); }

/* ---------- light sections ---------- */
.has-primer-background-color { --fm-text: var(--fm-ink); }
.has-primer-background-color a:where(:not(.wp-element-button)) { color: var(--fm-gold-deep); }
.has-primer-background-color .fm-muted { color: #5E5950; }
.fm-muted { color: var(--fm-mist); }

/* ---------- header ---------- */
.fm-header {
	position: sticky; top: 0; z-index: 50;
	background: var(--fm-carbon); /* solid: a backdrop-filter here would trap the mobile menu overlay inside the header */
	border-bottom: 1px solid var(--fm-line);
}
.admin-bar .fm-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .fm-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .fm-header { top: 0; } }
.fm-header .wp-block-site-logo img { width: auto; max-height: 44px; }
.fm-header .wp-block-navigation a { text-decoration: none; color: var(--fm-clear); }
.fm-header .wp-block-navigation a:hover,
.fm-header .wp-block-navigation .current-menu-item > a { color: var(--fm-gold); }
.fm-header .wp-block-navigation__responsive-container.is-menu-open { background: var(--fm-carbon) !important; color: var(--fm-clear) !important; padding: 1.5rem; }
.fm-header .wp-block-navigation__responsive-container-close, .fm-header .wp-block-navigation__responsive-container-open { color: var(--fm-clear); }
.fm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { padding-block: 0.3rem; }
.fm-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container { font-size: 1.6rem; gap: 1.1rem; }
.fm-header .fm-header__book .wp-block-button__link { padding: calc(0.6rem - 1px) calc(1.1rem - 1px); font-size: 0.98rem; }
.fm-header .fm-header__account a { color: var(--fm-clear); text-decoration: none; font-family: var(--fm-display); font-weight: 500; }
.fm-header .fm-header__account a:hover { color: var(--fm-gold); }
@media (max-width: 600px) { .fm-header .wp-block-site-logo img { max-height: 34px; } .fm-header .fm-header__account a { font-size: 0.95rem; } }

/* ---------- buttons ---------- */
/* Filled and outlined buttons share one box (2px border, same padding), so side by side they are the same height. */
.wp-block-button > .wp-block-button__link,
.wp-block-button.is-style-outline > .wp-block-button__link { box-sizing: border-box; border-width: 2px; border-style: solid; padding: calc(0.85rem - 1px) calc(1.6rem - 1px); line-height: 1.2; }
.wp-block-buttons { align-items: stretch; }
.wp-block-buttons > .wp-block-button { display: flex; }
.wp-block-buttons > .wp-block-button > .wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.wp-block-button.is-style-outline > .wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
	background: transparent; color: var(--fm-clear); border-color: var(--fm-line);
}
.wp-block-button.is-style-outline > .wp-block-button__link:hover { border-color: var(--fm-gold); color: var(--fm-gold); background: transparent; }
.has-primer-background-color .wp-block-button.is-style-outline > .wp-block-button__link { color: var(--fm-ink); border-color: #B9B5AD; }
.has-primer-background-color .wp-block-button:not(.is-style-outline) > .wp-block-button__link:hover { background: var(--fm-ink); border-color: var(--fm-ink); color: var(--fm-clear); }

/* ---------- hero: paint cross-section ---------- */
.fm-hero h1 { font-size: var(--wp--preset--font-size--display); line-height: 0.98; letter-spacing: -0.015em; max-width: 13ch; }
.fm-hero .fm-hero__lead { max-width: 46ch; font-size: var(--wp--preset--font-size--large); color: #CFC9BE; font-weight: 300; }

.fm-layers { margin: 0; font-family: var(--fm-display); }
.fm-layers__stack { display: grid; gap: 3px; }
.fm-layer { display: grid; grid-template-columns: minmax(0, 1fr) 5.5rem; align-items: center; gap: 1rem; }
.fm-layer__band { height: calc(var(--um) * 3.4px); min-height: 20px; border-radius: 1px; position: relative; overflow: hidden; }
.fm-layer__band span { position: absolute; left: 0.9rem; top: 50%; transform: translateY(-50%); font-size: 0.95rem; font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.fm-layer__um { font-size: 1.05rem; color: var(--fm-mist); text-align: right; font-variant-numeric: tabular-nums; }
.fm-layer--clear .fm-layer__band {
	background: linear-gradient(90deg, rgba(201,165,98,.95), rgba(229,205,150,.9) 55%, rgba(201,165,98,.75));
	box-shadow: 0 0 0 1px rgba(201,165,98,.6), 0 10px 40px -8px rgba(201,165,98,.45);
	color: var(--fm-carbon);
	transform-origin: left center;
	animation: fm-coat 1.6s cubic-bezier(.2,.7,.1,1) .25s both;
}
.fm-layer--clear .fm-layer__um { color: var(--fm-gold); font-weight: 600; font-size: 1.35rem; }
.fm-layer--base .fm-layer__band { background: #4A4540; color: var(--fm-clear); }
.fm-layer--primer .fm-layer__band { background: #6B665F; color: var(--fm-clear); }
.fm-layer--ecoat .fm-layer__band { background: #2A2724; color: var(--fm-mist); }
.fm-layer--steel .fm-layer__band { height: 46px; color: var(--fm-mist);
	background: repeating-linear-gradient(135deg, #1D1B19 0 6px, #24221F 6px 12px); }
.fm-layers figcaption { margin-top: 1.1rem; font-family: var(--wp--preset--font-family--body); font-size: var(--wp--preset--font-size--small); color: var(--fm-mist); max-width: 52ch; }
@keyframes fm-coat { from { transform: scaleX(0); opacity: .2; } to { transform: scaleX(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .fm-layer--clear .fm-layer__band { animation: none; } }

/* ---------- service list ---------- */
.fm-service { border-top: 1px solid var(--fm-line); padding-block: 1.8rem; }
.fm-service:last-child { border-bottom: 1px solid var(--fm-line); }
.has-primer-background-color .fm-service { border-color: #C9C5BD; }
.fm-service h3 { margin: 0; font-size: var(--wp--preset--font-size--x-large); }
.fm-service h3 a { color: inherit; text-decoration: none; }
.fm-service h3 a:hover { color: var(--fm-gold); }
.fm-service p { margin-block: 0.4rem 0; }
.fm-service .fm-service__meta { font-family: var(--fm-display); font-size: 1.05rem; color: var(--fm-mist); }
.fm-service .fm-service__meta strong { color: var(--fm-clear); font-weight: 600; }
.has-primer-background-color .fm-service .fm-service__meta strong { color: var(--fm-ink); }
.fm-service ul { margin: 0.8rem 0 0; padding-left: 1.1rem; }
.fm-service li { margin-bottom: 0.25rem; }
.fm-service li::marker { color: var(--fm-gold); }

.fm-price { font-family: var(--fm-display); font-weight: 600; color: var(--fm-gold); white-space: nowrap; }
.has-primer-background-color .fm-price { color: var(--fm-gold-deep); }
.fm-price--request { color: var(--fm-mist); font-weight: 500; }

/* ---------- process (a real sequence) ---------- */
.fm-steps { counter-reset: fm-step; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0; margin: 0; padding: 0; list-style: none; }
.fm-steps li { counter-increment: fm-step; padding: 1.4rem 1.4rem 1.6rem 0; border-top: 1px solid var(--fm-line); position: relative; }
.fm-steps li::before { content: counter(fm-step); display: block; font-family: var(--fm-display); font-size: 2.6rem; font-weight: 600; color: var(--fm-gold); line-height: 1; margin-bottom: 0.9rem; }
.fm-steps li strong { display: block; font-family: var(--fm-display); font-size: 1.3rem; font-weight: 600; margin-bottom: 0.35rem; }
.fm-steps li span { color: var(--fm-mist); font-size: 0.97rem; }
.has-primer-background-color .fm-steps li { border-color: #C9C5BD; }
.has-primer-background-color .fm-steps li span { color: #5E5950; }

/* ---------- account example ---------- */
.fm-history { background: var(--fm-carbon); color: var(--fm-clear); border-radius: 3px; padding: 1.4rem 1.5rem; font-size: 0.95rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); }
.fm-history__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--fm-line); padding-bottom: 0.8rem; margin-bottom: 0.4rem; }
.fm-history__head strong { font-family: var(--fm-display); font-size: 1.2rem; font-weight: 600; }
.fm-history__tag { font-size: 0.78rem; color: var(--fm-mist); border: 1px solid var(--fm-line); border-radius: 999px; padding: 0.1rem 0.6rem; }
.fm-history ul { list-style: none; margin: 0; padding: 0; }
.fm-history li { display: grid; grid-template-columns: 1fr auto; gap: 0.2rem 1rem; padding: 0.7rem 0; border-bottom: 1px solid #24211E; }
.fm-history li:last-child { border-bottom: 0; }
.fm-history time { color: var(--fm-mist); font-size: 0.85rem; grid-column: 1 / -1; }
.fm-due { font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.fm-due--wait { color: var(--fm-gold); }
.fm-due--ok { color: #8FBF9A; }


/* ---------- tables (coating vs film) ---------- */
.wp-block-table.fm-compare table { border-collapse: collapse; width: 100%; }
.wp-block-table.fm-compare th, .wp-block-table.fm-compare td { border: 0; border-bottom: 1px solid var(--fm-line); padding: 0.85rem 0.8rem 0.85rem 0; text-align: left; vertical-align: top; }
.wp-block-table.fm-compare thead th { font-family: var(--fm-display); font-weight: 600; color: var(--fm-gold); border-bottom-color: var(--fm-gold); }
.wp-block-table.fm-compare td:first-child { color: var(--fm-mist); }
.has-primer-background-color .wp-block-table.fm-compare th, .has-primer-background-color .wp-block-table.fm-compare td { border-bottom-color: #C9C5BD; }
.has-primer-background-color .wp-block-table.fm-compare thead th { color: var(--fm-gold-deep); border-bottom-color: var(--fm-gold-deep); }
.has-primer-background-color .wp-block-table.fm-compare td:first-child { color: #5E5950; }

/* ---------- FAQ ---------- */
.wp-block-details summary { font-family: var(--fm-display); font-size: 1.25rem; font-weight: 500; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: "+"; color: var(--fm-gold); font-weight: 400; font-size: 1.5rem; line-height: 1; transition: transform .2s; }
.wp-block-details[open] summary::after { transform: rotate(45deg); }
.wp-block-details > :not(summary) { color: #CFC9BE; max-width: 68ch; }
.has-primer-background-color .wp-block-details > :not(summary) { color: #47433C; }
@media (prefers-reduced-motion: reduce) { .wp-block-details summary::after { transition: none; } }

/* ---------- contact facts ---------- */
.fm-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.7rem 1.6rem; margin: 0; }
.fm-facts dt { color: var(--fm-mist); font-family: var(--fm-display); font-weight: 500; }
.fm-facts dd { margin: 0; }
.fm-facts a { color: var(--fm-clear); }
.has-primer-background-color .fm-facts a { color: var(--fm-ink); }
@media (max-width: 520px) { .fm-facts { grid-template-columns: 1fr; gap: 0.15rem; } .fm-facts dd { margin-bottom: 0.8rem; } }

/* ---------- forms (booking, login) ---------- */
.fm-form { display: grid; gap: 1.1rem; }
.fm-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.1rem; }
.fm-form label, .fm-form legend { display: block; font-family: var(--fm-display); font-weight: 500; font-size: 1rem; margin-bottom: 0.35rem; color: var(--fm-clear); }
.fm-form label small, .fm-form legend small { color: var(--fm-mist); font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 0.85rem; margin-left: 0.3rem; }
.fm-form input[type=text], .fm-form input[type=email], .fm-form input[type=tel], .fm-form input[type=date], .fm-form input[type=password], .fm-form select, .fm-form textarea {
	width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--fm-clear);
	background: var(--fm-base); border: 1px solid var(--fm-line); border-radius: 2px; padding: 0.8rem 0.9rem; min-height: 48px;
}
.fm-form input[type=date] { color-scheme: dark; }
.fm-form textarea { min-height: 110px; resize: vertical; }
.fm-form input:focus, .fm-form select:focus, .fm-form textarea:focus { outline: 2px solid var(--fm-gold); outline-offset: 1px; border-color: var(--fm-gold); }
.fm-form fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.fm-form .fm-choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.5rem; }
.fm-form .fm-choice { display: flex; gap: 0.65rem; align-items: center; border: 1px solid var(--fm-line); border-radius: 2px; padding: 0.75rem 0.9rem; cursor: pointer; background: var(--fm-base); margin: 0; font-family: var(--wp--preset--font-family--body); font-weight: 400; }
.fm-form .fm-choice:has(input:checked) { border-color: var(--fm-gold); box-shadow: inset 3px 0 0 var(--fm-gold); }
.fm-form .fm-choice input { accent-color: var(--fm-gold); width: 1.05rem; height: 1.05rem; margin: 0; flex: none; }
.fm-form .fm-consent { display: flex; gap: 0.65rem; align-items: flex-start; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 0.92rem; color: #CFC9BE; }
.fm-form .fm-consent input { accent-color: var(--fm-gold); margin-top: 0.25rem; flex: none; }
.fm-form .fm-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fm-form button[type=submit] { justify-self: start; cursor: pointer; }
.fm-form__hint { font-size: 0.88rem; color: var(--fm-mist); margin: 0; }
.fm-notice { border-left: 3px solid var(--fm-gold); background: var(--fm-base); padding: 1rem 1.2rem; margin-bottom: 1.5rem; }
.fm-notice--error { border-left-color: #D2775A; }
.fm-notice strong { font-family: var(--fm-display); font-size: 1.15rem; display: block; margin-bottom: 0.2rem; }

/* WhatsApp link button */
.fm-wa { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--fm-display); font-weight: 600; font-size: 1.05rem; color: var(--fm-clear); text-decoration: none; border: 1px solid var(--fm-line); border-radius: 2px; padding: 0.8rem 1.3rem; }
.fm-wa:hover { border-color: #3FAF6A; color: var(--fm-clear); }
.fm-wa svg { width: 1.2rem; height: 1.2rem; fill: #3FAF6A; flex: none; }
.has-primer-background-color .fm-wa { color: var(--fm-ink); border-color: #B9B5AD; }

/* Floating WhatsApp button */
.fm-wa-float { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 60; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #1F7A47; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.fm-wa-float svg { width: 28px; height: 28px; fill: #fff; }
.fm-wa-float:hover { background: #25965A; }
.fm-wa-float:focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 3px; }

/* login form on My Account */
.fm-login form p { margin: 0 0 1rem; }
.fm-login label { display: block; font-family: var(--fm-display); font-weight: 500; margin-bottom: 0.35rem; }
.fm-login input[type=text], .fm-login input[type=password] { width: 100%; box-sizing: border-box; font: inherit; color: var(--fm-clear); background: var(--fm-base); border: 1px solid var(--fm-line); border-radius: 2px; padding: 0.8rem 0.9rem; }
.fm-login .login-remember label { display: inline-flex; gap: 0.5rem; align-items: center; font-family: var(--wp--preset--font-family--body); font-weight: 400; }
.fm-login input[type=submit] { font-family: var(--fm-display); font-weight: 600; font-size: 1.05rem; background: var(--fm-gold); color: var(--fm-carbon); border: 1px solid var(--fm-gold); border-radius: 2px; padding: 0.85rem 1.6rem; cursor: pointer; }
.fm-login input[type=submit]:hover { background: var(--fm-clear); border-color: var(--fm-clear); }

/* ---------- footer ---------- */
.fm-footer { border-top: 1px solid var(--fm-line); }
.fm-footer a { color: var(--fm-clear); text-decoration: none; }
.fm-footer a:hover { color: var(--fm-gold); }
.fm-footer .wp-block-site-logo img { width: auto; max-height: 52px; }
.fm-footer .wp-block-navigation a { color: var(--fm-clear); }

/* ---------- section rhythm: full-width sections sit edge to edge ---------- */
.wp-block-post-content > .alignfull { margin-block-start: 0; margin-block-end: 0; }
.wp-site-blocks > main, .wp-site-blocks > footer, .wp-site-blocks > .wp-block-template-part { margin-block-start: 0; }
.fm-visit { border-top: 1px solid var(--fm-line); }
.has-primer-background-color + .fm-visit, .fm-hero + .fm-visit { border-top: 0; }
/* keep reading width comfortable inside wide sections */
.wp-block-post-content > .alignfull > p,
.wp-block-post-content > .alignfull > h1,
.wp-block-post-content > .alignfull > .wp-block-list {
	max-width: 68ch;
	margin-left: max(0px, calc((100% - var(--wp--style--global--wide-size)) / 2)) !important;
	margin-right: auto !important;
}
.wp-block-post-content > .alignfull > .fm-hero__lead { max-width: 52ch; }
.wp-block-post-content > .alignfull > h1 { max-width: 18ch; }
.fm-facts { margin-top: 1.4rem; }
.fm-footer .fm-footer__more a { font-family: var(--fm-display); font-weight: 500; line-height: 2; }
.fm-footer .wp-block-navigation { font-weight: 500; }
.fm-wa { margin-top: 0.4rem; }

/* ---------- booking: signed-in customer, service notes ---------- */
.fm-booking-as { display: flex; flex-wrap: wrap; gap: .3rem .8rem; align-items: baseline; border: 1px solid var(--fm-line); border-left: 3px solid var(--fm-gold); background: var(--fm-base); padding: .9rem 1.1rem; border-radius: 2px; }
.fm-booking-as strong { font-family: var(--fm-display); font-size: 1.15rem; }
.fm-booking-as a { margin-left: auto; font-size: .9rem; }
.fm-form .fm-choice { align-items: flex-start; }
.fm-form .fm-choice input { margin-top: .2rem; }
.fm-form .fm-choice:has(input:disabled) { opacity: .6; cursor: default; }
.fm-choice__note { display: block; font-size: .8rem; color: var(--fm-mist); margin-top: .15rem; line-height: 1.35; }
.fm-choice__note.is-warn { color: var(--fm-gold); }
.fm-form .fm-soon { margin: .9rem 0 0; font-size: .95rem; }
.fm-form [hidden] { display: none !important; }

/* ---------- booking: days and places ---------- */
.fm-days { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; margin-bottom: .9rem; scrollbar-width: thin; }
.fm-day { flex: none; min-width: 84px; display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; font: inherit; color: var(--fm-clear); background: var(--fm-base); border: 1px solid var(--fm-line); border-radius: 2px; padding: .6rem .7rem; cursor: pointer; text-align: left; }
.fm-day strong { font-family: var(--fm-display); font-size: 1.1rem; font-weight: 600; }
.fm-day__dow { font-size: .8rem; color: var(--fm-mist); }
.fm-day__free { font-size: .78rem; color: var(--fm-gold); }
.fm-day:hover:not(:disabled), .fm-day.is-on { border-color: var(--fm-gold); }
.fm-day.is-on { box-shadow: inset 0 -3px 0 var(--fm-gold); }
.fm-day.is-full { opacity: .45; cursor: not-allowed; }
.fm-day.is-full .fm-day__free { color: var(--fm-mist); }
.fm-when__date { max-width: 320px; margin-bottom: .9rem; }
.fm-slots { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .5rem; }
.fm-form .fm-slot { display: flex; flex-direction: column; gap: .1rem; margin: 0; border: 1px solid var(--fm-line); border-radius: 2px; background: var(--fm-base); padding: .8rem .9rem; cursor: pointer; position: relative; }
.fm-form .fm-slot input { position: absolute; opacity: 0; pointer-events: none; }
.fm-slot strong { font-family: var(--fm-display); font-size: 1.25rem; font-weight: 600; color: var(--fm-clear); }
.fm-slot__state { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: .82rem; color: var(--fm-gold); }
.fm-slot:has(input:checked) { border-color: var(--fm-gold); box-shadow: inset 3px 0 0 var(--fm-gold); }
.fm-slot:has(input:focus-visible) { outline: 2px solid var(--fm-gold); outline-offset: 2px; }
.fm-slot.is-taken { opacity: .45; cursor: not-allowed; }
.fm-slot.is-taken strong { text-decoration: line-through; }
.fm-slot.is-taken .fm-slot__state { color: var(--fm-mist); }
#fm-slots-msg { margin-top: .6rem; color: var(--fm-clear); }

/* ---------- price list ---------- */
.fm-ptable-wrap { margin: 0.6rem 0 0; }
.fm-ptable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.fm-ptable th, .fm-ptable td { border: 0; border-bottom: 1px solid var(--fm-line); padding: 0.85rem 0 0.85rem 1rem; vertical-align: top; }
.fm-ptable th:first-child { padding-left: 0; }
.fm-ptable thead th { font-family: var(--fm-display); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--fm-mist); text-align: right; padding-top: 0; padding-bottom: 0.55rem; border-bottom-color: var(--fm-gold); }
.fm-ptable thead th:first-child { text-align: left; }
.fm-ptable__short { display: none; }
.fm-ptable tbody th { text-align: left; font-weight: 400; }
.fm-ptable__name { display: block; font-family: var(--fm-display); font-weight: 600; font-size: 1.05rem; line-height: 1.3; color: var(--fm-clear); }
.fm-ptable tbody th small { display: block; color: var(--fm-mist); font-size: 0.86rem; line-height: 1.4; margin-top: 0.2rem; max-width: 44ch; }
.fm-ptable td { text-align: right; white-space: nowrap; font-family: var(--fm-display); font-weight: 600; font-size: 1.05rem; color: var(--fm-gold); width: 7.6rem; }
.fm-ptable td small { font-weight: 500; font-size: 0.78rem; color: var(--fm-mist); }
.fm-ptable td.fm-ptable__any { width: auto; }
.fm-ptable td.fm-ptable__na { color: var(--fm-mist); }
.fm-ptable--addons td { width: 7rem; }
.has-primer-background-color .fm-ptable th, .has-primer-background-color .fm-ptable td { border-bottom-color: #C9C5BD; }
.has-primer-background-color .fm-ptable thead th { color: #5E5950; border-bottom-color: var(--fm-gold-deep); }
.has-primer-background-color .fm-ptable__name { color: var(--fm-ink); }
.has-primer-background-color .fm-ptable tbody th small, .has-primer-background-color .fm-ptable td small { color: #5E5950; }
.has-primer-background-color .fm-ptable td { color: var(--fm-gold-deep); }
.fm-price-note { font-size: 0.88rem; color: var(--fm-mist); margin-top: 0.8rem; }
.has-primer-background-color .fm-price-note { color: #5E5950; }
@media (max-width: 600px) {
	.fm-ptable th, .fm-ptable td { padding-left: 0.6rem; }
	.fm-ptable td { width: auto; font-size: 0.95rem; }
	.fm-ptable__name { font-size: 1rem; }
	.fm-ptable tbody th small { font-size: 0.8rem; }
	.fm-ptable__full { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.fm-ptable__short { display: inline; }
}
/* Phones: each option is a block, the name across the full width and the three prices under it with their size above,
   instead of a four-column table that leaves the name a few letters wide. */
@media (max-width: 600px) {
	.fm-ptable, .fm-ptable tbody { display: block; }
	.fm-ptable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.fm-ptable tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem 0.5rem; padding: 0.95rem 0; border-bottom: 1px solid var(--fm-line); }
	.fm-ptable tbody th, .fm-ptable tbody td { border: 0; padding: 0; width: auto; }
	.fm-ptable tbody th { grid-column: 1 / -1; }
	.fm-ptable tbody td { text-align: left; white-space: normal; font-size: 1rem; }
	.fm-ptable tbody td[data-size]::before { content: attr(data-size); display: block; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: 0.74rem; color: var(--fm-mist); margin-bottom: 0.1rem; }
	.fm-ptable tbody td.fm-ptable__any { grid-column: 1 / -1; }
	.fm-ptable--addons tbody tr { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
	.fm-ptable--addons tbody th { grid-column: auto; }
	.fm-ptable--addons tbody td { text-align: right; }
	.has-primer-background-color .fm-ptable tbody tr { border-bottom-color: #C9C5BD; }
	.has-primer-background-color .fm-ptable tbody td[data-size]::before { color: #5E5950; }
}

/* Price group on the Prices page: heading, time and a booking link beside the table. */
.fm-pgroup { border-top: 1px solid var(--fm-line); padding-top: var(--wp--preset--spacing--40); }
.has-primer-background-color .fm-pgroup { border-top-color: #C9C5BD; }
.fm-pgroup .fm-pgroup__meta { color: var(--fm-mist); font-size: 0.95rem; }
.has-primer-background-color .fm-pgroup .fm-pgroup__meta { color: #5E5950; }

.fm-choice__price { display: block; font-size: .8rem; color: var(--fm-gold); font-family: var(--fm-display); font-weight: 600; margin-top: .1rem; }

/* Policy list: plain statements with a short gold rule, not bullets. */
.fm-policy { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 1.1rem 2.4rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.fm-policy li { border-top: 2px solid var(--fm-gold); padding-top: 0.7rem; }
.fm-policy strong { display: block; font-family: var(--fm-display); font-size: 1.08rem; margin-bottom: 0.25rem; }
.fm-policy span { color: var(--fm-mist); }
.has-primer-background-color .fm-policy li { border-top-color: var(--fm-gold-deep); }
.has-primer-background-color .fm-policy span { color: #5E5950; }


/* =================================================================
   1.2: photo places, cover hero, cards, gallery, brands, booking
   ================================================================= */

/* Theme placeholder photos: a small label for signed-in editors so they know to replace them. */
body.logged-in .wp-block-image:has(img[src*="/assets/img/ph/"]), .editor-styles-wrapper .wp-block-image:has(img[src*="/assets/img/ph/"]) { position: relative; }
body.logged-in .wp-block-image:has(img[src*="/assets/img/ph/"])::after, .editor-styles-wrapper .wp-block-image:has(img[src*="/assets/img/ph/"])::after {
	content: "Photo place · replace in the editor"; position: absolute; left: 0.8rem; top: 0.8rem; z-index: 3;
	font: 500 0.75rem/1 var(--wp--preset--font-family--body); color: var(--fm-carbon); background: var(--fm-gold); padding: 0.4rem 0.55rem; border-radius: 2px; pointer-events: none;
}

.wp-block-image.fm-media img, .wp-block-image.fm-card__img img, .wp-block-image.fm-service__img img, .wp-block-image.fm-split__img img, .wp-block-image.fm-gallery__img img { width: 100%; height: auto; display: block; border-radius: 2px; }
.wp-block-image.fm-media, .wp-block-image.fm-card__img, .wp-block-image.fm-service__img, .wp-block-image.fm-split__img, .wp-block-image.fm-gallery__img { margin: 0; }

/* Cover hero: full-width photo, text set low on a dark fade. */
.fm-cover { position: relative; min-height: min(92svh, 920px); display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; isolation: isolate; }
.fm-cover > .wp-block-image.fm-cover__img { position: absolute !important; inset: 0; margin: 0 !important; max-width: none !important; width: 100% !important; height: 100%; z-index: -2; }
.fm-cover > .wp-block-image.fm-cover__img img { width: 100%; height: 100% !important; aspect-ratio: auto !important; object-fit: cover; }
.fm-cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,11,10,.15) 0%, rgba(12,11,10,.35) 45%, rgba(12,11,10,.92) 100%), linear-gradient(90deg, rgba(12,11,10,.7) 0%, rgba(12,11,10,0) 60%); }
.fm-cover > .fm-cover__body { width: 100%; max-width: var(--wp--style--global--wide-size, 1240px) !important; margin-inline: auto !important; box-sizing: border-box; padding-block: clamp(5rem, 14vh, 9rem) clamp(2.5rem, 6vh, 4.5rem); }
.fm-cover__body h1 { max-width: 11ch; margin-bottom: 1.2rem; }
.fm-cover__body .fm-hero__lead { max-width: 44ch; color: #DCD6CB; }
.fm-factrow { list-style: none; margin: clamp(2rem, 5vh, 3.4rem) 0 0; padding: 1.1rem 0 0; border-top: 1px solid rgba(238,234,226,.18); display: flex; flex-wrap: wrap; gap: .6rem 2.6rem; font-family: var(--fm-display); font-weight: 500; font-size: 1.02rem; color: var(--fm-clear); }
.fm-factrow li { display: flex; align-items: center; gap: .7rem; }
.fm-factrow li::before { content: ""; width: 18px; height: 2px; background: var(--fm-gold); }

/* Service cards */
.wp-block-columns.fm-cards { margin-top: var(--wp--preset--spacing--50); }
.wp-block-columns.fm-cards + .wp-block-columns.fm-cards { margin-top: var(--wp--preset--spacing--40); }
.fm-card h3 { margin: 1.1rem 0 0.4rem; font-size: 1.55rem; }
.fm-card h3 a { color: inherit; text-decoration: none; }
.fm-card h3 a:hover { color: var(--fm-gold-deep); }
.fm-card p { margin: 0; }
.fm-card .fm-card__meta { margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid #C9C5BD; font-family: var(--fm-display); font-size: 1rem; color: #5E5950; }
.fm-card .fm-card__meta strong { color: var(--fm-ink); font-weight: 600; }
.has-primer-background-color .fm-card .fm-price { color: var(--fm-gold-deep); }

/* Services page rows */
.fm-service-row .fm-service__meta { font-family: var(--fm-display); color: var(--fm-mist); margin-top: .6rem; }
.has-primer-background-color .fm-service-row .fm-service__meta { color: #5E5950; }
.fm-service-row .fm-service__meta strong { color: inherit; }
.fm-service-row ul { padding-left: 1.1rem; }
.fm-service-row li::marker { color: var(--fm-gold); }
.fm-service-row .fm-ptable-wrap { margin-block: 1.4rem 1rem; }
@media (min-width: 782px) {
	.fm-service-row .wp-block-column:has(> .fm-service__img) { position: sticky; top: 100px; align-self: flex-start; }
}

/* Split and gallery */
.fm-split__img img { aspect-ratio: 4/5; }
.fm-gallery__stack { display: flex; flex-direction: column; gap: var(--wp--preset--spacing--30); }
.fm-gallery__stack .wp-block-image { margin: 0; }
.wp-block-columns.fm-gallery { margin-top: var(--wp--preset--spacing--50); }
@media (min-width: 782px) {
	.fm-gallery > .wp-block-column:first-child .fm-gallery__img img { height: 100%; }
	.fm-gallery > .wp-block-column:first-child { display: flex; }
	.fm-gallery > .wp-block-column:first-child .wp-block-image { flex: 1; display: flex; }
	.fm-gallery > .wp-block-column:first-child .wp-block-image img { object-fit: cover; aspect-ratio: auto !important; }
}

/* Size legend (Prices) */
.fm-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem 2.4rem; margin: var(--wp--preset--spacing--50) 0 0; max-width: none; }
.fm-sizes div { border-left: 2px solid var(--fm-gold); padding-left: .9rem; }
.fm-sizes dt { font-family: var(--fm-display); font-weight: 600; font-size: 1.1rem; }
.fm-sizes dd { margin: .15rem 0 0; color: var(--fm-mist); font-size: .92rem; }

/* Brands */
.fm-brands { list-style: none; margin: 0; padding: 0; }
.fm-brands--strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--fm-line); border-left: 1px solid var(--fm-line); margin-block: var(--wp--preset--spacing--50); }
.fm-brands--strip .fm-brand { border-right: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-brands--strip .fm-brand__in { display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 1.2rem; text-decoration: none; color: var(--fm-mist); transition: color .2s, background-color .2s; }
.fm-brands--strip a.fm-brand__in:hover { color: var(--fm-clear); background: var(--fm-base); }
.fm-brand__word { font-family: var(--fm-display); font-weight: 600; font-size: 1.35rem; letter-spacing: .01em; text-align: center; line-height: 1.1; }
.fm-brand__logo { max-height: 44px; max-width: 150px; width: auto; height: auto; opacity: .82; transition: opacity .2s; }
.fm-brand__in:hover .fm-brand__logo { opacity: 1; }
.fm-brand.is-partner .fm-brand__word { color: var(--fm-gold); }
.fm-brands--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0; border-top: 1px solid var(--fm-line); border-left: 1px solid var(--fm-line); }
.fm-brands--grid .fm-brand { border-right: 1px solid var(--fm-line); border-bottom: 1px solid var(--fm-line); }
.fm-brands--grid .fm-brand__in { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1.6rem 1.4rem 1.4rem; text-decoration: none; color: var(--fm-clear); transition: background-color .2s; }
.fm-brands--grid a.fm-brand__in:hover { background: var(--fm-base); }
.fm-brands--grid .fm-brand__mark { display: flex; align-items: center; min-height: 64px; margin-bottom: .6rem; color: var(--fm-clear); }
.fm-brands--grid .fm-brand__mark .fm-brand__word { font-size: 1.7rem; text-align: left; }
.fm-brand__name { font-family: var(--fm-display); font-weight: 600; font-size: 1.05rem; }
.fm-brand__mark:has(.fm-brand__word) + .fm-brand__name { display: none; }
.fm-brand__note { color: var(--fm-mist); font-size: .9rem; }
.fm-brand-group + .fm-brand-group { margin-top: var(--wp--preset--spacing--60); }
.fm-brand-group__title { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 1.2rem; }
.fm-brand-group--partners .fm-brands--grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fm-brand-group--partners .fm-brand__mark { min-height: 96px; }
.fm-brand-group--partners .fm-brand__logo { max-height: 64px; max-width: 220px; }

/* Booking: steps, sizes, options, estimate, hand-off */
.fm-form .fm-step { border-top: 1px solid var(--fm-line); padding-top: 1.4rem; display: grid; gap: 1rem; }
.fm-form .fm-step:first-of-type { border-top: 0; padding-top: 0; }
.fm-form .fm-step > legend { display: flex; align-items: center; gap: .7rem; font-size: 1.35rem; font-weight: 600; margin-bottom: .3rem; float: left; width: 100%; }
.fm-form .fm-step > legend + * { clear: both; }
.fm-step__n { display: inline-grid; place-items: center; width: 1.9rem; height: 1.9rem; border: 1px solid var(--fm-gold); color: var(--fm-gold); border-radius: 50%; font-size: .95rem; flex: none; }
.fm-form .fm-label { display: block; font-family: var(--fm-display); font-weight: 500; font-size: 1rem; margin-bottom: .45rem; color: var(--fm-clear); }
.fm-form .fm-label small { color: var(--fm-mist); font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: .85rem; margin-left: .3rem; }
.fm-sizes-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 640px) { .fm-sizes-pick { grid-template-columns: 1fr; } }
.fm-form .fm-size { display: flex; gap: .65rem; align-items: flex-start; margin: 0; border: 1px solid var(--fm-line); border-radius: 2px; background: var(--fm-base); padding: .85rem .95rem; cursor: pointer; font-family: var(--wp--preset--font-family--body); font-weight: 400; }
.fm-form .fm-size input { accent-color: var(--fm-gold); margin-top: .2rem; flex: none; }
.fm-form .fm-size strong { display: block; font-family: var(--fm-display); font-size: 1.08rem; font-weight: 600; }
.fm-form .fm-size small { display: block; color: var(--fm-mist); font-size: .82rem; line-height: 1.35; margin-top: .15rem; }
.fm-form .fm-size:has(input:checked) { border-color: var(--fm-gold); box-shadow: inset 3px 0 0 var(--fm-gold); }
.fm-form .fm-choices { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.fm-choice-card { display: flex; flex-direction: column; border: 1px solid var(--fm-line); border-radius: 2px; background: var(--fm-base); }
.fm-choice-card:has(> .fm-choice input:checked) { border-color: var(--fm-gold); box-shadow: inset 3px 0 0 var(--fm-gold); }
.fm-choice-card:has(> .fm-choice input:disabled) { opacity: .6; }
.fm-form .fm-choice-card > .fm-choice { border: 0; background: none; box-shadow: none; padding: .85rem .95rem; }
.fm-choice__short { display: block; color: var(--fm-mist); font-size: .84rem; line-height: 1.35; margin-top: .15rem; }
.fm-form .fm-choice__price { color: var(--fm-gold); font-family: var(--fm-display); font-weight: 600; font-size: .9rem; margin-top: .25rem; }
.fm-options { display: grid; gap: .35rem; padding: 0 .95rem .95rem 2.6rem; }
.fm-form .fm-option { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: start; margin: 0; padding: .55rem .65rem; border: 1px solid var(--fm-line); border-radius: 2px; cursor: pointer; font-family: var(--wp--preset--font-family--body); font-weight: 400; }
.fm-form .fm-option input { accent-color: var(--fm-gold); margin-top: .2rem; }
.fm-form .fm-option strong { display: block; font-family: var(--fm-display); font-weight: 600; font-size: 1rem; }
.fm-form .fm-option small { display: block; color: var(--fm-mist); font-size: .8rem; line-height: 1.35; }
.fm-option__price { font-style: normal; font-family: var(--fm-display); font-weight: 600; font-size: .88rem; color: var(--fm-gold); white-space: nowrap; }
.fm-form .fm-option:has(input:checked) { border-color: var(--fm-gold); }
.fm-addons { border: 1px solid var(--fm-line); border-radius: 2px; background: var(--fm-base); }
.fm-addons summary { cursor: pointer; padding: .85rem .95rem; font-family: var(--fm-display); font-weight: 500; font-size: 1.02rem; }
.fm-addons summary small { color: var(--fm-mist); font-family: var(--wp--preset--font-family--body); font-size: .85rem; margin-left: .3rem; }
.fm-addons__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: .4rem; padding: 0 .95rem .95rem; }
.fm-form .fm-addon { display: grid; grid-template-columns: auto 1fr auto; gap: .55rem; align-items: start; margin: 0; padding: .55rem .2rem; cursor: pointer; font-family: var(--wp--preset--font-family--body); font-weight: 400; border-top: 1px solid var(--fm-line); }
.fm-form .fm-addon input { accent-color: var(--fm-gold); margin-top: .2rem; }
.fm-form .fm-addon strong { display: block; font-family: var(--fm-display); font-weight: 600; font-size: .98rem; }
.fm-form .fm-addon small { display: block; color: var(--fm-mist); font-size: .8rem; line-height: 1.35; }
.fm-form .fm-addon em { font-style: normal; font-family: var(--fm-display); font-weight: 600; font-size: .88rem; color: var(--fm-gold); white-space: nowrap; }
.fm-estimate { border: 1px solid var(--fm-gold); border-radius: 2px; padding: 1rem 1.1rem; background: linear-gradient(180deg, rgba(201,165,98,.07), rgba(201,165,98,0)); }
.fm-estimate__rows p { display: flex; justify-content: space-between; gap: 1rem; margin: 0 0 .35rem; font-size: .95rem; }
.fm-estimate__rows p span:last-child { font-family: var(--fm-display); font-weight: 600; color: var(--fm-clear); white-space: nowrap; }
.fm-estimate__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--fm-line); margin-top: .5rem; padding-top: .6rem; }
.fm-estimate__total span { font-family: var(--fm-display); font-size: 1.05rem; }
.fm-estimate__total strong { font-family: var(--fm-display); font-size: 1.5rem; color: var(--fm-gold); }
.fm-estimate__time { margin: .3rem 0 0; color: var(--fm-clear); font-size: .95rem; }
.fm-estimate__fine { margin: .4rem 0 0; color: var(--fm-mist); font-size: .82rem; }
.fm-submit { display: grid; gap: .5rem; }
.fm-sent { border: 1px solid var(--fm-gold); border-radius: 2px; padding: clamp(1.4rem, 3vw, 2.2rem); background: var(--fm-base); }
.fm-sent__kicker { color: var(--fm-gold); font-family: var(--fm-display); font-weight: 600; margin: 0 0 .3rem; }
.fm-sent__title { font-size: var(--wp--preset--font-size--x-large); margin: 0 0 .6rem; }
.fm-wa--big { font-size: 1.15rem; padding: 1rem 1.6rem; background: #1F7A47; border-color: #1F7A47; color: #fff; }
.fm-wa--big:hover { background: #239055; border-color: #239055; color: #fff; }
.fm-wa--big svg { fill: #fff; }
.fm-sent__list { display: grid; grid-template-columns: max-content 1fr; gap: .45rem 1.2rem; margin: 1.4rem 0; padding-top: 1.1rem; border-top: 1px solid var(--fm-line); }
.fm-sent__list dt { color: var(--fm-mist); font-size: .9rem; }
.fm-sent__list dd { margin: 0; }
@media (max-width: 520px) { .fm-sent__list { grid-template-columns: 1fr; } .fm-sent__list dd { margin-bottom: .5rem; } }
.fm-mini-steps { list-style: none; counter-reset: mini; margin: 0 0 var(--wp--preset--spacing--50); padding: 0; display: grid; gap: 1rem; }
.fm-mini-steps li { counter-increment: mini; display: grid; grid-template-columns: 2rem 1fr; gap: .1rem .7rem; }
.fm-mini-steps li::before { content: counter(mini); grid-row: span 2; display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border: 1px solid var(--fm-gold); border-radius: 50%; color: var(--fm-gold); font-family: var(--fm-display); font-weight: 600; font-size: .9rem; }
.fm-mini-steps strong { font-family: var(--fm-display); font-weight: 600; }
.fm-mini-steps span { color: var(--fm-mist); font-size: .92rem; }
@media (min-width: 782px) { .fm-book-aside { position: sticky; top: 100px; align-self: flex-start; } }

/* Header: seven links fit from tablet width up */
@media (max-width: 1180px) and (min-width: 600px) {
	.fm-header .wp-block-navigation { font-size: .95rem; }
	.fm-header .wp-block-navigation .wp-block-navigation__container { gap: .9rem !important; }
}

/* What's included (booking form cards, Services page) */
.fm-incl { padding: 0 .95rem .95rem 2.6rem; }
.fm-incl__head { display: block; font-family: var(--fm-display); font-weight: 600; font-size: .78rem; letter-spacing: .04em; color: var(--fm-mist); margin-bottom: .35rem; }
.fm-incl ul, ul.fm-includes { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.fm-incl li, ul.fm-includes li { position: relative; padding-left: 1.05rem; font-size: .88rem; line-height: 1.4; }
.fm-incl li::before, ul.fm-includes li::before { content: ""; position: absolute; left: 0; top: .55em; width: .42rem; height: 1px; background: var(--fm-gold); }
.fm-incl li.is-nested, ul.fm-includes li.is-nested { font-weight: 600; }
.fm-incl__soon { display: block; color: var(--fm-gold); font-size: .78rem; }
.fm-incl li.is-soon > span { color: var(--fm-mist); }
ul.fm-includes { margin: .6rem 0 1.2rem; gap: .45rem; }
ul.fm-includes li { font-size: 1rem; padding-left: 1.3rem; }
ul.fm-includes li::before { width: .6rem; }

/* Social links (contact facts, footer, [fm_social]) */
ul.fm-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem .9rem; }
ul.fm-social li { margin: 0; }
.fm-social__link { text-decoration: none; border-bottom: 1px solid var(--fm-line); padding-bottom: .05rem; }
.fm-social__link:hover, .fm-social__link:focus-visible { border-bottom-color: var(--fm-gold); color: var(--fm-gold); }

/* Brand tiles: rows always filled edge to edge (a short last row stretches instead of leaving holes). */
.fm-brands--strip, .fm-brands--grid { display: flex; flex-wrap: wrap; }
.fm-brands--strip .fm-brand { flex: 1 1 calc(100% / var(--fm-cols, 4)); min-width: 0; box-sizing: border-box; }
.fm-brands--grid .fm-brand { flex: 1 1 230px; box-sizing: border-box; }
@media (max-width: 780px) { .fm-brands--strip .fm-brand { flex-basis: 50%; } }

/* Layout fixes: size legend lines up with the heading; six price principles in two even rows. */
.is-layout-constrained > .fm-sizes { margin-left: 0 !important; margin-right: auto !important; }
.fm-policy { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .fm-policy { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fm-policy { grid-template-columns: 1fr; } }
.fm-facts + .fm-wa, .fm-facts + p .fm-wa { margin-top: 1.6rem; }
.fm-days:empty { display: none; }

/* Tick boxes and round choices in the brand colours (the browser's white boxes looked out of place on dark). */
.fm-form input[type=checkbox], .fm-form input[type=radio], .fmh-form input[type=checkbox] {
	-webkit-appearance: none; appearance: none; width: 1.1rem; height: 1.1rem; flex: none; margin: 0;
	border: 1.5px solid var(--fm-mist); background: transparent; border-radius: 3px; display: inline-grid; place-content: center; cursor: pointer;
	transition: border-color .15s, background-color .15s;
}
.fm-form input[type=radio] { border-radius: 50%; }
.fm-form input[type=checkbox]::before, .fmh-form input[type=checkbox]::before { content: ""; width: .55rem; height: .3rem; border: solid var(--fm-carbon); border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.fm-form input[type=radio]::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: var(--fm-gold); opacity: 0; }
.fm-form input[type=checkbox]:checked, .fmh-form input[type=checkbox]:checked { background: var(--fm-gold); border-color: var(--fm-gold); }
.fm-form input[type=radio]:checked { border-color: var(--fm-gold); }
.fm-form input:checked::before, .fmh-form input:checked::before { opacity: 1; }
.fm-form input[type=checkbox]:disabled, .fm-form input[type=radio]:disabled { opacity: .45; cursor: not-allowed; }
.fm-form input[type=checkbox]:focus-visible, .fm-form input[type=radio]:focus-visible, .fmh-form input[type=checkbox]:focus-visible { outline: 2px solid var(--fm-gold); outline-offset: 2px; }
.fm-form .fm-consent input, .fm-form .fm-size input, .fm-form .fm-option input, .fm-form .fm-addon input, .fm-form .fm-choice input { margin-top: .2rem; }

/* Footer links: one size for the menu and the extra links. */
.fm-footer .wp-block-navigation, .fm-footer .fm-footer__more { font-family: var(--fm-display); font-size: 1rem; font-weight: 500; }
.fm-footer .wp-block-navigation .wp-block-navigation-item { line-height: 1.6; }
.fm-footer .fm-footer__more a { line-height: 2.2; }
.fm-sent__account { border: 1px solid var(--fm-gold); padding: 1rem 1.2rem; margin: 1.2rem 0; }
.fm-sent__account p { margin: .35rem 0 0; }
.fm-sent__wa-note { font-size: .88rem; margin-top: -.4rem; }

/* ---------- closing band (above the footer, set in Forty Micron → Design and footer) ---------- */
.fm-cta-band { background: var(--fm-base); border-top: 1px solid var(--fm-line); padding: clamp(2.6rem, 6vw, 4.5rem) var(--wp--style--root--padding-right, 1.25rem) clamp(2.6rem, 6vw, 4.5rem) var(--wp--style--root--padding-left, 1.25rem); position: relative; overflow: hidden; }
.fm-cta-band__in { max-width: var(--wp--style--global--wide-size, 1240px); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.5fr) auto; gap: 1.6rem 3rem; align-items: end; }
.fm-cta-band h2 { margin: 0; font-family: var(--fm-display); font-weight: 600; font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; color: var(--fm-clear); max-width: 24ch; text-wrap: balance; }
.fm-cta-band p { margin: .9rem 0 0; color: var(--fm-mist); max-width: 56ch; }
.fm-cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; justify-content: flex-end; }
.fm-cta-band__actions > * { margin: 0 !important; }
.fm-cta-band__actions .wp-block-button__link, .fm-cta-band__actions .fm-wa { box-sizing: border-box; min-height: 3.25rem; display: inline-flex; align-items: center; justify-content: center; padding: 0 1.5rem; font-size: 1.05rem; line-height: 1.2; }
@media (max-width: 781px) { .fm-cta-band__in { grid-template-columns: 1fr; align-items: start; } .fm-cta-band__actions { justify-content: flex-start; } }
@media (max-width: 420px) { .fm-cta-band__actions > * { flex: 1 1 100%; } .fm-cta-band__actions .wp-block-button__link, .fm-cta-band__actions .fm-wa { width: 100%; justify-content: center; box-sizing: border-box; text-align: center; } }
.fm-cta-band + .fm-footer { border-top-color: var(--fm-line); }

/* ---------- footer ---------- */
.fm-foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(var(--fm-foot-cols, 3), minmax(0, 1fr)); gap: 2.4rem clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.fm-foot--1 { grid-template-columns: 1fr; }
.fm-foot--2 { --fm-foot-cols: 1; }
.fm-foot--3 { --fm-foot-cols: 2; }
.fm-foot--4 { --fm-foot-cols: 3; }
.fm-foot .custom-logo-link { display: inline-block; }
.fm-foot .custom-logo { width: 150px; max-width: 100%; height: auto; display: block; }
.fm-foot__tagline { margin: 1.1rem 0 0; color: var(--fm-mist); max-width: 34ch; font-size: .98rem; line-height: 1.55; }
.fm-foot__brand .fm-social { margin-top: 1.2rem; }
.fm-foot__h { margin: 0 0 .9rem; font-family: var(--fm-display); font-size: 1.02rem; font-weight: 600; color: var(--fm-clear); letter-spacing: .01em; text-transform: none; }
.fm-foot__h::after { content: ""; display: block; width: 22px; height: 1px; background: var(--fm-gold); margin-top: .55rem; }
.fm-foot__col p { margin: 0 0 .9rem; color: var(--fm-mist); font-size: .96rem; line-height: 1.6; }
.fm-foot__col p a { color: var(--fm-clear); }
.fm-foot__hours { white-space: normal; }
.fm-foot__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; font-size: .98rem; }
.fm-foot__list a { color: var(--fm-clear); text-decoration: none; overflow-wrap: anywhere; }
.fm-footer .fm-foot a:hover { color: var(--fm-gold); }
.fm-foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: clamp(2.2rem, 5vw, 3.4rem); padding-top: 1.3rem; border-top: 1px solid var(--fm-line); font-size: .88rem; color: var(--fm-mist); }
.fm-foot__bottom p { margin: 0; }
.fm-foot__bottom a { color: var(--fm-mist); }
.fm-foot__legal { display: inline-block; margin-left: 1rem; }
@media (max-width: 1023px) { .fm-foot { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fm-foot__brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .fm-foot { grid-template-columns: 1fr; gap: 2rem; } .fm-foot__legal { display: block; margin: .3rem 0 0; } }

/* ---------- studio: paint readings, bay, standards ---------- */
.fm-gauge { margin: 0; background: var(--fm-carbon); color: var(--fm-clear); border-radius: 3px; padding: 1.4rem 1.5rem 1.2rem; box-shadow: 0 30px 60px -30px rgba(0,0,0,.55); font-size: .95rem; }
.fm-gauge__head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; border-bottom: 1px solid var(--fm-line); padding-bottom: .8rem; margin-bottom: .3rem; }
.fm-gauge__head strong { font-family: var(--fm-display); font-size: 1.2rem; font-weight: 600; }
.fm-gauge ul { list-style: none; margin: 0; padding: 0; }
.fm-gauge li { display: grid; grid-template-columns: minmax(7.5rem, 9.5rem) 1fr 4.2rem; gap: .25rem .9rem; align-items: center; padding: .62rem 0; border-bottom: 1px solid #24211E; }
.fm-gauge li:last-child { border-bottom: 0; }
.fm-gauge i { display: block; height: 6px; background: #24211E; border-radius: 3px; overflow: hidden; }
.fm-gauge i b { display: block; height: 100%; background: var(--fm-mist); border-radius: 3px; }
.fm-gauge em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--fm-clear); }
.fm-gauge li.is-flag i b { background: var(--fm-gold); }
.fm-gauge li.is-flag em { color: var(--fm-gold); }
.fm-gauge small { grid-column: 1 / -1; color: var(--fm-gold); font-size: .84rem; line-height: 1.45; }
.fm-gauge figcaption { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--fm-line); color: var(--fm-mist); font-size: .84rem; line-height: 1.5; }
@media (max-width: 420px) { .fm-gauge { padding: 1.1rem 1rem; } .fm-gauge li { grid-template-columns: 1fr 3.8rem; } .fm-gauge i { grid-column: 1 / -1; grid-row: 2; } }

.fm-policy.fm-policy--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.8rem 3rem; }
@media (max-width: 700px) { .fm-policy.fm-policy--2 { grid-template-columns: 1fr; } }

ul.fm-never { list-style: none; margin: 0; padding: 0; counter-reset: none; }
ul.fm-never li { position: relative; padding: 1rem 0 1rem 2.4rem; border-top: 1px solid var(--fm-line); font-size: 1.06rem; line-height: 1.55; }
ul.fm-never li:last-child { border-bottom: 1px solid var(--fm-line); }
ul.fm-never li::before { content: ""; position: absolute; left: .2rem; top: 1.62rem; width: 1.1rem; height: 2px; background: var(--fm-gold); }
.has-primer-background-color ul.fm-never li { border-color: #C9C5BD; }
.has-primer-background-color ul.fm-never li::before { background: var(--fm-gold-deep); }

p.fm-more a { font-family: var(--fm-display); font-weight: 500; color: var(--fm-gold); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
p.fm-more a:hover { color: var(--fm-clear); }
.has-primer-background-color p.fm-more a { color: var(--fm-gold-deep); }
ul.fm-checks { list-style: none; padding: 0; margin: 0 0 1.4rem; }
ul.fm-checks li { position: relative; padding: .55rem 0 .55rem 1.8rem; border-bottom: 1px solid var(--fm-line); color: var(--fm-clear); }
ul.fm-checks li::before { content: ""; position: absolute; left: 0; top: 1.15rem; width: .9rem; height: 2px; background: var(--fm-gold); }
.wp-block-table.fm-guide td:first-child { width: 38%; color: inherit; font-family: var(--fm-display); font-weight: 500; font-size: 1.04rem; }
.has-primer-background-color .wp-block-table.fm-guide td:first-child { color: var(--fm-ink); }
@media (max-width: 600px) { .wp-block-table.fm-guide thead { display: none; } .wp-block-table.fm-guide tr { display: block; padding: .8rem 0; border-bottom: 1px solid #C9C5BD; } .wp-block-table.fm-guide td { display: block; border: 0 !important; padding: .1rem 0; width: auto !important; } }
.fm-history { background: var(--fm-base); border: 1px solid var(--fm-line); }
.has-primer-background-color .fm-history, .has-primer-background-color .fm-gauge { background: var(--fm-carbon); border: 0; }
@media (max-width: 560px) { nav.fm-foot__col .fm-foot__list { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } }
.wp-block-table.fm-guide td { font-size: 1rem; }
/* Section intros (heading on the left, text on the right) line up the same way on every page. */
.wp-block-columns.alignwide:has(> .wp-block-column[style*="flex-basis:40%"] + .wp-block-column[style*="flex-basis:60%"]) { column-gap: var(--wp--preset--spacing--50) !important; }
/* Descriptions inside choice cards start under the title, not 5px to the right of it. */
.fm-form label > span small, .fm-form label > span > small, .fm-form .fm-size small, .fm-form .fm-choice small, .fm-form .fm-option small { margin-left: 0; }
.fm-book-aside h3 + .fm-mini-steps, .fm-book-aside h3 + .wp-block-html + .fm-mini-steps { margin-top: 1.1rem; }
.fm-book-aside .fm-mini-steps { margin-top: 1.1rem; }
.fm-slots:empty { display: none; }
.fm-slots:empty + #fm-slots-msg { margin-top: 0; }
.fm-addons__list { column-gap: 1.6rem; row-gap: 0; }
.fm-day { min-width: 78px; }
/* Keep the floating WhatsApp button clear of the footer's last line. */
body:has(.fm-wa-float) .fm-foot__bottom { padding-bottom: 64px; }

/* ---------- alignment pass (1.5.1) ---------- */
/* Cards in one row: the price line sits on the same level in every card, whatever the text above it. */
.wp-block-column.fm-card { display: flex; flex-direction: column; }
.fm-card .fm-card__meta { margin-top: auto; }
.fm-card p:nth-last-child(2) { margin-bottom: 0.7rem; }
/* The closing band's buttons: the wrapper must not add a line box under the link. */
.fm-cta-band__actions .wp-block-button, .fm-cta-band__actions > div, .fm-cta-band__actions > p { display: flex; }
.fm-cta-band__actions .fm-wa { margin: 0; }
/* Gallery: one wide photo beside two stacked photos; the stack is 4:3 so the wide photo is not stretched into a tall one. */
.fm-gallery__stack .wp-block-image img { aspect-ratio: 4 / 3 !important; }
/* Two sections of the same shade in a row: their paddings add up, so the second starts closer. */
.wp-block-post-content > .alignfull:not(.has-ink-color):not(.fm-cover) + .alignfull:not(.has-ink-color)[style*="padding-top:var(--wp--preset--spacing--70)"],
.wp-block-post-content > .alignfull.has-ink-color + .alignfull.has-ink-color[style*="padding-top:var(--wp--preset--spacing--70)"] { padding-top: calc(var(--wp--preset--spacing--70) * 0.45) !important; }
/* Choice cards on the booking form: the price sits at the bottom of every card in a row. */
.fm-choice-card > .fm-choice { flex: 1 1 auto; }
.fm-choice-card > .fm-choice > span { display: flex; flex-direction: column; flex: 1 1 auto; align-self: stretch; }
.fm-form .fm-choice-card .fm-choice__price { margin-top: auto; padding-top: .35rem; }
/* The side column's first heading shares a baseline with the form's first step heading. */
.fm-book-aside > h3:first-child, .fm-book-aside > .wp-block-heading:first-child { font-size: 1.35rem; line-height: 34.56px; margin-top: 0; }
/* A footer with the brand and one column (the contact page): the column sits at the right, level with where the last column of a full footer starts. */
@media (min-width: 782px) { .fm-foot--2 { grid-template-columns: minmax(0, 1fr) minmax(12rem, 16rem); } }
/* Service rows: the photo stays in view beside the long list and price table. */
@media (min-width: 782px) { .fm-service-row > .wp-block-column:has(> .fm-service__img) { position: sticky; top: 96px; align-self: flex-start; } }
.fm-brands--strip .fm-brand__in { text-align: center; }
/* Date field: full width of the form on phones, like every other field. */
@media (max-width: 600px) { .fm-form input[type="date"] { width: 100%; max-width: none; } }

/* ---------- booking form (1.6.0): the car's condition, time needed, services in two columns ---------- */
.fm-form .fm-cond { display: grid; }
.fm-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(11.5rem, 1fr)); gap: .5rem; }
.fm-picks--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fm-form .fm-pick { display: flex; gap: .65rem; align-items: flex-start; margin: 0; border: 1px solid var(--fm-line); border-radius: 2px; background: var(--fm-base); padding: .75rem .9rem; cursor: pointer; font-family: var(--wp--preset--font-family--body); font-weight: 400; }
.fm-form .fm-pick input { accent-color: var(--fm-gold); margin: .2rem 0 0; flex: none; }
.fm-form .fm-pick strong { display: block; font-family: var(--fm-display); font-size: 1.02rem; font-weight: 600; line-height: 1.25; }
.fm-form .fm-pick small { display: block; color: var(--fm-mist); font-size: .8rem; line-height: 1.35; margin: .15rem 0 0; }
.fm-form .fm-pick:has(input:checked) { border-color: var(--fm-gold); box-shadow: inset 3px 0 0 var(--fm-gold); }
.fm-form .fm-pick:has(input:focus-visible) { outline: 2px solid var(--fm-gold); outline-offset: 2px; }
@media (max-width: 640px) {
	.fm-picks, .fm-picks--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fm-form .fm-pick { padding: .65rem .7rem; gap: .5rem; }
}
@media (max-width: 360px) { .fm-picks, .fm-picks--3 { grid-template-columns: 1fr; } }

/* Services: two independent columns, so a card that opens never stretches the card beside it. */
.fm-form .fm-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem 1.2rem; align-items: start; }
.fm-choices__col { display: grid; gap: .5rem; align-content: start; min-width: 0; }
.fm-choices__head { margin: 0 0 .1rem; font-family: var(--fm-display); font-weight: 500; font-size: .95rem; color: var(--fm-mist); }
.fm-form .fm-choices > .fm-choice-card { grid-column: 1 / -1; }
@media (max-width: 760px) { .fm-form .fm-choices { grid-template-columns: 1fr; } }

/* Price and time side by side: options, add-ons and the estimate. */
.fm-form .fm-option .fm-option__price, .fm-form .fm-addon em { display: grid; justify-items: end; gap: .1rem; text-align: right; font-style: normal; }
.fm-option__price b, .fm-form .fm-addon em b { font-family: var(--fm-display); font-weight: 600; font-size: .9rem; color: var(--fm-gold); white-space: nowrap; }
.fm-option__price span, .fm-form .fm-addon em span { font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: .76rem; color: var(--fm-mist); white-space: nowrap; }
.fm-estimate__rows p { display: grid; grid-template-columns: minmax(0, 1fr) auto 3.6rem; gap: 0 .9rem; align-items: baseline; }
.fm-estimate__rows p span:nth-child(2) { text-align: right; font-family: var(--fm-display); font-weight: 600; color: var(--fm-clear); white-space: nowrap; }
.fm-estimate__rows p span:last-child { text-align: right; font-family: var(--wp--preset--font-family--body); font-weight: 400; font-size: .85rem; color: var(--fm-mist); white-space: nowrap; }
.fm-estimate__total--time { border-top: 0; margin-top: .2rem; padding-top: 0; }
.fm-estimate__total--time strong { font-size: 1.15rem; color: var(--fm-clear); }
.fm-estimate__days { margin: .15rem 0 0; color: var(--fm-mist); font-size: .88rem; }
