/* Global Resets and Base Styles */

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
		Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
	overflow-x: hidden; /* Prevent horizontal scroll from animations */
	margin: 0;
}

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

h1,
h2,
h3,
h4 {
	color: #2c3e50;
	margin-bottom: 0.75em;
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
}
h2 {
	font-size: 2.2rem;
}
h3 {
	font-size: 1.5rem;
}

p {
	margin-bottom: 1em;
	color: #555;
}

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

a:hover {
	text-decoration: underline;
}

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

ul {
	list-style: none;
}

.btn {
	display: inline-block;
	padding: 12px 25px;
	background-color: #3498db;
	color: #fff;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: bold;
	text-align: center;
	transition: background-color 0.3s ease;
}

.btn:hover {
	background-color: #2980b9;
	text-decoration: none;
}

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

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

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: bold;
	color: #2c3e50;
}

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

header .logo:hover {
	text-decoration: none;
}

header nav ul {
	display: flex;
}

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

header nav ul li a {
	color: #333;
	font-weight: 500;
	padding: 5px 0;
	position: relative;
}
header nav ul li a:hover {
	color: #3498db;
	text-decoration: none;
}
header nav ul li a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: #3498db;
	transition: width 0.3s ease;
}
header nav ul li a:hover::after {
	width: 100%;
}

.mobile-nav-toggle {
	display: none;
	background: none;
	border: none;
	font-size: 1.8rem;
	cursor: pointer;
	color: #333;
}

/* Sections General Styling */
section {
	padding: 60px 20px;
	text-align: center;
}
section:nth-child(even) {
	background-color: #fff;
}
section h2 {
	margin-bottom: 40px;
}

/* Specific Section Styling */

/* Hero Section (#hero) */
#hero {
	padding: 80px 30px;
	background-color: #ecf0f1; /* Light grey background */
	color: #333;
	text-align: left;
	display: flex; /* For side-by-side layout */
	align-items: center; /* Vertically align items */
	gap: 30px;
}

#hero .content-container {
	flex: 1; /* Takes up available space */
	width: 45%;
}

#hero .background-image-container {
	flex: 1;
	width: 45%;
}
#hero .background-image-container img {
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#hero h1 {
	color: #2c3e50;
	font-size: 3rem; /* Larger for hero */
}
#hero p {
	font-size: 1.1rem;
	margin-bottom: 30px;
}

/* Overview Section (#overview) */
#overview {
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}
#overview.text-only-section .container {
	max-width: 800px; /* Narrower for better readability of text */
	text-align: left;
}
#overview.text-only-section h2 {
	text-align: center;
}

/* How It Works Section (#how-it-works) */
#how-it-works {
	display: flex;
	align-items: center;
	text-align: left;
}
#how-it-works .content-container {
	flex: 1;
	padding-right: 30px;
}
#how-it-works .background-image-container {
	flex: 0 0 40%;
	max-width: 40%;
}
#how-it-works .background-image-container img {
	border-radius: 8px;
}
#how-it-works .steps {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 25px;
	text-align: left;
}
#how-it-works .step h3 {
	color: #3498db;
	margin-bottom: 0.5em;
}

/* Modules Section (#modules) - Cards */
#modules {
	background-color: #f9f9f9;
}
.cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 30px;
}
.card {
	background-color: #fff;
	padding: 25px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	text-align: left;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}
.card img {
	width: 100%; /* Icon size */
	height: auto;
	margin-bottom: 15px;
}
.card h3 {
	margin-bottom: 10px;
	color: #3498db;
}

/* Why accusamus-tempora.com Section (#why-eecom) */
#why-eecom {
	display: flex;
	align-items: center;
	text-align: left;
	background-color: #fff;
}
#why-eecom .content-container {
	flex: 1;
	padding-right: 30px;
}
#why-eecom .background-image-container {
	flex: 0 0 45%;
	max-width: 45%;
}
#why-eecom .background-image-container img {
	border-radius: 8px;
}
#why-eecom ul {
	list-style: disc;
	padding-left: 20px;
}
#why-eecom ul li {
	margin-bottom: 10px;
}
#why-eecom ul li strong {
	color: #2c3e50;
}

/* FAQ & Connect Section (#faq-contact) */
#faq-contact {
	background-size: cover;
	background-position: center;
}
.faq-contact-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	text-align: left;
}
.faq-column h2,
.contact-column h2 {
	margin-bottom: 20px;
	text-align: left;
}
.faq-item {
	margin-bottom: 20px;
}
.faq-item h3 {
	font-size: 1.2rem;
	color: #3498db;
	margin-bottom: 8px;
}

/* Contact Form */
#contactForm .form-group {
	margin-bottom: 20px;
}
#contactForm label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #444;
}
#contactForm input[type='text'],
#contactForm input[type='email'],
#contactForm textarea {
	width: 100%;
	padding: 12px;
	border: 1px solid #ddd;
	border-radius: 5px;
	font-size: 1rem;
}
#contactForm textarea {
	resize: vertical;
}
#contactForm button.btn {
	width: auto;
	background-color: #2ecc71;
}
#contactForm button.btn:hover {
	background-color: #27ae60;
}
.form-status {
	margin-top: 15px;
	font-weight: bold;
}
.form-status.success {
	color: #2ecc71;
}
.form-status.error {
	color: #e74c3c;
}

/* Style for checkbox group */
.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px; /* Space between checkbox and label */
}

.form-group-checkbox input[type='checkbox'] {
	width: auto; /* Override full width for checkbox */
	margin-right: 5px; /* Spacing from label */
	accent-color: #3498db; /* Optional: color the checkbox */
}

.form-group-checkbox label {
	margin-bottom: 0; /* Align with checkbox */
	font-weight: normal; /* Regular font weight for consent label */
	font-size: 0.9rem;
	color: #555;
}

/* Form Submission Status Modal */
.status-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); /* Dim background */
	align-items: center;
	justify-content: center;
	padding: 15px; /* Add some padding for smaller screens */
}

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

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

.status-modal-content p.success {
	color: #2ecc71; /* Green */
}
.status-modal-content p.error {
	color: #e74c3c; /* Red */
}

.spinner {
	border: 4px solid #f3f3f3; /* Light grey */
	border-top: 4px solid #3498db; /* Blue */
	border-radius: 50%;
	width: 30px;
	height: 30px;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px auto;
}

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

/* Footer */
footer {
	background-color: #2c3e50;
	color: #ecf0f1;
	padding: 40px 0 20px;
	text-align: left;
}
.footer-columns {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
}
.footer-column h4 {
	color: #fff;
	margin-bottom: 15px;
	font-size: 1.2rem;
}
.footer-column p,
.footer-column ul li {
	margin-bottom: 8px;
	font-size: 0.95rem;
}
.footer-column a {
	color: #bdc3c7;
}
.footer-column a:hover {
	color: #fff;
	text-decoration: underline;
}
.copyright {
	text-align: center;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid #34495e;
	font-size: 0.9rem;
	color: #bdc3c7;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(44, 62, 80, 0.95); /* Darker, semi-transparent */
	color: #fff;
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	z-index: 2000;
	display: none; /* Hidden by default */
	text-align: center;
}
.cookie-modal-content {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
}
.cookie-modal p {
	margin-bottom: 15px;
	font-size: 0.95rem;
	color: #ecf0f1;
}
.cookie-modal a {
	color: #3498db;
	text-decoration: underline;
}
.cookie-modal-buttons button {
	padding: 10px 20px;
	margin: 0 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}
#acceptCookies {
	background-color: #2ecc71;
	color: #fff;
}
#declineCookies {
	background-color: #e74c3c;
	color: #fff;
}

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

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

/* Legal Pages Simple Styling */
.legal-page-container {
	padding: 40px 0;
	min-height: 60vh;
}
.legal-page-container .container {
	background-color: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 20px;
	text-align: center;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 25px;
	margin-bottom: 10px;
	color: #34495e;
}
.legal-page-container p,
.legal-page-container ul li {
	margin-bottom: 10px;
	text-align: justify;
}
.legal-page-container ul {
	padding-left: 20px;
	list-style: disc;
}

/* Responsive Design */
@media (max-width: 992px) {
	#hero .content-container {
		width: 100%;
	}

	#hero .background-image-container {
		width: 100%;
	}

	#hero,
	#how-it-works,
	#why-eecom {
		flex-direction: column;
		text-align: center;
	}
	#hero .content-container,
	#how-it-works .content-container,
	#why-eecom .content-container {
		padding-right: 0;
		margin-bottom: 30px;
	}
	#hero .background-image-container,
	#how-it-works .background-image-container,
	#why-eecom .background-image-container {
		flex-basis: auto; /* Allow image to take full width */
		max-width: 80%; /* Or a suitable percentage */
		margin: 0 auto;
	}
	#how-it-works .steps {
		grid-template-columns: 1fr; /* Stack steps on smaller screens */
		text-align: center;
	}
	.faq-contact-grid {
		grid-template-columns: 1fr; /* Stack FAQ and Contact form */
	}
	.faq-column,
	.contact-column {
		text-align: center;
	}
	.faq-column h2,
	.contact-column h2 {
		text-align: center;
	}
	.faq-item,
	#contactForm {
		text-align: left; /* Keep form elements and FAQ text left-aligned within centered column */
	}
}

@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}
	h2 {
		font-size: 1.8rem;
	}

	header nav ul {
		display: none; /* Hide desktop nav */
		flex-direction: column;
		width: 100%;
		background-color: #fff;
		position: absolute;
		top: 100%; /* Position below header */
		left: 0;
		box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
	}
	header nav ul.active {
		padding-left: 0;
		display: flex; /* Show mobile nav when active */
	}
	header nav ul li {
		margin: 0;
		width: 100%;
		text-align: center;
	}
	header nav ul li a {
		padding: 15px;
		display: block;
		border-bottom: 1px solid #f0f0f0;
	}
	header nav ul li a::after {
		display: none; /* No underline animation for mobile */
	}
	.mobile-nav-toggle {
		display: block; /* Show hamburger icon */
	}

	.footer-columns {
		grid-template-columns: 1fr; /* Stack footer columns */
		text-align: center;
	}
	.footer-column h4 {
		margin-top: 20px;
	}
	.footer-column:first-child h4 {
		margin-top: 0;
	}
	.footer-column ul {
		padding-left: 0;
	}
	.cookie-modal-content {
		flex-direction: column;
		text-align: center;
	}
	.cookie-modal-buttons {
		margin-top: 10px;
	}
	.cookie-modal-buttons button {
		margin: 5px;
		width: 100px;
	}
}

@media (max-width: 480px) {
	.cards-container {
		grid-template-columns: 1fr; /* Stack cards on very small screens */
	}
	#hero h1 {
		font-size: 2rem;
	}
	section {
		padding: 40px 0;
	}
}
