:root {
	--primary-color: #1a237e; /* Dark blue */
	--secondary-color: #5c6bc0; /* Lighter blue */
	--accent-color: #ffc107; /* Amber/Yellow for CTAs */
	--background-color: #121212; /* Very dark grey / black */
	--surface-color: #1e1e1e; /* Slightly lighter dark grey for cards/surfaces */
	--text-color: #e0e0e0; /* Light grey for text */
	--text-color-darker: #a0a0a0; /* Darker grey for subtitles */
	--heading-font: 'Montserrat', sans-serif;
	--body-font: 'Roboto', sans-serif;
	--border-radius: 8px;
	--box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

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

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

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

h1,
h2,
h3,
h4 {
	font-family: var(--heading-font);
	color: var(--text-color);
	margin-bottom: 1rem;
	font-weight: 600;
}

h1 {
	font-size: 2.8rem;
	line-height: 1.2;
}
h2 {
	font-size: 2.2rem;
	line-height: 1.3;
}
h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1rem;
	color: var(--text-color-darker);
}

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

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

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

/* Header */
header {
	background-color: var(--surface-color);
	padding: 1rem 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

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

.logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-family: var(--heading-font);
	font-size: 1.2rem;
	font-weight: 700;
	color: var(--accent-color);
}

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

nav ul {
	list-style: none;
	display: flex;
}

nav ul li {
	margin-left: 2rem;
}

nav ul li a {
	font-weight: 500;
	color: var(--text-color);
	padding: 0.5rem 0;
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--accent-color);
	transition: width 0.3s ease;
}

nav ul li a:hover::after,
nav ul li a.active::after {
	width: 100%;
}

.menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}

.menu-toggle span {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--text-color);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

/* Dropdown */
.dropdown {
	position: relative;
	display: inline-block;
}

.dropdown-content {
	display: none;
	position: absolute;
	background-color: var(--surface-color);
	min-width: 200px;
	box-shadow: var(--box-shadow);
	z-index: 1;
	border-radius: var(--border-radius);
	padding: 0.5rem 0;
	margin-top: 0.5rem;
}

.dropdown-content a {
	color: var(--text-color);
	padding: 12px 16px;
	text-decoration: none;
	display: block;
	font-size: 0.9rem;
}

.dropdown-content a:hover {
	background-color: var(--primary-color);
	color: var(--accent-color);
}
.dropdown-content a::after {
	display: none;
} /* Remove underline from dropdown items */

.dropdown:hover .dropdown-content {
	display: block;
}

/* Sections */
section {
	padding: 80px 0;
	overflow: hidden; /* For animations */
}

section:nth-child(even) {
	background-color: var(--surface-color);
}

.section-subtitle {
	font-size: 1.1rem;
	color: var(--text-color-darker);
	max-width: 700px;
	margin: 0 auto 2rem auto;
	text-align: center;
}

section h2 {
	text-align: center;
	margin-bottom: 1rem;
}
section h2 + .section-subtitle {
	margin-bottom: 3rem;
}

/* Hero Section */
#hero {
	background-color: var(--primary-color);
	color: #fff;
	padding: 100px 0;
	text-align: left;
}

#hero .container {
	display: flex;
	align-items: center;
	gap: 2rem;
}

#hero h1 {
	color: #fff;
	margin-bottom: 1.5rem;
}

#hero p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
	color: #e0e0e0;
	max-width: 600px;
}
.hero-content {
	flex: 1;
}
.hero-image {
	flex: 1;
	text-align: center;
}
.hero-image img {
	width: 100%;
	max-width: 500px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

/* CTA Button */
.cta-button {
	background-color: var(--accent-color);
	color: var(--background-color);
	padding: 12px 30px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	border: none;
	cursor: pointer;
}

.cta-button:hover {
	background-color: #ffab00; /* Darker accent */
	transform: translateY(-2px);
}

.cta-button-outline {
	background-color: transparent;
	color: var(--accent-color);
	padding: 10px 28px;
	border-radius: var(--border-radius);
	text-decoration: none;
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	border: 2px solid var(--accent-color);
	cursor: pointer;
}
.cta-button-outline:hover {
	background-color: var(--accent-color);
	color: var(--background-color);
	transform: translateY(-2px);
}

/* Services Section */
.service-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
	margin-top: 2rem;
}

.card {
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin: 0 auto 1.5rem auto;
}

.card h3 {
	color: var(--accent-color);
	margin-bottom: 1rem;
}

/* Why Choose Us Section */
#why-choose-us .container {
	display: flex;
	align-items: center;
	gap: 3rem;
}
.why-choose-us-image {
	flex: 0 0 45%; /* Fixed width for image container */
}
.why-choose-us-image img {
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	max-height: 450px;
	object-fit: cover;
	width: 100%;
}
.why-choose-us-content {
	flex: 1;
}

/* Featured Article Section (Blog Page) */
#featured-article .container {
	display: flex;
	align-items: center;
	gap: 3rem;
}
.featured-article-content {
	flex: 1;
}
.featured-article-image {
	flex: 0 0 40%;
	text-align: center;
}
.featured-article-image img {
	width: 100%;
	max-width: 450px;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}

/* Text Only Section */
.text-only-section p {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: justify;
}
.text-only-section h2 {
	text-align: center;
}

/* FAQ Section */
.faq-accordion {
	max-width: 800px;
	margin: 2rem auto 0 auto;
}

.faq-item {
	background-color: var(--surface-color);
	margin-bottom: 10px;
	border-radius: var(--border-radius);
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.faq-question {
	background: none;
	border: none;
	color: var(--text-color);
	font-family: var(--heading-font);
	font-size: 1.1rem;
	font-weight: 500;
	padding: 1rem 1.5rem;
	width: 100%;
	text-align: left;
	cursor: pointer;
	position: relative;
	transition: background-color 0.3s ease;
}

.faq-question:hover {
	background-color: rgba(255, 255, 255, 0.05);
}

.faq-question::after {
	content: '+';
	position: absolute;
	right: 1.5rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
	transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
	padding: 0 1.5rem;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}
.faq-answer p {
	padding: 1rem 0;
	margin-bottom: 0;
	color: var(--text-color-darker);
	font-size: 0.95rem;
}

.faq-item.active .faq-answer {
	max-height: 300px; /* Adjust as needed */
	padding-bottom: 1rem;
}

/* Contact Form */
#contact-form-section {
	background-color: var(--surface-color);
}
#contact-form {
	max-width: 700px;
	margin: 2rem auto 0 auto;
	background-color: var(--background-color);
	padding: 2.5rem;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
}
.form-group {
	margin-bottom: 1.5rem;
}
.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
	color: var(--text-color);
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid #444;
	border-radius: var(--border-radius);
	background-color: #2a2a2a;
	color: var(--text-color);
	font-family: var(--body-font);
	font-size: 1rem;
}
.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 2px rgba(255, 193, 7, 0.3);
}
.form-group textarea {
	resize: vertical;
	min-height: 120px;
}
#form-submission-status {
	text-align: center;
	font-weight: 500;
}
#form-submission-status.success {
	color: #4caf50;
}
#form-submission-status.error {
	color: #f44336;
}

/* Form Status Modal */
.status-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 3000; /* Above cookie modal and header */
	animation: fadeInModal 0.3s ease-out;
}

.status-modal-content {
	background-color: var(--surface-color);
	padding: 2.5rem;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	text-align: center;
	min-width: 300px;
	max-width: 90%;
	color: var(--text-color);
}

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

#modal-loader {
	font-size: 1.2rem;
	color: var(--accent-color);
	margin-bottom: 1rem;
}

.status-modal-message-success {
	color: #4caf50; /* Green for success */
}

.status-modal-message-error {
	color: #f44336; /* Red for error */
}

@keyframes fadeInModal {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

/* Checkbox styling for consent */
.form-group-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 1.5rem;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override general input width */
	margin-right: 0.75rem;
	appearance: none; /* Remove default browser styling */
	-webkit-appearance: none;
	-moz-appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--text-color-darker);
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	outline: none;
	transition: background-color 0.2s ease, border-color 0.2s ease;
}

.form-group-checkbox input[type='checkbox']:checked {
	background-color: var(--accent-color);
	border-color: var(--accent-color);
}

.form-group-checkbox input[type='checkbox']:checked::before {
	content: '\2713'; /* Checkmark character */
	font-size: 14px;
	color: var(--background-color);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-weight: bold;
}

.form-group-checkbox .checkbox-label {
	font-weight: normal;
	color: var(--text-color-darker);
	font-size: 0.9rem;
	cursor: pointer;
	margin-bottom: 0; /* Override general label margin */
}

/* Footer */
footer {
	background-color: #0a0a0a;
	color: var(--text-color-darker);
	padding: 50px 0 20px 0;
	font-size: 0.9rem;
}

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

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

.footer-col p {
	margin-bottom: 0.5rem;
	color: var(--text-color-darker);
}

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

.footer-col ul li {
	margin-bottom: 0.5rem;
}

.footer-col ul li a {
	color: var(--text-color-darker);
}
.footer-col ul li a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.footer-bottom {
	text-align: center;
	padding-top: 1.5rem;
	border-top: 1px solid #333;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(
		18,
		18,
		18,
		0.95
	); /* var(--surface-color) with transparency */
	backdrop-filter: blur(5px);
	padding: 1.5rem;
	box-shadow: 0 -5px 15px rgba(0, 0, 0, 0.4);
	z-index: 2000; /* Above cookie modal and header */
	display: none; /* Hidden by default */
	animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.cookie-modal p {
	margin: 0;
	flex-grow: 1;
	color: var(--text-color);
}
.cookie-modal p a {
	color: var(--accent-color);
	text-decoration: underline;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
}

/* Animation Section */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

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

/* Legal Page Specifics */
.legal-page-header {
	background-color: var(--surface-color);
	padding: 2rem 0;
	text-align: center;
	margin-bottom: 2rem;
}
.legal-page-header h1 {
	color: var(--accent-color);
	font-size: 1.5rem;
}
.legal-content {
	background-color: var(--surface-color);
	padding: 2rem;
	border-radius: var(--border-radius);
	margin-bottom: 3rem;
}
.legal-content h2 {
	color: var(--accent-color);
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
	font-size: 1.5rem;
}
.legal-content h2:first-child {
	margin-top: 0;
}
.legal-content p,
.legal-content ul {
	color: var(--text-color-darker);
	margin-bottom: 1rem;
}
.legal-content ul {
	padding-left: 1.5rem;
}
.legal-content li {
	margin-bottom: 0.5rem;
}

/* Responsive Design */
@media (max-width: 992px) {
	h1 {
		font-size: 2.4rem;
	}
	h2 {
		font-size: 2rem;
	}

	#hero .container,
	#why-choose-us .container,
	#featured-article .container {
		flex-direction: column;
		text-align: center;
	}
	#hero .hero-content,
	#hero .hero-image,
	#why-choose-us .why-choose-us-content,
	#why-choose-us .why-choose-us-image,
	#featured-article .featured-article-content,
	#featured-article .featured-article-image {
		flex: none;
		width: 100%;
		max-width: 600px; /* Limit width of content on stack */
		margin: 0 auto;
	}
	#hero .hero-image,
	#why-choose-us .why-choose-us-image,
	#featured-article .featured-article-image {
		margin-top: 2rem;
	}
	#hero p {
		margin-left: auto;
		margin-right: auto;
	}
}

@media (max-width: 768px) {
	nav ul {
		display: none;
		flex-direction: column;
		width: 100%;
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		background-color: var(--surface-color);
		padding: 1rem 0;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
		z-index: 999; /* Ensure it's above content below header but below modal */
	}
	nav ul.active {
		display: flex; /* Show when active class is added */
	}
	nav ul li {
		margin: 0;
		width: 100%;
		text-align: center;
	}
	nav ul li a {
		padding: 1rem;
		display: block;
		border-bottom: 1px solid #333; /* Separator for mobile menu items */
	}
	nav ul li:last-child a {
		border-bottom: none;
	}
	nav ul li a::after {
		display: none; /* No underline animation on mobile */
	}

	.menu-toggle {
		display: block; /* Show hamburger icon on mobile */
	}
	.menu-toggle.active span:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}
	.menu-toggle.active span:nth-child(2) {
		opacity: 0;
	}
	.menu-toggle.active span:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.service-cards {
		grid-template-columns: 1fr; /* Stack cards */
	}

	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-col ul {
		padding-left: 0;
	}

	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-buttons {
		margin-top: 1rem;
		width: 100%;
		justify-content: center;
	}
	.cookie-buttons button {
		flex-grow: 1;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	section {
		padding: 60px 0;
	}
	.container {
		width: 95%;
	}
	.cta-button,
	.cta-button-outline {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	#contact-form {
		padding: 1.5rem;
	}
}
