/**
 * HH Google Reviews — frontend
 * Matches Hennah Haywood brand tokens (dark/light/border/muted-blue) + niche carousel nav.
 */

.hh-gr {
	--hh-gr-bg: #dad2ca;
	--hh-gr-surface: rgba(88, 89, 85, 0.06);
	--hh-gr-surface-elevated: #e8e2db;
	--hh-gr-text: #585955;
	--hh-gr-text-muted: rgba(88, 89, 85, 0.68);
	--hh-gr-border: rgba(88, 89, 85, 0.2);
	--hh-gr-accent: #7f9bb5;
	--hh-gr-star: #fbbc04;
	--hh-gr-star-empty: rgba(88, 89, 85, 0.22);
	--hh-gr-google-blue: #4285f4;
	--hh-gr-font-serif: "Playfair Display", serif;
	--hh-gr-font-sans: "Google Sans Flex", sans-serif;
	--hh-gr-pad-x: 1rem;
	--hh-gr-content-w: 90%;
	--hh-gr-max: 1440px;
	--hh-gr-gutter: max(
		var(--hh-gr-pad-x),
		calc((100vw - min(var(--hh-gr-content-w), var(--hh-gr-max))) / 2 + var(--hh-gr-pad-x))
	);

	color: var(--hh-gr-text);
	font-family: var(--hh-gr-font-sans);
	background: var(--hh-gr-bg);
	padding: 5rem 0;
	overflow-x: clip;
}

@media (min-width: 768px) {
	.hh-gr {
		--hh-gr-pad-x: 3rem;
		--hh-gr-content-w: 80%;
		padding: 8rem 0;
	}
}

/* Contained header / footer (theme hh-container pattern) */
.hh-gr__inner {
	width: var(--hh-gr-content-w);
	max-width: var(--hh-gr-max);
	margin: 0 auto;
	padding-left: var(--hh-gr-pad-x);
	padding-right: var(--hh-gr-pad-x);
	box-sizing: border-box;
}

.hh-gr__header {
	display: grid;
	gap: 2rem;
	margin-bottom: 2.5rem;
}

@media (min-width: 900px) {
	.hh-gr__header {
		grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.9fr);
		align-items: end;
		gap: 3rem;
	}
}

.hh-gr__brand {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	margin-bottom: 0.85rem;
}

.hh-gr-google-logo {
	flex-shrink: 0;
}

.hh-gr__brand-label {
	margin: 0;
	font-size: 0.7rem;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	font-weight: 600;
	color: var(--hh-gr-text-muted);
}

.hh-gr__title {
	margin: 0;
	font-family: var(--hh-gr-font-serif);
	font-size: clamp(2.25rem, 4vw, 3.75rem);
	font-weight: 700;
	line-height: 1.1;
	color: var(--hh-gr-text);
}

.hh-gr__place {
	margin: 0.75rem 0 0;
	font-weight: 300;
	font-size: 1.05rem;
	line-height: 1.5;
	color: var(--hh-gr-text-muted);
}

.hh-gr__score-panel {
	display: flex;
	flex-direction: column;
	gap: 1.15rem;
}

.hh-gr__score {
	display: flex;
	flex-direction: column;
	gap: 0.4rem;
}

.hh-gr__score-main {
	display: flex;
	align-items: center;
	gap: 0.65rem;
	flex-wrap: wrap;
}

/* Score number: body/UI sans — never title/Playfair */
.hh-gr__score-value {
	font-family: var(--hh-gr-font-sans);
	font-size: 2.75rem;
	font-weight: 700;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--hh-gr-text);
}

.hh-gr__score-count {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 300;
	color: var(--hh-gr-text-muted);
}

.hh-gr__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.hh-gr__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 1rem 2rem;
	font: inherit;
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	text-decoration: none;
	border: 1px solid var(--hh-gr-text);
	transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
	box-sizing: border-box;
}

.hh-gr__btn--primary {
	background: var(--hh-gr-text);
	color: #fff;
	border-color: var(--hh-gr-text);
}

.hh-gr__btn--primary:hover,
.hh-gr__btn--primary:focus-visible {
	background: transparent;
	color: var(--hh-gr-text);
}

.hh-gr__btn--secondary {
	background: rgba(255, 255, 255, 0.8);
	color: var(--hh-gr-text);
}

.hh-gr__btn--secondary:hover,
.hh-gr__btn--secondary:focus-visible {
	background: var(--hh-gr-text);
	color: #fff;
}

.hh-gr-stars {
	display: inline-flex;
	gap: 0.1rem;
	line-height: 1;
}

.hh-gr-star {
	font-size: 1.05rem;
	color: var(--hh-gr-star);
}

.hh-gr-star--empty {
	color: var(--hh-gr-star-empty);
}

.hh-gr-star--half {
	opacity: 0.7;
}

/* Full-bleed carousel track */
.hh-gr__bleed {
	width: 100%;
	margin-bottom: 0.25rem;
}

.hh-gr__carousel {
	position: relative;
	width: 100%;
	overflow: hidden;
	padding-left: var(--hh-gr-gutter);
	padding-right: var(--hh-gr-gutter);
	box-sizing: border-box;
}

.hh-gr__carousel .swiper-wrapper {
	align-items: stretch;
}

.hh-gr__card {
	height: auto;
	background: var(--hh-gr-surface-elevated);
	border: 1px solid var(--hh-gr-border);
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.9rem;
	box-sizing: border-box;
	box-shadow: none;
}

.hh-gr__card-top {
	display: flex;
	gap: 0.75rem;
	align-items: center;
}

.hh-gr__card-meta {
	min-width: 0;
}

.hh-gr__avatar {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	background: rgba(88, 89, 85, 0.1);
	flex-shrink: 0;
}

.hh-gr__avatar--fallback {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-weight: 600;
	color: var(--hh-gr-text);
	background: rgba(88, 89, 85, 0.12);
}

.hh-gr__author {
	margin: 0;
	font-weight: 600;
	font-size: 0.95rem;
	font-family: var(--hh-gr-font-sans);
}

.hh-gr__time {
	margin: 0.2rem 0 0;
	font-size: 0.75rem;
	font-weight: 300;
	color: var(--hh-gr-text-muted);
	letter-spacing: 0.02em;
}

.hh-gr__time time {
	font: inherit;
	color: inherit;
}

.hh-gr__card-rating {
	line-height: 1;
}

.hh-gr__text {
	flex: 1 1 auto;
}

.hh-gr__text-body {
	margin: 0;
	font-weight: 300;
	line-height: 1.65;
	color: var(--hh-gr-text);
}

.hh-gr__read-more {
	appearance: none;
	background: transparent;
	border: 0;
	padding: 0;
	margin: 0.5rem 0 0;
	color: var(--hh-gr-text);
	font: inherit;
	font-size: 0.7rem;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	cursor: pointer;
	width: fit-content;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.hh-gr__read-more:hover,
.hh-gr__read-more:focus-visible {
	color: var(--hh-gr-accent);
}

/* View full review — bottom right, theme link + arrow */
.hh-gr__view {
	appearance: none;
	background: transparent;
	border: 0;
	border-bottom: 1px solid var(--hh-gr-border);
	padding: 0 0 0.25rem;
	margin: auto 0 0 auto;
	color: var(--hh-gr-text);
	font: inherit;
	font-size: 9px;
	font-weight: 500;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	align-self: flex-end;
	transition: border-color 0.3s ease, color 0.3s ease;
}

.hh-gr__view .la {
	font-size: 0.95rem;
	line-height: 1;
}

.hh-gr__view:hover,
.hh-gr__view:focus-visible {
	border-bottom-color: var(--hh-gr-text);
	color: var(--hh-gr-text);
}

/* Niche-style circular nav, right-aligned in content gutter */
.hh-gr__nav-wrap {
	width: var(--hh-gr-content-w);
	max-width: var(--hh-gr-max);
	margin: 1.5rem auto 0;
	padding-left: var(--hh-gr-pad-x);
	padding-right: var(--hh-gr-pad-x);
	box-sizing: border-box;
}

.hh-gr__nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 1rem;
}

.hh-gr__nav-btn {
	appearance: none;
	position: static;
	width: 3rem;
	height: 3rem;
	margin: 0;
	padding: 0;
	border: 1px solid var(--hh-gr-border);
	border-radius: 50%;
	/* Faint surface so outline stays visible on section background */
	background: rgba(255, 255, 255, 0.8);
	color: var(--hh-gr-text);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.hh-gr__nav-btn::after {
	display: none;
}

.hh-gr__nav-btn:hover,
.hh-gr__nav-btn:focus-visible {
	background: var(--hh-gr-text);
	border-color: var(--hh-gr-text);
	color: #fff;
}

.hh-gr__nav-btn.swiper-button-disabled {
	opacity: 0.35;
	pointer-events: none;
}

.hh-gr__footer {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem 1.5rem;
	margin-top: 1.75rem;
	padding-top: 1rem;
	border-top: 1px solid var(--hh-gr-border);
	font-size: 0.8rem;
	color: var(--hh-gr-text-muted);
}

.hh-gr__attribution {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.55rem;
	min-width: 0;
}

.hh-gr__attribution a {
	color: var(--hh-gr-google-blue);
}

.hh-gr__footer .hh-gr__actions {
	margin-left: auto;
}

@media (max-width: 599px) {
	.hh-gr__footer {
		flex-direction: column;
		align-items: flex-start;
	}

	.hh-gr__footer .hh-gr__actions {
		margin-left: 0;
		width: 100%;
	}
}

.hh-gr__modal {
	border: 1px solid var(--hh-gr-border);
	padding: 0;
	max-width: min(92vw, 32rem);
	background: var(--hh-gr-surface-elevated);
	color: var(--hh-gr-text);
	font-family: var(--hh-gr-font-sans);
	box-shadow: 0 24px 60px rgba(40, 40, 36, 0.18);
}

.hh-gr__modal::backdrop {
	background: rgba(40, 40, 36, 0.45);
}

.hh-gr__modal-inner {
	padding: 1.75rem 1.5rem;
	display: flex;
	flex-direction: column;
	gap: 0.85rem;
	position: relative;
}

.hh-gr__modal-close {
	position: absolute;
	top: 0.65rem;
	right: 0.75rem;
	border: 0;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: var(--hh-gr-text-muted);
}

.hh-gr__modal-text {
	margin: 0;
	font-weight: 300;
	line-height: 1.7;
}

.hh-gr__modal-attr {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem;
	margin: 0.5rem 0 0;
	font-size: 0.8rem;
	color: var(--hh-gr-text-muted);
}

.hh-gr__modal-attr a {
	color: var(--hh-gr-google-blue);
}

.hh-gr .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

@media (prefers-reduced-motion: reduce) {
	.hh-gr * {
		animation: none !important;
		transition: none !important;
		scroll-behavior: auto !important;
	}
}
