:root {
	--font-heading: 'Manrope', sans-serif;
	--font-body: 'Lora', serif;
	--color-text: #2c3e50;
	--color-primary: #3498db;
	--color-bg: #ecf0f1;
	--color-white: #ffffff;
	--container-width: 1200px;
	--container-padding: 15px;
}

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

html {
	scroll-behavior: smooth;
}

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

.container {
	max-width: var(--container-width);
	margin: 0 auto;
	padding: 0 var(--container-padding);
}

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

a:hover {
	color: var(--color-text);
}

ul {
	list-style: none;
}

h1,
h2,
h3 {
	font-family: var(--font-heading);
	font-weight: 800;
}

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

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-heading);
	font-size: 24px;
	font-weight: 800;
	color: var(--color-text);
}

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

.header__nav-link {
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 16px;
	color: var(--color-text);
	position: relative;
}

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

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

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

/* Footer */
.footer {
	background-color: var(--color-text);
	color: var(--color-bg);
	padding: 60px 0;
}

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 40px;
}

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

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

.footer .logo svg path:first-child {
	stroke: var(--color-primary);
}

.footer__title {
	color: var(--color-white);
	margin-bottom: 20px;
}

.footer__link {
	color: var(--color-bg);
	margin-bottom: 10px;
	display: inline-block;
}

.footer__list--contacts li {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 10px;
}

/* Mobile styles */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 80%;
		height: 100vh;
		background-color: var(--color-white);
		box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		transition: right 0.4s ease-in-out;
	}

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

	.header__nav-list {
		flex-direction: column;
		gap: 30px;
		text-align: center;
	}

	.header__nav-link {
		font-size: 24px;
	}

	.header__burger {
		display: block;
		z-index: 1001; /* Ensure it's on top of nav */
	}
}

main {
	padding-top: 70px; /* Header height */
}

/* General Button Style */
.btn {
	display: inline-block;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 15px 30px;
	border-radius: 50px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 18px;
	text-transform: uppercase;
	transition: background-color 0.3s ease, transform 0.3s ease;
	box-shadow: 0 4px 15px rgba(52, 152, 219, 0.4);
	border: none;
	cursor: pointer;
}

.btn:hover {
	background-color: #2980b9; /* Darker shade of primary */
	transform: translateY(-3px);
	color: var(--color-white);
}

/* Hero Section */
.hero {
	position: relative;
	min-height: 90vh;
	padding-top: 100px; /* Offset for header */
	display: flex;
	align-items: center;
	text-align: center;
	overflow: hidden;
	background-color: var(--color-white);
}

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

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

.hero__title {
	font-size: 3.5rem;
	font-weight: 800;
	margin-bottom: 20px;
	line-height: 1.2;
	animation: fadeInDown 1s ease-out;
}

.hero__subtitle {
	font-size: 1.25rem;
	margin-bottom: 40px;
	color: #555;
	animation: fadeInUp 1s ease-out 0.3s;
	animation-fill-mode: both; /* Keeps the state of the animation after it's done */
}

.hero .btn {
	animation: fadeInUp 1s ease-out 0.6s;
	animation-fill-mode: both;
}

/* Animated background shapes */
.hero__bg-shape {
	position: absolute;
	border-radius: 50%;
	background-color: rgba(52, 152, 219, 0.1);
	z-index: 1;
	animation: float 20s infinite linear;
}

.hero__bg-shape--1 {
	width: 300px;
	height: 300px;
	top: 10%;
	left: 5%;
}

.hero__bg-shape--2 {
	width: 500px;
	height: 500px;
	bottom: 5%;
	right: 10%;
	animation-delay: 5s;
	animation-duration: 25s;
}

@keyframes float {
	0% {
		transform: translateY(0) rotate(0deg) scale(1);
	}
	50% {
		transform: translateY(-20px) rotate(180deg) scale(1.05);
	}
	100% {
		transform: translateY(0) rotate(360deg) scale(1);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

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

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

.section__title {
	font-size: 2.5rem;
	text-align: center;
	margin-bottom: 20px;
	font-weight: 800;
}

.section__subtitle {
	font-size: 1.1rem;
	text-align: center;
	max-width: 700px;
	margin: 0 auto 60px auto;
	color: #555;
	line-height: 1.7;
}

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

.strategy__card {
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 10px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.strategy__card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.strategy__card-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 60px;
	height: 60px;
	margin-bottom: 25px;
	background-color: var(--color-primary);
	color: var(--color-white);
	border-radius: 50%;
}

.strategy__card-icon svg {
	width: 30px;
	height: 30px;
}

.strategy__card-title {
	font-size: 1.5rem;
	margin-bottom: 15px;
}

.strategy__card-text {
	font-size: 1rem;
	line-height: 1.7;
}

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

/* Section--white modifier */
.section--white {
	background-color: var(--color-white);
}

/* Tools Section */
.tools__grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
}

.tools__image-wrapper {
	width: 100%;
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.tools__image-wrapper img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tools__list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.tools__list-item {
	display: flex;
	align-items: center;
	gap: 20px;
	font-size: 1.1rem;
	margin-bottom: 25px;
	font-family: var(--font-heading);
	font-weight: 600;
}

.tools__list-item:last-child {
	margin-bottom: 0;
}

.tools__list-item svg {
	color: var(--color-primary);
	width: 28px;
	height: 28px;
	flex-shrink: 0; /* Prevents icon from shrinking */
}

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

	.tools__image-wrapper {
		/* The image will be on top by default in a single column layout */
		/* We can add margin if needed, but flex-gap might handle it */
		margin-bottom: 40px;
	}
}

/* Cases Section */
.cases__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

.case-card {
	background-color: var(--color-white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.case-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.case-card__image {
	width: 100%;
	height: 200px;
}

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

.case-card__content {
	padding: 30px;
	flex-grow: 1; /* Allows content to fill space */
}

.case-card__title {
	font-size: 1.4rem;
	margin-bottom: 20px;
}

.case-card__text {
	margin-bottom: 15px;
}

.case-card__text:last-child {
	margin-bottom: 0;
}

.case-card__text strong {
	color: var(--color-primary);
	font-family: var(--font-heading);
}

/* Blog Section */
.blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	gap: 30px;
}

.blog-card {
	display: flex;
	flex-direction: column;
	background-color: var(--color-white);
	border-radius: 10px;
	overflow: hidden;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	color: var(--color-text);
	text-decoration: none;
	border: 1px solid #eee;
}

.blog-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 15px 30px rgba(44, 62, 80, 0.1);
}

.blog-card__image {
	width: 100%;
	height: 200px;
}

.blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__content {
	padding: 30px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.blog-card__category {
	display: inline-block;
	align-self: flex-start;
	background-color: var(--color-primary);
	color: var(--color-white);
	padding: 5px 12px;
	border-radius: 50px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.8rem;
	margin-bottom: 15px;
	text-transform: uppercase;
}

.blog-card__title {
	font-size: 1.3rem;
	margin-bottom: 15px;
	line-height: 1.4;
	flex-grow: 1; /* Pushes the date to the bottom */
}

.blog-card__date {
	font-size: 0.9rem;
	color: #777;
	margin-top: auto; /* Aligns date to the bottom */
}

/* Contact Section */
.contact-wrapper {
	max-width: 600px;
	margin: 0 auto;
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	position: relative;
	overflow: hidden;
}

.form-success-message {
	display: none; /* Hidden by default */
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: var(--color-white);
	color: var(--color-text);
	text-align: center;
	font-size: 1.2rem;
	font-family: var(--font-heading);
	flex-direction: column;
	align-items: center;
	justify-content: center;
	z-index: 10;
}

.form-success-message.is-visible {
	display: flex; /* Show the message */
}

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

.form-group {
	margin-bottom: 20px;
}

.form-control {
	width: 100%;
	padding: 15px;
	font-size: 16px;
	font-family: var(--font-body);
	border: 1px solid #ddd;
	border-radius: 5px;
	transition: border-color 0.3s ease;
}

.form-control:focus {
	outline: none;
	border-color: var(--color-primary);
}

.form-control.is-invalid {
	border-color: #e74c3c; /* Red color for error */
}

.form-group--checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
}

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

.form-group--checkbox label {
	font-size: 0.9rem;
}
.form-group--checkbox label.is-invalid {
	color: #e74c3c;
}

.btn--full {
	width: 100%;
}

/* Cookie Popup */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden below the screen */
	left: 20px;
	right: 20px;
	max-width: 800px;
	margin: 0 auto 20px auto;
	background-color: var(--color-text);
	color: var(--color-white);
	padding: 20px 25px;
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	z-index: 2000;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
	transition: bottom 0.5s ease-in-out;
}

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

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

.btn--cookie {
	padding: 10px 20px;
	font-size: 14px;
	flex-shrink: 0;
	background-color: var(--color-primary);
}

@media (max-width: 768px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
	}
}

/*
========================================
Policy & Legal Pages
========================================
*/
.pages {
	padding: 60px 0; /* More top padding to account for fixed header */
	background-color: var(--color-white);
	min-height: 80vh; /* Ensure footer is pushed down */
}

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

.pages h1,
.pages h2 {
	margin-bottom: 20px;
	line-height: 1.3;
}

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

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

.pages p {
	margin-bottom: 20px;
	line-height: 1.8;
	color: #333;
}

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

.pages li {
	margin-bottom: 15px;
	line-height: 1.8;
}

.pages a {
	text-decoration: underline;
}

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

.pages strong {
	font-family: var(--font-heading);
	font-weight: 600;
	color: var(--color-text);
}
