/*
 * Symptoms ("Znaci kvara"): a full-width photo band (graphite gradient on the left, so the
 * heading stays readable) and a white panel with six symptoms that overlaps the bottom edge
 * of the photo. The panel ends with a "recognize any of these?" strip.
 */

.mj-symptoms {
	position: relative;
	padding-bottom: clamp(3rem, 6vw, 5rem);
	background: var(--mj-cream);
	color: var(--mj-graphite);
	scroll-margin-top: var(--mj-bar-h);
}

/* Photo band */
.mj-symptoms__stage {
	position: relative;
	padding: clamp(3rem, 6vw, 4.5rem) 0 clamp(8rem, 14vw, 10.5rem);
	background: var(--mj-graphite);
	color: var(--mj-cream);
	overflow: hidden;
}

/* Without the panel there is nothing to overlap, so the band needs no extra bottom room */
.mj-symptoms--no-panel {
	padding-bottom: 0;
}

.mj-symptoms--no-panel .mj-symptoms__stage {
	padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.mj-symptoms__photo {
	position: absolute;
	inset: 0;
}

.mj-symptoms__photo picture,
.mj-symptoms__photo .mj-symptoms__img {
	display: block;
	width: 100%;
	height: 100%;
}

.mj-symptoms .mj-symptoms__img {
	object-fit: cover;
	object-position: 50% 45%;
}

.mj-symptoms__photo::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(22, 24, 29, 0.92) 0%, rgba(22, 24, 29, 0.78) 45%, rgba(22, 24, 29, 0.62) 100%);
}

.mj-symptoms__stage > .mj-container {
	position: relative;
	z-index: 1;
}

/* Header: heading left, intro right (same as the other sections) */
.mj-symptoms__head {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	align-items: end;
	gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
}

/* The eyebrow is on the dark photo band: light text */
.mj-symptoms__stage .mj-eyebrow {
	color: rgba(242, 240, 235, 0.8);
}

.mj-symptoms__title {
	margin: 0;
	color: var(--mj-cream);
	font-size: clamp(2.25rem, 3.8vw, 3.25rem);
	letter-spacing: -0.015em;
}

.mj-symptoms__accent {
	display: inline-block;
	background: linear-gradient(var(--mj-orange), var(--mj-orange)) 0 100% / 100% 0.12em no-repeat;
}

.mj-symptoms__intro {
	max-width: 30rem;
	margin: 0;
	padding: 0.125rem 0 0.125rem 1.25rem;
	border-left: 2px solid var(--mj-orange);
	color: rgba(242, 240, 235, 0.82);
	font-size: 1rem;
	line-height: 1.65;
}

/* Panel over the photo */
.mj-symptoms__panel {
	position: relative;
	z-index: 2;
	margin-top: calc(-1 * clamp(5rem, 9vw, 7rem));
	background: #fff;
	box-shadow: 0 30px 60px -34px rgba(22, 24, 29, 0.45);
}

.mj-symptoms__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1px;
	margin: 0;
	padding: 0;
	background: rgba(22, 24, 29, 0.1); /* hairlines between the cells */
	list-style: none;
}

.mj-symptom {
	padding: clamp(1.5rem, 2.5vw, 2.125rem);
	background: #fff;
}

.mj-symptom__title {
	position: relative;
	margin: 0 0 0.625rem;
	padding-left: 1.25rem;
	font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
	line-height: 1.25;
}

/* Orange knob from the logo as the marker */
.mj-symptom__title::before {
	content: '';
	position: absolute;
	top: 0.4em;
	left: 0;
	width: 0.5rem;
	height: 0.5rem;
	border-radius: 50%;
	background: var(--mj-orange);
}

.mj-symptom__text {
	margin: 0;
	color: rgba(22, 24, 29, 0.7);
	font-size: 0.9375rem;
	line-height: 1.65;
}

/* Strip at the bottom of the panel */
.mj-symptoms__cta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1.25rem 2rem;
	padding: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.5rem, 2.5vw, 2.125rem);
	border-top: 1px solid rgba(22, 24, 29, 0.1);
	background: var(--mj-cream);
}

.mj-symptoms__cta-title {
	margin: 0 0 0.25rem;
	font-family: var(--mj-font-display);
	font-size: 1.1875rem;
	font-weight: 800;
	line-height: var(--mj-lh-display);
}

.mj-symptoms__cta-text {
	max-width: 36rem;
	margin: 0;
	color: rgba(22, 24, 29, 0.68);
	font-size: 0.9375rem;
	line-height: 1.6;
}

@media (max-width: 960px) {
	.mj-symptoms__head {
		grid-template-columns: minmax(0, 1fr);
		align-items: start;
	}

	.mj-symptoms__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 600px) {
	.mj-symptoms__grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.mj-symptoms__cta .mj-btn {
		width: 100%;
	}
}
