/* ==========================================================================
   Monolith Core - Front Page Styles (Dark Industrial / Defense-Tech)
   ========================================================================== */

/* Global Section styling */
.fp-section {
	padding: 80px 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Engineering Grid Background */
.has-engineering-grid {
	position: relative;
}

.has-engineering-grid::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-image: 
		/* Major grid lines (100px) */
		linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
		/* Minor grid lines (20px) */
		linear-gradient(rgba(255, 255, 255, 0.006) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.006) 1px, transparent 1px);
	background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
	background-position: center top;
	pointer-events: none;
	z-index: 1;
}

.has-engineering-grid .container {
	position: relative;
	z-index: 5;
}

.section-label {
	font-family: var(--font-mono);
	color: var(--rusted-iron);
	text-transform: uppercase;
	font-size: 11px;
	letter-spacing: 2px;
	margin-bottom: 16px;
	display: block;
	font-weight: 600;
}

.section-title {
	font-family: var(--font-primary);
	font-size: 36px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 16px;
	line-height: 1.2;
}

.section-subtitle {
	color: var(--color-text-secondary);
	font-size: 16px;
	max-width: 800px;
	margin-bottom: 48px;
	line-height: 1.6;
}

/* 1. HERO SECTION */
.fp-hero {
	position: relative;
	background-image: linear-gradient(rgba(15, 21, 27, 0.85), rgba(15, 21, 27, 0.85)), url('../images/engineering-render.jpg.jpg');
	background-size: cover;
	background-position: center;
	padding: 140px 0 100px 0;
	overflow: hidden;
}

/* High-tech scanning line */
.fp-hero::after {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 4px;
	background: linear-gradient(180deg, var(--rusted-iron) 0%, rgba(212, 86, 3, 0) 100%);
	opacity: 0.3;
	pointer-events: none;
	z-index: 2;
	animation: scanline 6s linear infinite;
}

@keyframes scanline {
	0% {
		transform: translateY(-100px);
	}
	100% {
		transform: translateY(600px);
	}
}

.hero-title {
	font-family: var(--font-primary);
	font-size: 48px;
	font-weight: 800;
	color: #FFFFFF;
	line-height: 1.2;
	max-width: 900px;
	margin-bottom: 24px;
}

.hero-text {
	font-size: 18px;
	color: var(--color-text-secondary);
	max-width: 760px;
	margin-bottom: 40px;
	line-height: 1.6;
}

.hero-actions {
	display: flex;
	gap: 16px;
}

.hero-actions .btn {
	padding: 14px 28px;
}

/* 2. WORK DIRECTIONS SECTION */
.directions-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.direction-card {
	display: flex;
	flex-direction: column;
	background-color: #12161B;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.25s ease, background-color 0.25s ease;
	cursor: default;
}

.direction-card:hover {
	border-color: var(--rusted-iron);
	background-color: rgba(39, 54, 69, 0.15);
}

.direction-image-wrapper {
	aspect-ratio: 16 / 9;
	width: 100%;
	overflow: hidden;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.direction-image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease, filter 0.3s ease;
	display: block;
	filter: grayscale(40%) contrast(110%);
}

.direction-card:hover .direction-image-wrapper img {
	transform: scale(1.03);
	filter: grayscale(0%) contrast(100%);
}

.direction-card-content {
	padding: 30px;
}

.direction-card .card-title {
	font-family: var(--font-primary);
	font-size: 20px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.direction-card .card-text {
	color: var(--color-text-secondary);
	font-size: 14px;
	line-height: 1.6;
}

/* 3. PRODUCTS SECTION */
.products-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.product-card {
	display: flex;
	flex-direction: column;
	background-color: #12161B;
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 4px;
	overflow: hidden;
	transition: border-color 0.25s ease;
}

.product-card:hover {
	border-color: var(--rusted-iron);
}

.product-image-wrapper {
	aspect-ratio: 4 / 3;
	width: 100%;
	overflow: hidden;
	background-color: #0F151B;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
	position: relative;
}

.product-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
	display: block;
}

.product-card:hover .product-card-img {
	transform: scale(1.04);
}

.product-card-body {
	padding: 24px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.product-card-body .product-title {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 10px;
	line-height: 1.4;
	min-height: 44px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-card-body .product-description {
	font-size: 13px;
	color: var(--color-text-secondary);
	margin-bottom: 20px;
	line-height: 1.5;
	flex-grow: 1;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.product-price-wrapper {
	margin-bottom: 20px;
}

.product-price-wrapper .price {
	font-family: var(--font-mono);
	font-size: 18px;
	font-weight: 700;
	color: var(--rusted-iron);
}

.product-card-actions {
	display: flex;
	gap: 10px;
	align-items: stretch;
}

.product-card-actions .btn,
.product-card-actions .button {
	flex: 1;
	padding: 12px 10px;
	font-size: 12px;
	justify-content: center;
	text-align: center;
}

/* Style Shop loop button to match our theme primary button */
.products-grid .product-card-actions .button {
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 12px 10px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 1.5px !important;
	text-transform: uppercase !important;
	border-radius: 2px !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	text-decoration: none !important;
	line-height: 1.2 !important;
	background-color: var(--rusted-iron) !important;
	color: #FFFFFF !important;
	border: 1px solid var(--rusted-iron) !important;
	margin: 0 !important;
	height: auto !important;
	flex: 1;
}

.products-grid .product-card-actions .button:hover {
	background-color: #F76606 !important;
	border-color: #F76606 !important;
	color: #FFFFFF !important;
}

/* Hide extra Shop added to cart link */
.products-grid .product-card-actions .added_to_cart {
	display: none !important;
}

.products-section-footer {
	margin-top: 48px;
	text-align: center;
}

.products-section-footer .section-footer-btn {
	padding: 14px 28px;
}

/* 4. CUSTOM ENGINEERING SECTION */
.custom-engineering-wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.custom-engineering-info {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
}

.custom-engineering-info .section-text {
	color: var(--color-text-secondary);
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 32px;
}

.custom-engineering-btn {
	padding: 14px 28px;
}

.custom-engineering-steps {
	background-color: #12161B;
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 40px;
	border-radius: 4px;
}

.steps-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.steps-item {
	display: flex;
	align-items: center;
	gap: 16px;
}

.step-bullet {
	width: 6px;
	height: 6px;
	background-color: var(--rusted-iron);
	border-radius: 50%;
	flex-shrink: 0;
}

.step-title {
	font-family: var(--font-mono);
	text-transform: uppercase;
	font-size: 12px;
	color: var(--color-text-primary);
	letter-spacing: 1.5px;
	font-weight: 600;
	line-height: 1.2;
}

/* 5. PROCESS SECTION */
.process-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.process-card {
	background-color: #12161B;
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 32px;
	border-radius: 4px;
	display: flex;
	flex-direction: column;
	gap: 20px;
	transition: border-color 0.25s ease;
}

.process-card:hover {
	border-color: var(--rusted-iron);
}

.process-num {
	font-family: var(--font-mono);
	font-size: 28px;
	font-weight: 700;
	color: var(--rusted-iron);
	line-height: 1;
	letter-spacing: -1px;
}

.process-body .process-title {
	font-family: var(--font-primary);
	font-size: 16px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 8px;
}

.process-body .process-text {
	color: var(--color-text-secondary);
	font-size: 13px;
	line-height: 1.5;
}

/* 6. DOCUMENTATION SECTION */
.docs-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
}

.docs-card {
	background-color: #12161B;
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 36px;
	border-radius: 4px;
	transition: border-color 0.25s ease, background-color 0.25s ease;
	cursor: default;
}

.docs-card:hover {
	border-color: var(--rusted-iron);
	background-color: rgba(39, 54, 69, 0.15);
}

.docs-card-title {
	font-family: var(--font-primary);
	font-size: 18px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 12px;
}

.docs-card-text {
	color: var(--color-text-secondary);
	font-size: 13px;
	line-height: 1.6;
}

.docs-section-footer {
	margin-top: 48px;
	text-align: center;
}

.docs-section-footer .docs-footer-btn {
	padding: 14px 28px;
}

/* 7. CTA / CONTACT SECTION */
.cta-inner-panel {
	background-color: #12161B;
	border: 1px solid rgba(255, 255, 255, 0.05);
	padding: 64px 40px;
	border-radius: 4px;
	text-align: center;
	max-width: 960px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.cta-title {
	font-family: var(--font-primary);
	font-size: 36px;
	font-weight: 700;
	color: #FFFFFF;
	margin-bottom: 16px;
}

.cta-text {
	color: var(--color-text-secondary);
	font-size: 16px;
	line-height: 1.6;
	max-width: 680px;
	margin-bottom: 36px;
}

.cta-actions {
	display: flex;
	gap: 16px;
}

.cta-actions .btn {
	padding: 14px 28px;
}
