/* General Styles */
:root {
	--primary-color: #1a1a2e; /* Dark blue/purple */
	--secondary-color: #16213e; /* Slightly lighter dark blue */
	--accent-color: #0f3460; /* Accent blue */
	--text-color: #e9ecef; /* Light grey/off-white */
	--highlight-color: #e94560; /* Highlight red/pink */
	--card-bg: #2c3e50; /* Darker card background */
	--font-family: 'Arial', sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

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

h1,
h2,
h3,
h4 {
	color: var(--text-color);
	margin-bottom: 1rem;
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
	text-align: center;
	margin-bottom: 2rem;
}
h3 {
	font-size: 1.5rem;
	color: var(--highlight-color);
}
p {
	margin-bottom: 1rem;
}
a {
	color: var(--highlight-color);
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}

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

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

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

header .logo {
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--text-color);
}
header .logo:hover {
	text-decoration: none;
}

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

header nav ul li {
	margin-left: 20px;
}

header nav ul li a {
	color: var(--text-color);
	font-size: 1.1rem;
	padding: 0.5rem;
	transition: color 0.3s ease;
}

header nav ul li a:hover {
	color: var(--highlight-color);
	text-decoration: none;
}

/* Main Sections */
main section {
	padding: 80px 0;
	opacity: 0;
	transform: scale(0.95);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

main section.visible {
	opacity: 1;
	transform: scale(1);
}

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

.section-intro {
	text-align: center;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 2.5rem;
	font-size: 1.1rem;
}

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

#hero .hero-content {
	flex: 1;
}
#hero .hero-content h1 {
	margin-bottom: 1.5rem;
}
#hero .hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

#hero .hero-image {
	flex: 1;
	text-align: center;
}
#hero .hero-image img {
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.cta-button {
	display: inline-block;
	background-color: var(--highlight-color);
	color: white;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
	background-color: #d63031; /* Darker shade of highlight */
	text-decoration: none;
	transform: translateY(-2px);
}

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

.card {
	background-color: var(--card-bg);
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin-bottom: 1rem;
	/* For dark bg images, you might need filter: invert(1) if they are black icons */
}

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

/* About Us Section */
#about-us .container {
	display: flex;
	align-items: center;
	gap: 3rem;
}
#about-us .about-us-content {
	flex: 1.2;
}
#about-us .about-us-image {
	flex: 0.8;
	text-align: center;
}
#about-us .about-us-image img {
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Insights Section (Page 2) */
#insights .container {
	display: flex;
	align-items: center;
	gap: 3rem;
}
#insights .insights-content {
	flex: 1.2;
}
#insights .insights-image {
	flex: 0.8;
	text-align: center;
}
#insights .insights-image img {
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* FAQ Section (Page 2) */
#faq .faq-item {
	background-color: var(--secondary-color);
	padding: 1.5rem;
	margin-bottom: 1rem;
	border-radius: 5px;
	border-left: 4px solid var(--highlight-color);
}
#faq .faq-item h3 {
	color: var(--text-color); /* Override default h3 color */
	margin-bottom: 0.5rem;
}

/* Contact Section (Page 2) */
#contact .container {
	display: flex;
	gap: 3rem;
	align-items: flex-start;
}
#contact .contact-content {
	flex: 1;
}
#contact .contact-details-map {
	flex: 1;
}
#contact .contact-image-visual {
	margin-bottom: 1.5rem;
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}
#contact .contact-info {
	background-color: var(--secondary-color);
	padding: 1.5rem;
	border-radius: 5px;
}
#contact .contact-info h4 {
	margin-bottom: 1rem;
	color: var(--highlight-color);
}

/* Contact Form */
.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: bold;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid var(--accent-color);
	background-color: var(--secondary-color);
	color: var(--text-color);
	border-radius: 4px;
	font-size: 1rem;
}
.form-group input[type='text']:focus,
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--highlight-color);
	box-shadow: 0 0 5px var(--highlight-color);
}

.form-group textarea {
	resize: vertical;
}

.form-group-checkbox {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.form-group-checkbox input[type='checkbox'] {
	margin-top: 0.3em;
	margin-right: 0.5rem;
	width: auto;
	accent-color: var(--highlight-color);
}

.form-group-checkbox .checkbox-label {
	font-weight: normal;
	margin-bottom: 0;
	font-size: 0.9rem;
	line-height: 1.4;
}
.form-group-checkbox .checkbox-label a {
	color: var(--highlight-color);
	text-decoration: underline;
}

.form-status {
	margin-top: 1rem;
	font-weight: bold;
}
.form-status.success {
	color: #2ecc71; /* Green */
}
.form-status.error {
	color: var(--highlight-color);
}

/* Form Submit Modal */
.centered-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay */
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 2001; /* Higher than cookie modal */
	padding: 15px; /* Padding for smaller screens so modal content doesn't touch edges */
}

.centered-modal .modal-content {
	background-color: var(--secondary-color);
	padding: 30px 40px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
	text-align: center;
	max-width: 400px;
	width: 100%; /* Allow it to shrink on small screens, max-width controls upper bound */
	color: var(--text-color);
}

.centered-modal .modal-content p {
	font-size: 1.1rem; /* Slightly smaller for modal */
	margin-bottom: 0;
	line-height: 1.5;
}

/* Simple CSS Loader - three dots */
.loader {
	display: inline-block; /* Changed from display: inline; for better spacing control */
	margin-left: 8px;
	font-size: 1.1rem; /* Match paragraph font size */
	line-height: 1; /* Prevent extra spacing from line-height */
	vertical-align: baseline; /* Align with text */
}
.loader::after {
	content: ' .';
	animation: dots 1.4s steps(5, end) infinite;
}

@keyframes dots {
	0%,
	20% {
		color: rgba(233, 236, 239, 0); /* var(--text-color) with alpha 0 */
		text-shadow: 0.3em 0 0 rgba(233, 236, 239, 0),
			/* var(--text-color) with alpha 0 */ 0.6em 0 0 rgba(233, 236, 239, 0); /* var(--text-color) with alpha 0 */
	}
	40% {
		color: var(--text-color);
		text-shadow: 0.3em 0 0 rgba(233, 236, 239, 0),
			0.6em 0 0 rgba(233, 236, 239, 0);
	}
	60% {
		text-shadow: 0.3em 0 0 var(--text-color), 0.6em 0 0 rgba(233, 236, 239, 0);
	}
	80%,
	100% {
		text-shadow: 0.3em 0 0 var(--text-color), 0.6em 0 0 var(--text-color);
	}
}

/* Footer */
footer {
	background-color: var(--secondary-color);
	color: #bdc3c7; /* Lighter grey for footer text */
	padding: 3rem 0 1.5rem;
	border-top: 2px solid var(--accent-color);
	text-align: center;
}

footer .footer-content {
	display: flex;
	justify-content: space-around;
	margin-bottom: 2rem;
	text-align: left;
	gap: 2rem;
	flex-wrap: wrap;
}

footer .footer-contact,
footer .footer-links,
footer .footer-navigation {
	flex: 1;
	min-width: 250px; /* Ensure readability on smaller flex wrap */
}

footer h4 {
	color: var(--text-color);
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

footer ul {
	list-style: none;
}

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

footer ul li a {
	color: #bdc3c7;
	transition: color 0.3s ease;
}

footer ul li a:hover {
	color: var(--highlight-color);
	text-decoration: none;
}
footer .footer-contact p a {
	color: #bdc3c7;
}
footer .footer-contact p a:hover {
	color: var(--highlight-color);
}

footer .footer-navigation ul {
	list-style: none;
}
footer .footer-navigation ul li {
	margin-bottom: 0.5rem;
}
footer .footer-navigation ul li a {
	color: #bdc3c7;
	transition: color 0.3s ease;
}
footer .footer-navigation ul li a:hover {
	color: var(--highlight-color);
	text-decoration: none;
}

footer .copyright {
	font-size: 0.9rem;
	border-top: 1px solid var(--accent-color);
	padding-top: 1.5rem;
	margin-top: 1rem;
}

/* Cookie Consent Modal */
.modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(
		22,
		33,
		62,
		0.95
	); /* var(--secondary-color) with opacity */
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default */
	border-top: 2px solid var(--highlight-color);
}

.modal-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}
.modal-content h2 {
	font-size: 1.5rem;
	color: var(--text-color);
	margin-bottom: 1rem;
}
.modal-content p {
	margin-bottom: 1.5rem;
	font-size: 0.95rem;
}
.modal-content a {
	color: var(--highlight-color);
	text-decoration: underline;
}
.modal-buttons button {
	background-color: var(--highlight-color);
	color: white;
	border: none;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	transition: background-color 0.3s ease;
}

.modal-buttons button:hover {
	background-color: #d63031;
}

.modal-buttons button#rejectCookies {
	background-color: var(--accent-color);
}
.modal-buttons button#rejectCookies:hover {
	background-color: #0c2a4f;
}

/* Legal Pages Specific Styles */
.legal-page-container {
	padding: 40px 0;
	min-height: 70vh;
}
.legal-page-container .container {
	background-color: var(--secondary-color);
	padding: 2rem 3rem;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.legal-page-container h1 {
	font-size: 1.5rem;
	text-align: center;
	margin-bottom: 2rem;
	color: var(--highlight-color);
}
.legal-page-container h2 {
	text-align: left;
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--text-color);
	border-bottom: 1px solid var(--accent-color);
	padding-bottom: 0.5rem;
}
.legal-page-container p,
.legal-page-container ul {
	margin-bottom: 1rem;
}
.legal-page-container ul {
	list-style: disc;
	margin-left: 20px;
}

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

	#hero .container,
	#about-us .container,
	#insights .container,
	#contact .container {
		flex-direction: column;
		text-align: center;
	}
	#hero .hero-content,
	#about-us .about-us-content,
	#insights .insights-content,
	#contact .contact-content {
		margin-bottom: 2rem;
	}
	#hero .hero-image img,
	#about-us .about-us-image img,
	#insights .insights-image img,
	#contact .contact-image-visual {
		margin: 0 auto;
	}

	#contact .container {
		align-items: center; /* Center contact details when stacked */
	}
	#contact .contact-details-map {
		width: 100%;
		max-width: 500px; /* Limit width of contact info box */
	}
}

@media (max-width: 768px) {
	header .container {
		flex-direction: column;
		gap: 0.5rem;
	}
	header nav ul {
		justify-content: center;
		flex-wrap: wrap;
	}
	header nav ul li {
		margin: 5px 10px;
	}

	main section {
		padding: 60px 0;
	}
	h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	.cards-container {
		grid-template-columns: 1fr; /* Stack cards on smaller screens */
	}

	footer .footer-content {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	footer .footer-contact,
	footer .footer-links,
	footer .footer-navigation {
		width: 100%;
		margin-bottom: 1rem;
	}
	footer .footer-contact p,
	footer .footer-links ul,
	footer .footer-navigation ul {
		text-align: center;
	}

	.modal-content {
		padding: 0 10px;
	}
	.modal-buttons button {
		margin: 5px;
		width: calc(50% - 10px);
	}
	.legal-page-container .container {
		padding: 1.5rem;
	}
}

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

	.cta-button {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	.form-group input,
	.form-group textarea {
		padding: 0.7rem;
	}
}
