/**
 * Savoidakis Sections
 *
 * Every value the Elementor panel can change is read from a custom property on
 * `.svs`, and Elementor writes those properties through the widget's
 * `selectors`. The rules below never hardcode a colour or a size that has a
 * control behind it.
 *
 * Note the specificity: Elementor's Site Settings style every anchor with
 * `.elementor-kit-N a` (0,1,1) and every image with `.elementor img` (0,1,1),
 * so anything of ours that must win is written as `.svs .svs-x` (0,2,0).
 */

.svs {
	--svs-paper: #f5f0e8;
	--svs-ink: #241b16;
	--svs-muted: #6f655f;
	--svs-accent: #ad7446;
	--svs-line: rgba(81, 54, 35, .2);
	--svs-star: #e9a526;

	/* The design's own fluid padding; a control overrides it when set. */
	--svs-pad-y: clamp(72px, 8vw, 140px);
	--svs-pad-x: clamp(24px, 5vw, 96px);
	--svs-max: 1760px;
	--svs-radius: 18px;

	--svs-media-min: 570px;
	--svs-media-share: .85fr;
	--svs-watermark-opacity: .07;

	--svs-proof-ratio: 1.48;
	--svs-proof-share: 1.25fr;
	--svs-quote-opacity: .085;

	box-sizing: border-box;
	overflow: hidden;
	font-family: "Manrope", -apple-system, "Segoe UI", Arial, sans-serif;
	padding: var(--svs-pad-y) var(--svs-pad-x);
	color: var(--svs-ink);
	background: var(--svs-paper);
}

.svs *,
.svs *::before,
.svs *::after {
	box-sizing: border-box;
}

.svs__container {
	width: min(var(--svs-max), 100%);
	margin-inline: auto;
}

.svs figure {
	margin: 0;
}

/* Out-specifies `.elementor img { height: auto }`. */
.svs .svs-heritage__media img,
.svs .svs-proof__media img,
.svs .svs-review__avatar img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.svs__eyebrow {
	margin: 0 0 24px;
	color: var(--svs-accent);
	letter-spacing: .29em;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
}

.svs .svs__title {
	margin: 0;
	color: var(--svs-ink);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(44px, 4.5vw, 82px);
	font-weight: 400;
	line-height: .98;
	letter-spacing: -.025em;
}

.svs__copy {
	max-width: 610px;
	margin: 26px 0 0;
	color: var(--svs-muted);
	font-size: clamp(15px, 1.05vw, 18px);
	line-height: 1.75;
}

/* -----------------------------------------------------------------------
 * Section 1 - heritage
 * -------------------------------------------------------------------- */

.svs-heritage__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(390px, var(--svs-media-share));
	align-items: stretch;
	gap: clamp(48px, 7vw, 130px);
}

.svs-heritage__content {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: var(--svs-media-min);
}

.svs-heritage__watermark {
	position: absolute;
	z-index: 0;
	top: -60px;
	right: -10px;
	color: var(--svs-accent);
	opacity: var(--svs-watermark-opacity);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(220px, 23vw, 410px);
	font-weight: 400;
	line-height: 1;
	pointer-events: none;
	user-select: none;
}

.svs-heritage__intro,
.svs-stats {
	position: relative;
	z-index: 1;
}

.svs-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(min-content, 1fr));
	margin-top: clamp(58px, 7vw, 100px);
}

.svs-stat {
	padding: 0 clamp(18px, 2.5vw, 45px);
}

.svs-stat:first-child {
	padding-left: 0;
}

.svs-stat + .svs-stat {
	border-left: 1px solid var(--svs-line);
}

.svs-stat__number {
	display: block;
	color: var(--svs-accent);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(50px, 5vw, 78px);
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	/* The figure changes while counting; keep the row from jumping. */
	font-variant-numeric: tabular-nums;
}

.svs-stat__label {
	display: block;
	margin-top: 14px;
	font-size: clamp(13px, 1vw, 16px);
	line-height: 1.45;
}

.svs-heritage__media {
	overflow: hidden;
	min-height: var(--svs-media-min);
	border-radius: var(--svs-radius);
	background: #cbb69d;
}

/* -----------------------------------------------------------------------
 * Section 2 - proof
 * -------------------------------------------------------------------- */

.svs-proof {
	position: relative;
	border-top: 1px solid var(--svs-line);
}

.svs-proof__header {
	max-width: 960px;
	margin: 0 auto clamp(50px, 6vw, 92px);
	text-align: center;
}

.svs-proof__header .svs__eyebrow {
	margin-bottom: 18px;
}

.svs-proof__header .svs__title {
	font-size: clamp(40px, 4vw, 70px);
	line-height: 1.05;
}

.svs-proof__header .svs__copy {
	margin-inline: auto;
}

.svs-proof__grid {
	display: grid;
	grid-template-columns: minmax(0, var(--svs-proof-share)) minmax(360px, .75fr);
	align-items: center;
	gap: clamp(55px, 8vw, 145px);
}

.svs-proof__media {
	overflow: hidden;
	aspect-ratio: var(--svs-proof-ratio) / 1;
	border-radius: var(--svs-radius);
	background: #baa58e;
}

.svs-rating {
	position: relative;
	padding: clamp(10px, 2vw, 34px) 0;
}

.svs-rating::before {
	position: absolute;
	z-index: 0;
	top: 55px;
	right: 0;
	color: var(--svs-accent);
	opacity: var(--svs-quote-opacity);
	font-family: Georgia, serif;
	font-size: clamp(190px, 18vw, 320px);
	line-height: .8;
	pointer-events: none;
	content: "\201C";
}

.svs-rating__summary,
.svs-review {
	position: relative;
	z-index: 1;
}

.svs-google {
	display: inline-flex;
	align-items: center;
	gap: 2px;
	margin-bottom: 10px;
	letter-spacing: -.04em;
	font-size: 20px;
	font-weight: 600;
}

.svs-google span:nth-child(1),
.svs-google span:nth-child(4) {
	color: #4285f4;
}

.svs-google span:nth-child(2),
.svs-google span:nth-child(6) {
	color: #ea4335;
}

.svs-google span:nth-child(3) {
	color: #fbbc05;
}

.svs-google span:nth-child(5) {
	color: #34a853;
}

.svs-score {
	margin: 0;
	color: var(--svs-ink);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(48px, 4vw, 66px);
	line-height: 1;
}

.svs-stars {
	display: flex;
	gap: .08em;
	margin: 12px 0 8px;
	font-size: 22px;
	line-height: 1;
}

/*
 * A half star is the same glyph clipped down the middle, so a 4.5 reads
 * honestly instead of being rounded up to five.
 */
.svs-star {
	position: relative;
	color: color-mix(in srgb, var(--svs-star) 26%, transparent);
}

.svs-star.is-full {
	color: var(--svs-star);
}

.svs-star.is-half::before {
	position: absolute;
	top: 0;
	left: 0;
	width: 50%;
	overflow: hidden;
	color: var(--svs-star);
	content: "\2605";
}

.svs-rating__caption {
	margin: 0;
	color: var(--svs-muted);
	font-size: 13px;
	line-height: 1.55;
}

.svs-review {
	min-height: 260px;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid var(--svs-line);
}

.svs-review__slide[hidden] {
	display: none;
}

.svs-review__slide {
	transition: opacity .18s ease, transform .18s ease;
}

.svs-review.is-changing .svs-review__slide {
	opacity: 0;
	transform: translateY(5px);
}

.svs .svs-review__quote {
	max-width: 600px;
	margin: 0;
	color: var(--svs-ink);
	font-family: "Newsreader", Georgia, serif;
	font-size: clamp(27px, 2.2vw, 40px);
	font-weight: 400;
	line-height: 1.18;
	letter-spacing: -.015em;
}

.svs-review__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-top: 28px;
}

.svs-review__person {
	display: flex;
	align-items: center;
	gap: 14px;
	min-width: 0;
}

.svs-review__avatar {
	display: block;
	overflow: hidden;
	flex: 0 0 auto;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #d3c2af;
}

.svs-review__who {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
}

.svs-review__name {
	font-size: 15px;
	font-weight: 600;
}

.svs-review__role {
	color: var(--svs-muted);
	font-size: 13px;
}

.svs-review__empty {
	margin: 0;
	color: var(--svs-muted);
	font-size: 14px;
}

.svs-review__controls {
	display: flex;
	flex: 0 0 auto;
	gap: 10px;
}

.svs .svs-review__button {
	display: grid;
	width: 46px;
	height: 46px;
	padding: 0;
	place-items: center;
	color: var(--svs-ink);
	border: 1px solid color-mix(in srgb, var(--svs-accent) 70%, transparent);
	border-radius: 50%;
	background: none;
	font: inherit;
	line-height: 1;
	cursor: pointer;
	transition: color .2s ease, background-color .2s ease, transform .2s ease;
}

.svs .svs-review__button:hover,
.svs .svs-review__button:focus-visible {
	color: #fff;
	background: var(--svs-accent);
	transform: translateY(-2px);
}

.svs .svs-all-reviews {
	display: inline-flex;
	align-items: center;
	gap: 18px;
	margin-top: 35px;
	padding-bottom: 6px;
	color: var(--svs-accent);
	border-bottom: 1px solid currentColor;
	letter-spacing: .19em;
	font-size: 12px;
	font-weight: 600;
	text-decoration: none;
	text-transform: uppercase;
}

.svs .svs-all-reviews span {
	transition: transform .2s ease;
}

.svs .svs-all-reviews:hover span {
	transform: translateX(5px);
}

.svs .svs-review__button:focus-visible,
.svs .svs-all-reviews:focus-visible {
	outline: 2px solid var(--svs-accent);
	outline-offset: 4px;
}

/* -----------------------------------------------------------------------
 * Responsive
 * -------------------------------------------------------------------- */

@media (max-width: 1100px) {
	.svs-heritage__grid,
	.svs-proof__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.svs-heritage__content {
		min-height: auto;
	}

	.svs-heritage__media {
		min-height: 520px;
	}

	.svs-proof__grid {
		gap: 55px;
	}

	.svs-proof__media {
		aspect-ratio: 1.55 / 1;
	}

	.svs-rating {
		display: grid;
		grid-template-columns: .65fr 1.35fr;
		gap: 50px;
	}

	.svs-review {
		margin-top: 0;
		padding: 0 0 0 50px;
		border-top: 0;
		border-left: 1px solid var(--svs-line);
	}

	.svs .svs-all-reviews {
		grid-column: 2;
		width: fit-content;
		margin-top: -10px;
		margin-left: 50px;
	}
}

@media (max-width: 700px) {
	.svs {
		--svs-pad-x: 20px;
		--svs-pad-y: 75px;
		--svs-radius: 12px;
	}

	.svs .svs__title {
		font-size: clamp(40px, 12vw, 58px);
	}

	.svs-heritage__grid {
		gap: 48px;
	}

	.svs-heritage__watermark {
		top: -25px;
		right: -30px;
		font-size: 220px;
	}

	.svs-stats {
		grid-template-columns: minmax(0, 1fr);
		margin-top: 55px;
	}

	.svs-stat {
		display: flex;
		align-items: baseline;
		justify-content: space-between;
		gap: 20px;
		padding: 20px 0;
	}

	.svs-stat + .svs-stat {
		border-top: 1px solid var(--svs-line);
		border-left: 0;
	}

	.svs-stat__number {
		font-size: 54px;
	}

	.svs-stat__label {
		text-align: right;
	}

	.svs-heritage__media {
		min-height: 390px;
	}

	.svs-proof__header {
		margin-bottom: 46px;
	}

	.svs-proof__media {
		aspect-ratio: 1 / 1.05;
	}

	.svs-rating {
		display: block;
	}

	.svs-review {
		min-height: 300px;
		margin-top: 30px;
		padding: 30px 0 0;
		border-top: 1px solid var(--svs-line);
		border-left: 0;
	}

	.svs .svs-review__button {
		width: 42px;
		height: 42px;
	}

	.svs .svs-all-reviews {
		margin: 32px 0 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.svs *,
	.svs *::before,
	.svs *::after {
		transition-duration: .01ms !important;
	}
}
