/*
 * qelq-core front end, design v3: group "home" (Kreu, Koleksionet, one collection, Heritage on Glass).
 * Sources: QKreu.dc.html, QSezonet.dc.html, QKoleksionet.dc.html, QKoleksioni.dc.html, QHeritage.dc.html.
 * Everything is scoped under .q3; breakpoints are container queries on .q3 (1080 px, 900 px).
 */

/* ------------------------------------------------------------------ shared pieces */
.q3 .q3-cards--280 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.q3 .q3-cards--300 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.q3 .q3-cards--320 { grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); }
.q3 .q3-card .q3-card__img { height: auto; }
.q3 .q3-card--32 .q3-card__img { aspect-ratio: 3 / 2; }
.q3 .q3-caption { font-size: 13.5px; line-height: 1.45; color: var(--q3-ink-3); }
.q3 .q3-split__media .q3-split__img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.q3 .q3-chip--lg { min-height: 48px; padding: 0 18px; font-size: 16px; }
.q3 .q3-section--sand .q3-chip--lg:not(:hover) { background: transparent; }

/* Facts strip (dl). */
.q3 .q3-facts {
	margin: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
	gap: 0 24px;
	border-bottom: 1px solid var(--q3-line);
}
.q3 .q3-facts--boxed { border-top: 1px solid var(--q3-line); }
.q3 .q3-fact { padding: 14px 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.q3 .q3-fact dt {
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.12em;
	line-height: 1.4;
	text-transform: uppercase;
	color: var(--q3-ink-3);
}
.q3 .q3-fact dd {
	margin: 0;
	font-family: var(--q3-f-head);
	font-size: 17px;
	line-height: 1.3;
	font-weight: 600;
	color: var(--q3-ink);
}

/* Photo + text band (peach). */
.q3 .q3-band {
	padding-top: var(--q3-sec-pad);
	padding-bottom: var(--q3-sec-pad);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 24px clamp(24px, 4.4cqw, 64px);
}
.q3 .q3-band__media { flex: 1 1 320px; min-width: 0; }
.q3 .q3-band__media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 30%; }
.q3 .q3-band__media img.q3-band__img--wide { aspect-ratio: 2 / 1; object-position: 50% 50%; }
.q3 .q3-band__text {
	flex: 1 1 360px;
	min-width: 0;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 12px;
}
.q3 .q3-band .q3-eyebrow { color: var(--q3-navy); }
.q3 .q3-band__p { font-size: 17px; line-height: 1.55; max-width: 560px; color: var(--q3-ink); }

/* Quotes. */
.q3 .q3-quote {
	margin: 0;
	padding: 20px;
	border: 1px solid var(--q3-line);
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.q3 .q3-quote__src { color: inherit; text-decoration: underline; text-underline-offset: 4px; }

/* ------------------------------------------------------------------ Kreu: hero */
.q3 .q3-kreu-hero { position: relative; overflow: hidden; background: #0B1A30; color: var(--q3-white); }
.q3 .q3-kreu-hero__media { position: absolute; top: 0; right: 0; bottom: 0; left: 0; }
.q3 .q3-kreu-hero__media img.q3-kreu-hero__img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.q3 .q3-kreu-hero__shade {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, rgba(11, 26, 48, 0.94) 0%, rgba(11, 26, 48, 0.86) 36%, rgba(11, 26, 48, 0.4) 60%, rgba(11, 26, 48, 0) 80%);
}
.q3 .q3-kreu-hero__in {
	position: relative;
	max-width: 1280px;
	margin: 0 auto;
	padding: clamp(40px, 6cqw, 80px) var(--q3-pad) clamp(40px, 5cqw, 64px);
	min-height: clamp(440px, 40cqw, 580px);
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.q3 .q3-kreu-hero__box { max-width: 600px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.q3 .q3-kreu-hero .q3-hero-title { color: var(--q3-white); }
.q3 .q3-kreu-hero__sub { max-width: 520px; font-size: 18px; line-height: 1.5; color: #E6EAF0; }
.q3 .q3-kreu-hero .q3-link--light { color: var(--q3-white); }

/* Kreu: other blocks. */
.q3 .q3-kreu-season { gap: 10px; }
.q3 .q3-kreu-season__panel { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.q3 .q3-kreu-season__panel .q3-body { max-width: 820px; }
.q3 .q3-kreu-rating { gap: 12px 24px; }
.q3 .q3-kreu-rating .q3-head { gap: 6px; }
.q3 .q3-kreu-rating__h { display: flex; align-items: center; gap: 10px; }
.q3 .q3-kreu-rating__h .q3-icon { flex: none; }
.q3 .q3-kreu-visit { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; }
.q3 .q3-kreu-visit__head { max-width: 640px; }
.q3 .q3-kreu-visit__actions { padding-top: 0; }

/* ------------------------------------------------------------------ one collection */
.q3 .q3-koleksioni__story { display: flex; flex-direction: column; gap: 10px; }
.q3 .q3-koleksioni__story p { margin: 0; }
.q3 .q3-steps { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; }
.q3 .q3-step {
	flex: 1 1 0;
	min-width: 0;
	padding: 16px 14px;
	background: var(--q3-sand);
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 10px;
}
.q3 .q3-step svg { flex: none; }
.q3 .q3-step__body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.q3 .q3-step__title { font-family: var(--q3-f-head); font-size: 17px; line-height: 1.25; font-weight: 600; }
.q3 .q3-step__nr { color: var(--q3-ink-3); margin-right: 8px; }
.q3 .q3-step__text { font-size: 15px; line-height: 1.45; color: var(--q3-ink-3); }
.q3 .q3-steps__arrow { flex: none; width: 26px; display: flex; align-items: center; justify-content: center; color: var(--q3-navy); }

/* ------------------------------------------------------------------ Heritage on Glass */
.q3 .q3-hg { display: flex; flex-direction: column; min-width: 0; background: var(--q3-sand); }
.q3 .q3-hg[hidden] { display: none; }
.q3 .q3-hg__img { position: relative; aspect-ratio: 4 / 5; }
.q3 .q3-hg__img > a { display: block; width: 100%; height: 100%; }
.q3 .q3-hg__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.q3 .q3-hg.is-sold .q3-hg__img img { opacity: 0.4; }
.q3 .q3-hg__tag {
	position: absolute;
	left: 8px;
	top: 8px;
	padding: 4px 8px;
	background: var(--q3-peach);
	color: var(--q3-navy);
	font-size: 12.5px;
	font-weight: 600;
	line-height: 1.3;
}
.q3 .q3-hg__tag--sold { background: var(--q3-navy); color: var(--q3-white); }
.q3 .q3-hg__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px 14px; }
.q3 .q3-hg__name { font-family: var(--q3-f-head); font-size: 16px; line-height: 1.25; font-weight: 600; color: var(--q3-navy); text-decoration: none; }
.q3 .q3-hg__name:hover { text-decoration: underline; text-underline-offset: 4px; }
.q3 .q3-hg__row {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 0 8px;
	font-size: 14px;
	line-height: 1.45;
	padding-bottom: 8px;
}
.q3 .q3-hg__sub { color: var(--q3-ink-3); }
.q3 .q3-hg__price { flex: none; font-size: 15px; font-weight: 600; white-space: nowrap; }
.q3 .q3-hg__form { margin: auto 0 0; }
.q3 .q3-hg__add {
	width: 100%;
	margin-top: auto;
	min-height: 44px;
	padding: 0 12px;
	border: 1.5px solid var(--q3-navy);
	border-radius: var(--q3-radius);
	background: var(--q3-white);
	color: var(--q3-navy);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-family: var(--q3-f-body);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
}
.q3 .q3-hg__add:hover { background: var(--q3-sand-2); }
.q3 .q3-hg__add[aria-pressed="true"] { background: var(--q3-navy); color: var(--q3-white); }
.q3 .q3-hg__add[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.q3 .q3-heritage__ask { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.q3 .q3-heritage__ask .q3-body { max-width: 820px; }

/* ------------------------------------------------------------------ phone (container) */
@container (max-width: 899px) {
	.q3 .q3-kreu-hero__shade { background: linear-gradient(180deg, rgba(11, 26, 48, 1) 0%, rgba(11, 26, 48, 0.92) 44%, rgba(11, 26, 48, 0.1) 82%, rgba(11, 26, 48, 0) 100%); }
	.q3 .q3-kreu-hero__in { padding-bottom: 200px; justify-content: flex-start; }
	.q3 .q3-kreu-hero__in--noimg { padding-bottom: clamp(40px, 5cqw, 64px); }
	.q3 .q3-kreu-hero__media img.q3-kreu-hero__img { position: absolute; left: 0; bottom: 0; height: 60%; }

	.q3 .q3-dcard { flex-direction: row; }
	.q3 .q3-dcard > img,
	.q3 .q3-dcard > .q3-card__img {
		flex: 0 0 112px;
		width: 112px;
		aspect-ratio: auto;
		min-height: 112px;
		height: auto;
		align-self: stretch;
	}

	.q3 .q3-steps { flex-direction: column; gap: 2px; }
	.q3 .q3-step { flex-direction: row; align-items: center; padding: 12px 14px; }
	.q3 .q3-step svg { width: 40px; height: 40px; }
	.q3 .q3-steps__arrow { display: none; }
}
