/*
Theme Name: Flexora Child
Author: VamTam
Author URI: https://vamtam.com
Template: flexora
*/



/*

put your child theme styles here


you don't need any @import rules

*/

/* ========================================
   Service Category Archive Styles
   ======================================== */

/* Hide default page title on service category archives when using Elementor */
.tax-service_category .page-header,
.tax-service_category .archive-header,
.tax-service_category .entry-header,
.tax-service_category h1.page-title,
.tax-service_category h1.entry-title {
	display: none !important;
}

.service-category-header {
	margin-bottom: 40px;
	text-align: center;
}

.service-category-title {
	font-size: 2.5rem;
	margin-bottom: 15px;
	color: #333;
	font-weight: 700;
}

.service-category-description {
	font-size: 1.125rem;
	color: #666;
	max-width: 700px;
	margin: 0 auto;
	line-height: 1.6;
}

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

.service-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-item:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.service-thumbnail {
	position: relative;
	overflow: hidden;
	aspect-ratio: 16 / 10;
}

.service-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.service-item:hover .service-thumbnail img {
	transform: scale(1.05);
}

.service-content {
	padding: 25px;
}

.service-title {
	font-size: 1.5rem;
	margin-bottom: 12px;
	font-weight: 700;
}

.service-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.service-title a:hover {
	color: #8b7355;
}

.service-excerpt {
	color: #666;
	line-height: 1.6;
	margin-bottom: 15px;
}

.service-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #8b7355;
	text-decoration: none;
	font-weight: 600;
	transition: gap 0.3s ease;
}

.service-link:hover {
	gap: 12px;
}

.service-arrow {
	transition: transform 0.3s ease;
}

.service-link:hover .service-arrow {
	transform: translateX(3px);
}

.no-services-found {
	text-align: center;
	padding: 60px 20px;
	color: #999;
}

/* ========================================
   Single Service Styles
   ======================================== */

.service-featured-image {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
}

.service-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.service-meta {
	margin-bottom: 20px;
}

.service-categories {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.service-category-link {
	display: inline-block;
	padding: 6px 16px;
	background: #f5f3f0;
	color: #8b7355;
	text-decoration: none;
	border-radius: 20px;
	font-size: 0.875rem;
	font-weight: 600;
	transition: background 0.3s ease, color 0.3s ease;
}

.service-category-link:hover {
	background: #8b7355;
	color: #fff;
}

.service-content-main {
	line-height: 1.8;
	color: #444;
}

.related-services {
	margin-top: 60px;
	padding-top: 40px;
	border-top: 2px solid #f0f0f0;
}

.related-services-title {
	font-size: 1.875rem;
	margin-bottom: 30px;
	color: #333;
	font-weight: 700;
}

.related-services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 25px;
}

.related-service-item {
	background: #fff;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.related-service-item:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.related-service-thumbnail {
	aspect-ratio: 4 / 3;
	overflow: hidden;
}

.related-service-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.related-service-item:hover .related-service-thumbnail img {
	transform: scale(1.05);
}

.related-service-title {
	padding: 15px;
	font-size: 1.125rem;
	margin: 0;
	font-weight: 600;
}

.related-service-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.related-service-title a:hover {
	color: #8b7355;
}

/* ========================================
   Services Overview Page Template Styles
   ======================================== */

.services-categories-overview {
	margin-top: 40px;
}

.service-categories-grid {
	display: grid;
	gap: 50px;
}

.service-category-block {
	background: #fff;
	border-radius: 12px;
	padding: 40px;
	box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

.category-block-header {
	margin-bottom: 30px;
	padding-bottom: 20px;
	border-bottom: 3px solid #8b7355;
}

.category-block-title {
	font-size: 2rem;
	margin-bottom: 12px;
	font-weight: 700;
}

.category-block-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.category-block-title a:hover {
	color: #8b7355;
}

.category-block-description {
	color: #666;
	font-size: 1.125rem;
	line-height: 1.6;
}

.category-services-list {
	display: grid;
	gap: 25px;
	margin-bottom: 30px;
}

.category-service-item {
	display: grid;
	grid-template-columns: 200px 1fr;
	gap: 25px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
	transition: background 0.3s ease;
}

.category-service-item:hover {
	background: #f5f3f0;
}

.category-service-thumbnail {
	aspect-ratio: 4 / 3;
	overflow: hidden;
	border-radius: 6px;
}

.category-service-thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.category-service-item:hover .category-service-thumbnail img {
	transform: scale(1.05);
}

.category-service-info {
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.category-service-title {
	font-size: 1.375rem;
	margin-bottom: 10px;
	font-weight: 700;
}

.category-service-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.category-service-title a:hover {
	color: #8b7355;
}

.category-service-excerpt {
	color: #666;
	line-height: 1.6;
	margin-bottom: 12px;
}

.category-service-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #8b7355;
	text-decoration: none;
	font-weight: 600;
	align-self: flex-start;
	transition: gap 0.3s ease;
}

.category-service-link:hover {
	gap: 10px;
}

.category-block-footer {
	text-align: center;
	padding-top: 20px;
}

.view-all-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 30px;
	background: #8b7355;
	color: #fff;
	text-decoration: none;
	border-radius: 30px;
	font-weight: 600;
	transition: background 0.3s ease, gap 0.3s ease;
}

.view-all-link:hover {
	background: #6d5a42;
	gap: 12px;
}

.no-services,
.no-categories {
	text-align: center;
	padding: 40px;
	color: #999;
	font-style: italic;
}

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

@media (max-width: 768px) {
	.service-category-title {
		font-size: 2rem;
	}

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

	.related-services-grid {
		grid-template-columns: 1fr;
	}

	.service-category-block {
		padding: 25px;
	}

	.category-block-title {
		font-size: 1.625rem;
	}

	.category-service-item {
		grid-template-columns: 1fr;
		gap: 15px;
	}

	.category-service-thumbnail {
		aspect-ratio: 16 / 10;
	}
}

@media (max-width: 480px) {
	.service-category-title {
		font-size: 1.75rem;
	}

	.category-block-title {
		font-size: 1.5rem;
	}

	.service-title {
		font-size: 1.25rem;
	}

	.category-service-title {
		font-size: 1.125rem;
	}
}
