h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--wp--preset--color--brand); outline-offset: 3px; }
.wp-site-blocks > *, main > * { margin-block-start: 0 !important; }
a { text-underline-offset: 0.2em; }

/* Header */
.bl-header { padding-block: 0.9rem; background: #fff; border-bottom: 1px solid var(--wp--preset--color--line); }
.bl-header .wp-block-site-logo img { height: 46px; width: auto; display: block; }
.bl-header .wp-block-site-title { margin: 0; font-size: 1.25rem; font-weight: 700; line-height: 1; white-space: nowrap; }
.bl-header .wp-block-site-title a { color: inherit; text-decoration: none; }
.bl-header .wp-block-navigation { font-size: 1rem; font-weight: 500; }
.bl-header .wp-block-navigation a:hover { color: var(--wp--preset--color--brand); }
.bl-header .wp-block-button__link { font-size: 0.9375rem; padding: 0.6rem 1.1rem; white-space: nowrap; }

/* Hero */
.bl-hero { display: grid; background: var(--wp--preset--color--mist); }
.bl-hero > * { margin: 0 !important; min-width: 0; }
.bl-hero-copy { padding: clamp(3rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 3rem); align-self: center; }
.bl-hero-copy > * { max-width: 34rem; }
.bl-hero-copy p { color: var(--wp--preset--color--slate); }
.bl-hero-copy .wp-block-buttons { margin-top: 2rem; }
.bl-hero-photo img { display: block; width: 100%; height: 100%; min-height: 16rem; max-height: 22rem; object-fit: cover; }
@media (min-width: 900px) {
	.bl-hero { grid-template-columns: 1fr 1fr; }
	.bl-hero-copy { padding-left: max(clamp(1.25rem, 4vw, 3rem), 100% - 38rem); }
	.bl-hero-photo { position: relative; }
	.bl-hero-photo img { position: absolute; inset: 0; max-height: none; }
}

/* Facts */
.bl-facts { background: var(--wp--preset--color--ink); color: #fff; padding-block: 2.25rem; }
.bl-facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem 3rem; }
.bl-facts-grid > * { margin: 0 !important; }
.bl-facts-grid p { margin: 0; }
.bl-facts-grid .has-small-font-size { color: #c3d0e2; }

/* Sections */
.bl-section { padding-block: var(--wp--preset--spacing--80); }
.bl-mist { background: var(--wp--preset--color--mist); }
.bl-section p { color: var(--wp--preset--color--slate); }
.bl-page-title { background: var(--wp--preset--color--ink); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.bl-page-title h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
@media (min-width: 782px) {
	.bl-section .wp-block-columns { column-gap: 4rem; }
}
.bl-about-photo img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 6px; }

/* Services */
.bl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(19rem, 100%), 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
.bl-card { margin: 0 !important; padding: 2rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; }
.bl-card p { font-size: 1rem; margin-bottom: 0; }
.bl-icon { display: block; width: 34px; height: 34px; fill: none; stroke: var(--wp--preset--color--brand); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* Clients */
.bl-clients { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(min(9.5rem, 40%), 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
.bl-clients > * { margin: 0 !important; display: grid; place-items: center; padding: 0.75rem; background: #fff; border: 1px solid var(--wp--preset--color--line); border-radius: 6px; }
.bl-clients img { width: 100%; height: auto; }

/* Posts */
.bl-posts .wp-block-post-template { gap: 2rem; margin-top: 2.5rem; }
.bl-posts .wp-block-post-featured-image img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: 6px; }
.bl-posts .wp-block-post-title { margin-top: 1rem; }
.bl-posts .wp-block-post-title a { color: inherit; text-decoration: none; }
.bl-posts .wp-block-post-title a:hover { color: var(--wp--preset--color--brand); text-decoration: underline; }
.wp-block-post-date { color: var(--wp--preset--color--slate); font-size: 0.9375rem; }

/* Call to action and footer */
.bl-cta { background: var(--wp--preset--color--brand); color: #fff; padding-block: clamp(2.5rem, 5vw, 4rem); }
.bl-cta .wp-block-button__link { background: #fff; color: var(--wp--preset--color--ink); }
.bl-cta .wp-block-button__link:hover { background: var(--wp--preset--color--ink); color: #fff; }
.bl-cta :focus-visible, .bl-footer :focus-visible { outline-color: #fff; }
.bl-footer { background: var(--wp--preset--color--ink); color: #fff; padding-block: 3.5rem; }
.bl-footer a { color: #fff; }
.bl-footer p { color: #c3d0e2; }
.bl-footer h2 { font-size: 1rem; }
.bl-footer .wp-block-site-title { font-weight: 700; font-size: 1.25rem; color: #fff; }
.bl-footer .wp-block-site-title a { text-decoration: none; }

/* Contact Form 7 */
.wpcf7-form label { display: block; font-weight: 500; color: var(--wp--preset--color--ink); }
.wpcf7-form :is(input:not([type="submit"], [type="checkbox"], [type="radio"], [type="hidden"]), select, textarea) {
	box-sizing: border-box; width: 100%; margin-top: 0.35rem; padding: 0.7rem 0.85rem; font: inherit; font-weight: 400;
	color: inherit; background: #fff; border: 1px solid #7d8da3; border-radius: 4px;
}
.wpcf7-form input[type="submit"] {
	font: inherit; font-weight: 600; padding: 0.8rem 1.6rem; border: 0; border-radius: 4px; cursor: pointer;
	background: var(--wp--preset--color--brand); color: #fff;
}
.wpcf7-form input[type="submit"]:hover { background: var(--wp--preset--color--ink); }
.wpcf7-not-valid-tip { color: #b00020; font-weight: 400; }

@media (max-width: 781px) {
	.bl-header .bl-whatsapp { display: none; }
}
@media (min-width: 1000px) {
	.bl-clients { grid-template-columns: repeat(6, 1fr); }
}
.bl-section .wp-block-column:not(:only-child) > h2:has(+ p a[href^="mailto"]), .bl-section .wp-block-column:has(a[href^="mailto"]) > h2 { font-size: var(--wp--preset--font-size--large); }

/* 2.1.0 */
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.wp-site-blocks > header { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 20; }
@media (max-width: 600px) { .wp-site-blocks > header { top: 0; } }
.bl-header .wp-block-navigation-item.current-menu-item > a { color: var(--wp--preset--color--brand); }
.bl-quiet .wp-block-button__link { background: transparent; color: var(--wp--preset--color--brand); box-shadow: inset 0 0 0 1.5px var(--wp--preset--color--brand); }
.bl-quiet .wp-block-button__link:hover { background: var(--wp--preset--color--brand); color: #fff; }
.bl-more { margin-top: 3rem; }
.bl-more ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 0.6rem 2rem; margin: 1rem 0 0; padding: 0; list-style: none; }
.bl-more li { padding-left: 1.6rem; position: relative; color: var(--wp--preset--color--slate); }
.bl-more li::before { content: ""; position: absolute; left: 0; top: 0.45em; width: 0.8em; height: 0.4em; border-left: 2px solid var(--wp--preset--color--brand); border-bottom: 2px solid var(--wp--preset--color--brand); transform: rotate(-45deg); }
.bl-posts .wp-block-post { border: 1px solid var(--wp--preset--color--line); border-radius: 6px; overflow: hidden; background: #fff; }
.bl-posts .wp-block-post > * { margin: 0.75rem 1.5rem 0; }
.bl-posts .wp-block-post > .wp-block-post-featured-image { margin: 0; }
.bl-posts .wp-block-post-featured-image img { border-radius: 0; }
.bl-posts .wp-block-post > :last-child { margin-bottom: 1.5rem; }
.bl-posts .wp-block-post > .wp-block-post-title { margin-top: 1.4rem; }
.bl-posts .wp-block-post-excerpt__excerpt { margin: 0; font-size: 1rem; }
.bl-cta p { margin-top: 0.5rem; }
.bl-page-title p { color: #c3d0e2; margin-top: 0.75rem; }
.bl-footer .has-small-font-size { line-height: 1.9; }
.bl-footer a { text-decoration: none; }
.bl-footer a:hover { text-decoration: underline; }
.single .wp-block-post-featured-image img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.bl-section .wp-block-column > h2 ~ h2 { margin-top: 2rem; }
@media (max-width: 781px) { .bl-section .wp-block-columns { row-gap: 2.5rem; } }
@media (min-width: 900px) { .bl-hero-photo { min-height: 34rem; } }
