/* ================================================
   AMOTZ — TESTIMONIALS  (Figma 566:10144)
   ================================================
   band      1440x1012 · #0C0C0C · padding 100/60
   head      942px · headline Polin Bold 54/1.2 tracking -1.8 white · sub Polin Medium 18/1.5
   glow      608x551 gold ellipse behind the row
   cards     4 x 318px · portrait 470px · ONE 100px corner each, rotating
   play      60px · #DDA833 · 32px glyph
   name      pill rgba(221,168,51,.18) on rgba(221,168,51,.35) · #E8BF5A · 12 · tracking .88
   role      Polin Medium 14/1.2 · #F5F2EA
   ================================================ */

.az-testimonials {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 100px var(--az-edge);
	overflow: hidden;
	background-color: var(--az-ink);
}

.az-testimonials__glow {
	position: absolute;
	top: 243px; /* the design's 143px inside a column that starts 100px down */
	left: 50%;
	transform: translateX(-50%);
	z-index: 0;
	width: 608px;
	max-width: 100%;
	height: 551px;
	background-repeat: no-repeat;
	background-position: center;
	background-size: 100% 100%;
	pointer-events: none;
}

.az-testimonials__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 80px;
	width: 100%;
}

.az-testimonials__head {
	display: flex;
	flex-direction: column;
	gap: 24px;
	width: 100%;
	max-width: 942px; /* the design's measure */
	text-align: right;
}

.az-testimonials__title {
	font-size: 54px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -1.8px;
	color: #FFFFFF;
}

.az-testimonials__sub {
	font-size: 18px;
	font-weight: 500;
	line-height: 1.5;
	color: #FFFFFF;
}

.az-testimonials__grid {
	display: grid;
	grid-template-columns: repeat(4, 318px);
	gap: 16px;
	justify-content: center;
}

.az-testimonials__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
}

/* ------------------------------------------------
   THE PORTRAIT AND ITS ONE ROUNDED CORNER
   ------------------------------------------------
   Each card carries 24px on three corners and 100px on exactly one, and which one MOVES from
   card to card — top-left, bottom-left, bottom-right, top-right across the row. It is a
   deliberate rhythm, not four arbitrary shapes, so the corner is a per-card control rather
   than four hard-coded rules.

   The corner names are PHYSICAL and match what you see on the Figma canvas. They must not
   become logical properties: under dir="rtl" `border-start-start-radius` would move the
   marked corner to the other side and break the rhythm across the row. */
.az-testimonials__portrait {
	position: relative;
	width: 100%;
	height: 470px;
	overflow: hidden;
	border-radius: 24px;
	background-color: #FFFFFF;
}

.az-testimonials__portrait--tl { border-top-left-radius: 100px; }
.az-testimonials__portrait--tr { border-top-right-radius: 100px; }
.az-testimonials__portrait--bl { border-bottom-left-radius: 100px; }
.az-testimonials__portrait--br { border-bottom-right-radius: 100px; }

.az-section .az-testimonials__portrait img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.az-testimonials__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	background-color: #DDA833;
	border-radius: 50%;
	color: #15130F;
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.az-testimonials__play svg {
	display: block;
	width: 32px;
	height: 32px;
	margin-left: 3px; /* optical centring — the triangle's box is left-heavy */
}

a.az-testimonials__portrait:hover .az-testimonials__play,
a.az-testimonials__portrait:focus-visible .az-testimonials__play {
	transform: translate(-50%, -50%) scale(1.08);
	background-color: #E9B846;
}

/* ------------------------------------------------
   NAME AND ROLE
   ------------------------------------------------ */
.az-testimonials__meta {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	/* The design fixes this at 119px, which is the width of the placeholder name. Real names
	   will be longer, so it grows from that instead of clipping. */
	min-width: 119px;
	max-width: 100%;
}

.az-testimonials__name {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 6px 12px;
	background-color: rgba(221, 168, 51, 0.18);
	border: 1px solid rgba(221, 168, 51, 0.35);
	border-radius: 1000px;
	font-size: 12px;
	font-weight: 500;
	line-height: 1.2;
	letter-spacing: 0.88px;
	color: #E8BF5A;
	text-align: center;
}

.az-testimonials__role {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.2;
	color: #F5F2EA;
	text-align: center;
}

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------
   4 x 318 + 3 x 16 = 1320, which is the full content column — so this row has no slack at all
   below 1440 and the columns have to give immediately. */
@media (max-width: 1380px) {
	.az-testimonials__grid {
		grid-template-columns: repeat(4, 1fr);
		width: 100%;
	}

	.az-testimonials__portrait {
		height: auto;
		aspect-ratio: 318 / 470;
	}
}

@media (max-width: 1024px) {
	.az-testimonials {
		padding: 72px 32px;
	}

	.az-testimonials__inner {
		gap: 48px;
	}

	.az-testimonials__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 24px 16px;
	}
}

@media (max-width: 560px) {
	.az-testimonials {
		padding: 56px 20px;
	}

	.az-testimonials__grid {
		grid-template-columns: 1fr;
	}

	/* A 318:470 portrait is most of a phone screen; four of them is a very long scroll. */
	.az-testimonials__portrait {
		aspect-ratio: 4 / 3;
	}

	/* See the !important note in amotz-announcement-bar.css. */
	.az-testimonials__title {
		font-size: clamp(26px, 6.5vw, 36px) !important;
		letter-spacing: -0.03em !important;
	}

	.az-testimonials__sub {
		font-size: 16px !important;
	}
}
