/* ================================================
   AMOTZ — QUOTES  "במילים שלהם"  (Figma 566:10190)
   ================================================
   band      1440x1229 · the same botanical background as the About section
   headline  Polin Bold 54/1.2 · tracking -1.8 · #152114 · centred
   grid      2 x 2 · 580px cards, 16px apart (1176 total) · 444px tall
   light     rgba(255,255,255,.65) on a 2px #472D00 border · text #15140F
   dark      #472D00, no border · text rgba(255,255,255,.8) · name white
   corner    100px on TOP-LEFT in row 1, BOTTOM-LEFT in row 2
   quote     54x40.5 mark · body Polin Medium 20/1.5 · name Polin Medium 18/1.2
   ================================================ */

.az-quotes {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 100px var(--az-edge);
	overflow: hidden;
}

.az-section .az-quotes__bg {
	position: absolute;
	inset: 0;
	z-index: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	pointer-events: none;
}

.az-quotes__inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 60px;
	width: 100%;
	max-width: 1176px; /* 2 x 580 + 16 */
}

.az-quotes__title {
	font-size: 54px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: -1.8px;
	color: #152114;
	text-align: center;
}

.az-quotes__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	width: 100%;
}

/* ------------------------------------------------
   CARD
   ------------------------------------------------
   `justify-content: space-between` over a fixed 444px is what spreads the quote mark, the
   body and the attribution in the design. The height is kept as a MINIMUM rather than a fixed
   value: these quotes vary a lot in length — the longest is nearly three times the shortest —
   and a hard 444px would clip the long one. */
.az-quotes__card {
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 24px;
	min-height: 444px;
	padding: 50px 32px;
	/* PHYSICAL corners. Row 1 carries its 100px on the TOP-LEFT and row 2 on the BOTTOM-LEFT,
	   so the four together mirror around the row gap. A logical property would move both to
	   the other side under dir="rtl" and lose that. */
	border-radius: 24px;
	text-align: right;
}

.az-quotes__card--tl { border-top-left-radius: 100px; }
.az-quotes__card--bl { border-bottom-left-radius: 100px; }

/* Light card — a 65% white wash over the botanical background, so the pattern shows through.
   `background-color` with alpha, not opacity: opacity would fade the text with it. */
.az-quotes__card--light {
	background-color: rgba(255, 255, 255, 0.65);
	border: 2px solid var(--az-brown);
	color: #15140F;
}

/* Dark card — one of the four is inverted in the design. It carries NO border, which is
   deliberate in the source: the fill already separates it from the background. */
.az-quotes__card--dark {
	background-color: var(--az-brown);
	border: 2px solid transparent;
	color: rgba(255, 255, 255, 0.8);
}

.az-quotes__mark {
	flex-shrink: 0;
	width: 54px;
	height: 40.5px;
}

.az-quotes__mark svg {
	display: block;
	width: 100%;
	height: 100%;
}

/* The mark is one file with `fill="currentColor"` — the design exports it twice, identical
   geometry, only the fill differing (#472D00 against #EBC55B). */
.az-quotes__card--light .az-quotes__mark { color: var(--az-brown); }
.az-quotes__card--dark .az-quotes__mark { color: var(--az-yellow); }

.az-quotes__text {
	font-size: 20px;
	font-weight: 500;
	line-height: 1.5;
	color: inherit;
}

/* Attribution. The avatar is FIRST in source so dir="rtl" lands it on the right, where the
   design has it — same construction as the hero's author row. */
.az-quotes__author {
	display: flex;
	align-items: center;
	gap: 16px;
	width: 330px;
	max-width: 100%;
}

.az-section .az-quotes__avatar {
	flex-shrink: 0;
	width: 50px;
	height: 50px;
	border-radius: 50%;
	object-fit: cover;
}

.az-quotes__name {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.2;
}

.az-quotes__card--light .az-quotes__name { color: #15140F; }
.az-quotes__card--dark .az-quotes__name { color: #FFFFFF; }

/* ------------------------------------------------
   RESPONSIVE
   ------------------------------------------------ */
@media (max-width: 1024px) {
	.az-quotes {
		padding: 72px 32px;
	}

	.az-quotes__inner {
		gap: 40px;
	}

	.az-quotes__card {
		padding: 40px 24px;
		min-height: 0;
	}
}

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

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

	/* Once stacked, the alternating corner reads as an inconsistency rather than a mirror
	   — every card gets the same one. */
	.az-quotes__card--tl,
	.az-quotes__card--bl {
		border-radius: 24px;
		border-top-left-radius: 64px;
	}

	.az-quotes__text {
		font-size: 17px;
	}

	/* See the !important note in amotz-announcement-bar.css. */
	.az-quotes__title {
		font-size: clamp(28px, 7vw, 38px) !important;
		letter-spacing: -0.03em !important;
	}
}
