/* Hafiz Marble Services - Front-end styles */

.hms-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.hms-home-services-section,
.hms-our-services-section {
	padding: 60px 0;
}

.hms-section-head {
	text-align: center;
	margin-bottom: 40px;
}

.hms-section-head h2 {
	margin: 0;
	font-size: 36px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

/* Grid: 3 columns = 2 rows for 6 cards */
.hms-service-grid {
	display: grid;
	gap: 28px;
}

.hms-service-grid--home,
.hms-service-grid--archive {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hms-service-card--home,
.hms-all-services-btn {
	cursor: pointer;
}

.hms-service-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	color: #1a1a1a;
	border: 1px solid #ececec;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	height: 100%;
}

.hms-service-card:hover {
	transform: translateY(-6px);
	box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
	color: #1a1a1a;
}

.hms-service-card__img {
	overflow: hidden;
}

.hms-service-card__img img,
.hms-service-card__img .hms-card-image,
.hms-placeholder {
	width: 100%;
	height: 220px;
	object-fit: cover;
	display: block;
	transition: transform 0.4s ease;
}

.hms-service-card:hover .hms-service-card__img img {
	transform: scale(1.06);
}

.hms-placeholder {
	background: linear-gradient(135deg, #e8e8e8, #f5f5f5);
}

.hms-service-card__body {
	padding: 22px;
	flex: 1;
}

.hms-service-card__body h3 {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hms-service-card__body p {
	margin: 0;
	font-size: 15px;
	line-height: 1.7;
	color: #555;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	text-overflow: ellipsis;
}

.hms-home-btn-wrap {
	text-align: center;
	margin-top: 36px;
}

.hms-btn {
	display: inline-block;
	padding: 14px 36px;
	border-radius: 50px;
	background: #1a1a1a;
	color: #fff !important;
	text-decoration: none;
	font-weight: 600;
	font-size: 15px;
	letter-spacing: 0.3px;
	transition: background 0.2s ease, transform 0.2s ease;
}

.hms-btn:hover {
	background: #333;
	transform: translateY(-2px);
	color: #fff;
}

/* Single service detail page */
.hms-single-service-page {
	padding: 50px 0 70px;
}

.hms-back-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	margin-bottom: 28px;
	text-decoration: none;
	color: #555;
	font-size: 15px;
	transition: color 0.2s;
}

.hms-back-link:hover {
	color: #1a1a1a;
}

.hms-service-detail__wrap {
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
	gap: 40px;
	align-items: start;
}

.hms-service-gallery,
.hms-gallery-stage,
.hms-gallery-view {
	overflow: visible;
}

.hms-gallery-stage {
	position: relative;
	width: 100%;
}

.hms-gallery-view {
	position: relative;
	width: 100%;
}

.hms-main-image-wrap {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid #e5e5e5;
	background: #fafafa;
	cursor: crosshair;
}

.hms-main-image-wrap img {
	display: block;
	width: 100%;
	height: auto;
	max-height: 520px;
	object-fit: cover;
}

.hms-magnifier-lens {
	display: none;
	position: absolute;
	border: 2px solid rgba(255, 255, 255, 0.9);
	border-radius: 50%;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.15);
	width: 130px;
	height: 130px;
	pointer-events: none;
	background: rgba(255, 255, 255, 0.15);
	z-index: 2;
}

.hms-zoom-result {
	display: none;
	position: absolute;
	left: calc(100% + 16px);
	top: 0;
	width: 320px;
	height: 100%;
	min-height: 320px;
	border: 1px solid #e5e5e5;
	border-radius: 14px;
	background-color: #fff;
	background-repeat: no-repeat;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
	z-index: 20;
	pointer-events: none;
}

.hms-thumbnails {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 16px;
}

.hms-thumb-btn {
	padding: 0;
	border: 2px solid #e0e0e0;
	background: none;
	border-radius: 10px;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.2s;
}

.hms-thumb-btn:hover {
	border-color: #999;
	transform: scale(1.04);
}

.hms-thumb-btn img {
	width: 84px;
	height: 84px;
	object-fit: cover;
	display: block;
}

.hms-thumb-btn.is-active {
	border-color: #1a1a1a;
	box-shadow: 0 0 0 1px #1a1a1a;
}

.hms-service-title {
	margin: 0 0 20px;
	font-size: 40px;
	font-weight: 700;
	line-height: 1.2;
	color: #1a1a1a;
}

.hms-service-description {
	font-size: 16px;
	line-height: 1.85;
	color: #444;
}

.hms-service-description p {
	margin-bottom: 1em;
}

.hms-service-description img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

@media (max-width: 1100px) {
	.hms-zoom-result {
		display: none !important;
	}

	.hms-magnifier-lens {
		display: none !important;
	}

	.hms-main-image-wrap {
		cursor: default;
	}
}

@media (max-width: 991px) {
	.hms-service-grid--home,
	.hms-service-grid--archive {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.hms-service-detail__wrap {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 640px) {
	.hms-service-grid--home,
	.hms-service-grid--archive {
		grid-template-columns: 1fr;
	}

	.hms-section-head h2 {
		font-size: 28px;
	}

	.hms-service-title {
		font-size: 30px;
	}
}
