/* ======== GLOBAL STYLES ======== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@400;700&family=Inter:wght@400;500;600&display=swap');

/* CSS Variables */
:root {
	--header-height: 4.5rem;

	/* Colors */
	--primary-color: #00a79d;
	--primary-color-alt: #008a7f;
	--dark-color: #1a2e3b;
	--text-color: #4a5568;
	--body-color: #f7f9fa;
	--container-color: #ffffff;

	/* Fonts */
	--body-font: 'Inter', sans-serif;
	--title-font: 'Roboto Slab', serif;
	--h1-font-size: 2.25rem;
	--h2-font-size: 1.5rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Font weight */
	--font-regular: 400;
	--font-medium: 500;
	--font-bold: 700;

	/* z-index */
	--z-tooltip: 10;
	--z-fixed: 100;
}

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

html {
	scroll-behavior: smooth;
}

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

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

ul {
	list-style: none;
}

a {
	text-decoration: none;
	color: var(--text-color);
}

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

/* Reusable CSS Classes */
.container {
	max-width: 1120px;
	margin-left: 1.5rem;
	margin-right: 1.5rem;
}

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

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

.header__logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: var(--dark-color);
	font-family: var(--title-font);
	font-weight: var(--font-bold);
	font-size: 1.25rem;
}

.header__logo-icon {
	width: 32px;
	height: 32px;
}

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

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

.header__nav-link {
	color: var(--text-color);
	font-weight: var(--font-medium);
	transition: color 0.3s;
}

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

.header__nav-link--cta {
	background-color: var(--primary-color);
	color: white;
	padding: 0.5rem 1rem;
	border-radius: 6px;
	transition: background-color 0.3s;
}

.header__nav-link--cta:hover {
	background-color: var(--primary-color-alt);
	color: white;
}

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

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

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

.footer__logo-icon path {
	stroke: var(--container-color);
}

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

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

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

.footer__link {
	color: #a0aec0;
	transition: color 0.3s;
	font-size: var(--small-font-size);
}

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

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

.footer__contact-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	margin-top: 4px;
}

.footer__address {
	font-size: var(--small-font-size);
	line-height: 1.5;
}

.footer__bottom {
	padding: 1.5rem 0;
	text-align: center;
	font-size: var(--small-font-size);
}

/* ======== RESPONSIVE STYLES (Mobile First) ======== */

/* For medium devices */
@media screen and (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: 0;
		right: -100%;
		width: 70%;
		height: 100%;
		background-color: var(--container-color);
		box-shadow: -2px 0 12px hsla(219, 48%, 8%, 0.1);
		padding: 4rem 2rem 0;
		transition: right 0.4s ease;
	}

	.header__nav.show-menu {
		right: 0;
	}

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

	.header__burger {
		position: relative;
		z-index: 999;
		display: block;
	}

	.header__burger.is-active .lucide-menu {
		display: none;
	}
	.header__burger:not(.is-active) .lucide-x {
		display: none;
	}
}

/* For small devices */
@media screen and (max-width: 350px) {
	.container {
		margin-left: 1rem;
		margin-right: 1rem;
	}
}

/* For large devices */
@media screen and (min-width: 1150px) {
	.container {
		margin-left: auto;
		margin-right: auto;
	}
}

/* ======== REUSABLE COMPONENTS ======== */
.button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: white;
	padding: 0.8rem 1.75rem;
	border-radius: 6px;
	font-weight: var(--font-medium);
	transition: background-color 0.3s, transform 0.3s;
	border: none;
	cursor: pointer;
}

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

.button__icon {
	width: 20px;
	height: 20px;
}

/* ======== HERO SECTION ======== */
.hero {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 4rem;
	background-color: var(--container-color);
}

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

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

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

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

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

/* ======== RESPONSIVE STYLES (доповнення) ======== */

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

	.hero__content {
		order: -1; /* Text appears on the left */
	}

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

/* For large devices */
@media screen and (min-width: 1024px) {
	.hero {
		padding-top: calc(var(--header-height) + 5rem);
		padding-bottom: 5rem;
	}

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

/* ======== REUSABLE COMPONENTS (доповнення) ======== */
.section {
	padding-top: 5rem;
	padding-bottom: 5rem;
}

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

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

.section__subtitle {
	max-width: 600px;
	margin: 0 auto;
	font-size: 1.125rem;
}

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

.strategy__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.5rem;
}

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

.strategy-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px hsla(219, 48%, 8%, 0.1);
}

.strategy-card__icon {
	display: inline-flex;
	padding: 1rem;
	background-color: hsl(176, 100%, 95%); /* Light teal */
	color: var(--primary-color);
	border-radius: 50%;
	margin-bottom: 1.5rem;
}

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

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

.strategy-card__description {
	font-size: var(--normal-font-size);
}

/* ======== RESPONSIVE STYLES (доповнення) ======== */

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

/* For large devices */
@media screen and (min-width: 992px) {
	.strategy__grid {
		grid-template-columns: repeat(3, 1fr);
	}

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

/* ======== REUSABLE COMPONENTS (доповнення) ======== */
/* Модифікатори для вирівнювання заголовків секцій по лівому краю */
.section__header--left {
	text-align: left;
	margin-bottom: 2rem;
}

.section__header--left .section__subtitle--left,
.section__header--left .section__subtitle {
	margin-left: 0;
	margin-right: 0;
	max-width: 100%;
}

/* ======== TECHNOLOGIES SECTION ======== */
.tech {
	background-color: var(--container-color);
}

.tech__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
	align-items: center;
}

.tech__list {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	margin-top: 2rem;
}

.tech__list-item {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.75rem;
}

.tech__list-icon {
	flex-shrink: 0;
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	margin-top: 2px;
}

.tech__stack {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
	gap: 1rem;
}

.tech-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	padding: 1.5rem 1rem;
	background-color: var(--body-color);
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	transition: transform 0.3s, border-color 0.3s;
}

.tech-item:hover {
	transform: translateY(-5px);
	border-color: var(--primary-color);
}

.tech-item__icon {
	width: 36px;
	height: 36px;
	color: var(--dark-color);
}

.tech-item__name {
	font-weight: var(--font-medium);
	color: var(--dark-color);
}

/* ======== RESPONSIVE STYLES (доповнення) ======== */
@media screen and (min-width: 768px) {
	.tech__container {
		grid-template-columns: repeat(2, 1fr);
	}

	.tech__list-item {
		flex-direction: row;
	}
}

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

.cases__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.case-card {
	background-color: var(--container-color);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 6px hsla(219, 48%, 8%, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}

.case-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px hsla(219, 48%, 8%, 0.1);
}

.case-card__image-wrapper {
	overflow: hidden;
	height: 220px;
}

.case-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.case-card:hover .case-card__image {
	transform: scale(1.05);
}

.case-card__content {
	padding: 1.5rem;
}

.case-card__tag {
	display: inline-block;
	background-color: hsl(176, 100%, 95%);
	color: var(--primary-color);
	padding: 0.25rem 0.75rem;
	border-radius: 999px; /* pill shape */
	font-size: var(--small-font-size);
	font-weight: var(--font-medium);
	margin-bottom: 1rem;
}

.case-card__title {
	font-size: 1.35rem; /* Slightly larger than h3 */
	margin-bottom: 0.75rem;
}

.case-card__description {
	font-size: var(--normal-font-size);
}

/* ======== RESPONSIVE STYLES (доповнення) ======== */
@media screen and (min-width: 576px) {
	.cases__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.cases__grid {
		/* We can keep it at 2 columns for larger cards or switch to 3 */
		grid-template-columns: repeat(3, 1fr);
	}
}

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

.blog__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
}

.blog-card {
	display: flex;
	flex-direction: column;
	background-color: var(--container-color);
	border-radius: 8px;
	border: 1px solid #e2e8f0;
	overflow: hidden;
	box-shadow: 0 4px 6px hsla(219, 48%, 8%, 0.05);
	transition: transform 0.3s, box-shadow 0.3s;
}

.blog-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px hsla(219, 48%, 8%, 0.1);
}

.blog-card__image-wrapper {
	overflow: hidden;
	height: 220px;
}

.blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease-out;
}

.blog-card:hover .blog-card__image {
	transform: scale(1.05);
}

.blog-card__content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Makes card content fill the space */
}

.blog-card__meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: var(--small-font-size);
	color: var(--text-color);
	margin-bottom: 1rem;
}

.blog-card__meta-icon {
	width: 14px;
	height: 14px;
}

.blog-card__title {
	font-size: 1.3rem;
	margin-bottom: 0.75rem;
}

.blog-card__title a {
	color: var(--dark-color);
	transition: color 0.3s;
}

.blog-card__title a:hover {
	color: var(--primary-color);
}

.blog-card__description {
	font-size: var(--normal-font-size);
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.blog-card__link {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	color: var(--primary-color);
	font-weight: var(--font-medium);
	transition: gap 0.3s;
}

.blog-card__link:hover {
	gap: 0.5rem; /* Icon moves away on hover */
}

.blog-card__link-icon {
	width: 18px;
	height: 18px;
}

/* ======== RESPONSIVE STYLES (доповнення) ======== */
@media screen and (min-width: 576px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media screen and (min-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

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

.contact__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 3rem;
}

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

.contact__info-description {
	margin-bottom: 2rem;
}

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

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

.contact__info-icon {
	width: 24px;
	height: 24px;
	color: var(--primary-color);
}

.contact__form-wrapper {
	position: relative;
}

/* Form styles */
.contact__form {
	display: grid;
	gap: 1.5rem;
}

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

.form__label {
	margin-bottom: 0.5rem;
	font-weight: var(--font-medium);
	color: var(--dark-color);
}

.form__input {
	width: 100%;
	padding: 0.75rem 1rem;
	border: 1px solid #cbd5e0;
	border-radius: 6px;
	font-family: var(--body-font);
	font-size: var(--normal-font-size);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.form__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px hsla(176, 100%, 39%, 0.2);
}

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

.form__checkbox-input {
	margin-top: 5px;
	width: 1.15em;
	height: 1.15em;
	accent-color: var(--primary-color);
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	font-weight: var(--font-regular);
}

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

.contact__button {
	width: 100%;
}

/* Success Message */
.form__success-message {
	display: none; /* Hidden by default */
	background-color: var(--container-color);
	border: 1px solid var(--primary-color);
	border-radius: 8px;
	padding: 2rem;
	text-align: center;
}

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

/* ======== RESPONSIVE STYLES (доповнення) ======== */
@media screen and (min-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr 1.25fr; /* Left column smaller */
		gap: 5rem;
	}
}

/* ======== COOKIE POPUP ======== */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	background-color: var(--dark-color);
	color: var(--container-color);
	padding: 1.5rem 2rem;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
	gap: 1rem;
	z-index: calc(var(--z-fixed) + 10);
	transform: translateY(100%);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup.show {
	transform: translateY(0);
}

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

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

.cookie-popup__button {
	padding: 0.5rem 1.5rem;
	font-size: var(--small-font-size);
}

@media screen and (min-width: 768px) {
	.cookie-popup {
		flex-direction: row;
		justify-content: space-between;
		text-align: left;
	}
}

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

.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: 1.5rem;
	line-height: 1.7;
}

.pages ul,
.pages ol {
	margin-bottom: 1.5rem;
	padding-left: 1.5rem;
}

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

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

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