*,
*::after,
*::before {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Roboto', sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f4f7f6;
	color: #333;
	line-height: 1.6;
	overflow-x: hidden; /* Prevent horizontal scroll issues with animations */
}

h1,
h2,
h3 {
	font-family: 'Space Grotesk', sans-serif;
	color: #2c3e50;
}

a {
	color: #3498db;
	text-decoration: none;
}

a:hover {
	text-decoration: underline;
}

/* Helper class for screen readers */
.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border-width: 0;
}

/* Header & Navigation */
header {
	background-color: #ffffff;
	padding: 1rem 5%;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
	position: sticky;
	top: 0;
	z-index: 1000;
}

nav {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
}

.logo-link {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-weight: bold;
	font-size: 1.2em;
	color: #2c3e50;
	text-decoration: none;
}
.logo-img {
	height: 40px; /* Adjust as needed */
	width: auto;
}

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

nav ul li {
	margin-left: 25px;
}

nav ul li a {
	font-weight: bold;
	font-size: 1em;
	color: #34495e;
	transition: color 0.3s ease;
}

nav ul li a:hover {
	color: #3498db;
	text-decoration: none;
}

/* Mobile Navigation Toggle Button (Hamburger) */
.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: 0;
	padding: 0.5em; /* Clickable area */
	cursor: pointer;
	z-index: 1001; /* Above primary nav dropdown */
}

.mobile-nav-toggle .hamburger-bar {
	display: block;
	position: relative;
	width: 25px;
	height: 3px;
	background-color: #2c3e50;
	border-radius: 3px;
	transition: transform 0.3s ease-in-out, background-color 0.3s ease-in-out;
}

.mobile-nav-toggle .hamburger-bar::before,
.mobile-nav-toggle .hamburger-bar::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: #2c3e50;
	border-radius: 3px;
	transition: transform 0.3s ease-in-out, top 0.3s ease-in-out,
		bottom 0.3s ease-in-out;
}

.mobile-nav-toggle .hamburger-bar::before {
	top: -8px;
}

.mobile-nav-toggle .hamburger-bar::after {
	bottom: -8px;
}

/* "X" icon when menu is open (aria-expanded="true") */
.mobile-nav-toggle[aria-expanded='true'] .hamburger-bar {
	background-color: transparent; /* Middle bar disappears */
}

.mobile-nav-toggle[aria-expanded='true'] .hamburger-bar::before {
	transform: rotate(45deg);
	top: 0;
}

.mobile-nav-toggle[aria-expanded='true'] .hamburger-bar::after {
	transform: rotate(-45deg);
	bottom: 0;
}

/* Main Content & Sections */
main {
	padding: 0; /* Sections will have their own padding */
}

section {
	padding: 60px 5%;
	margin-bottom: 0; /* No margin between sections */
	opacity: 0; /* Initial state for animation */
	transform: scale(0.95); /* Initial state for animation */
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
	min-height: 300px; /* Minimum height for visual effect */
	display: flex; /* For centering content wrapper */
	justify-content: center; /* For centering content wrapper */
	align-items: center; /* For centering content wrapper */
}

section:nth-child(even) {
	background-color: #ffffff;
}
section:nth-child(odd) {
	background-color: #eef3f2;
}

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

.content-wrapper {
	max-width: 1100px;
	width: 100%;
	display: flex;
	align-items: center;
	gap: 40px;
}

.content-wrapper.reverse {
	flex-direction: row-reverse;
}
.content-wrapper.column-layout {
	flex-direction: column;
	text-align: center;
}

.text-content {
	flex: 1;
}
.text-content.full-width {
	flex-basis: 100%;
	max-width: 800px; /* For better readability in text-only sections */
	margin: 0 auto;
}

.image-content {
	flex: 1;
	display: flex;
	justify-content: center;
	align-items: center;
}

.image-content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#hero .text-content h1 {
	font-size: 3em;
	margin-bottom: 0.5em;
	color: #16a085;
}

#hero .text-content p {
	font-size: 1.2em;
	margin-bottom: 1.5em;
}

.cta-button {
	display: inline-block;
	background-color: #16a085;
	color: #fff;
	padding: 12px 25px;
	border-radius: 5px;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.3s ease;
}

.cta-button:hover {
	background-color: #1abc9c;
	text-decoration: none;
}

/* Quick Tips Section */
#quick-tips ul {
	list-style: none;
	padding-left: 0;
}
#quick-tips ul li {
	margin-bottom: 1em;
	padding-left: 1.5em;
	position: relative;
}
#quick-tips ul li::before {
	content: '✓'; /* Or a more appropriate emoji/icon */
	position: absolute;
	left: 0;
	color: #16a085;
	font-weight: bold;
}

/* Text Only Section */
.text-only-section {
	background-color: #2c3e50; /* Dark background for contrast */
	color: #ecf0f1;
}
.text-only-section h2 {
	color: #1abc9c; /* Lighter heading color for dark background */
}
.text-only-section p {
	font-size: 1.1em;
	line-height: 1.8;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
	text-align: center;
}

/* FAQ Section */
.faq-item {
	margin-bottom: 1.5em;
}
.faq-item h3 {
	margin-bottom: 0.3em;
	color: #2980b9;
}

/* Cards Section */
.section-subtitle {
	font-size: 1.1em;
	color: #555;
	margin-bottom: 30px;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

.cards-container {
	display: flex;
	flex-wrap: wrap;
	gap: 30px;
	justify-content: center;
}

.card {
	background-color: #fff;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
	width: 300px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.card img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.card-content {
	padding: 20px;
}

.card-content h3 {
	margin-top: 0;
	font-size: 1.3em;
	color: #34495e;
}

.card-content p {
	font-size: 0.95em;
	margin-bottom: 15px;
	color: #555;
}

.read-more {
	font-weight: bold;
	color: #3498db;
	font-size: 0.9em;
}

/* Contact Form Section */
.contact-form {
	max-width: 600px;
	width: 100%;
	margin: 0 auto;
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #34495e;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: calc(100% - 20px);
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1em;
}
.form-group textarea {
	resize: vertical;
}
.form-group-checkbox {
	display: flex;
	align-items: flex-start; /* Align items to the start for multi-line labels */
	gap: 10px; /* Space between checkbox and label */
}

.form-group-checkbox input[type='checkbox'] {
	margin-top: 4px; /* Align checkbox with the first line of text */
	width: auto; /* Override default width for input */
	accent-color: #16a085; /* Color for the checkbox */
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override default label bolding if needed */
	color: #555; /* Softer color for consent text */
	font-size: 0.9em;
	line-height: 1.4;
	flex: 1; /* Allow label to take remaining space */
}

.form-group.error-highlight .checkbox-label {
	color: #e74c3c; /* Error color for label text */
	font-weight: bold;
}
.form-group.error-highlight input[type='checkbox'] {
	outline: 1px solid #e74c3c;
}

.contact-form .cta-button {
	width: 100%;
	border: none;
	cursor: pointer;
}
#formSubmissionStatus {
	text-align: center;
	font-weight: bold;
}

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 5% 20px;
	text-align: center;
}

.footer-content {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-around;
	gap: 30px;
	max-width: 1200px;
	margin: 0 auto 30px;
	text-align: left;
}

.contact-info,
.legal-links,
.site-navigation {
	flex: 1;
	min-width: 250px;
}

.contact-info h3,
.legal-links h3,
.site-navigation h3 {
	color: #1abc9c;
	font-size: 1.4em;
	margin-bottom: 15px;
}

.contact-info p {
	margin: 5px 0;
	font-size: 0.95em;
}
.contact-info a {
	color: #3498db;
}

.legal-links ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.legal-links ul li {
	margin-bottom: 8px;
}

.legal-links ul li a {
	color: #bdc3c7;
	transition: color 0.3s ease;
}

.legal-links ul li a:hover {
	color: #fff;
	text-decoration: underline;
}

.site-navigation ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.site-navigation ul li {
	margin-bottom: 8px;
}

.site-navigation ul li a {
	color: #bdc3c7;
	transition: color 0.3s ease;
}

.site-navigation ul li a:hover {
	color: #fff;
	text-decoration: underline;
}

.copyright {
	font-size: 0.9em;
	color: #bdc3c7;
	margin-top: 30px;
	border-top: 1px solid #34495e;
	padding-top: 20px;
}

/* Cookie Consent Modal */
.modal {
	display: none; /* Hidden by default */
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.9);
	color: #fff;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	text-align: center;
	/* Added for flex centering of content for form submission modal */
	align-items: center;
	justify-content: center;
}

.modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 15px;
}

#formSubmissionModal .modal-content {
	padding: 20px;
	background-color: #fff; /* Give it a background distinct from overlay if needed for visibility */
	color: #333; /* Text color for submission modal */
	border-radius: 8px;
	min-width: 300px; /* Minimum width for better appearance */
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#formSubmissionModal p {
	color: #333; /* Ensure text color is readable on white background */
}

.modal-content p {
	margin: 0;
	font-size: 0.95em;
}

.modal-content a {
	color: #1abc9c;
	font-weight: bold;
}

.modal-buttons {
	margin-top: 10px;
}

.modal-buttons button {
	padding: 10px 20px;
	margin: 0 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

#acceptCookies {
	background-color: #16a085;
	color: #fff;
}

#declineCookies {
	background-color: #7f8c8d;
	color: #fff;
}

/* Spinner for Form Submission Modal */
.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border-left-color: #16a085; /* Theme color */
	animation: spin 1s ease infinite;
	margin-bottom: 15px; /* Space between spinner and message */
}

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

/* Legal Pages Basic Styling */
.legal-page-container {
	max-width: 800px;
	margin: 40px auto;
	padding: 30px;
	background-color: #fff;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
	border-radius: 8px;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-top: 0;
	color: #16a085;
	text-align: center;
	margin-bottom: 30px;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 25px;
	margin-bottom: 10px;
	color: #2980b9;
}
.legal-page-container p,
.legal-page-container li {
	line-height: 1.7;
	color: #333;
	margin-bottom: 10px;
}
.legal-page-container ul {
	padding-left: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
	nav {
		position: relative; /* For positioning the mobile menu dropdown */
	}

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

	.primary-navigation {
		display: none; /* Hidden by default, JS will toggle data-visible */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below the nav bar */
		left: 0;
		right: 0; /* Make it full width */
		background-color: #ffffff;
		padding: 0.5rem 0;
		box-shadow: 0 3px 5px rgba(0, 0, 0, 0.1);
		z-index: 990; /* Below toggle but above main content */
	}

	.primary-navigation[data-visible='true'] {
		display: flex; /* Show when toggled */
	}

	.primary-navigation li {
		margin-left: 0; /* Override desktop margin */
		margin-bottom: 0; /* Override any other margin */
		width: 100%;
	}

	.primary-navigation li a {
		display: block;
		padding: 0.75em 5%; /* Consistent padding with header side padding */
		text-align: left; /* Align text to the left for dropdown items */
		border-bottom: 1px solid #f0f0f0;
	}
	.primary-navigation li:last-child a {
		border-bottom: none;
	}

	.primary-navigation li a:hover {
		background-color: #f9f9f9;
	}

	.content-wrapper,
	.content-wrapper.reverse {
		flex-direction: column;
		text-align: center;
	}
	.text-content,
	.image-content {
		flex-basis: auto; /* Reset flex basis */
		width: 100%;
	}
	.image-content {
		margin-top: 30px;
	}
	.content-wrapper.reverse .image-content {
		margin-top: 0;
		margin-bottom: 30px;
	}

	#hero .text-content h1 {
		font-size: 2.2em;
	}
	#hero .text-content p {
		font-size: 1em;
	}

	.cards-container {
		flex-direction: column;
		align-items: center;
	}
	.card {
		width: 90%;
		max-width: 350px;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}
	.contact-info,
	.legal-links,
	.site-navigation {
		text-align: center;
	}

	.modal-content {
		flex-direction: column;
	}
	.modal-buttons {
		display: flex;
		flex-direction: column;
		gap: 10px;
		width: 80%;
		max-width: 250px;
	}
	.modal-buttons button {
		margin: 0;
	}
}
