/**
 * File: frontend.css
 * Plugin: FG Stroy Core
 * Architecture: BEM (Block__Element--Modifier)
 * Description: Base frontend styles for FG Stroy custom components.
 */

/* =========================================
   PROJECTS GRID
   ========================================= */

.projects-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 2rem;
}

.project-card {
	position: relative;
	overflow: hidden;
	border-radius: 4px;
	background: #ffffff;
	box-shadow: 0 2px 16px rgba(0,0,0,.08);
	transition: transform .3s ease, box-shadow .3s ease;
}

.project-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0,0,0,.14);
}

.project-card__image {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
}

.project-card__body {
	padding: 1.5rem;
}

.project-card__category {
	font-size: .75rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: var(--e-global-color-accent, #c9a84c);
	margin-bottom: .5rem;
}

.project-card__title {
	font-size: 1.125rem;
	font-weight: 700;
	margin: 0 0 .75rem;
	line-height: 1.3;
}

.project-card__meta {
	display: flex;
	gap: 1rem;
	font-size: .8125rem;
	color: #6b7280;
}

.project-card__meta-item {
	display: flex;
	align-items: center;
	gap: .3rem;
}

/* =========================================
   SERVICES GRID
   ========================================= */

.services-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 2rem;
}

.service-card {
	padding: 2rem;
	border-radius: 4px;
	border: 1px solid #e5e7eb;
	background: #ffffff;
	text-align: center;
	transition: border-color .3s ease, box-shadow .3s ease;
}

.service-card:hover {
	border-color: var(--e-global-color-accent, #c9a84c);
	box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

.service-card__icon {
	width: 3.5rem;
	height: 3.5rem;
	margin: 0 auto 1.25rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--e-global-color-accent, #c9a84c);
	border-radius: 50%;
	color: #ffffff;
	font-size: 1.5rem;
}

.service-card__title {
	font-size: 1.0625rem;
	font-weight: 700;
	margin: 0 0 .75rem;
}

.service-card__description {
	font-size: .9375rem;
	color: #4b5563;
	line-height: 1.6;
}

/* =========================================
   UTILITY
   ========================================= */

.fgs-section {
	padding: 5rem 0;
}

.fgs-section--alt {
	background: #f8f9fa;
}

@media (max-width: 768px) {
	.projects-grid,
	.services-grid {
		grid-template-columns: 1fr;
	}
	.fgs-section {
		padding: 3rem 0;
	}
}
