/**
 * Services Stylesheet
 * Custom styles for services archive and single view templates
 */

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

.services-archive {
	max-width: var(--container-max-width, 1200px);
	margin: 60px auto;
	padding: 0 20px;
}

.services-header {
	text-align: center;
	margin-bottom: 50px;
}

.services-header h1 {
	font-family: 'Outfit', sans-serif;
	font-size: 2.8rem;
	font-weight: 800;
	color: var(--primary-color, #003CD6);
	margin-bottom: 15px;
	letter-spacing: -0.02em;
}

.services-header .tagline {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 1.15rem;
	color: var(--gray-600, #4b5563);
	max-width: 600px;
	margin: 0 auto;
}

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

/* Service Card Design (Glassmorphic) */
.service-card {
	background: var(--glass-bg, rgba(255, 255, 255, 0.75));
	border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.5));
	border-radius: 20px;
	box-shadow: var(--glass-shadow, 0 8px 32px 0 rgba(0, 60, 214, 0.04));
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
	display: flex;
	flex-direction: column;
	position: relative;
}

.service-card::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border-radius: 20px;
	box-shadow: var(--shadow-glow-blue, 0 0 25px rgba(0, 60, 214, 0.15));
	opacity: 0;
	transition: opacity 0.4s ease;
	pointer-events: none;
	z-index: 1;
}

.service-card:hover {
	transform: translateY(-8px);
	border-color: rgba(0, 60, 214, 0.25);
	box-shadow: var(--shadow-premium, 0 20px 40px rgba(15, 23, 42, 0.08));
}

.service-card:hover::after {
	opacity: 1;
}

.service-card-image {
	position: relative;
	height: 220px;
	overflow: hidden;
}

.service-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.service-card:hover .service-card-image img {
	transform: scale(1.08);
}

.service-card-content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	z-index: 2;
}

.service-card-content h2 {
	font-family: 'Outfit', sans-serif;
	font-size: 1.4rem;
	font-weight: 700;
	color: var(--gray-900, #0f172a);
	margin: 0 0 12px 0;
	line-height: 1.3;
	transition: color 0.3s ease;
}

.service-card:hover .service-card-content h2 {
	color: var(--primary-color, #003CD6);
}

.service-card-content p {
	font-size: 0.95rem;
	color: var(--gray-600, #475569);
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.service-card-cta {
	display: inline-flex;
	align-items: center;
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--secondary-color, #FF3366);
	text-decoration: none;
	transition: all 0.3s ease;
	gap: 6px;
	margin-top: auto;
}

.service-card-cta:hover {
	color: var(--primary-color, #003CD6);
	transform: translateX(4px);
}


/* ==========================================================================
   Single Service View Layout
   ========================================================================== */

.single-service-container {
	background: var(--gray-50, #f8fafc);
	min-height: 100vh;
}

/* Service Hero Header */
.service-hero {
	background: linear-gradient(135deg, #002280 0%, #003CD6 100%);
	color: white;
	padding: 80px 20px;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.service-hero::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 51, 102, 0.08) 0%, transparent 60%);
	z-index: 1;
}

.service-hero-content {
	position: relative;
	z-index: 2;
	max-width: 800px;
	margin: 0 auto;
}

.service-hero h1 {
	font-family: 'Outfit', sans-serif;
	font-size: 3rem;
	font-weight: 800;
	color: #ffffff;
	margin: 0 0 15px 0;
	letter-spacing: -0.02em;
	line-height: 1.2;
}

/* Breadcrumbs customization inside header */
.single-service-container .breadcrumbs {
	background: transparent;
	padding: 20px 0;
	margin-bottom: 0;
	border-bottom: none;
}

/* Content & Sidebar Grid */
.service-content-wrapper {
	max-width: var(--container-max-width, 1200px);
	margin: 40px auto 60px;
	padding: 0 20px;
	display: grid;
	grid-template-columns: 2fr 1fr;
	gap: 40px;
}

.service-main {
	background: #ffffff;
	border: 1px solid var(--gray-200, #e2e8f0);
	border-radius: 24px;
	padding: 40px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.service-featured-image {
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 35px;
	box-shadow: var(--shadow-premium, 0 10px 30px rgba(15, 23, 42, 0.05));
}

.service-featured-image img {
	width: 100%;
	height: auto;
	max-height: 480px;
	object-fit: cover;
	display: block;
}

/* Service Body Content Typography */
.service-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: var(--gray-700, #334155);
}

.service-content h1,
.service-content h2,
.service-content h3 {
	font-family: 'Outfit', sans-serif;
	color: var(--gray-900, #0f172a);
	font-weight: 700;
	margin-top: 40px;
	margin-bottom: 15px;
	letter-spacing: -0.01em;
}

.service-content h1 { font-size: 2rem; }
.service-content h2 { font-size: 1.65rem; border-left: 4px solid var(--primary-color); padding-left: 12px; }
.service-content h3 { font-size: 1.35rem; }

.service-content p {
	margin-bottom: 20px;
}

.service-content ul,
.service-content ol {
	margin: 25px 0;
	padding-left: 20px;
}

.service-content li {
	margin-bottom: 10px;
	position: relative;
}

.service-content ul li::marker {
	color: var(--secondary-color, #FF3366);
}

.service-content blockquote {
	background: var(--glass-bg, rgba(255, 255, 255, 0.7));
	border-left: 4px solid var(--secondary-color, #FF3366);
	padding: 25px;
	margin: 30px 0;
	border-radius: 12px;
	font-style: italic;
	color: var(--gray-800, #1e293b);
	border-top: 1px solid var(--glass-border);
	border-right: 1px solid var(--glass-border);
	border-bottom: 1px solid var(--glass-border);
}

/* Sidebar Section */
.service-sidebar {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.sidebar-section {
	background: #ffffff;
	border: 1px solid var(--gray-200, #e2e8f0);
	border-radius: 24px;
	padding: 30px;
	box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02);
}

.sidebar-section h3 {
	font-family: 'Outfit', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--gray-900, #0f172a);
	margin-top: 0;
	margin-bottom: 20px;
	border-bottom: 1.5px solid var(--gray-100, #f1f5f9);
	padding-bottom: 12px;
}

/* Metadata Panel */
.service-meta {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.meta-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.meta-icon {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	background: rgba(0, 60, 214, 0.08);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	flex-shrink: 0;
}

.meta-content h4 {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--gray-500, #64748b);
	margin: 0 0 3px 0;
	letter-spacing: 0.05em;
}

.meta-content p {
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--gray-800, #1e293b);
	margin: 0;
}

/* Side Conversion Panel */
.sidebar-cta-box {
	background: linear-gradient(135deg, #002280 0%, #003CD6 100%);
	border: none;
	color: white;
	position: relative;
	overflow: hidden;
}

.sidebar-cta-box::after {
	content: '';
	position: absolute;
	top: -50px;
	right: -50px;
	width: 150px;
	height: 150px;
	border-radius: 50%;
	background: rgba(255, 51, 102, 0.15);
	filter: blur(20px);
}

.sidebar-cta-box h3 {
	color: white;
	border-bottom-color: rgba(255, 255, 255, 0.15);
}

.sidebar-cta-box p {
	font-size: 0.95rem;
	line-height: 1.6;
	color: rgba(255, 255, 255, 0.85);
	margin-bottom: 25px;
}

.sidebar-cta-box .btn {
	width: 100%;
	text-align: center;
	padding: 14px;
	font-size: 1rem;
	font-weight: 700;
	background: var(--secondary-color, #FF3366);
	color: white;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: block;
	box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}

.sidebar-cta-box .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 25px rgba(255, 51, 102, 0.5);
	background: #e02454;
}

/* Related Services in Sidebar */
.related-service-link {
	display: block;
	color: var(--gray-700, #475569);
	text-decoration: none;
	font-family: 'Plus Jakarta Sans', sans-serif;
	font-size: 0.95rem;
	font-weight: 500;
	padding: 8px 0;
	border-bottom: 1px dashed var(--gray-100, #f1f5f9);
	transition: all 0.3s ease;
}

.related-service-link:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.related-service-link:hover {
	color: var(--primary-color, #003CD6);
	padding-left: 5px;
}


/* Bottom Related Panel (Optional, fallback grid) */
.related-services-section {
	max-width: var(--container-max-width, 1200px);
	margin: 60px auto;
	padding: 0 20px;
}

.related-services-section h3 {
	font-family: 'Outfit', sans-serif;
	font-size: 1.8rem;
	font-weight: 700;
	color: var(--gray-900, #0f172a);
	margin-bottom: 30px;
}

/* Navigation Row */
.service-navigation {
	background: #ffffff;
	border: 1px solid var(--gray-200, #e2e8f0);
	border-radius: 20px;
	padding: 20px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 40px;
}

.service-nav-link {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: var(--gray-800, #1e293b);
	transition: all 0.3s ease;
}

.service-nav-link.next {
	align-items: flex-end;
	text-align: right;
}

.service-nav-link span {
	font-size: 0.8rem;
	text-transform: uppercase;
	color: var(--gray-400, #94a3b8);
	margin-bottom: 4px;
	letter-spacing: 0.05em;
}

.service-nav-link strong {
	font-family: 'Outfit', sans-serif;
	font-size: 0.95rem;
	font-weight: 600;
	transition: color 0.3s ease;
}

.service-nav-link:hover strong {
	color: var(--primary-color, #003CD6);
}


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

@media (max-width: 1024px) {
	.service-content-wrapper {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.service-main {
		padding: 30px;
	}
}

@media (max-width: 768px) {
	.services-header h1 {
		font-size: 2.2rem;
	}
	
	.service-hero h1 {
		font-size: 2.2rem;
	}
	
	.service-hero {
		padding: 60px 20px;
	}
	
	.service-navigation {
		flex-direction: column;
		gap: 20px;
		align-items: stretch;
	}
	
	.service-nav-link.next {
		align-items: flex-start;
		text-align: left;
	}
}
