/* ============================================================================
   reviews.css - Google reviews (section/sh-reviews.php)
   ----------------------------------------------------------------------------
   Hand-written, not harvested: the section has no screen in the design
   exports. Same vocabulary as authors.css - Figtree, the #101010 / #3A3A3A
   text pair, the sand card surface on #E6E3DC, the 16px radius - and Google's
   own star yellow for the ratings. Loads only on a screen that has reviews to
   show (functions.php), after inner-review.css.
   ============================================================================ */

.ff-gr {
	padding: 80px 0;
	background: #FFFFFF;
	font-family: 'Figtree', system-ui, sans-serif;
	color: #3A3A3A;
}

.ff-gr-inner {
	width: 100%;
	max-width: 1170px;
	margin: 0 auto;
	padding: 0 16px;
	box-sizing: border-box;
}

/* --------------------------------------------------------------- Heading */
.ff-gr-head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 32px;
	margin-bottom: 36px;
}

.ff-gr-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #5C6E75;
}

.ff-gr-title {
	margin: 0;
	font-size: 2.5rem;
	line-height: 1.15;
	font-weight: 600;
	color: #101010;
}

.ff-gr-intro {
	margin: 12px 0 0;
	font-size: 1.0625rem;
	line-height: 1.55;
}

.ff-gr-summary {
	flex: none;
	display: grid;
	grid-template-columns: auto auto;
	align-items: center;
	column-gap: 12px;
	row-gap: 6px;
	padding: 16px 20px;
	border: 1px solid #E6E3DC;
	border-radius: 16px;
	background: #FAF7F1;
	color: #101010;
	text-decoration: none;
	transition: border-color .2s ease, box-shadow .2s ease;
}

.ff-gr-summary:hover,
.ff-gr-summary:focus-visible {
	border-color: #6BD1F4;
	box-shadow: 0 4px 18px rgba(16, 16, 16, 0.08);
	color: #101010;
	text-decoration: none;
}

.ff-gr-score {
	font-size: 2.25rem;
	font-weight: 700;
	line-height: 1;
}

.ff-gr-summary-meta {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.ff-gr-count {
	font-size: 0.875rem;
	color: #5C6E75;
}

.ff-gr-summary-link {
	grid-column: 1 / -1;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1D9AD0;
}

.ff-gr-stars {
	color: #FBBC04;
	font-size: 1rem;
	letter-spacing: 2px;
	line-height: 1;
}

/* ------------------------------------------------------------------ Cards */
.ff-gr-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 20px;
	margin: 0;
	padding: 0;
	list-style: none;
	align-items: start;
}

.ff-gr-list--1 {
	grid-template-columns: minmax(0, 560px);
}

.ff-gr-list--2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ff-gr-card {
	margin: 0;
	padding: 24px;
	background: #FAF7F1;
	border: 1px solid #E6E3DC;
	border-radius: 16px;
	box-shadow: 0 2px 14px rgba(16, 16, 16, 0.05);
	display: flex;
}

/* Column, so each card's Google link sits at the same height in a row. */
.ff-gr-figure {
	margin: 0;
	display: flex;
	flex: 1;
	flex-direction: column;
}

.ff-gr-who {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ff-gr-avatar {
	flex: none;
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	font-weight: 700;
	font-size: 1.0625rem;
	color: #FFFFFF;
	background: #1D9AD0;
}

.ff-gr-avatar--1 { background: #22333B; }
.ff-gr-avatar--2 { background: #5C6E75; }
.ff-gr-avatar--3 { background: #3BB9E4; }
.ff-gr-avatar--4 { background: #0D1F26; }

.ff-gr-name-wrap {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.ff-gr-name {
	font-weight: 600;
	color: #101010;
	overflow-wrap: anywhere;
}

.ff-gr-age {
	font-size: 0.875rem;
	color: #5C6E75;
}

.ff-gr-source {
	margin-left: auto;
	display: inline-flex;
}

.ff-gr-rating {
	margin: 14px 0 10px;
}

.ff-gr-text {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: #3A3A3A;
}

.ff-gr-text p {
	margin: 0;
}

.ff-gr-more summary {
	display: inline-block;
	margin-top: 8px;
	font-weight: 600;
	color: #1D9AD0;
	cursor: pointer;
	list-style: none;
}

.ff-gr-more summary::-webkit-details-marker {
	display: none;
}

.ff-gr-more[open] summary {
	display: none;
}

/* The review's own Google link, at the foot of the card. */
.ff-gr-link {
	display: inline-flex;
	gap: 4px;
	align-self: flex-start;
	margin-top: auto;
	padding-top: 14px;
	font-size: 0.875rem;
	font-weight: 600;
	color: #1D9AD0;
	text-decoration: none;
}

.ff-gr-link:hover,
.ff-gr-link:focus-visible {
	text-decoration: underline;
}

.ff-gr-note {
	margin: 28px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #5C6E75;
}

.ff-gr-note a {
	font-weight: 600;
	color: #1D9AD0;
}

/* ------------------------------------------------------------- Responsive */
@media (max-width: 991px) {
	.ff-gr {
		padding: 64px 0;
	}

	.ff-gr-head {
		flex-direction: column;
		align-items: flex-start;
	}

	.ff-gr-title {
		font-size: 2rem;
	}

	.ff-gr-list,
	.ff-gr-list--2 {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.ff-gr {
		padding: 48px 0;
	}

	.ff-gr-title {
		font-size: 1.75rem;
	}

	.ff-gr-list,
	.ff-gr-list--1,
	.ff-gr-list--2 {
		grid-template-columns: minmax(0, 1fr);
	}

	.ff-gr-card {
		padding: 20px;
	}
}
