:root {
	--primary-bg: #1a1e23; /* Darker background */
	--secondary-bg: #2a2f36; /* Slightly lighter for cards/sections */
	--text-color: #f0f0f0;
	--accent-color: #00aaff; /* A vibrant blue for accents */
	--accent-hover: #0088cc;
	--border-color: #444951;
	--success-color: #28a745;
	--error-color: #dc3545;

	--font-primary: 'Roboto', sans-serif;
	--font-secondary: 'Montserrat', sans-serif;
}

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

body {
	font-family: var(--font-primary);
	background-color: var(--primary-bg);
	color: var(--text-color);
	line-height: 1.7;
	font-size: 16px;
}

body.no-scroll {
	/* Added to prevent scroll when mobile menu is open */
	overflow-y: hidden;
}

.container {
	width: 90%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

h1,
h2,
h3 {
	font-family: var(--font-secondary);
	color: var(--accent-color);
	margin-bottom: 1rem;
	font-weight: 700;
}
h1 {
	font-size: 2.8rem;
	line-height: 1.2;
}
h2 {
	font-size: 2.2rem;
	line-height: 1.3;
}
h3 {
	font-size: 1.6rem;
	color: #e0e0e0;
}

p {
	margin-bottom: 1rem;
	font-weight: 300;
}

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

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

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

/* Header & Navigation */
header {
	background-color: var(--secondary-bg);
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

header nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-family: var(--font-secondary);
	font-size: 1.2rem;
	font-weight: 700;
	color: #fff;
	z-index: 1002; /* Ensure logo is above mobile menu background but below toggle if overlap */
}

header .logo img {
	height: 40px;
	width: auto;
}

header .primary-navigation ul {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
}

header .primary-navigation ul li {
	margin: 0; /* Reset base margin */
	margin-left: 2rem;
}
header .primary-navigation ul li:first-child {
	margin-left: 0;
}

header .primary-navigation ul li a {
	font-size: 1rem;
	font-weight: 400;
	color: var(--text-color);
	padding: 0.5rem 0;
	position: relative;
	display: inline-block; /* For padding and ::after positioning */
}

header .primary-navigation ul li a::after {
	content: '';
	position: absolute;
	width: 0;
	height: 2px;
	bottom: 0;
	left: 0;
	background-color: var(--accent-color);
	transition: width 0.3s ease;
}
header .primary-navigation ul li a:hover::after,
header .primary-navigation ul li a.active::after {
	width: 100%;
}

/* Mobile Navigation Toggle Button (Hamburger) */
.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem; /* Easier to tap */
	z-index: 1001; /* Above nav content, below potential modals but above sticky header elements */
	order: 1; /* Ensures it's positioned after logo in flex layout if needed */
}

.hamburger-icon {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	position: relative;
	transition: background-color 0.1s 0.2s ease-in-out; /* Delay hiding middle bar */
}

.hamburger-icon::before,
.hamburger-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	transition: transform 0.3s ease-in-out, top 0.3s ease-in-out;
}

.hamburger-icon::before {
	top: -8px;
}

.hamburger-icon::after {
	top: 8px;
}

/* Active state for hamburger (transforms to X) */
.mobile-nav-toggle.active .hamburger-icon {
	background-color: transparent; /* Middle bar disappears */
	transition-delay: 0s;
}

.mobile-nav-toggle.active .hamburger-icon::before {
	top: 0;
	transform: rotate(45deg);
}

.mobile-nav-toggle.active .hamburger-icon::after {
	top: 0;
	transform: rotate(-45deg);
}

/* Sections */
section {
	padding: 4rem 0;
	overflow: hidden; /* For animations */
}

section:nth-child(even) {
	background-color: var(--secondary-bg);
}
section:nth-child(odd) {
	background-color: var(--primary-bg);
}

.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-section.visible {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Hero Section */
#hero {
	background-image: url('../img/h1.webp');
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#hero .container {
	background-color: rgba(0, 0, 0, 0.6);
	padding: 2rem;
	border-radius: 8px;
}

#hero h1 {
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
#hero p {
	font-size: 1.2rem;
	max-width: 700px;
	margin: 1rem auto 2rem;
	font-weight: 300;
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: #fff;
	padding: 0.8rem 1.8rem;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 700;
	text-transform: uppercase;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: var(--accent-hover);
	color: #fff;
	transform: translateY(-2px);
}

/* Principles Section (Text Only) */
#principles {
	background-size: cover; /* or 'contain' or specific size if it's a pattern */
	background-repeat: repeat; /* if it's a texture/pattern */
}
#principles .container p {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
}
#principles h2 {
	text-align: center;
	margin-bottom: 2rem;
}
#principles strong {
	color: var(--accent-color);
	font-weight: 400;
}

/* Core Services Section (Cards) */
#core-services {
	background-size: cover;
	background-position: center;
}
#core-services .container > p {
	/* The introductory paragraph */
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2.5rem;
}
#core-services h2 {
	text-align: center;
}
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.card {
	background-color: #30363d; /* Slightly different from secondary-bg */
	padding: 2rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin-bottom: 1rem;
}

.card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.4rem;
}

/* CZ Edge & Client Impact Sections */
.content-image-pair {
	display: flex;
	align-items: center;
	gap: 3rem;
}
.content-image-pair .text-content {
	flex: 1.2; /* Give more space to text */
}
.content-image-pair .image-content {
	flex: 0.8;
}
.content-image-pair .image-content img {
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.content-image-pair.reverse {
	flex-direction: row-reverse;
}

#cz-edge h2,
#client-impact h2 {
	text-align: center;
	margin-bottom: 2.5rem;
}
#cz-edge strong,
#client-impact strong {
	color: var(--accent-color);
	font-weight: 400;
}

.impact-list {
	list-style: none;
	padding-left: 0;
}
.impact-list li {
	margin-bottom: 0.8rem;
	padding-left: 1.5rem;
	position: relative;
	font-weight: 300;
}
.impact-list li::before {
	content: '✔'; /* Or other icon */
	color: var(--accent-color);
	position: absolute;
	left: 0;
	font-weight: bold;
}

/* FAQ & Contact Section */
#faq-contact h2 {
	margin-bottom: 1.5rem;
}
.faq-contact-wrapper {
	display: flex;
	gap: 3rem;
	flex-wrap: wrap; /* Ensure responsiveness */
}
.faq-column,
.contact-column {
	flex: 1;
	min-width: 300px; /* Prevent too much squishing */
}
.faq-item {
	margin-bottom: 1rem;
	border-bottom: 1px solid var(--border-color);
}
.faq-question {
	background: none;
	border: none;
	color: var(--text-color);
	font-family: var(--font-secondary);
	font-size: 1.1rem;
	font-weight: 400;
	text-align: left;
	width: 100%;
	padding: 0.8rem 0;
	cursor: pointer;
	position: relative;
	padding-right: 25px; /* Space for arrow */
}
.faq-question::after {
	content: '▼'; /* Down arrow */
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	transition: transform 0.3s ease;
}
.faq-question.active::after {
	transform: translateY(-50%) rotate(180deg); /* Up arrow */
}
.faq-answer {
	box-sizing: content-box;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.5s ease-out, padding 0.5s ease-out;
	padding: 0 0.5rem;
}
.faq-answer.active {
	padding: 0.5rem 0.5rem 1rem;
}
.faq-answer p {
	margin-bottom: 0;
	font-weight: 300;
	font-size: 0.95rem;
}

.section-image-container {
	margin-top: 2rem;
	text-align: center; /* Centers the image if it's smaller than container */
}
.decorative-image-faq {
	max-width: 600px; /* Control size of decorative image */
	border-radius: 8px;
	margin: 1rem auto 0; /* Center it if it's block */
}

/* Contact Form */
#contactForm .form-group {
	margin-bottom: 1rem;
}
#contactForm label {
	display: block;
	margin-bottom: 0.3rem;
	font-weight: 400;
	color: #ccc;
}
#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid var(--border-color);
	background-color: var(--primary-bg);
	color: var(--text-color);
	border-radius: 5px;
	font-family: var(--font-primary);
	font-size: 1rem;
}
#contactForm input[type='text']:focus,
#contactForm input[type='email']:focus,
#contactForm textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-color);
}
#contactForm textarea {
	resize: vertical;
	min-height: 100px;
}

/* New styles for checkbox */
.form-group-checkbox {
	display: flex;
	align-items: flex-start; /* Align items to the top if label wraps */
	margin-bottom: 1rem;
}

.form-group-checkbox input[type='checkbox'] {
	margin-top: 0.3rem; /* Align checkbox with the first line of text */
	margin-right: 0.5rem;
	width: auto; /* Override default width for inputs */
	accent-color: var(--accent-color); /* Style the checkbox color */
}

.form-group-checkbox .checkbox-label {
	font-weight: 300;
	font-size: 0.9rem;
	color: #ccc;
	line-height: 1.5;
	margin-bottom: 0; /* Reset label margin */
}
.form-group-checkbox .checkbox-label a {
	color: var(--accent-color);
	text-decoration: underline;
}
.form-group-checkbox .checkbox-label a:hover {
	color: var(--accent-hover);
}

#contactForm button[type='submit'] {
	margin-top: 1rem;
}
.form-status {
	margin-top: 1rem;
	font-weight: bold;
}
.form-status.success {
	color: var(--success-color);
}
.form-status.error {
	color: var(--error-color);
}

/* CTA Button Wrapper for sections */
.cta-button-wrapper {
	text-align: center;
	margin-top: 2rem;
}

/* Footer */
footer {
	background-color: #121518; /* Even darker for footer */
	color: #aaa;
	padding: 3rem 0 1.5rem;
	font-size: 0.9rem;
}
.footer-content {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 2rem;
	margin-bottom: 2rem;
}
.footer-contact,
.footer-links,
.footer-legal {
	flex: 1;
	min-width: 200px; /* Prevent too much squishing */
}
footer h4 {
	color: #ddd;
	font-family: var(--font-secondary);
	font-size: 1.1rem;
	margin-bottom: 1rem;
}
footer ul {
	list-style: none;
}
footer ul li {
	margin-bottom: 0.5rem;
}
footer ul li a {
	color: #aaa;
}
footer ul li a:hover {
	color: var(--accent-color);
}
footer a {
	color: #bbb; /* Slightly lighter for direct links like phone/email */
}
footer a:hover {
	color: var(--accent-color);
}
.copyright {
	text-align: center;
	margin-top: 2rem;
	padding-top: 1rem;
	border-top: 1px solid var(--border-color);
	font-size: 0.85rem;
	color: #888;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--secondary-bg);
	padding: 1.5rem;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	border-top: 1px solid var(--border-color);
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
	display: none; /* Hidden by default, JS will show */
}
.cookie-modal.visible {
	transform: translateY(0);
}

.cookie-modal-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	flex-wrap: wrap;
	gap: 1rem;
}
.cookie-modal-content p {
	margin: 0;
	flex-grow: 1;
	font-size: 0.9rem;
}
.cookie-modal-content p a {
	color: var(--accent-color);
	font-weight: bold;
}
.cookie-buttons button {
	padding: 0.6rem 1.2rem;
	margin-left: 0.5rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s ease;
}
#acceptCookies {
	background-color: var(--accent-color);
	color: #fff;
}
#acceptCookies:hover {
	background-color: var(--accent-hover);
}
#declineCookies {
	background-color: #555;
	color: #fff;
}
#declineCookies:hover {
	background-color: #777;
}

/* Submission Status Modal */
.status-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.75); /* Semi-transparent overlay */
	display: none; /* Hidden by default */
	align-items: center;
	justify-content: center;
	z-index: 3000; /* Above other content including header */
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}
.status-modal.visible {
	display: flex;
	opacity: 1;
}

.status-modal-content {
	background-color: var(--secondary-bg);
	padding: 2.5rem; /* More padding */
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
	min-width: 300px;
	max-width: 90%;
	color: var(--text-color);
}

.status-modal-content p {
	margin-bottom: 0;
	font-size: 1.1rem;
	line-height: 1.6;
}

.status-modal-content p.success {
	color: var(--success-color);
}
.status-modal-content p.error {
	color: var(--error-color);
}

.loading-spinner {
	border: 4px solid rgba(240, 240, 240, 0.3); /* Lighter border for dark bg */
	border-radius: 50%;
	border-top-color: var(--accent-color); /* Accent color for spinning part */
	width: 35px; /* Slightly larger */
	height: 35px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1.5rem; /* Centered and more space below */
	display: none; /* Initially hidden, shown via JS */
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

/* Legal Pages Basic Styling */
.legal-page-container {
	padding: 3rem 0;
}
.legal-page-container .container {
	background-color: var(--secondary-bg);
	padding: 2rem;
	border-radius: 8px;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
}
.legal-page-container h2 {
	margin-top: 2rem;
	margin-bottom: 1rem;
	font-size: 1.5rem;
}
.legal-page-container p,
.legal-page-container li {
	line-height: 1.8;
	margin-bottom: 1rem;
}
.legal-page-container ul {
	list-style-position: inside;
	padding-left: 1rem;
}

/* Responsive Adjustments */
@media (max-width: 992px) {
	.content-image-pair {
		flex-direction: column;
	}
	.content-image-pair.reverse {
		flex-direction: column; /* Keep consistent stacking */
	}
	.content-image-pair .image-content {
		margin-top: 2rem;
	}
	.content-image-pair.reverse .image-content {
		/* Ensure image is below text when stacked */
		order: 2; /* Push image down */
	}
	.content-image-pair.reverse .text-content {
		order: 1; /* Push text up */
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	.mobile-nav-toggle {
		display: block; /* Show hamburger icon */
	}

	header .primary-navigation {
		position: fixed;
		top: -100vh; /* Start fully above the screen */
		left: 0; /* Align to the left edge */
		width: 100%; /* Full width */
		height: 100vh;
		background-color: var(--secondary-bg);
		padding: 80px 20px 20px; /* Top padding for content to clear potential header space */
		transition: top 0.35s ease-in-out; /* Animate 'top' property */
		z-index: 999; /* Below toggle (1001) and logo (1002), above page content */
		box-shadow: 0 3px 15px rgba(0, 0, 0, 0.25); /* Shadow at the bottom */
		overflow-y: auto; /* Scroll if many links */
	}

	header .primary-navigation.nav-open {
		top: 0; /* Slide in from the top */
	}

	header .primary-navigation ul {
		flex-direction: column; /* Stack links vertically */
		align-items: flex-start; /* Align text to the left */
		width: 100%;
	}

	header .primary-navigation ul li {
		margin-left: 0; /* Reset desktop margin */
		margin-bottom: 1.2rem; /* Space between mobile links */
		width: 100%;
	}

	header .primary-navigation ul li a {
		font-size: 1.15rem; /* Slightly larger for touch */
		padding: 0.75rem 1rem; /* Larger touch target */
		display: block; /* Full width clickable */
		text-align: left;
	}
	header .primary-navigation ul li a::after {
		left: 1rem; /* Align with text padding */
		transform: none;
		bottom: -3px; /* Adjust position if needed */
	}
	header .primary-navigation ul li a:hover::after,
	header .primary-navigation ul li a.active::after {
		width: calc(100% - 2rem); /* Full width minus padding */
	}

	.faq-contact-wrapper {
		flex-direction: column;
	}
	.contact-column {
		margin-top: 2rem; /* Space between FAQ and Contact Form on mobile */
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-buttons {
		margin-top: 1rem;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	h3 {
		font-size: 1.3rem;
	}

	.cta-button {
		padding: 0.7rem 1.5rem;
		font-size: 0.9rem;
	}
	#hero p {
		font-size: 1rem;
	}
	.cards-container {
		grid-template-columns: 1fr; /* Stack cards on smallest screens */
	}
}
