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

/* CSS Variables */
:root {
	--header-height: 5rem;

	/* Colors */
	--primary-color: #4f46e5;
	--primary-color-alt: #4338ca;
	--background-color: #ffffff;
	--text-color: #111827;
	--text-color-light: #6b7280;
	--container-color: #f9fafb;
	--footer-bg-color: #1f2937;
	--footer-text-color: #d1d5db;

	/* Fonts */
	--body-font: 'Roboto', sans-serif;
	--title-font: 'Montserrat', sans-serif;

	--h1-font-size: 2.25rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	background-color: var(--background-color);
	color: var(--text-color);
	transition: background-color 0.3s;
}

h1,
h2,
h3 {
	font-family: var(--title-font);
	font-weight: 700;
	color: var(--text-color);
}

ul {
	list-style: none;
}

a {
	text-decoration: none;
}

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

body.body--no-scroll {
	overflow: hidden;
}

/* ==================== HEADER ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid #e5e7eb;
}

.header__container {
	height: var(--header-height);
	display: flex;
	justify-content: space-between;
	align-items: center;
}

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

.header__logo span {
	transition: color 0.3s;
}

.header__logo:hover span {
	color: var(--primary-color);
}

.header__cta-button {
	display: none; /* Hidden on mobile */
	background-color: var(--primary-color);
	color: white;
	padding: 0.75rem 1.5rem;
	border-radius: 0.5rem;
	font-weight: 500;
	transition: background-color 0.3s;
}

.header__cta-button:hover {
	background-color: var(--primary-color-alt);
}

.header__burger {
	position: relative;
	z-index: 9999;
	display: block;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--text-color);
}

/* Navigation for mobile */
@media screen and (max-width: 767px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--background-color);
		box-shadow: -2px 0 12px rgba(0, 0, 0, 0.1);
		padding: 4rem 2rem 2rem;
		transition: right 0.4s ease-in-out;
	}
}

.header__nav--active {
	right: 0;
}

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

.header__nav-link {
	font-family: var(--title-font);
	font-size: var(--h3-font-size);
	color: var(--text-color);
	font-weight: 600;
	transition: color 0.3s;
}

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

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

.footer__container {
	display: grid;
	gap: 2.5rem;
}

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--title-font);
	font-weight: 700;
	font-size: 1.25rem;
	color: #fff;
	margin-bottom: 1rem;
}

.footer__description {
	font-size: var(--small-font-size);
	line-height: 1.6;
	max-width: 300px;
}

.footer__title {
	font-size: var(--h3-font-size);
	color: #fff;
	margin-bottom: 1.5rem;
}

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

.footer__link {
	color: var(--footer-text-color);
	transition: color 0.3s;
}

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

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 0.75rem;
}

.footer__copyright {
	margin-top: 4rem;
	padding: 1.5rem 0;
	border-top: 1px solid #374151;
	text-align: center;
	font-size: var(--small-font-size);
}

/* ==================== MEDIA QUERIES ==================== */
/* For medium devices (tablets) */
@media screen and (min-width: 768px) {
	.header__nav {
		display: block;
	}
	.header__nav-list {
		flex-direction: row;
		gap: 2rem;
	}
	.header__nav-link {
		font-size: var(--normal-font-size);
		font-family: var(--body-font);
		font-weight: 500;
	}
	.header__burger {
		display: none;
	}
	.header__cta-button {
		display: block;
	}
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices (desktops) */
@media screen and (min-width: 1024px) {
	body {
		font-size: var(--normal-font-size);
	}
	.container {
		padding-left: 1rem;
		padding-right: 1rem;
	}
	.header__container {
		height: calc(var(--header-height) + 1rem);
	}
	.footer__container {
		grid-template-columns: 1.5fr repeat(3, 1fr);
		gap: 2rem;
	}
}

/* ==================== HERO SECTION ==================== */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	background-color: var(--container-color);
}

.hero__container {
	display: grid;
	gap: 4rem;
	align-items: center;
}

.hero__content {
	text-align: center;
}

.hero__title {
	font-size: var(--h2-font-size);
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

.hero__description {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	line-height: 1.7;
	margin: 0 auto 2.5rem;
	max-width: 600px;
}

.hero__buttons {
	display: flex;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.hero__button {
	display: inline-block;
	padding: 1rem 2rem;
	border-radius: 0.5rem;
	font-weight: 500;
	font-family: var(--title-font);
	transition: transform 0.3s, box-shadow 0.3s;
}

.hero__button:hover {
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.hero__button--primary {
	background-color: var(--primary-color);
	color: white;
}

.hero__button--primary:hover {
	background-color: var(--primary-color-alt);
}

.hero__button--secondary {
	background-color: var(--background-color);
	color: var(--primary-color);
	border: 2px solid var(--primary-color);
}

.hero__image-wrapper {
	display: flex;
	justify-content: center;
}

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 1rem;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

/* MEDIA QUERIES for HERO */
@media screen and (min-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 5rem);
		padding-bottom: 5rem;
	}

	.hero__container {
		grid-template-columns: 1.2fr 1fr;
		text-align: left;
	}

	.hero__content {
		text-align: left;
	}

	.hero__description {
		margin-left: 0;
		margin-right: 0;
	}

	.hero__buttons {
		justify-content: flex-start;
	}
}

@media screen and (min-width: 1024px) {
	:root {
		--h1-font-size: 3rem;
		--h2-font-size: 1.75rem;
	}

	.hero {
		padding-top: calc(var(--header-height) + 6rem);
		padding-bottom: 6rem;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

.section__header {
	text-align: center;
	margin-bottom: 3rem;
}

.section__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.section__subtitle {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	line-height: 1.7;
	max-width: 700px;
	margin: 0 auto;
}

/* ==================== ABOUT SECTION ==================== */
.about__grid {
	display: grid;
	gap: 1.5rem;
}

.about__card {
	background-color: var(--background-color);
	padding: 2.5rem 2rem;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
	text-align: center;
	transition: transform 0.3s, box-shadow 0.3s;
}

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

.about__card-icon {
	width: 60px;
	height: 60px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background-color: #eef2ff; /* Light indigo background */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

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

.about__card-title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.about__card-description {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	line-height: 1.6;
}

/* MEDIA QUERIES for ABOUT */
@media screen and (min-width: 576px) {
	.about__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.section {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}
	.about__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

/* ==================== BENEFITS SECTION ==================== */
.benefits__container {
	display: grid;
	gap: 4rem;
}

.benefits__item {
	display: grid;
	gap: 2rem;
	align-items: center;
}

.benefits__image {
	width: 100%;
	border-radius: 0.75rem;
	box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.benefits__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.benefits__description {
	color: var(--text-color-light);
	line-height: 1.7;
	margin-bottom: 2rem;
}

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

.benefits__list-item {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.benefits__list-item i {
	color: var(--primary-color);
	flex-shrink: 0; /* Prevents icon from shrinking */
	margin-top: 3px;
}

.benefits__list-item span {
	color: var(--text-color);
}

/* MEDIA QUERIES for BENEFITS */
@media screen and (min-width: 768px) {
	.benefits__item {
		grid-template-columns: 1fr 1fr;
	}

	/* Modifier to reverse the order */
	.benefits__item--reversed .benefits__image-wrapper {
		order: 2;
	}
}

@media screen and (min-width: 992px) {
	.benefits__container {
		gap: 6rem;
	}

	.benefits__item {
		gap: 4rem;
	}
}

/* ==================== REVIEWS SECTION ==================== */
.reviews {
	background-color: var(--container-color);
}

.reviews__container {
	padding-bottom: 4rem; /* Space for pagination */
}

.reviews__card {
	background-color: var(--background-color);
	padding: 2rem;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
}

.reviews__header {
	display: flex;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.reviews__avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.reviews__user-info {
	flex-grow: 1;
}

.reviews__user-name {
	font-size: 1.1rem;
	font-family: var(--title-font);
	margin-bottom: 0.25rem;
}

.reviews__user-location {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.reviews__rating {
	display: flex;
	gap: 0.25rem;
	color: #f59e0b; /* Amber color for stars */
}

.reviews__rating i {
	fill: #f59e0b;
}

.reviews__text {
	font-size: var(--normal-font-size);
	line-height: 1.7;
	color: var(--text-color-light);
}

/* Swiper Styles Customization */
.swiper-button-next,
.swiper-button-prev {
	color: var(--primary-color);
	top: 50%;
	transform: translateY(-150%); /* Adjust position to be above pagination */
}

.swiper-pagination-bullet {
	background-color: #d1d5db;
}

.swiper-pagination-bullet-active {
	background-color: var(--primary-color);
}

/* ==================== FAQ SECTION ==================== */
.faq__container {
	max-width: 800px;
	margin: 0 auto;
	display: grid;
	gap: 1rem;
}

.faq__item {
	background-color: var(--background-color);
	border: 1px solid #e5e7eb;
	border-radius: 0.75rem;
	padding: 1.5rem;
	transition: box-shadow 0.3s;
}

.faq__item:hover {
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.faq__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}

.faq__question {
	font-size: 1.1rem;
	font-family: var(--body-font);
	font-weight: 500;
}

.faq__icon {
	transition: transform 0.3s;
	color: var(--primary-color);
}

.faq__content {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding-top 0.4s ease-out;
}

.faq__answer {
	font-size: var(--normal-font-size);
	color: var(--text-color-light);
	line-height: 1.7;
}

/* Modifier for active/open FAQ item */
.faq__item.faq__item--active .faq__icon {
	transform: rotate(180deg);
}

.faq__item.faq__item--active .faq__content {
	padding-top: 1.5rem;
}

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

.contact__container {
	display: grid;
	gap: 3rem;
}

.contact__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1rem;
}

.contact__description {
	color: var(--text-color-light);
	line-height: 1.7;
	margin-bottom: 2rem;
}

.contact__info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.contact__info-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-weight: 500;
}

.contact__info-item i {
	color: var(--primary-color);
}

.contact__form-wrapper {
	background-color: var(--background-color);
	padding: 2.5rem;
	border-radius: 0.75rem;
	border: 1px solid #e5e7eb;
}

.contact__form-group {
	position: relative;
	margin-bottom: 2rem;
}

.contact__form-input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #d1d5db;
	border-radius: 0.5rem;
	outline: none;
	font-size: var(--normal-font-size);
	background-color: var(--background-color);
	color: var(--text-color);
}

.contact__form-label {
	position: absolute;
	left: 1rem;
	top: 1rem;
	padding: 0 0.25rem;
	background-color: var(--background-color);
	color: var(--text-color-light);
	transition: top 0.3s, font-size 0.3s;
	pointer-events: none;
}

/* Input focus styles */
.contact__form-input:focus {
	border-color: var(--primary-color);
}

.contact__form-input:focus + .contact__form-label,
.contact__form-input:not(:placeholder-shown) + .contact__form-label {
	top: -0.75rem;
	font-size: var(--small-font-size);
	color: var(--primary-color);
}

.contact__form-checkbox {
	margin-bottom: 2rem;
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__checkbox-input {
	margin-top: 4px;
}

.contact__checkbox-label {
	font-size: var(--small-font-size);
	color: var(--text-color-light);
}

.contact__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
	border: none;
	cursor: pointer;
}

.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
	border: 2px dashed var(--primary-color);
	border-radius: 0.75rem;
}

.contact__success-message i {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 1rem;
}

.contact__success-title {
	margin-bottom: 0.5rem;
}

/* MEDIA QUERIES for CONTACT */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--footer-bg-color);
	color: var(--footer-text-color);
	padding: 1rem 0;
	z-index: 200;
	box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.1);
	transform: translateY(0);
	transition: transform 0.4s ease-in-out;
}

.cookie-popup--hidden {
	transform: translateY(100%);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}

.cookie-popup__text {
	font-size: var(--small-font-size);
}

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
}

.cookie-popup__button {
	background-color: var(--primary-color);
	color: white;
	border: none;
	padding: 0.5rem 1.5rem;
	border-radius: 0.5rem;
	cursor: pointer;
	font-size: var(--small-font-size);
	font-weight: 500;
	transition: background-color 0.3s;
}

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

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 5rem;
}

.pages .container {
	max-width: 800px;
}

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

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

.pages p {
	color: var(--text-color-light);
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

.pages ul {
	list-style: disc;
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
	color: var(--text-color-light);
}

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

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

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

.pages strong {
	color: var(--text-color);
	font-weight: 700;
}
