/**
 * Testimonials page stylesheet: verified Google Reviews section, authentic
 * client letters, and project inquiry pathway matching Home/About standards.
 */

/* Container and layout scoping */
.tn-testimonials-page {
	position: relative;
	overflow-wrap: anywhere;
}

/* Page Hero action customizations */
.tn-testimonials-hero-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
}

.tn-testimonials-hero-actions .tn-button {
	min-height: 44px;
	padding-inline: 24px;
}

.tn-testimonials-page .tn-button--touch {
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

/* Secondary light button for hero photo overlay */
.tn-testimonials-page .tn-button--secondary.tn-button--light {
	background: rgba(255, 255, 255, 0.15);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.35);
	backdrop-filter: blur(4px);
}

.tn-testimonials-page .tn-button--secondary.tn-button--light:hover,
.tn-testimonials-page .tn-button--secondary.tn-button--light:focus-visible {
	background: #fff;
	color: var(--tn-green-800);
	border-color: #fff;
}

/* Screen reader text for accessible external new-tab announcement */
.tn-testimonials-page .tn-sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* ==========================================================================
   Google Reviews Highlight Section
   ========================================================================== */

.tn-testimonials-google {
	padding-block: clamp(48px, 6vw, 80px) clamp(24px, 3.5vw, 44px);
	background: var(--tn-cream);
}

.tn-google-section-head {
	margin-bottom: clamp(24px, 3vw, 36px);
}

.tn-google-section-head .tn-eyebrow {
	font-size: var(--tn-eyebrow-font-size, 0.9375rem);
	font-weight: var(--tn-eyebrow-weight, 600);
	letter-spacing: var(--tn-eyebrow-tracking, 0.12em);
	line-height: var(--tn-eyebrow-line-height, 1.4);
	margin-bottom: 12px;
}

.tn-google-section-title {
	font-family: var(--tn-serif);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	line-height: 1.15;
	font-weight: 500;
	color: var(--tn-green-800);
	margin: 0 0 14px;
	text-wrap: balance;
}

.tn-google-section-lead {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--tn-ink);
	max-width: 62ch;
	margin: 0;
}

/* Google Highlight Card */
.tn-google-card {
	background: #fff;
	border: 1px solid var(--tn-line);
	border-top: 4px solid var(--tn-brand-gold);
	box-shadow: 0 12px 36px rgba(23, 33, 27, 0.05);
	padding: clamp(24px, 3.5vw, 40px);
}

.tn-google-card__main {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.tn-google-card__badge {
	flex: none;
	width: 52px;
	height: 52px;
	display: grid;
	place-items: center;
	background: var(--tn-cream);
	border: 1px solid var(--tn-line);
	border-radius: 50%;
}

.tn-google-icon {
	display: block;
}

.tn-google-card__info {
	flex: 1 1 auto;
	min-width: 0;
}

.tn-google-card__name {
	font-family: var(--tn-serif);
	font-size: clamp(1.35rem, 2vw, 1.625rem);
	font-weight: 500;
	line-height: 1.2;
	color: var(--tn-green-800);
	margin: 0 0 4px;
}

.tn-google-card__category {
	font-size: 0.9375rem;
	line-height: 1.4;
	color: #555;
	margin: 0 0 10px;
}

.tn-google-card__area {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--tn-ink);
	margin: 6px 0 0;
}

.tn-google-card__area a {
	color: var(--tn-green-800);
	font-weight: 600;
	text-underline-offset: 3px;
}

/* Google Card Actions */
.tn-google-card__actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px 20px;
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--tn-line);
}

.tn-google-card__actions .tn-button {
	padding-inline: 22px;
}

/* Google Card Meta & Notices */
.tn-google-card__meta {
	margin-top: 20px;
	padding-top: 16px;
	border-top: 1px dashed var(--tn-line);
}

.tn-google-note {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: #555;
	margin: 0 0 6px;
	display: flex;
	align-items: baseline;
	gap: 6px;
}

.tn-google-note__icon {
	color: var(--tn-brand-green);
	font-weight: 700;
}

.tn-google-disclosure {
	font-size: 0.9375rem;
	line-height: 1.5;
	color: var(--tn-text);
	margin: 0;
}

/* ==========================================================================
   Client Stories & Letters Section
   ========================================================================== */

.tn-testimonials-stories {
	padding-block: clamp(24px, 3.5vw, 44px) clamp(56px, 7vw, 96px);
}

.tn-stories-head {
	margin-bottom: clamp(28px, 4vw, 44px);
}

.tn-stories-head .tn-eyebrow {
	font-size: var(--tn-eyebrow-font-size, 0.9375rem);
	font-weight: var(--tn-eyebrow-weight, 600);
	letter-spacing: var(--tn-eyebrow-tracking, 0.12em);
	line-height: var(--tn-eyebrow-line-height, 1.4);
	margin-bottom: 12px;
}

.tn-stories-title {
	font-family: var(--tn-serif);
	font-size: clamp(2rem, 3.2vw, 2.75rem);
	line-height: 1.15;
	font-weight: 500;
	color: var(--tn-green-800);
	margin: 0 0 14px;
	text-wrap: balance;
}

.tn-stories-lead {
	font-size: 1.125rem;
	line-height: 1.65;
	color: var(--tn-ink);
	max-width: 65ch;
	margin: 0;
}

/* Featured Quotes (Top 2 comprehensive letters) */
.tn-featured-quotes {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(24px, 3vw, 36px);
	margin-bottom: clamp(28px, 4vw, 44px);
}

/* Shared Quote Card Styling */
.tn-quote-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--tn-line);
	border-top: 3px solid var(--tn-brand-gold);
	box-shadow: 0 10px 30px rgba(23, 33, 27, 0.04);
	padding: clamp(24px, 3vw, 36px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	transition: transform 0.25s var(--tn-ease), box-shadow 0.25s var(--tn-ease);
}

.tn-quote-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 40px rgba(23, 33, 27, 0.08);
}

.tn-quote-card--featured {
	background: var(--tn-cream-200);
	border-color: rgba(22, 59, 34, 0.15);
	border-top: 4px solid var(--tn-brand-green);
	box-shadow: 0 12px 36px rgba(23, 33, 27, 0.06);
}

.tn-quote-mark {
	position: absolute;
	left: clamp(20px, 2.5vw, 32px);
	top: 8px;
	font-family: var(--tn-serif);
	font-size: clamp(3.5rem, 4.5vw, 4.5rem);
	line-height: 1;
	color: var(--tn-brand-gold);
	pointer-events: none;
	user-select: none;
	opacity: 0.85;
}

.tn-quote-card__content {
	position: relative;
	padding-top: 24px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	height: 100%;
}

.tn-quote-card__quote,
.tn-quote-card__quote blockquote {
	margin: 0 0 20px;
	padding: 0;
	border: none;
}

.tn-quote-card__quote p {
	font-family: var(--tn-serif);
	font-size: 1.1875rem;
	line-height: 1.65;
	color: var(--tn-ink);
	margin: 0 0 12px;
}

.tn-quote-card__quote p:last-child {
	margin-bottom: 0;
}

.tn-quote-card--featured .tn-quote-card__quote p {
	font-size: clamp(1.1875rem, 1.5vw, 1.3125rem);
	line-height: 1.7;
}

.tn-quote-card__footer {
	padding-top: 16px;
	border-top: 1px solid var(--tn-line);
	margin-top: auto;
}

.tn-quote-card__tag {
	display: inline-block;
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--tn-brand-green);
	margin-bottom: 4px;
}

.tn-quote-card__author {
	display: block;
	font-family: var(--tn-sans);
	font-size: 0.9375rem;
	font-weight: 600;
	color: var(--tn-green-800);
	font-style: normal;
	line-height: 1.4;
}

/* Grid of Remaining Stories */
.tn-quotes-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 2.5vw, 32px);
}

/* ==========================================================================
   Tasteful Review Invitation Banner
   ========================================================================== */

.tn-testimonials-invite {
	padding-bottom: clamp(48px, 6vw, 84px);
}

.tn-invite-card {
	background: var(--tn-cream-200);
	border: 1px solid var(--tn-line);
	border-left: 5px solid var(--tn-brand-green);
	box-shadow: 0 10px 30px rgba(23, 33, 27, 0.04);
	padding: clamp(28px, 4vw, 44px);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 28px 44px;
}

.tn-invite-card .tn-eyebrow {
	font-size: var(--tn-eyebrow-font-size, 0.9375rem);
	font-weight: var(--tn-eyebrow-weight, 600);
	letter-spacing: var(--tn-eyebrow-tracking, 0.12em);
	line-height: var(--tn-eyebrow-line-height, 1.4);
	margin-bottom: 8px;
}

.tn-invite-card__title {
	font-family: var(--tn-serif);
	font-size: clamp(1.5rem, 2.3vw, 2rem);
	line-height: 1.2;
	font-weight: 500;
	color: var(--tn-green-800);
	margin: 0 0 10px;
}

.tn-invite-card__text {
	font-size: 1.0625rem;
	line-height: 1.6;
	color: var(--tn-ink);
	max-width: 52ch;
	margin: 0;
}

.tn-invite-card__actions {
	display: flex;
	flex-direction: column;
	gap: 12px;
	flex: none;
	align-items: stretch;
}

.tn-invite-card__actions .tn-button {
	min-height: 44px;
	padding-inline: 22px;
	white-space: normal;
}

/* Fallback for additional WordPress blocks */
.tn-testimonials-other {
	padding-block: 28px 48px;
}

/* ==========================================================================
   Responsive Reflow (Tablets & Mobile)
   ========================================================================== */

/* Tablet Landscape & Below (<= 1024px) */
@media (max-width: 1024px) {
	.tn-featured-quotes {
		grid-template-columns: minmax(0, 1fr);
	}
}

/* Tablet Portrait & Below (<= 959px) */
@media (max-width: 959px) {
	.tn-invite-card {
		flex-direction: column;
		align-items: flex-start;
		gap: 24px;
	}

	.tn-invite-card__actions {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		width: 100%;
	}
}

/* Standard Tablet & Below (<= 768px) */
@media (max-width: 768px) {
	.tn-quotes-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.tn-google-card__main {
		flex-direction: column;
		gap: 16px;
	}

	.tn-google-card__actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.tn-google-card__actions .tn-button {
		width: 100%;
		justify-content: center;
	}

	.tn-testimonials-hero-actions {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
	}

	.tn-testimonials-hero-actions .tn-button {
		width: 100%;
		justify-content: center;
	}

	.tn-invite-card__actions .tn-button {
		width: 100%;
		justify-content: center;
	}
}

/* Phones (<= 480px) */
@media (max-width: 480px) {
	.tn-google-card {
		padding: 20px 16px;
	}


	.tn-quote-card {
		padding: 24px 18px 20px;
	}

	.tn-quote-mark {
		left: 16px;
		top: 4px;
	}

	.tn-invite-card {
		padding: 24px 18px;
	}
}

/* Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.tn-quote-card {
		transition: none;
	}

	.tn-quote-card:hover {
		transform: none;
	}
}

.tn-quote-card__quote cite { display: block; margin-top: 16px; font: inherit; font-family: var(--tn-sans); }
.tn-testimonials-page .tn-button > span:not(.tn-sr-only) { min-width: 0; }
.tn-testimonials-page .tn-button { overflow-wrap: anywhere; }
.tn-google-card__area a { display: inline-flex; align-items: center; min-height: 44px; }
.tn-testimonials-hero-actions a[href^="tel:"] { display: inline-flex; align-items: center; min-height: 44px; }
.tn-testimonials-page .tn-cta__phone a { display: inline-flex; align-items: center; min-height: 44px; }
