/* GLOBAL STYLES & SETUP */
:root {
	--primary-color: #0a4d68;
	--background-color: #f8f9fa;
	--text-color: #212529;
	--secondary-text-color: #6c757d;
	--white-color: #ffffff;
	--border-color: #dee2e6;

	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Poppins', sans-serif;

	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

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

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

a {
	text-decoration: none;
	color: inherit;
	transition: color 0.3s ease;
}

ul {
	list-style: none;
}

.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* HEADER */
.header {
	background-color: var(--background-color);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 100;
	border-bottom: 1px solid var(--border-color);
	transition: box-shadow 0.3s ease;
}

.header--scrolled {
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

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

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

.logo__icon {
	transition: transform 0.4s ease-in-out;
}

.logo:hover .logo__icon {
	transform: rotate(360deg);
}

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

.nav__link {
	font-size: 16px;
	font-weight: 500;
	color: var(--secondary-text-color);
	position: relative;
	padding: 5px 0;
}

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

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

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

.nav__link--button {
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 10px 20px;
	border-radius: 5px;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.nav__link--button:hover {
	background-color: #083b52;
	color: var(--white-color);
	transform: translateY(-2px);
}

.nav__link--button::after {
	display: none;
}

.burger {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	z-index: 110;
}

.burger__line {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--primary-color);
	margin: 5px 0;
	transition: all 0.3s ease-in-out;
}

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

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

.footer__col--about {
	grid-column: span 1;
}

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

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

.footer__copyright {
	font-size: 14px;
	color: rgba(255, 255, 255, 0.7);
	margin-top: 20px;
}

.footer__title {
	font-size: 18px;
	font-weight: 600;
	color: var(--white-color);
	margin-bottom: 20px;
}

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

.footer__list--contacts .footer__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.footer__icon {
	width: 18px;
	height: 18px;
	margin-top: 3px;
	flex-shrink: 0;
}

.footer__link,
.footer__text {
	font-size: 15px;
	color: rgba(255, 255, 255, 0.8);
}

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

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

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

	.nav--open {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: flex-start;
		padding: 0 30px;
		gap: 25px;
	}

	.nav__link--button {
		width: 100%;
		text-align: center;
	}

	.burger {
		display: block;
	}

	.burger--active .burger__line:nth-child(1) {
		transform: rotate(45deg) translate(5px, 6px);
	}
	.burger--active .burger__line:nth-child(2) {
		opacity: 0;
	}
	.burger--active .burger__line:nth-child(3) {
		transform: rotate(-45deg) translate(5px, -6px);
	}
}

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

	.footer__col {
		text-align: center;
	}

	.footer .logo {
		justify-content: center;
	}

	.footer__list--contacts .footer__item {
		justify-content: center;
		text-align: left;
	}
}

/* MAIN CONTENT */
.main {
	padding-top: var(--header-height);
}

.button {
	display: inline-block;
	background-color: var(--primary-color);
	color: var(--white-color);
	padding: 14px 28px;
	border-radius: 5px;
	font-family: var(--font-secondary);
	font-weight: 600;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.button:hover {
	background-color: #083b52;
	transform: translateY(-3px);
}

/* HERO SECTION */
.hero {
	position: relative;
	padding: 80px 0;
	overflow: hidden;
	min-height: calc(100vh - var(--header-height));
	display: flex;
	align-items: center;
}

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

.hero__container {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: 1fr 1fr;
	align-items: center;
	gap: 40px;
}

.hero__content {
	max-width: 550px;
}

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

.hero__subtitle {
	font-size: 18px;
	color: var(--secondary-text-color);
	margin-bottom: 30px;
}

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

.hero__image {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

/* ADAPTIVE STYLES for HERO */
@media (max-width: 992px) {
	.hero__title {
		font-size: 36px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 60px 0;
		text-align: center;
	}

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

	.hero__content {
		order: 2;
		max-width: 100%;
	}

	.hero__visual {
		order: 1;
	}

	.hero__image {
		max-width: 80%;
	}
}

/* SECTION STYLES (Reusable) */
.section {
	padding: 80px 0;
	background-color: var(--white-color);
}

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

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

.section__title {
	font-size: 36px;
	margin-bottom: 15px;
}

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

/* SERVICES SECTION */
.services__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

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

.section:nth-of-type(odd) .service-card {
	background-color: var(--white-color);
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.service-card__icon-wrapper {
	width: 70px;
	height: 70px;
	margin: 0 auto 25px;
	border-radius: 50%;
	background-color: var(--primary-color);
	display: flex;
	justify-content: center;
	align-items: center;
	transition: background-color 0.3s ease;
}

.service-card__icon {
	width: 32px;
	height: 32px;
	color: var(--white-color);
}

.service-card:hover .service-card__icon-wrapper {
	background-color: #083b52;
}

.service-card__title {
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--text-color);
}

.service-card__description {
	font-size: 15px;
	color: var(--secondary-text-color);
	line-height: 1.6;
}

/* ADAPTIVE STYLES for SERVICES */
@media (max-width: 992px) {
	.services__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.section {
		padding: 60px 0;
	}
	.section__title {
		font-size: 30px;
	}
	.section__subtitle {
		font-size: 16px;
	}
}

/* CASES SECTION */
.cases__wrapper {
	display: flex;
	flex-direction: column;
	gap: 60px;
}

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

.case-item__image {
	width: 100%;
	height: auto;
	border-radius: 10px;
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.case-item__tag {
	display: inline-block;
	padding: 5px 12px;
	background-color: rgba(10, 77, 104, 0.1);
	color: var(--primary-color);
	border-radius: 5px;
	font-size: 14px;
	font-weight: 600;
	margin-bottom: 20px;
}

.case-item__title {
	font-size: 28px;
	color: var(--text-color);
	margin-bottom: 15px;
}

.case-item__description {
	color: var(--secondary-text-color);
	margin-bottom: 25px;
}

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

.case-item__result-item {
	display: flex;
	align-items: center;
	gap: 10px;
	font-weight: 500;
}

.case-item__result-icon {
	width: 20px;
	height: 20px;
	color: var(--primary-color);
	flex-shrink: 0;
}

/* Reversed modifier */
.case-item--reversed .case-item__visual {
	order: 2;
}
.case-item--reversed .case-item__content {
	order: 1;
}

/* ADAPTIVE STYLES for CASES */
@media (max-width: 768px) {
	.case-item {
		grid-template-columns: 1fr;
		gap: 30px;
	}

	.case-item--reversed .case-item__visual,
	.case-item--reversed .case-item__content {
		order: initial;
	}

	.case-item__title {
		font-size: 24px;
	}
}

/* INSIGHTS SECTION */
.insights__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 30px;
}

.post-card {
	background-color: var(--background-color);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.section:nth-of-type(odd) .post-card {
	background-color: var(--white-color);
}

.post-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.07);
}

.post-card__link {
	display: flex;
	flex-direction: column;
	height: 100%;
}

.post-card__image-wrapper {
	width: 100%;
	height: 200px;
	overflow: hidden;
}

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

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

.post-card__content {
	padding: 25px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.post-card__meta {
	font-size: 14px;
	color: var(--secondary-text-color);
	margin-bottom: 10px;
}

.post-card__title {
	font-size: 20px;
	color: var(--text-color);
	margin-bottom: 15px;
	line-height: 1.4;
}

.post-card__excerpt {
	font-size: 15px;
	color: var(--secondary-text-color);
	line-height: 1.6;
	margin-bottom: 20px;
	flex-grow: 1;
}

.post-card__read-more {
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 600;
	color: var(--primary-color);
	margin-top: auto;
}

.post-card__arrow-icon {
	width: 18px;
	height: 18px;
	transition: transform 0.3s ease;
}

.post-card:hover .post-card__arrow-icon {
	transform: translateX(5px);
}

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

@media (max-width: 768px) {
	.insights__grid {
		grid-template-columns: 1fr;
	}
}

/* ABOUT SECTION */
.about__main {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	align-items: center;
	gap: 50px;
	margin-bottom: 70px;
}

.about__image {
	width: 100%;
	border-radius: 10px;
}

.about__content-title {
	font-size: 28px;
	color: var(--text-color);
	margin-bottom: 20px;
}

.about__content p {
	color: var(--secondary-text-color);
	margin-bottom: 15px;
}

.about__content p:last-child {
	margin-bottom: 0;
}

.about__team-title {
	text-align: center;
	font-size: 32px;
	margin-bottom: 40px;
}

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

.team-member {
	text-align: center;
}

.team-member__photo {
	width: 140px;
	height: 140px;
	border-radius: 50%;
	object-fit: cover;
	margin: 0 auto 20px;
	border: 3px solid var(--border-color);
}

.team-member__name {
	font-size: 20px;
	color: var(--text-color);
	margin-bottom: 5px;
}

.team-member__role {
	color: var(--secondary-text-color);
	font-size: 15px;
}

/* ADAPTIVE STYLES for ABOUT */
@media (max-width: 992px) {
	.team__grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.about__main {
		grid-template-columns: 1fr;
	}
}

/* CONTACT SECTION */
.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1.5fr;
	gap: 50px;
	background-color: var(--background-color);
	padding: 40px;
	border-radius: 10px;
}

.section:nth-of-type(odd) .contact__wrapper {
	background-color: var(--white-color);
}

.contact__info-title {
	font-size: 24px;
	color: var(--text-color);
	margin-bottom: 15px;
}

.contact__info-text {
	color: var(--secondary-text-color);
	margin-bottom: 25px;
}

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

.contact__info-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-weight: 500;
}

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

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

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

.form-group {
	position: relative;
}

.form-group__input {
	width: 100%;
	padding: 14px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	font-size: 16px;
	font-family: var(--font-primary);
	background-color: var(--background-color);
}
.section:nth-of-type(odd) .form-group__input {
	background-color: var(--white-color);
}

.form-group__input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 2px rgba(10, 77, 104, 0.2);
}

.form-group__label {
	position: absolute;
	top: 15px;
	left: 15px;
	color: var(--secondary-text-color);
	pointer-events: none;
	transition: all 0.2s ease;
}

.form-group__input:focus ~ .form-group__label,
.form-group__input:not(:placeholder-shown) ~ .form-group__label {
	top: -10px;
	left: 10px;
	font-size: 12px;
	color: var(--primary-color);
	background-color: var(--background-color);
	padding: 0 5px;
}
.section:nth-of-type(odd) .form-group__input:focus ~ .form-group__label,
.section:nth-of-type(odd)
	.form-group__input:not(:placeholder-shown)
	~ .form-group__label {
	background-color: var(--white-color);
}

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

.form-group--checkbox label {
	font-size: 14px;
	color: var(--secondary-text-color);
}

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

.contact-form__button {
	width: 100%;
	border: none;
	cursor: pointer;
}

.form-success-message {
	display: none; /* Hidden by default */
	padding: 15px 20px;
	margin-top: 20px;
	border-radius: 5px;
	background-color: #e2f0d9;
	color: #3c763d;
	text-align: center;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

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

.form-success-message__icon {
	width: 22px;
	height: 22px;
}

/* ADAPTIVE STYLES for CONTACT */
@media (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
	}
}

/* COOKIE POP-UP */
.cookie-popup {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--text-color);
	color: var(--white-color);
	padding: 20px 0;
	z-index: 200;
	transform: translateY(0);
	transition: transform 0.5s ease-in-out;
}

.cookie-popup--hidden {
	transform: translateY(100%);
}

.cookie-popup__container {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 20px;
}

.cookie-popup__text {
	font-size: 15px;
}

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

.cookie-popup__text a:hover {
	text-decoration: none;
}

.cookie-popup__button {
	flex-shrink: 0;
	padding: 8px 18px; /* Slightly smaller button */
}

/* ADAPTIVE STYLES for COOKIE POP-UP */
@media (max-width: 768px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

/*
---
--- STYLES FOR STATIC PAGES (privacy.html, terms.html, etc.)
---
*/
.pages {
	padding: 60px 0;
	background-color: var(--white-color);
}

.pages .container {
	max-width: 800px; /* Limit line length for readability */
}

.pages h1,
.pages h2 {
	font-family: var(--font-secondary);
	color: var(--text-color);
	margin-bottom: 20px;
}

.pages h1 {
	font-size: 1.5rem;
	border-bottom: 2px solid var(--border-color);
	padding-bottom: 15px;
	margin-bottom: 30px;
}

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

.pages p {
	font-family: var(--font-primary);
	font-size: 16px;
	line-height: 1.8;
	color: var(--text-color);
	margin-bottom: 20px;
}

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

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

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

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

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