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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #0a2540;
	--accent-color: #00d4b3;
	--accent-color-hover: #00bfa0;
	--bg-light: #f8f9fa;
	--text-dark: #333333;
	--text-light: #6c757d;
	--white-color: #ffffff;
	--border-color: #e9ecef;

	/* Typography */
	--font-family-headings: 'Montserrat', sans-serif;
	--font-family-body: 'Manrope', sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Other */
	--header-height: 5rem;
	--border-radius: 8px;
	--transition-duration: 0.3s;
	--container-width: 1140px;
	--container-padding: 1rem;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-body);
	font-size: var(--normal-font-size);
	background-color: var(--white-color);
	color: var(--text-dark);
	line-height: 1.6;
}

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

ul {
	list-style: none;
}

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

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: var(--container-width);
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--container-padding);
	padding-right: var(--container-padding);
}

/* ==================== HEADER ==================== */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	background-color: var(--white-color);
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: background-color var(--transition-duration) ease;
}

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

.header__logo {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--primary-color);
	display: flex;
	align-items: center;
}
.header__logo svg path {
	transition: fill var(--transition-duration) ease;
}
.header__logo:hover svg path:first-child,
.header__logo:hover svg path:last-child {
	fill: var(--accent-color);
}

.header__nav-list {
	display: flex;
	gap: 2rem;
}

.header__nav-link {
	font-weight: 500;
	color: var(--primary-color);
	position: relative;
	padding: 0.5rem 0;
	transition: color var(--transition-duration) ease;
}

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

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

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

.header__burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	color: var(--primary-color);
}

.header__burger .lucide-x {
	display: none;
}

/* Mobile Menu Logic */
.menu-open .header__nav {
	transform: translateX(0);
}
.menu-open .header__burger .lucide-menu {
	display: none;
}
.menu-open .header__burger .lucide-x {
	display: block;
}

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

.footer__container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 2.5rem;
	padding-bottom: 3rem;
}

.footer__logo {
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--white-color);
	display: inline-block;
	margin-bottom: 1rem;
}

.footer__description {
	font-size: var(--small-font-size);
	color: var(--text-light);
	max-width: 250px;
}

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

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

.footer__link {
	color: var(--text-light);
	transition: color var(--transition-duration) ease,
		padding-left var(--transition-duration) ease;
}

.footer__link:hover {
	color: var(--accent-color);
	padding-left: 5px;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	color: var(--text-light);
}

.footer__list--contact .lucide {
	color: var(--accent-color);
	flex-shrink: 0;
}

.footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 1.5rem 0;
}

.footer__bottom-container {
	text-align: center;
	font-size: var(--small-font-size);
	color: var(--text-light);
}

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 768px) {
	:root {
		--h1-font-size: 2rem;
		--h2-font-size: 1.5rem;
		--h3-font-size: 1.125rem;
		--normal-font-size: 0.938rem;
	}

	.header__nav {
		position: fixed;
		top: var(--header-height);
		right: 0;
		width: 70%;
		height: 100vh;
		background-color: var(--white-color);
		box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1);
		padding: 2rem;
		transform: translateX(100%);
		transition: transform var(--transition-duration) ease-in-out;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: flex-start;
		gap: 1.5rem;
	}

	.header__nav-link {
		font-size: var(--h3-font-size);
	}

	.header__burger {
		display: block;
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.8rem 1.8rem;
	border-radius: var(--border-radius);
	font-family: var(--font-family-headings);
	font-weight: 600;
	font-size: var(--normal-font-size);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all var(--transition-duration) ease;
}

.button--primary {
	background-color: var(--accent-color);
	color: var(--primary-color);
}

.button--primary:hover {
	background-color: var(--accent-color-hover);
	transform: translateY(-3px);
	box-shadow: 0 4px 15px rgba(0, 212, 179, 0.3);
}

/* ==================== HERO SECTION ==================== */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	background-color: var(--bg-light);
	overflow: hidden; /* Важливо для позиціонування фігур */
}

.hero__container {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	align-items: center;
	gap: 3rem;
}

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

.hero__title--accent {
	color: var(--accent-color);
}

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

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

.hero__image {
	width: 100%;
	border-radius: var(--border-radius);
	position: relative;
	z-index: 2;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.hero__shape {
	position: absolute;
	border-radius: 50%;
	z-index: 1;
	transition: transform 3s ease-in-out; /* Плавний рух */
}

.hero__shape--1 {
	width: 200px;
	height: 200px;
	background-color: rgba(0, 212, 179, 0.1);
	top: -20%;
	left: -10%;
}

.hero__shape--2 {
	width: 150px;
	height: 150px;
	background-color: rgba(10, 37, 64, 0.05);
	bottom: -15%;
	right: -15%;
}

/* Responsive */
@media screen and (max-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr;
		text-align: center;
	}

	.hero__content {
		order: 2; /* Текст буде під картинкою */
	}

	.hero__image-wrapper {
		order: 1;
		margin-bottom: 3rem;
	}

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

@media screen and (max-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 2rem);
		padding-bottom: 2rem;
	}
}

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

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

.section__subtitle {
	display: block;
	font-size: var(--small-font-size);
	font-weight: 600;
	color: var(--accent-color);
	text-transform: uppercase;
	margin-bottom: 0.5rem;
}

.section__title {
	font-size: var(--h2-font-size);
	max-width: 600px;
	margin-left: auto;
	margin-right: auto;
}

/* ==================== SERVICES SECTION ==================== */
.services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 2rem;
}

.services__card {
	background-color: var(--white-color);
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	padding: 2.5rem 2rem;
	text-align: center;
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.services__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(10, 37, 64, 0.1);
}

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

.services__card-icon .lucide {
	width: 28px;
	height: 28px;
}

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

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

/* Responsive */
@media screen and (max-width: 768px) {
	.section {
		padding-top: 4rem;
		padding-bottom: 4rem;
	}
}

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

.cases__container {
	display: flex;
	flex-direction: column;
	gap: 4rem;
}

.cases__item {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 3rem;
}

/* Alternate layout for even items */
.cases__item:nth-child(even) .cases__image-wrapper {
	order: 2;
}

.cases__image-wrapper {
	position: relative;
}

.cases__image {
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.cases__content {
	padding: 1rem;
}

.cases__tag {
	display: inline-block;
	background-color: rgba(0, 212, 179, 0.1);
	color: var(--accent-color);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: var(--small-font-size);
	font-weight: 600;
	margin-bottom: 1rem;
}

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

.cases__description {
	color: var(--text-light);
	margin-bottom: 1.5rem;
}

.cases__link {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--primary-color);
	font-weight: 600;
	position: relative;
}

.cases__link::after {
	content: '';
	position: absolute;
	bottom: -2px;
	left: 0;
	width: 100%;
	height: 2px;
	background-color: var(--accent-color);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform var(--transition-duration) ease;
}

.cases__link:hover::after {
	transform: scaleX(1);
}

.cases__link .lucide {
	transition: transform var(--transition-duration) ease;
}

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

/* Responsive */
@media screen and (max-width: 992px) {
	.cases__item,
	.cases__item:nth-child(even) {
		grid-template-columns: 1fr;
	}

	.cases__item:nth-child(even) .cases__image-wrapper {
		order: 1; /* Reset order for stacking */
	}

	.cases__content {
		text-align: center;
	}
}

/* ==================== ABOUT SECTION ==================== */
.about__container {
	display: grid;
	grid-template-columns: 0.9fr 1.1fr;
	align-items: center;
	gap: 3rem;
	margin-bottom: 5rem;
}

.about__image {
	width: 100%;
	border-radius: var(--border-radius);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

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

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

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

.about__list-item .lucide {
	color: var(--accent-color);
	flex-shrink: 0;
}

/* ==================== CTA (Call to Action) ==================== */
.cta {
	background: var(--primary-color) url('../img/cta.webp') no-repeat center
		center/cover;
	background-blend-mode: overlay;
	background-color: rgba(10, 37, 64, 0.85); /* Затемнення фону */
	padding: 3rem 2.5rem;
	border-radius: var(--border-radius);
	display: flex;
	justify-content: space-between;
	align-items: center;
	color: var(--white-color);
}

.cta__title {
	color: var(--white-color);
	font-size: 1.7rem;
	margin-bottom: 0.5rem;
}

.cta__description {
	color: var(--white-color);
	max-width: 450px;
}

/* Responsive */
@media screen and (max-width: 992px) {
	.about__container {
		grid-template-columns: 1fr;
	}
}

@media screen and (max-width: 768px) {
	.cta {
		flex-direction: column;
		text-align: center;
		gap: 1.5rem;
	}

	.cta__title {
		font-size: 1.5rem;
	}
}

/* ==================== BLOG SECTION ==================== */
.blog {
	background-color: var(--bg-light);
}

.blog__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 2rem;
}

.blog__card {
	background-color: var(--white-color);
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform var(--transition-duration) ease,
		box-shadow var(--transition-duration) ease;
}

.blog__card:hover {
	transform: translateY(-8px);
	box-shadow: 0 8px 25px rgba(10, 37, 64, 0.1);
}

.blog__card-image-wrapper {
	overflow: hidden;
	height: 200px;
}

.blog__card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform var(--transition-duration) ease;
}

.blog__card:hover .blog__card-image {
	transform: scale(1.05);
}

.blog__card-content {
	padding: 1.5rem;
}

.blog__card-tag {
	display: inline-block;
	background-color: rgba(10, 37, 64, 0.05);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 50px;
	font-size: var(--small-font-size);
	font-weight: 600;
	margin-bottom: 1rem;
}

.blog__card-title {
	font-size: 1.15rem;
	margin-bottom: 0.75rem;
}

.blog__card-link {
	color: var(--primary-color);
	transition: color var(--transition-duration) ease;
}

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

.blog__card-excerpt {
	color: var(--text-light);
	font-size: var(--small-font-size);
}

/* ==================== CONTACT SECTION ==================== */
.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
}

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

.contact__info-description {
	color: var(--text-light);
	margin-bottom: 2rem;
}

.contact__info-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1rem;
	color: var(--text-dark);
}

.contact__info-item .lucide {
	color: var(--accent-color);
	flex-shrink: 0;
}

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

.form__group {
	position: relative;
	margin-bottom: 1.75rem;
}

.form__input {
	width: 100%;
	padding: 0.8rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: var(--border-radius);
	font-size: var(--normal-font-size);
	font-family: var(--font-family-body);
	outline: none;
	transition: border-color var(--transition-duration) ease;
}

.form__label {
	position: absolute;
	top: 0.8rem;
	left: 1rem;
	color: var(--text-light);
	background-color: var(--white-color);
	padding: 0 0.25rem;
	pointer-events: none;
	transition: all var(--transition-duration) ease;
}

.form__input:focus {
	border-color: var(--accent-color);
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -0.7rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--accent-color);
}

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

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

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

.form__button {
	width: 100%;
	justify-content: center;
}

.form__message {
	text-align: center;
	color: var(--accent-color);
	font-weight: 500;
	max-height: 0;
	overflow: hidden;
	opacity: 0;
	margin-top: 0;
	transition: all 0.5s ease-in-out;
}

.form__message.visible {
	opacity: 1;
	max-height: 50px; /* Adjust if needed */
	margin-top: 1.5rem;
}

/* Responsive */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 50%;
	transform: translateX(-50%);
	max-width: 90%;
	width: 600px;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 1.5rem 2rem;
	border-radius: var(--border-radius);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.visible {
	bottom: 2rem;
}

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;
}

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

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

.cookie-popup__button {
	padding: 0.6rem 1.2rem;
	flex-shrink: 0;
}

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

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

.pages h1,
.pages h2 {
	margin-bottom: 1.5rem;
}

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

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

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

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

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

.pages a {
	color: var(--accent-color);
	text-decoration: underline;
	font-weight: 500;
	transition: color var(--transition-duration) ease;
}

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

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

/* Responsive */
@media screen and (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
		gap: 1rem;
	}
}
