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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--background-color: #1a1a1a;
	--text-color: #e0e0e0;
	--title-color: #f5f5f5;
	--primary-color: #4a9ba8;
	--primary-color-alt: #5db8c8;
	--accent-color: #e87a5d;
	--white-color: #2c2c2c;
	--border-color: #3a3a3a;

	/* Typography */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Lora', serif;
	--normal-font-size: 1rem;
	--big-font-size: 2rem;
	--h1-font-size: 1.75rem;
	--h2-font-size: 1.25rem;
	--h3-font-size: 1.125rem;

	/* Z-index */
	--z-header: 100;
	--z-menu: 110;
}

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

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

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

ul {
	list-style: none;
}

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

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

/* ==================== HEADER & NAV ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	background-color: rgba(26, 26, 26, 0.9);
	backdrop-filter: blur(10px);
	z-index: var(--z-header);
	border-bottom: 1px solid var(--border-color);
	transition: background-color 0.3s;
}

.header__container {
	height: 5rem;
	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-size: 1.25rem;
	font-weight: 700;
	color: var(--title-color);
}

.header__logo img {
	width: 32px;
	height: 32px;
}

.header__toggle {
	position: relative;
	z-index: 999;
	font-size: 1.5rem;
	cursor: pointer;
	color: var(--title-color);
	background: none;
	border: none;
}

.header__toggle .lucide {
	width: 28px;
	height: 28px;
}

@media screen and (max-width: 767px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		background-color: var(--background-color);
		width: 80%;
		height: 100vh;
		padding: 6rem 2rem 0;
		z-index: var(--z-menu);
		transition: right 0.4s ease;
		border-left: 1px solid var(--border-color);
	}
}

.nav__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2.5rem;
}

.nav__link {
	color: var(--text-color);
	font-weight: 500;
	transition: color 0.3s;
}

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

.nav__link--button {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 0.75rem 1.5rem;
	border-radius: 4px;
	transition: background-color 0.3s;
}

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

/* Show menu */
.nav.show-menu {
	right: 0;
}

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--white-color);
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

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

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

.footer__logo img {
	width: 32px;
	height: 32px;
}

.footer__description {
	font-size: 0.9rem;
	line-height: 1.6;
	max-width: 300px;
}

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

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

.footer__link {
	font-size: 0.9rem;
	transition: color 0.3s;
}

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

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

.footer__list--contact .lucide {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	flex-shrink: 0;
}

.footer__copy {
	text-align: center;
	padding: 2rem 0;
	margin-top: 3rem;
	border-top: 1px solid var(--border-color);
	font-size: 0.85rem;
	color: var(--text-color);
}

/* ==================== MEDIA QUERIES ==================== */
/* For medium devices */
@media screen and (min-width: 576px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

/* For large devices */
@media screen and (min-width: 768px) {
	.header__toggle {
		display: none;
	}

	.nav__list {
		flex-direction: row;
		gap: 2rem;
	}

	.nav__item {
		margin-bottom: 0;
	}
}

@media screen and (min-width: 992px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
	.footer__container {
		grid-template-columns: 3fr repeat(3, 2fr);
		gap: 2rem;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 1rem 2rem;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 0.3s, transform 0.3s;
}

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

.button .lucide {
	width: 20px;
	height: 20px;
	transition: transform 0.3s;
}

.button:hover .lucide {
	transform: translateX(4px);
}

/* ==================== HERO ==================== */
.hero {
	padding-top: 8rem;
	padding-bottom: 4rem;
	position: relative;
	overflow: hidden;
}

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

.hero__title {
	font-size: 2rem;
	line-height: 1.3;
	margin-bottom: 1.5rem;
}

/* --- Title Animation --- */
.hero__title [data-word] {
	display: inline-block;
	overflow: hidden;
}

.hero__title [data-letter] {
	display: inline-block;
	transform: translateY(110%);
	opacity: 0;
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), opacity 0.5s;
}

.hero__title.animated [data-letter] {
	transform: translateY(0);
	opacity: 1;
}

.hero__description {
	font-size: 1.125rem;
	line-height: 1.7;
	margin-bottom: 2.5rem;
	max-width: 500px;
}

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

.hero__image img {
	border-radius: 8px;
	width: 100%;
}

.hero__background-shape {
	position: absolute;
	top: 50%;
	right: -150px;
	width: 400px;
	height: 400px;
	background-color: rgba(74, 155, 168, 0.1);
	border-radius: 50%;
	transform: translateY(-50%);
	z-index: -1;
	animation: pulse 8s infinite ease-in-out;
}

@keyframes pulse {
	0% {
		transform: translateY(-50%) scale(1);
	}
	50% {
		transform: translateY(-50%) scale(1.1);
	}
	100% {
		transform: translateY(-50%) scale(1);
	}
}

/* --- Hero Media Queries --- */
@media screen and (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1.1fr 0.9fr;
	}

	:root {
		--big-font-size: 2.75rem;
	}
}

@media screen and (min-width: 992px) {
	.hero {
		padding-top: 9rem;
		padding-bottom: 6rem;
	}
	:root {
		--big-font-size: 3.25rem;
	}
}

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

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

.section__title {
	font-size: var(--h1-font-size);
	margin-bottom: 0.75rem;
}

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

/* ==================== ANALYTICS SECTION ==================== */
.analytics__grid {
	display: grid;
	gap: 1.5rem;
}

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

.analytics__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 24px rgba(44, 44, 44, 0.1);
}

.analytics__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 60px;
	height: 60px;
	background-color: rgba(74, 155, 168, 0.2); /* Dark teal background */
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.analytics__icon .lucide {
	width: 28px;
	height: 28px;
	color: var(--primary-color);
}

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

.analytics__card-description {
	font-size: 0.9rem;
	line-height: 1.7;
}

/* --- Analytics Media Queries --- */
@media screen and (min-width: 576px) {
	.analytics__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.analytics__grid {
		grid-template-columns: repeat(4, 1fr);
		gap: 2rem;
	}

	.section {
		padding-top: 6rem;
		padding-bottom: 6rem;
	}

	.section__header {
		margin-bottom: 4rem;
	}

	:root {
		--h1-font-size: 2.25rem;
	}
}

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

.strategy__timeline {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

/* The vertical line */
.strategy__timeline::before {
	content: '';
	position: absolute;
	top: 2rem;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	width: 2px;
	background-color: var(--border-color);
	display: none; /* Hidden on mobile */
}

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

.strategy__image img {
	border-radius: 8px;
	width: 100%;
}

.strategy__content {
	position: relative;
	padding-left: 2rem;
}

.strategy__number {
	position: absolute;
	left: -1rem;
	top: -1.5rem;
	font-size: 4rem;
	font-weight: 700;
	font-family: var(--title-font);
	color: rgba(74, 155, 168, 0.15);
	z-index: 1;
}

.strategy__title {
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
	position: relative;
	z-index: 2;
}

.strategy__description {
	line-height: 1.7;
	position: relative;
	z-index: 2;
}

/* --- Strategy Media Queries --- */
@media screen and (min-width: 768px) {
	.strategy__timeline::before {
		display: block; /* Show the line on larger screens */
	}

	.strategy__step {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
		position: relative;
	}

	.strategy__step::after {
		content: '';
		position: absolute;
		top: 50%;
		left: 50%;
		transform: translate(-50%, -50%);
		width: 14px;
		height: 14px;
		background-color: var(--background-color);
		border: 3px solid var(--primary-color);
		border-radius: 50%;
		z-index: 5;
	}

	.strategy__content {
		padding-left: 0;
		text-align: right;
	}

	/* Reverse layout for even items */
	.strategy__step--reverse .strategy__image {
		order: -1;
	}

	.strategy__step--reverse .strategy__content {
		text-align: left;
	}

	.strategy__number {
		font-size: 5rem;
		top: -2rem;
		left: auto;
		right: -1rem;
	}

	.strategy__step--reverse .strategy__number {
		right: auto;
		left: -1rem;
	}
}

/* ==================== CASES SECTION ==================== */
.cases__container {
	max-width: 900px;
	margin: 0 auto;
}

.cases__tabs {
	display: flex;
	justify-content: center;
	gap: 1rem;
	margin-bottom: 3rem;
	flex-wrap: wrap;
}

.cases__tab {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 1.5rem;
	border: 1px solid var(--border-color);
	background-color: var(--white-color);
	color: var(--text-color);
	border-radius: 4px;
	cursor: pointer;
	font-weight: 500;
	font-family: var(--body-font);
	font-size: 0.9rem;
	transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.cases__tab:hover {
	background-color: rgba(74, 155, 168, 0.2);
	border-color: rgba(74, 155, 168, 0.3);
}

.cases__tab.is-active {
	background-color: var(--primary-color);
	color: var(--white-color);
	border-color: var(--primary-color);
}

.cases__tab .lucide {
	width: 18px;
	height: 18px;
}

.cases__content {
	display: none; /* Hidden by default */
	grid-template-columns: 1fr;
	gap: 2rem;
	align-items: center;
	opacity: 0;
	animation: fadeIn 0.5s forwards;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

.cases__content.is-active {
	display: grid; /* Becomes visible */
}

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

.cases__description {
	line-height: 1.7;
	margin-bottom: 2rem;
}

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

.cases__metrics li {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cases__metrics .lucide {
	width: 24px;
	height: 24px;
	color: var(--accent-color);
}

.cases__metrics strong {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--title-color);
	min-width: 80px;
}

.cases__image img {
	border-radius: 8px;
}

/* --- Cases Media Queries --- */
@media screen and (min-width: 768px) {
	.cases__content.is-active {
		grid-template-columns: 1fr 1fr;
		gap: 3rem;
	}
}

/* ==================== PROCESSES (ACCORDION) ==================== */
.processes {
	background-color: var(--white-color);
}

.processes__accordion {
	max-width: 750px;
	margin: 0 auto;
}

.accordion__item {
	border-bottom: 1px solid var(--border-color);
}
.accordion__item:first-child {
	border-top: 1px solid var(--border-color);
}

.accordion__header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 0;
	cursor: pointer;
}

.accordion__title {
	font-size: var(--h3-font-size);
	font-family: var(--body-font);
	font-weight: 600;
}

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

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

.accordion__content-inner {
	padding-bottom: 0;
}

.accordion__content p {
	line-height: 1.7;
}

/* Accordion Open State */
.accordion__item.is-open .accordion__content {
	/* max-height will be set by JS */
}

.accordion__item.is-open .accordion__content-inner {
	padding-bottom: 1.5rem;
}

.accordion__item.is-open .accordion__icon {
	transform: rotate(180deg);
}

/* ==================== CONTACT SECTION ==================== */
.contact__container {
	display: grid;
	gap: 4rem;
}

.contact__info .section__title,
.contact__info .section__subtitle {
	text-align: left;
	margin-left: 0;
	margin-right: 0;
}

.contact__info .section__subtitle {
	margin-bottom: 2.5rem;
}

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

.contact__list li {
	display: flex;
	align-items: flex-start;
	gap: 1rem;
}

.contact__list .lucide {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
	margin-top: 2px;
	flex-shrink: 0;
}

/* --- Form Styles --- */
.contact__form-wrapper {
	background-color: var(--white-color);
	padding: 2.5rem;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

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

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

.form__label {
	font-size: 0.9rem;
	font-weight: 500;
	margin-bottom: 0.5rem;
	color: var(--title-color);
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	font-family: var(--body-font);
	font-size: 1rem;
	background-color: var(--background-color);
	color: var(--text-color);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(74, 155, 168, 0.3);
}

/* --- Checkbox Styles --- */
.form__group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 0.75rem;
}

.form__checkbox {
	appearance: none;
	width: 18px;
	height: 18px;
	border: 2px solid var(--primary-color);
	border-radius: 3px;
	margin-top: 3px;
	cursor: pointer;
	position: relative;
	flex-shrink: 0;
}

.form__checkbox:checked {
	background-color: var(--primary-color);
}

.form__checkbox:checked::after {
	content: '✓';
	color: var(--white-color);
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	font-size: 14px;
	font-weight: bold;
}

.form__checkbox-label {
	font-size: 0.85rem;
	line-height: 1.6;
	cursor: pointer;
}

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

/* --- Button & Loader --- */
.button--full {
	width: 100%;
	justify-content: center;
	position: relative;
	min-height: 50px;
}

.button__loader {
	width: 20px;
	height: 20px;
	border: 2px solid var(--white-color);
	border-top-color: transparent;
	border-radius: 50%;
	position: absolute;
	animation: spin 1s linear infinite;
	display: none;
}

@keyframes spin {
	to {
		transform: rotate(360deg);
	}
}

.button.is-loading .button__text {
	opacity: 0;
}

.button.is-loading .button__loader {
	display: block;
}

/* --- Success Message --- */
.form__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
}

.form__success-message.is-visible {
	display: block;
	animation: fadeIn 0.5s;
}

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

.form__success-message h3 {
	font-size: var(--h2-font-size);
	margin-bottom: 0.5rem;
}

/* --- Contact Media Queries --- */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1fr;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	margin: 0 auto;
	background-color: var(--white-color);
	color: var(--text-color);
	padding: 1rem 1.5rem;
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(44, 44, 44, 0.15);
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1rem;
	z-index: 200;
	transform: translateY(200%);
	opacity: 0;
	transition: transform 0.5s ease-out, opacity 0.5s ease-out;
}

.cookie-popup.is-visible {
	transform: translateY(0);
	opacity: 1;
}

.cookie-popup__text {
	font-size: 0.85rem;
	line-height: 1.5;
}

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

.cookie-popup__button {
	background-color: var(--primary-color);
	color: var(--white-color);
	border: none;
	padding: 0.6rem 1.2rem;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.85rem;
	font-weight: 500;
	white-space: nowrap;
	transition: background-color 0.3s;
}

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

/* ==================== POLICY PAGES STYLES ==================== */
.pages {
	padding-top: 8rem;
	padding-bottom: 6rem;
}

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

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

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

.pages p {
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

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

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

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

.pages strong {
	color: var(--title-color);
}
