/*
 * TSG Google Reviews UI
 * Dark forest section, serif heading with gold rule, cream review cards in a stack.
 * Every selector is prefixed (.tsgr / .tsgr-card / .tsgr-modal) so theme and
 * Elementor styles cannot leak in or out.
 */

.tsgr,
.tsgr-modal {
	--tsgr-forest: #1F3B2D;
	--tsgr-sage: #4E6F57;
	--tsgr-cream: #F8F0E1;
	--tsgr-gold: #BFA880;
	--tsgr-gold-soft: rgba(191, 168, 128, 0.35);
	--tsgr-star: #E2AE45;
	--tsgr-ink: #5A605C;
	--tsgr-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
	--tsgr-sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	--tsgr-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	--tsgr-ease: cubic-bezier(0.22, 1, 0.36, 1);
	--tsgr-dur: 0.75s;
}

/* Section */

.tsgr {
	--tsgr-peek: 76px;
	position: relative;
	overflow: hidden;
	isolation: isolate;
	margin: 0;
	padding: 100px 50px 110px;
	background: var(--tsgr-forest);
	color: var(--tsgr-cream);
	font-family: var(--tsgr-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	border: 0 !important;
	box-shadow: none !important;
}

.tsgr *,
.tsgr *::before,
.tsgr *::after,
.tsgr-modal *,
.tsgr-modal *::before,
.tsgr-modal *::after {
	box-sizing: border-box;
}

.tsgr::before {
	content: '';
	position: absolute;
	right: -5%;
	bottom: -10%;
	width: 50vw;
	height: 50vw;
	background: radial-gradient(circle, rgba(191, 168, 128, 0.07) 0%, rgba(31, 59, 45, 0) 60%);
	pointer-events: none;
	z-index: -1;
}

.tsgr svg {
	display: block;
}

.tsgr__grid {
	position: relative;
	display: grid;
	grid-template-columns: 0.85fr 1.15fr;
	gap: 60px;
	align-items: center;
	max-width: 1300px;
	margin: 0 auto;
}

/* Left column */

.tsgr__left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.tsgr .tsgr__title {
	margin: 0 0 32px !important;
	padding: 0 0 0 20px !important;
	border: 0 !important;
	border-left: 3px solid var(--tsgr-gold) !important;
	font-family: var(--tsgr-serif) !important;
	font-size: 38.4px !important;
	font-weight: 500 !important;
	font-style: normal !important;
	line-height: 1.2 !important;
	letter-spacing: -0.5px !important;
	text-transform: none !important;
	color: var(--tsgr-cream) !important;
	background: none !important;
}

.tsgr .tsgr__title::before,
.tsgr .tsgr__title::after {
	content: none !important;
}

.tsgr__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-left: 24px;
}

.tsgr .tsgr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 44px;
	height: 44px;
	min-width: 0;
	min-height: 0;
	margin: 0;
	padding: 0;
	border: 1px solid var(--tsgr-gold-soft);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--tsgr-gold);
	line-height: 1;
	text-transform: none;
	letter-spacing: 0;
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--tsgr-ease);
	-webkit-tap-highlight-color: transparent;
}

.tsgr .tsgr__btn:hover {
	background: rgba(191, 168, 128, 0.12);
	border-color: var(--tsgr-gold);
	color: var(--tsgr-gold);
}

.tsgr .tsgr__btn:active {
	transform: scale(0.94);
}

.tsgr .tsgr__btn:focus {
	outline: none;
}

.tsgr .tsgr__btn:focus-visible {
	outline: 2px solid var(--tsgr-gold);
	outline-offset: 3px;
}

.tsgr__btn svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.tsgr__count {
	display: inline-flex;
	align-items: baseline;
	gap: 6px;
	margin-left: 14px;
	font-family: var(--tsgr-mono);
	font-size: 11px;
	letter-spacing: 1.5px;
	color: rgba(248, 240, 225, 0.45);
}

.tsgr__count-cur {
	color: var(--tsgr-cream);
}

.tsgr__bar {
	position: relative;
	display: block;
	width: 64px;
	height: 1px;
	margin-left: 8px;
	overflow: hidden;
	background: rgba(191, 168, 128, 0.25);
}

.tsgr__bar span {
	position: absolute;
	inset: 0;
	display: block;
	background: var(--tsgr-gold);
	transform: scaleX(0);
	transform-origin: 0 50%;
}

.tsgr.is-playing .tsgr__bar span {
	animation: tsgr-progress var(--tsgr-interval, 6000ms) linear forwards;
}

.tsgr.is-paused .tsgr__bar span {
	animation-play-state: paused;
}

@keyframes tsgr-progress {
	to {
		transform: scaleX(1);
	}
}

/* Google rating summary */

.tsgr__summary {
	max-width: 440px;
	margin: 44px 0 0 24px;
	padding-top: 30px;
	border-top: 1px solid rgba(191, 168, 128, 0.2);
}

.tsgr__brand {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tsgr__g {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: var(--tsgr-cream);
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
}

.tsgr__g svg {
	width: 22px;
	height: 22px;
}

.tsgr__brand-text {
	min-width: 0;
}

.tsgr__score {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 10px;
}

.tsgr__score-num {
	font-family: var(--tsgr-serif);
	font-size: 34px;
	font-weight: 500;
	line-height: 1;
	color: var(--tsgr-cream);
}

.tsgr__score-max {
	margin-left: -6px;
	font-size: 14px;
	color: rgba(248, 240, 225, 0.5);
}

.tsgr__score-label {
	font-family: var(--tsgr-serif);
	font-size: 24px;
	line-height: 1.1;
	color: var(--tsgr-cream);
}

.tsgr .tsgr__based {
	margin: 8px 0 0 !important;
	padding: 0 !important;
	font-family: var(--tsgr-sans) !important;
	font-size: 14px !important;
	line-height: 1.5 !important;
	color: rgba(248, 240, 225, 0.68) !important;
}

.tsgr__ctas {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 24px;
	margin-top: 24px;
}

.tsgr .tsgr__cta {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 22px;
	border: 1px solid var(--tsgr-gold);
	border-radius: 4px;
	background: var(--tsgr-gold);
	box-shadow: none;
	font-family: var(--tsgr-sans);
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.2px;
	text-decoration: none !important;
	color: var(--tsgr-forest) !important;
	transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s var(--tsgr-ease);
}

.tsgr .tsgr__cta:hover,
.tsgr .tsgr__cta:focus-visible {
	background: #CDB993;
	border-color: #CDB993;
	color: var(--tsgr-forest) !important;
	transform: translateY(-1px);
}

.tsgr .tsgr__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 0 3px;
	border-bottom: 1px solid rgba(191, 168, 128, 0.45);
	font-family: var(--tsgr-sans);
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	text-decoration: none !important;
	color: rgba(248, 240, 225, 0.85) !important;
	transition: color 0.3s ease, border-color 0.3s ease;
}

.tsgr .tsgr__link:hover,
.tsgr .tsgr__link:focus-visible {
	border-color: var(--tsgr-gold);
	color: var(--tsgr-cream) !important;
}

.tsgr__cta svg,
.tsgr__link svg,
.tsgr-card__more svg,
.tsgr-modal__link svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Stars (fractional fill through a clipped overlay) */

.tsgr-stars {
	position: relative;
	display: inline-flex;
	flex: none;
	line-height: 0;
	vertical-align: middle;
}

.tsgr-stars__base,
.tsgr-stars__fill {
	display: inline-flex;
	gap: 2px;
	white-space: nowrap;
}

.tsgr-stars__base {
	color: rgba(31, 59, 45, 0.16);
}

.tsgr__summary .tsgr-stars__base {
	color: rgba(248, 240, 225, 0.2);
}

.tsgr-stars__fill {
	position: absolute;
	top: 0;
	left: 0;
	width: var(--tsgr-fill, 100%);
	overflow: hidden;
	color: var(--tsgr-star);
}

.tsgr-stars svg {
	display: block;
	flex: none;
	width: 14px;
	height: 14px;
	fill: currentColor;
}

.tsgr-stars--lg svg {
	width: 17px;
	height: 17px;
}

/* Card stack
 * All cards share one grid cell, so the stack is as tall as the tallest
 * card and every card gets the same height (no JS measuring).
 * The next card peeks out underneath by --tsgr-peek.
 */

.tsgr__right {
	position: relative;
	min-width: 0;
}

.tsgr__stack {
	position: relative;
	display: grid;
	padding-bottom: var(--tsgr-peek);
	touch-action: pan-y;
}

.tsgr-card {
	position: relative;
	grid-area: 1 / 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 36px;
	border-radius: 6px;
	background: var(--tsgr-cream);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
	color: var(--tsgr-forest);
	transform-origin: 50% 100%;
	transform: translateY(calc(var(--tsgr-peek) * 1.6)) scale(0.84);
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition:
		transform var(--tsgr-dur) var(--tsgr-ease),
		opacity 0.6s ease,
		visibility 0s linear var(--tsgr-dur);
}

.tsgr-card.is-active {
	transform: none;
	opacity: 1;
	visibility: visible;
	z-index: 3;
	transition-delay: 0s;
}

.tsgr-card.is-next {
	transform: translateY(var(--tsgr-peek)) scale(0.9);
	opacity: 0.25;
	visibility: visible;
	z-index: 2;
	transition-delay: 0s;
}

.tsgr-card.is-prev {
	transform: translateY(-14%) scale(1.02);
	opacity: 0;
	z-index: 4;
}

.tsgr--single .tsgr__stack {
	padding-bottom: 0;
}

/* Card content (also used inside the dialog) */

.tsgr-card__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 0 0 20px;
	padding: 0;
	border: 0;
	background: none;
}

.tsgr-card__avatar {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 56px;
	height: 56px;
	overflow: hidden;
	border: 1px solid rgba(31, 59, 45, 0.15);
	border-radius: 50%;
	background: #EADFC9;
}

.tsgr-card__avatar img {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	border-radius: 50% !important;
	object-fit: cover;
}

.tsgr-card__initials {
	display: none;
	font-family: var(--tsgr-serif);
	font-size: 19px;
	font-weight: 500;
	line-height: 1;
	color: var(--tsgr-forest);
}

.tsgr-card__avatar.is-broken img {
	display: none !important;
}

.tsgr-card__avatar.is-broken .tsgr-card__initials {
	display: block;
}

.tsgr-card__meta {
	flex: 1;
	min-width: 0;
}

.tsgr .tsgr-card__name,
.tsgr-modal .tsgr-card__name {
	margin: 0 0 6px !important;
	padding: 0 !important;
	border: 0 !important;
	font-family: var(--tsgr-sans) !important;
	font-size: 1.05rem !important;
	font-weight: 600 !important;
	font-style: normal !important;
	line-height: 1.3 !important;
	letter-spacing: 0 !important;
	text-transform: none !important;
	color: var(--tsgr-forest) !important;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tsgr .tsgr-card__name::before,
.tsgr .tsgr-card__name::after,
.tsgr-modal .tsgr-card__name::before,
.tsgr-modal .tsgr-card__name::after {
	content: none !important;
}

.tsgr-card__sub {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px 12px;
}

.tsgr-card__date,
.tsgr-card__via {
	font-family: var(--tsgr-mono);
	font-size: 10px;
	font-weight: 400;
	line-height: 1.4;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tsgr-sage);
}

.tsgr-card__g {
	display: inline-flex;
	flex: none;
	align-self: flex-start;
	width: 24px;
	height: 24px;
}

.tsgr-card__g svg {
	width: 24px;
	height: 24px;
}

.tsgr-card__divider {
	flex: none;
	height: 1px;
	margin: 0 0 20px;
	background: linear-gradient(90deg, rgba(31, 59, 45, 0.12), transparent);
}

.tsgr .tsgr-card__text {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: var(--tsgr-lines, 6);
	line-clamp: var(--tsgr-lines, 6);
	overflow: hidden;
	margin: 0;
	padding: 0;
	font-family: var(--tsgr-sans) !important;
	font-size: 15.5px !important;
	font-weight: 400 !important;
	font-style: italic !important;
	line-height: 1.95 !important;
	letter-spacing: 0 !important;
	color: var(--tsgr-ink) !important;
	overflow-wrap: anywhere;
}

.tsgr-card__text mark,
.tsgr-modal__text mark {
	padding: 0 2px;
	background: rgba(191, 168, 128, 0.28);
	color: inherit;
}

.tsgr-card__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: auto;
	padding-top: 20px;
}

.tsgr .tsgr-card__more {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin: 0;
	padding: 0 0 3px;
	border: 0;
	border-bottom: 1px solid rgba(31, 59, 45, 0.3);
	border-radius: 0;
	background: none;
	box-shadow: none;
	font-family: var(--tsgr-sans);
	font-size: 13px;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.2px;
	text-transform: none;
	color: var(--tsgr-forest);
	cursor: pointer;
	transition: border-color 0.3s ease, color 0.3s ease;
}

.tsgr .tsgr-card__more:hover,
.tsgr .tsgr-card__more:focus-visible {
	border-color: var(--tsgr-forest);
	background: none;
	color: var(--tsgr-forest);
}

.tsgr .tsgr-card__more[hidden] {
	display: none !important;
}

.tsgr-card__foot .tsgr-card__via {
	margin-left: auto;
	color: rgba(78, 111, 87, 0.75);
}

/* Full review dialog (moved to <body> by the script) */

.tsgr-modal {
	position: fixed;
	inset: 0;
	width: min(640px, calc(100vw - 32px));
	max-width: none;
	max-height: min(82vh, 760px);
	margin: auto;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 8px;
	background: var(--tsgr-cream);
	box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
	color: var(--tsgr-forest);
	font-family: var(--tsgr-sans);
}

.tsgr-modal:not([open]) {
	display: none;
}

.tsgr-modal[open] {
	animation: tsgr-modal-in 0.4s var(--tsgr-ease);
}

.tsgr-modal::backdrop {
	background: rgba(12, 26, 19, 0.62);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.tsgr-modal[open]::backdrop {
	animation: tsgr-fade 0.4s ease;
}

@keyframes tsgr-modal-in {
	from {
		opacity: 0;
		transform: translateY(18px) scale(0.98);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes tsgr-fade {
	from {
		opacity: 0;
	}
}

.tsgr-modal__inner {
	position: relative;
	max-height: inherit;
	padding: 40px 40px 32px;
	overflow-y: auto;
	overscroll-behavior: contain;
}

.tsgr-modal .tsgr-modal__close {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	border: 1px solid rgba(31, 59, 45, 0.18);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--tsgr-forest);
	cursor: pointer;
	transition: background-color 0.3s ease, border-color 0.3s ease;
}

.tsgr-modal .tsgr-modal__close:hover,
.tsgr-modal .tsgr-modal__close:focus-visible {
	background: rgba(31, 59, 45, 0.06);
	border-color: rgba(31, 59, 45, 0.4);
	color: var(--tsgr-forest);
}

.tsgr-modal__close svg {
	display: block;
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.6;
	stroke-linecap: round;
}

.tsgr-modal .tsgr-card__head {
	padding-right: 44px;
}

.tsgr-modal .tsgr-card__g {
	display: none;
}

.tsgr-modal .tsgr-card__name {
	white-space: normal;
}

.tsgr-modal svg {
	display: block;
}

.tsgr-modal .tsgr-modal__text {
	margin: 0;
	font-family: var(--tsgr-sans) !important;
	font-size: 16px !important;
	font-style: italic !important;
	line-height: 1.9 !important;
	color: #4F5551 !important;
	overflow-wrap: anywhere;
}

.tsgr-modal__reply {
	margin-top: 24px;
	padding: 16px 20px;
	border-left: 2px solid var(--tsgr-gold);
	border-radius: 0 4px 4px 0;
	background: rgba(31, 59, 45, 0.06);
	font-size: 14.5px;
	line-height: 1.75;
	color: var(--tsgr-ink);
}

.tsgr-modal .tsgr-modal__reply-title {
	margin: 0 0 6px !important;
	font-family: var(--tsgr-mono) !important;
	font-size: 10px !important;
	line-height: 1.4 !important;
	letter-spacing: 1px;
	text-transform: uppercase;
	color: var(--tsgr-sage) !important;
}

.tsgr-modal__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 28px;
	padding-top: 18px;
	border-top: 1px solid rgba(31, 59, 45, 0.1);
}

.tsgr-modal .tsgr-modal__link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0 0 3px;
	border-bottom: 1px solid rgba(31, 59, 45, 0.3);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none !important;
	color: var(--tsgr-forest) !important;
}

.tsgr-modal .tsgr-modal__link[hidden] {
	display: none !important;
}

/* Responsive */

@media (max-width: 1024px) {
	.tsgr {
		padding: 90px 36px 100px;
	}

	.tsgr__grid {
		gap: 40px;
	}

	.tsgr .tsgr__title {
		font-size: 34px !important;
	}

	.tsgr-card {
		padding: 32px 28px;
	}
}

/* One column: heading, cards, arrows, Google rating */
@media (max-width: 900px) {
	.tsgr {
		--tsgr-peek: 34px;
		padding: 72px 20px 80px;
	}

	.tsgr__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 0;
	}

	.tsgr__left {
		display: contents;
	}

	.tsgr .tsgr__title {
		order: 1;
		margin-bottom: 28px !important;
		padding-left: 16px !important;
		font-size: 1.8rem !important;
	}

	.tsgr__right {
		order: 2;
	}

	.tsgr__nav {
		order: 3;
		margin-top: 24px;
		padding-left: 0;
	}

	.tsgr__summary {
		order: 4;
		max-width: none;
		margin: 36px 0 0;
	}

	.tsgr-card {
		padding: 26px 22px;
	}

	.tsgr-card__head {
		gap: 14px;
	}

	.tsgr-card__avatar {
		width: 50px;
		height: 50px;
	}
}

@media (max-width: 480px) {
	.tsgr .tsgr-card__text {
		font-size: 15px !important;
		line-height: 1.85 !important;
	}

	.tsgr-card__g,
	.tsgr-card__g svg {
		width: 20px;
		height: 20px;
	}

	.tsgr-modal__inner {
		padding: 32px 22px 24px;
	}
}

/* Motion on every device
 * The site owner wants the animation to run even when the OS asks for
 * reduced motion. Elementor resets "html *" transitions in that case, so the
 * values are restored here with higher specificity. Use the shortcode
 * attribute respect_reduced_motion="yes" to turn this off.
 */
@media (prefers-reduced-motion: reduce) {
	.tsgr--force-motion .tsgr-card {
		transition-property: transform, opacity, visibility !important;
		transition-duration: var(--tsgr-dur), 0.6s, 0s !important;
		transition-delay: 0s, 0s, var(--tsgr-dur) !important;
	}

	.tsgr--force-motion .tsgr-card.is-active,
	.tsgr--force-motion .tsgr-card.is-next {
		transition-delay: 0s !important;
	}

	.tsgr--force-motion .tsgr__btn,
	.tsgr--force-motion .tsgr__cta,
	.tsgr--force-motion .tsgr__link,
	.tsgr--force-motion .tsgr-card__more {
		transition-duration: 0.3s !important;
		transition-delay: 0s !important;
	}

	.tsgr--force-motion.is-playing .tsgr__bar span {
		animation-duration: var(--tsgr-interval, 6000ms) !important;
	}

	.tsgr:not(.tsgr--force-motion) .tsgr-card {
		transition-duration: 0.01s !important;
	}
}
