/* Clearly Amazing Google Reviews — scoped to .ca-gr so the theme is unaffected. Sizes use em (base 16px on .ca-gr).
   Look: the site's deep-blue band + green estimate button, then a masonry "wall" of review cards. */

.ca-gr {
	--ca-gr-blue: #005c97;
	--ca-gr-blue-dark: #003f69;
	--ca-gr-sky: #28aae1;
	--ca-gr-green: #8dc63f;
	--ca-gr-teal: #9dd8d9;
	--ca-gr-ink: #1f2933;
	--ca-gr-muted: #5b6770;
	--ca-gr-line: #e2eaf1;
	--ca-gr-bg: #f3f8fc;
	--ca-gr-star: #ffb400;
	--ca-gr-star-off: #d6dde3;
	--ca-gr-radius: 14px;
	margin: 0 0 3em;
	color: var(--ca-gr-ink);
	font-family: inherit;
	font-size: 16px; /* fixed base: the theme sets html{font-size:10px}, so rem would shrink everything */
	line-height: 1.55;
}

.ca-gr *,
.ca-gr *::before,
.ca-gr *::after { box-sizing: border-box; }

.ca-gr p { margin: 0; padding: 0; }

/* ── Summary band ────────────────────────────────────── */
.ca-gr__hero {
	position: relative;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25em 2em;
	margin: 0 0 2em;
	padding: clamp(1.5em, 1em + 2.5vw, 2.5em) clamp(1.25em, 0.75em + 3vw, 3em);
	overflow: hidden;
	border-radius: var(--ca-gr-radius);
	background:
		radial-gradient(120% 140% at 100% 0%, rgba(40, 170, 225, 0.45) 0%, rgba(40, 170, 225, 0) 55%),
		linear-gradient(135deg, var(--ca-gr-blue) 0%, var(--ca-gr-blue-dark) 100%);
	color: #fff;
}

/* soft water-ripple accent, echoing the site's wave headers */
.ca-gr__hero::after {
	content: "";
	position: absolute;
	right: -60px;
	bottom: -90px;
	width: 280px;
	height: 280px;
	border-radius: 50%;
	border: 28px solid rgba(255, 255, 255, 0.06);
	box-shadow: 0 0 0 36px rgba(255, 255, 255, 0.035);
	pointer-events: none;
}

.ca-gr__hero-main,
.ca-gr__actions { position: relative; z-index: 1; }

.ca-gr .ca-gr__heading {
	margin: 0 0 0.6em;
	padding: 0;
	color: #fff;
	font-size: clamp(1.4em, 1.1em + 1.2vw, 2em);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: normal;
	text-transform: none;
}

.ca-gr__rating {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.4em 1em;
}

.ca-gr__score {
	font-size: clamp(2.75em, 2.2em + 2.5vw, 3.75em);
	font-weight: 800;
	line-height: 1;
	color: #fff;
}

.ca-gr__rating-detail {
	display: flex;
	flex-direction: column;
	gap: 0.35em;
}

.ca-gr__count {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	color: rgba(255, 255, 255, 0.9);
	font-size: 0.95em;
}

.ca-gr__count .ca-gr__g {
	flex: none;
	padding: 3px;
	border-radius: 50%;
	background: #fff;
	width: 22px;
	height: 22px;
}

.ca-gr__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.6em;
}

.ca-gr a.ca-gr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 0.7em 1.4em;
	border: 2px solid transparent;
	border-radius: 4px;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.ca-gr a.ca-gr__btn--cta { background: var(--ca-gr-green); color: var(--ca-gr-blue-dark); } /* 5.3:1 contrast */
.ca-gr a.ca-gr__btn--cta:hover { background: #9fd456; color: var(--ca-gr-blue-dark); }
.ca-gr a.ca-gr__btn--ghost { border-color: rgba(255, 255, 255, 0.55); color: #fff; background: transparent; }
.ca-gr a.ca-gr__btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ── Stars ───────────────────────────────────────────── */
.ca-gr__stars {
	position: relative;
	display: inline-block;
	flex: none;
	width: 6em;
	height: 1.2em;
	background: var(--ca-gr-star-off);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E") left center / 1.2em 1.2em repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 1.5l2.6 5.3 5.9.9-4.3 4.1 1 5.8L10 14.9l-5.2 2.7 1-5.8L1.5 7.7l5.9-.9z'/%3E%3C/svg%3E") left center / 1.2em 1.2em repeat-x;
}

.ca-gr__stars--lg {
	width: 8.75em;
	height: 1.75em;
	background: rgba(255, 255, 255, 0.25);
	-webkit-mask-size: 1.75em 1.75em;
	mask-size: 1.75em 1.75em;
}

.ca-gr__stars-fill {
	position: absolute;
	inset: 0 auto 0 0;
	background: var(--ca-gr-star);
}

@media (forced-colors: active) {
	.ca-gr__stars { background: GrayText; }
	.ca-gr__stars-fill { background: CanvasText; }
}

/* ── Review grid (row-major, so "show more" appends below without reshuffling) ── */
.ca-gr ul.ca-gr__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
	align-items: stretch; /* equal-height cards per row; the name sits at the bottom */
	gap: 1.25em;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ca-gr li.ca-gr__item {
	display: flex;
	margin: 0;
	padding: 0;
	list-style: none;
}

.ca-gr li.ca-gr__item > .ca-gr__card { flex: 1; }

.ca-gr li.ca-gr__item::before,
.ca-gr li.ca-gr__item::marker { content: none; }

.ca-gr__card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.85em;
	padding: 1.4em 1.4em 1.15em;
	border: 1px solid var(--ca-gr-line);
	border-radius: var(--ca-gr-radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 45, 80, 0.04), 0 8px 24px rgba(0, 45, 80, 0.06);
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* oversized quote mark in the site's sky blue */
.ca-gr__card::before {
	content: "\201C";
	position: absolute;
	top: 6px; /* px: em here would scale with the glyph's own 5em size */
	right: 16px;
	color: var(--ca-gr-sky);
	opacity: 0.22;
	font-family: Georgia, "Times New Roman", serif;
	font-size: 5em;
	line-height: 1;
	pointer-events: none;
}

@media (hover: hover) {
	.ca-gr__card:hover {
		transform: translateY(-3px);
		box-shadow: 0 2px 4px rgba(0, 45, 80, 0.05), 0 16px 32px rgba(0, 45, 80, 0.1);
	}
}

@media (prefers-reduced-motion: reduce) {
	.ca-gr__card { transition: none; }
	.ca-gr__card:hover { transform: none; }
}

.ca-gr__card:focus { outline: 3px solid var(--ca-gr-sky); outline-offset: 2px; }

.ca-gr__card-top {
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.ca-gr__source { display: inline-flex; flex: none; }
.ca-gr__g { display: block; }

.ca-gr__text {
	position: relative;
	color: var(--ca-gr-ink);
	font-size: 1em;
	line-height: 1.65;
	overflow-wrap: anywhere;
}

/* Clamp only when the script is running (it reveals "Read more" when needed). */
.ca-gr.is-js .ca-gr__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 7;
	overflow: hidden;
}

.ca-gr.is-js .ca-gr__text.is-expanded {
	display: block;
	-webkit-line-clamp: unset;
	overflow: visible;
}

.ca-gr .ca-gr__text p { margin: 0 0 0.6em; }
.ca-gr .ca-gr__text p:last-child { margin-bottom: 0; }

.ca-gr button.ca-gr__toggle {
	align-self: flex-start;
	margin: -0.35em 0 0;
	padding: 0.25em 0;
	min-height: 40px;
	border: 0;
	background: none;
	box-shadow: none;
	color: var(--ca-gr-blue);
	font: inherit;
	font-size: 0.95em;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-transform: none;
	letter-spacing: normal;
	cursor: pointer;
}

.ca-gr button.ca-gr__toggle[hidden] { display: none; }

.ca-gr__by {
	display: flex;
	align-items: center;
	gap: 0.75em;
	margin-top: auto;
	padding-top: 0.9em;
	border-top: 1px solid var(--ca-gr-line);
}

.ca-gr__avatar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 2.5em;
	height: 2.5em;
	border-radius: 50%;
	color: #fff;
	font-weight: 700;
	font-size: 1.05em;
	background: var(--ca-gr-blue);
}

.ca-gr__avatar--1 { background: var(--ca-gr-sky); }
.ca-gr__avatar--2 { background: var(--ca-gr-green); color: var(--ca-gr-blue-dark); }
.ca-gr__avatar--3 { background: var(--ca-gr-teal); color: var(--ca-gr-blue-dark); }

.ca-gr__who { min-width: 0; flex: 1; }

.ca-gr .ca-gr__name {
	color: var(--ca-gr-ink);
	font-weight: 700;
	line-height: 1.3;
	overflow-wrap: anywhere;
}

.ca-gr .ca-gr__meta {
	color: var(--ca-gr-muted);
	font-size: 0.85em;
	line-height: 1.4;
}

/* ── Show more / states ─────────────────────────────── */
.ca-gr__more-wrap { margin-top: 1em; text-align: center; }

.ca-gr button.ca-gr__more {
	display: inline-block;
	min-height: 48px;
	padding: 0.75em 2.25em;
	border: 2px solid var(--ca-gr-blue);
	border-radius: 4px;
	background: #fff;
	box-shadow: none;
	color: var(--ca-gr-blue);
	font: inherit;
	font-size: 0.9em;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 1px;
	text-transform: uppercase;
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

@media (hover: hover) {
	.ca-gr button.ca-gr__more:hover { background: var(--ca-gr-blue); color: #fff; }
}
.ca-gr button.ca-gr__more[disabled] { opacity: 0.6; cursor: progress; }
.ca-gr button.ca-gr__more[hidden] { display: none; }

.ca-gr .ca-gr__status:empty { display: none; }
.ca-gr .ca-gr__status { margin: 0.75em 0 0; color: var(--ca-gr-muted); }

.ca-gr .ca-gr__empty {
	padding: 1.25em 1.5em;
	border-radius: var(--ca-gr-radius);
	background: var(--ca-gr-bg);
	color: var(--ca-gr-muted);
}

.ca-gr a:focus-visible,
.ca-gr button:focus-visible {
	outline: 3px solid var(--ca-gr-sky);
	outline-offset: 2px;
}

.ca-gr .screen-reader-text,
.ca-gr-badge .screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (max-width: 600px) {
	.ca-gr__actions { width: 100%; }
	.ca-gr a.ca-gr__btn { flex: 1 1 auto; }
}

/* ── Compact card (sidebar / column on market pages) ── */
.ca-gr--compact {
	max-width: 440px;
	margin: 0 auto 1.5em;
	overflow: hidden;
	border: 1px solid var(--ca-gr-line);
	border-radius: var(--ca-gr-radius);
	background: #fff;
	box-shadow: 0 1px 2px rgba(0, 45, 80, 0.04), 0 8px 24px rgba(0, 45, 80, 0.07);
	text-align: left;
}

.ca-gr__badge {
	padding: 1.1em 1.25em 1.15em;
	background:
		radial-gradient(120% 160% at 100% 0%, rgba(40, 170, 225, 0.45) 0%, rgba(40, 170, 225, 0) 60%),
		linear-gradient(135deg, var(--ca-gr-blue) 0%, var(--ca-gr-blue-dark) 100%);
	color: #fff;
}

.ca-gr .ca-gr__badge-label {
	display: flex;
	align-items: center;
	gap: 0.45em;
	margin: 0 0 0.45em;
	color: #fff;
	font-size: 0.8em;
	font-weight: 700;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.ca-gr__badge-label .ca-gr__g {
	flex: none;
	width: 22px;
	height: 22px;
	padding: 3px;
	border-radius: 50%;
	background: #fff;
}

.ca-gr__badge-row {
	display: flex;
	flex-wrap: wrap; /* narrow columns: stars drop under the score instead of being clipped */
	align-items: center;
	gap: 0.35em 0.85em;
}

.ca-gr--compact .ca-gr__score { font-size: 3em; }
.ca-gr--compact .ca-gr__count { font-size: 0.9em; }

.ca-gr__stars--sm {
	width: 5em;
	height: 1em;
	-webkit-mask-size: 1em 1em;
	mask-size: 1em 1em;
}

.ca-gr ul.ca-gr__mini {
	margin: 0;
	padding: 0 1.25em;
	list-style: none;
}

.ca-gr li.ca-gr__mini-item {
	margin: 0;
	padding: 1em 0;
	list-style: none;
	border-bottom: 1px solid var(--ca-gr-line);
}

.ca-gr li.ca-gr__mini-item::before,
.ca-gr li.ca-gr__mini-item::marker { content: none; }

.ca-gr .ca-gr__mini-text {
	margin: 0.4em 0 0.35em;
	color: var(--ca-gr-ink);
	font-size: 0.95em;
	line-height: 1.55;
	overflow-wrap: anywhere;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	overflow: hidden;
}

.ca-gr .ca-gr__mini-by {
	color: var(--ca-gr-muted);
	font-size: 0.85em;
}

.ca-gr .ca-gr__mini-name { color: var(--ca-gr-ink); font-weight: 700; }

.ca-gr a.ca-gr__all-link {
	display: block;
	padding: 0.9em 1.25em 1em;
	color: var(--ca-gr-blue);
	font-weight: 700;
	text-decoration: none;
}

.ca-gr a.ca-gr__all-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ca-gr a.ca-gr__all-link:focus-visible { outline: 3px solid var(--ca-gr-sky); outline-offset: -3px; } /* card clips outer outlines */

/* ── One-line rating badge (heroes, headers) ─────────── */
.ca-gr-badge {
	--ca-gr-star: #ffb400;
	--ca-gr-star-off: #d6dde3;
	display: inline-flex;
	flex-wrap: wrap; /* narrow screens: "stars + score" and "G + count" stack as two centered lines */
	align-items: center;
	justify-content: center;
	gap: 0.3em 0.75em;
	color: #1f2933;
	font-family: inherit;
	font-size: inherit;
	line-height: 1.3;
	text-decoration: none;
	vertical-align: middle;
}

.ca-gr-badge:hover .ca-gr-badge__count,
.ca-gr-badge:focus-visible .ca-gr-badge__count { text-decoration: underline; text-underline-offset: 3px; }
.ca-gr-badge:focus-visible { outline: 3px solid #28aae1; outline-offset: 3px; border-radius: 4px; }

.ca-gr-badge .ca-gr-badge__stars { width: 6em; height: 1.2em; -webkit-mask-size: 1.2em 1.2em; mask-size: 1.2em 1.2em; }
.ca-gr-badge__rating {
	display: inline-flex;
	align-items: center;
	gap: 0.45em;
	white-space: nowrap;
}

.ca-gr-badge__score { font-weight: 800; }

.ca-gr-badge__count {
	display: inline-flex;
	align-items: center;
	gap: 0.35em;
	font-weight: 600;
	white-space: nowrap;
}

.ca-gr-badge__count .ca-gr__g {
	flex: none;
	width: 1.25em;
	height: 1.25em;
	padding: 0.15em;
	border-radius: 50%;
	background: #fff;
}

/* Doubled class beats theme link rules like `.vc_row a` / `a:visited` (0,1,1). */
a.ca-gr-badge.ca-gr-badge,
a.ca-gr-badge.ca-gr-badge:visited,
a.ca-gr-badge.ca-gr-badge:hover,
a.ca-gr-badge.ca-gr-badge:focus { color: #1f2933; text-decoration: none; border: 0; box-shadow: none; }

.ca-gr-badge--dark { --ca-gr-star-off: rgba(255, 255, 255, 0.3); }
a.ca-gr-badge.ca-gr-badge--dark,
a.ca-gr-badge.ca-gr-badge--dark:visited,
a.ca-gr-badge.ca-gr-badge--dark:hover,
a.ca-gr-badge.ca-gr-badge--dark:focus { color: #fff; }

.ca-gr-admin-hint {
	padding: 0.75em 1em;
	border-left: 4px solid #d63638;
	background: #fcf0f1;
	color: #1d2327;
	font-size: 0.9em;
}
