/* [aob_testimonials] — Figma "testimonials" (6007:10660). Slider: scroll-snap track, 1 card on phones, 2 on tablets, 3 on desktop. */
:not(#_) .aob-testimonials {
	--aob-per-view: 1;
	--aob-slide-gap: 32px;
	background: var(--aob-black-3);
	color: var(--aob-light-1);
	font-family: var(--aob-font-body);
	overflow: hidden;
}
@media (min-width: 768px) { :not(#_) .aob-testimonials { --aob-per-view: 2; } }
@media (min-width: 1100px) { :not(#_) .aob-testimonials { --aob-per-view: 3; } }
@media (max-width: 767px) { :not(#_) .aob-testimonials { --aob-slide-gap: 16px; } }

/* Heading block */
:not(#_) .aob-testimonials__head {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
	margin-bottom: var(--aob-section-gap);
	text-align: center;
}
:not(#_) .aob-testimonials__badge {
	padding: 6px 8px;
	border: 1px solid var(--aob-gold-soft);
	border-radius: 44px;
	background: var(--aob-gold-faint);
	box-shadow: var(--aob-shadow-button-secondary);
	font-size: 14px;
	font-weight: 500;
	line-height: 21px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--aob-white);
}
:not(#_) .aob-testimonials__title {
	max-width: 720px;
	margin: 0;
	font-family: var(--aob-font-display);
	font-size: clamp(32px, 4.4vw, 48px);
	font-weight: 400;
	line-height: 1.2;
	text-wrap: balance;
	color: var(--aob-white);
}
:not(#_) .aob-testimonials__subtitle {
	margin: 0;
	font-size: 18px;
	line-height: 1.3;
	color: var(--aob-light-3);
}
/* Candle decoration: the header logo image cropped to the flame (same crop as .aob-header__logo-flame). */
:not(#_) .aob-testimonials__flame {
	position: absolute;
	left: 6px;
	top: 139px;
	width: 117px;
	height: 117px;
	overflow: hidden;
	pointer-events: none;
	display: none;
}
:not(#_) .aob-testimonials__flame img { position: absolute; left: -52.56%; top: 4.63%; width: 205.13%; height: 154.32%; max-width: none; }
@media (min-width: 1240px) { :not(#_) .aob-testimonials__flame { display: block; } }

/* Track */
:not(#_) .aob-testimonials__track {
	display: flex;
	gap: var(--aob-slide-gap);
	overflow-x: auto;
	overscroll-behavior-x: contain;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	cursor: grab;
}
:not(#_) .aob-testimonials__track::-webkit-scrollbar { display: none; }
:not(#_) .aob-testimonials__track.aob-is-dragging { scroll-snap-type: none; scroll-behavior: auto; cursor: grabbing; user-select: none; }
:not(#_) .aob-testimonials__track:focus-visible { outline: 2px solid var(--aob-white); outline-offset: 4px; border-radius: 16px; }
@media (prefers-reduced-motion: no-preference) {
	:not(#_) .aob-testimonials__track { scroll-behavior: smooth; }
}

:not(#_) .aob-testimonials__slide {
	flex: 0 0 calc((100% - (var(--aob-per-view) - 1) * var(--aob-slide-gap)) / var(--aob-per-view));
	scroll-snap-align: start;
	min-width: 0;
	display: flex;
}

/* Card */
:not(#_) .aob-testimonials__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	width: 100%;
	padding: var(--aob-pad-y) var(--aob-pad-x);
	border: 1px solid var(--aob-glass-border);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
	text-align: center;
}
:not(#_) .aob-testimonials__person { display: flex; flex-direction: column; align-items: center; gap: 16px; }
:not(#_) .aob-testimonials__avatar { display: block; width: 74px; height: 82px; flex: none; }
:not(#_) .aob-testimonials__avatar img { display: block; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
/* Placeholder file already contains the gold ring (Figma export, 80×88 drawn into 74×82 box with overflow). */
:not(#_) .aob-testimonials__avatar:not(.aob-has-ring) img { width: 80px; height: 88px; max-width: none; margin: -3px 0 0 -3px; }
/* Photos from the CPT get the same ring in CSS. */
:not(#_) .aob-testimonials__avatar.aob-has-ring { box-sizing: border-box; padding: 3px; border: 3px solid var(--aob-brand-2); border-radius: 50%; background: var(--aob-light-2); overflow: hidden; }
:not(#_) .aob-testimonials__avatar.aob-has-ring img { border-radius: 50%; }
:not(#_) .aob-testimonials__name { font-size: 24px; font-weight: 400; line-height: 31.2px; letter-spacing: -0.02em; color: var(--aob-white); }
:not(#_) .aob-testimonials__text { flex: 1; margin: 0; font-size: 16px; line-height: 22.4px; color: var(--aob-light-3); }

:not(#_) .aob-testimonials__rating { display: flex; align-items: center; justify-content: center; gap: 8px; }
:not(#_) .aob-testimonials__platform { display: flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 2.667px; border-radius: 43px; background: var(--aob-white); }
:not(#_) .aob-testimonials__platform img { display: block; width: 18px; height: 18px; object-fit: cover; }
:not(#_) .aob-testimonials__score { font-size: 24px; font-weight: 700; line-height: 31.2px; letter-spacing: -0.02em; color: #fff; }
:not(#_) .aob-testimonials__stars { display: inline-flex; gap: 3.556px; }
:not(#_) .aob-testimonials__star { display: block; width: 16px; height: 16px; opacity: 0.2; -webkit-user-drag: none; }
:not(#_) .aob-testimonials__star.aob-is-on { opacity: 1; }

/* Controls (Figma "carousel-dots"; hidden until JS runs, and when everything fits). */
:not(#_) .aob-testimonials__controls { display: none; align-items: center; justify-content: center; gap: 32px; margin-top: var(--aob-section-gap); }
:not(#_) .aob-testimonials__slider.aob-is-ready .aob-testimonials__controls { display: flex; }
:not(#_) .aob-testimonials__slider.aob-is-static .aob-testimonials__controls { display: none; }

/* The arrow SVG is 68×68 (48px ring + glow); negative margins keep the layout box at 48×48. */
:not(#_) .aob-testimonials__arrow {
	display: block;
	width: 48px;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 0;
	background: none;
	cursor: pointer;
	position: relative;
	transition: opacity 0.2s, filter 0.2s;
}
:not(#_) .aob-testimonials__arrow img { position: absolute; left: -10px; top: -8px; width: 68px; height: 68px; max-width: none; }
:not(#_) .aob-testimonials__arrow:hover:not(:disabled) { filter: brightness(1.2); }
:not(#_) .aob-testimonials__arrow:disabled { opacity: 0.35; cursor: default; }
:not(#_) .aob-testimonials__arrow:focus-visible,
:not(#_) .aob-testimonials__dot:focus-visible { outline: 2px solid var(--aob-white); outline-offset: 6px; border-radius: 50%; }

:not(#_) .aob-testimonials__dots { display: flex; align-items: center; gap: 12px; }
:not(#_) .aob-testimonials__dot {
	width: 12px;
	height: 12px;
	padding: 0;
	border: 0;
	border-radius: 19px;
	background: rgba(245, 242, 237, 0.1);
	cursor: pointer;
	transition: background-color 0.25s, transform 0.25s;
}
:not(#_) .aob-testimonials__dot:hover { background: rgba(245, 242, 237, 0.3); }
:not(#_) .aob-testimonials__dot[aria-current="true"] { background: var(--aob-white); }

@media (max-width: 767px) {
	:not(#_) .aob-testimonials__controls { gap: 20px; }
}

/* Empty state: no opinions yet -> single centered card with a link to the Google profile. */
:not(#_) .aob-testimonials__empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 20px;
	max-width: 640px;
	margin-inline: auto;
	padding: 40px var(--aob-pad-x);
	border: 1px solid var(--aob-glass-border);
	border-radius: 16px;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.05));
	text-align: center;
}
:not(#_) .aob-testimonials__empty-icon { width: 48px; height: 48px; padding: 6px; }
:not(#_) .aob-testimonials__empty-icon img { width: 36px; height: 36px; }
:not(#_) .aob-testimonials__empty-title { margin: 0; font-family: var(--aob-font-display); font-size: clamp(26px, 3.4vw, 32px); font-weight: 400; line-height: 1.2; color: var(--aob-white); }
:not(#_) .aob-testimonials__empty .aob-testimonials__text { flex: none; max-width: 480px; }
:not(#_) .aob-testimonials__empty-btn { box-sizing: border-box; margin-top: 4px; max-width: 100%; white-space: normal; }

/* [aob_testimonials_grid] — static grid, no slider: 1 column on phones, 2 on tablets, 3 on desktop. */
:not(#_) .aob-testimonials__grid { display: grid; grid-template-columns: 1fr; gap: var(--aob-slide-gap); }
:not(#_) .aob-testimonials__cell { display: flex; min-width: 0; }
@media (min-width: 768px) { :not(#_) .aob-testimonials__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { :not(#_) .aob-testimonials__grid { grid-template-columns: repeat(3, 1fr); } }
