/* Global Styles */
:root {
	--primary-color: #007bff; /* A nice blue */
	--secondary-color: #6c757d; /* Grey */
	--background-color: #f8f9fa; /* Light grey background */
	--text-color: #333;
	--heading-color: #2c3e50; /* Darker blue/grey for headings */
	--card-background: #ffffff;
	--border-color: #dee2e6;
	--footer-background: #343a40; /* Dark grey for footer */
	--footer-text-color: #f8f9fa;
	--link-hover-color: #0056b3;
	--button-hover-bg: #0056b3;
	--button-text-color: #ffffff;
	--font-family-sans-serif: -apple-system, BlinkMacSystemFont, 'Segoe UI',
		Roboto, 'Helvetica Neue', Arial, sans-serif;
	--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas,
		'Liberation Mono', 'Courier New', monospace;
}

body {
	font-family: var(--font-family-sans-serif);
	line-height: 1.6;
	margin: 0;
	padding: 0;
	background-color: var(--background-color);
	color: var(--text-color);
	font-size: 16px;
}

* {
	box-sizing: border-box;
}

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

h1,
h2,
h3,
h4 {
	color: var(--heading-color);
	margin-top: 0;
	margin-bottom: 0.75em;
	font-weight: 600;
}

h1 {
	font-size: 2.5em;
}
h2 {
	font-size: 2em;
}
h3 {
	font-size: 1.5em;
}
h4 {
	font-size: 1.2em;
}

p {
	margin-bottom: 1em;
}

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

a:hover {
	color: var(--link-hover-color);
	text-decoration: underline;
}

img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

ul {
	list-style: disc;
	padding-left: 20px;
}

/* Header */
header {
	background-color: #ffffff;
	padding: 15px 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

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

.logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.logo-img {
	height: 40px;
	width: auto;
	margin-right: 10px;
}

header h1 {
	font-size: 1.2em;
	margin: 0;
	color: var(--heading-color);
}

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

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

header nav ul li a {
	text-decoration: none;
	color: var(--text-color);
	font-weight: 500;
	padding: 5px 0;
	transition: color 0.3s ease;
}

header nav ul li a:hover,
header nav ul li a.active {
	color: var(--primary-color);
	border-bottom: 2px solid var(--primary-color);
}

/* Mobile Menu Button */
.menu-toggle {
	display: none; /* Hidden by default */
	background: none;
	border: none;
	font-size: 24px;
	color: var(--heading-color);
	cursor: pointer;
	padding: 5px;
}

/* Main Content & Sections */
main {
	padding-top: 30px;
	padding-bottom: 30px;
}

section {
	padding: 50px 0;
	border-bottom: 1px solid #e0e0e0;
}
section:last-child {
	border-bottom: none;
}

.section-content-flex {
	display: flex;
	align-items: center;
	gap: 40px;
}

.section-content-flex .text-content,
.section-content-flex .image-content {
	flex: 1;
}

.section-content-flex.reverse-flex {
	flex-direction: row-reverse;
}

.image-content img {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.text-only-section p {
	max-width: 800px; /* Limit width for readability */
	margin-left: auto;
	margin-right: auto;
	text-align: justify;
}
.text-only-section h2 {
	text-align: center;
	margin-bottom: 30px;
}

.section-action-button {
	text-align: center;
	margin-top: 30px; /* Add space above the button */
}

/* Cards */
.section-intro {
	text-align: center;
	margin-bottom: 40px;
	font-size: 1.1em;
	color: var(--secondary-color);
}

.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 30px;
}

.card {
	background-color: var(--card-background);
	border: 1px solid var(--border-color);
	border-radius: 8px;
	padding: 25px;
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.12);
}

.card img {
	width: 100%; /* Or adjust as needed */
	height: auto;
	margin-bottom: 15px;
	object-fit: contain;
}

.card h3 {
	margin-bottom: 10px;
	font-size: 1.3em;
}

/* Footer */
footer {
	background-color: var(--footer-background);
	color: var(--footer-text-color);
	padding: 40px 0 20px;
}

.footer-columns {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 30px;
	margin-bottom: 30px;
}

.footer-column {
	flex: 1;
	min-width: 200px; /* Ensures columns don't get too squished */
}

.footer-column h4 {
	color: #ffffff;
	margin-bottom: 15px;
	font-size: 1.1em;
	border-bottom: 1px solid var(--secondary-color);
	padding-bottom: 8px;
}

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

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

.footer-column ul li a {
	color: var(--footer-text-color);
	text-decoration: none;
	transition: color 0.3s ease;
}

.footer-column ul li a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

.footer-column p {
	font-size: 0.9em;
	line-height: 1.5;
}

.copyright {
	text-align: center;
	font-size: 0.9em;
	padding-top: 20px;
	border-top: 1px solid var(--secondary-color);
	margin-top: 20px;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	color: white;
	padding: 20px;
	z-index: 1001;
	display: none; /* Hidden by default, shown by JS */
	font-size: 0.95em;
}

.cookie-modal.show {
	display: block;
}

.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	text-align: center;
}

.cookie-modal-content p {
	margin-bottom: 15px;
}

.cookie-modal-content a {
	color: var(--primary-color);
	text-decoration: underline;
}

.cookie-modal-buttons button {
	background-color: var(--primary-color);
	color: var(--button-text-color);
	border: none;
	padding: 10px 20px;
	margin: 0 10px;
	border-radius: 5px;
	cursor: pointer;
	font-size: 0.9em;
	transition: background-color 0.3s ease;
}

.cookie-modal-buttons button:hover {
	background-color: var(--button-hover-bg);
}

.cookie-modal-buttons button#rejectCookies {
	background-color: var(--secondary-color);
}
.cookie-modal-buttons button#rejectCookies:hover {
	background-color: #5a6268;
}

/* Form Submission Modal */
.form-submit-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none; /* Hidden by default */
	justify-content: center;
	align-items: center;
	z-index: 1002; /* Higher than cookie modal */
	opacity: 0;
	transition: opacity 0.3s ease-in-out;
}

.form-submit-modal.show {
	display: flex;
	opacity: 1;
}

.form-submit-modal-content {
	background-color: white;
	padding: 30px 40px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
	min-width: 300px;
	max-width: 90%;
}

.form-submit-modal-content .loader {
	border: 5px solid #f3f3f3; /* Light grey */
	border-top: 5px solid var(--primary-color); /* Blue */
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.form-submit-modal-content h3 {
	margin-top: 0;
	margin-bottom: 15px;
	color: var(--heading-color);
}

.form-submit-modal-content p {
	margin-bottom: 0;
	font-size: 1.1em;
}

.form-submit-modal-content .success-icon {
	font-size: 3em;
	color: green;
	margin-bottom: 15px;
}

/* Animation for sections */
.revealable {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.revealable.revealed {
	opacity: 1;
	transform: scale(1) translateY(0);
}

/* Legal Pages (Privacy, Terms, Cookies etc.) */
.legal-page .container {
	max-width: 800px; /* More focused reading experience */
}

.legal-page h2 {
	margin-bottom: 20px;
	border-bottom: 2px solid var(--primary-color);
	padding-bottom: 10px;
}

.legal-page h3 {
	margin-top: 30px;
	margin-bottom: 15px;
	font-size: 1.3em;
}

.legal-page p,
.legal-page ul {
	margin-bottom: 15px;
	line-height: 1.7;
}

.legal-page ul {
	padding-left: 25px;
}
.legal-page ul li {
	margin-bottom: 8px;
}

.current-date {
	font-style: italic;
	color: var(--secondary-color);
}

/* FAQ Page */
#faq-section .container {
	max-width: 800px;
}
#faq-section.js-faq-enabled .faq-item p {
	display: none; /* Initially hide answers when JS is enabled */
	margin-top: 10px; /* Add some space when it opens */
}

#faq-section.js-faq-enabled .faq-item h3.open + p {
	display: block; /* Show answer when h3 has 'open' class */
}

#faq-section.js-faq-enabled .faq-item h3 {
	cursor: pointer;
	position: relative; /* For positioning the pseudo-element */
	padding-right: 25px; /* Space for the indicator */
}

#faq-section.js-faq-enabled .faq-item h3::after {
	content: '+';
	position: absolute;
	right: 5px; /* Adjusted for better alignment */
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.4em; /* Slightly larger for visibility */
	font-weight: bold;
	color: var(--primary-color);
	transition: transform 0.2s ease-in-out; /* Smooth transition for indicator */
}

#faq-section.js-faq-enabled .faq-item h3.open::after {
	content: '−'; /* Unicode minus sign */
	transform: translateY(-50%) rotate(180deg); /* Optional: rotate the plus to a minus or just change content */
}

.faq-item {
	margin-bottom: 30px;
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 20px;
}
.faq-item:last-child {
	border-bottom: none;
	margin-bottom: 0;
}

.faq-item h3 {
	margin-bottom: 10px;
	cursor: pointer; /* Optional: if you add JS toggle for answers */
	font-size: 1.25em;
}
.faq-item h3:hover {
	color: var(--primary-color);
}

/* Contact Page */
#contact-form-section,
#contact-details-section {
	padding: 40px 0;
}
#contact-form-section .container,
#contact-details-section .container {
	max-width: 700px;
}

#contact-form-section h2,
#contact-details-section h2 {
	text-align: center;
	margin-bottom: 30px;
}

.form-group {
	margin-bottom: 20px;
}

.form-group label {
	display: block;
	margin-bottom: 8px;
	font-weight: 500;
}

.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 1em;
}

.form-group textarea {
	min-height: 120px;
	resize: vertical;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin: 0;
	flex-shrink: 0;
}

.form-group-checkbox .checkbox-label {
	margin-bottom: 0;
	font-weight: normal;
	font-size: 0.9em;
	color: var(--text-color);
}

button[type='submit'].btn,
.btn {
	background-color: var(--primary-color);
	color: var(--button-text-color);
	padding: 12px 25px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1em;
	font-weight: 500;
	transition: background-color 0.3s ease;
	display: inline-block;
	text-align: center;
}

button[type='submit'].btn:hover,
.btn:hover {
	background-color: var(--button-hover-bg);
	color: var(--button-text-color);
	text-decoration: none;
}

.form-status {
	margin-top: 15px;
	font-weight: 500;
}
.form-status.success {
	color: green;
}
.form-status.error {
	color: red;
}

#contact-details-section address {
	font-style: normal;
	line-height: 1.7;
	margin-bottom: 15px;
}

#contact-details-section p {
	margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.section-content-flex {
		flex-direction: column;
		text-align: center;
	}
	.section-content-flex.reverse-flex {
		flex-direction: column;
	}
	.section-content-flex .text-content,
	.section-content-flex .image-content {
		margin-bottom: 20px;
	}
	.image-content {
		order: -1;
	}
	.section-content-flex.reverse-flex .image-content {
		order: -1;
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2em;
	}
	h2 {
		font-size: 1.75em;
	}
	h3 {
		font-size: 1.3em;
	}

	header .container {
		flex-direction: row; /* Keep logo and toggle on the same line */
		justify-content: space-between; /* Space between logo and toggle */
		align-items: center;
	}
	.logo-link {
		margin-bottom: 0; /* Remove bottom margin */
	}

	.menu-toggle {
		display: block; /* Show hamburger on small screens */
	}

	header nav {
		position: absolute;
		top: 70px; /* Adjust based on header height */
		left: 0;
		width: 100%;
		background-color: #ffffff;
		box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
		max-height: 0;
		overflow: hidden;
		transition: max-height 0.3s ease-in-out;
	}

	header nav.open {
		max-height: 500px; /* Or a large enough value to show all items */
		border-top: 1px solid var(--border-color);
	}

	header nav ul {
		flex-direction: column;
		align-items: center;
		width: 100%;
		padding: 10px 0; /* Add some padding */
	}
	header nav ul li {
		margin: 0; /* Remove horizontal margins */
		width: 100%;
		text-align: center;
	}
	header nav ul li a {
		display: block;
		padding: 12px 20px; /* Adjust padding for better touch targets */
		border-bottom: 1px solid var(--border-color); /* Separator for items */
	}
	header nav ul li:last-child a {
		border-bottom: none; /* Remove border from last item */
	}

	header nav ul li a.active,
	header nav ul li a:hover {
		border-bottom: 1px solid var(--border-color); /* Keep separator consistent */
		background-color: var(--primary-color);
		color: white;
		border-radius: 0; /* No radius for full-width items */
	}
	header nav ul li a.active {
		border-bottom-color: var(
			--primary-color
		); /* Ensure active border matches bg */
	}

	.footer-columns {
		flex-direction: column;
		align-items: flex-start;
	}
	.footer-column {
		width: 100%;
		margin-bottom: 20px;
	}
	.footer-column:last-child {
		margin-bottom: 0;
	}

	.cards-container {
		grid-template-columns: 1fr;
	}
	.cookie-modal-buttons {
		display: flex;
		flex-direction: column;
		gap: 10px;
	}
	.cookie-modal-buttons button {
		width: 100%;
		margin: 0;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	.container {
		width: 95%;
	}
	section {
		padding: 30px 0;
	}
	.form-group input[type='text'],
	.form-group input[type='email'],
	.form-group textarea,
	button[type='submit'].btn {
		font-size: 0.95em;
	}
}
