/* --- Global Styles & Variables --- */
:root {
	--primary-color: #0066ff;
	--secondary-color: #f4f4f4;
	--dark-color: #333;
	--light-color: #fff;
	--text-color: #555;
	--font-family: 'Poppins', sans-serif;
	--header-height: 80px;
}

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

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

h1,
h2,
h3,
h4 {
	font-weight: 600;
	color: var(--dark-color);
	line-height: 1.2;
}

h1 {
	font-size: 3rem;
	margin-bottom: 1rem;
}
h2 {
	font-size: 2.5rem;
	margin-bottom: 1rem;
}
h3 {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

p {
	margin-bottom: 1rem;
}

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

ul {
	list-style: none;
}

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

.btn {
	display: inline-block;
	padding: 0.8rem 1.8rem;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-size: 1rem;
	font-weight: 600;
	transition: background-color 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.btn-primary {
	background-color: var(--primary-color);
	color: var(--light-color);
}

.btn-primary:hover {
	background-color: #0052cc;
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: #ccc;
	color: var(--dark-color);
}

.btn-secondary:hover {
	background-color: #bbb;
}

.responsive-img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.text-center {
	text-align: center;
}
.subtitle {
	font-size: 1.1rem;
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* --- Header & Navigation --- */
.main-header {
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	height: var(--header-height);
	display: flex;
	align-items: center;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.navbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 2rem;
}

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

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

.nav-menu {
	display: flex;
	align-items: center;
}

.nav-item {
	margin-left: 2rem;
}

.nav-link {
	color: var(--text-color);
	font-weight: 600;
	transition: color 0.3s ease;
}

.nav-link:hover {
	color: var(--primary-color);
}

.cta-button {
	background-color: var(--primary-color);
	color: var(--light-color);
	padding: 0.5rem 1rem;
	border-radius: 5px;
}

.cta-button:hover {
	color: var(--light-color);
	background-color: #0052cc;
}

.hamburger {
	display: none;
	cursor: pointer;
}

.bar {
	display: block;
	width: 25px;
	height: 3px;
	margin: 5px auto;
	-webkit-transition: all 0.3s ease-in-out;
	transition: all 0.3s ease-in-out;
	background-color: var(--dark-color);
}

/* --- Section Styling --- */
main {
	padding-top: var(--header-height);
}

.content-section {
	padding: 6rem 0;
}

.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);
}

.hero-section {
	height: 100vh;
	min-height: 600px;
	background-image: linear-gradient(
			103deg,
			rgba(18, 18, 17, 0.78) 2.03%,
			rgba(18, 18, 17, 0.6) 58.46%,
			rgba(18, 18, 17, 0) 90.36%
		),
		url('../img/h1.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	color: var(--light-color);
	padding: 0 2rem;
}

.hero-content {
	padding: 0 10px;
	max-width: 800px;
}

.hero-content h1 {
	color: var(--light-color);
	font-size: 3rem;
}

.hero-content p {
	font-size: 1.2rem;
	margin-bottom: 2rem;
}

.text-only-section {
	background-color: var(--secondary-color);
}

.text-only-section .container {
	max-width: 800px;
	text-align: center;
}

/* Cards Grid */
.cards-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	margin-top: 3rem;
}

.card {
	background: var(--light-color);
	border-radius: 10px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	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%;
	height: 200px;
	object-fit: cover;
}

.card-content {
	padding: 1.5rem;
}

/* Grid Layout */
.grid-2-col {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

/* FAQ Section */
.faq-section {
	background-color: var(--secondary-color);
}
.faq-container {
	max-width: 700px;
	margin: 2rem auto 0;
}
.faq-item {
	border-bottom: 1px solid #ddd;
}
.faq-question {
	width: 100%;
	background: none;
	border: none;
	padding: 1.5rem 0;
	text-align: left;
	font-size: 1.2rem;
	font-weight: 600;
	cursor: pointer;
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--dark-color);
}
.faq-icon {
	font-size: 1.5rem;
	font-weight: 400;
	transition: transform 0.3s ease;
}
.faq-answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}
.faq-answer p {
	padding: 0 0 1.5rem;
	margin: 0;
}
.faq-item.active .faq-answer {
	max-height: 300px; /* Adjust as needed */
}
.faq-item.active .faq-icon {
	transform: rotate(45deg);
}

/* Contact Section */
.contact-section {
	background-color: var(--light-color);
}
.contact-form .form-group {
	margin-bottom: 1.5rem;
}
.contact-form label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}
.contact-form input,
.contact-form textarea {
	width: 100%;
	padding: 0.8rem;
	border: 1px solid #ccc;
	border-radius: 5px;
	font-family: var(--font-family);
	font-size: 1rem;
}
.contact-form textarea {
	resize: vertical;
}
.contact-form .form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.contact-form .form-group-checkbox input[type='checkbox'] {
	width: auto;
	accent-color: var(--primary-color);
}
.contact-form .form-group-checkbox label {
	margin-bottom: 0;
	font-weight: 400;
	font-size: 0.9rem;
}
.form-status {
	margin-top: 1rem;
	font-weight: 600;
}
.form-status.success {
	color: #28a745;
}
.form-status.error {
	color: #dc3545;
}

/* --- Modal --- */
.modal-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.6);
	display: none; /* Initially hidden, controlled by JS */
	justify-content: center;
	align-items: center;
	z-index: 3000;
	opacity: 0;
	transition: opacity 0.3s ease;
}

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

.modal-content {
	background: var(--light-color);
	padding: 2.5rem 3.5rem;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	transform: scale(0.9);
	transition: transform 0.3s ease;
	min-width: 280px;
}

.modal-overlay.show .modal-content {
	transform: scale(1);
}

.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border-left-color: var(--primary-color);
	margin: 0 auto 1rem;
	animation: spin 1s ease infinite;
}

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

#modal-loading-state p,
#modal-success-state p {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--dark-color);
	margin: 0;
}

#modal-success-state {
	display: none; /* Controlled by JS */
	align-items: center;
	flex-direction: column;
}

.success-icon {
	width: 50px;
	height: 50px;
	margin-bottom: 1rem;
}

.success-icon .circle {
	stroke-dasharray: 1000;
	stroke-dashoffset: 1000;
	animation: draw-circle 0.8s ease-in-out forwards;
	fill: none;
	stroke: #28a745;
	stroke-width: 4;
}

.success-icon .checkmark {
	stroke-dasharray: 100;
	stroke-dashoffset: 100;
	animation: draw-checkmark 0.5s 0.5s ease-in-out forwards;
	fill: none;
	stroke: #28a745;
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@keyframes draw-circle {
	to {
		stroke-dashoffset: 0;
	}
}

@keyframes draw-checkmark {
	to {
		stroke-dashoffset: 0;
	}
}

/* Legal Page */
.legal-page {
	padding: 6rem 0;
}
.legal-page .container {
	max-width: 800px;
}
.legal-page h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}
.legal-page h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
}
.legal-page p,
.legal-page ul li {
	margin-bottom: 1rem;
	margin-bottom: 1rem;
}
.legal-page ul {
	list-style: disc;
	padding-left: 1.5rem;
}

/* --- Footer --- */
.main-footer {
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 4rem 0 2rem;
}

.footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr;
	gap: 3rem;
	margin-bottom: 3rem;
}

.footer-col h4 {
	color: var(--light-color);
	margin-bottom: 1rem;
	font-size: 1.2rem;
}

.footer-col p,
.footer-col a {
	color: #ccc;
	transition: color 0.3s ease;
}

.footer-col a:hover {
	color: var(--light-color);
}

.footer-col ul li {
	margin-bottom: 0.5rem;
}

.footer-bottom {
	text-align: center;
	border-top: 1px solid #555;
	padding-top: 2rem;
	color: #ccc;
}

/* --- Cookie Consent Banner --- */
.cookie-consent-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--dark-color);
	color: var(--light-color);
	padding: 1.5rem 2rem;
	display: flex;
	justify-content: space-between;
	align-items: center;
	z-index: 2000;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

.cookie-consent-banner.show {
	transform: translateY(0);
}

.cookie-consent-banner p {
	margin: 0;
	margin-right: 2rem;
}

.cookie-consent-banner a {
	color: var(--light-color);
	text-decoration: underline;
}

.cookie-buttons {
	display: flex;
	gap: 1rem;
	flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 992px) {
	.cards-grid {
		grid-template-columns: 1fr 1fr;
	}
	.grid-2-col {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.grid-2-col > .grid-item:first-child {
		order: 2; /* Puts text below image on mobile for contact page */
	}
	#contact .grid-2-col > .grid-item:first-child {
		order: 1; /* But keep image first on contact page */
	}
	.footer-grid {
		grid-template-columns: 1fr;
	}
	.hero-content h1 {
		font-size: 2rem;
	}
}

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

	.hamburger {
		display: block;
	}

	.hamburger.active .bar:nth-child(2) {
		opacity: 0;
	}

	.hamburger.active .bar:nth-child(1) {
		transform: translateY(8px) rotate(45deg);
	}

	.hamburger.active .bar:nth-child(3) {
		transform: translateY(-8px) rotate(-45deg);
	}

	.nav-menu {
		position: fixed;
		left: -100%;
		top: var(--header-height);
		flex-direction: column;
		background-color: var(--light-color);
		width: 100%;
		text-align: center;
		transition: 0.3s;
		box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
	}

	.nav-menu.active {
		left: 0;
	}

	.nav-item {
		margin: 1.5rem 0;
	}

	.navbar {
		padding: 0 2rem; /* Revert padding */
	}

	main {
		padding-top: var(--header-height); /* Revert padding */
	}

	.cards-grid {
		grid-template-columns: 1fr;
	}

	.hero-section {
		min-height: 500px;
		height: auto;
		padding: 8rem 2rem;
	}

	.content-section {
		padding: 4rem 0;
	}

	.cookie-consent-banner {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem;
	}
	.cookie-consent-banner p {
		margin: 0 0 1rem 0;
	}
}
