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

/* === CSS VARIABLES === */
:root {
	--primary-color: #1a237e;
	--primary-color-dark: #10174e;
	--secondary-color: #f4f5f7;
	--text-color: #212121;
	--text-color-light: #616161;
	--background-color: #ffffff;
	--border-color: #e0e0e0;

	--font-family-headings: 'Manrope', sans-serif;
	--font-family-body: 'Inter', sans-serif;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

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-family-headings);
	font-weight: 800;
	line-height: 1.2;
}

/* === REUSABLE COMPONENTS === */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

.logo {
	display: inline-flex;
	align-items: center;
	gap: 0.75rem;
	font-family: var(--font-family-headings);
	font-weight: 800;
	font-size: 1.5rem;
	color: var(--primary-color);
}

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

/* === HEADER === */
.header {
	height: var(--header-height);
	background-color: var(--background-color);
	border-bottom: 1px solid var(--border-color);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
}

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

.nav__list {
	display: flex;
	align-items: center;
	gap: 2rem;
}

.nav__link {
	font-size: 1rem;
	font-weight: 500;
	color: var(--text-color);
	transition: color 0.3s ease;
	position: relative;
	padding-bottom: 0.25rem;
}

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

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

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

.nav__link--button {
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 0.5rem 1.25rem;
	border-radius: 50px;
	transition: background-color 0.3s ease;
}

.nav__link--button::after {
	display: none;
}

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

.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 110;
}

.burger__line {
	display: block;
	width: 28px;
	height: 3px;
	background-color: var(--text-color);
	border-radius: 3px;
	position: relative;
	transition: background-color 0s 0.3s;
}

.burger__line::before,
.burger__line::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: var(--text-color);
	border-radius: 3px;
	transition: transform 0.3s ease;
}

.burger__line::before {
	top: -8px;
}

.burger__line::after {
	bottom: -8px;
}

/* === MAIN CONTENT PADDING === */
.main {
	padding-top: var(--header-height);
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(1, 1fr);
	gap: 2.5rem;
	padding-bottom: 4rem;
}

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

.footer__tagline {
	font-size: 0.9rem;
}

.footer__title {
	font-size: 1.1rem;
	font-weight: 600;
	color: var(--text-color);
	margin-bottom: 1rem;
}

.footer__list li:not(:last-child) {
	margin-bottom: 0.75rem;
}

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

.footer__list--contacts i {
	color: var(--primary-color);
}

.footer__link {
	transition: color 0.3s ease;
}

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

.footer__address {
	font-style: normal;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
	text-align: center;
	font-size: 0.9rem;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (min-width: 1024px) {
	.footer__container {
		grid-template-columns: 2fr 1fr 1.5fr 1.5fr;
	}
}

@media (max-width: 1023px) {
	.nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 60%;
		max-width: 320px;
		height: 100vh;
		background-color: var(--background-color);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transition: right 0.4s ease-in-out;
		padding-top: calc(var(--header-height) + 2rem);
	}

	.nav.is-active {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 2rem;
		gap: 1.5rem;
	}

	.burger {
		display: block;
	}

	/* Burger Active State */
	.burger.is-active .burger__line {
		background-color: transparent;
	}
	.burger.is-active .burger__line::before {
		transform: translateY(8px) rotate(45deg);
	}
	.burger.is-active .burger__line::after {
		transform: translateY(-8px) rotate(-45deg);
	}
}

/* === BUTTONS === */
.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--background-color);
	padding: 0.8rem 2rem;
	border-radius: 50px;
	font-weight: 500;
	transition: background-color 0.3s ease, transform 0.3s ease;
	border: 1px solid transparent;
}

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

/* === HERO SECTION === */
.hero {
	padding: 6rem 0;
	background-color: var(--background-color);
	overflow: hidden;
}

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

.hero__subtitle {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 1rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.hero__title {
	font-size: 1.5rem;
	margin-bottom: 1.5rem;
	min-height: 58px; /* Reserve space for text */
}

/* Typing animation cursor */
.hero__title::after {
	content: '|';
	animation: blink 1s step-end infinite;
	color: var(--primary-color);
	font-weight: 800;
}

@keyframes blink {
	from,
	to {
		opacity: 1;
	}
	50% {
		opacity: 0;
	}
}

.hero__description {
	font-size: 1.1rem;
	color: var(--text-color-light);
	margin-bottom: 2.5rem;
	max-width: 550px;
}

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

.hero__image {
	max-width: 450px;
	width: 100%;
	border-radius: 1rem;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
		min-height: 115px;
	}
}

@media (min-width: 1024px) {
	.hero {
		padding: 8rem 0;
	}
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 4rem;
	}
	.hero__title {
		font-size: 3rem;
	}
}

/* === REUSABLE SECTION STYLES === */
.section {
	padding: 5rem 0;
	overflow: hidden; /* For AOS animations */
}

.section:nth-of-type(odd) {
	background-color: var(--secondary-color);
}

.section__subtitle {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--primary-color);
	margin-bottom: 0.75rem;
	letter-spacing: 1px;
	text-transform: uppercase;
}

.section__title {
	font-size: 2.25rem;
	margin-bottom: 1.25rem;
}

.section__description {
	font-size: 1.05rem;
	color: var(--text-color-light);
	max-width: 600px;
}

/* === ANALYTICS SECTION === */
.analytics {
	background-color: var(--background-color);
}

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

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

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

.analytics-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.07);
}

.analytics-card__icon {
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: var(--secondary-color);
	color: var(--primary-color);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

.analytics-card__icon i {
	width: 28px;
	height: 28px;
}

.analytics-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	color: var(--text-color);
}

.analytics-card__description {
	font-size: 0.95rem;
	color: var(--text-color-light);
	line-height: 1.7;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
	.section {
		padding: 6rem 0;
	}
	.section__title {
		font-size: 2.75rem;
	}
	.analytics__cards {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media (min-width: 1024px) {
	.analytics__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
		align-items: center;
	}
}

/* === REUSABLE SECTION HEADER === */
.section__header {
	text-align: center;
	margin-bottom: 4rem;
}

.section__header .section__description {
	margin-left: auto;
	margin-right: auto;
}

/* === STRATEGIES SECTION === */
.strategies__steps-container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
}

.strategy-step {
	background-color: var(--background-color);
	padding: 2.5rem 2rem;
	border-radius: 12px;
	border: 1px solid transparent;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.strategy-step__number {
	font-family: var(--font-family-headings);
	font-size: 4rem;
	font-weight: 800;
	color: var(--secondary-color);
	position: absolute;
	top: -0.5rem;
	left: 1.5rem;
	z-index: 1;
	line-height: 1;
}

.strategy-step__title {
	font-size: 1.5rem;
	margin-bottom: 1rem;
	position: relative;
	z-index: 2;
}

.strategy-step__description {
	font-size: 1rem;
	color: var(--text-color-light);
	position: relative;
	z-index: 2;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
	.strategies__steps-container {
		grid-template-columns: repeat(3, 1fr);
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.strategies__steps-container {
		gap: 2rem;
	}

	/* Decorative connecting line */
	.strategies__steps-container::before {
		content: '';
		position: absolute;
		top: 50%;
		left: 5%;
		width: 90%;
		height: 2px;
		background-image: linear-gradient(
			to right,
			var(--border-color) 50%,
			transparent 50%
		);
		background-size: 16px 2px;
		background-repeat: repeat-x;
		transform: translateY(-50%);
		z-index: 0;
	}

	.strategy-step {
		border-color: var(--border-color);
	}
}

/* === CASES SECTION === */
.cases {
	background-color: var(--background-color);
}

.cases-slider {
	padding-bottom: 3.5rem !important; /* For pagination */
}

.case-card {
	background-color: var(--background-color);
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	height: 100%;
}

.case-card__image-wrapper {
	position: relative;
}

.case-card__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
}

.case-card__tag {
	position: absolute;
	top: 1rem;
	left: 1rem;
	background-color: rgba(26, 35, 126, 0.8);
	backdrop-filter: blur(5px);
	color: white;
	padding: 0.25rem 0.75rem;
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 50px;
}

.case-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.case-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.case-card__description {
	color: var(--text-color-light);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.case-card__results {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.case-card__results li {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.95rem;
}

.case-card__results i {
	color: var(--primary-color);
	width: 20px;
	height: 20px;
}

/* Swiper custom styles */
.swiper-pagination-bullet {
	background-color: var(--text-color-light);
	width: 10px;
	height: 10px;
	opacity: 0.5;
}

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

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

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

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

/* Accordion */
.accordion {
	margin-top: 2.5rem;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	background-color: var(--background-color);
}

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

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

.accordion__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 1rem;
}

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

.accordion__text {
	padding: 0 1.5rem 1.5rem 1.5rem;
	color: var(--text-color-light);
	line-height: 1.7;
}

/* Accordion Open State */
.accordion__item.is-open .accordion__header {
	color: var(--primary-color);
}

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

/* === MEDIA QUERIES === */
@media (min-width: 1024px) {
	.processes__container {
		grid-template-columns: 1fr 1.2fr;
		gap: 5rem;
	}
}

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

.contact__wrapper {
	max-width: 700px;
	margin: 0 auto;
	background-color: var(--secondary-color);
	padding: 2rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
}

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

.form-group {
	display: flex;
	flex-direction: column;
}

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

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

.form-group__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(26, 35, 126, 0.1);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 0.75rem;
	font-size: 0.9rem;
	color: var(--text-color-light);
}

.form-group--checkbox input[type='checkbox'] {
	width: 1.15em;
	height: 1.15em;
	accent-color: var(--primary-color);
}

.form-group--checkbox a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
	padding: 1rem;
	font-size: 1.1rem;
	font-weight: 600;
}

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

.form-success-message i {
	width: 60px;
	height: 60px;
	color: var(--primary-color);
	margin-bottom: 1.5rem;
}

.form-success-message h3 {
	font-size: 1.75rem;
	margin-bottom: 0.75rem;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
	.contact__wrapper {
		padding: 3rem;
	}
}

/* === COOKIE POP-UP === */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--background-color);
	box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.08);
	padding: 1rem 0;
	z-index: 200;
	transform: translateY(0);
	transition: transform 0.5s ease-in-out;
}

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

.cookie-popup__container {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	text-align: center;
}

.cookie-popup__text {
	font-size: 0.9rem;
	color: var(--text-color-light);
}

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

.cookie-popup__button {
	padding: 0.6rem 1.5rem;
	font-size: 0.9rem;
}

/* === MEDIA QUERIES === */
@media (min-width: 768px) {
	.cookie-popup {
		padding: 1.5rem 0;
	}
	.cookie-popup__container {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

/* === GENERIC PAGES (Privacy, Terms, etc.) === */
.pages {
	padding: 120px 0;
	background-color: var(--background-color);
}

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

.pages h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	color: var(--primary-color);
}

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

.pages p,
.pages li {
	font-size: 1.05rem;
	color: var(--text-color-light);
	line-height: 1.8;
	margin-bottom: 1rem;
}

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

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

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

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