/**
 * Trendwise polish layer — hand-written refinements Elementor controls can't
 * express. Brand colors arrive as CSS custom properties (--tsl-*) injected
 * inline from the saved profile. Conservative by design: typography rhythm,
 * micro-interactions, form feel, focus accessibility.
 */

/* ---- Typography rhythm ------------------------------------------------ */
html {
	scroll-behavior: smooth;
	-webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
	letter-spacing: -0.015em;
	text-wrap: balance;
}
p {
	text-wrap: pretty;
}
::selection {
	background: var(--tsl-secondary, #2271b1);
	color: #fff;
}

/* ---- Buttons: tactile, springy ---------------------------------------- */
.elementor-button {
	transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease, color 0.22s ease;
	will-change: transform;
}
.elementor-button:hover {
	transform: translateY(-2px);
}
.elementor-button:active {
	transform: translateY(0);
	transition-duration: 0.08s;
}

/* ---- Links + focus accessibility --------------------------------------- */
a {
	transition: color 0.18s ease, opacity 0.18s ease;
}
:focus-visible {
	outline: 2px solid var(--tsl-secondary, #2271b1);
	outline-offset: 2px;
	border-radius: 2px;
}

/* ---- Forms: comfortable fields, branded focus ring ---------------------- */
.elementor-field-group .elementor-field {
	border: 1px solid #d8dee8;
	border-radius: 8px;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.elementor-field-group .elementor-field:focus {
	border-color: var(--tsl-secondary, #2271b1);
	box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--tsl-secondary, #2271b1) 20%, transparent);
	outline: none;
}
.elementor-field-group .elementor-field::placeholder {
	color: #94a0af;
}
.elementor-field-type-radio label,
.elementor-field-type-checkbox label {
	cursor: pointer;
}

/* ---- Fixed-shape photo frames -------------------------------------------
   Whatever shape the client shot, each slot renders at ITS shape:
   object-fit crops to fill, never squashes. */
.elementor-widget-image-gallery img,
.uael-image-gallery img,
.tsl-gallery img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-radius: 10px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.tsl-service-photo img {
	aspect-ratio: 16 / 9;
	object-fit: cover;
	width: 100%;
	max-width: 920px;
	border-radius: 14px;
}
.tsl-fitted-photo img {
	aspect-ratio: 4 / 3;
	object-fit: cover;
	width: 100%;
	border-radius: 14px;
}
.elementor-widget-image-gallery a:hover img,
.uael-image-gallery a:hover img {
	transform: scale(1.02);
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
}

/* ---- Navigation + footer ------------------------------------------------ */
.elementor-nav-menu a {
	transition: color 0.18s ease;
}
.elementor-location-footer a:hover {
	opacity: 0.82;
}

/* ---- Accordion (FAQ) polish --------------------------------------------- */
.elementor-accordion .elementor-tab-title {
	transition: color 0.18s ease;
}
.elementor-accordion .elementor-tab-title:hover {
	color: var(--tsl-secondary, #2271b1);
}

/* ---- Motion accessibility ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
	.elementor-button,
	.elementor-button:hover,
	.elementor-widget-image-gallery img,
	.uael-image-gallery img {
		transition: none;
		transform: none;
	}
}

/* ---- Areas We Serve (live shortcode grid) -------------------------------- */
.tsl-areas {
	text-align: center;
}
.tsl-areas-heading {
	font-size: 34px;
	font-weight: 800;
	color: var(--tsl-primary, #1a1a1a);
	margin: 0 0 8px;
}
.tsl-areas-sub {
	color: #5b6572;
	margin: 0 0 26px;
}
.tsl-areas-grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px 24px;
	text-align: left;
	max-width: 880px;
	margin-inline: auto;
}
@media (max-width: 767px) {
	.tsl-areas-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
.tsl-areas-grid a {
	font-weight: 700;
	color: var(--tsl-primary, #1a1a1a);
	text-decoration: none;
	border-left: 3px solid var(--tsl-secondary, #2271b1);
	padding-left: 10px;
	display: inline-block;
	transition: color 0.18s ease, border-color 0.18s ease;
}
.tsl-areas-grid a:hover {
	color: var(--tsl-secondary, #2271b1);
}

/* ---- Live Google rating badge -------------------------------------------- */
a.tsl-rating,
span.tsl-rating {
	font-weight: 700;
	text-decoration: none;
	color: inherit;
}
a.tsl-rating:hover {
	text-decoration: underline;
}

/* ---- Featured gallery: first photo spans 2x2 (human-designed rhythm) ---- */
.tsl-gallery .gallery {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
}
.tsl-gallery .gallery .gallery-item {
	margin: 0;
	width: auto !important;
	max-width: none;
}
.tsl-gallery .gallery .gallery-item:first-child {
	grid-column: span 2;
	grid-row: span 2;
}
.tsl-gallery .gallery .gallery-item:first-child img {
	aspect-ratio: auto;
	height: 100%;
	object-fit: cover;
}
@media (max-width: 767px) {
	.tsl-gallery .gallery {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	.tsl-gallery .gallery .gallery-item:first-child {
		grid-column: span 2;
		grid-row: span 1;
	}
}

/* ---- Offering group product lists ---------------------------------------- */
ul.tsl-plist {
	list-style: none;
	margin: 12px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 6px 16px;
}
ul.tsl-plist li {
	position: relative;
	padding-left: 20px;
	font-size: 15px;
	color: #3c4654;
	font-weight: 600;
}
ul.tsl-plist li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 7px;
	width: 8px;
	height: 8px;
	border-radius: 2px;
	background: var(--tsl-secondary, #2271b1);
}
@media (max-width: 480px) {
	ul.tsl-plist {
		grid-template-columns: 1fr;
	}
}
