/* ==========================================================================
   Service Card Component
   ========================================================================== */

/* Service Card */
.service-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	background: var(--color-accent-50);
	border: 1px solid var(--color-border-light);
	border-radius: var(--radius-card);
	padding: 0 24px 24px;
	overflow: hidden;
}

/* Image area — tilted book */
.service-card__image-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 278px;
	max-width: 100%;
	height: 331px;
	flex-shrink: 0;
}

.service-card__image-tilt {
	width: 201px;
	height: 251px;
	transform: rotate(-8deg);
	border-radius: 6px;
	box-shadow: 0px 17px 24px rgba(0, 0, 0, 0.25);
	overflow: hidden;
	flex-shrink: 0;
}

.service-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 6px;
}

/* Body (title + description) — grows to absorb variable text height */
.service-card__body {
	display: flex;
	flex-direction: column;
	gap: 18px;
	text-align: center;
	padding-bottom: 6px;
	width: 100%;
	flex: 1;
}

.service-card__title {
	font-family: var(--font-family-serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	color: var(--color-text);
}

.service-card__description {
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: 400;
	line-height: 20px;
	color: var(--color-dark-500);
	opacity: 0.8;
}

/* Price block */
.service-card__price-block {
	display: flex;
	flex-direction: column;
	gap: 18px;
	width: 100%;
	background: var(--color-accent-100);
	border-radius: var(--radius-lg);
	padding: 32px 24px;
}

.service-card__price-row {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

.service-card__price {
	font-family: var(--font-family-serif);
	font-size: 32px;
	font-style: italic;
	font-weight: 400;
	line-height: 36px;
	color: var(--color-text);
	text-align: center;
	font-variant-numeric: lining-nums proportional-nums;
}

.service-card__price-note {
	font-family: var(--font-family);
	font-size: 12px;
	font-weight: 500;
	line-height: 14px;
	color: var(--color-text);
	opacity: 0.4;
	text-align: center;
}

/* Details (duration / start) */
.service-card__details {
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: center;
}

.service-card__detail {
	display: flex;
	gap: 8px;
	align-items: center;
	justify-content: center;
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	line-height: 18px;
}

.service-card__detail-label {
	color: var(--color-dark-500);
}

.service-card__detail-value {
	color: var(--color-text);
}

/* CTA button */
.service-card__cta {
	width: 100%;
	font-size: var(--font-size-lg);
	padding: 18px 26px;
}

/* ==========================================================================
   Services Archive Layout
   ========================================================================== */

.services-archive {
	background: var(--color-bg);
}

.services-archive__body {
	display: flex;
	flex-direction: column;
	gap: 40px;
	padding-top: var(--page-padding);
	padding-bottom: var(--section-gap);
}

/* Hero */
.services-hero {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	height: 426px;
	border: 1px solid var(--color-accent-200);
	border-radius: var(--radius-xl);
	overflow: hidden;
	padding: 80px 48px;
}

.services-hero__bg {
	position: absolute;
	inset: 0;
	pointer-events: none;
	border-radius: var(--radius-xl);
}

.services-hero__bg-base {
	position: absolute;
	inset: 0;
	background: var(--color-bg-warm);
	border-radius: var(--radius-xl);
}

.services-hero__bg-image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius-xl);
	mix-blend-mode: multiply;
}

.services-hero__content {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 24px;
	max-width: 640px;
	text-align: center;
	z-index: 1;
}

.services-hero__title {
	font-family: var(--font-family-serif);
	font-size: 44px;
	font-weight: 500;
	line-height: 48px;
	color: var(--color-text);
}

.services-hero__subtitle {
	font-family: var(--font-family-serif);
	font-size: 20px;
	font-weight: 500;
	line-height: 24px;
	color: var(--color-text);
}

.services-hero__description {
	font-family: var(--font-family-serif);
	font-size: 20px;
	font-style: italic;
	font-weight: 400;
	line-height: 24px;
	color: var(--color-dark-500);
}

.services-hero__cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 15px 18px;
	background: var(--color-dark-600);
	color: var(--color-accent-200);
	border: none;
	border-radius: var(--radius-btn);
	font-family: var(--font-family);
	font-size: var(--font-size-base);
	font-weight: 500;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s;
}

.services-hero__cta:hover {
	opacity: 0.9;
}

.services-hero__cta svg {
	flex-shrink: 0;
}

/* Grid */
.services-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.services-hero {
		height: auto;
		padding: 60px 32px;
	}

	.services-hero__title {
		font-size: 36px;
		line-height: 40px;
	}
}

@media (max-width: 768px) {
	.services-archive__grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.services-hero {
		padding: 48px 24px;
	}

	.services-hero__title {
		font-size: 28px;
		line-height: 34px;
	}

	.services-hero__subtitle,
	.services-hero__description {
		font-size: 16px;
		line-height: 22px;
	}
}

/* Mobile: single column, compact cards */
@media (max-width: 480px) {
	.services-archive__body {
		gap: 24px;
	}

	.services-archive__grid {
		grid-template-columns: 1fr;
		gap: 12px;
	}

	/* Hero: mobile */
	.services-hero {
		height: auto;
		padding: 120px 40px;
	}

	.services-hero__title {
		font-size: 30px;
		line-height: 34px;
	}

	.services-hero__subtitle {
		font-size: 18px;
		line-height: 22px;
	}

	.services-hero__description {
		font-size: 16px;
		line-height: 22px;
	}

	.services-hero__cta {
		width: 100%;
		justify-content: center;
	}

	/* Card: mobile variant */
	.service-card {
		padding: 0 16px 16px;
		gap: 12px;
	}

	.service-card__body {
		gap: 12px;
	}

	.service-card__image-wrap {
		height: auto;
		padding: 24px 0;
	}

	.service-card__image-tilt {
		width: 178px;
		height: 222px;
	}

	.service-card__price {
		font-size: 26px;
		line-height: 30px;
	}

	.service-card__cta {
		font-size: var(--font-size-base);
		padding: 15px 18px;
	}
}
