/* ==========================================================================
   Patient Care Home BD - Nursing & Medical Services Section (Responsive)
   ========================================================================== */

.pch-services-section {
	width: 100%;
	background-color: var(--pch-base-alt, #f8fafc);
	padding: clamp(55px, 7vw, 95px) 0 clamp(65px, 8vw, 110px) 0;
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
}

/* Optional Background Pattern */
.pch-services-section::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 1px;
	background: linear-gradient(90deg, transparent 0%, #e2e8f0 50%, transparent 100%);
}

/* Container */
.pch-services-container {
	max-width: 1340px;
	margin-left: auto;
	margin-right: auto;
	padding-left: clamp(16px, 3.5vw, 28px);
	padding-right: clamp(16px, 3.5vw, 28px);
	box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   1. Section Header
   -------------------------------------------------------------------------- */
.pch-section-header {
	text-align: center;
	max-width: 780px;
	margin: 0 auto clamp(26px, 4vw, 36px) auto;
}

.pch-section-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: var(--pch-primary-light);
	color: var(--pch-primary);
	font-size: clamp(11.5px, 1.2vw, 13px);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.8px;
	padding: 6px 16px;
	border-radius: 30px;
	margin-bottom: clamp(12px, 2vw, 18px);
	border: 1px solid var(--pch-primary-border);
	box-shadow: 0 2px 10px var(--pch-primary-glow);
}

.pch-badge-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background-color: var(--pch-primary);
	display: inline-block;
	box-shadow: 0 0 0 0 var(--pch-primary-glow);
	animation: pchPulse 2s infinite;
	flex-shrink: 0;
}

@keyframes pchPulse {
	0% {
		box-shadow: 0 0 0 0 var(--pch-primary-glow);
	}

	70% {
		box-shadow: 0 0 0 8px rgba(37, 150, 190, 0);
	}

	100% {
		box-shadow: 0 0 0 0 rgba(37, 150, 190, 0);
	}
}

.pch-section-title {
	font-family: inherit;
	font-size: clamp(26px, 4.2vw, 46px);
	font-weight: 700;
	color: var(--pch-navy-dark, #0b1527);
	line-height: 1.18;
	margin: 0 0 clamp(10px, 1.8vw, 16px) 0;
	letter-spacing: -0.5px;
	word-break: break-word;
}

.pch-section-desc {
	font-family: inherit;
	font-size: clamp(14.5px, 1.6vw, 16.5px);
	color: var(--pch-text-muted, #475569);
	line-height: 1.65;
	margin: 0;
}

/* --------------------------------------------------------------------------
   2. Category Filter & Sub-Nav Bar
   -------------------------------------------------------------------------- */
.pch-services-nav-bar-wrap {
	width: 100%;
	margin-bottom: clamp(28px, 4.5vw, 42px);
	position: relative;
}

.pch-services-nav-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 14px;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 4px 20px -3px rgba(15, 23, 42, 0.05);
	box-sizing: border-box;
}

.pch-services-filters {
	display: flex;
	align-items: center;
	gap: 8px;
	overflow-x: auto;
	flex-wrap: nowrap;
	scrollbar-width: none;
	-ms-overflow-style: none;
	-webkit-overflow-scrolling: touch;
	padding: 2px 0;
	scroll-behavior: smooth;
	flex: 1;
}

.pch-services-filters::-webkit-scrollbar {
	display: none;
}

.pch-filter-btn {
	background: transparent;
	border: 1px solid transparent;
	color: #64748b;
	font-family: inherit;
	font-size: clamp(12.5px, 1.3vw, 13.5px);
	font-weight: 600;
	padding: 8px 16px;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	outline: none;
	-webkit-tap-highlight-color: transparent;
	white-space: nowrap;
	flex-shrink: 0;
}

.pch-filter-btn:hover {
	color: #0f172a;
	background: #f8fafc;
}

.pch-filter-btn.is-active {
	background: var(--pch-primary);
	color: #ffffff;
	font-weight: 700;
	border-color: var(--pch-primary);
	box-shadow: 0 4px 14px var(--pch-primary-glow);
}

.pch-services-nav-action {
	margin-left: auto;
	flex-shrink: 0;
	padding-left: 8px;
	border-left: 1px solid #f1f5f9;
}

.pch-show-all-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	color: var(--pch-primary);
	text-decoration: none;
	padding: 6px 12px;
	border-radius: 8px;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.pch-show-all-link svg {
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.pch-show-all-link:hover {
	background-color: var(--pch-primary-light);
	color: var(--pch-primary-hover);
}

.pch-show-all-link:hover svg {
	transform: translateX(4px);
}

/* --------------------------------------------------------------------------
   Section Header Row (Aligned with Grid)
   -------------------------------------------------------------------------- */
.pch-services-header-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: clamp(28px, 4vw, 40px);
}

.pch-services-header-left {
	max-width: 720px;
}

.pch-services-title {
	font-family: inherit;
	font-size: clamp(28px, 3.5vw, 42px);
	font-weight: 800;
	color: var(--pch-navy-dark, #0b1527);
	line-height: 1.18;
	margin: 0 0 8px 0;
	letter-spacing: -0.5px;
}

.pch-services-subtitle {
	font-family: inherit;
	font-size: clamp(14.5px, 1.4vw, 16.5px);
	color: var(--pch-text-muted, #475569);
	line-height: 1.6;
	margin: 0;
}

.pch-services-header-right {
	flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   3. Services Grid
   -------------------------------------------------------------------------- */
.pch-services-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 26px;
	align-items: stretch;
}

/* Service Card Container */
.pch-service-card {
	background: #ffffff;
	border-radius: 24px;
	border: 1px solid #eef2f6;
	padding: 14px 14px 18px 14px;
	display: flex;
	flex-direction: column;
	transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 10px 28px -8px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.02);
	position: relative;
	overflow: hidden;
	box-sizing: border-box;
	height: 100%;
}

.pch-service-card:hover {
	transform: translateY(-6px);
	border-color: rgba(9, 220, 248, 0.35);
	box-shadow: 0 22px 42px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(9, 220, 248, 0.2);
}

/* Card Top Inset Photo / Media */
.pch-card-media {
	position: relative;
	border-radius: 18px;
	overflow: hidden;
	aspect-ratio: 16 / 10.5;
	background: #e2e8f0;
	width: 100%;
	flex-shrink: 0;
}

.pch-card-media-link {
	display: block;
	width: 100%;
	height: 100%;
	text-decoration: none;
}

.pch-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pch-service-card:hover .pch-card-img {
	transform: scale(1.05);
}

/* Top-Left Tag / Badge Overlay */
.pch-card-badge-overlay {
	position: absolute;
	top: 12px;
	left: 12px;
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	color: #0b1527;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 9999px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	letter-spacing: 0.1px;
	pointer-events: none;
	z-index: 2;
}

/* Card Body */
.pch-card-body {
	padding: 16px 6px 0 6px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

/* Header Row: Title Group + Heart Button */
.pch-card-header-row {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 8px;
}

.pch-card-title-group {
	flex: 1;
	min-width: 0;
}

.pch-service-title {
	font-family: inherit;
	font-size: clamp(18px, 1.7vw, 21px);
	font-weight: 800;
	color: var(--pch-navy-dark, #0b1527);
	line-height: 1.25;
	margin: 0 0 3px 0;
	letter-spacing: -0.3px;
	word-break: break-word;
}

.pch-service-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.2s ease;
}

.pch-service-card:hover .pch-service-title a {
	color: var(--pch-primary, #089eb2);
}

.pch-service-location {
	display: block;
	font-family: inherit;
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.35;
}

/* Circular Heart / Favorite Button */
.pch-card-heart-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #ffffff;
	border: 1px solid #e2e8f0;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	flex-shrink: 0;
	padding: 0;
	outline: none;
	box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.pch-card-heart-btn:hover {
	border-color: #f43f5e;
	color: #f43f5e;
	background: #fff1f2;
	transform: scale(1.08);
}

.pch-card-heart-btn:focus-visible {
	outline: 2px solid #09dcf8;
	outline-offset: 2px;
}

.pch-card-heart-btn.is-active {
	border-color: #fecdd3;
	background: #fff1f2;
	color: #f43f5e;
}

.pch-card-heart-btn.is-active svg {
	fill: #f43f5e;
}

/* Short Description */
.pch-service-desc {
	font-family: inherit;
	font-size: 13.5px;
	line-height: 1.55;
	color: #64748b;
	margin: 0 0 16px 0;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Card Bottom Row: Specs + Pill Button */
.pch-card-bottom-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 12px;
	border-top: 1px solid #f1f5f9;
	padding-top: 14px;
	margin-top: auto;
}

.pch-card-specs {
	display: flex;
	align-items: center;
	gap: clamp(10px, 1.2vw, 16px);
	flex-wrap: nowrap;
	flex: 1;
	min-width: 0;
	overflow: hidden;
}

.pch-card-specs-empty {
	flex: 1;
}

.pch-spec-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
	flex-shrink: 1;
}

.pch-spec-val {
	font-family: inherit;
	font-size: 12.5px;
	font-weight: 800;
	color: var(--pch-navy-dark, #0b1527);
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pch-spec-lbl {
	font-family: inherit;
	font-size: 11px;
	font-weight: 500;
	color: #94a3b8;
	line-height: 1.2;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.pch-card-action {
	flex-shrink: 0;
}

/* Pill Action Button ("See more") */
.pch-card-pill-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #09dcf8 0%, #089eb2 100%);
	color: #ffffff !important;
	font-family: inherit;
	font-size: 13.5px;
	font-weight: 700;
	padding: 9px 22px;
	border-radius: 9999px;
	text-decoration: none !important;
	outline: none !important;
	white-space: nowrap;
	transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
	box-shadow: 0 4px 14px rgba(8, 158, 178, 0.28);
	-webkit-tap-highlight-color: transparent !important;
}

.pch-card-pill-btn:hover {
	background: linear-gradient(135deg, #22e2fa 0%, #078c9e 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 18px rgba(8, 158, 178, 0.42);
	color: #ffffff !important;
}

.pch-card-pill-btn:focus,
.pch-card-pill-btn:focus-visible,
.pch-card-pill-btn:active {
	outline: none !important;
	box-shadow: 0 4px 14px rgba(8, 158, 178, 0.28) !important;
}

/* Empty State Container */
.pch-services-empty-state {
	background: #ffffff;
	border: 1.5px dashed #cbd5e1;
	border-radius: 18px;
	padding: 48px 24px;
	text-align: center;
	color: #64748b;
	font-size: 15px;
}

.pch-services-empty-state p {
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	justify-content: center;
}

/* --------------------------------------------------------------------------
   4. 6th Card: Dark Premium Custom Support & Emergency CTA Card
   -------------------------------------------------------------------------- */
.pch-service-card-cta {
	background: linear-gradient(145deg, #0b1527 0%, #152642 100%);
	border: 1.5px solid rgba(255, 255, 255, 0.08);
	color: #ffffff;
}

.pch-service-card-cta .pch-card-top-accent {
	background: linear-gradient(90deg, #38bdf8 0%, #5ec8ec 100%);
	opacity: 1;
}

.pch-service-card-cta:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 45px -10px rgba(11, 21, 39, 0.55), 0 0 0 1px var(--pch-primary-glow);
	border-color: var(--pch-primary);
}

.pch-service-card-cta .pch-service-icon-box {
	background: rgba(37, 150, 190, 0.22);
	border-color: rgba(56, 189, 248, 0.35);
	color: #5ec8ec;
}

.pch-service-card-cta:hover .pch-service-icon-box {
	background: var(--pch-primary);
	color: #ffffff;
	box-shadow: 0 8px 20px -3px var(--pch-primary-glow);
}

.pch-service-card-cta .pch-card-tag {
	color: #5ec8ec;
	background: rgba(37, 150, 190, 0.18);
	border-color: rgba(56, 189, 248, 0.3);
}

.pch-service-card-cta .pch-service-title {
	color: #ffffff;
}

.pch-service-card-cta:hover .pch-service-title {
	color: #5ec8ec;
}

.pch-service-card-cta .pch-service-desc {
	color: #94a3b8;
}

.pch-service-card-cta .pch-card-features li {
	color: #cbd5e1;
}

.pch-service-card-cta .pch-check-icon {
	color: #5ec8ec;
}

.pch-service-card-cta .pch-service-footer {
	border-top-color: rgba(255, 255, 255, 0.12);
}

.pch-cta-buttons-row {
	display: flex;
	gap: 8px;
	width: 100%;
}

.pch-cta-btn-call {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background-color: var(--pch-emergency-red);
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 12px;
	border-radius: 9px;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.pch-cta-btn-call:hover {
	background-color: var(--pch-emergency-hover);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(225, 29, 72, 0.35);
}

.pch-cta-btn-wa {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	background-color: var(--pch-primary);
	color: #ffffff;
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	padding: 9px 12px;
	border-radius: 9px;
	text-decoration: none;
	transition: all 0.2s ease;
	white-space: nowrap;
}

.pch-cta-btn-wa svg {
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.pch-cta-btn-wa:hover {
	background-color: var(--pch-primary-hover);
	color: #ffffff;
	transform: translateY(-1px);
	box-shadow: 0 4px 14px var(--pch-primary-glow);
}

.pch-cta-btn-wa:hover svg {
	transform: translateX(3px);
}

/* --------------------------------------------------------------------------
   5. Interactive Filtering Animation Classes
   -------------------------------------------------------------------------- */
.pch-service-card.is-hidden {
	display: none !important;
}

.pch-service-card.is-fading-in {
	animation: pchCardFadeIn 0.32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pchCardFadeIn {
	from {
		opacity: 0;
		transform: translateY(14px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* --------------------------------------------------------------------------
   6. Responsive Media Queries: Tablet & Mobile Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
	.pch-services-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
}

@media (max-width: 900px) {
	.pch-services-nav-action {
		display: none;
		/* "All Services" pill in the ribbon already serves to show all! */
	}

	.pch-services-nav-bar {
		padding: 6px 8px;
		border-radius: 14px;
	}
}

@media (max-width: 768px) {
	.pch-services-nav-bar-wrap {
		margin-bottom: 24px;
	}

	.pch-services-nav-bar {
		padding: 5px 6px;
		border-radius: 14px;
		background: #ffffff;
		border: 1px solid #e2e8f0;
		box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.06);
	}

	.pch-services-filters {
		gap: 6px;
		padding: 2px 2px;
	}

	.pch-filter-btn {
		font-size: 13px;
		padding: 7px 14px;
		border-radius: 8px;
	}
}

@media (max-width: 640px) {
	.pch-services-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.pch-services-section {
		padding: 48px 0 55px 0;
	}

	.pch-service-card {
		padding: 12px 12px 16px 12px;
		border-radius: 20px;
	}

	.pch-card-media {
		border-radius: 14px;
	}

	.pch-cta-buttons-row {
		gap: 6px;
	}

	.pch-cta-btn-call,
	.pch-cta-btn-wa {
		padding: 8px 10px;
		font-size: 12px;
	}
}

@media (max-width: 360px) {
	.pch-cta-buttons-row {
		flex-direction: column;
	}

	.pch-cta-btn-call,
	.pch-cta-btn-wa {
		width: 100%;
		padding: 10px;
	}
}