/* Chigo PNG custom styles */

/* ---------------------------------------------------------------
   Header logo
   The image is a tightly cropped, high-res PNG served from
   images/chigo-logo.png (see chigo_header_logo_src in functions.php),
   so sizes below are the visible logo height. Centred vertically
   in the header: font-size 0 on the link makes vertical-align:middle
   sit exactly on the centre of the header line.
---------------------------------------------------------------- */
.site-title a {
	font-size: 0 !important;
}

.site-title img {
	max-height: none !important;
	width: auto;
	margin: 0 !important;
	vertical-align: middle !important;
	image-rendering: auto !important; /* theme forces crisp-edges, which makes a downscaled logo jagged */
}

/* Mobile (theme mobile menu is below 992px) */
@media (max-width: 991px) {
	.site-title img {
		height: 20px !important;
	}
}

/* Desktop: 25% larger than the original visible logo */
@media (min-width: 992px) {
	.site-title img {
		height: 38px !important;
	}

	.site-header.clone .site-title img {
		height: 24px !important; /* sticky header */
	}
}

/* ---------------------------------------------------------------
   Back to top
   Two plugins were drawing a button in the same spot (Kemore SEO and
   WPFront Scroll Top). Keep the Kemore SEO one, styled in brand red.
---------------------------------------------------------------- */
#wpfront-scroll-top-container {
	display: none !important;
}

.rrseo-back-to-top {
	right: 24px !important;
	bottom: 24px !important;
	width: 48px !important;
	height: 48px !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #e21744 !important;
	color: transparent !important;
	font-size: 0 !important;
	box-shadow: 0 12px 28px -10px rgba(226, 23, 68, .65), 0 2px 6px rgba(0, 0, 0, .12) !important;
	cursor: pointer;
	opacity: 0;
	visibility: hidden;
	transform: translateY(12px) scale(.9) !important;
	transition: opacity .35s cubic-bezier(.22, .61, .36, 1), transform .35s cubic-bezier(.22, .61, .36, 1), visibility .35s, background-color .25s, box-shadow .25s !important;
}

.rrseo-back-to-top::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 12px;
	height: 12px;
	border-left: 2.5px solid #fff;
	border-top: 2.5px solid #fff;
	border-radius: 2px 0 0 0;
	transform: translate(-50%, -25%) rotate(45deg);
}

.rrseo-back-to-top.is-visible {
	opacity: 1;
	visibility: visible;
	transform: none !important;
}

.rrseo-back-to-top:hover {
	background: #c3123a !important;
	transform: translateY(-3px) !important;
	box-shadow: 0 16px 32px -10px rgba(226, 23, 68, .75), 0 2px 6px rgba(0, 0, 0, .12) !important;
}

.rrseo-back-to-top:focus-visible {
	outline: 3px solid rgba(226, 23, 68, .35);
	outline-offset: 3px;
}

/* ---------------------------------------------------------------
   Home hero, slide "Beat the Heat / Stay Cool" (desktop)
   Photo moved down so the red active-menu block no longer sits over
   her eye. The top edge fades into the photo's own backdrop colour
   under the header.
---------------------------------------------------------------- */
@media (min-width: 992px) {
	.elementor-repeater-item-e2322a8 .bdt-position-cover.bdt-animation-kenburns {
		background-color: #dfe9f5;
		transform-origin: left top !important;
	}

	.elementor-repeater-item-e2322a8 .bdt-ps-slide-img {
		background-position: 50% 0 !important;
		transform: translateY(62px);
		-webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 50px);
		mask-image: linear-gradient(to bottom, transparent 0, #000 50px);
	}
}
