/* ==========================================================================
   Crossway Dark – Joomla 6.2 Template
   Dark professional navy / steel grey design
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
	--bg-primary:        #0B1220;
	--bg-secondary:      #141C2B;
	--bg-tertiary:       #1C2738;
	--bg-card:           #151E2E;
	--accent:            #3B82A0;
	--accent-hover:      #4F9BB8;
	--text-primary:      #E8EEF5;
	--text-secondary:    #94A3B8;
	--text-muted:        #64748B;
	--border:            #2A3648;
	--border-light:      #334155;
	--radius:            8px;
	--radius-lg:         12px;
	--shadow:            0 4px 24px rgba(0, 0, 0, 0.35);
	--transition:        0.25s ease;
	--header-height:     80px;
	--container:         1200px;
	--font:              system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: var(--font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-primary);
	background-color: var(--bg-primary);
	-webkit-font-smoothing: antialiased;
}

a {
	color: var(--accent);
	text-decoration: none;
	transition: color var(--transition);
}

a:hover {
	color: var(--accent-hover);
}

img {
	max-width: 100%;
	height: auto;
	display: block;
}

h1, h2, h3, h4, h5, h6 {
	margin-top: 0;
	font-weight: 700;
	line-height: 1.25;
	color: var(--text-primary);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.35rem; }

p {
	margin-top: 0;
	margin-bottom: 1rem;
	color: var(--text-secondary);
}

.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

/* ---------- Buttons ---------- */
.btn,
.button,
a.btn,
input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 28px;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.4;
	border-radius: var(--radius);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition);
	text-decoration: none;
}

.btn-primary,
.button-primary {
	background-color: var(--accent);
	color: #fff;
	border-color: var(--accent);
}

.btn-primary:hover,
.button-primary:hover {
	background-color: var(--accent-hover);
	border-color: var(--accent-hover);
	color: #fff;
}

.btn-outline {
	background-color: transparent;
	color: var(--text-primary);
	border-color: var(--border-light);
}

.btn-outline:hover {
	background-color: var(--bg-tertiary);
	border-color: var(--accent);
	color: var(--text-primary);
}

/* ---------- Header ---------- */
.site-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background-color: rgba(11, 18, 32, 0.92);
	backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--border);
	height: var(--header-height);
}

.header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--header-height);
	gap: 32px;
}

.header-logo .logo-link {
	display: flex;
	align-items: center;
	color: var(--text-primary);
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: 0.5px;
}

.header-logo img {
	height: auto;
	max-height: 48px;
}

.site-title {
	color: var(--text-primary);
}

.main-nav {
	flex: 1;
	display: flex;
	justify-content: center;
}

.main-nav ul {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 8px;
}

.main-nav a {
	display: block;
	padding: 8px 16px;
	color: var(--text-secondary);
	font-weight: 500;
	font-size: 0.95rem;
	border-radius: var(--radius);
	transition: all var(--transition);
}

.main-nav a:hover,
.main-nav .active > a,
.main-nav li.current > a {
	color: var(--text-primary);
	background-color: var(--bg-tertiary);
}

.header-cta .btn {
	padding: 10px 22px;
	font-size: 0.9rem;
}

/* Mobile menu toggle */
.menu-toggle {
	display: none;
	flex-direction: column;
	justify-content: space-between;
	width: 28px;
	height: 20px;
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
}

.menu-toggle span {
	display: block;
	height: 2px;
	background-color: var(--text-primary);
	border-radius: 2px;
	transition: var(--transition);
}

/* ---------- Hero Section ---------- */
.hero-section {
	padding: 100px 0 90px;
	background: linear-gradient(180deg, var(--bg-secondary) 0%, var(--bg-primary) 100%);
	border-bottom: 1px solid var(--border);
	text-align: center;
}

.hero-section h1 {
	margin-bottom: 20px;
	max-width: 900px;
	margin-left: auto;
	margin-right: auto;
}

.hero-section .hero-lead {
	font-size: 1.2rem;
	color: var(--text-secondary);
	max-width: 640px;
	margin: 0 auto 36px;
}

.hero-buttons {
	display: flex;
	gap: 16px;
	justify-content: center;
	flex-wrap: wrap;
}

/* ---------- Sections ---------- */
.section {
	padding: 80px 0;
	border-bottom: 1px solid var(--border);
}

.section-title {
	text-align: center;
	margin-bottom: 16px;
}

.section-intro {
	text-align: center;
	max-width: 640px;
	margin: 0 auto 48px;
	color: var(--text-secondary);
}

/* ---------- Cards ---------- */
.card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
	gap: 24px;
}

.card {
	background-color: var(--bg-card);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 28px;
	transition: all var(--transition);
}

.card:hover {
	border-color: var(--accent);
	transform: translateY(-4px);
	box-shadow: var(--shadow);
}

.card h3 {
	margin-bottom: 12px;
	font-size: 1.2rem;
}

.card p {
	margin-bottom: 0;
	font-size: 0.95rem;
}

/* ---------- Services Teaser ---------- */
.services-teaser .card-grid {
	margin-bottom: 40px;
}

/* ---------- Featured Project ---------- */
.featured-project .project-card {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
	background-color: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	overflow: hidden;
}

.featured-project .project-image {
	min-height: 320px;
	background-color: var(--bg-tertiary);
}

.featured-project .project-content {
	padding: 40px;
}

.featured-project .project-label {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--accent);
	margin-bottom: 12px;
}

/* ---------- CTA Banner ---------- */
.cta-banner {
	background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
	text-align: center;
	border-bottom: none;
}

.cta-banner h2 {
	margin-bottom: 16px;
}

.cta-banner p {
	margin-bottom: 28px;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
}

/* ---------- Main Content (inner pages) ---------- */
.site-main {
	padding: 48px 0 80px;
	min-height: 50vh;
}

.breadcrumbs-wrap {
	margin-bottom: 28px;
	font-size: 0.9rem;
	color: var(--text-muted);
}

.breadcrumbs-wrap a {
	color: var(--text-secondary);
}

.main-content-area {
	display: grid;
	gap: 40px;
}

.main-content-area.has-sidebar {
	grid-template-columns: 1fr 300px;
}

.content-component {
	min-width: 0;
}

/* Joomla content styling */
.content-component .item-page,
.content-component .blog {
	background-color: var(--bg-secondary);
	border: 1px solid var(--border);
	border-radius: var(--radius-lg);
	padding: 40px;
}

.content-component h1,
.content-component h2 {
	margin-bottom: 20px;
}

.content-component p {
	margin-bottom: 1.1rem;
}

/* ---------- Sidebar ---------- */
.sidebar .card {
	margin-bottom: 24px;
}

/* ---------- Footer ---------- */
.site-footer {
	background-color: var(--bg-secondary);
	border-top: 1px solid var(--border);
	padding: 60px 0 30px;
}

.footer-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 40px;
	margin-bottom: 48px;
}

.footer-col h3,
.footer-col h4 {
	font-size: 1rem;
	margin-bottom: 18px;
	color: var(--text-primary);
}

.footer-col p,
.footer-col li {
	color: var(--text-secondary);
	font-size: 0.95rem;
}

.footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.footer-col li {
	margin-bottom: 8px;
}

.footer-col a {
	color: var(--text-secondary);
}

.footer-col a:hover {
	color: var(--accent);
}

.footer-bottom {
	padding-top: 24px;
	border-top: 1px solid var(--border);
	text-align: center;
	font-size: 0.875rem;
	color: var(--text-muted);
}

/* ---------- Module styles ---------- */
.moduletable {
	margin-bottom: 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
	.main-nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background-color: var(--bg-secondary);
		border-bottom: 1px solid var(--border);
		padding: 20px;
		z-index: 999;
	}

	.main-nav.is-open {
		display: block;
	}

	.main-nav ul {
		flex-direction: column;
		gap: 4px;
	}

	.main-nav a {
		padding: 12px 16px;
	}

	.menu-toggle {
		display: flex;
	}

	.header-cta {
		display: none;
	}

	.featured-project .project-card {
		grid-template-columns: 1fr;
	}

	.main-content-area.has-sidebar {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 575px) {
	.hero-section {
		padding: 70px 0 60px;
	}

	.section {
		padding: 60px 0;
	}

	.hero-buttons {
		flex-direction: column;
		align-items: center;
	}

	.btn {
		width: 100%;
		max-width: 280px;
	}
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }

/* ===== Project Cards – Improved Images ===== */

.card-grid .card img {
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 18px;
	transition: transform 0.35s ease, opacity 0.35s ease;
}

.card-grid .card {
	overflow: hidden;
}

.card-grid .card:hover img {
	transform: scale(1.04);
	opacity: 0.92;
}

/* Optional: make the whole card feel more interactive */
.card-grid .card {
	transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.card-grid .card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
}
