/* =========================================================
   Site customizations (Xceptional Wildlife).
   Loaded after the theme CSS on every page. Colors match the
   theme's existing skin in css/global.css.
   ========================================================= */

:root {
	--xw-base: #e86343;        /* theme accent (.pi-btn-base, .pi-text-base) */
	--xw-base-hover: #d34a35;  /* theme accent hover */
	--xw-dark: #2e343c;        /* theme dark sections */
	--xw-text-light: #afb8bb;  /* theme light text on dark sections */
	--xw-gutter: 40px;         /* theme .pi-section side padding */
	--xw-navbar-height: 94px;
	--xw-pipe-width: 24px;
}

@media (max-width: 767px) {
	:root {
		--xw-gutter: 20px;
		--xw-navbar-height: 72px;
	}
}

/* In-page anchors land below the sticky header */
html {
	scroll-padding-top: calc(var(--xw-navbar-height) + 10px);
}

/* Fixed-width content images and image wrappers never overflow small screens */
#pi-all img {
	max-width: 100%;
	height: auto;
}
#pi-all .pi-img-w {
	max-width: 100%;
}
@media (max-width: 479px) {
	#pi-all .pi-img-w.pi-img-left,
	#pi-all .pi-img-w.pi-img-right {
		float: none;
		margin-left: 0;
		margin-right: 0;
		width: auto !important;
	}
}

/* ---------- Header: top bar ---------- */
.xw-topbar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 28px;
	padding: 8px var(--xw-gutter);
}
.xw-topbar-inner::before,
.xw-topbar-inner::after {
	content: none;
}
.xw-topbar a.xw-topbar-item {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--xw-text-light);
	text-decoration: none;
}
.xw-topbar a.xw-topbar-item:hover,
.xw-topbar a.xw-topbar-item:focus {
	color: #fff;
}
.xw-topbar a.xw-topbar-item strong {
	color: #fff;
}
.xw-topbar .pi-icon-square {
	margin: 0;
}
.xw-topbar-social {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-left: auto;
	color: var(--xw-text-light);
}
.xw-topbar-social .pi-social-icons {
	margin: 0;
}
@media (max-width: 767px) {
	.xw-topbar-email,
	.xw-topbar-social .xw-topbar-label {
		display: none !important;
	}
}

/* ---------- Header: sticky navbar ---------- */
.xw-navbar {
	position: -webkit-sticky;
	position: sticky;
	top: 0;
	z-index: 1000;
}
.xw-navbar-inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--xw-navbar-height);
	padding: 0 var(--xw-gutter);
}
.xw-navbar-inner::before,
.xw-navbar-inner::after {
	content: none;
}
.xw-logo {
	display: inline-flex;
	align-items: center;
	flex: none;
}
.xw-logo img {
	display: block;
	width: auto;
	height: 64px;
}
.xw-menu {
	margin-left: auto;
}
.xw-navbar .pi-simple-menu {
	margin: 0;
}
.xw-navbar .pi-simple-menu > li > a {
	line-height: var(--xw-navbar-height);
}
/* No underline on hover; the active item keeps the theme's own underline */
.xw-navbar .pi-simple-menu > li > a:hover,
.xw-navbar .pi-simple-menu > li > a:focus,
.xw-navbar .pi-simple-menu > li > a:hover span,
.xw-navbar .pi-simple-menu > li > a:focus span {
	text-decoration: none;
}
.xw-navbar .pi-simple-menu > li.xw-menu-phone > a {
	color: var(--xw-base);
}
.xw-navbar .pi-mobile-menu-toggler {
	margin-left: auto;
}
@media (max-width: 767px) {
	.xw-logo img {
		height: 48px;
	}
}

/* ---------- Footer: widgets ---------- */
.xw-footer-widgets {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 30px 30px;
	padding-top: 50px;
	padding-bottom: 30px;
}
.xw-footer-widgets::before,
.xw-footer-widgets::after {
	content: none;
}
.xw-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	text-align: center;
}
.xw-footer-logo {
	display: block;
	width: 100%;
	max-width: 240px;
}
.xw-footer-logo img {
	display: block;
	width: 100%;
	height: auto;
}
.xw-footer-area {
	margin: 0;
}
.xw-footer-contact {
	margin: 0 0 8px;
	font-weight: 600;
}
.xw-footer-contact a {
	color: #fff;
}
.xw-footer-contact a:hover,
.xw-footer-contact a:focus {
	color: var(--xw-base);
}
.xw-footer-email {
	font-weight: 400;
	word-break: break-word;
}
.xw-footer .xw-social {
	display: inline-block;
}
@media (max-width: 991px) {
	.xw-footer-widgets {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 479px) {
	.xw-footer-widgets {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* ---------- Footer: sub-footer bar ---------- */
.xw-subfooter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px 30px;
	padding: 18px var(--xw-gutter);
}
.xw-subfooter::before,
.xw-subfooter::after {
	content: none;
}
.xw-copyright {
	margin: 0;
}
.xw-subfooter-nav {
	overflow: hidden; /* hides the shifted-out pipe strip in older browsers */
}
/* Pipes are drawn with CSS so a separator never starts a wrapped line */
.xw-subfooter-links {
	display: flex;
	flex-wrap: wrap;
	margin: 0 0 0 calc(-1 * var(--xw-pipe-width));
	padding: 0;
	list-style: none;
	clip-path: inset(0 0 0 var(--xw-pipe-width));
}
.xw-subfooter-links li {
	display: flex;
	align-items: center;
	line-height: 1.8;
}
.xw-subfooter-links li::before {
	content: "|";
	display: inline-block;
	width: var(--xw-pipe-width);
	text-align: center;
	color: var(--xw-text-light);
	opacity: 0.6;
}
.xw-subfooter-links a {
	color: var(--xw-text-light);
}
.xw-subfooter-links a:hover,
.xw-subfooter-links a:focus {
	color: #fff;
}
@media (max-width: 767px) {
	.xw-subfooter {
		justify-content: center;
		text-align: center;
	}
	.xw-subfooter-links {
		justify-content: center;
	}
}

/* ---------- Social icons: X ---------- */
.xw-social > li {
	vertical-align: top;
}
.pi-social-icons a.pi-social-icon-x {
	display: flex;
	align-items: center;
	justify-content: center;
}
.pi-social-icons a.pi-social-icon-x .xw-icon-x {
	display: block;
	width: 13px;
	height: 13px;
}
.pi-social-icons.pi-colored-bg a:hover.pi-social-icon-x,
.pi-social-icons.pi-colored-bg a:focus.pi-social-icon-x {
	background: #000 !important;
	color: #fff !important;
}

/* ---------- Content helpers ---------- */
/* Phone number shown next to a heading (never inside it) */
.xw-brand-line a[href^="tel:"] {
	color: inherit;
	white-space: nowrap;
}
.xw-brand-line .xw-brand-name {
	margin-right: 1em;
}

/* Service-areas banner lines that used to be <h1>s */
.xw-banner-line {
	display: block;
	margin: 0 0 15px;
}
a.xw-banner-line {
	text-decoration: none;
}

/* Rentokil section on the About page */
.xw-about-rentokil {
	max-width: 900px;
}

/* Terms of Service page */
.xw-legal h2 {
	margin-top: 35px;
}
.xw-legal p {
	margin-bottom: 14px;
}

/* Visually hidden labels (Bootstrap 3 has .sr-only, kept here for safety) */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
}
