/* =========================================================================
   150 Peel - Certified contractors
   The contractors page ([peel_contractors]) and the band under the welcome
   banner on the home page. Salient styles lists, headings and links inside
   page content, so those are reset by name here.
   ========================================================================= */

.pc-page,
.pc-band {
	--pc-brand: #008cba;
	--pc-brand-dark: #00708f;
	--pc-ink: #10191e;
	--pc-text: #33434c;
	--pc-muted: #5d6d76;
	--pc-line: #e1e9ee;
	--pc-tint: #eaf7ff;
	--pc-head: 'Abel', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Doubled class so these beat Salient's ".main-content ul li" */
.pc-page.pc-page ul,
.pc-page.pc-page li,
.pc-band.pc-band ul,
.pc-band.pc-band li {
	margin: 0;
	padding: 0;
	list-style: none;
	background: none;
}

.pc-ico {
	width: 18px;
	height: 18px;
	flex: 0 0 auto;
}

/* =========================================================================
   PAGE
   ========================================================================= */

.pc-page {
	max-width: 1180px;
	margin: 0 auto;
	padding: 36px 0 64px;
	color: var(--pc-text);
}

/* Heading, matched to the section headings on the home page */
.pc-page .pc-head {
	margin-bottom: 28px;
}

.pc-page .pc-head__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--pc-head);
	font-size: 32px;
	line-height: 1.15;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--pc-brand);
}

.pc-page .pc-head__lead {
	max-width: 62ch;
	margin: 0 0 16px;
	padding: 0;
	font-size: 16px;
	line-height: 1.55;
	color: var(--pc-muted);
}

.pc-page .pc-head__perks {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
}

.pc-page .pc-head__perks li {
	display: flex;
	align-items: center;
	gap: 7px;
	font-size: 14px;
	font-weight: 600;
	color: var(--pc-ink);
}

.pc-page .pc-head__perks .pc-ico {
	width: 17px;
	height: 17px;
	color: #0a7d3c;
	stroke-width: 2.4;
}

/* Search and count */
.pc-page .pc-tools {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin: 0 0 22px;
	padding: 0 0 18px;
	border-bottom: 1px solid var(--pc-line);
}

.pc-page .pc-search {
	position: relative;
	flex: 0 1 420px;
	margin: 0;
}

.pc-page .pc-search .pc-ico {
	position: absolute;
	left: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--pc-muted);
	pointer-events: none;
}

.pc-page .pc-search input[type="search"] {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px 12px 42px;
	font-family: inherit;
	font-size: 16px;
	line-height: 1.3;
	color: var(--pc-ink);
	background: #fff;
	border: 1px solid #cfdde5;
	border-radius: 9px;
	box-shadow: none;
	-webkit-appearance: none;
	appearance: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.pc-page .pc-search input[type="search"]:focus {
	outline: none;
	border-color: var(--pc-brand);
	box-shadow: 0 0 0 3px rgba(0, 140, 186, .18);
}

.pc-page .pc-count {
	margin: 0;
	padding: 0;
	font-size: 14px;
	color: var(--pc-muted);
	white-space: nowrap;
}

/* Grid */
.pc-page .pc-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 24px;
	align-items: stretch;
}

/* =========================================================================
   CARD
   ========================================================================= */

.pc-page .pc-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--pc-line);
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 2px rgba(16, 25, 30, .04);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.pc-page .pc-card[hidden] {
	display: none;
}

/* Brand line that draws across the top on hover */
.pc-page .pc-card::before {
	content: "";
	position: absolute;
	z-index: 2;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: var(--pc-brand);
	transform: scaleX(0);
	transform-origin: left center;
	transition: transform .3s ease;
}

.pc-page .pc-card:hover,
.pc-page .pc-card:focus-within {
	transform: translateY(-4px);
	border-color: #cbe2ee;
	box-shadow: 0 16px 34px rgba(16, 25, 30, .12);
}

.pc-page .pc-card:hover::before,
.pc-page .pc-card:focus-within::before {
	transform: scaleX(1);
}

/* Logo stage */
.pc-page .pc-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	padding: 22px 28px;
	box-sizing: border-box;
	background: #fff;
	border-bottom: 1px solid var(--pc-line);
}

.pc-page .pc-card__logo img {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 96px;
	object-fit: contain;
	border-radius: 6px;
	transition: transform .35s ease;
}

.pc-page .pc-card:hover .pc-card__logo img {
	transform: scale(1.06);
}

.pc-monogram {
	display: grid;
	place-items: center;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background: var(--pc-brand);
	color: #fff;
	font-family: var(--pc-head, 'Abel', sans-serif);
	font-size: 28px;
	letter-spacing: .04em;
}

/* Body */
.pc-page .pc-card__body {
	flex: 1 1 auto;
	padding: 20px 22px 6px;
}

.pc-page .pc-card__name {
	margin: 0 0 10px;
	padding: 0;
	font-family: var(--pc-head);
	font-size: 21px;
	line-height: 1.2;
	font-weight: 400;
	letter-spacing: .02em;
	text-transform: uppercase;
	color: var(--pc-ink);
}

.pc-page.pc-page .pc-card__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 16px;
}

.pc-page .pc-card__tags li {
	padding: 4px 10px;
	font-size: 12.5px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--pc-brand-dark);
	background: var(--pc-tint);
	border-radius: 999px;
}

/* Contact rows */
.pc-page .pc-card__details {
	display: grid;
	gap: 9px;
}

.pc-page .pc-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 14.5px;
	line-height: 1.45;
	color: var(--pc-text);
	overflow-wrap: anywhere;
}

.pc-page .pc-row .pc-ico {
	margin-top: 1px;
	color: var(--pc-brand);
}

.pc-page .pc-row strong {
	font-weight: 700;
	color: var(--pc-ink);
}

.pc-page .pc-row__sub {
	display: block;
	font-size: 13px;
	color: var(--pc-muted);
}

.pc-page .pc-row__label {
	display: inline-block;
	min-width: 52px;
	margin-right: 6px;
	font-size: 12.5px;
	color: var(--pc-muted);
}

.pc-page .pc-row a,
.pc-page .pc-row a:visited {
	color: var(--pc-ink);
	text-decoration: none;
	border-bottom: 1px solid transparent;
	transition: color .15s ease, border-color .15s ease;
}

.pc-page .pc-row a:hover,
.pc-page .pc-row a:focus-visible {
	color: var(--pc-brand-dark);
	border-bottom-color: currentColor;
}

/* Note, e.g. licences and Owners Corporation rules */
.pc-page .pc-card__note {
	display: flex;
	gap: 9px;
	margin: 16px 0 0;
	padding: 10px 12px;
	font-size: 13px;
	line-height: 1.5;
	color: #6b4e00;
	background: #fffbf0;
	border-left: 3px solid #b58105;
	border-radius: 0 6px 6px 0;
}

.pc-page .pc-card__note .pc-ico {
	width: 16px;
	height: 16px;
	margin-top: 1px;
	color: #b58105;
}

/* Call and email */
.pc-page .pc-card__actions {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 1fr;
	gap: 10px;
	padding: 16px 22px 20px;
}

.pc-page .pc-btn,
.pc-page .pc-btn:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--pc-brand-dark);
	text-decoration: none;
	background: #fff;
	border: 2px solid #b9dcea;
	border-radius: 8px;
	transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.pc-page .pc-btn .pc-ico {
	width: 16px;
	height: 16px;
}

.pc-page .pc-btn:hover,
.pc-page .pc-btn:focus-visible {
	border-color: var(--pc-brand);
	background: #f3fbfe;
}

.pc-page .pc-btn--solid,
.pc-page .pc-btn--solid:visited {
	color: #fff;
	background: var(--pc-brand);
	border-color: var(--pc-brand);
}

.pc-page .pc-btn--solid:hover,
.pc-page .pc-btn--solid:focus-visible {
	color: #fff;
	background: var(--pc-brand-dark);
	border-color: var(--pc-brand-dark);
}

.pc-page a:focus-visible,
.pc-page input:focus-visible,
.pc-band a:focus-visible {
	outline: 3px solid rgba(0, 140, 186, .45);
	outline-offset: 2px;
}

.pc-page .pc-empty {
	margin: 24px 0 0;
	padding: 28px;
	text-align: center;
	font-size: 15px;
	color: var(--pc-muted);
	background: #f6f9fb;
	border-radius: 12px;
}

.pc-page .pc-empty[hidden] {
	display: none;
}

/* Link to the full suppliers list */
.pc-page .pc-more {
	margin-top: 36px;
}

.pc-page .pc-more__link,
.pc-page .pc-more__link:visited {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px 20px;
	color: var(--pc-ink);
	text-decoration: none;
	background: var(--pc-tint);
	border: 1px solid #cfe3ee;
	border-radius: 12px;
	transition: border-color .15s ease, background .15s ease;
}

.pc-page .pc-more__link > span {
	flex: 1 1 auto;
}

.pc-page .pc-more__link strong {
	display: block;
	font-size: 15.5px;
	font-weight: 700;
}

.pc-page .pc-more__link span span {
	display: block;
	margin-top: 2px;
	font-size: 13.5px;
	color: var(--pc-muted);
}

.pc-page .pc-more__link .pc-ico {
	width: 22px;
	height: 22px;
	color: var(--pc-brand);
}

.pc-page .pc-more__link .pc-ico:last-child {
	transition: transform .2s ease;
}

.pc-page .pc-more__link:hover {
	border-color: var(--pc-brand);
	background: #e1f3fb;
}

.pc-page .pc-more__link:hover .pc-ico:last-child {
	transform: translateX(4px);
}

.pc-page .pc-more__help {
	margin: 14px 0 0;
	padding: 0;
	font-size: 14px;
	color: var(--pc-muted);
}

.pc-page .pc-more__help a {
	color: var(--pc-brand-dark);
	font-weight: 700;
}

/* =========================================================================
   HOME PAGE BAND, UNDER THE WELCOME BANNER
   A certification seal, a headline that runs through the trades on offer,
   and one button. The changing word is the only thing that moves.
   ========================================================================= */

.pc-band {
	position: relative;
	overflow: hidden;
	background: #22292d;
	border-top: 4px solid #008cba;
	color: #fff;
}

.pc-band .pc-band__inner {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	grid-template-areas: "seal text btn";
	align-items: center;
	gap: 18px 34px;
	padding: 30px 40px;
}

/* Seal */
.pc-band .pc-band__seal {
	grid-area: seal;
	display: block;
	width: 112px;
	height: 112px;
	transform: rotate(-12deg);
	transition: transform .5s ease;
}

.pc-band:hover .pc-band__seal {
	transform: rotate(8deg);
}

.pc-seal {
	display: block;
	width: 100%;
	height: 100%;
	overflow: visible;
}

.pc-seal__ring {
	fill: none;
	stroke: #008cba;
	stroke-width: 2;
}

.pc-seal__inner {
	fill: #008cba;
}

.pc-seal__text {
	fill: #cfe9f3;
	font-family: 'Abel', 'Helvetica Neue', Helvetica, Arial, sans-serif;
	font-size: 10.5px;
	letter-spacing: .08em;
}

.pc-seal__tick {
	fill: none;
	stroke: #fff;
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Headline */
.pc-band .pc-band__text {
	grid-area: text;
	min-width: 0;
}

.pc-band .pc-band__title {
	margin: 0 0 8px;
	padding: 0;
	font-family: var(--pc-head);
	font-size: 36px;
	line-height: 1.12;
	font-weight: 400;
	letter-spacing: .01em;
	text-transform: none;
	color: #fff;
}

.pc-band .pc-band__word {
	display: inline-block;
	transition: transform .28s ease, opacity .28s ease;
}

.pc-band .pc-band__word.is-out {
	transform: translateY(-.5em);
	opacity: 0;
}

.pc-band .pc-band__word.is-in {
	transform: translateY(.5em);
	opacity: 0;
	transition: none;
}

.pc-band .pc-band__sub {
	max-width: 60ch;
	margin: 0;
	padding: 0;
	font-size: 15px;
	line-height: 1.5;
	color: #b8c4ca;
}

/* Button */
.pc-band .pc-band__btn,
.pc-band .pc-band__btn:visited {
	grid-area: btn;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 15px 26px;
	font-size: 16px;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	background: #008cba;
	border-radius: 8px;
	transition: background .15s ease;
}

.pc-band .pc-band__btn:hover,
.pc-band .pc-band__btn:focus-visible {
	color: #fff;
	background: #00708f;
}

/* Medium screens: button under the headline */
@media (max-width: 1000px) {
	.pc-band .pc-band__inner {
		grid-template-columns: auto minmax(0, 1fr);
		grid-template-areas:
			"seal text"
			"seal btn";
		padding: 26px 32px;
	}

	.pc-band .pc-band__btn {
		justify-self: start;
	}

	.pc-band .pc-band__title {
		font-size: 31px;
	}
}

/* Phones: small seal beside the headline, full-width button */
@media (max-width: 600px) {
	.pc-band .pc-band__inner {
		grid-template-areas:
			"seal title"
			"sub sub"
			"btn btn";
		gap: 16px;
		padding: 22px 20px 24px;
	}

	/* Headline beside the seal, the rest full width underneath */
	.pc-band .pc-band__text {
		display: contents;
	}

	.pc-band .pc-band__seal {
		width: 76px;
		height: 76px;
	}

	.pc-band .pc-band__title {
		grid-area: title;
		margin: 0;
		font-size: 26px;
	}

	.pc-band .pc-band__sub {
		grid-area: sub;
	}

	.pc-band .pc-band__sub {
		font-size: 14px;
	}

	.pc-band .pc-band__btn {
		justify-self: stretch;
	}
}

/* Contractors page on phones */
@media (max-width: 760px) {
	.pc-page {
		padding-top: 24px;
	}

	.pc-page .pc-head__title {
		font-size: 27px;
	}

	.pc-page .pc-tools {
		flex-direction: column;
		align-items: stretch;
	}

	.pc-page .pc-search {
		flex-basis: auto;
	}

	.pc-page .pc-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.pc-page *,
	.pc-page *::before,
	.pc-band * {
		transition: none !important;
	}

	.pc-page .pc-card:hover,
	.pc-page .pc-card:focus-within {
		transform: none;
	}

	.pc-band:hover .pc-band__seal {
		transform: rotate(-12deg);
	}
}
