/* GLOBAL STYLES & SETUP */
/* =================================== */

:root {
	--font-primary: 'Inter', sans-serif;
	--font-headings: 'Space Grotesk', sans-serif;

	--color-bg: #f8f9fa;
	--color-text: #141e30;
	--color-primary: #4a90e2;
	--color-primary-hover: #357abd;
	--color-border: #e9ecef;
	--color-white: #ffffff;

	--container-width: 1200px;
	--container-padding: 1.5rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.6;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-headings);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 1rem;
}

a {
	color: var(--color-primary);
	text-decoration: none;
	transition: color 0.3s ease;
}

a:hover {
	color: var(--color-primary-hover);
}

ul {
	list-style: none;
}

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

/* HEADER */
/* =================================== */
.header {
	background-color: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	padding: 1rem var(--container-padding);
	position: sticky;
	top: 0;
	z-index: 100;
}

.header__container {
	max-width: var(--container-width);
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-headings);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--color-text);
}

.logo:hover {
	color: var(--color-text);
}

.logo__img {
	width: 32px;
	height: 32px;
}

.nav__list {
	display: flex;
	gap: 2rem;
}

.nav__link {
	color: var(--color-text);
	font-weight: 500;
	position: relative;
	padding-bottom: 0.5rem;
}

.nav__link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 0;
	width: 0;
	height: 2px;
	background-color: var(--color-primary);
	transition: width 0.3s ease;
}

.nav__link:hover::after {
	width: 100%;
}

.header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-text);
	padding: 0.5rem;
	border-radius: 4px;
	transition: background-color 0.3s ease;
	position: relative;
	z-index: 1001;
}

.header__burger:hover {
	background-color: rgba(74, 144, 226, 0.1);
}

.header__burger i {
	width: 24px;
	height: 24px;
	transition: transform 0.3s ease;
}

/* Mobile Nav Styles */
@media (max-width: 992px) {
	.nav {
		position: fixed;
		top: 0;
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: var(--color-white);
		z-index: 1000;
		display: flex;
		align-items: center;
		justify-content: center;
		transform: translateX(-100%);
		transition: transform 0.3s ease;
		padding: 2rem;
		box-sizing: border-box;
	}

	.nav--open {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		gap: 2rem;
		text-align: center;
		width: 100%;
	}

	.nav__item {
		width: 100%;
	}

	.nav__link {
		display: block;
		padding: 1rem 2rem;
		font-size: 1.2rem;
		font-weight: 500;
		border-radius: 8px;
		transition: all 0.3s ease;
		position: relative;
	}

	.nav__link:hover {
		background-color: rgba(74, 144, 226, 0.1);
		color: var(--color-primary);
	}

	.nav__link::after {
		display: none;
	}

	.header__burger {
		display: block;
	}

	/* Prevent body scroll when menu is open */
	body.menu-open {
		overflow: hidden;
	}
}

/* FOOTER */
/* =================================== */
.footer {
	background-color: var(--color-text);
	color: var(--color-bg);
	padding: 4rem var(--container-padding) 1.5rem;
}

.footer__container {
	max-width: var(--container-width);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2.5rem;
	margin-bottom: 3rem;
}

.footer__column--about .footer__logo {
	color: var(--color-white);
	margin-bottom: 1rem;
}

.footer__tagline {
	font-size: 0.9rem;
	opacity: 0.8;
}

.footer__title {
	font-size: 1.1rem;
	font-weight: 500;
	margin-bottom: 1.5rem;
	color: var(--color-white);
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 0.8rem;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__icon {
	width: 18px;
	height: 18px;
	flex-shrink: 0;
	opacity: 0.8;
}

.footer__link,
.footer__text {
	color: var(--color-bg);
	font-size: 0.9rem;
	opacity: 0.8;
	transition: opacity 0.3s ease;
}

.footer__link:hover {
	color: var(--color-white);
	opacity: 1;
}

.footer__bottom {
	max-width: var(--container-width);
	margin: 0 auto;
	padding-top: 1.5rem;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	text-align: center;
	font-size: 0.85rem;
	opacity: 0.7;
}

/* BUTTON */
/* =================================== */
.button {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 0.9rem 2.2rem;
	border-radius: 8px;
	font-family: var(--font-headings);
	font-weight: 500;
	font-size: 1rem;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
	border: 2px solid transparent;
}

.button:hover {
	background-color: var(--color-primary-hover);
	color: var(--color-white);
	transform: translateY(-3px);
}

/* HERO SECTION */
/* =================================== */
.hero {
	position: relative;
	height: 90vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	overflow: hidden;
	padding: 0 var(--container-padding);
}

.hero__canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.hero__container {
	position: relative;
	z-index: 2;
	max-width: 800px;
}

.hero__title {
	font-size: 3.5rem;
	font-weight: 700;
	margin-bottom: 1.5rem;
	color: var(--color-text);
	line-height: 1.1;
}

.hero__subtitle {
	font-size: 1.25rem;
	margin-bottom: 2.5rem;
	color: var(--color-text);
	opacity: 0.9;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

/* Responsive for Hero */
@media (max-width: 768px) {
	.hero {
		height: 80vh;
		min-height: 500px;
	}

	.hero__title {
		font-size: 2.5rem;
	}

	.hero__subtitle {
		font-size: 1.1rem;
	}
}

/* SHARED STYLES */
/* =================================== */
.section {
	padding: 5rem var(--container-padding);
}

.container {
	max-width: var(--container-width);
	margin: 0 auto;
}

.section-header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 3.5rem;
}

.section-header__title {
	font-size: 2.8rem;
	margin-bottom: 1rem;
}

.section-header__subtitle {
	font-size: 1.1rem;
	line-height: 1.6;
	opacity: 0.8;
}

@media (max-width: 768px) {
	.section {
		padding: 4rem var(--container-padding);
	}
	.section-header__title {
		font-size: 2.2rem;
	}
}

/* PLATFORM SECTION */
/* =================================== */
.platform {
	background-color: var(--color-white);
}

.platform__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
}

.platform__card {
	border: 1px solid var(--color-border);
	border-radius: 12px;
	padding: 2.5rem 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.platform__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(20, 30, 48, 0.08);
}

.platform__card-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	background-color: var(--color-bg);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.platform__card-icon i {
	width: 32px;
	height: 32px;
	color: var(--color-primary);
}

.platform__card-title {
	font-size: 1.4rem;
	margin-bottom: 0.75rem;
}

.platform__card-text {
	font-size: 1rem;
	line-height: 1.7;
	opacity: 0.8;
}

/* Responsive for Platform Section */
@media (max-width: 992px) {
	.platform__grid {
		grid-template-columns: 1fr;
	}
}

/* FEATURES SECTION */
/* =================================== */
.features {
	background-color: var(--color-bg);
}

.features__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.features__image-wrapper {
	width: 100%;
	height: 100%;
}

.features__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: 12px;
}

.features__list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.features__list-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.features__list-icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: var(--color-primary);
	margin-top: 4px;
}

.features__list-title {
	font-family: var(--font-headings);
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.features__list-text {
	opacity: 0.8;
	line-height: 1.6;
}

/* Responsive for Features Section */
@media (max-width: 992px) {
	.features__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* PROCESS SECTION */
/* =================================== */
.process {
	background-color: var(--color-white);
}

.process__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	position: relative;
}

.process__step {
	background-color: var(--color-bg);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid var(--color-border);
}

.process__step-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1.5rem;
}

.process__step-icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 50px;
	height: 50px;
	background-color: var(--color-white);
	border: 1px solid var(--color-border);
	border-radius: 50%;
}

.process__step-icon i {
	width: 24px;
	height: 24px;
	color: var(--color-primary);
}

.process__step-number {
	font-family: var(--font-headings);
	font-size: 3rem;
	font-weight: 700;
	color: var(--color-text);
	opacity: 0.1;
}

.process__step-title {
	font-size: 1.4rem;
	margin-bottom: 0.75rem;
}

.process__step-text {
	opacity: 0.8;
}

/* Decorative connecting line */
.process__step:not(:last-child) {
	position: relative;
}

.process__step:not(:last-child)::after {
	content: '';
	position: absolute;
	top: 55px; /* Vertically center with the icon */
	right: -2.5rem;
	width: 3rem;
	height: 2px;
	background-image: linear-gradient(
		to right,
		var(--color-border) 50%,
		transparent 50%
	);
	background-size: 8px 2px;
	background-repeat: repeat-x;
}

/* Responsive for Process Section */
@media (max-width: 992px) {
	.process__grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}
	.process__step:not(:last-child)::after {
		display: none; /* Hide connecting line on mobile */
	}
}

/* FAQ SECTION */
/* =================================== */
.faq {
	background-color: var(--color-bg);
}

.faq__accordion {
	max-width: 800px;
	margin: 0 auto;
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--color-white);
}

.faq__item {
	border-bottom: 1px solid var(--color-border);
}

.faq__item:last-child {
	border-bottom: none;
}

.faq__question {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem;
	background: none;
	border: none;
	text-align: left;
	font-family: var(--font-headings);
	font-size: 1.2rem;
	font-weight: 500;
	cursor: pointer;
	color: var(--color-text);
}

.faq__question span {
	flex-grow: 1;
	padding-right: 1rem;
}

.faq__icon {
	width: 24px;
	height: 24px;
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.faq__answer {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq__answer p {
	padding: 0 1.5rem 1.5rem;
	line-height: 1.7;
	opacity: 0.8;
}

/* Active State for Accordion */
.faq__item.faq__item--active .faq__answer {
	max-height: 200px; /* Adjust if answers are longer */
}

.faq__item.faq__item--active .faq__icon {
	transform: rotate(180deg);
}

/* CONTACT SECTION */
/* =================================== */
.contact {
	background-color: var(--color-white);
}

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	align-items: center;
}

.contact__details {
	list-style: none;
	padding: 0;
	margin-top: 2rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact__details li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

/* Re-using footer styles for consistency */
.contact__details .footer__icon {
	color: var(--color-primary);
	opacity: 1;
}
.contact__details .footer__link {
	color: var(--color-text);
	opacity: 0.8;
}
.contact__details .footer__link:hover {
	color: var(--color-primary);
}

.contact__form-wrapper {
	background-color: var(--color-bg);
	padding: 3rem;
	border-radius: 12px;
	border: 1px solid var(--color-border);
}

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

.form-label {
	display: block;
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.form-input {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 1rem;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-primary);
	box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	font-size: 0.9rem;
	margin-top: 1rem;
}

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

.form-group--checkbox label {
	margin-bottom: 0;
	opacity: 0.8;
}

.contact__button {
	width: 100%;
	margin-top: 1rem;
}

.success-message {
	text-align: center;
	padding: 2rem;
}
.success-message h3 {
	font-size: 1.8rem;
	color: var(--color-primary);
	margin-bottom: 1rem;
}

/* Responsive for Contact Section */
@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__form-wrapper {
		padding: 2rem;
	}
}

/* COOKIE POP-UP */
/* =================================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--color-text);
	color: var(--color-white);
	padding: 1.5rem 2rem;
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 1.5rem;
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
	z-index: 200;
}

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

.cookie-popup__text {
	margin: 0;
	font-size: 0.9rem;
	opacity: 0.9;
}

.cookie-popup__text a {
	color: var(--color-white);
	text-decoration: underline;
}
.cookie-popup__text a:hover {
	text-decoration: none;
}

.cookie-popup__button {
	background-color: var(--color-primary);
	color: var(--color-white);
	border: none;
	padding: 0.7rem 1.5rem;
	border-radius: 8px;
	cursor: pointer;
	font-family: var(--font-primary);
	font-weight: 500;
	flex-shrink: 0;
	transition: background-color 0.3s ease;
}

.cookie-popup__button:hover {
	background-color: var(--color-primary-hover);
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		padding: 1.5rem;
	}
}

/* POLICY PAGES STYLES */
/* =================================== */
.pages .container {
	max-width: 800px;
	padding-top: 4rem;
	padding-bottom: 4rem;
	padding-inline: 2rem;
}

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
}

.pages h2 {
	font-size: 1.5rem;
	margin-top: 2.5rem;
	margin-bottom: 1.5rem;
}

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
	opacity: 0.9;
}

.pages ul {
	list-style: disc;
	padding-left: 2rem;
	margin-bottom: 1.5rem;
}

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 0.75rem;
}

.pages strong {
	font-weight: 700;
}

.pages a {
	text-decoration: underline;
}

.pages a:hover {
	text-decoration: none;
}
