/* Customer Testimonials page (reviews.php) - Google reviews via Modules/google-reviews */
.gr-page {
	/* Nissan red on white; "Nissan" wording stays #000 in the brand font (compliance). */
	--gr-red: #c3002f;
	--gr-red-dark: #a10027;
	--gr-ink: #000000;
	--gr-text: #222222;
	--gr-muted: #5f6368;
	--gr-line: #e6e6e6;
	--gr-paper: #f5f5f7;
	--gr-star: #f4b400;
	--gr-star-off: #d9d9d9;
	color: var(--gr-text);
	background: #fff;
	overflow-x: hidden;
}
.gr-page *, .gr-page *::before, .gr-page *::after { box-sizing: border-box; }
.gr-wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.gr-page .gr-store { color: #000; font-family: "Nissan Brand Regular", sans-serif; }

/* Hero + rating summary */
.gr-hero { background: linear-gradient(180deg, #fff 0%, var(--gr-paper) 100%); border-top: 4px solid var(--gr-red); padding: 56px 0 52px; }
.gr-hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: center; }
.gr-eyebrow { color: var(--gr-red); letter-spacing: 3px; text-transform: uppercase; font-size: 13px; font-weight: 700; margin: 0 0 14px; }
.gr-page .gr-hero h1 { font-size: clamp(30px, 4vw, 46px); line-height: 1.12; color: var(--gr-ink); margin: 0 0 16px; font-weight: 700; }
.gr-lede { font-size: 18px; line-height: 1.55; color: var(--gr-muted); max-width: 560px; margin: 0 0 28px; }
.gr-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.gr-page .gr-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 10px;
	padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; line-height: 1;
	text-decoration: none; border: 2px solid transparent; cursor: pointer; font-family: inherit;
	transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.gr-page .gr-btn:hover { transform: translateY(-1px); text-decoration: none; }
.gr-page .gr-btn-primary { background: var(--gr-red); color: #fff; box-shadow: 0 8px 20px rgba(195, 0, 47, .25); }
.gr-page .gr-btn-primary:hover { background: var(--gr-red-dark); color: #fff; }
.gr-page .gr-btn-ghost { background: #fff; color: var(--gr-ink); border-color: #cfcfcf; }
.gr-page .gr-btn-ghost:hover { border-color: var(--gr-ink); color: var(--gr-ink); }
.gr-page .gr-btn-outline { background: #fff; color: var(--gr-red); border-color: var(--gr-red); }
.gr-page .gr-btn-outline:hover { background: var(--gr-red); color: #fff; }
.gr-btn-icon { width: 18px; height: 18px; background: #fff; border-radius: 50%; padding: 2px; flex: none; }

.gr-summary { background: #fff; border: 1px solid var(--gr-line); border-radius: 22px; box-shadow: 0 14px 44px rgba(0, 0, 0, .08); padding: 34px 28px; text-align: center; }
.gr-summary-score { font-size: 72px; font-weight: 800; line-height: 1; color: var(--gr-ink); letter-spacing: -1px; margin-bottom: 10px; }
.gr-summary-count { color: var(--gr-muted); margin-top: 10px; font-size: 15px; }
.gr-summary-count strong { color: var(--gr-ink); }
.gr-page .gr-google-badge {
	margin-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
	color: var(--gr-muted); background: var(--gr-paper); padding: 8px 14px; border-radius: 999px; text-decoration: none;
}
.gr-page .gr-google-badge:hover { color: var(--gr-ink); }

/* Stars: grey row with an amber row clipped to the rating width */
.gr-stars { position: relative; display: inline-block; height: 22px; line-height: 0; vertical-align: middle; }
.gr-stars-base, .gr-stars-fill { display: inline-flex; gap: 2px; white-space: nowrap; }
.gr-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; }
.gr-star { width: 22px; height: 22px; fill: var(--gr-star-off); flex: none; }
.gr-stars-fill .gr-star { fill: var(--gr-star); }
.gr-google-mark { width: 22px; height: 22px; flex: none; }

/* Review cards */
.gr-list { padding: 48px 0 72px; background: var(--gr-paper); }
.gr-toolbar { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 22px; }
.gr-page .gr-toolbar h2 { font-size: 26px; color: var(--gr-ink); margin: 0; }
.gr-updated { color: var(--gr-muted); font-size: 14px; }
.gr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.gr-card {
	background: #fff; border: 1px solid var(--gr-line); border-radius: 18px; padding: 24px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .04); display: flex; flex-direction: column; gap: 14px;
	transition: box-shadow .2s ease, transform .2s ease;
}
.gr-card:hover { box-shadow: 0 14px 34px rgba(0, 0, 0, .09); transform: translateY(-2px); }
.gr-card[hidden] { display: none; }
.gr-card-head { display: flex; align-items: center; gap: 12px; }
.gr-avatar {
	position: relative; width: 46px; height: 46px; border-radius: 50%; flex: none; overflow: hidden;
	display: grid; place-items: center; background: var(--gr-av, #555); color: #fff; font-weight: 700; font-size: 18px;
}
.gr-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-avatar img.is-broken { display: none; }
.gr-card-who { min-width: 0; flex: 1; }
.gr-name { font-weight: 700; color: var(--gr-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 16px; }
.gr-date { font-size: 13px; color: var(--gr-muted); margin-top: 2px; }
.gr-page .gr-text { font-size: 15.5px; line-height: 1.65; color: var(--gr-text); margin: 0; overflow-wrap: anywhere; }
.gr-text.is-clamped { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.gr-page .gr-readmore { background: none; border: 0; padding: 0; color: var(--gr-red); font-weight: 700; font-size: 14px; cursor: pointer; align-self: flex-start; font-family: inherit; }
.gr-page .gr-readmore:hover { text-decoration: underline; }
.gr-page .gr-readmore[hidden] { display: none; }
.gr-reply { background: var(--gr-paper); border-left: 3px solid var(--gr-red); border-radius: 0 12px 12px 0; padding: 12px 14px; font-size: 14px; line-height: 1.55; margin-top: auto; }
.gr-reply summary { cursor: pointer; font-weight: 700; color: #000; list-style: none; display: flex; align-items: center; gap: 8px; }
.gr-reply summary::-webkit-details-marker { display: none; }
.gr-reply summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--gr-red); border-bottom: 2px solid var(--gr-red); transform: rotate(-45deg); transition: transform .18s ease; flex: none; }
.gr-reply[open] summary::before { transform: rotate(45deg); }
.gr-reply-text { margin-top: 8px; color: var(--gr-text); overflow-wrap: anywhere; }
.gr-more-wrap { text-align: center; margin: 32px 0 0; }
.gr-note { text-align: center; color: var(--gr-muted); font-size: 13px; margin: 28px 0 0; }
.gr-note a { color: var(--gr-red); }
.gr-empty { text-align: center; padding: 48px 20px; background: #fff; border-radius: 18px; border: 1px dashed #c9c9c9; }
.gr-page .gr-empty h2 { color: var(--gr-ink); margin: 0 0 8px; }
.gr-page .gr-empty p { color: var(--gr-muted); margin: 0 0 18px; }

@media (max-width: 900px) {
	.gr-hero { padding: 40px 0 36px; }
	.gr-hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.gr-summary-score { font-size: 56px; }
}
@media (max-width: 520px) {
	.gr-grid { grid-template-columns: 1fr; }
	.gr-page .gr-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
	.gr-card, .gr-page .gr-btn, .gr-reply summary::before { transition: none; }
	.gr-card:hover, .gr-page .gr-btn:hover { transform: none; }
}
