/* Global Reset & Base Styles */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
	font-size: 16px; /* Base font size */
}

body {
	font-family: 'Open Sans', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #ffffff;
	overflow-x: hidden; /* Prevent horizontal scroll */
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: 'Poppins', sans-serif;
	margin-bottom: 0.75em;
	line-height: 1.3;
	color: #2c3e50; /* Dark blue-grey for headings */
}

h1 {
	font-size: 2.8rem;
	font-weight: 700;
}

h2 {
	font-size: 2.2rem;
	font-weight: 600;
}

h3 {
	font-size: 1.6rem;
	font-weight: 600;
}

p {
	margin-bottom: 1em;
}

a {
	color: #3498db; /* Primary blue */
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover,
a:focus {
	color: #e67e22; /* Accent orange */
	text-decoration: underline;
}

ul,
ol {
	margin-bottom: 1em;
	padding-left: 20px;
}

li {
	margin-bottom: 0.5em;
}

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

/* Container */
.container {
	width: 90%;
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

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

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

.logo-link {
	font-family: 'Poppins', sans-serif;
	font-size: 1.2rem;
	font-weight: 700;
	color: #2c3e50;
	text-decoration: none;
	display: flex;
	align-items: center;
}

.logo-link:hover {
	color: #3498db;
	text-decoration: none;
}

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

nav ul {
	list-style: none;
	display: flex; /* Default for desktop */
	padding-left: 0;
	margin-bottom: 0;
}

nav ul li {
	margin-left: 25px; /* Spacing for desktop items */
	margin-bottom: 0;
}

nav ul li a {
	text-decoration: none;
	color: #333;
	font-weight: 500;
	padding: 0.5em 0;
	position: relative;
}

nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #3498db;
	transition: width 0.3s ease;
}

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

/* Menu Toggle Button */
.menu-toggle {
	display: none; /* Hidden by default, shown in media query for mobile */
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001; /* Ensure it's clickable above other elements if layers overlap */
}

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

/* Main Content Sections */
main {
	padding-top: 2rem; /* Space below sticky header */
}

section {
	padding: 60px 0;
}

section:nth-child(even):not(.full-width-section):not(.text-only-section) {
	background-color: #f4f6f8; /* Alternate background color for sections */
}

.full-width-section {
	padding-left: 0;
	padding-right: 0;
}

/* Hero Sections */
#hero,
#info-hero {
	background-color: #2c3e50; /* Dark background for hero */
	color: #f8f9fa; /* Light text */
	text-align: center;
	padding: 80px 0;
}

#hero h1,
#info-hero h1 {
	color: #ffffff;
	font-size: 3.5rem;
	margin-bottom: 0.5em;
}

#hero p,
#info-hero p {
	font-size: 1.2rem;
	margin-bottom: 1.5em;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.cta-button {
	background-color: #e67e22; /* Accent orange */
	color: #ffffff;
	padding: 12px 30px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: 600;
	transition: background-color 0.3s ease, transform 0.2s ease;
	display: inline-block;
	border: none;
	cursor: pointer;
	font-family: 'Poppins', sans-serif;
}

.cta-button:hover,
.cta-button:focus {
	background-color: #d35400; /* Darker orange */
	color: #ffffff;
	text-decoration: none;
	transform: translateY(-2px);
}

.section-cta-button {
	margin-block: 1.5em;
}

/* Content Layout (image and text) */
.content-first .text-content,
.emoji-section .text-content {
	flex: 1;
	padding-right: 30px; /* Space between text and image */
}
.content-first .image-content,
.emoji-section .image-content {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
}

.content-first .container,
.emoji-section .container {
	display: flex;
	align-items: center;
	gap: 40px;
}
/* For sections where image comes first visually but text is first in markup */
.emoji-section .container {
	flex-direction: row-reverse; /* Image on left, text on right */
}
.emoji-section .image-content {
	padding-right: 0;
	padding-left: 30px;
}

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

.emoji {
	font-size: 6rem; /* Base size for emoji images */
	max-width: 150px; /* Control emoji image size */
	box-shadow: none !important;
}
.emoji-container {
	text-align: center;
}

/* Text Only Section */
.text-only-section {
	background-color: #ffffff;
}
.text-only-section h2 {
	text-align: center;
	margin-bottom: 1.5em;
}
.text-only-section ul {
	list-style-type: disc;
	padding-left: 25px;
}
.text-only-section ul li {
	margin-bottom: 0.8em;
}
.text-only-section ul li strong {
	color: #3498db;
}

/* Cards Section */
.cards-section h2 {
	text-align: center;
	margin-bottom: 2em;
}
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
}

.card {
	background-color: #ffffff;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	padding: 25px;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.card img {
	width: 100%; /* Control card image size */
	height: auto;
	margin: 0 auto 15px auto;
	border-radius: 5px;
}

.card h3 {
	font-size: 1.4rem;
	color: #3498db;
	margin-bottom: 0.5em;
}

/* FAQ Page */
.faq-item {
	background-color: #f9f9f9;
	border-left: 4px solid #3498db;
	padding: 20px;
	margin-bottom: 20px;
	border-radius: 0 5px 5px 0;
}
.faq-item h2 {
	font-size: 1.5rem;
	color: #2c3e50;
	margin-bottom: 0.5em;
}

/* Contact Page */
.contact-form {
	background-color: #f9f9f9;
	padding: 30px;
	border-radius: 8px;
	margin-bottom: 40px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.form-group {
	margin-bottom: 20px;
}
.form-group label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #555;
}
.form-group input[type='text'],
.form-group input[type='email'],
.form-group textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-family: 'Open Sans', sans-serif;
	font-size: 1rem;
}
.form-group input[type='email']:focus,
.form-group textarea:focus {
	outline: none;
	border-color: #3498db;
	box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}
.form-group textarea {
	resize: vertical;
	min-height: 120px;
}

.form-status {
	margin-top: 15px;
	font-weight: 500;
}
.form-status.success {
	color: #27ae60; /* Green */
}
.form-status.error {
	color: #c0392b; /* Red */
}

/* Styles for checkbox group */
.form-group-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override default full width for inputs */
	margin-right: 10px;
	appearance: none; /* Remove default browser styling */
	-webkit-appearance: none;
	height: 20px;
	width: 20px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 3px;
	cursor: pointer;
	position: relative;
	outline: none;
}

.form-group-checkbox input[type='checkbox']:checked {
	background-color: #3498db;
	border-color: #3498db;
}

.form-group-checkbox input[type='checkbox']:checked::before {
	content: '\u2714'; /* Checkmark character */
	font-size: 14px;
	color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	line-height: 1;
}

.form-group-checkbox .checkbox-label {
	font-weight: normal; /* Override default label bold */
	color: #555;
	font-size: 0.95rem;
	margin-bottom: 0; /* Align with checkbox */
	cursor: pointer;
}

.submission-modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 2001; /* Higher than cookie modal */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.6); /* Darker overlay */
	align-items: center;
	justify-content: center;
}

.submission-modal-content {
	background-color: #fefefe;
	margin: auto;
	padding: 30px;
	border: 1px solid #888;
	width: 80%;
	max-width: 400px;
	border-radius: 8px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submission-modal-content p {
	font-size: 1.1rem;
	color: #333;
	margin-top: 15px; /* Space below loader */
	margin-bottom: 0;
}

.submission-modal-content p.success {
	color: #27ae60;
}

.submission-modal-content p.error {
	color: #c0392b;
}

/* Simple CSS Loader */
.loader {
	border: 5px solid #f3f3f3; /* Light grey */
	border-top: 5px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 50px;
	height: 50px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px auto; /* Center loader */
	display: block; /* Default state */
}

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

.contact-details {
	text-align: center;
}

.contact-details h2 {
	margin-bottom: 0.5em;
}
.contact-details p {
	font-size: 1.1rem;
	margin-bottom: 0.3em;
}

/* Legal Pages */
.legal-content h1 {
	margin-bottom: 1em;
	font-size: 1.5rem;
}
.legal-content p,
.legal-content ul {
	margin-bottom: 1.2em;
	line-height: 1.7;
}
.legal-content h2 {
	font-size: 1.5rem;
	margin-top: 1.5em;
	margin-bottom: 0.8em;
	padding-bottom: 0.3em;
	border-bottom: 2px solid #eee;
}
.legal-content em {
	color: #777;
	display: block;
	margin-bottom: 1.5em;
}

/* Footer */
footer {
	background-color: #2c3e50; /* Dark blue-grey */
	color: #ecf0f1; /* Light grey text */
	padding: 40px 0;
	text-align: center;
}

.footer-navigation {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #4a5c6d; /* A bit lighter than footer bg for subtle separation */
}

.footer-navigation ul {
	list-style: none;
	padding-left: 0;
	margin-bottom: 0;
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
}

.footer-navigation ul li {
	margin: 5px 15px;
}

.footer-navigation ul li a {
	color: #bdc3c7;
	text-decoration: none;
	font-weight: 500; /* Similar to header nav */
	transition: color 0.3s ease;
	padding: 0.5em 0; /* Consistent with header nav links for touch */
}

.footer-navigation ul li a:hover,
.footer-navigation ul li a:focus {
	color: #ffffff;
	text-decoration: underline;
}

.footer-links {
	margin-bottom: 20px;
}

.footer-links a {
	margin: 0 10px;
	display: inline-block;
	margin-bottom: 5px;
}

.contact-info p {
	margin-bottom: 0.3em;
	font-size: 0.9rem;
}

.contact-info a {
	color: #bdc3c7;
}
.contact-info a:hover {
	color: #ffffff;
}

footer p:last-child {
	margin-top: 20px;
	font-size: 0.9rem;
	color: #95a5a6; /* Slightly darker grey */
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Dark, slightly transparent */
	color: #ecf0f1;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default, shown by JS */
	align-items: center;
	justify-content: center;
	text-align: center;
}

.cookie-modal-content {
	max-width: 800px;
}

.cookie-modal p {
	margin-bottom: 15px;
	font-size: 0.95rem;
}

.cookie-modal a {
	color: #3498db;
	font-weight: bold;
}
.cookie-modal a:hover {
	color: #e67e22;
}

.cookie-buttons button {
	background-color: #e67e22;
	color: #ffffff;
	border: none;
	padding: 10px 20px;
	margin: 5px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 500;
	transition: background-color 0.3s ease;
	font-family: 'Open Sans', sans-serif;
}

.cookie-buttons button:hover {
	background-color: #d35400;
}

.cookie-buttons button#rejectCookies {
	background-color: #7f8c8d; /* Grey for reject */
}
.cookie-buttons button#rejectCookies:hover {
	background-color: #6c7a7d;
}

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

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

/* Responsive Styles */
@media (max-width: 992px) {
	h1 {
		font-size: 2.5rem;
	}
	#hero h1,
	#info-hero h1 {
		font-size: 3rem;
	}
	h2 {
		font-size: 1.9rem;
	}

	.content-first .container,
	.emoji-section .container {
		flex-direction: column;
		text-align: center;
	}
	.content-first .text-content,
	.emoji-section .text-content {
		padding-right: 0;
		padding-bottom: 20px;
	}
	.emoji-section .image-content {
		padding-left: 0;
		order: -1; /* Move emoji above text on mobile */
		margin-bottom: 20px;
	}
	.emoji-section .container {
		flex-direction: column; /* Stack emoji and text */
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	#hero h1,
	#info-hero h1 {
		font-size: 2.5rem;
	}
	#hero p,
	#info-hero p {
		font-size: 1.1rem;
	}
	h2 {
		font-size: 1.7rem;
	}
	h3 {
		font-size: 1.4rem;
	}

	nav ul {
		display: none; /* Hide nav links by default on mobile */
		flex-direction: column;
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		width: 100%;
		background-color: #ffffff; /* Background for the dropdown menu */
		box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Shadow for the dropdown */
		padding: 1rem 0; /* Padding for the dropdown container */
	}
	nav ul.active {
		display: flex; /* Show menu when active class is present */
	}
	nav ul li {
		margin: 0; /* Reset margin for list items */
		width: 100%;
		text-align: center;
	}
	nav ul li a {
		display: block;
		padding: 1rem; /* Make links full width and tappable */
		border-bottom: 1px solid #f0f0f0; /* Separator for links */
	}
	nav ul li a::after {
		display: none; /* Remove underline effect for mobile dropdown links */
	}
	nav ul li:last-child a {
		border-bottom: none; /* No border for the last item */
	}

	.menu-toggle {
		display: block; /* Show hamburger icon on mobile */
	}
	/* Hamburger to X animation */
	.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);
	}

	.cards-container {
		grid-template-columns: 1fr; /* Stack cards on smaller screens */
	}
	.cookie-modal-content {
		padding: 0 10px; /* Add some padding on mobile for modal */
	}
	.cookie-buttons {
		display: flex;
		flex-direction: column;
	}
	.cookie-buttons button {
		width: 100%;
		margin: 5px 0;
	}
	.footer-navigation ul {
		flex-direction: column;
		align-items: center;
	}
	.footer-navigation ul li {
		margin: 8px 0;
	}
}

@media (max-width: 480px) {
	h1 {
		font-size: 1.8rem;
	}
	#hero h1,
	#info-hero h1 {
		font-size: 2rem;
	}
	h2 {
		font-size: 1.5rem;
	}

	.footer-links {
		display: flex;
		flex-direction: column;
	}
	.footer-links a {
		margin: 5px 0;
	}
	section {
		padding: 40px 0;
	}
	#hero,
	#info-hero {
		padding: 60px 0;
	}
	.footer-navigation ul li a {
		padding: 0.8em 0; /* Slightly larger tap target for stacked links */
	}
}
