/* Digicloud Reviews Wall - responsive carousel */

.dcrw {
	--dcrw-accent: var(--maAccent, var(--acc, #b6916b));
	--dcrw-card-bg: var(--ma-card-bg, #fffdf8);
	--dcrw-border: var(--ma-border, #e8e2d8);
	--dcrw-text: #37322a;
	--dcrw-muted: #6f6a61;
	--dcrw-radius: 18px;

	padding: clamp(3.5rem, 7vw, 6rem) clamp(1rem, 4vw, 2.5rem);
	background: transparent;
	color: var(--dcrw-text);
}

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

/* Visually hidden text for screen readers (rating + source link). */
.dcrw-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

/* Head */
.dcrw-head {
	max-width: 1100px;
	margin: 0 auto 2.25rem;
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.25rem 2.5rem;
}

.dcrw-head-copy {
	display: flex;
	flex-direction: column;
	gap: .55rem;
	max-width: 580px;
}

.dcrw-eyebrow {
	font-size: .8rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--dcrw-accent);
}

.dcrw-title {
	margin: 0;
	font-family: var(--dcrw-font-heading, 'Cormorant Garamond', 'Playfair Display', Georgia, serif);
	font-size: clamp(1.9rem, 3.2vw, 2.6rem);
	line-height: 1.15;
	font-weight: 600;
	color: inherit;
}

.dcrw-title em {
	font-style: italic;
	color: var(--dcrw-accent);
}

.dcrw-desc {
	margin: 0;
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-size: .95rem;
	line-height: 1.55;
	color: var(--dcrw-muted);
}

/* Badge */
a.dcrw-badge,
span.dcrw-badge {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	padding: .6rem 1rem;
	border: 1px solid var(--dcrw-border);
	border-radius: 999px;
	background: var(--dcrw-card-bg);
	text-decoration: none;
	color: inherit;
	white-space: nowrap;
}

a.dcrw-badge:hover .dcrw-badge-label,
a.dcrw-badge:hover .dcrw-badge-stars,
a.dcrw-badge:focus-visible .dcrw-badge-label,
a.dcrw-badge:focus-visible .dcrw-badge-stars {
	color: var(--dcrw-accent);
}

.dcrw-badge .dcrw-g-icon { flex: 0 0 auto; }

.dcrw-badge-stars {
	display: inline-flex;
	gap: .1rem;
	letter-spacing: .08em;
	line-height: 1;
	transition: color .2s ease;
}

.dcrw-badge-label {
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-size: .88rem;
	font-weight: 600;
	line-height: 1.4;
	transition: color .2s ease;
}

/* Carousel: a native, scroll-snapped strip. Without JavaScript this is still
   a readable, swipeable row; dcrw.js only reveals the arrows. */
.dcrw-carousel {
	max-width: 1100px;
	margin: 0 auto;
}

.dcrw-viewport {
	/* The visually hidden .dcrw-sr labels are absolutely positioned. Without a
	   positioned ancestor they resolve against the initial containing block and
	   their static x-position pushes the whole document's scrollWidth out to the
	   width of the full slide track. This makes the viewport their containing
	   block so that extent stays inside the scroller, where it belongs. */
	position: relative;
	overflow-x: auto;
	overflow-y: visible;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.dcrw-viewport::-webkit-scrollbar { display: none; }

.dcrw-viewport:focus-visible {
	outline: 2px solid var(--dcrw-accent);
	outline-offset: 4px;
}

.dcrw-slides {
	display: flex;
	align-items: stretch;
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.dcrw-slide {
	display: flex;
	flex: 0 0 100%;
	min-width: 0;
	scroll-snap-align: start;
}

.dcrw-slide > .dcrw-card { width: 100%; }

/* Visible cards follow the available width: 1 / 2 / 3. */
@media (min-width: 640px) {
	.dcrw-slide { flex-basis: calc((100% - 1.25rem) / 2); }
}

@media (min-width: 1024px) {
	.dcrw-slide { flex-basis: calc((100% - 2.5rem) / 3); }

	.dcrw-carousel--single { max-width: 34rem; }
}

@media (max-width: 1023.98px) {
	.dcrw-carousel--single { max-width: 34rem; }
	.dcrw-carousel--single .dcrw-slide { flex-basis: 100%; }
}

/* Controls: hidden in the markup and only shown when the strip overflows. */
.dcrw-controls {
	display: flex;
	justify-content: center;
	gap: .75rem;
	margin-top: 1.75rem;
}

.dcrw-controls[hidden] { display: none; }

.dcrw-arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	padding: 0;
	border: 1px solid var(--dcrw-border);
	border-radius: 999px;
	background: var(--dcrw-card-bg);
	color: var(--dcrw-accent);
	cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.dcrw-arrow:hover:not(:disabled) {
	background: var(--dcrw-accent);
	border-color: var(--dcrw-accent);
	color: #fff;
}

.dcrw-arrow:disabled {
	opacity: .4;
	cursor: default;
}

.dcrw-arrow:focus-visible {
	outline: 2px solid var(--dcrw-accent);
	outline-offset: 3px;
}

/* Cards */
a.dcrw-card,
div.dcrw-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--dcrw-card-bg);
	border: 1px solid var(--dcrw-border);
	border-radius: var(--dcrw-radius);
	padding: 1.4rem 1.5rem 1.25rem;
	color: inherit;
	text-decoration: none;
	box-shadow: 0 1px 2px rgba(35, 28, 18, 0.03);
}

a.dcrw-card:hover,
a.dcrw-card:focus-visible {
	border-color: color-mix(in srgb, var(--dcrw-accent) 45%, var(--dcrw-border));
	box-shadow: 0 12px 30px rgba(35, 28, 18, 0.07);
}

.dcrw-card-stars {
	display: block;
	margin-bottom: .9rem;
	color: var(--dcrw-accent);
	letter-spacing: .1em;
	font-size: .95rem;
	line-height: 1;
}

.dcrw-g-icon {
	display: block;
	margin-bottom: .75rem;
}

.dcrw-card-text {
	/* Keep every card the same height: a single very long Google review must
	   not stretch the flex line (and with it every other card). The full text
	   stays in the DOM; the card still links to the complete review. */
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 6;
	line-clamp: 6;
	overflow: hidden;
	margin: 0 0 1.1rem;
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-size: .95rem;
	line-height: 1.65;
	color: var(--dcrw-text);
	overflow-wrap: anywhere;
}

.dcrw-card-author {
	display: flex;
	align-items: center;
	gap: .7rem;
	margin-top: auto;
}

.dcrw-avatar-img,
.dcrw-avatar {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	flex: 0 0 auto;
	object-fit: cover;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.dcrw-avatar {
	background: color-mix(in srgb, var(--dcrw-accent) 22%, var(--dcrw-card-bg));
	color: var(--dcrw-accent);
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-weight: 600;
	font-size: 1rem;
}

.dcrw-card-name {
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-weight: 600;
	font-size: .9rem;
	line-height: 1.3;
}

.dcrw-card-date {
	margin-left: auto;
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-size: .8rem;
	color: var(--dcrw-muted);
	white-space: nowrap;
}

/* Source link */
.dcrw-more {
	display: block;
	margin: 1.75rem auto 0;
	max-width: 1100px;
	width: 100%;
	text-align: center;
	font-family: var(--dcrw-font-body, 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif);
	font-weight: 600;
	font-size: .9rem;
	color: var(--dcrw-accent);
	text-underline-offset: 3px;
}

/* Reduced motion: no smooth scrolling, no hover lift. */
@media (prefers-reduced-motion: reduce) {
	.dcrw-viewport { scroll-behavior: auto; }

	.dcrw-arrow,
	.dcrw-badge-stars,
	.dcrw-badge-label { transition: none; }
}
