/* Goggle Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@400;700&family=Montserrat:wght@600;700&display=swap');

/* CSS Variables */
:root {
	--bg-color: #f9f9f9;
	--text-color: #1a1a1a;
	--accent-color: #007bff;
	--secondary-text-color: #6c757d;
	--header-height: 70px;
	--font-family-headings: 'Montserrat', sans-serif;
	--font-family-body: 'Lato', sans-serif;
}

/* Base and Reset Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--bg-color);
	color: var(--text-color);
	overflow-x: hidden;
}

ul {
	list-style: none;
}

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

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

/* Utility Classes */
.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 15px;
}

/* Logo */
.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-family-headings);
	font-weight: 700;
	font-size: 1.5rem;
	color: var(--text-color);
}

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

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

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

.header__nav {
	display: block;
}

.header__nav-list {
	display: flex;
	gap: 30px;
}

.header__nav-link {
	font-weight: 600;
	transition: color 0.3s ease;
	position: relative;
	padding-bottom: 5px;
}

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

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

.header__nav-link:hover::after {
	width: 100%;
}

.header__burger-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
}

/* Main Content Placeholder */
.main {
	padding-top: var(--header-height);
	min-height: calc(100vh - 200px); /* Example min-height */
}

/* Footer */
.footer {
	background-color: #f1f1f1;
	padding: 60px 0;
	border-top: 1px solid #e0e0e0;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 30px;
}

.footer__column--main {
	grid-column: span 1;
}

.footer__copyright {
	margin-top: 20px;
	font-size: 0.9rem;
	color: var(--secondary-text-color);
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 20px;
	font-weight: 600;
}

.footer__list {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.footer__link {
	transition: color 0.3s ease;
}

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

.footer__list--contacts {
	gap: 15px;
}

.footer__list--contacts a,
.footer__address {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__icon {
	width: 18px;
	height: 18px;
	color: var(--accent-color);
}

/* Responsive Styles (Mobile-First) */
@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: -100%;
		width: 80%;
		height: calc(100vh - var(--header-height));
		background-color: var(--bg-color);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		transition: right 0.4s ease-in-out;
		padding-top: 30px;
	}

	.header__nav--active {
		right: 0;
	}

	body.no-scroll {
		overflow: hidden;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 25px;
	}

	.header__nav-link {
		font-size: 1.2rem;
	}

	.header__burger-btn {
		display: block;
		z-index: 1001; /* Above mobile nav */
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.footer__column--main {
		align-items: center;
	}

	.logo {
		justify-content: center;
	}

	.footer__list--contacts a,
	.footer__address {
		justify-content: center;
	}
}

/* Hero Section */
.hero {
	position: relative;
	height: 100vh;
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding-top: var(--header-height);
	background-color: #111; /* Fallback for canvas */
}

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

.hero__container {
	position: relative;
	z-index: 2;
	text-align: center;
}

.hero__content {
	max-width: 800px;
	margin: 0 auto;
	color: #fff;
}

.hero__title {
	font-size: 3.5rem;
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__description {
	font-size: 1.25rem;
	line-height: 1.7;
	margin-bottom: 40px;
	color: rgba(255, 255, 255, 0.8);
}

.hero__cta-btn {
	display: inline-block;
	background-color: var(--accent-color);
	color: #fff;
	padding: 15px 35px;
	border-radius: 50px;
	font-weight: 700;
	font-family: var(--font-family-headings);
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero__cta-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 20px rgba(0, 123, 255, 0.25);
}

/* Responsive styles for Hero */
@media (max-width: 768px) {
	.hero__title {
		font-size: 2.5rem;
	}

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

@media (max-width: 480px) {
	.hero {
		min-height: 500px;
	}

	.hero__title {
		font-size: 2rem;
	}

	.hero__description {
		font-size: 1rem;
	}

	.hero__cta-btn {
		padding: 12px 28px;
		font-size: 0.9rem;
	}
}

/* --- General Section Styles --- */
.section {
	padding: 80px 0;
}

.section:nth-of-type(odd) {
	background-color: #ffffff;
}

.section__header {
	text-align: center;
	max-width: 750px;
	margin: 0 auto 60px auto;
}

.section__title {
	font-size: 2.5rem;
	margin-bottom: 15px;
	line-height: 1.3;
}

.section__subtitle {
	font-size: 1.1rem;
	line-height: 1.7;
	color: var(--secondary-text-color);
}

/* --- Analytics Section --- */
.analytics__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.analytics-card {
	background-color: #fff;
	padding: 40px;
	border-radius: 12px;
	border: 1px solid #e9ecef;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.analytics-card__icon {
	display: inline-flex;
	justify-content: center;
	align-items: center;
	width: 64px;
	height: 64px;
	background-color: var(--accent-color);
	color: #fff;
	border-radius: 50%;
	margin-bottom: 25px;
}

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

.analytics-card__title {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.analytics-card__description {
	color: var(--secondary-text-color);
	line-height: 1.6;
}

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

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}

	.section__title {
		font-size: 2rem;
	}
}

/* --- Strategy Section --- */
.strategy__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 60px;
}

/* The vertical line */
.strategy__timeline::before {
	content: '';
	position: absolute;
	top: 20px;
	bottom: 20px;
	left: 50%;
	width: 2px;
	background-color: #dee2e6;
	transform: translateX(-50%);
}

.strategy-step {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 50px;
	position: relative;
}

.strategy-step__content {
	padding: 20px;
	position: relative;
}

/* Alternating layout */
.strategy-step:nth-child(even) .strategy-step__content {
	order: -1;
	text-align: right;
}

.strategy-step__visual {
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.strategy-step__img {
	width: 100%;
	height: auto;
	display: block;
}

.strategy-step__number {
	font-family: var(--font-family-headings);
	font-size: 4rem;
	font-weight: 700;
	color: rgba(0, 0, 0, 0.07);
	position: absolute;
	top: -10px;
	line-height: 1;
	z-index: -1;
}

.strategy-step:nth-child(odd) .strategy-step__number {
	left: 0;
}

.strategy-step:nth-child(even) .strategy-step__number {
	right: 0;
}

.strategy-step__title {
	font-size: 1.8rem;
	margin-bottom: 15px;
}

.strategy-step__description {
	color: var(--secondary-text-color);
}

/* Responsive styles for Strategy Section */
@media (max-width: 768px) {
	.strategy__timeline::before {
		display: none; /* Hide line on mobile */
	}

	.strategy-step {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.strategy-step:nth-child(even) .strategy-step__content {
		order: initial; /* Reset order */
		text-align: left;
	}

	.strategy-step__content {
		padding: 0;
	}

	.strategy-step__visual {
		grid-row: 1; /* Image always on top */
	}

	.strategy-step__number {
		font-size: 3rem;
		top: -5px;
		left: 0 !important;
		right: auto !important;
	}

	.strategy-step__title {
		font-size: 1.5rem;
	}
}

/* --- Cases Section --- */
.cases {
	background-color: #ffffff;
}

.cases__slider-container {
	position: relative;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 50px; /* Space for navigation arrows */
}

.cases-swiper {
	padding-bottom: 50px !important; /* Space for pagination */
}

.case-card {
	display: grid;
	grid-template-columns: 45% 1fr;
	background-color: #fff;
	border-radius: 12px;
	overflow: hidden;
	border: 1px solid #e9ecef;
}

.case-card__visual {
	width: 100%;
	height: 100%;
}

.case-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.case-card__content {
	padding: 40px;
	display: flex;
	flex-direction: column;
}

.case-card__category {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--accent-color);
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-size: 0.8rem;
}

.case-card__title {
	font-size: 1.8rem;
	margin-bottom: 15px;
	line-height: 1.3;
}

.case-card__description {
	color: var(--secondary-text-color);
	margin-bottom: 30px;
	flex-grow: 1; /* Pushes stats to the bottom */
}

.case-card__stats {
	display: flex;
	gap: 30px;
	border-top: 1px solid #e9ecef;
	padding-top: 20px;
}

.case-card__stat-item {
	text-align: left;
}

.case-card__stat-value {
	display: block;
	font-size: 2rem;
	font-weight: 700;
	color: var(--accent-color);
	line-height: 1.2;
}

.case-card__stat-label {
	font-size: 0.9rem;
	color: var(--secondary-text-color);
}

/* Swiper custom styles */
.swiper-button-next,
.swiper-button-prev {
	color: var(--accent-color) !important;
}

.swiper-pagination-bullet-active {
	background: var(--accent-color) !important;
}

/* Responsive styles for Cases Section */
@media (max-width: 992px) {
	.case-card {
		grid-template-columns: 1fr;
	}
	.case-card__visual {
		height: 250px;
	}
}

@media (max-width: 768px) {
	.cases__slider-container {
		padding: 0;
	}
	.swiper-button-next,
	.swiper-button-prev {
		display: none !important;
	}
}

/* --- Process Section --- */
.process {
	background-color: var(--bg-color);
}

.process__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 60px;
}

.process__visual {
	border-radius: 12px;
	overflow: hidden;
}

.process__img {
	width: 100%;
	height: auto;
	display: block;
}

.process__accordion {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.accordion-item {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	background-color: #fff;
	overflow: hidden;
}

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

.accordion-item__icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 15px;
}

.accordion-item__content-wrapper {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-in-out;
}

.accordion-item__content {
	padding: 0 20px 20px 20px;
	color: var(--secondary-text-color);
	line-height: 1.7;
}

/* Active state for accordion */
.accordion-item.active .accordion-item__header {
	color: var(--accent-color);
}

.accordion-item.active .accordion-item__icon {
	transform: rotate(180deg);
}

/* Responsive styles for Process Section */
@media (max-width: 992px) {
	.process__grid {
		grid-template-columns: 1fr;
	}
	.process__visual {
		order: -1; /* Image on top */
	}
}

/* --- Contact Section --- */
.contact {
	background-color: #1a1a1a;
	color: #fff;
}

.contact__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.contact__title {
	font-size: 2.8rem;
	margin-bottom: 20px;
}

.contact__description {
	color: rgba(255, 255, 255, 0.7);
	margin-bottom: 30px;
	line-height: 1.7;
}

.contact__list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.contact__list-item {
	display: flex;
	align-items: center;
	gap: 15px;
}

.contact__list-item i {
	color: var(--accent-color);
	width: 20px;
}

.contact__list-item a {
	transition: color 0.3s ease;
}

.contact__list-item a:hover {
	color: var(--accent-color);
}

/* Form Styles */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

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

.form-label {
	margin-bottom: 8px;
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.8);
}

.form-input {
	width: 100%;
	padding: 12px 15px;
	border-radius: 6px;
	border: 1px solid #444;
	background-color: #222;
	color: #fff;
	font-size: 1rem;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.form-group--checkbox {
	flex-direction: row;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

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

.form-group--checkbox label {
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
}

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

.form-submit-btn {
	padding: 15px;
	border: none;
	border-radius: 6px;
	background-color: var(--accent-color);
	color: #fff;
	font-size: 1.1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.form-submit-btn:hover {
	background-color: #0069d9;
}

/* Success Message */
.form-message {
	display: none; /* Hidden by default */
	padding: 30px;
	border-radius: 8px;
	text-align: center;
}

.form-message--success {
	background-color: #28a745;
	color: #fff;
}

.form-message i {
	width: 48px;
	height: 48px;
	margin-bottom: 15px;
}

.form-message.is-visible {
	display: block; /* Shown by JS */
}

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

/* --- Cookie Popup --- */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 50%;
	transform: translateX(-50%);
	max-width: 500px;
	width: calc(100% - 40px);
	background-color: #1a1a1a;
	color: #fff;
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.is-visible {
	bottom: 20px; /* Animate in */
}

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

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

.cookie-popup__btn {
	background-color: var(--accent-color);
	color: #fff;
	border: none;
	padding: 10px 20px;
	border-radius: 5px;
	cursor: pointer;
	font-weight: 600;
	white-space: nowrap; /* Prevent button text from wrapping */
	transition: background-color 0.3s ease;
}

.cookie-popup__btn:hover {
	background-color: #0069d9;
}

/* Responsive for Cookie Popup */
@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/* --- Policy Pages Styles --- */
.pages {
	padding-top: calc(
		var(--header-height) + 60px
	); /* 60px extra space from header */
	padding-bottom: 60px;
	background-color: #fff;
}

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

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

.pages h2 {
	font-size: 1.5rem;
	margin-top: 40px;
	margin-bottom: 20px;
}

.pages p,
.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	color: var(--secondary-text-color);
	margin-bottom: 20px;
}

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

.pages ul {
	list-style: disc;
	padding-left: 25px;
}

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