/* Virinta Modern — styles that theme.json cannot express. */

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
::selection { background: var(--wp--preset--color--ink); color: #fff; }
img { height: auto; max-width: 100%; }
.vm-justify { text-align: justify; }
:where(.wp-block-post-content) > * + * { margin-block-start: 0; }

/* ---------- header ---------- */
.vm-site-header {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	z-index: 100;
}
@media (max-width: 600px) {
	.admin-bar .vm-site-header { top: 0; }
}
.vm-header__bar {
	min-height: 130px;
	gap: 24px;
	transition: min-height .3s ease;
}
.vm-logo img { height: 120px; width: auto; transition: height .3s ease; }
.vm-site-header.is-stuck .vm-header__bar { min-height: 90px; }
.vm-site-header.is-stuck .vm-logo img { height: 80px; }
.vm-header__menu { gap: 40px; }
.vm-header__social { margin-right: 22px; }

/* Home page: the header floats over the video and turns solid once the page scrolls. */
.home .vm-site-header { position: fixed; left: 0; right: 0; }
.home .vm-site-header .vm-header { transition: background-color .3s ease; }
.home .vm-site-header:not(.is-stuck) .vm-header { background-color: transparent !important; }

.vm-nav .wp-block-navigation__container { gap: 34px; }
.vm-nav .wp-block-navigation-item__content {
	display: inline-block;
	padding: 10px !important;
	border: 1px solid transparent;
	color: #fff;
	transition: border-color .2s ease;
}
.vm-nav .wp-block-navigation-item.current-menu-item > .wp-block-navigation-item__content,
.vm-nav .wp-block-navigation-item__content:hover,
.vm-nav .wp-block-navigation-item__content:focus {
	border-color: var(--wp--preset--color--bronze);
	color: #fff;
}
.vm-nav .wp-block-navigation__responsive-container.is-menu-open {
	padding: 60px 30px;
}
.vm-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
	gap: 18px;
}
.vm-header__social .wp-social-link a { padding: 4px; }
.vm-header__social .wp-social-link:hover { transform: none; opacity: .7; }

@media (max-width: 781px) {
	.vm-header { padding-left: 20px !important; padding-right: 20px !important; }
	.vm-header__bar { min-height: 90px; }
	.vm-header__social { margin-right: 0; }
	.vm-logo img { height: 80px; }
	.vm-site-header.is-stuck .vm-logo img { height: 64px; }
	.vm-site-header.is-stuck .vm-header__bar { min-height: 76px; }
}

/* ---------- title band ---------- */
.vm-title-area { padding: 40px 20px !important; }
.vm-title-area .wp-block-post-title,
.vm-title-area .vm-archive-title {
	font-family: var(--wp--preset--font-family--montserrat);
	font-size: 20px;
	font-weight: 400;
	font-style: normal;
	line-height: 30px;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--wp--preset--color--ink);
}
.vm-title-sep { margin: 14px auto 10px !important; }
.vm-subtitle { font-size: 14px; line-height: 28px; color: var(--wp--preset--color--ink); }
.vm-subtitle:empty { display: none; }

/* ---------- separators ---------- */
.wp-block-separator {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--sand);
	opacity: 1;
	height: 0;
	background: none;
}
.wp-block-separator.is-style-vm-small {
	width: 100px;
	max-width: 100px;
	margin-left: auto;
	margin-right: auto;
}
.wp-block-separator.is-style-vm-small.vm-sep-left { margin-left: 0; }
.wp-block-separator.vm-sep-bronze { border-top-color: var(--wp--preset--color--bronze); }
.wp-block-separator.vm-sep-white { border-top-color: #fff; }

/* ---------- buttons ---------- */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, border-color .2s ease; }
.vm-btn-icon .wp-block-button__link::after {
	content: "";
	display: inline-block;
	width: 13px;
	height: 13px;
	margin-left: 12px;
	vertical-align: -1px;
	background-color: currentColor;
	-webkit-mask: var(--vm-icon) center / contain no-repeat;
	mask: var(--vm-icon) center / contain no-repeat;
}
.vm-icon-calculator { --vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 1h10a1 1 0 0 1 1 1v12a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V2a1 1 0 0 1 1-1zm1 2v3h8V3zm0 5v2h2V8zm3 0v2h2V8zm3 0v6h2V8zM4 11v2h2v-2zm3 0v2h2v-2z'/%3E%3C/svg%3E"); }
.vm-icon-list { --vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 2h2v2H1zm4 0h10v2H5zM1 7h2v2H1zm4 0h10v2H5zm-4 5h2v2H1zm4 0h10v2H5z'/%3E%3C/svg%3E"); }
.vm-icon-picture { --vm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M1 2h14v12H1zm1.5 1.5v7.8l3.2-3.6 2.4 2.6 1.9-2 3.5 3.9V3.5zM11 5a1.3 1.3 0 1 1 0 2.6A1.3 1.3 0 0 1 11 5z'/%3E%3C/svg%3E"); }
.vm-btn-block .wp-block-button { width: 100%; }
.vm-btn-block .wp-block-button__link { width: 100%; }

/* ---------- framed cream boxes (home page) ---------- */
/* The vertical rhythm inside the boxes comes from spacer blocks, as on the old site. */
.vm-box { background: var(--wp--preset--color--linen); padding: 10px; }
.vm-box__inner { border: 1px solid var(--wp--preset--color--sand); padding: 0 15px; height: 100%; }
.wp-block-column.vm-box, .wp-block-column .vm-box { height: 100%; }
.vm-photo-panel { min-height: 535px; }
.wp-block-column > .vm-photo-panel { height: 100%; }

/* ---------- columns rhythm ---------- */
.vm-section .wp-block-columns { margin-bottom: 0; }
@media (max-width: 781px) {
	.vm-section .wp-block-columns { gap: 20px; }
	.vm-photo-panel { min-height: 320px; }
	.vm-hide-mobile { display: none !important; }
}

/* ---------- hero (video cover) ---------- */
/* Same proportions as the old slider: 800px tall on wide screens, scaled down below 1600px. */
.vm-hero { min-height: min(50vw, 800px) !important; }
/* Only the dotted pattern of the old slider lies over the clip (the cover itself has no tint). */
.vm-hero .wp-block-cover__background {
	opacity: 1 !important;
	background-color: transparent !important;
	background-image: url("../../../../uploads/2015/12/67.png");
	background-repeat: repeat;
}
.vm-hero__script {
	font-family: var(--wp--preset--font-family--great-vibes);
	font-size: 55px;
	font-style: normal;
	line-height: 1;
	color: var(--wp--preset--color--pale) !important;
	margin-bottom: 14px !important;
}
.vm-hero__title, .vm-hero__text {
	font-family: var(--wp--preset--font-family--open-sans);
	font-size: 36px;
	font-weight: 500;
	font-style: normal;
	letter-spacing: 4px;
	line-height: 1.36;
	text-transform: uppercase;
	color: #fff !important;
	/* Only top/bottom: the left/right auto margins keep the line centred in the full-width cover. */
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}
.vm-hero .wp-block-buttons { margin-top: 26px; }
.vm-hero .wp-block-button__link { color: #fff; border-color: #fff; }
.vm-hero .wp-block-button__link:hover, .vm-hero .wp-block-button__link:focus { background: #f53644; border-color: #f53644; color: #fff; }
@media (max-width: 1000px) { .vm-hero { min-height: 450px !important; } }
@media (max-width: 600px) {
	.vm-hero { min-height: 350px !important; }
	.vm-hero__script { font-size: 38px; }
	.vm-hero__title, .vm-hero__text { font-size: 22px; letter-spacing: 2px; }
}

/* ---------- tabs ---------- */
.vm-tabs__nav {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 0;
	margin: 0 0 30px;
	padding: 0;
}
.vm-tabs__nav button {
	font-family: var(--wp--preset--font-family--noto-serif);
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
	line-height: 40px;
	padding: 0 14px;
	color: var(--wp--preset--color--smoke);
	background: none;
	border: 0;
	cursor: pointer;
}
.vm-tabs__nav button[aria-selected="true"], .vm-tabs__nav button:hover, .vm-tabs__nav button:focus-visible { color: var(--wp--preset--color--ink); }
.vm-tabs.is-ready .vm-tab__title { display: none; }
.vm-tabs.is-ready .vm-tab[hidden] { display: none; }
.vm-tab .wp-block-gallery { margin-bottom: 25px; }

/* ---------- testimonials ---------- */
.vm-testimonials { position: relative; max-width: 920px; margin-left: auto; margin-right: auto; }
.vm-testimonials.is-ready { display: flex; flex-direction: column; min-height: 380px; }
.vm-testimonials.is-ready .vm-testimonial { display: none; }
.vm-testimonials.is-ready .vm-testimonial.is-active { display: block; animation: vm-fade 1s ease; }
.vm-testimonial { text-align: center; }
.vm-testimonial .wp-block-image { margin: 0 auto 20px; }
.vm-testimonial .wp-block-image img { height: 100px; width: auto; max-width: 100%; object-fit: contain; }
.vm-testimonial__text { font-size: 14px; line-height: 26px; color: #fff; }
.vm-testimonial__author {
	font-size: 13px;
	font-style: normal;
	letter-spacing: 2px;
	text-transform: uppercase;
	color: #fff;
	margin-top: 22px !important;
}
.vm-testimonials__nav { display: flex; justify-content: center; gap: 8px; margin-top: auto; padding-top: 40px; }
.vm-testimonials__nav button {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	border: 2px solid #fff;
	background: transparent;
	color: #fff;
	cursor: pointer;
	padding: 0;
	font-size: 18px;
	line-height: 24px;
}
.vm-testimonials__nav button:hover { background: #fff; color: var(--wp--preset--color--ink); }
@keyframes vm-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- galleries ---------- */
.wp-block-gallery.vm-strip { gap: 0 !important; }
.wp-block-gallery.vm-strip.has-nested-images figure.wp-block-image { margin: 0 !important; }
/* Thumbnail shapes of the old galleries (class added by the converter from the old image size). */
.wp-block-gallery.has-nested-images[class*="vm-ratio-"] figure.wp-block-image img {
	height: auto !important;
	flex: none !important;
	object-fit: cover;
}
.wp-block-gallery.vm-ratio-1-1 figure.wp-block-image img { aspect-ratio: 1; }
.wp-block-gallery.vm-ratio-260-145 figure.wp-block-image img { aspect-ratio: 260 / 145; }
.wp-block-gallery.vm-ratio-384-250 figure.wp-block-image img { aspect-ratio: 384 / 250; }
.wp-block-gallery.has-nested-images figure.wp-block-image img { transition: opacity .2s ease; }
.wp-block-gallery.has-nested-images figure.wp-block-image:hover img { opacity: .85; }

/* ---------- map ---------- */
.vm-map iframe { display: block; width: 100%; height: 660px; border: 0; }
@media (max-width: 781px) { .vm-map iframe { height: 420px; } }

/* ---------- blog ---------- */
.vm-posts { margin-bottom: 50px; }
.vm-posts .wp-block-post-featured-image { margin: 0; }
.vm-posts .wp-block-post-featured-image img { width: 100%; object-fit: cover; }
.vm-post-cards > li { display: flex; flex-direction: column; }
.vm-post-card__body { flex: 1; display: flex; flex-direction: column; }
.vm-post-card__title { margin: 0; }
.vm-post-card__title a { color: var(--wp--preset--color--ink); text-decoration: none; }
.vm-post-card__title a:hover { color: var(--wp--preset--color--bronze); }
.vm-post-card__excerpt { margin: 0 0 18px; }
.vm-post-card__excerpt p { margin: 0; }
.vm-post-card__date { margin-top: auto; font-size: 14px; font-style: normal; color: #303030; }
@media (max-width: 781px) {
	.vm-post-cards { grid-template-columns: 1fr !important; }
}
.vm-single__content p { margin: 0 0 1em; }
.vm-single__content ol, .vm-single__content ul { margin: 0 0 1em; padding-left: 1.4em; }

/* ---------- footer ---------- */
.vm-footer-col .wp-block-heading { margin-top: 0; }
.vm-footer-col .wp-block-separator { margin-top: 16px; margin-bottom: 16px; }
.vm-footer-top a:hover, .vm-footer-bottom a:hover {
	color: var(--wp--preset--color--ink);
	text-decoration: none;
	box-shadow: inset 0 -1px 0 var(--wp--preset--color--sand);
}
.vm-social-circle { margin-top: 20px; }
.vm-social-circle .wp-social-link {
	width: 81px;
	height: 81px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid var(--wp--preset--color--sand);
	background: var(--wp--preset--color--linen) !important;
	display: flex !important;
	align-items: center;
	justify-content: center;
	transition: background-color .2s ease;
}
.vm-social-circle .wp-social-link .wp-block-social-link-anchor {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 0 !important;
	color: #454545;
}
.vm-social-circle .wp-social-link:hover { background: var(--wp--preset--color--sand) !important; transform: none; }
.vm-social-circle .wp-social-link svg { width: 24px; height: 24px; }
.vm-footer-bottom .wp-block-heading { line-height: 1.6; }
.vm-credit { font-size: 12px; line-height: 22px; font-style: normal; }
@media (max-width: 781px) {
	.vm-footer-top .wp-block-columns { gap: 50px !important; }
}

/* ---------- back to top ---------- */
.vm-to-top {
	position: fixed;
	right: 25px;
	bottom: 23px;
	z-index: 90;
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: 2px solid #e8e8e8;
	background: rgba(255, 255, 255, .6);
	color: #b0b0b0;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity .3s ease, visibility .3s ease, color .2s ease, border-color .2s ease;
}
.vm-to-top.is-visible { opacity: 1; visibility: visible; }
.vm-to-top:hover, .vm-to-top:focus-visible { color: var(--wp--preset--color--ink); border-color: var(--wp--preset--color--sand); }
.vm-to-top svg { width: 20px; height: 20px; }
@media (max-width: 600px) { .vm-to-top { right: 15px; bottom: 15px; width: 44px; height: 44px; } }

/* ---------- forms rendered by the Virinta Forms plugin ---------- */
.vm-form input[type="text"], .vm-form input[type="email"], .vm-form input[type="tel"], .vm-form textarea {
	width: 100%;
	box-sizing: border-box;
	background: var(--wp--preset--color--mist);
	border: 1px solid var(--wp--preset--color--sand);
	color: var(--wp--preset--color--ink);
	font-family: var(--wp--preset--font-family--noto-serif);
	font-size: 14px;
	font-style: italic;
	padding: 12px 14px;
	border-radius: 0;
}
.vm-form textarea { min-height: 140px; resize: vertical; }
