/**
 * Steadforth: styles theme.json cannot express.
 *
 * Every value comes from a theme.json preset (--wp--preset--*) so the
 * style variations in styles/ keep working.
 *
 * Contents
 * 1. Accessibility (focus rings)
 * 2. Block style: Step tag (paragraph)
 * 3. Block style: Checklist (list)
 * 4. Block style: Icon tile (image)
 * 5. Section style tweaks
 * 6. Header
 * 7. Form fields (for form plugins)
 * 8. Contact page form layout (.steadforth-form)
 * 9. Small screens
 */

/* 1. Accessibility -------------------------------------------------------- */

:where(a, button, input, select, textarea, summary, .wp-element-button):focus-visible {
	outline: 2px solid var(--wp--preset--color--brand);
	outline-offset: 3px;
}

.is-style-section-deep :where(a, button, .wp-element-button):focus-visible {
	outline-color: var(--wp--preset--color--brand-light);
}

/* 2. Step tag: a forward block with a rounded back end and an arrow tip ---- */

.is-style-step-tag {
	box-sizing: border-box;
	width: fit-content;
	min-width: min(var(--steadforth-step-width, 220px), 100%);
	padding: 0.95em 3.25em 0.95em 1.6em;
	border-radius: 999px 0 0 999px;
	clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 50%, calc(100% - 24px) 100%, 0 100%);
	font-size: 16px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.is-style-step-tag strong {
	margin-right: 0.75em;
	font-weight: 600;
}

/* Lengthen each step so the row reads as steady growth. */
.steadforth-steps > .wp-block-column:nth-child(2) .is-style-step-tag {
	--steadforth-step-width: 270px;
}

.steadforth-steps > .wp-block-column:nth-child(3) .is-style-step-tag {
	--steadforth-step-width: 320px;
}

/* 3. Checklist ------------------------------------------------------------- */

ul.is-style-checklist {
	list-style: none;
	padding-left: 0;
}

ul.is-style-checklist > li {
	position: relative;
	padding-left: 36px;
}

ul.is-style-checklist > li + li {
	margin-top: 26px;
}

ul.is-style-checklist > li::before {
	content: "";
	position: absolute;
	top: 4px;
	left: 0;
	width: 22px;
	height: 22px;
	background-color: var(--wp--preset--color--brand);
	-webkit-mask: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
	mask: 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.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.is-style-section-deep ul.is-style-checklist > li::before {
	background-color: var(--wp--preset--color--brand-light);
}

ul.is-style-checklist > li strong {
	display: block;
	margin-bottom: 4px;
	font-size: 18px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.is-style-section-deep ul.is-style-checklist > li strong {
	color: var(--wp--preset--color--on-deep);
}

/* A tighter checklist for plain one-line items. */
ul.is-style-checklist.steadforth-checklist--compact > li + li {
	margin-top: 14px;
}

/* 4. Icon tile ------------------------------------------------------------- */

.wp-block-image.is-style-icon-tile {
	box-sizing: content-box;
	width: 28px;
	padding: 12px;
	border-radius: 8px;
	background-color: var(--wp--preset--color--tint);
}

.wp-block-image.is-style-icon-tile img {
	display: block;
	width: 28px;
	height: 28px;
}

/* 5. Section style tweaks -------------------------------------------------- */

.is-style-section-deep .is-style-eyebrow {
	color: var(--wp--preset--color--accent);
}

.is-style-section-deep .wp-block-button.is-style-outline > .wp-block-button__link {
	background-color: transparent;
	border-color: var(--wp--preset--color--line-deep);
	color: var(--wp--preset--color--on-deep);
}

/* Cards in a grid stretch to the same height and keep their footer at the bottom. */
.is-layout-grid > .is-style-card,
.is-layout-grid > .steadforth-plan {
	height: 100%;
	box-sizing: border-box;
}

.steadforth-plan > .steadforth-plan__footer {
	margin-top: auto;
}

/* Blog: category labels, post cards, single post. */
.wp-block-post-terms.is-style-eyebrow a {
	display: inline-block;
	padding-block: 4px;
	color: inherit;
	text-decoration: none;
}

.wp-block-post-terms.is-style-eyebrow a:hover {
	text-decoration: underline;
}

.steadforth-posts .wp-block-post-template.is-layout-grid > li > .steadforth-post-card {
	height: 100%;
	box-sizing: border-box;
}

.steadforth-post-card .wp-block-post-title {
	margin: 0;
}

.steadforth-post-card .wp-block-post-excerpt__excerpt {
	margin: 0;
}

/* Image runs edge to edge at the top of the card; only the text is padded. */
.steadforth-post-card,
.steadforth-case-card {
	overflow: hidden;
}

.steadforth-post-card .wp-block-post-featured-image,
.steadforth-case-card .wp-block-post-featured-image {
	margin: 0;
}

.steadforth-post-card__body {
	flex-grow: 1;
}

.steadforth-post-card .steadforth-post-card__date {
	margin-top: auto;
	padding-top: 8px;
}

.steadforth-pagination a {
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-decoration: none;
}

.steadforth-pagination a:hover {
	color: var(--wp--preset--color--brand);
}

.steadforth-pagination .page-numbers.current {
	color: var(--wp--preset--color--brand);
	font-weight: 700;
}

.steadforth-post-content > :is(h2, h3) {
	margin-top: 1.6em;
}

/* Article headings sit between page headings and body text. */
.steadforth-post-content > h2 {
	font-size: clamp(26px, 1.25rem + 1vw, 32px);
}

.steadforth-post-content > h3 {
	font-size: var(--wp--preset--font-size--large);
}

.steadforth-post-tags {
	color: var(--wp--preset--color--muted);
}

.steadforth-post-nav > * {
	flex: 1 1 260px;
	margin: 0;
}

.steadforth-post-nav .post-navigation-link-next {
	text-align: right;
}

.steadforth-post-nav a {
	color: var(--wp--preset--color--ink);
	font-weight: 600;
	text-decoration: none;
}

.steadforth-post-nav a:hover {
	color: var(--wp--preset--color--brand);
}

.steadforth-post-nav .post-navigation-link__label {
	display: block;
	margin-bottom: 4px;
	color: var(--wp--preset--color--muted);
	font-size: var(--wp--preset--font-size--small);
	font-weight: 500;
}

/* Contact details panels (Contact page and About page): plain links, underline on hover. */
.steadforth-direct-contact a {
	text-decoration: none;
}

.steadforth-direct-contact a:not(.wp-element-button) {
	display: inline-block;
	padding-block: 4px;
}

.steadforth-direct-contact a:not(.wp-element-button):hover,
.steadforth-direct-contact a:not(.wp-element-button):focus-visible {
	text-decoration: underline;
}

/* Case study cards on the listing page (query loop items). */
.steadforth-case-studies .wp-block-post-template.is-layout-grid > li > .steadforth-case-card {
	height: 100%;
	box-sizing: border-box;
}

.steadforth-case-card .wp-block-post-excerpt__more-text {
	margin-top: 18px;
}

.steadforth-case-card .wp-block-post-excerpt__more-link {
	color: var(--wp--preset--color--brand);
	font-weight: 600;
	text-decoration: none;
}

.steadforth-case-card .wp-block-post-excerpt__more-link::after {
	content: " \2192";
}

.steadforth-case-card .wp-block-post-excerpt__more-link:hover {
	text-decoration: underline;
}

/* Card titles that link somewhere look like titles until hovered. */
.is-style-card :is(h2, h3) a {
	color: inherit;
	text-decoration: none;
}

.is-style-card :is(h2, h3) a:hover {
	color: var(--wp--preset--color--brand);
	text-decoration: underline;
}

/* Section anchors land below the top edge, not flush against it. */
section[id] {
	scroll-margin-top: 24px;
}

/* FAQ accordion (core/details). */
.steadforth-faq {
	border-bottom: 1px solid var(--wp--preset--color--line);
}

.steadforth-faqs > .steadforth-faq:first-child {
	border-top: 1px solid var(--wp--preset--color--line);
}

.steadforth-faq > summary {
	position: relative;
	padding: 20px 40px 20px 0;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.4;
	list-style: none;
	cursor: pointer;
}

.steadforth-faq > summary::-webkit-details-marker {
	display: none;
}

.steadforth-faq > summary::after {
	content: "+";
	position: absolute;
	top: 50%;
	right: 4px;
	transform: translateY(-50%);
	color: var(--wp--preset--color--brand);
	font-size: 26px;
	font-weight: 400;
	line-height: 1;
}

.steadforth-faq[open] > summary::after {
	content: "\2212";
}

.steadforth-faq > summary:hover {
	color: var(--wp--preset--color--brand);
}

.steadforth-faq > :not(summary) {
	margin: 0 0 20px;
	max-width: 680px;
}

/* Header dropdown (Services). */
/* Scoped to the closed state so the card look does not leak into the mobile overlay. */
.steadforth-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container {
	min-width: 240px;
	padding: 8px 0;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 8px;
	background-color: var(--wp--preset--color--card);
	box-shadow: 0 12px 32px rgb(15 42 61 / 10%);
}

.steadforth-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	margin: 0 6px;
	padding: 10px 12px;
	border-radius: 6px;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.steadforth-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover,
.steadforth-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible {
	background-color: var(--wp--preset--color--tint);
	color: var(--wp--preset--color--brand);
	text-decoration: none;
}

/* Pill badges and the contact page's numbered circles. */
.is-style-pill {
	width: fit-content;
}

.is-style-pill.steadforth-step-number {
	display: flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
}

/* Contact links with an icon: email and phone. */
.steadforth-contact-links p {
	margin: 0;
}

.steadforth-contact-links a {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	color: var(--wp--preset--color--ink);
	font-weight: 500;
	text-decoration: none;
}

.steadforth-contact-links a:hover {
	color: var(--wp--preset--color--brand);
	text-decoration: underline;
}

.steadforth-contact-links a::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: var(--wp--preset--color--brand);
	-webkit-mask: var(--steadforth-icon) center / contain no-repeat;
	mask: var(--steadforth-icon) center / contain no-repeat;
}

.steadforth-contact-links__email a {
	--steadforth-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M3.5 6.5l8.5 6 8.5-6'/%3E%3C/svg%3E");
}

.steadforth-contact-links__phone a {
	--steadforth-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 4h3.5l1.5 4.5-2.2 1.4a11 11 0 0 0 6.3 6.3l1.4-2.2L20 15.5V19a1.5 1.5 0 0 1-1.6 1.5A16.5 16.5 0 0 1 3.5 5.6 1.5 1.5 0 0 1 5 4z'/%3E%3C/svg%3E");
}

/* WhatsApp button on the contact page: Font Awesome Free WhatsApp icon (CC BY 4.0) before the label. */
.steadforth-whatsapp-button .wp-block-button__link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.steadforth-whatsapp-button .wp-block-button__link::before {
	content: "";
	flex: none;
	width: 20px;
	height: 20px;
	background-color: currentColor;
	-webkit-mask: url("../images/icons/whatsapp.svg") center / contain no-repeat;
	mask: url("../images/icons/whatsapp.svg") center / contain no-repeat;
}

/* 6. Header and footer ------------------------------------------------------ */

.steadforth-brand {
	flex-shrink: 0;
}

.steadforth-footer a:where(:not(.wp-element-button)) {
	text-decoration: none;
}

.steadforth-footer a:where(:not(.wp-element-button)):hover {
	text-decoration: underline;
}

/* Taller tap target for the logo text, without moving it. */
.wp-block-site-title a {
	display: inline-block;
	padding-block: 6px;
	margin-block: -6px;
}

/* Touch-sized footer links on tablets (phones get more below). */
@media (max-width: 1024px) {
	.steadforth-footer p a {
		display: inline-block;
		padding-block: 4px;
	}
}

.steadforth-brand .wp-block-image {
	margin: 0;
}

.steadforth-brand .wp-block-image img {
	display: block;
}

/* 7. Form fields ------------------------------------------------------------
 * The theme does not process forms (that is plugin territory). These rules
 * style the fields any form plugin outputs so they match the design.
 */

:where(.wp-site-blocks) :where(
	input[type="text"],
	input[type="email"],
	input[type="tel"],
	input[type="url"],
	input[type="number"],
	input[type="password"],
	input[type="search"],
	select,
	textarea
) {
	box-sizing: border-box;
	width: 100%;
	min-height: 52px;
	padding: 0 16px;
	border: 1px solid var(--wp--preset--color--line-strong);
	border-radius: 8px;
	background-color: var(--wp--preset--color--card);
	color: var(--wp--preset--color--ink);
	font-family: inherit;
	font-size: 16px;
}

:where(.wp-site-blocks) textarea {
	padding: 14px 16px;
	line-height: 1.55;
	resize: vertical;
}

:where(.wp-site-blocks) :where(input[type="checkbox"], input[type="radio"]) {
	width: 18px;
	height: 18px;
	accent-color: var(--wp--preset--color--brand);
}

:where(.wp-site-blocks) :where(input, select, textarea)::placeholder {
	color: var(--wp--preset--color--muted);
	opacity: 1;
}

:where(.wp-site-blocks) :where(label) {
	font-weight: 600;
}

:where(.wp-site-blocks) :where(input[type="submit"], button[type="submit"]) {
	min-height: 56px;
	padding: 0 32px;
	border: 0;
	border-radius: 8px;
	background-color: var(--wp--preset--color--brand);
	color: var(--wp--preset--color--on-brand);
	font-family: inherit;
	font-size: 18px;
	font-weight: 600;
	cursor: pointer;
}

:where(.wp-site-blocks) :where(input[type="submit"], button[type="submit"]):hover {
	background-color: var(--wp--preset--color--deep);
}

/* 8. Contact page form layout ------------------------------------------------
 * Layout for a form given the "steadforth-form" class (in Contact Form 7:
 * html_class="steadforth-form" on the shortcode). Field looks come from section 7.
 */

/* Space between top-level groups (margins, so hidden helpers add no gaps). */
.steadforth-form > * {
	margin: 0;
}

.steadforth-form > * + * {
	margin-top: 28px;
}

.steadforth-form > :is(.hidden-fields-container, .screen-reader-response) + * {
	margin-top: 0;
}

/* Contact Form 7 wraps lines in <p>; let their children join the parent layout. */
.steadforth-form p {
	display: contents;
}

.steadforth-form .wpcf7-form-control-wrap {
	display: block;
}

.steadforth-form br {
	display: none;
}

.steadforth-form__row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
}

.steadforth-form__field {
	display: flex;
	flex: 1 1 260px;
	flex-direction: column;
	gap: 8px;
	min-width: 0;
}

.steadforth-form label,
.steadforth-form legend {
	font-size: 15px;
	font-weight: 600;
	color: var(--wp--preset--color--ink);
}

.steadforth-form__req {
	color: var(--wp--preset--color--brand);
}

.steadforth-form__services {
	min-inline-size: 0;
	padding: 0;
	border: 0;
}

.steadforth-form__services legend {
	margin-bottom: 12px;
	padding: 0;
}

.steadforth-form__services legend span {
	font-weight: 400;
	color: var(--wp--preset--color--muted);
}

/* Checkboxes as pills. */
.steadforth-form__services .wpcf7-checkbox {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.steadforth-form__services .wpcf7-list-item {
	margin: 0;
}

.steadforth-form__services .wpcf7-list-item > label {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 48px;
	padding: 0 18px;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 999px;
	background-color: var(--wp--preset--color--card);
	font-size: 16px;
	font-weight: 500;
	cursor: pointer;
}

.steadforth-form__services .wpcf7-list-item > label:has(input:checked) {
	border-color: var(--wp--preset--color--brand);
	background-color: var(--wp--preset--color--tint);
}

.steadforth-form__services .wpcf7-list-item input {
	margin: 0;
}

.steadforth-form__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--line);
}

/* Google's reCAPTCHA notice (inc/contact-form.php) replaces the floating badge. */
.grecaptcha-badge {
	visibility: hidden;
}

.steadforth-recaptcha__notice {
	display: block;
	font-size: 13px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.steadforth-recaptcha__notice a {
	color: inherit;
}

.steadforth-form__privacy {
	margin-right: auto;
	max-width: 420px;
	font-size: 14px;
	line-height: 1.5;
	color: var(--wp--preset--color--muted);
}

.steadforth-form .wpcf7-spinner {
	margin: 0 0 0 12px;
}

.steadforth-form .wpcf7-not-valid-tip {
	margin-top: 6px;
	font-size: 14px;
}

.steadforth-form .wpcf7-response-output:empty {
	display: none;
}

.steadforth-form .wpcf7-response-output {
	margin: 20px 0 0 !important;
	padding: 12px 16px !important;
	border-radius: 8px;
}

/* 9. Small screens -----------------------------------------------------------
 * 599px matches the breakpoint where the navigation block collapses.
 */

/* Phone numbers never break across lines. */
a[href^="tel:"] {
	white-space: nowrap;
}

/* The menu button gets a 44px tap target without changing its look. */
.steadforth-header .wp-block-navigation__responsive-container-open {
	box-sizing: content-box;
	padding: 10px;
	margin: -10px;
}

/* Mobile menu overlay: large, left-aligned links with hairline dividers. */
.steadforth-header .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
	text-align: left;
}

/* The header menu is right-justified; inside the overlay, align left and fill. */
.steadforth-header .is-menu-open .wp-block-navigation__container.items-justified-right,
.steadforth-header .is-menu-open .wp-block-navigation__container.items-justified-right .wp-block-navigation-item {
	--navigation-layout-justification-setting: stretch;
	--navigation-layout-justify: flex-start;
}

.steadforth-header .is-menu-open .wp-block-navigation__responsive-container-content {
	align-items: stretch;
	padding-top: 48px;
}

.steadforth-header .is-menu-open .wp-block-navigation__container {
	align-items: stretch;
	gap: 0;
	width: 100%;
}

.steadforth-header .is-menu-open .wp-block-navigation-item {
	border-bottom: 1px solid var(--wp--preset--color--line);
	font-size: 24px;
	font-weight: 600;
	letter-spacing: -0.3px;
}

.steadforth-header .is-menu-open .wp-block-navigation-item__content {
	display: block;
	width: 100%;
	padding: 16px 0;
}

/* Child links: lighter and muted, hung off a hairline so they read as a group under Services. */
.steadforth-header .is-menu-open .wp-block-navigation__submenu-container {
	gap: 0 !important;
	margin: 0 0 16px 2px !important;
	padding: 0 0 0 18px !important;
	border-left: 2px solid var(--wp--preset--color--line) !important;
}

.steadforth-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
	padding: 0;
	border-bottom: 0;
	font-size: 17px;
	font-weight: 400;
	letter-spacing: 0;
}

.steadforth-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	padding: 10px 0;
	margin: 0;
	color: var(--wp--preset--color--muted);
}

.steadforth-header .is-menu-open .wp-block-navigation__submenu-container .current-menu-item > .wp-block-navigation-item__content,
.steadforth-header .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover {
	color: var(--wp--preset--color--brand);
}

/*
 * Mobile overlay: Services collapses like an accordion. Core renders a chevron
 * toggle button but hides it in the overlay and forces the submenu open.
 * Show the button on the same row as the link and hide the submenu until it
 * is expanded; assets/js/mobile-submenu.js owns aria-expanded in the overlay.
 */
.steadforth-header .is-menu-open .wp-block-navigation-item.has-child {
	flex-direction: row;
	flex-wrap: wrap;
	align-items: center;
}

.steadforth-header .is-menu-open .has-child > .wp-block-navigation-item__content {
	flex: 1;
	width: auto;
}

.steadforth-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child > .wp-block-navigation__submenu-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	margin: 0 -12px 0 0;
	padding: 0;
	color: inherit;
}

.steadforth-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon svg {
	width: 16px;
	height: 16px;
	margin: 0;
	transition: transform 0.2s ease;
}

.steadforth-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon[aria-expanded="true"] svg {
	transform: rotate(180deg);
}

.steadforth-header .is-menu-open .has-child > .wp-block-navigation__submenu-container {
	flex-basis: 100%;
}

.steadforth-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content .has-child > .wp-block-navigation__submenu-icon[aria-expanded="false"] ~ .wp-block-navigation__submenu-container {
	display: none;
}

@media (prefers-reduced-motion: reduce) {
	.steadforth-header .is-menu-open .has-child > .wp-block-navigation__submenu-icon svg {
		transition: none;
	}
}

/* Reserve the illustration's space before it loads, so text below does not jump. */
.steadforth-hero__art img {
	aspect-ratio: 560 / 440;
	width: 100%;
	height: auto;
}

/* Columns stack below 782px; show the hero illustration first, smaller. */
@media (max-width: 781px) {
	.steadforth-hero__art-col {
		order: -1;
	}

	.steadforth-hero__art {
		max-width: 360px;
	}
}

/*
 * The navigation block only collapses below 600px, but the full menu plus the
 * header button need about 900px. Keep the menu button up to 899px.
 */
@media (min-width: 600px) and (max-width: 899px) {
	.steadforth-header .wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
	}

	.steadforth-header .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
		display: none;
	}
}

@media (max-width: 599px) {
	/* The hero repeats this call to action; the header keeps logo + menu. */
	.steadforth-header .wp-block-buttons.steadforth-header__cta {
		display: none;
	}

	/* Decorative only; on phones the headline leads. */
	.steadforth-hero__art-col {
		display: none;
	}

	.steadforth-footer p a {
		display: inline-block;
		padding-block: 10px;
	}

	.steadforth-form input[type="submit"] {
		width: 100%;
	}

	/* Service options as a two-column grid of compact chips. */
	.steadforth-form__services .wpcf7-checkbox {
		display: grid;
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.steadforth-form__services .wpcf7-list-item > label {
		gap: 8px;
		height: 100%;
		box-sizing: border-box;
		padding: 8px 12px;
		border-radius: 12px;
		font-size: 15px;
		line-height: 1.25;
	}

	.steadforth-form__services .wpcf7-list-item input {
		flex: none;
	}

	.steadforth-form__privacy {
		margin-right: 0;
	}
}
