/* Uniform Mertex button — bordered "MORE →" design.
   The design tokens carry !important so they win over the per-widget
   rules Elementor generates into post-{id}.css — selectors like
   ".elementor-20 .elementor-element.elementor-element-… .pt-btn-container
   .pt-button" outrank bare .pt-button by specificity alone (e.g. the
   homepage news cards were stuck at background:#83C0F0, bypassing both
   the resting design and the hover invert). */

.pt-button {
	background: transparent !important;
	border: 2px solid var(--dark-color) !important;
	color: var(--dark-color) !important;
	padding: 14px 36px;
	font-size: 16px;
	font-weight: 700;
	letter-spacing: 0.05em;
	border-radius: 0;
	text-decoration: none;
}

.pt-button:hover,
.pt-button:focus {
	background: var(--dark-color) !important;
	border-color: var(--dark-color) !important;
	color: var(--white-color) !important;
}

.pt-button:focus-visible {
	outline: 3px solid var(--primary-color);
	outline-offset: 2px;
}

.pt-button .pt-button-block {
	display: flex;
	align-items: center;
	gap: 10px;
}

/* Widget style controls can also colour .pt-button-text directly —
   the service widget forces it white at rest and #83C0F0 on hover —
   so the label is pinned to the button's own colour in every state. */
.pt-button .pt-button-text {
	color: inherit !important;
}

/* Design arrow — swaps to the white variant on hover/focus. */
.pt-button .pt-button-block::after {
	content: "";
	width: 27px;
	height: 10px;
	flex-shrink: 0;
	background: transparent url("../images/arrow-normal.svg") no-repeat center / contain;
	transition: transform 0.4s ease;
}

.pt-button:hover .pt-button-block::after,
.pt-button:focus .pt-button-block::after {
	background-image: url("../images/arrow-hover.svg");
	transform: translateX(5px);
}

/* Suppress icon elements emitted by parent/plugin templates — the
   ::after arrow is the single icon across all contexts. */
.pt-button .pt-button-block > img,
.pt-button .pt-button-block > i,
.pt-button .pt-button-block > svg {
	display: none;
}

/* Fallback for plugin variants that emit the icon directly inside
   a.pt-button without a .pt-button-block wrapper (load-more links,
   the blog slider style's .pt-button-block > a.pt-button). */
.pt-button:not(:has(.pt-button-block)) > img,
.pt-button:not(:has(.pt-button-block)) > i,
.pt-button:not(:has(.pt-button-block)) > svg {
	display: none;
}

.pt-button:not(:has(.pt-button-block))::after {
	content: "";
	display: inline-block;
	vertical-align: middle;
	width: 27px;
	height: 10px;
	margin-left: 10px;
	background: transparent url("../images/arrow-normal.svg") no-repeat center / contain;
	transition: transform 0.4s ease;
}

.pt-button:not(:has(.pt-button-block)):hover::after,
.pt-button:not(:has(.pt-button-block)):focus::after {
	background-image: url("../images/arrow-hover.svg");
	transform: translateX(5px);
}

/* Text-link variant stays a borderless link. */
.pt-button.pt-button-link {
	padding: 0;
	border: none !important;
}

.pt-button.pt-button-link:hover,
.pt-button.pt-button-link:focus {
	background: transparent !important;
	color: var(--dark-color) !important;
}

/* The white hover arrow would be invisible on the borderless link —
   keep the normal (dark) arrow and only let it slide. */
.pt-button.pt-button-link:hover .pt-button-block::after,
.pt-button.pt-button-link:focus .pt-button-block::after,
.pt-button.pt-button-link:not(:has(.pt-button-block)):hover::after,
.pt-button.pt-button-link:not(:has(.pt-button-block)):focus::after {
	background-image: url("../images/arrow-normal.svg");
}

/* On-dark variant — the service boxes sit on the dark Business &
   Facilities section (#3B3E4A + 50% black overlay), where the dark
   ghost button is illegible and its hover fill is indistinguishable.
   The button inverts instead: white at rest, filling white on hover.
   (arrow-hover.svg is the white-stroke asset; the roles of the two
   arrow files swap here.) */
.pt-service-box .pt-service-box-info .pt-button {
	border-color: var(--white-color) !important;
	color: var(--white-color) !important;
}

.pt-service-box .pt-service-box-info .pt-button:hover,
.pt-service-box .pt-service-box-info .pt-button:focus {
	background: var(--white-color) !important;
	border-color: var(--white-color) !important;
	color: var(--dark-color) !important;
}

.pt-service-box .pt-service-box-info .pt-button .pt-button-block::after {
	background-image: url("../images/arrow-hover.svg");
}

.pt-service-box .pt-service-box-info .pt-button:hover .pt-button-block::after,
.pt-service-box .pt-service-box-info .pt-button:focus .pt-button-block::after {
	background-image: url("../images/arrow-normal.svg");
}
