/* ============================================
    Website : phonenumbers.store
    File    : pns-home.css - the home page's Google reviews block and the sections under it
              (the figures, Get in touch, Frequently Asked Questions). 12/11/2026.
    Markup  : views/includes/pns-google-reviews-shortcode.cfm ({pns-google-reviews}) and the
              home page content in the CMS (PageContent "index").
    Linked  : views/common/headers/header_pns.cfm, after mainstyle.min.css.
    Colours and the font come from mainstyle.css's variables where it has one.
    NOT IN GIT (the fileserver share): copy this file to production's
    /fileserver/pns-front/css/ with the release that carries the markup.
================================================*/

/* ---- the welcome band now holds the reviews, so it no longer needs its 320px of empty space ---- */
.about-section-5.pns-home-welcome {
	padding-bottom: 110px;
}
.pns-home-reviews {
	margin-top: 70px;
}

/* ---- Google reviews ---- */
.pns-reviews {
	--pns-star: #fbbc04;
	--pns-accent: #54d6eb;
	--pns-card-gap: 24px;
	color: var(--white-color);
}
.pns-reviews__head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 20px 24px;
	margin-bottom: 28px;
}
.pns-reviews__summary {
	display: flex;
	align-items: center;
	gap: 18px;
	min-width: 0;
}
.pns-reviews__logo {
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	padding: 10px;
	border-radius: 50%;
	background: var(--white-color);
}
.pns-reviews__title {
	margin: 0 0 4px;
	color: var(--white-color);
	font-size: 28px;
	line-height: 1.25;
}
.pns-reviews__score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 4px 10px;
	margin: 0;
	color: rgba(255, 255, 255, 0.85);
	font-size: 16px;
	line-height: 1.4;
}
.pns-reviews__rating {
	color: var(--white-color);
	font-size: 20px;
	font-weight: 800;
}
.pns-reviews__stars {
	color: var(--pns-star);
	font-size: 20px;
	letter-spacing: 2px;
	line-height: 1;
	white-space: nowrap;
}
.pns-reviews__nav {
	display: flex;
	gap: 10px;
}
/* every card already in view: nothing to step through */
.pns-reviews--fits .pns-reviews__nav {
	display: none;
}
.pns-reviews__btn {
	padding: 9px 18px;
	border: 1px solid rgba(255, 255, 255, 0.45);
	border-radius: 999px;
	background: transparent;
	color: var(--white-color);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.pns-reviews__btn:hover:not(:disabled) {
	border-color: var(--white-color);
	background: var(--white-color);
	color: var(--dark-color);
}
.pns-reviews__btn:disabled {
	opacity: 0.35;
	cursor: default;
}
.pns-reviews__btn:focus-visible,
.pns-reviews__more:focus-visible,
.pns-reviews__track:focus-visible {
	outline: 3px solid var(--pns-accent);
	outline-offset: 3px;
}
.pns-reviews__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: calc((100% - 2 * var(--pns-card-gap)) / 3);
	gap: var(--pns-card-gap);
	margin: 0;
	padding: 4px 0 16px;
	overflow-x: auto;
	list-style: none;
	scroll-behavior: smooth;
	scroll-snap-type: x mandatory;
	/* Previous / Next, a swipe or the arrow keys move it; a scrollbar under the cards adds nothing */
	scrollbar-width: none;
}
.pns-reviews__track::-webkit-scrollbar {
	display: none;
}
.pns-reviews__card {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-width: 0;
	padding: 24px;
	border-radius: 14px;
	background: var(--white-color);
	box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
	color: #333333;
	scroll-snap-align: start;
}
.pns-reviews__who {
	display: flex;
	align-items: center;
	gap: 12px;
}
/* the reviewer's initial sits under their picture, and is what shows when there is none */
.pns-reviews__avatar {
	position: relative;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	overflow: hidden;
	border-radius: 50%;
	background: var(--prime-gradient);
	color: var(--white-color);
	font-size: 19px;
	font-weight: 800;
	line-height: 1;
}
.pns-reviews__avatar::before {
	content: attr(data-initial);
}
.pns-reviews__avatar img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.pns-reviews__id {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	line-height: 1.35;
}
.pns-reviews__name {
	overflow: hidden;
	color: var(--dark-color);
	font-size: 16px;
	font-weight: 800;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.pns-reviews__date {
	color: #6b7280;
	font-size: 13px;
}
.pns-reviews__g {
	flex: 0 0 auto;
	width: 24px;
	height: 24px;
}
.pns-reviews__text {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	color: #333333;
	font-size: 15px;
	line-height: 1.65;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 5;
	line-clamp: 5;
}
.pns-reviews__text.is-open {
	display: block;
	overflow: visible;
	-webkit-line-clamp: unset;
	line-clamp: unset;
}
.pns-reviews__more {
	align-self: flex-start;
	padding: 0;
	border: 0;
	background: none;
	color: var(--primary-color);
	font-size: 14px;
	font-weight: 700;
	text-decoration: underline;
}
.pns-reviews__more[hidden] {
	display: none;
}

/* ---- the figures and the quick links ---- */
.pns-home-stats {
	padding: 80px 0;
	background: #f4f7fb;
}
.pns-home-stats__list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pns-home-stats__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 32px 20px;
	border: 1px solid #e3e9f2;
	border-radius: 14px;
	background: var(--white-color);
	text-align: center;
}
.pns-home-stats__figure {
	background: var(--prime-gradient);
	-webkit-background-clip: text;
	background-clip: text;
	color: var(--primary-color);
	font-size: 46px;
	font-weight: 800;
	line-height: 1.1;
	-webkit-text-fill-color: transparent;
}
.pns-home-stats__label {
	color: var(--dark-color);
	font-size: 17px;
	font-weight: 600;
	line-height: 1.4;
}
.pns-home-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 36px;
}
.pns-home-links__link {
	padding: 12px 24px;
	border: 1px solid var(--primary-color);
	border-radius: 999px;
	background: var(--white-color);
	color: var(--primary-color);
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}
.pns-home-links__link:hover {
	background: var(--primary-color);
	color: var(--white-color);
}
.pns-home-links__link:focus-visible,
.pns-home-faq__more:focus-visible {
	outline: 3px solid var(--primary-color);
	outline-offset: 3px;
}

/* ---- Get in touch ---- */
.pns-home-cta {
	padding: 70px 0;
	background: #09091d url("../images/cta-4-bg.jpg") center center / cover no-repeat;
	color: var(--white-color);
}
.pns-home-cta__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 36px 48px;
}
.pns-home-cta__lead {
	display: flex;
	align-items: center;
	gap: 24px;
}
.pns-home-cta__icon {
	flex: 0 0 auto;
	width: 72px;
	height: auto;
}
.pns-home-cta__title {
	margin: 0;
	color: var(--white-color);
	font-size: 38px;
	line-height: 1.25;
}
.pns-home-cta__contact {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.pns-home-cta__contact li {
	display: flex;
	align-items: center;
	gap: 14px;
	color: var(--white-color);
	font-size: 18px;
	font-weight: 600;
	line-height: 1.4;
}
.pns-home-cta__contact i {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	color: #54d6eb;
	font-size: 17px;
}
/* mainstyle darkens every link inside a list item (links in body copy, on white); these sit on the dark band */
.pns-home-cta__contact li a:not(.btn):not(.nav-link) {
	color: var(--white-color);
	text-decoration: underline;
	text-decoration-color: rgba(255, 255, 255, 0.45);
	text-underline-offset: 4px;
}
.pns-home-cta__contact li a:not(.btn):not(.nav-link):hover {
	color: #54d6eb;
}
.pns-home-cta__contact a:focus-visible {
	outline: 3px solid #54d6eb;
	outline-offset: 3px;
}

/* ---- Frequently Asked Questions ---- */
.pns-home-faq {
	padding: 90px 0 100px;
	background: var(--white-color);
}
.pns-home-faq__lead {
	display: flex;
	align-items: center;
	gap: 24px;
}
.pns-home-faq__icon {
	flex: 0 0 auto;
	width: 96px;
	height: auto;
}
.pns-home-faq__title {
	margin: 0;
	color: var(--dark-color);
	font-size: 40px;
	line-height: 1.2;
}
.pns-home-faq__list .accordion-item {
	margin-bottom: 14px;
	overflow: hidden;
	border: 1px solid #e3e9f2;
	border-radius: 12px;
	background: var(--white-color);
}
.pns-home-faq__list .accordion-header {
	margin: 0;
	padding: 0;
	font-size: 17px;
	line-height: 1.45;
}
.pns-home-faq__list .accordion-button {
	gap: 16px;
	padding: 20px 24px;
	border-radius: 0;
	background: var(--white-color);
	box-shadow: none;
	color: var(--dark-color);
	font-size: 17px;
	font-weight: 700;
	line-height: 1.45;
}
.pns-home-faq__list .accordion-button:not(.collapsed) {
	background: #f4f7fb;
	box-shadow: none;
	color: var(--primary-color);
}
.pns-home-faq__list .accordion-button:focus-visible {
	box-shadow: inset 0 0 0 3px rgba(0, 93, 224, 0.35);
}
.pns-home-faq__list .accordion-body {
	padding: 4px 24px 22px;
	background: #f4f7fb;
	color: #333333;
	font-size: 16px;
	line-height: 1.7;
}
.pns-home-faq__list .accordion-body p {
	margin: 0;
	color: inherit;
	font-size: inherit;
	line-height: inherit;
}
.pns-home-faq__more {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-top: 14px;
	padding: 13px 28px;
	border-radius: 999px;
	background: var(--primary-color);
	color: var(--white-color);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}
.pns-home-faq__more:hover {
	background: var(--prime-btn-hover);
	color: var(--white-color);
}

/* ---- narrower screens ---- */
@media (max-width: 991.98px) {
	.about-section-5.pns-home-welcome {
		padding-bottom: 80px;
	}
	.pns-reviews__track {
		grid-auto-columns: calc((100% - var(--pns-card-gap)) / 2);
	}
	.pns-home-cta__inner {
		flex-direction: column;
		align-items: flex-start;
	}
	.pns-home-faq__lead {
		margin-bottom: 30px;
	}
}
@media (max-width: 767.98px) {
	.pns-home-reviews {
		margin-top: 44px;
	}
	.pns-reviews {
		--pns-card-gap: 16px;
	}
	.pns-reviews__head {
		align-items: flex-start;
	}
	.pns-reviews__title {
		font-size: 22px;
	}
	.pns-reviews__track {
		grid-auto-columns: 86%;
	}
	.pns-reviews__card {
		padding: 20px;
	}
	.pns-home-stats {
		padding: 56px 0;
	}
	.pns-home-stats__list {
		grid-template-columns: 1fr;
		gap: 14px;
	}
	.pns-home-stats__item {
		padding: 24px 16px;
	}
	.pns-home-stats__figure {
		font-size: 38px;
	}
	.pns-home-links__link {
		flex: 1 1 100%;
		text-align: center;
	}
	.pns-home-cta {
		padding: 56px 0;
	}
	.pns-home-cta__title {
		font-size: 28px;
	}
	.pns-home-cta__icon {
		width: 56px;
	}
	.pns-home-cta__contact li {
		font-size: 16px;
	}
	.pns-home-faq {
		padding: 60px 0 70px;
	}
	.pns-home-faq__icon {
		width: 64px;
	}
	.pns-home-faq__title {
		font-size: 30px;
	}
}
@media (prefers-reduced-motion: reduce) {
	.pns-reviews__track {
		scroll-behavior: auto;
	}
}
