/* --- General Styles --- */
:root {
	--primary-color: #0052cc;
	--secondary-color: #0065ff;
	--background-color: #ffffff;
	--text-color: #333333;
	--light-gray: #f4f5f7;
	--dark-gray: #5e6c84;
	--border-color: #dfe1e6;
	--font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
		'Helvetica Neue', Arial, sans-serif;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

h1,
h2,
h3 {
	line-height: 1.2;
	margin-bottom: 1rem;
}

h1 {
	font-size: 2.8rem;
}

h2 {
	font-size: 2.2rem;
	text-align: center;
	margin-bottom: 2rem;
}

p {
	margin-bottom: 1rem;
}

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

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

section {
	padding: 60px 0;
}

.cta-button {
	display: inline-block;
	background-color: var(--primary-color);
	color: #fff;
	padding: 12px 24px;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.cta-button:hover {
	background-color: var(--secondary-color);
	transform: translateY(-2px);
}

/* --- 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);
}

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

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

.logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	font-weight: bold;
	color: var(--text-color);
}

.logo img {
	height: 40px;
	width: auto;
	object-fit: contain;
}

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

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

.nav-links ul li a {
	color: var(--dark-gray);
	font-weight: 500;
	transition: color 0.3s ease;
}

.nav-links ul li a:hover {
	color: var(--primary-color);
}

.hamburger-button {
	display: none;
	flex-direction: column;
	justify-content: space-around;
	width: 30px;
	height: 25px;
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0;
	z-index: 1010;
}

.hamburger-line {
	width: 30px;
	height: 3px;
	background-color: var(--text-color);
	border-radius: 5px;
	transition: all 0.3s ease-in-out;
}

/* --- Hero Section --- */
#hero,
#about-hero {
	/* background: url('../img/hero_background.png') no-repeat center center/cover; */
	color: #fff;
	text-align: center;
	padding: 100px 0;
	position: relative;
}

#hero::before,
#about-hero::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 41, 102, 0.7);
	z-index: 1;
}

#hero .container,
#about-hero .container {
	position: relative;
	z-index: 2;
}

#hero h1,
#about-hero h1 {
	font-size: 3.5rem;
}

#hero p,
#about-hero p {
	font-size: 1.2rem;
	max-width: 600px;
	margin: 1rem auto 2rem;
}

/* --- Features Section --- */
#features {
	background-color: var(--light-gray);
}

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

.card {
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	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 {
	height: 180px;
	width: 100%;
	object-fit: cover;
	border-radius: 5px;
	margin-bottom: 1.5rem;
}

.card h3 {
	margin-bottom: 0.5rem;
	font-size: 1.3rem;
	color: var(--primary-color);
}

/* --- Content Split Section --- */
.content-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 50px;
	align-items: center;
}

.content-split.reverse {
	grid-template-areas: 'image text';
}

.content-split.reverse .content-text {
	grid-area: text;
}
.content-split.reverse .content-image {
	grid-area: image;
}

.content-text h2 {
	text-align: left;
}

.content-image img {
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- FAQ Section --- */
#faq {
	background-color: var(--light-gray);
}

.faq-container {
	max-width: 800px;
	margin: 0 auto;
}

.faq-item {
	background: #fff;
	margin-bottom: 10px;
	border-radius: 5px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
	padding: 15px 20px;
	font-weight: bold;
	cursor: pointer;
	position: relative;
	color: var(--primary-color);
}

.faq-question::after {
	content: '+';
	position: absolute;
	right: 20px;
	font-size: 1.5rem;
	transition: transform 0.3s ease;
}

.faq-item.active .faq-question::after {
	transform: rotate(45deg);
}

.faq-answer {
	max-height: 0;
	overflow: hidden;
	padding: 0 20px;
	background: #fff;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	border-bottom-left-radius: 5px;
	border-bottom-right-radius: 5px;
}

.faq-item.active .faq-answer {
	padding: 15px 20px;
}

/* --- Contact Section --- */
#contact-form {
	max-width: 600px;
	margin: 0 auto;
	background: #fff;
	padding: 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.form-group {
	margin-bottom: 1.5rem;
}

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

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-family: inherit;
	font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

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

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

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

#contact-form button {
	width: 100%;
	border: none;
	cursor: pointer;
}

#form-status {
	margin-top: 1rem;
	text-align: center;
	font-weight: bold;
}

/* --- Footer --- */
footer {
	background-color: #091e42;
	color: #fff;
	padding: 40px 0 20px;
}

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

.footer-info,
.footer-links {
	flex: 1;
	min-width: 250px;
}

.footer-info h3,
.footer-links h3 {
	margin-bottom: 1rem;
	color: var(--light-gray);
}

.footer-info p,
.footer-info a {
	color: var(--border-color);
}

.footer-info a:hover {
	color: #fff;
}

.footer-links ul {
	list-style: none;
}

.footer-links ul li {
	margin-bottom: 10px;
}

.footer-links ul li a {
	color: var(--border-color);
	transition: color 0.3s ease;
}

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

.footer-bottom {
	text-align: center;
	border-top: 1px solid var(--dark-gray);
	padding-top: 20px;
	color: var(--dark-gray);
}

/* --- Legal Pages --- */
.legal-page {
	padding: 60px 0;
}

.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	border-bottom: 2px solid var(--light-gray);
	padding-bottom: 1rem;
}

.legal-page h2 {
	text-align: left;
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
}

.legal-page p,
.legal-page li {
	margin-bottom: 1rem;
}

/* --- Cookie Banner --- */
#cookie-consent-banner {
	position: fixed;
	bottom: -100%;
	left: 0;
	width: 100%;
	background: #253858;
	color: white;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
	transition: bottom 0.5s ease-in-out;
	z-index: 2000;
}

#cookie-consent-banner.show {
	bottom: 0;
}

.cookie-content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	max-width: 1100px;
	margin: 0 auto;
	flex-wrap: wrap;
	gap: 15px;
}

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

#cookie-accept {
	background: var(--primary-color);
	color: #fff;
	margin-right: 10px;
}

#cookie-decline {
	background: var(--dark-gray);
	color: #fff;
}

/* --- Modal Styles --- */
.modal {
	display: none;
	position: fixed;
	z-index: 3000;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

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

.spinner {
	border: 4px solid #f3f3f3;
	border-top: 4px solid var(--primary-color);
	border-radius: 50%;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 1rem;
}

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

.modal h3 {
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.modal p {
	color: var(--text-color);
	margin-bottom: 0;
}

/* --- Mobile Menu & Responsive Nav --- */
body.nav-open {
	overflow: hidden; /* Prevent scrolling when mobile menu is open */
}

@media (max-width: 768px) {
	.hamburger-button {
		display: flex;
	}

	.nav-links {
		display: none;
		flex-direction: column;
		justify-content: center;
		align-items: center;
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--background-color);
		z-index: 1005;
	}

	.nav-links.active {
		display: flex;
	}

	.nav-links ul {
		flex-direction: column;
		align-items: center;
	}

	.nav-links ul li {
		margin: 20px 0;
	}

	.nav-links ul li a {
		font-size: 1.8rem;
		color: var(--primary-color);
	}

	header.nav-open .hamburger-line {
		background-color: var(--text-color);
	}

	header.nav-open .hamburger-line:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	header.nav-open .hamburger-line:nth-child(2) {
		opacity: 0;
	}

	header.nav-open .hamburger-line:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}
}

/* --- Responsive Design --- */
@media (max-width: 768px) {
	h1 {
		font-size: 2.2rem;
	}

	#hero h1,
	#about-hero h1 {
		font-size: 2.5rem;
	}

	h2 {
		font-size: 1.8rem;
	}

	.content-split {
		grid-template-columns: 1fr;
	}

	.content-split.reverse {
		grid-template-areas: 'text' 'image';
	}

	.content-text h2 {
		text-align: center;
	}
	.content-text {
		text-align: center;
	}
	.content-image {
		margin-top: 20px;
	}

	.footer-content {
		flex-direction: column;
		text-align: center;
	}

	.cookie-content {
		flex-direction: column;
		text-align: center;
	}

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