/*
 * AZPC Reviews strip v2 (preview).
 * Uses design tokens defined by azpc-service-page-template with safe fallbacks.
 */

.azpc-reviews-strip {
	--azpcr-navy: var(--azpc-navy, #193f81);
	--azpcr-blue: var(--azpc-blue, #3c83ff);
	--azpcr-purple: var(--azpc-purple, #b048d1);
	--azpcr-deep-purple: var(--azpc-deep-purple, #702f84);
	--azpcr-yellow: var(--azpc-yellow, #ffd341);
	--azpcr-white: var(--azpc-white, #ffffff);
	--azpcr-gray: var(--azpc-gray, #646565);
	--azpcr-light: var(--azpc-light-gray, #e8e7e7);
	--azpcr-black: var(--azpc-black, #060707);
	--azpcr-star: #f5b301;
	--azpcr-surface-alt: #f6f8fc;
	--azpcr-google-blue: #4285f4;
	--azpcr-google-red: #ea4335;
	--azpcr-google-yellow: #fbbc05;
	--azpcr-google-green: #34a853;

	width: 100%;
	background: var(--azpcr-white);
	position: relative;
	padding-block: clamp(40px, 5vw, 64px);
	overflow: hidden;
	isolation: isolate;
}

/* Decorative brand accent — top hairline in the site's brand gradient. */
.azpc-reviews-strip::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg,
		var(--azpcr-blue) 0%,
		var(--azpcr-purple) 55%,
		var(--azpcr-deep-purple) 100%);
	z-index: 1;
}

.azpc-reviews-strip__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding-inline: clamp(18px, 3vw, 32px);
	position: relative;
	z-index: 2;
}

/* -------------------- Header -------------------- */

.azpc-reviews-strip__header {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 12px;
	margin-bottom: clamp(26px, 3vw, 36px);
}

.azpc-reviews-strip__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--azpcr-gray);
}

.azpc-reviews-strip__eyebrow-google {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--azpcr-navy);
	letter-spacing: 0.06em;
}

.azpc-reviews-strip__google-mark {
	display: inline-block;
	width: 16px;
	height: 16px;
	flex-shrink: 0;
}

.azpc-reviews-strip__rating-row {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

.azpc-reviews-strip__rating-value {
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: clamp(2.6rem, 5vw, 3.5rem);
	font-weight: 800;
	line-height: 0.95;
	color: var(--azpcr-navy);
	letter-spacing: -0.02em;
}

.azpc-reviews-strip__stars {
	display: inline-flex;
	gap: 3px;
	align-items: center;
}

.azpc-reviews-strip__stars svg {
	width: 28px;
	height: 28px;
	display: block;
}

.azpc-reviews-strip__meta {
	display: inline-flex;
	align-items: center;
	gap: 8px 14px;
	flex-wrap: wrap;
	justify-content: center;
	font-size: 0.95rem;
	color: var(--azpcr-gray);
	font-weight: 500;
}

.azpc-reviews-strip__meta strong {
	color: var(--azpcr-navy);
	font-weight: 800;
}

.azpc-reviews-strip__meta-sep {
	display: inline-block;
	width: 4px;
	height: 4px;
	border-radius: 999px;
	background: currentColor;
	opacity: 0.4;
}

.azpc-reviews-strip__meta a {
	color: var(--azpcr-blue);
	font-weight: 700;
	text-decoration: none;
	border-bottom: 2px solid transparent;
	transition: border-color 0.18s ease, color 0.18s ease;
}

.azpc-reviews-strip__meta a:hover,
.azpc-reviews-strip__meta a:focus-visible {
	color: var(--azpcr-deep-purple);
	border-bottom-color: currentColor;
	outline: none;
}

/* -------------------- Cards -------------------- */

.azpc-reviews-strip__cards {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: clamp(16px, 2vw, 22px);
	margin-bottom: clamp(18px, 2vw, 24px);
}

@media (max-width: 960px) {
	.azpc-reviews-strip__cards { grid-template-columns: 1fr 1fr; }
	.azpc-reviews-strip__cards > :nth-child(3) { display: none; }
}

@media (max-width: 640px) {
	.azpc-reviews-strip__cards { grid-template-columns: 1fr; }
	.azpc-reviews-strip__cards > :nth-child(2),
	.azpc-reviews-strip__cards > :nth-child(3) { display: none; }
}

.azpc-reviews-strip__card {
	position: relative;
	background: var(--azpcr-white);
	border: 1px solid rgb(25 63 129 / 12%);
	border-radius: 14px;
	padding: 22px 22px 18px;
	display: flex;
	flex-direction: column;
	gap: 14px;
	box-shadow: 0 1px 2px rgb(25 63 129 / 4%);
	transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
	overflow: hidden;
}

.azpc-reviews-strip__card::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg, var(--azpcr-blue), var(--azpcr-purple));
	opacity: 0.85;
}

.azpc-reviews-strip__card:hover {
	box-shadow: 0 10px 28px rgb(25 63 129 / 12%);
	transform: translateY(-2px);
	border-color: rgb(25 63 129 / 20%);
}

.azpc-reviews-strip__card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
}

.azpc-reviews-strip__card-stars {
	display: inline-flex;
	gap: 2px;
}

.azpc-reviews-strip__card-stars svg {
	width: 18px;
	height: 18px;
	display: block;
}

.azpc-reviews-strip__card-google {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--azpcr-gray);
	letter-spacing: 0.02em;
}

.azpc-reviews-strip__card-google svg {
	width: 14px;
	height: 14px;
	flex-shrink: 0;
}

/* Large decorative quote mark in the card background. */
.azpc-reviews-strip__card-quote {
	position: absolute;
	top: 12px;
	right: 14px;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 92px;
	line-height: 1;
	font-weight: 900;
	color: var(--azpcr-blue);
	opacity: 0.06;
	pointer-events: none;
	user-select: none;
	z-index: 0;
}

.azpc-reviews-strip__card-body {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 0.98rem;
	line-height: 1.6;
	color: var(--azpcr-black);
	flex: 1 1 auto;
	position: relative;
	z-index: 1;
}

.azpc-reviews-strip__card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	font-size: 0.85rem;
	color: var(--azpcr-gray);
	padding-top: 14px;
	border-top: 1px solid rgb(25 63 129 / 10%);
	position: relative;
	z-index: 1;
}

.azpc-reviews-strip__card-author {
	font-style: normal;
	font-weight: 700;
	color: var(--azpcr-navy);
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.azpc-reviews-strip__card-avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 30px;
	height: 30px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--azpcr-blue), var(--azpcr-purple));
	color: var(--azpcr-white);
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	line-height: 1;
	text-transform: uppercase;
	box-shadow: 0 2px 4px rgb(25 63 129 / 18%);
}

.azpc-reviews-strip__card-date {
	font-variant-numeric: tabular-nums;
	font-weight: 500;
}

/* -------------------- Disclosure -------------------- */

.azpc-reviews-strip__disclosure {
	text-align: center;
	font-size: 0.8rem;
	color: var(--azpcr-gray);
	max-width: 780px;
	margin: 0 auto;
	line-height: 1.55;
}

.azpc-reviews-strip__disclosure a {
	color: var(--azpcr-navy);
	text-decoration: underline;
	text-underline-offset: 2px;
	font-weight: 600;
}

.azpc-reviews-strip__disclosure a:hover {
	color: var(--azpcr-deep-purple);
}

/* -------------------- A11y / motion -------------------- */

@media (prefers-reduced-motion: reduce) {
	.azpc-reviews-strip__card { transition: none; }
	.azpc-reviews-strip__card:hover { transform: none; }
}

/* -------------------- Trust badge (inline, for hero placements) -------------------- */
/* v1.1.0 — Compact inline badge for hero sections.
   [G] ★★★★★ 4.9 · 806 Google Reviews
   Renders in one line on wide screens, wraps gracefully on narrow. */
.azpc-reviews-trust {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 10px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.10);
	line-height: 1;
	font-family: inherit;
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
	white-space: nowrap;
	transition: background-color 0.15s ease;
}
.azpc-reviews-trust:hover,
.azpc-reviews-trust:focus-visible {
	background: rgba(255, 255, 255, 0.18);
	text-decoration: none;
}
.azpc-reviews-trust:focus-visible {
	outline: 2px solid var(--azpcr-white);
	outline-offset: 2px;
}
.azpc-reviews-trust--light { color: var(--azpcr-white); }
.azpc-reviews-trust--dark {
	color: var(--azpcr-navy);
	background: rgba(25, 63, 129, 0.06);
}
.azpc-reviews-trust--dark:hover,
.azpc-reviews-trust--dark:focus-visible {
	background: rgba(25, 63, 129, 0.12);
}
.azpc-reviews-trust__g {
	display: inline-flex;
	align-items: center;
}
.azpc-reviews-trust__stars {
	display: inline-flex;
	align-items: center;
	gap: 1px;
	color: var(--azpcr-star);
}
.azpc-reviews-trust__stars svg {
	width: 14px;
	height: 14px;
	fill: currentColor;
}
.azpc-reviews-trust__rating {
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}
.azpc-reviews-trust__sep {
	opacity: 0.6;
}
.azpc-reviews-trust__count {
	font-weight: 500;
	opacity: 0.95;
}

@media (max-width: 480px) {
	.azpc-reviews-trust {
		font-size: 13px;
		gap: 6px;
		padding: 5px 9px;
	}
	.azpc-reviews-trust__stars svg { width: 13px; height: 13px; }
}

/* ---------------------------------------------------------------------------
 * v1.2.0 — Slim reviews bar (top-of-page placement).
 * A bigger version of the hero trust badge: G · rating · stars · count · CTA
 * on a single row. No review cards. The full strip with cards still lives at
 * the bottom of the page.
 * ------------------------------------------------------------------------- */
.azpc-reviews-bar {
	--azpcr-navy: var(--azpc-navy, #193f81);
	--azpcr-blue: var(--azpc-blue, #3c83ff);
	--azpcr-purple: var(--azpc-purple, #b048d1);
	--azpcr-deep-purple: var(--azpc-deep-purple, #702f84);
	--azpcr-white: var(--azpc-white, #ffffff);
	--azpcr-gray: var(--azpc-gray, #646565);
	--azpcr-star: #f5b301;

	width: 100%;
	background: var(--azpcr-white);
	position: relative;
	overflow: hidden;
	isolation: isolate;
	border-bottom: 1px solid rgb(25 63 129 / 8%);
}
.azpc-reviews-bar::before {
	content: "";
	position: absolute;
	inset: 0 0 auto 0;
	height: 3px;
	background: linear-gradient(90deg,
		var(--azpcr-blue) 0%,
		var(--azpcr-purple) 55%,
		var(--azpcr-deep-purple) 100%);
	z-index: 1;
}
.azpc-reviews-bar__link,
.azpc-reviews-bar__link:visited,
.page-content .azpc-reviews-bar__link,
.entry-content .azpc-reviews-bar__link {
	display: block;
	color: var(--azpcr-navy);
	text-decoration: none !important;
	padding: 18px clamp(18px, 3vw, 32px);
	transition: background 0.15s ease;
}
.azpc-reviews-bar__link *,
.page-content .azpc-reviews-bar__link *,
.entry-content .azpc-reviews-bar__link * {
	text-decoration: none !important;
}
.azpc-reviews-bar__link:hover,
.azpc-reviews-bar__link:focus-visible {
	background: linear-gradient(180deg, rgb(60 131 255 / 3%), rgb(255 255 255 / 0%));
}
.azpc-reviews-bar__link:focus-visible {
	outline: 2px solid var(--azpcr-blue);
	outline-offset: -2px;
}
.azpc-reviews-bar__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 14px 20px;
	position: relative;
	z-index: 2;
}
.azpc-reviews-bar__g {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 0;
}
.azpc-reviews-bar__g svg {
	width: 22px;
	height: 22px;
	display: block;
}
.azpc-reviews-bar__eyebrow {
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--azpcr-blue);
}
.azpc-reviews-bar__rating {
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: clamp(22px, 2.4vw, 28px);
	font-weight: 800;
	line-height: 1;
	color: var(--azpcr-navy);
	letter-spacing: -0.01em;
}
.azpc-reviews-bar__stars {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	color: var(--azpcr-star);
	line-height: 0;
}
.azpc-reviews-bar__stars svg {
	width: 20px;
	height: 20px;
	display: block;
	fill: currentColor;
}
.azpc-reviews-bar__count {
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 15px;
	font-weight: 500;
	color: var(--azpcr-navy);
}
.azpc-reviews-bar__count strong {
	font-weight: 800;
}
.azpc-reviews-bar__cta {
	font-family: Raleway, "Helvetica Neue", Helvetica, Arial, sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: var(--azpcr-blue);
	white-space: nowrap;
	transition: transform 0.15s ease;
}
.azpc-reviews-bar__link:hover .azpc-reviews-bar__cta,
.azpc-reviews-bar__link:focus-visible .azpc-reviews-bar__cta {
	transform: translateX(2px);
}
@media (max-width: 700px) {
	.azpc-reviews-bar__link { padding: 14px 16px; }
	.azpc-reviews-bar__inner { gap: 8px 14px; }
	.azpc-reviews-bar__eyebrow { flex-basis: 100%; text-align: center; font-size: 11px; }
	.azpc-reviews-bar__count { font-size: 13.5px; }
	.azpc-reviews-bar__cta { flex-basis: 100%; text-align: center; }
	.azpc-reviews-bar__rating { font-size: 22px; }
	.azpc-reviews-bar__stars svg { width: 18px; height: 18px; }
}
