/*
 * Zenit Development 1.1 - a faithful copy of the original zenit-development.com (SiteMojo) layout,
 * with every text set in Noto Serif Display. Sizes are the old site's, measured at 1440 px.
 * Selectors start with :root so they win over WordPress's own spacing rules (and become
 * .editor-styles-wrapper in the editor, so the editor matches the site).
 */

/* ------------------------------------------------------------------ Base */
:root body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:root .wp-site-blocks > * {
	margin-block-start: 0;
}
:root .zr-main {
	margin: 0;
}

/* Every band stacks its content like the old site: centred, and margins never collapse. */
:root .zr-band {
	display: flex;
	flex-direction: column;
	align-items: center;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
}
:root .zr-band > .wp-block-spacer,
:root .zr-footer > .wp-block-spacer {
	width: 100%;
	margin: 0;
}

/* Headings, as on the old site */
:root .zr-tagline {
	margin: 40px 0;
	font-size: 26px;
	line-height: 24px;
	font-weight: 700;
	text-transform: uppercase;
	color: #1a1b1c;
	text-align: center;
}
:root .zr-h1 {
	margin: 20px 0;
	font-size: 22px;
	line-height: 45px;
	font-weight: 700;
	color: #1a1b1c;
	text-align: center;
}
:root .zr-title-band-30 > .zr-h1 {
	margin: 30px 0;
}
:root .zr-h1.zr-h1-mf {
	margin: 38px 0 20px;
}
:root .zr-h1.zr-on-dark {
	color: #fff;
}
:root .zr-title-text {
	margin: 20px 0;
	font-size: 36px;
	line-height: 36px;
	font-weight: 700;
	color: #000;
	text-align: center;
}
:root .zr-label {
	margin: 5px 0;
	font-size: 19px;
	line-height: 31px;
	font-weight: 700;
	color: #000;
}

/* Grey text bands */
:root .zr-grey-band.zr-pt1 {
	padding-top: 1px;
}
:root .zr-band-text {
	width: 92.19%;
	margin: 20px auto;
	font-size: 14.667px;
	line-height: 44px;
	color: #fff;
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}
:root .zr-grey-band-wide {
	padding: 20px 30px 9px;
}
:root .zr-grey-band-wide > .zr-band-text {
	width: 100%;
	margin: 0 0 15px;
}

/* ------------------------------------------------------------------ Header */
:root .zr-header {
	background: #fff;
	margin: 0;
	padding: 0;
}
:root .zr-header-top {
	display: flex;
	justify-content: space-evenly;
	padding: 20px 20px 20px 0;
	box-sizing: border-box;
	min-height: 146px;
	margin: 0;
}
:root .zr-header-col {
	flex: 1 1 0;
	min-width: 0;
	min-height: 86px;
	margin: 10px;
	display: flex;
	flex-direction: column;
	align-items: center;
}
:root .zr-site-title {
	margin: 20px 0 0;
	font-size: 36px;
	line-height: 36px;
	font-weight: 700;
	color: #000;
	text-align: center;
}
:root .zr-site-title a {
	color: inherit;
	text-decoration: none;
}
:root .zr-logo {
	margin: 0 0 0 140px;
	line-height: 0;
}
:root .zr-logo img {
	display: block;
	width: 94px;
	height: auto;
}
:root .zr-menu-band {
	display: flex;
	justify-content: center;
	margin: 0;
	padding: 20px 0;
}
:root nav.zr-nav {
	margin: 10px 0;
}
:root .zr-nav {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	color: #fff;
	gap: 0;
}
:root .zr-nav .wp-block-navigation__container {
	gap: 0;
}
:root .zr-nav .wp-block-navigation-item__content {
	padding: 10px;
	line-height: 36px;
	color: #fff;
	text-decoration: none;
}
:root .zr-nav .wp-block-navigation-item__content:hover,
:root .zr-nav .wp-block-navigation-item__content:focus,
:root .zr-nav .current-menu-item > .wp-block-navigation-item__content {
	color: #7b7e80;
}
:root .zr-nav .current-menu-item > .wp-block-navigation-item__content {
	font-weight: 700;
}
:root .zr-nav .wp-block-navigation__responsive-container-open,
:root .zr-nav .wp-block-navigation__responsive-container-close {
	color: #fff;
}
:root .zr-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 24px;
}
:root .zr-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 8px;
}

/* ------------------------------------------------------------------ Footer */
:root .zr-footer {
	margin: 0;
	padding: 0;
	background: #fff;
}

/* ------------------------------------------------------------------ Image bands (covers) */
:root .wp-block-cover.zr-house1,
:root .wp-block-cover.zr-floorplans,
:root .wp-block-cover.zr-media-banner {
	margin: 0;
	padding: 0;
	width: 100%;
	max-width: none;
}
:root .wp-block-cover.zr-house1 {
	min-height: 649px;
}
:root .wp-block-cover.zr-floorplans {
	min-height: 303px;
}
:root .wp-block-cover.zr-media-banner {
	min-height: 280px;
}

/* Contact band (Home and Contacts) */
:root .wp-block-cover.zr-contact-band {
	min-height: 0;
	margin: 0;
	padding: 40px 20px;
	width: 100%;
	max-width: none;
	align-items: stretch;
}
:root .zr-contact-band > .wp-block-cover__inner-container {
	display: flex;
	flex-direction: column;
	align-items: center;
}
:root .zr-contact-lead {
	margin: 20px auto;
	max-width: 800px;
	font-size: 19px;
	line-height: 31px;
	font-weight: 700;
	color: #c2c2c2;
	text-align: center;
}

/* ------------------------------------------------------------------ Home: main features */
:root .zr-mainfeatures-band {
	padding: 1px 10px 60px;
}
:root .zr-box-row {
	display: flex;
	width: 1200px;
	max-width: 100%;
	margin: 20px 0;
	padding: 0;
}
:root .zr-box {
	flex: 245 1 0;
	min-width: 0;
	min-height: 94px;
	margin: 5px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #000;
	border-radius: 10px;
}
:root .zr-box:first-child {
	flex-grow: 196;
}
:root .zr-box:last-child {
	flex-grow: 219;
}
:root .zr-box > .zr-label {
	text-align: center;
}

/* ------------------------------------------------------------------ About */
:root .zr-about-title-band {
	padding-top: 6px;
}
:root .zr-about-title-band > .zr-h1 {
	margin: 29px 0;
}
:root .wp-block-columns.zr-about-cols {
	gap: 20px;
	margin: 0;
	padding: 10px;
	min-height: 337px;
	box-sizing: border-box;
	align-items: flex-start;
}
:root .zr-about-pic {
	margin: 0 auto;
}
:root .zr-about-pic img {
	display: block;
	width: 240px;
	height: 240px;
	object-fit: cover;
}
:root .zr-about-text {
	margin: 50px 0 0;
	font-size: 14.667px;
	line-height: 30px;
	color: #000;
	text-align: justify;
	text-justify: inter-word;
	-webkit-hyphens: auto;
	hyphens: auto;
}

/* ------------------------------------------------------------------ Features */
:root .zr-featurebox-band {
	padding: 1px 20px 9px;
}
:root .wp-block-cover.zr-feature-box {
	width: 1200px;
	max-width: 100%;
	min-height: 534px;
	margin: 20px auto 16px;
	padding: 80px 20px 60px;
	box-sizing: border-box;
	border-radius: 10px;
	overflow: hidden;
	align-items: flex-start;
}
:root .zr-feat-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-content: flex-start;
	width: 1160px;
	max-width: 100%;
	margin: 0 auto;
	padding: 0 0 34px;
	box-sizing: border-box;
}
:root .zr-feat {
	display: flex;
	align-items: center;
	gap: 10px;
	width: 280px;
	height: 70px;
	margin: 10px;
	padding: 20px;
	box-sizing: border-box;
	border: 1px solid #fff;
	border-radius: 10px;
}
:root .zr-feat::before {
	content: "";
	flex: 0 0 28px;
	width: 28px;
	height: 28px;
	background-color: #fff;
	-webkit-mask: var(--zr-icon) center / contain no-repeat;
	mask: var(--zr-icon) center / contain no-repeat;
}
:root .zr-feat > .zr-label {
	margin: 0;
	color: #fff;
	text-align: left;
}
.zr-icon-building-o { --zr-icon: url(../icons/building-o.svg); }
.zr-icon-flash { --zr-icon: url(../icons/flash.svg); }
.zr-icon-refresh { --zr-icon: url(../icons/refresh.svg); }
.zr-icon-dollar { --zr-icon: url(../icons/dollar.svg); }
.zr-icon-bluetooth { --zr-icon: url(../icons/bluetooth.svg); }
.zr-icon-recycle { --zr-icon: url(../icons/recycle.svg); }
.zr-icon-photo { --zr-icon: url(../icons/photo.svg); }
.zr-icon-building { --zr-icon: url(../icons/building.svg); }
.zr-icon-plug { --zr-icon: url(../icons/plug.svg); }
.zr-icon-group { --zr-icon: url(../icons/group.svg); }

/* ------------------------------------------------------------------ Media */
:root .zr-media-title-band {
	padding: 40px 0;
}
:root .zr-media-band {
	padding: 0;
}
:root .zr-media-band > .wp-block-gallery {
	width: 100%;
	margin: 0;
}
:root .zr-models-outer {
	width: 1200px;
	max-width: 100%;
	margin: 0 auto;
	padding: 60px 20px 20px;
	box-sizing: border-box;
}
:root .zr-models-box {
	margin: 0;
	padding: 20px 10px 60px;
}
:root .zr-models-row {
	display: flex;
	align-items: stretch;
	margin: 20px 0;
}
:root .zr-model {
	flex: 364 1 0;
	min-width: 0;
	margin: 5px;
	padding: 10px;
	box-sizing: border-box;
	border: 1px solid #000;
	border-radius: 10px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}
:root .zr-model:first-child {
	flex-grow: 381;
}
:root .zr-model-name,
:root .zr-model-specs {
	font-size: 19px;
	line-height: 31px;
	font-weight: 700;
	color: #000;
	text-align: left;
}
:root .zr-model-name {
	margin: 10px 0 0;
}
:root .zr-model-specs {
	margin: 36px 0 65px;
}
:root .zr-model:last-child .zr-model-specs {
	margin-bottom: 5px;
}
:root .wp-block-video.zr-video {
	width: 100%;
	margin: 0;
}
:root .wp-block-video.zr-video:empty {
	display: none;
}
:root .wp-block-video.zr-video video {
	display: block;
	width: 100%;
	height: 315px;
	background: #000;
	object-fit: contain;
}
:root .wp-block-video.zr-video-top {
	margin-bottom: 15px;
}
:root .wp-block-video.zr-video-top video {
	height: 247px;
}
:root .zr-model:first-child .zr-video-top {
	width: 98.51%;
}
:root .zr-model:last-child .zr-video-top {
	margin-bottom: 11px;
}
:root .zr-model:last-child .zr-video-top video {
	height: 251px;
}

/* Media gallery: slideshow like the old site (built by assets/js/slideshow.js) */
.wp-block-gallery.is-style-zenit-slideshow.zr-ss-ready {
	display: block;
	position: relative;
	padding: 0;
	gap: 0;
}
.wp-block-gallery.is-style-zenit-slideshow.zr-ss-ready > figure {
	display: none;
}
.zr-ss-stage {
	position: relative;
	height: 549px;
	overflow: hidden;
	background: #7b7e80;
	cursor: zoom-in;
}
.zr-ss-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.4s ease;
}
.zr-ss-img.is-fading {
	opacity: 0;
}
.zr-ss-caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	margin: 0;
	min-height: 43px;
	padding: 10px;
	box-sizing: border-box;
	background: rgba(237, 237, 237, 0.66);
	color: #fff;
	font-size: 20px;
	line-height: 23px;
	font-weight: 400;
	text-align: center;
}
.zr-ss-caption:empty {
	display: none;
}
.zr-ss-bar {
	display: flex;
	height: 108px;
}
.zr-ss-prev,
.zr-ss-next {
	flex: 0 0 38px;
	position: relative;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.zr-ss-prev::before,
.zr-ss-next::before {
	content: "";
	position: absolute;
	left: 14px;
	top: 47px;
	width: 10px;
	height: 14px;
	background-color: #fff;
	-webkit-mask: url(../icons/chevron-left.svg) center / contain no-repeat;
	mask: url(../icons/chevron-left.svg) center / contain no-repeat;
}
.zr-ss-next::before {
	-webkit-mask-image: url(../icons/chevron-right.svg);
	mask-image: url(../icons/chevron-right.svg);
}
.zr-ss-track {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
}
.zr-ss-strip {
	display: flex;
	gap: 10px;
	padding: 5px 0;
	transition: transform 0.4s ease;
}
.zr-ss-thumb {
	flex: 0 0 208px;
	height: 98px;
	margin: 0;
	padding: 4px;
	box-sizing: border-box;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.zr-ss-thumb[aria-current="true"] {
	background: #888;
}
.zr-ss-thumb img {
	display: block;
	width: 200px;
	height: 90px;
	object-fit: cover;
}
.zr-ss-prev:focus-visible,
.zr-ss-next:focus-visible,
.zr-ss-thumb:focus-visible,
.zr-ss-stage:focus-visible {
	outline: 2px solid #fff;
	outline-offset: -4px;
}
.zr-lightbox {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	box-sizing: border-box;
	background: rgba(0, 0, 0, 0.88);
	cursor: zoom-out;
}
.zr-lightbox img {
	max-width: 100%;
	max-height: calc(100vh - 110px);
	object-fit: contain;
}
.zr-lightbox p {
	margin: 0;
	color: #fff;
	font-size: 20px;
}
.zr-lightbox button {
	position: absolute;
	top: 12px;
	right: 16px;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 36px;
	line-height: 1;
	cursor: pointer;
}
@media (prefers-reduced-motion: reduce) {
	.zr-ss-img,
	.zr-ss-strip {
		transition: none;
	}
}

/* ------------------------------------------------------------------ Contacts */
:root .zr-contact-details {
	padding: 40px 20px;
	align-items: flex-start;
}
:root .zr-contact-line {
	margin: 0 0 10.667px;
	font-size: 14.667px;
	line-height: 27px;
	color: #000;
}

/* ------------------------------------------------------------------ Contact form (old layout: labels on the left) */
#contact-form {
	width: 900px;
	max-width: 100%;
	margin: 20px auto;
	color: #fff;
}
.zen-form {
	margin: 0;
}
.zen-row {
	display: flex;
	align-items: center;
	margin: 0;
	padding: 2px 0;
}
.zen-row > label:not(.zen-check),
.zen-row > .zen-label-gap {
	flex: 0 0 89px;
	box-sizing: border-box;
	padding-right: 8px;
	font-size: 16px;
	line-height: 20px;
	color: #fff;
}
.zen-row > input,
.zen-row > textarea {
	flex: 1 1 auto;
	min-width: 0;
	height: 34px;
	margin: 0;
	padding: 6px 12px;
	box-sizing: border-box;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #555;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
}
.zen-row > textarea {
	height: 94px;
	resize: vertical;
}
.zen-row > input:focus,
.zen-row > textarea:focus {
	border-color: #66afe9;
	outline: 0;
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(102, 175, 233, 0.6);
}
.zen-req {
	color: #a94442;
}
.zen-row--check .zen-check {
	display: flex;
	align-items: center;
	gap: 5px;
	min-height: 24px;
	font-size: 16px;
	color: #fff;
	cursor: pointer;
}
.zen-row--check input {
	width: 13px;
	height: 13px;
	margin: 0;
}
.zen-row--submit {
	justify-content: flex-end;
}
.zen-submit {
	height: 34px;
	margin: 0;
	padding: 6px 12px;
	border: 1px solid #ccc;
	border-radius: 0;
	background: #fff;
	color: #333;
	font-family: inherit;
	font-size: 14px;
	line-height: 20px;
	font-weight: 400;
	cursor: pointer;
}
.zen-submit:hover,
.zen-submit:focus {
	background: #e6e6e6;
	border-color: #adadad;
}
.zen-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}
.zen-msg {
	margin: 0 0 12px;
	padding: 10px 14px;
	font-size: 16px;
	text-align: center;
	color: #fff;
	background: rgba(255, 255, 255, 0.12);
}
.zen-msg.is-error {
	background: rgba(169, 68, 66, 0.85);
}

/* ------------------------------------------------------------------ Other pages (new pages, posts, 404) */
:root .zr-page-content {
	padding: 20px 20px 40px;
	box-sizing: border-box;
}
:root .zr-page-content > * + * {
	margin-block-start: 1em;
}
:root .zr-post-date {
	margin: 0 0 20px;
}
:root .zr-404-band {
	padding: 40px 20px 60px;
}
:root .zr-404-text {
	margin: 10px 0 0;
	font-size: 16px;
}

/* ------------------------------------------------------------------ Tablets and phones */
@media (max-width: 781px) {
	:root .zr-header-top {
		min-height: 0;
		padding: 10px;
		align-items: center;
	}
	:root .zr-header-col {
		min-height: 0;
		margin: 0;
	}
	:root .zr-site-title {
		margin: 0;
		font-size: 24px;
		line-height: 28px;
	}
	:root .zr-logo {
		margin: 0;
	}
	:root .zr-logo img {
		width: 64px;
	}
	:root .zr-menu-band {
		padding: 8px 16px;
		justify-content: flex-end;
	}
	:root .zr-nav {
		margin: 0;
	}
	:root .zr-band-text {
		line-height: 30px;
	}
	:root .zr-box-row {
		flex-wrap: wrap;
	}
	:root .zr-box,
	:root .zr-box:first-child,
	:root .zr-box:last-child {
		flex: 1 1 calc(50% - 10px);
		min-height: 0;
	}
	:root .wp-block-columns.zr-about-cols {
		min-height: 0;
		padding: 10px 16px 20px;
	}
	:root .zr-about-text {
		margin-top: 10px;
	}
	:root .wp-block-cover.zr-house1 {
		min-height: 60vw !important;
	}
	:root .wp-block-cover.zr-feature-box {
		min-height: 0;
		padding: 30px 10px;
	}
	:root .zr-models-outer {
		padding: 30px 10px 10px;
	}
	:root .zr-models-row {
		flex-direction: column;
	}
	:root .zr-model,
	:root .zr-model:first-child {
		flex: none;
	}
	:root .zr-model:first-child .zr-video-top {
		width: 100%;
	}
	:root .wp-block-video.zr-video video,
	:root .wp-block-video.zr-video-top video,
	:root .zr-model:last-child .zr-video-top video {
		height: auto;
		aspect-ratio: 16 / 9;
	}
	:root .zr-model-specs {
		margin-bottom: 20px;
	}
	.zr-ss-stage {
		height: 56vw;
	}
	.zr-ss-bar {
		height: 70px;
	}
	.zr-ss-prev::before,
	.zr-ss-next::before {
		top: 28px;
	}
	.zr-ss-thumb {
		flex-basis: 118px;
		height: 62px;
	}
	.zr-ss-thumb img {
		width: 110px;
		height: 54px;
	}
	.zr-ss-caption {
		font-size: 16px;
		min-height: 0;
		padding: 6px 8px;
	}
}
@media (max-width: 600px) {
	:root .zr-tagline {
		margin: 28px 16px;
		font-size: 22px;
		line-height: 28px;
	}
	:root .zr-band-text,
	:root .zr-about-text {
		text-align: left;
		-webkit-hyphens: manual;
		hyphens: manual;
	}
	:root .zr-box,
	:root .zr-box:first-child,
	:root .zr-box:last-child {
		flex-basis: 100%;
	}
	:root .zr-feat {
		width: 100%;
		max-width: 300px;
	}
	:root .zr-title-text {
		font-size: 30px;
	}
	.zen-row {
		flex-direction: column;
		align-items: stretch;
		padding: 4px 0;
	}
	.zen-row > label:not(.zen-check),
	.zen-row > .zen-label-gap {
		flex: none;
		padding: 0 0 4px;
	}
	.zen-row > .zen-label-gap {
		display: none;
	}
	.zen-row--submit {
		align-items: flex-end;
	}
}
