/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Manrope:wght@600;700&display=swap');

/* --- CSS Variables --- */
:root {
	--font-heading: 'Manrope', sans-serif;
	--font-body: 'Inter', sans-serif;

	--color-dark: #1a202c;
	--color-primary: #4a90e2;
	--color-light: #f7fafc;
	--color-gray: #a0aec0;
	--color-white: #ffffff;
	--color-border: #e2e8f0;

	--header-height: 80px;
}

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

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: inherit;
}

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

h1,
h2,
h3 {
	font-family: var(--font-heading);
	line-height: 1.2;
}

/* --- Utility Classes --- */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1.5rem;
	padding-right: 1.5rem;
}

.button {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	background-color: var(--color-primary);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: 600;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	text-align: center;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 15px rgba(74, 144, 226, 0.4);
}

/* --- Logo --- */
.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--color-dark);
}

.footer .logo {
	color: var(--color-white);
}

/* --- Header --- */
.header {
	background-color: var(--color-white);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.header__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	height: 100%;
}

.header__nav {
	display: none;
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	font-weight: 500;
	color: var(--color-dark);
	transition: color 0.2s ease;
}

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

.header__cta-button {
	display: none;
}

.header__burger-button {
	background: none;
	border: none;
	cursor: pointer;
	color: var(--color-dark);
	display: block;
}

/* Header Mobile Nav (Toggled by JS) */
.header__nav--mobile {
	display: block;
	position: absolute;
	top: var(--header-height);
	left: 0;
	width: 100%;
	background-color: var(--color-white);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	padding: 1rem 0;
	transform: translateY(-120%);
	transition: transform 0.3s ease-in-out;
}

.header__nav--mobile.active {
	transform: translateY(0);
}

.header__nav--mobile .header__nav-list {
	flex-direction: column;
	align-items: center;
	gap: 1.5rem;
}

.header__nav--mobile .header__cta-button {
	display: block;
	margin-top: 1rem;
}

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

.footer__grid {
	display: grid;
	gap: 2rem;
}

.footer__column--about .logo {
	margin-bottom: 1rem;
}

.footer__text {
	font-size: 0.9rem;
	line-height: 1.5;
}

.footer__heading {
	color: var(--color-white);
	font-size: 1.1rem;
	margin-bottom: 1rem;
}

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

.footer__link {
	transition: color 0.2s ease;
}

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

/* --- Main content placeholder --- */
.main {
	padding-top: var(--header-height);
	min-height: 100vh;
}

/* --- Media Queries (Mobile-First) --- */

/* Tablet */
@media (min-width: 768px) {
	.footer__grid {
		grid-template-columns: repeat(2, 1fr);
		gap: 3rem;
	}
}

/* Desktop */
@media (min-width: 1024px) {
	.header__nav {
		display: block;
	}

	.header__cta-button {
		display: inline-block;
	}

	.header__burger-button {
		display: none;
	}

	.footer__grid {
		grid-template-columns: 2fr 1fr 1fr 1fr;
	}
}

/* --- Hero Section --- */
.hero {
	padding: 4rem 0;
	overflow: hidden; /* Prevents scrollbars during animation */
}

.hero__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 2rem;
}

.hero__content > * {
	/* Initial state for JS animation */
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

/* Staggered animation delay handled by JS */
.hero__content > *.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.hero__title {
	font-size: 1.5rem;
	color: var(--color-dark);
	margin-bottom: 1rem;
}

.hero__description {
	font-size: 1.125rem;
	color: var(--color-gray);
	max-width: 600px;
	margin-bottom: 2rem;
}

.hero__visual {
	animation: float 6s ease-in-out infinite;
}

.hero__image {
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Animation for the image */
@keyframes float {
	0% {
		transform: translateY(0px);
	}
	50% {
		transform: translateY(-20px);
	}
	100% {
		transform: translateY(0px);
	}
}

/* --- Media Queries --- */
@media (min-width: 768px) {
	.hero {
		padding: 6rem 0;
	}

	.hero__title {
		font-size: 2.5rem;
	}
}

@media (min-width: 1024px) {
	.hero__container {
		flex-direction: row;
		text-align: left;
		gap: 4rem;
	}

	.hero__content {
		flex: 1;
	}

	.hero__visual {
		flex: 1;
	}
}

/* --- Features Section --- */
.features {
	padding: 4rem 0;
	background-color: var(--color-white);
}

.features__intro {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

.features__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

.features__subtitle {
	font-size: 1.1rem;
	color: var(--color-gray);
}

.features__grid {
	display: grid;
	gap: 1.5rem;
}

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

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

.features__card-icon {
	display: inline-flex;
	padding: 1rem;
	background-color: var(--color-primary);
	color: var(--color-white);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.features__card-icon i {
	width: 32px;
	height: 32px;
}

.features__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.features__card-text {
	color: var(--color-gray);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
	.features {
		padding: 6rem 0;
	}

	.features__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.features__grid {
		grid-template-columns: repeat(3, 1fr);
		gap: 2rem;
	}
}

/* --- About Section --- */
.about {
	padding: 4rem 0;
}

.about__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.about__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

.about__description {
	font-size: 1.1rem;
	color: var(--color-gray);
	margin-bottom: 2.5rem;
}

.about__steps {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

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

.about__step-icon {
	flex-shrink: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 50px;
	height: 50px;
	background-color: rgba(74, 144, 226, 0.1);
	color: var(--color-primary);
	border-radius: 50%;
}

.about__step-icon i {
	width: 24px;
	height: 24px;
}

.about__step-title {
	font-size: 1.2rem;
	margin-bottom: 0.5rem;
}

.about__step-text {
	color: var(--color-gray);
	line-height: 1.5;
}

.about__visual {
	margin: 0 auto;
}

.about__image {
	max-width: 450px;
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
	.about {
		padding: 6rem 0;
	}
}

@media (min-width: 1024px) {
	.about__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 5rem;
	}
}

/* --- Benefits (Accordion) Section --- */
.benefits {
	padding: 4rem 0;
	background-color: var(--color-white);
}

.benefits__intro {
	text-align: center;
	max-width: 700px;
	margin: 0 auto 3rem;
}

.benefits__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

.benefits__subtitle {
	font-size: 1.1rem;
	color: var(--color-gray);
}

.benefits__accordion {
	max-width: 800px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.accordion__item {
	border: 1px solid var(--color-border);
	border-radius: 12px;
	overflow: hidden;
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	width: 100%;
	padding: 1.5rem;
	background-color: transparent;
	border: none;
	cursor: pointer;
	text-align: left;
	font-family: var(--font-heading);
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--color-dark);
}

.accordion__icon {
	flex-shrink: 0;
	transition: transform 0.3s ease;
}

.accordion__item.active .accordion__icon {
	transform: rotate(180deg);
}

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

.accordion__item.active .accordion__content {
	max-height: 200px; /* Adjust if content is taller */
}

.accordion__text {
	padding: 0 1.5rem 1.5rem;
	color: var(--color-gray);
	line-height: 1.7;
}
.accordion__text strong {
	color: var(--color-dark);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
	.benefits {
		padding: 6rem 0;
	}
}

/* --- CTA Section --- */
.cta {
	padding: 5rem 0;
	background-color: var(--color-primary);
	color: var(--color-white);
}

.cta__container {
	text-align: center;
	max-width: 700px;
}

.cta__title {
	font-size: 2.5rem;
	margin-bottom: 1rem;
	line-height: 1.3;
}

.cta__text {
	font-size: 1.1rem;
	opacity: 0.9;
	margin-bottom: 2.5rem;
}

.cta__button {
	background-color: var(--color-white);
	color: var(--color-primary);
	padding: 1rem 2.5rem;
	font-size: 1.1rem;
}

.cta__button:hover {
	background-color: var(--color-light);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* --- Media Queries --- */
@media (min-width: 768px) {
	.cta {
		padding: 6rem 0;
	}
}

/* --- Contact Section --- */
.contact {
	padding: 4rem 0;
}

.contact__container {
	display: grid;
	gap: 3rem;
	align-items: center;
}

.contact__title {
	font-size: 2.25rem;
	margin-bottom: 1rem;
}

.contact__text {
	font-size: 1.1rem;
	color: var(--color-gray);
	margin-bottom: 2rem;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.contact__detail-item {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--color-dark);
	font-weight: 500;
	transition: color 0.2s ease;
}

.contact__detail-item:hover {
	color: var(--color-primary);
}

.contact__form {
	background-color: var(--color-white);
	padding: 2.5rem;
	border-radius: 16px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form__group {
	display: flex;
	flex-direction: column;
}

.form__label {
	font-weight: 500;
	margin-bottom: 0.5rem;
	font-size: 0.9rem;
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--color-border);
	border-radius: 8px;
	font-size: 1rem;
	font-family: var(--font-body);
}

.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 {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.form__checkbox {
	margin-top: 4px;
	flex-shrink: 0;
}

.form__checkbox-label {
	font-size: 0.9rem;
	color: var(--color-gray);
	line-height: 1.4;
}
.form__checkbox-label a {
	color: var(--color-primary);
	text-decoration: underline;
}

.form__submit-button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
}

.form__success-message {
	display: none; /* Hidden by default */
	align-items: center;
	gap: 0.75rem;
	padding: 1rem;
	border-radius: 8px;
	background-color: #e6fffa; /* Light green */
	color: #234e52; /* Dark green */
	border: 1px solid #38b2ac; /* Green */
}

.form__success-message.show {
	display: flex; /* Shown with JS */
}

/* --- Media Queries --- */
@media (min-width: 1024px) {
	.contact__container {
		grid-template-columns: repeat(2, 1fr);
		gap: 5rem;
	}
}

/* --- Cookie Pop-up --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden below the screen */
	left: 0;
	width: 100%;
	background-color: var(--color-dark);
	color: var(--color-white);
	padding: 1.5rem;
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
	z-index: 200;

	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0; /* Slides into view */
}

.cookie-popup__text {
	font-size: 0.9rem;
	max-width: 600px;
}

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

.cookie-popup__button {
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 0.6rem 1.2rem;
	flex-shrink: 0;
}

@media (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: center;
		text-align: left;
		padding: 1rem 1.5rem;
	}
}

/* --- Policy & Static Pages Styling --- */
.pages {
	padding-top: calc(
		var(--header-height) + 4rem
	); /* Header height + extra space */
	padding-bottom: 4rem;
	background-color: var(--color-white);
}

.pages .container {
	max-width: 800px; /* Narrower container for better readability */
}

.pages h1,
.pages h2 {
	color: var(--color-dark);
}

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

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

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--color-dark);
	margin-bottom: 1.25rem;
}

.pages ul {
	list-style: disc;
	padding-left: 25px;
	margin-bottom: 1.25rem;
}

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--color-dark);
	margin-bottom: 0.75rem;
}

.pages a {
	color: var(--color-primary);
	font-weight: 500;
	text-decoration: underline;
}

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

.pages strong {
	font-weight: 600;
}
