/* ==========================================================================
   Nejat Service Photo Cards  (.nejat-spc)
   3-col image grid with hover-reveal description overlay
   ========================================================================== */

.nejat-spc {
	padding-top: var(--nejat-section-pad-v);
	padding-bottom: var(--nejat-section-pad-v);
}

.nejat-spc__inner {
	max-width: var(--nejat-max-width);
	margin: 0 auto;
	padding-left: var(--nejat-gutter);
	padding-right: var(--nejat-gutter);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */

.nejat-spc__header {
	margin-bottom: var(--nejat-gap-md);
}

.nejat-spc__eyebrow {
	display: block;
	color: #4ab3c8;
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 10px;
	letter-spacing: 0.03em;
	text-transform: capitalize;
}

.nejat-spc__headline {
	margin: 0;
	font-size: clamp(28px, 3vw, 40px);
	font-weight: 700;
	color: #1a1a1a;
	line-height: 1.2;
}

/* --------------------------------------------------------------------------
   Grid
   -------------------------------------------------------------------------- */

.nejat-spc__grid {
	display: grid;
	gap: 16px;
}

.nejat-spc__grid--cols-2 { grid-template-columns: repeat(2, 1fr); }
.nejat-spc__grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
.nejat-spc__grid--cols-4 { grid-template-columns: repeat(4, 1fr); }

/* --------------------------------------------------------------------------
   Card shell
   -------------------------------------------------------------------------- */

.nejat-spc__card {
	position: relative;
	overflow: hidden;
	border-radius: 16px;
	min-height: 520px;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	cursor: pointer;
	background-color: #b0b0b0; /* placeholder when no image is set */
}

/* --------------------------------------------------------------------------
   Background image layer
   -------------------------------------------------------------------------- */

.nejat-spc__card-img {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center top;
	transition: transform 0.5s ease;
}

.nejat-spc__card:hover .nejat-spc__card-img {
	transform: scale(1.04);
}

/* --------------------------------------------------------------------------
   Overlay
   Permanent gradient keeps the bottom readable; hover darkens the whole card
   -------------------------------------------------------------------------- */

.nejat-spc__card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.72) 0%,
		rgba(0, 0, 0, 0.30) 40%,
		rgba(0, 0, 0, 0.00) 70%
	);
	transition: background 0.4s ease;
}

.nejat-spc__card:hover .nejat-spc__card-overlay {
	background: rgba(30, 30, 30, 0.55);
}

/* --------------------------------------------------------------------------
   Card body — pinned to the bottom of the card
   -------------------------------------------------------------------------- */

.nejat-spc__card-body {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 28px 24px 24px;
	color: #ffffff;
}

/* --------------------------------------------------------------------------
   Description — hidden by default, fades in on hover
   -------------------------------------------------------------------------- */

.nejat-spc__card-desc {
	margin: 0 0 16px;
	font-size: 0.925rem;
	line-height: 1.65;
	color: #ffffff;
	opacity: 0;
	transform: translateY(10px);
	transition: opacity 0.35s ease, transform 0.35s ease;
}

.nejat-spc__card:hover .nejat-spc__card-desc {
	opacity: 1;
	transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Accent line
   -------------------------------------------------------------------------- */

.nejat-spc__card-accent {
	display: block;
	width: 100%;
	height: 2px;
	background-color: rgba(255, 255, 255, 0.60);
	margin-bottom: 12px;
}

/* --------------------------------------------------------------------------
   Card title — always visible
   -------------------------------------------------------------------------- */

.nejat-spc__card-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #ffffff;
	line-height: 1.25;
}

/* --------------------------------------------------------------------------
   Treatment tags — pill badges
   -------------------------------------------------------------------------- */

.nejat-spc__tags {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 14px;
	margin-top: 10px;
}

.nejat-spc__tag {
	display: inline;
	padding: 0 0 1px;
	background: none;
	border: none;
	border-radius: 0;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	font-size: 0.72rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.80);
	border-bottom: 1px dashed rgba(255, 255, 255, 0.45);
	white-space: nowrap;
	text-decoration: none;
	transition: color 0.2s ease, border-color 0.2s ease;
}

a.nejat-spc__tag:hover {
	color: #ffffff;
	border-bottom-color: rgba(255, 255, 255, 0.90);
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
	.nejat-spc__grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.nejat-spc__grid--cols-3,
	.nejat-spc__grid--cols-4 {
		grid-template-columns: repeat(2, 1fr);
	}

	.nejat-spc__card {
		min-height: 400px;
	}
}

@media (max-width: 560px) {
	.nejat-spc__grid--cols-2,
	.nejat-spc__grid--cols-3,
	.nejat-spc__grid--cols-4 {
		grid-template-columns: 1fr;
	}

	.nejat-spc__card {
		min-height: 360px;
	}
}
