/*
 * Theme Name: DJLabs
 * Theme URI: https://djlabs.nl
 * Author: DJLabs
 * Author URI: https://djlabs.nl
 * Description: Professional responsive theme with modern design
 * Version: 2.0
 * License: GPL v2 or later
 * License URI: https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain: djlabs
 * Domain Path: /languages
 */

/* CSS Custom Properties */
:root {
	--primary: #c9a961;
	--secondary: #2c3e50;
	--accent: #e8b84d;
	--text-dark: #e8e8e8;
	--text-light: #b8b8b8;
	--bg-light: #1a2942;
	--bg-white: #0f1620;
	--border: #3a4f5f;
	--shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
	--shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.5);
}

/* Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-dark);
	background-color: var(--bg-white);
}

a {
	color: var(--primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

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

/* Container */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1.5rem;
}

/* Navigation */
.site-nav {
	background: #1a2942;
	box-shadow: var(--shadow);
	position: sticky;
	top: 0;
	z-index: 1000;
	transition: all 0.3s ease;
	border-bottom: 2px solid var(--accent);
}

.nav-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem 1.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
}

.nav-brand-wrapper {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.custom-logo-link {
	display: flex;
	align-items: center;
}

.custom-logo {
	max-height: 40px;
	width: auto;
}

.nav-brand {
	font-size: 1.3rem;
	font-weight: 700;
	color: var(--primary);
	text-decoration: none;
	white-space: nowrap;
}

.nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--primary);
	padding: 0.5rem;
}

.nav-menu {
	display: flex;
	list-style: none;
	gap: 0;
	margin: 0;
	margin-left: auto;
}

.nav-menu > li {
	position: relative;
}

.nav-menu > li > a {
	display: flex;
	align-items: center;
	color: #e8e8e8;
	font-weight: 500;
	padding: 1rem 1.5rem;
	transition: color 0.3s ease;
	position: relative;
}

/* Arrow indicator for dropdown items */
.nav-menu > li:has(> ul) > a::after {
	content: '▼';
	font-size: 0.6rem;
	margin-left: 0.5rem;
	transition: transform 0.3s ease;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
	color: var(--primary);
}

/* Dropdown Menu */
.nav-menu ul {
	position: absolute;
	top: 100%;
	left: 0;
	background: #0f1620;
	min-width: 200px;
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	border: 1px solid var(--border);
	border-radius: 4px;
	box-shadow: var(--shadow-lg);
	z-index: 999;
}

.nav-menu > li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.nav-menu ul li {
	position: relative;
}

.nav-menu ul a {
	display: block;
	color: var(--text-light);
	padding: 0.75rem 1.5rem;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.nav-menu ul a:hover {
	color: var(--primary);
	background: rgba(201, 169, 97, 0.1);
}

/* Third level dropdown */
.nav-menu ul ul {
	top: 0;
	left: 100%;
	margin-left: 0.5rem;
}

.nav-menu ul li:hover > ul {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* Hero Section */
.hero {
	background: linear-gradient(135deg, #2c3e50 0%, #1a2942 100%);
	color: var(--bg-white);
	padding: 6rem 1.5rem;
	min-height: 70vh;
	display: flex;
	align-items: center;
}

.hero-container {
	max-width: 1200px;
	margin: 0 auto;
	width: 100%;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 3rem;
	align-items: center;
}

.hero-text h1 {
	font-size: 3rem;
	font-weight: 800;
	margin-bottom: 1rem;
	line-height: 1.2;
}

.hero-text p {
	font-size: 1.1rem;
	margin-bottom: 2rem;
	opacity: 0.95;
	line-height: 1.8;
}

.btn {
	display: inline-block;
	background: var(--accent);
	color: var(--bg-white);
	padding: 0.75rem 2rem;
	border-radius: 50px;
	font-weight: 600;
	transition: all 0.3s ease;
	border: 2px solid var(--accent);
}

.btn:hover {
	background: transparent;
	color: var(--bg-white);
	border-color: var(--bg-white);
}

.hero-image {
	background: rgba(255, 255, 255, 0.15);
	border-radius: 12px;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.7);
	font-size: 1.1rem;
	text-align: center;
	padding: 2rem;
}

/* Features Section */
.features {
	padding: 4rem 1.5rem;
	background: var(--bg-light);
}

.features-container {
	max-width: 1200px;
	margin: 0 auto;
}

.features-container > h2 {
	text-align: center;
	font-size: 2.5rem;
	margin-bottom: 3rem;
	color: var(--text-dark);
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 2rem;
}

.feature-card {
	background: #1a2942;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: var(--shadow);
	text-align: center;
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.feature-card:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-5px);
}

.feature-card h3 {
	font-size: 1.3rem;
	margin: 1rem 0 0.5rem;
	color: var(--primary);
}

.feature-card p {
	color: var(--text-light);
	font-size: 0.95rem;
	line-height: 1.6;
}

/* Content Block */
.content-block {
	padding: 4rem 1.5rem;
	background: #0f1620;
	border-top: 1px solid var(--border);
	border-bottom: 1px solid var(--border);
}

.content-block-container {
	max-width: 1200px;
	margin: 0 auto;
}

.content-block-container h2 {
	font-size: 2rem;
	margin-bottom: 1.5rem;
	color: var(--text-dark);
}

.content-block-container p {
	font-size: 1rem;
	color: var(--text-light);
	margin-bottom: 2rem;
	line-height: 1.8;
	max-width: 800px;
}

/* Posts Section */
.posts-section {
	padding: 4rem 1.5rem;
	background: var(--bg-light);
}

.posts-container {
	max-width: 1200px;
	margin: 0 auto;
}

.posts-container > h2 {
	font-size: 2rem;
	margin-bottom: 3rem;
	color: var(--text-dark);
}

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

.post {
	background: #1a2942;
	border-radius: 8px;
	overflow: hidden;
	box-shadow: var(--shadow);
	transition: all 0.3s ease;
	border: 1px solid var(--border);
}

.post:hover {
	box-shadow: var(--shadow-lg);
	transform: translateY(-5px);
}

.post-thumbnail {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.post-content-wrapper {
	padding: 1.5rem;
}

.post h3 {
	font-size: 1.3rem;
	margin-bottom: 0.5rem;
	color: var(--text-dark);
}

.post-meta {
	color: var(--text-light);
	font-size: 0.85rem;
	margin-bottom: 1rem;
	display: block;
}

.post-excerpt {
	color: var(--text-light);
	margin-bottom: 1rem;
	line-height: 1.6;
}

.read-more {
	display: inline-block;
	color: var(--primary);
	font-weight: 600;
	transition: color 0.3s ease;
}

.read-more:hover {
	color: var(--secondary);
}

.no-posts {
	text-align: center;
	padding: 3rem 1.5rem;
	background: #1a2942;
	border-radius: 8px;
	border: 1px solid var(--border);
}

.no-posts p {
	color: var(--text-light);
	font-size: 1.1rem;
}

/* Header */
.site-header {
	background: #1a2942;
	padding: 2rem 1.5rem;
	text-align: center;
	border-bottom: 2px solid var(--accent);
	margin-top: 2rem;
}

.site-header h1 {
	font-size: 2rem;
	color: var(--primary);
	margin-bottom: 0.5rem;
}

.site-header p {
	color: var(--text-light);
	font-size: 1rem;
}

/* Footer */
.site-footer {
	background: #1a2942;
	color: var(--bg-white);
	padding: 2rem 1.5rem;
	text-align: center;
	margin-top: 2rem;
}

.site-footer p {
	margin: 0.5rem 0;
	font-size: 0.95rem;
}

.site-footer a {
	color: var(--primary);
}

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

/* Responsive Design */
@media (max-width: 768px) {
	/* Navigation */
	.nav-toggle {
		display: block;
	}

	.nav-menu {
		display: none;
		flex-direction: column;
		gap: 0;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #0f1620;
		padding: 0;
		box-shadow: var(--shadow);
		width: 100%;
		margin-left: 0;
	}

	.nav-menu > li > a {
		padding: 1rem 1.5rem;
		border-bottom: 1px solid var(--border);
	}

	.nav-menu ul {
		position: static;
		opacity: 1;
		visibility: visible;
		transform: none;
		background: #0a0f18;
		border: none;
		box-shadow: none;
		border-radius: 0;
		padding-left: 1.5rem;
	}

	.nav-menu ul a {
		padding: 0.75rem 0 0.75rem 1.5rem;
	}

	.nav-menu ul ul {
		top: auto;
		left: auto;
		margin-left: 1.5rem;
		padding-left: 0;
	}

	.site-nav.nav-open .nav-menu {
		display: flex;
	}

	/* Hero Section */
	.hero {
		padding: 3rem 1.5rem;
		min-height: auto;
	}

	.hero-container {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	.hero-text h1 {
		font-size: 2rem;
	}

	.hero-image {
		min-height: 300px;
	}

	/* Features */
	.features-grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.5rem;
	}

	/* Posts */
	.posts-grid {
		grid-template-columns: 1fr;
	}

	/* Headings */
	.hero-text h1,
	.features-container > h2,
	.content-block-container h2,
	.posts-container > h2 {
		font-size: 1.5rem;
	}

	/* Padding */
	.features,
	.content-block,
	.posts-section {
		padding: 2rem 1.5rem;
	}
}

@media (max-width: 480px) {
	.features-grid {
		grid-template-columns: 1fr;
	}

	.hero-text h1 {
		font-size: 1.5rem;
	}

	.hero-text p {
		font-size: 0.95rem;
	}

	.nav-brand {
		font-size: 1.2rem;
	}

	.feature-card h3 {
		font-size: 1.1rem;
	}
}
