/* GLOBAL STYLES */
:root {
	--primary-color: #0d263b;
	--accent-color: #4895ef;
	--bg-color: #f4f7f5;
	--text-color: #0d263b;
	--secondary-text-color: #778da9;
	--white-color: #ffffff;

	--font-heading: 'Poppins', sans-serif;
	--font-body: 'Inter', sans-serif;

	--header-height: 80px;
}

*,
*::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;
	background-color: var(--white-color);
	color: var(--text-color);
}

.body--no-scroll {
	overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-heading);
	font-weight: 700;
}

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

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

ul {
	list-style: none;
}

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

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 20px;
}

.logo {
	display: flex;
	align-items: center;
	gap: 12px;
	font-family: var(--font-heading);
	font-weight: 700;
	font-size: 24px;
	color: var(--primary-color);
}
.logo:hover {
	color: var(--primary-color);
}

/* HEADER */
.header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: var(--header-height);
	background-color: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	z-index: 100;
	display: flex;
	align-items: center;
	border-bottom: 1px solid #e0e0e0;
}

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

.header__nav {
	display: none;
}

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

/* Mobile Menu Styles */
.nav {
	position: fixed;
	top: 0;
	right: -100%;
	width: 80%;
	max-width: 320px;
	height: 100vh;
	background-color: var(--primary-color);
	z-index: 101;
	transition: right 0.4s cubic-bezier(0.77, 0, 0.175, 1);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 20px;
}

.nav.nav--open {
	right: 0;
}

.nav__list {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 30px;
}

.nav__link {
	font-family: var(--font-heading);
	font-size: 22px;
	color: var(--white-color);
	padding: 10px;
}
.nav__link:hover {
	color: var(--accent-color);
}

.nav__link--button {
	background-color: var(--accent-color);
	color: var(--white-color);
	padding: 10px 20px;
	border-radius: 5px;
}
.nav__link--button:hover {
	background-color: #3a86e0;
	color: var(--white-color);
}

.header__burger.header__burger--close {
	position: fixed;
	top: 25px;
	right: 20px;
	z-index: 102;
	color: var(--white-color);
}

/* FOOTER */
.footer {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 60px 0 20px;
	margin-top: 80px;
}

.footer__container {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

.footer__column--about .footer__logo span {
	color: var(--white-color);
}

.footer__description {
	margin-top: 20px;
	color: var(--secondary-text-color);
	max-width: 300px;
}

.footer__title {
	font-size: 20px;
	margin-bottom: 20px;
}

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

.footer__link {
	color: var(--secondary-text-color);
}
.footer__link:hover {
	color: var(--white-color);
}

.footer__contact-item {
	display: flex;
	align-items: center;
	gap: 12px;
	color: var(--secondary-text-color);
}
.footer__contact-item span {
	flex: 1;
}

.footer__bottom {
	text-align: center;
	margin-top: 60px;
	padding-top: 20px;
	border-top: 1px solid #3a506b;
	color: var(--secondary-text-color);
	font-size: 14px;
}

/* DESKTOP STYLES */
@media (min-width: 768px) {
	.header__burger {
		display: none;
	}

	.header__nav {
		display: block;
		flex: 1;
		max-width: calc(100% - 200px); /* Забезпечуємо місце для логотипу */
	}

	.nav {
		position: static;
		width: 100%;
		height: auto;
		background: none;
		transition: none;
		flex-direction: row;
		padding: 0;
		justify-content: flex-end; /* Вирівнюємо навігацію вправо */
	}

	.nav__list {
		flex-direction: row;
		align-items: center;
		gap: 25px;
		justify-content: flex-end;
		flex-wrap: nowrap; /* Запобігаємо переносу елементів */
	}

	.nav__link {
		font-size: 16px;
		color: var(--primary-color);
		font-family: var(--font-body);
		font-weight: 500;
		padding: 5px;
		position: relative;
		white-space: nowrap; /* Запобігаємо переносу тексту */
	}

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

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

	.nav__link--button {
		color: var(--white-color);
		padding: 10px 20px;
	}
	.nav__link--button:hover {
		color: var(--white-color);
	}
	.nav__link--button::after {
		display: none;
	}
}

/* TABLET STYLES */
@media (min-width: 768px) and (max-width: 991px) {
	.nav__list {
		gap: 20px; /* Зменшуємо відстань між елементами на планшетах */
	}

	.nav__link {
		font-size: 15px;
	}
}

/* LARGE DESKTOP STYLES */
@media (min-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(4, 1fr);
		gap: 30px;
	}

	.header__nav {
		max-width: calc(
			100% - 250px
		); /* Більше місця для логотипу на великих екранах */
	}

	.nav__list {
		gap: 30px; /* Збільшуємо відстань на великих екранах */
	}
}

/* EXTRA LARGE DESKTOP STYLES */
@media (min-width: 1200px) {
	.container {
		max-width: 1200px; /* Збільшуємо максимальну ширину контейнера */
	}

	.header__nav {
		max-width: calc(100% - 300px);
	}
}

/* SHARED COMPONENTS */
.button {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background-color: var(--accent-color);
	color: var(--white-color);
	padding: 14px 28px;
	border-radius: 8px;
	font-family: var(--font-heading);
	font-weight: 500;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}
.button:hover {
	background-color: #3a86e0;
	transform: translateY(-3px);
	color: var(--white-color);
}
.button i {
	width: 20px;
	height: 20px;
}

/* HERO SECTION */
.hero {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 60px;
	background-color: var(--white-color);
	overflow: hidden;
}

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

.hero__content {
	text-align: center;
	/* Animation */
	opacity: 0;
	transform: translateY(20px);
	animation: fadeIn 0.8s 0.2s forwards ease-out;
}

.hero__tagline {
	display: inline-block;
	margin-bottom: 15px;
	font-weight: 500;
	color: var(--accent-color);
}

.hero__title {
	font-size: 1.5rem; /* 40px */
	line-height: 1.2;
	margin-bottom: 20px;
}

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

/* Typing cursor effect */
.hero__title--animated::after {
	content: '|';
	display: inline-block;
	animation: blink 0.7s infinite;
	color: var(--text-color);
}

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

.hero__description {
	font-size: 1.1rem; /* 18px */
	color: var(--secondary-text-color);
	max-width: 600px;
	margin: 0 auto 30px;
}

.hero__visual {
	/* Animation */
	opacity: 0;
	transform: translateY(20px);
	animation: fadeIn 0.8s 0.4s forwards ease-out;
}

.hero__image-wrapper {
	position: relative;
	/* max-width: 500px; */
	margin: 0 auto;
}

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

/* Decorative element */
.hero__image-wrapper::before {
	content: '';
	position: absolute;
	bottom: -20px;
	right: -20px;
	width: 80%;
	height: 80%;
	background-color: var(--bg-color);
	border-radius: 16px;
	z-index: -1;
	transition: transform 0.4s ease;
}

.hero:hover .hero__image-wrapper::before {
	transform: translate(10px, 10px);
}

@keyframes fadeIn {
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* DESKTOP STYLES for HERO */
@media (min-width: 768px) {
	.hero {
		padding-top: calc(var(--header-height) + 80px);
		padding-bottom: 80px;
	}

	.hero__title {
		font-size: 2.5rem; /* 52px */
	}
}

@media (min-width: 992px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
		gap: 60px;
	}

	.hero__content {
		text-align: left;
	}

	.hero__description {
		margin: 0 0 40px 0;
	}
}


/* SHARED SECTION STYLES */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.section-header__subtitle {
    display: block;
    font-weight: 500;
    color: var(--accent-color);
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.section-header__title {
    font-size: 2.2rem; /* 35px */
    margin-bottom: 15px;
}

.section-header__description {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
}

/* SERVICES SECTION */
.services {
    background-color: var(--bg-color);
}

.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.service-card {
    background-color: var(--white-color);
    padding: 35px 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #e0e6ed;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(13, 38, 59, 0.1);
}

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

.service-card__icon i {
    width: 30px;
    height: 30px;
}

.service-card__title {
    font-size: 1.4rem; /* 22px */
    margin-bottom: 15px;
}

.service-card__text {
    color: var(--secondary-text-color);
    line-height: 1.7;
}

/* DESKTOP STYLES for SERVICES */
@media (min-width: 576px) {
    .services__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .services__grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .section-header__title {
        font-size: 2.5rem; /* 40px */
    }
}

/* PROCESS SECTION */
.process {
    background-color: var(--white-color);
}

.process__steps-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.process-step {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.process-step__visual img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(13, 38, 59, 0.08);
    width: 100%;
}

.process-step__content {
    background-color: var(--bg-color);
    padding: 30px;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.process-step__number {
    font-family: var(--font-heading);
    font-size: 4rem; /* 64px */
    font-weight: 700;
    color: #e0e6ed;
    position: absolute;
    top: -15px;
    right: 20px;
    z-index: 1;
    line-height: 1;
}

.process-step__title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

.process-step__text {
    color: var(--secondary-text-color);
    position: relative;
    z-index: 2;
}

/* DESKTOP STYLES for PROCESS */
@media (min-width: 992px) {
    .process__steps-wrapper {
        gap: 0; /* Remove gap, spacing will be handled by positioning */
    }

    /* The vertical timeline */
    .process__steps-wrapper::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 3px;
        height: 100%;
        background-color: var(--bg-color);
        z-index: 1;
    }

    .process-step {
        flex-direction: row;
        align-items: center;
        width: 50%;
        position: relative;
        margin-bottom: 50px;
    }
    
    .process-step:last-child {
        margin-bottom: 0;
    }

    /* Timeline circle */
    .process-step::after {
        content: '';
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 20px;
        height: 20px;
        border-radius: 50%;
        background-color: var(--accent-color);
        border: 4px solid var(--white-color);
        z-index: 2;
    }
    
    .process-step {
        align-self: flex-start; /* Aligns to the left */
        padding-right: 50px;
    }
    .process-step::after {
        right: -10px; /* Position circle on the timeline */
    }

    .process-step--reverse {
        align-self: flex-end; /* Aligns to the right */
        padding-left: 50px;
        padding-right: 0;
    }
    .process-step--reverse::after {
        left: -10px; /* Position circle on the timeline */
    }
    
    .process-step--reverse .process-step__visual {
        order: 2;
    }
    .process-step--reverse .process-step__content {
        order: 1;
    }
    
    .process-step__visual, .process-step__content {
        flex: 1;
    }
}

/* INSIGHTS SECTION */
.insights {
    background-color: var(--bg-color);
}

.insights__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

.insight-card {
    background-color: var(--white-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(13, 38, 59, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.insight-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(13, 38, 59, 0.1);
}

.insight-card__image-wrapper {
    overflow: hidden; /* This is crucial for the zoom effect */
}

.insight-card__image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.insight-card__content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Makes sure the content area grows */
}

.insight-card__category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    background-color: var(--accent-color);
    color: var(--white-color);
    border-radius: 20px;
    margin-bottom: 15px;
    align-self: flex-start;
}

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

.insight-card__excerpt {
    color: var(--secondary-text-color);
    margin-bottom: 20px;
    flex-grow: 1; /* Pushes the link to the bottom */
}

.insight-card__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    color: var(--accent-color);
    margin-top: auto; /* Aligns the link to the bottom */
    align-self: flex-start;
}
.insight-card__link i {
    transition: transform 0.3s ease;
}
.insight-card__link:hover i {
    transform: translateX(4px);
}

/* DESKTOP STYLES for INSIGHTS */
@media (min-width: 768px) {
    .insights__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* ABOUT SECTION */
.about {
    background-color: var(--white-color);
    padding: 80px 0;
}

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

.about__visual {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.about__image-container {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.about__image {
    width: 100%;
}

/* Decorative element */
.about__image-container::after {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    width: 70%;
    height: 70%;
    background-color: var(--accent-color);
    opacity: 0.1;
    border-radius: 16px;
    z-index: -1;
}

.about__content .section-header__title {
    text-align: left;
    margin-bottom: 20px;
}

.about__text {
    color: var(--secondary-text-color);
    margin-bottom: 30px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.about__stats {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    text-align: center;
}

.stat-item {
    flex: 1;
}

.stat-item__value {
    display: block;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent-color);
}

.stat-item__label {
    font-size: 1rem;
    color: var(--secondary-text-color);
}

/* DESKTOP STYLES for ABOUT */
@media (min-width: 992px) {
    .about__container {
        grid-template-columns: 1fr 1.1fr; /* Make content column slightly larger */
        gap: 80px;
    }
}

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

.contact__wrapper {
    max-width: 700px;
    margin: 0 auto;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(13, 38, 59, 0.08);
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-input-wrapper {
    position: relative;
}

.form-input-wrapper i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-text-color);
    width: 20px;
    height: 20px;
}

.form-input {
    width: 100%;
    padding: 14px 14px 14px 50px;
    border: 1px solid #d1d9e6;
    border-radius: 8px;
    font-size: 16px;
    font-family: var(--font-body);
    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(72, 149, 239, 0.2);
}

.form-group--checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.form-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #d1d9e6;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 3px;
    flex-shrink: 0;
    position: relative;
    transition: background-color 0.2s, border-color 0.2s;
}

.form-checkbox:checked {
    background-color: var(--accent-color);
    border-color: var(--accent-color);
}

.form-checkbox:checked::after {
    content: '\2713'; /* Checkmark symbol */
    font-size: 14px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.form-checkbox-label {
    font-size: 14px;
    color: var(--secondary-text-color);
}
.form-checkbox-label a {
    color: var(--accent-color);
    text-decoration: underline;
}

.form-submit-btn {
    width: 100%;
    justify-content: center;
    padding: 16px;
    font-size: 18px;
    border: none;
    cursor: pointer;
}

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

.form-success-message--show {
    display: block; /* Shown via JS */
}

.form-success-message__icon {
    color: #28a745; /* Success Green */
    margin-bottom: 20px;
}
.form-success-message__icon i {
    width: 60px;
    height: 60px;
}

.form-success-message__title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.form-success-message__text {
    font-size: 1.1rem;
    color: var(--secondary-text-color);
}

@media (min-width: 576px) {
    .contact__wrapper {
        padding: 50px;
    }
}

/* COOKIE CONSENT POPUP */
.cookie-consent {
    position: fixed;
    bottom: -100%; /* Initially hidden */
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white-color);
    z-index: 200;
    padding: 20px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.1);
    transition: bottom 0.5s ease-in-out;
}

.cookie-consent--show {
    bottom: 0;
}

.cookie-consent__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-consent__text {
    text-align: center;
    color: #e0e6ed;
}

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

.cookie-consent__button {
    background-color: var(--accent-color);
    color: var(--white-color);
    border: none;
    padding: 10px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-family: var(--font-body);
    font-weight: 500;
    transition: background-color 0.3s ease;
    flex-shrink: 0;
}

.cookie-consent__button:hover {
    background-color: #3a86e0;
}

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

/* GENERIC PAGES STYLING (privacy.html, terms.html, etc.) */
.pages {
    padding-top: calc(var(--header-height) + 60px);
    padding-bottom: 80px;
}

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

.pages h1 {
    font-size: 2.8rem;
    margin-bottom: 30px;
    line-height: 1.2;
}

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

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

.pages a {
    text-decoration: underline;
    font-weight: 500;
}
.pages a:hover {
    text-decoration: none;
}

.pages ul, .pages ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

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

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

@media (max-width: 768px) {
    .pages h1 {
        font-size: 2.2rem;
    }
    .pages h2 {
        font-size: 1.8rem;
    }
}