/**
 * Site-wide motion and hover rules for the Brizy pages (same behaviour as the Utility Transport site).
 * Loaded after Brizy's stylesheets so the @keyframes below replace animate.css's versions.
 * Orange = palette color1 (#F35A0B).
 */

/* Gentler entrances than animate.css (which moves a full element height): 24px rise; rules draw left to right */
@keyframes fadeInUp {
	from { opacity: 0; transform: translate3d(0, 24px, 0); }
	to { opacity: 1; transform: none; }
}

@keyframes fadeInLeft {
	from { opacity: 0; transform: scaleX(0); transform-origin: 0 50%; }
	to { opacity: 1; transform: scaleX(1); transform-origin: 0 50%; }
}

/* Arrow buttons nudge their arrow on hover */
.brz .brz-btn .brz-icon-svg {
	transition: transform 0.25s ease;
}

.brz .brz-btn:hover .brz-icon-svg:has(use[href*="tail-right"]),
.brz .brz-btn:hover .brz-icon-svg:has(use[href*="arrow-right"]) {
	transform: translateX(4px);
}

/* Service card photo zooms ~3% inside its frame */
.brz .uhs-card .brz-image {
	overflow: hidden;
}

.brz .uhs-card .brz-image img {
	transition: transform 0.6s ease;
}

.brz .uhs-card:hover .brz-image img {
	transform: scale(1.03);
}

/* Header menu underline slides in from the left */
.brz .brz-section__header .brz-menu__ul > .brz-menu__item > .brz-a {
	position: relative;
}

.brz .brz-section__header .brz-menu__ul > .brz-menu__item > .brz-a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -6px;
	height: 2px;
	background: #F35A0B;
	transform: scaleX(0);
	transform-origin: 0 50%;
	transition: transform 0.25s ease;
}

.brz .brz-section__header .brz-menu__ul > .brz-menu__item > .brz-a:hover::after {
	transform: scaleX(1);
}

/* Always animate (same as the Utility Transport site): no prefers-reduced-motion opt-out, by the owner's choice. */

/* ===== Breathing room (spacing check, 2026-11-21) =====
 * Brizy's phone/tablet side padding is 15px; small headings sat 8-10px above their text.
 * Added here (not in Brizy) so every page gets the same rhythm. Remove a rule to go back to Brizy's own value. */

/* Side margins: 20px on phones, 32px on tablets */
@media (max-width: 767px) {
	.brz .brz-section .brz-section__content,
	.brz .brz-section__header .brz-section__menu-item {
		padding-left: 20px !important;
		padding-right: 20px !important;
	}
}

@media (min-width: 768px) and (max-width: 991px) {
	.brz .brz-section .brz-section__content,
	.brz .brz-section__header .brz-section__menu-item {
		padding-left: 32px !important;
		padding-right: 32px !important;
	}
}

/* Card and list titles (h3-h6): a little more air before their text, and before a button that follows text */
.brz .brz-column__items > .brz-wrapper:has(:is(h3, h4, h5, h6)) + .brz-wrapper:has(p) {
	padding-top: 6px;
}

.brz .brz-column__items > .brz-wrapper:has(p) + .brz-wrapper-clone {
	padding-top: 8px;
}

/* Two button rows in a row (footer phone + email) */
.brz .brz-column__items > .brz-wrapper-clone + .brz-wrapper-clone {
	padding-top: 10px;
}

/* Section intros (big heading left, paragraph right): on tablets they stack, so give the heading the full
 * width, line it up with the paragraph and leave a proper gap under it */
@media (min-width: 768px) and (max-width: 991px) {
	.brz .brz-row:has(> .brz-columns:first-child > .brz-column__items > .brz-wrapper:only-child h2):has(> .brz-columns:nth-child(2)):not(:has(> .brz-columns:nth-child(2) .brz-btn)) > .brz-columns {
		flex: 1 1 100% !important;
		max-width: 100% !important;
		width: 100% !important;
	}

	.brz .brz-row:has(> .brz-columns:first-child > .brz-column__items > .brz-wrapper:only-child h2):has(> .brz-columns:nth-child(2)):not(:has(> .brz-columns:nth-child(2) .brz-btn)) > .brz-columns:first-child > .brz-column__items {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	.brz .brz-row:has(> .brz-columns:first-child > .brz-column__items > .brz-wrapper:only-child h2):has(> .brz-columns:nth-child(2)):not(:has(> .brz-columns:nth-child(2) .brz-btn)) > .brz-columns:nth-child(2) {
		margin-top: 20px;
	}

	/* A paragraph followed by a nested grid (equipment list, safety commitments) once columns stack */
	.brz .brz-column__items > .brz-wrapper:has(p) + .brz-row__container {
		padding-top: 16px;
	}
}

@media (max-width: 767px) {
	.brz .brz-column__items > .brz-wrapper:has(p) + .brz-row__container {
		padding-top: 12px;
	}
}

/* Page heroes on phones and tablets: the photo sat 6-11px above the dark service strip */
@media (max-width: 991px) {
	.brz .brz-section:has(h1) > .brz-section__content {
		padding-bottom: 32px !important;
	}
}

/* Service strip under the hero: on tablets/small laptops the widely spaced labels were wider than their cells */
@media (min-width: 768px) and (max-width: 1199px) {
	.brz .brz-section:has(h1) + .brz-section .brz-btn {
		letter-spacing: 1.5px !important;
	}
}
