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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--background-color: #ffffff;
	--text-color: #1a2e35;
	--primary-color: #00a78e;
	--light-gray-color: #f5f7f9;
	--border-color: #eaecee;

	/* Typography */
	--font-body: 'Lato', sans-serif;
	--font-headers: 'Poppins', sans-serif;

	--h1-font-size: 2.5rem;
	--h2-font-size: 2rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Spacing */
	--header-height: 5rem;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3,
h4 {
	font-family: var(--font-headers);
	font-weight: 600;
	color: var(--text-color);
}

ul {
	list-style: none;
}

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

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

.container {
	max-width: 1140px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 1rem;
	padding-right: 1rem;
}

/* ==================== LOGO ==================== */
.logo {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-headers);
	font-weight: 600;
	font-size: 1.5rem;
	color: var(--text-color);
}

.logo__img {
	width: 28px;
	height: 28px;
}

/* ==================== HEADER ==================== */
.header {
	width: 100%;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	background-color: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border-color);
	transition: box-shadow 0.3s ease;
}

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

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

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

.header__nav-link {
	font-weight: 500;
	font-family: var(--font-headers);
	transition: color 0.3s ease;
}

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

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

/* ==================== FOOTER ==================== */
.footer {
	background-color: var(--light-gray-color);
	padding-top: 4rem;
	border-top: 1px solid var(--border-color);
}

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

.footer__column--info .footer__description {
	margin-top: 1rem;
	font-size: var(--small-font-size);
	max-width: 250px;
}

.footer__title {
	font-size: 1.1rem;
	margin-bottom: 1rem;
	font-weight: 600;
}

.footer__list li {
	margin-bottom: 0.6rem;
}

.footer__link {
	font-size: var(--normal-font-size);
	transition: color 0.3s ease;
}

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

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

.footer__contact-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 3px;
	color: var(--primary-color);
}

.footer__address {
	font-style: normal;
}

.footer__bottom {
	border-top: 1px solid var(--border-color);
	padding: 1.5rem 0;
	text-align: center;
	font-size: var(--small-font-size);
}

/* ==================== MOBILE & RESPONSIVE ==================== */
@media screen and (max-width: 768px) {
	:root {
		--h1-font-size: 2rem;
		--h2-font-size: 1.5rem;
	}

	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--background-color);
		transition: left 0.4s ease;
		padding: 2rem;
	}

	.header__nav.is-open {
		left: 0;
	}

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

	.header__nav-link {
		font-size: 1.2rem;
	}

	.header__burger-btn {
		display: block;
	}

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

/* ==================== BUTTONS ==================== */
.btn {
	display: inline-block;
	padding: 0.9rem 2.2rem;
	border-radius: 8px;
	font-family: var(--font-headers);
	font-weight: 500;
	font-size: var(--normal-font-size);
	text-align: center;
	border: 2px solid transparent;
	transition: all 0.3s ease;
	cursor: pointer;
}

.btn--primary {
	background-color: var(--primary-color);
	color: #fff;
	border-color: var(--primary-color);
}

.btn--primary:hover {
	background-color: transparent;
	color: var(--primary-color);
}

/* ==================== HERO ==================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: var(--header-height);
	background-color: var(--background-color);
	overflow: hidden;
}

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

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

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

.hero__visual {
	width: 100%;
	height: 100%;
	min-height: 400px;
	position: relative;
}

#hero-canvas {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

/* ==================== RESPONSIVE (Hero) ==================== */
@media screen and (max-width: 992px) {
	.hero__container {
		gap: 2rem;
	}
}

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

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

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

	.hero__visual {
		/* On mobile, we can make the canvas smaller or hide it if it's too heavy */
		min-height: 300px;
		margin-top: 2rem;
	}
}

/* ==================== REUSABLE SECTION STYLES ==================== */
.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.75rem;
}

.section__subtitle {
	font-size: 1.1rem;
	color: #6c757d; /* A softer text color for subtitles */
	max-width: 600px;
	margin: 0 auto;
}

/* ==================== DIRECTIONS SECTION ==================== */
.directions {
	background-color: var(--light-gray-color);
}

.directions__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 1.5rem;
}

.directions__card {
	background-color: var(--background-color);
	border: 1px solid var(--border-color);
	border-radius: 12px;
	padding: 2rem;
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.directions__card-icon {
	width: 60px;
	height: 60px;
	margin: 0 auto 1.5rem;
	border-radius: 50%;
	background-color: var(--primary-color);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
}

.directions__card-icon i {
	width: 28px;
	height: 28px;
}

.directions__card-title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
	font-weight: 600;
}

.directions__card-description {
	font-size: var(--normal-font-size);
	line-height: 1.6;
}

/* ==================== RESPONSIVE (Directions) ==================== */
@media screen and (max-width: 992px) {
	.directions__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

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

.process__timeline {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The vertical line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--primary-color);
	top: 0;
	bottom: 0;
	left: 50%;
	margin-left: -1.5px;
	opacity: 0.2;
}

.process__item {
	padding: 10px 40px;
	position: relative;
	width: 50%;
}

/* Place items on the left */
.process__item:nth-child(odd) {
	left: 0;
	padding-right: 50px;
}

/* Place items on the right */
.process__item:nth-child(even) {
	left: 50%;
	padding-left: 50px;
}

.process__icon-wrapper {
	position: absolute;
	top: 30px;
	z-index: 10;
}

.process__item:nth-child(odd) .process__icon-wrapper {
	right: -25px;
}

.process__item:nth-child(even) .process__icon-wrapper {
	left: -25px;
}

.process__icon {
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--primary-color);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 3px solid var(--background-color);
	box-shadow: 0 0 0 3px var(--primary-color);
}

.process__icon i {
	width: 24px;
	height: 24px;
}

.process__content {
	padding: 1.5rem;
	background-color: var(--light-gray-color);
	border-radius: 12px;
	position: relative;
	border: 1px solid var(--border-color);
}

.process__item:nth-child(odd) .process__content {
	text-align: right;
}

.process__title {
	font-size: 1.25rem;
	margin-bottom: 0.5rem;
	color: var(--primary-color);
}

/* ==================== RESPONSIVE (Process) ==================== */
@media screen and (max-width: 768px) {
	.process__timeline::after {
		left: 25px;
	}

	.process__item {
		width: 100%;
		padding-left: 60px;
		padding-right: 15px;
	}

	.process__item:nth-child(odd),
	.process__item:nth-child(even) {
		left: 0;
	}

	.process__item:nth-child(odd) .process__content {
		text-align: left;
	}

	.process__icon-wrapper {
		left: 0;
	}
}

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

.cases__slider-container {
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

.cases__slider {
	padding-bottom: 3.5rem; /* Space for pagination */
}

.cases__card {
	background-color: #fff;
	border-radius: 12px;
	padding: 2rem;
	border: 1px solid var(--border-color);
}

.cases__quote {
	font-size: 1.1rem;
	font-style: italic;
	line-height: 1.7;
	margin-bottom: 1.5rem;
	padding-bottom: 1.5rem;
	border-bottom: 1px solid var(--border-color);
	position: relative;
}

.cases__quote::before {
	content: '“';
	font-family: 'Times New Roman', Times, serif;
	font-size: 4rem;
	color: var(--primary-color);
	opacity: 0.2;
	position: absolute;
	top: -1.5rem;
	left: -1rem;
}

.cases__author {
	display: flex;
	align-items: center;
	gap: 1rem;
}

.cases__avatar {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	object-fit: cover;
}

.cases__author-name {
	font-size: 1.1rem;
	font-weight: 700;
}

.cases__author-role {
	font-size: var(--normal-font-size);
	color: #6c757d;
	margin-bottom: 0.25rem;
}

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

/* Swiper UI Customization */
.cases__slider-container .swiper-pagination-bullet {
	background-color: var(--primary-color);
	opacity: 0.5;
}

.cases__slider-container .swiper-pagination-bullet-active {
	opacity: 1;
}

.cases__slider-container .swiper-button-next,
.cases__slider-container .swiper-button-prev {
	color: var(--primary-color);
	width: 44px;
	height: 44px;
	background-color: #fff;
	border-radius: 50%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	transition: background-color 0.3s, color 0.3s;
}
.cases__slider-container .swiper-button-next:hover,
.cases__slider-container .swiper-button-prev:hover {
	background-color: var(--primary-color);
	color: #fff;
}

.cases__slider-container .swiper-button-next::after,
.cases__slider-container .swiper-button-prev::after {
	font-size: 1.2rem;
	font-weight: 700;
}

@media (max-width: 768px) {
	.cases__slider-container .swiper-button-next,
	.cases__slider-container .swiper-button-prev {
		display: none;
	}
}

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

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

.blog__card {
	background-color: #fff;
	border: 1px solid var(--border-color);
	border-radius: 12px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog__card-image-link {
	display: block;
	overflow: hidden;
}

.blog__card-image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

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

.blog__card-content {
	padding: 1.5rem;
	display: flex;
	flex-direction: column;
	flex-grow: 1; /* Allows the link to be at the bottom */
}

.blog__card-category {
	display: inline-block;
	padding: 0.25rem 0.75rem;
	border-radius: 20px;
	background-color: var(--light-gray-color);
	color: var(--primary-color);
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	margin-bottom: 1rem;
	align-self: flex-start;
}

.blog__card-title {
	font-size: 1.25rem;
	line-height: 1.4;
	margin-bottom: 0.75rem;
}

.blog__card-title a {
	color: var(--text-color);
	transition: color 0.3s ease;
}

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

.blog__card-excerpt {
	color: #6c757d;
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.blog__card-link {
	color: var(--primary-color);
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	transition: gap 0.3s ease;
}

.blog__card-link:hover {
	gap: 0.75rem;
}

.blog__card-link-icon {
	width: 18px;
	height: 18px;
}

/* ==================== RESPONSIVE (Blog) ==================== */
@media screen and (max-width: 992px) {
	.blog__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

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

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

.contact__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr;
	gap: 4rem;
	align-items: center;
}

.contact__subtitle {
	margin-left: 0;
	margin-right: 0;
	max-width: none;
	text-align: left;
}

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

.contact__details-item {
	display: flex;
	align-items: center;
	gap: 1rem;
	font-size: 1.1rem;
}

.contact__details-item a {
	color: var(--text-color);
	transition: color 0.3s;
}
.contact__details-item a:hover {
	color: var(--primary-color);
}

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

.contact__form-wrapper {
	background-color: #fff;
	padding: 2.5rem;
	border-radius: 12px;
	border: 1px solid var(--border-color);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.contact__form-group {
	margin-bottom: 1.5rem;
}

.contact__form-label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.contact__form-input {
	width: 100%;
	padding: 0.9rem 1rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 1rem;
	font-family: var(--font-body);
	transition: border-color 0.3s, box-shadow 0.3s;
}

.contact__form-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(0, 167, 142, 0.2);
}

.contact__form-group--checkbox {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
}

.contact__form-checkbox {
	margin-top: 5px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.contact__form-checkbox-label {
	font-size: var(--small-font-size);
	line-height: 1.5;
}
.contact__form-checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__form-btn {
	width: 100%;
}

.contact__success-message {
	display: none; /* Hidden by default */
	text-align: center;
	padding: 2rem;
}

.contact__success-icon {
	color: var(--primary-color);
	margin-bottom: 1rem;
}
.contact__success-icon i {
	width: 60px;
	height: 60px;
}

.contact__success-title {
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

/* ==================== RESPONSIVE (Contact) ==================== */
@media screen and (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
	.contact__info {
		text-align: center;
	}
	.contact__subtitle {
		text-align: center;
		margin: 0 auto;
	}
	.contact__details {
		justify-content: center;
		flex-direction: row;
		gap: 2rem;
	}
}
@media screen and (max-width: 576px) {
	.contact__details {
		flex-direction: column;
		align-items: center;
		gap: 1rem;
	}
	.contact__form-wrapper {
		padding: 1.5rem;
	}
}

/* ==================== ADDITIONAL BUTTON STYLES ==================== */
/* We need a smaller button variant for the cookie popup */
.btn--small {
	padding: 0.5rem 1.2rem;
	font-size: var(--small-font-size);
}

/* ==================== COOKIE POPUP ==================== */
.cookie-popup {
	position: fixed;
	bottom: 1.5rem;
	left: 1.5rem;
	right: 1.5rem;
	max-width: 500px;
	background-color: var(--text-color);
	color: #fff;
	padding: 1rem 1.5rem;
	border-radius: 12px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	z-index: 200;
	transform: translateY(200%);
	transition: transform 0.5s ease-in-out;
}

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

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

.cookie-popup__text a {
	color: #fff;
	text-decoration: underline;
}

@media (max-width: 576px) {
	.cookie-popup {
		flex-direction: column;
		text-align: center;
		bottom: 1rem;
		left: 1rem;
		right: 1rem;
	}
}

/* ==================== GENERIC PAGES (Privacy, Terms, etc.) ==================== */
.pages {
	padding-top: calc(var(--header-height) + 4rem);
	padding-bottom: 5rem;
}

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

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

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

.pages p {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 1.5rem;
}

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

.pages li {
	font-size: 1.1rem;
	line-height: 1.8;
	margin-bottom: 0.75rem;
}

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

.pages strong {
	font-weight: 700;
}
