/**
 * Content styles: loaded on the front end and inside the block editor (add_editor_style).
 * Colors, fonts and sizes come from theme.json presets (--wp--preset--*).
 */

:root {
	--msd-primary: var(--wp--preset--color--primary);
	--msd-primary-dark: var(--wp--preset--color--primary-dark);
	--msd-accent: var(--wp--preset--color--accent);
	--msd-sky: var(--wp--preset--color--sky);
	--msd-light: var(--wp--preset--color--light);
	--msd-section-space: var(--wp--preset--spacing--60);

	--msd-icon-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M12 2a10 10 0 1 1 0 20 10 10 0 0 1 0-20Zm-1.2 13.6 6-6-1.4-1.4-4.6 4.6-2.2-2.2-1.4 1.4 3.6 3.6Z'/%3E%3C/svg%3E");
	--msd-icon-location: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 11 22 2l-9 19-2-8-8-2Z'/%3E%3C/svg%3E");
	--msd-icon-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M1 5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3h3.6a1 1 0 0 1 .8.4l3.4 4.5a1 1 0 0 1 .2.6V17a1 1 0 0 1-1 1h-1.1a3 3 0 0 1-5.8 0H9.9a3 3 0 0 1-5.8 0H2a1 1 0 0 1-1-1V5Zm6 14.5a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm10 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM17 10v3h3.5L18 10h-1Z'/%3E%3C/svg%3E");
	--msd-icon-money: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill-rule='evenodd' d='M1 6a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6Zm11 9.5a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7ZM4 8v2a2 2 0 0 0 2-2H4Zm16 0h-2a2 2 0 0 0 2 2V8ZM4 16h2a2 2 0 0 0-2-2v2Zm16 0v-2a2 2 0 0 0-2 2h2Z'/%3E%3C/svg%3E");
}

/* ---------------------------------------------------------------------------
 * Typography rhythm inside content
 * ------------------------------------------------------------------------ */

.entry-content > h2,
.entry-content > .wp-block-heading {
	margin-top: 1.6em;
}

.entry-content > :first-child {
	margin-top: 0;
}

.wp-block-list li + li {
	margin-top: 0.15em;
}

.has-text-align-center {
	text-align: center;
}

/* ---------------------------------------------------------------------------
 * Buttons
 * ------------------------------------------------------------------------ */

.wp-block-button.is-style-accent .wp-block-button__link,
.wp-element-button.is-accent {
	background-color: var(--msd-accent);
	color: #fff;
}

.wp-block-button.is-style-accent .wp-block-button__link:hover,
.wp-block-button.is-style-accent .wp-block-button__link:focus-visible,
.wp-element-button.is-accent:hover,
.wp-element-button.is-accent:focus-visible {
	background-color: #c2401a;
	color: #fff;
}

.wp-element-button,
.wp-block-button__link {
	display: inline-block;
	text-decoration: none;
	transition: background-color 0.15s ease;
}

.wp-element-button:focus-visible,
.wp-block-button__link:focus-visible {
	outline: 3px solid var(--msd-sky);
	outline-offset: 2px;
}

/* ---------------------------------------------------------------------------
 * Hero block
 * ------------------------------------------------------------------------ */

.msd-hero {
	position: relative;
	display: flex;
	align-items: center;
	min-height: var(--msd-hero-min, 560px);
	padding-block: var(--wp--preset--spacing--60);
	overflow: hidden;
	isolation: isolate;
	background-color: var(--msd-primary-dark);
}

.entry-content > .msd-hero:first-child {
	margin-top: 0;
}

.entry-content > .msd-hero + * {
	margin-top: var(--wp--preset--spacing--50);
}

.msd-hero__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.msd-hero__overlay {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: #000;
}

.msd-hero.has-tint-primary .msd-hero__overlay {
	background: var(--msd-primary);
}

/* White: a smooth gradient — strongest on the left behind the text, fading out to the right.
 * The block's overlay % sets the strength on the left edge. */
.msd-hero.has-tint-white .msd-hero__overlay {
	background: linear-gradient(to right, #fff 0%, rgb(255 255 255 / 0.85) 30%, rgb(255 255 255 / 0.35) 65%, rgb(255 255 255 / 0) 100%);
}

.msd-hero__inner {
	width: 100%;
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
	padding-inline: var(--wp--style--root--padding-left);
	box-sizing: content-box;
}

.msd-hero__inner > * + * {
	margin-top: 20px;
}

.msd-hero.is-light,
.msd-hero.is-light :is(h1, h2, h3, h4, p, li, label) {
	color: #fff;
}

.msd-hero.is-light :is(h1, h2) {
	text-shadow: 0 2px 16px rgb(0 0 0 / 0.25);
}

.msd-hero.is-dark {
	background-color: var(--msd-light);
}

.msd-hero h1 {
	max-width: 9.5em;
	margin: 0;
	font-family: var(--wp--preset--font-family--body);
	font-size: var(--wp--preset--font-size--huge);
	font-weight: 800;
	line-height: 1.1;
}

.msd-hero h1 + p {
	max-width: 640px;
	font-weight: 600;
	line-height: 1.85;
}

.msd-hero .wp-block-buttons {
	margin-top: 32px;
	gap: 14px;
}

.msd-hero .wp-block-columns {
	margin-top: 0;
}

/* ---------------------------------------------------------------------------
 * Section rhythm: full-width bands (hero banners, colored groups) and
 * two-column image/text rows get generous vertical space; bands that touch
 * each other (banner → reviews → testimonials) stack without white gaps.
 * ------------------------------------------------------------------------ */

.entry-content > .msd-hero:not(:first-child),
.entry-content > .wp-block-group.alignfull.has-background,
.entry-content > .wp-block-group.is-style-stats,
.entry-content > .wp-block-columns {
	margin-block: var(--wp--preset--spacing--50);
}

.entry-content > .wp-block-group.alignfull.has-background,
.entry-content > .wp-block-group.is-style-stats {
	padding-block: var(--wp--preset--spacing--50);
}

.entry-content > :is(.msd-hero, .alignfull.has-background, .is-style-stats):has(+ :is(.msd-hero, .alignfull.has-background, .is-style-stats)) {
	margin-bottom: 0;
}

.entry-content > :is(.msd-hero, .alignfull.has-background, .is-style-stats) + :is(.msd-hero, .alignfull.has-background, .is-style-stats) {
	margin-top: 0;
}

.entry-content > .wp-block-columns + .wp-block-columns {
	margin-top: 0;
}

.entry-content > .wp-block-group.is-style-stats {
	padding-block: 36px;
}

.has-primary-background-color,
.has-primary-background-color :is(h1, h2, h3, h4, p) {
	color: #fff;
}

/* ---------------------------------------------------------------------------
 * Check-mark list
 * ------------------------------------------------------------------------ */

.wp-block-list.is-style-check {
	padding-left: 0;
	list-style: none;
}

.wp-block-list.is-style-check li {
	position: relative;
	padding-left: 26px;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 17px;
	font-weight: 700;
}

.wp-block-list.is-style-check li::before {
	content: "";
	position: absolute;
	top: 0.45em;
	left: 0;
	width: 14px;
	height: 14px;
	background-color: #2392c5;
	-webkit-mask: var(--msd-icon-check) center / contain no-repeat;
	mask: var(--msd-icon-check) center / contain no-repeat;
}

/* ---------------------------------------------------------------------------
 * Stats band (core/group, style "Stats band")
 * ------------------------------------------------------------------------ */

.wp-block-group.is-style-stats {
	background-color: var(--msd-primary);
	color: #fff;
}

.wp-block-group.is-style-stats .wp-block-columns {
	align-items: center;
}

.msd-stat {
	position: relative;
	padding-left: 92px;
	min-height: 64px;
}

.msd-stat::before {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 64px;
	height: 64px;
	transform: translateY(-50%);
	background-color: #63c3ec;
	-webkit-mask: var(--msd-stat-icon, var(--msd-icon-location)) center / contain no-repeat;
	mask: var(--msd-stat-icon, var(--msd-icon-location)) center / contain no-repeat;
}

.msd-stat--truck {
	--msd-stat-icon: var(--msd-icon-truck);
}

.msd-stat--money {
	--msd-stat-icon: var(--msd-icon-money);
}

.msd-stat > * {
	margin: 0;
	color: #fff;
}

.msd-stat__number {
	font-family: var(--wp--preset--font-family--heading);
	font-size: var(--wp--preset--font-size--xx-large);
	font-weight: 700;
	line-height: 1.1;
}

.msd-stat__label {
	font-family: var(--wp--preset--font-family--heading);
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
}

/* ---------------------------------------------------------------------------
 * Accordion (core/details)
 * ------------------------------------------------------------------------ */

.wp-block-details {
	background-color: var(--msd-primary);
	color: #fff;
}

.wp-block-details + .wp-block-details {
	margin-top: 0;
}

.wp-block-details summary {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 24px;
	font-size: 18px;
	font-weight: 700;
	text-transform: uppercase;
	cursor: pointer;
	list-style: none;
}

.wp-block-details summary::-webkit-details-marker {
	display: none;
}

.wp-block-details summary::before {
	content: "";
	flex: none;
	border: 5px solid transparent;
	border-top-color: currentColor;
	border-bottom-width: 0;
	transition: transform 0.15s ease;
}

.wp-block-details[open] summary::before {
	transform: rotate(180deg);
}

.wp-block-details summary:focus-visible {
	outline: 3px solid var(--msd-sky);
	outline-offset: -3px;
}

.wp-block-details > :not(summary) {
	margin: 0;
	padding: 0 24px 16px 45px;
	color: #fff;
}

/* FAQ variant: plain questions on white background. */
.wp-block-details.is-style-faq {
	background: none;
	color: inherit;
	border-bottom: 1px solid var(--msd-light);
}

.wp-block-details.is-style-faq summary {
	padding: 14px 0;
	font-size: 16px;
	text-transform: none;
}

.wp-block-details.is-style-faq > :not(summary) {
	padding: 0 0 16px 22px;
	color: inherit;
}

/* ---------------------------------------------------------------------------
 * Reviews band, testimonials, team
 * ------------------------------------------------------------------------ */

/* Compact band: must out-rank the generic ".entry-content > .wp-block-group.alignfull.has-background" padding. */
.entry-content > .wp-block-group.alignfull.has-background.msd-reviews-band {
	padding-block: 16px;
}

.msd-reviews-band .wp-block-columns {
	align-items: center;
}

.msd-reviews-band p {
	margin: 0;
	color: #fff;
	font-weight: 700;
}

.msd-reviews-band .msd-reviews-band__title {
	font-size: 20px;
}

.msd-reviews-band .msd-reviews-band__offer {
	font-size: 20px;
	text-align: center;
}

.msd-reviews-band .wp-block-image {
	margin: 0;
}

.msd-reviews-band .wp-block-buttons,
.msd-reviews-band .wp-block-button,
.msd-reviews-band .wp-block-button__link {
	width: 100%;
	text-align: center;
}

.msd-person h3 {
	margin-top: 16px;
	text-align: center;
	font-size: 26px;
}

.msd-person h3 + p {
	text-align: center;
	font-size: 17px;
}

.msd-testimonial h3 {
	text-align: center;
	font-size: 26px;
}

.wp-block-image img {
	height: auto;
	vertical-align: middle;
}

.wp-block-image.is-cover img {
	width: 100%;
	aspect-ratio: 1;
	object-fit: cover;
}

/* ---------------------------------------------------------------------------
 * Lead form
 * ------------------------------------------------------------------------ */

.msd-lead-form {
	display: grid;
	gap: 12px;
}

.msd-lead-form__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
}

.msd-lead-form__field {
	display: grid;
	gap: 6px;
	margin: 0;
}

.msd-lead-form label {
	font-size: 16px;
	font-weight: 600;
	line-height: 1.3;
}

.msd-lead-form input,
.msd-lead-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 9px 12px;
	border: 1px solid #c9ccd6;
	border-radius: 0;
	background: #fff;
	color: #000;
	font: inherit;
	font-size: 15px;
}

.msd-lead-form input:focus-visible,
.msd-lead-form textarea:focus-visible {
	outline: 3px solid var(--msd-sky);
	outline-offset: 0;
	border-color: transparent;
}

.msd-lead-form__submit {
	width: 100%;
	border: 0;
	background-color: #e97d13;
	cursor: pointer;
	font-size: 15px;
	text-transform: none;
}

.msd-lead-form__submit:hover,
.msd-lead-form__submit:focus-visible {
	background-color: #c96806;
}

.msd-lead-form__submit:disabled {
	opacity: 0.6;
	cursor: progress;
}

.msd-lead-form__notice {
	padding: 10px 14px;
	border-left: 4px solid;
	background: #fff;
	color: #000;
	font-weight: 600;
}

.msd-lead-form__notice.is-success {
	border-color: #23c52d;
}

.msd-lead-form__notice.is-error {
	border-color: var(--msd-accent);
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.msd-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

/* ---------------------------------------------------------------------------
 * Map embed
 * ------------------------------------------------------------------------ */

.msd-map iframe {
	display: block;
	width: 100%;
	height: 420px;
	border: 0;
}

/* ---------------------------------------------------------------------------
 * Services hub: icon cards (icons: Lucide, ISC license)
 * ------------------------------------------------------------------------ */

:root {
	--msd-svc-truck: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2M15 18H9M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.62l-3.48-4.35A1 1 0 0 0 17.52 8H14'/%3E%3Ccircle cx='17' cy='18' r='2'/%3E%3Ccircle cx='7' cy='18' r='2'/%3E%3C/svg%3E");
	--msd-svc-route: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='3'/%3E%3Cpath d='M9 19h8.5a3.5 3.5 0 0 0 0-7h-11a3.5 3.5 0 0 1 0-7H15'/%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3C/svg%3E");
	--msd-svc-home: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 10 12 3l9 7v10a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1Z'/%3E%3C/svg%3E");
	--msd-svc-building: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='2' width='16' height='20' rx='2'/%3E%3Cpath d='M9 22v-4h6v4M8 6h.01M12 6h.01M16 6h.01M8 10h.01M12 10h.01M16 10h.01M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
	--msd-svc-briefcase: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='7' width='20' height='14' rx='2'/%3E%3Cpath d='M16 7V5a2 2 0 0 0-2-2h-4a2 2 0 0 0-2 2v2M2 13h20'/%3E%3C/svg%3E");
	--msd-svc-store: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9 4.5 4h15L21 9M3 9v11h18V9M3 9h18M9 20v-6h6v6'/%3E%3C/svg%3E");
	--msd-svc-box: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 8 12 3 3 8v8l9 5 9-5V8Z'/%3E%3Cpath d='m3 8 9 5 9-5M12 13v8'/%3E%3C/svg%3E");
	--msd-svc-hand: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 11V6a2 2 0 0 0-4 0M14 10V4a2 2 0 0 0-4 0v2M10 10.5V6a2 2 0 0 0-4 0v8'/%3E%3Cpath d='M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.9-6-2.3l-3.6-3.6a2 2 0 0 1 2.8-2.8L7 15'/%3E%3C/svg%3E");
	--msd-svc-heart: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 14c1.5-1.5 3-3.2 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.8 0-3 .5-4.5 2-1.5-1.5-2.7-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4 3 5.5l7 7Z'/%3E%3C/svg%3E");
	--msd-svc-sofa: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 9V6a2 2 0 0 0-2-2H6a2 2 0 0 0-2 2v3'/%3E%3Cpath d='M2 11v5a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-5a2 2 0 0 0-4 0v2H6v-2a2 2 0 0 0-4 0Z'/%3E%3Cpath d='M4 18v2M20 18v2'/%3E%3C/svg%3E");
	--msd-svc-piano: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='4' width='20' height='16' rx='2'/%3E%3Cpath d='M2 13h20M7 13v7M12 13v7M17 13v7M5.5 4v9M9.5 4v9M14.5 4v9M18.5 4v9'/%3E%3C/svg%3E");
	--msd-svc-pool: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='2' y='5' width='20' height='14' rx='2'/%3E%3Ccircle cx='9' cy='12' r='2'/%3E%3Ccircle cx='15' cy='12' r='2'/%3E%3C/svg%3E");
	--msd-svc-waves: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 7c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1M2 12c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1M2 17c.6.5 1.2 1 2.5 1 2.5 0 2.5-2 5-2 2.6 0 2.4 2 5 2 2.5 0 2.5-2 5-2 1.3 0 1.9.5 2.5 1'/%3E%3C/svg%3E");
	--msd-svc-gem: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h12l4 6-10 13L2 9Z'/%3E%3Cpath d='M2 9h20M12 22 8 9l3-6M12 22l4-13-3-6'/%3E%3C/svg%3E");
	--msd-svc-warehouse: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 8.4V20a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V8.4a2 2 0 0 1 1.3-1.9l8-3.2a2 2 0 0 1 1.4 0l8 3.2A2 2 0 0 1 22 8.4Z'/%3E%3Cpath d='M6 22V10h12v12M6 14h12M6 18h12'/%3E%3C/svg%3E");
	--msd-svc-star: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m12 2 3.1 6.3 6.9 1-5 4.9 1.2 6.8-6.2-3.2-6.2 3.2L7 14.2 2 9.3l6.9-1Z'/%3E%3C/svg%3E");
}

.msd-services-grid {
	gap: 12px 40px;
}

.msd-service-card {
	position: relative;
	padding: 18px 18px 18px 98px;
	min-height: 104px;
	border-radius: 14px;
	transition: background-color 0.15s ease;
}

.msd-service-card:hover,
.msd-service-card:focus-within {
	background-color: var(--msd-light);
}

.msd-service-card::before {
	content: "";
	position: absolute;
	top: 20px;
	left: 18px;
	width: 62px;
	height: 62px;
	border-radius: 14px;
	background: rgb(12 60 142 / 0.08);
}

.msd-service-card::after {
	content: "";
	position: absolute;
	top: 37px;
	left: 35px;
	width: 28px;
	height: 28px;
	background-color: var(--msd-primary);
	-webkit-mask: var(--msd-svc-icon, var(--msd-svc-truck)) center / contain no-repeat;
	mask: var(--msd-svc-icon, var(--msd-svc-truck)) center / contain no-repeat;
}

.msd-service-card h3 {
	margin: 0;
	font-size: 22px;
}

.msd-service-card h3 a {
	color: inherit;
	text-decoration: none;
}

/* Whole card is clickable via the title link. */
.msd-service-card h3 a::before {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 14px;
}

.msd-service-card h3 a:focus-visible::before {
	outline: 3px solid var(--msd-sky);
}

.msd-service-card p {
	margin: 6px 0 0;
	color: #4a5160;
	font-size: 15px;
	line-height: 1.55;
}

.msd-service-card--truck { --msd-svc-icon: var(--msd-svc-truck); }
.msd-service-card--route { --msd-svc-icon: var(--msd-svc-route); }
.msd-service-card--home { --msd-svc-icon: var(--msd-svc-home); }
.msd-service-card--building { --msd-svc-icon: var(--msd-svc-building); }
.msd-service-card--briefcase { --msd-svc-icon: var(--msd-svc-briefcase); }
.msd-service-card--store { --msd-svc-icon: var(--msd-svc-store); }
.msd-service-card--box { --msd-svc-icon: var(--msd-svc-box); }
.msd-service-card--hand { --msd-svc-icon: var(--msd-svc-hand); }
.msd-service-card--heart { --msd-svc-icon: var(--msd-svc-heart); }
.msd-service-card--sofa { --msd-svc-icon: var(--msd-svc-sofa); }
.msd-service-card--piano { --msd-svc-icon: var(--msd-svc-piano); }
.msd-service-card--pool { --msd-svc-icon: var(--msd-svc-pool); }
.msd-service-card--waves { --msd-svc-icon: var(--msd-svc-waves); }
.msd-service-card--gem { --msd-svc-icon: var(--msd-svc-gem); }
.msd-service-card--warehouse { --msd-svc-icon: var(--msd-svc-warehouse); }
.msd-service-card--star { --msd-svc-icon: var(--msd-svc-star); }

/* Secondary buttons on the brand-blue band: white instead of blue-on-blue. */
.has-primary-background-color .wp-block-button:not(.is-style-accent) .wp-block-button__link {
	background-color: #fff;
	color: var(--msd-primary);
}

.has-primary-background-color .wp-block-button:not(.is-style-accent) .wp-block-button__link:hover {
	background-color: var(--msd-light);
}

.has-primary-background-color a:not(.wp-element-button) {
	color: #fff;
}

/* A full-width band at the very end of the page sits directly on the footer. */
.entry-content:has(> :is(.alignfull.has-background, .msd-hero):last-child) {
	padding-bottom: 0;
}

.entry-content > :is(.alignfull.has-background, .msd-hero):last-child {
	margin-bottom: 0;
}

/* ---------------------------------------------------------------------------
 * Service pages: content from the Classic Editor (TinyMCE HTML)
 * ------------------------------------------------------------------------ */

.service-body {
	margin-block: var(--wp--preset--spacing--50);
}

.service-body::after {
	content: "";
	display: table;
	clear: both;
}

.service-body > :first-child {
	margin-top: 0;
}

.service-body h2 {
	margin: 1.6em 0 0.6em;
}

.service-body h3,
.service-body h4 {
	margin: 1.4em 0 0.5em;
}

.service-body p,
.service-body ul,
.service-body ol,
.service-body table,
.service-body blockquote {
	margin: 0 0 1em;
}

.service-body ul,
.service-body ol {
	padding-left: 1.3em;
}

.service-body img {
	max-width: 100%;
	height: auto;
}

.service-body .alignleft {
	float: left;
	margin: 0.4em 2em 1em 0;
	max-width: 50%;
}

.service-body .alignright {
	float: right;
	margin: 0.4em 0 1em 2em;
	max-width: 50%;
}

.service-body .aligncenter {
	display: block;
	margin: 1.5em auto;
}

.service-body .wp-caption {
	max-width: 100%;
}

.service-body .wp-caption img {
	display: block;
}

.service-body .wp-caption-text {
	margin: 0.5em 0 0;
	color: #4a5160;
	font-size: 13px;
	text-align: center;
}

.service-body blockquote {
	padding: 0.2em 0 0.2em 1.2em;
	border-left: 4px solid var(--msd-primary);
	font-style: italic;
}

.service-body table {
	width: 100%;
	border-collapse: collapse;
}

.service-body th,
.service-body td {
	padding: 8px 12px;
	border: 1px solid #d5d8e0;
	text-align: left;
}

@media (max-width: 600px) {
	.service-body .alignleft,
	.service-body .alignright {
		float: none;
		max-width: 100%;
		margin: 1em 0;
	}
}

/* Hero intro written in the "Top screen" box of service pages. */
.msd-hero__intro {
	max-width: 640px;
	font-weight: 600;
	line-height: 1.85;
}

.msd-hero__intro p {
	margin: 0 0 0.6em;
}

.msd-hero__intro p:last-child {
	margin-bottom: 0;
}

.msd-hero.is-light .msd-hero__intro a {
	color: #fff;
}

/* FAQ on service pages (from the "FAQ" box), rendered as Details (FAQ style).
 * One line between items: every item has only a bottom border, the block a top one. */
.service-body .msd-faq {
	margin: 1.5em 0;
	border-top: 1px solid var(--msd-light);
}

.service-body .msd-faq .wp-block-details {
	margin: 0;
}

.service-body .msd-faq .wp-block-details > :not(summary) {
	margin: 0;
}

.service-body .msd-faq .wp-block-details > :not(summary) + :not(summary) {
	padding-top: 0;
	margin-top: -4px;
}

/* ---------------------------------------------------------------------------
 * Service page sidebar (template-parts/service-sidebar.php)
 * Content on the left, sticky sidebar on the right; below the content on narrow screens.
 * ------------------------------------------------------------------------ */

.service-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 56px;
	align-items: stretch;
	margin-block: var(--wp--preset--spacing--50);
}

.service-layout > .service-body {
	margin-block: 0;
}

.service-sidebar__inner {
	position: sticky;
	/* --msd-sidebar-top is set by main.js: negative when the sidebar is taller than the window, so its bottom stays visible. */
	top: var(--msd-sidebar-top, calc(var(--wp-admin--admin-bar--height, 0px) + 24px));
	display: grid;
	gap: 20px;
}

.sidebar-box {
	padding: 22px 24px 24px;
	background: #fff;
	border: 1px solid #e3e6ee;
	border-top: 4px solid var(--msd-primary);
	box-shadow: 0 10px 30px rgb(1 44 109 / 0.08);
}

.sidebar-box__title {
	margin: 0 0 10px;
	font-size: 21px;
	line-height: 1.2;
}

.sidebar-box__text {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.6;
}

/* Contacts */
.sidebar-box--contact {
	border-top-color: var(--msd-accent);
}

.sidebar-contact__phone {
	display: flex;
	gap: 14px;
	align-items: center;
	margin-bottom: 16px;
	color: var(--msd-primary);
	text-decoration: none;
}

.sidebar-contact__phone .icon {
	flex: none;
	width: 44px;
	height: 44px;
	padding: 11px;
	border-radius: 50%;
	background: var(--msd-accent);
	color: #fff;
}

.sidebar-contact__phone strong {
	display: block;
	font-family: var(--wp--preset--font-family--heading);
	font-size: 24px;
	line-height: 1.15;
}

.sidebar-contact__phone small {
	display: block;
	color: var(--wp--preset--color--slate);
	font-size: 13px;
}

.sidebar-contact__phone:hover strong,
.sidebar-contact__phone:focus-visible strong {
	text-decoration: underline;
}

.sidebar-contact__list {
	display: grid;
	gap: 8px;
	margin: 0 0 22px;
	padding: 16px 0 0;
	border-top: 1px solid #eceef3;
	font-size: 14px;
	line-height: 1.5;
	list-style: none;
}

.sidebar-contact__list li {
	display: flex;
	gap: 10px;
	align-items: flex-start;
}

.sidebar-contact__list .icon {
	flex: none;
	width: 16px;
	height: 16px;
	margin-top: 3px;
	color: var(--msd-primary);
}

.sidebar-contact__list a {
	color: inherit;
	text-decoration: none;
	overflow-wrap: anywhere;
}

.sidebar-contact__list a:hover,
.sidebar-contact__list a:focus-visible {
	color: var(--msd-primary);
	text-decoration: underline;
}

.sidebar-box--contact .wp-block-button,
.sidebar-box--contact .wp-block-button__link {
	display: block;
	width: 100%;
	text-align: center;
}

/* Services and areas: link list with arrows, current page highlighted */
.sidebar-box__menu {
	margin: 0;
	padding: 0;
	list-style: none;
}

.sidebar-box .sidebar-box__menu li + li {
	border-top: 1px solid #eceef3;
}

.sidebar-box .sidebar-box__menu a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 6px 0;
	color: inherit;
	font-size: 15px;
	text-decoration: none;
}

.sidebar-box .sidebar-box__menu a::after {
	content: "›";
	color: var(--msd-primary);
	font-size: 20px;
	line-height: 1;
}

.sidebar-box .sidebar-box__menu a:hover,
.sidebar-box .sidebar-box__menu a:focus-visible,
.sidebar-box .current-menu-item > a {
	color: var(--msd-primary);
}

.sidebar-box .current-menu-item > a {
	font-weight: 800;
}

@media (max-width: 1024px) {
	.service-layout {
		grid-template-columns: minmax(0, 1fr) 300px;
		gap: 36px;
	}
}

/* Phones and small tablets: no sidebar, the content takes the full width. */
@media (max-width: 860px) {
	.service-layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.service-sidebar {
		display: none;
	}
}

/* FAQ section of service pages (from the "FAQ" box), after the page text. */
.service-body .msd-faq__title:first-child {
	margin-top: 0;
}

/* Hero with dark text on a photo: on phones the text covers the busy part of the photo, so lighten it. */
@media (max-width: 782px) {
	/* The text spans the whole width on phones, so the white gradient becomes even. */
	.msd-hero.has-tint-white .msd-hero__overlay {
		background: rgb(255 255 255 / 0.75);
	}

	.msd-hero.is-dark:not(.has-tint-white)::before {
		content: "";
		position: absolute;
		inset: 0;
		z-index: -1;
		background: rgb(255 255 255 / 0.6);
	}
}
