/* GLOBSL STYLES - STAGE 0 */
:root {
	--font-primary: 'Inter', sans-serif;
	--font-secondary: 'Manrope', sans-serif;

	--color-bg: #f8f9fa;
	--color-text: #212529;
	--color-accent: #087f5b;
	--color-muted: #868e96;
	--color-white: #ffffff;
	--color-border: #dee2e6;

	--header-height: 70px;
}

*,
*::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;
	color: var(--color-text);
	background-color: var(--color-bg);
	-webkit-font-smoothing: antialiased;
}

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

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

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

ul {
	list-style: none;
}

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

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

/* HEADER - STAGE 1 */
.header {
	background-color: var(--color-white);
	border-bottom: 1px solid var(--color-border);
	position: sticky;
	top: 0;
	z-index: 100;
	height: var(--header-height);
}

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

.logo {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	font-family: var(--font-secondary);
	font-weight: 700;
	color: var(--color-text);
	font-size: 22px;
}

.header__nav-list {
	display: flex;
	gap: 30px;
}

.header__nav-link {
	color: var(--color-text);
	font-weight: 500;
	position: relative;
	padding: 5px 0;
}

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

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

.header__burger-btn {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 5px;
}

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__nav {
		display: none;
		position: absolute;
		top: var(--header-height);
		left: 0;
		right: 0;
		background-color: var(--color-white);
		border-bottom: 1px solid var(--color-border);
		padding: 20px;
	}

	.header__nav--open {
		display: block;
	}

	.header__nav-list {
		flex-direction: column;
		align-items: center;
		gap: 20px;
	}

	.header__burger-btn {
		display: block;
	}
}

/* FOOTER - STAGE 2 */
.footer {
	background-color: #e9ecef;
	padding: 60px 0;
	border-top: 1px solid var(--color-border);
	margin-top: auto;
}

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

.footer__column--main {
	grid-column: span 1;
}

.footer__logo {
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: var(--color-muted);
}

.footer__title {
	font-size: 18px;
	margin-bottom: 15px;
	color: var(--color-text);
}

.footer__list-item {
	margin-bottom: 10px;
}

.footer__link {
	color: var(--color-muted);
	font-size: 15px;
	font-weight: 500;
}

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

.footer__address {
	font-style: normal;
	color: var(--color-muted);
	font-size: 15px;
}

@media (max-width: 992px) {
	.footer__container {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 576px) {
	.footer__container {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer__column--main {
		display: flex;
		flex-direction: column;
		align-items: center;
	}
}

/* SHARED COMPONENTS */
.btn {
	display: inline-block;
	padding: 12px 28px;
	background-color: var(--color-accent);
	color: var(--color-white);
	font-family: var(--font-secondary);
	font-weight: 600;
	border-radius: 6px;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.btn:hover {
	background-color: #099268; /* Darker shade of accent */
	color: var(--color-white);
	transform: translateY(-2px);
}

/* HERO SECTION - STAGE 3 */
.hero {
	background-color: var(--color-white);
	padding: 80px 0;
}

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

.hero__title {
	font-size: 48px;
	margin-bottom: 20px;
	font-weight: 700;
}

/* Animation styles for title */
.hero__title [data-word] {
	display: inline-block;
	opacity: 0;
	transform: translateY(20px);
	transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__title.is-visible [data-word] {
	opacity: 1;
	transform: translateY(0);
}

.hero__description {
	font-size: 18px;
	color: var(--color-muted);
	margin-bottom: 30px;
	max-width: 500px;
}

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

.hero__image {
	border-radius: 8px;
	max-width: 100%;
	height: auto;
	object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.hero__title {
		font-size: 40px;
	}
	.hero__container {
		gap: 40px;
	}
}

@media (max-width: 768px) {
	.hero {
		padding: 60px 0;
		text-align: center;
	}
	.hero__container {
		grid-template-columns: 1fr;
	}
	.hero__content {
		order: 2; /* Text appears below image */
	}
	.hero__image-wrapper {
		order: 1;
		margin-bottom: 40px;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
}

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

.services__header {
	text-align: center;
	margin-bottom: 60px;
}

.services__title {
	font-size: 36px;
	margin-bottom: 10px;
}

.services__subtitle {
	font-size: 18px;
	color: var(--color-muted);
	max-width: 600px;
	margin: 0 auto;
}

.services__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
}

.services__card {
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 8px;
	border: 1px solid var(--color-border);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services__card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.services__card-icon {
	margin-bottom: 20px;
	color: var(--color-accent);
}

/* Styling Lucide icons */
.services__card-icon svg {
	width: 48px;
	height: 48px;
	stroke-width: 1.5;
}

.services__card-title {
	font-size: 20px;
	margin-bottom: 10px;
}

.services__card-description {
	font-size: 15px;
	color: var(--color-muted);
	line-height: 1.7;
}

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

.approach__container {
	display: grid;
	grid-template-columns: 1fr 1.2fr; /* Make text column slightly larger */
	align-items: center;
	gap: 80px;
}

.approach__image {
	width: 100%;
	border-radius: 8px;
	object-fit: cover;
}

.approach__header {
	margin-bottom: 40px;
}

.approach__title {
	font-size: 36px;
	margin-bottom: 10px;
}

.approach__subtitle {
	font-size: 18px;
	color: var(--color-muted);
}

.approach__steps {
	position: relative;
	border-left: 2px solid var(--color-border);
	padding-left: 30px;
}

.approach__step {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.approach__step:not(:last-child) {
	margin-bottom: 30px;
}

.approach__step-number {
	font-family: var(--font-secondary);
	font-size: 36px;
	font-weight: 700;
	color: var(--color-accent);
	opacity: 0.5;
	line-height: 1;
	margin-top: -5px;
}

.approach__step-title {
	font-size: 20px;
	margin-bottom: 5px;
}

.approach__step-description {
	font-size: 15px;
	color: var(--color-muted);
}

/* Responsive adjustments */
@media (max-width: 992px) {
	.approach__container {
		grid-template-columns: 1fr;
		gap: 50px;
	}
}

@media (max-width: 768px) {
	.approach {
		padding: 60px 0;
	}
	.approach__title {
		font-size: 32px;
	}
	.approach__header {
		text-align: center;
	}
}

/* CASES SECTION */
.cases {
	padding: 80px 0;
	background-color: var(--color-bg);
}

.cases__header {
	text-align: center;
	margin-bottom: 60px;
}

.cases__title {
	font-size: 36px;
	margin-bottom: 10px;
}

.cases__subtitle {
	font-size: 18px;
	color: var(--color-muted);
	max-width: 600px;
	margin: 0 auto;
}

.cases__slider {
	position: relative;
	padding: 0 40px; /* Space for navigation arrows */
}

.case-card {
	background-color: var(--color-white);
	padding: 30px;
	border-radius: 8px;
	border: 1px solid var(--color-border);
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.case-card__main {
	display: flex;
	gap: 20px;
	margin-bottom: 25px;
}

.case-card__avatar {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--color-border);
}

.case-card__quote {
	font-size: 16px;
	font-style: italic;
	color: var(--color-text);
	margin: 0 0 15px 0;
	border-left: 3px solid var(--color-accent);
	padding-left: 15px;
}

.case-card__author-name {
	font-weight: 600;
	font-family: var(--font-secondary);
}

.case-card__results {
	border-top: 1px solid var(--color-border);
	padding-top: 20px;
	font-size: 14px;
}

.case-card__point:not(:last-child) {
	margin-bottom: 10px;
}

.case-card__point--a {
	color: var(--color-muted);
}
.case-card__point--b {
	color: var(--color-accent);
}

/* Swiper custom styles */
.cases__slider .swiper-pagination {
	position: static;
	margin-top: 30px;
}

.cases__slider .swiper-pagination-bullet {
	background-color: var(--color-muted);
}

.cases__slider .swiper-pagination-bullet-active {
	background-color: var(--color-accent);
}

.cases__slider .swiper-button-next,
.cases__slider .swiper-button-prev {
	color: var(--color-accent);
}

@media (max-width: 768px) {
	.cases__slider {
		padding: 0;
	}

	.cases__slider .swiper-button-next,
	.cases__slider .swiper-button-prev {
		display: none;
	}

	.case-card__main {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.case-card__quote {
		border-left: none;
		padding-left: 0;
	}
}

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

.blog__header {
	text-align: center;
	margin-bottom: 60px;
}

.blog__title {
	font-size: 36px;
	margin-bottom: 10px;
}

.blog__subtitle {
	font-size: 18px;
	color: var(--color-muted);
	max-width: 600px;
	margin: 0 auto;
}

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

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

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

/* This wrapper makes the whole card clickable */
.blog-card__link-wrapper {
	color: inherit;
	text-decoration: none;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.blog-card__image-wrapper {
	width: 100%;
	height: 200px;
}

.blog-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.blog-card__content {
	padding: 20px;
	flex-grow: 1;
}

.blog-card__category {
	display: inline-block;
	padding: 4px 10px;
	background-color: #e6f9f1; /* Light green */
	color: var(--color-accent);
	font-size: 12px;
	font-weight: 600;
	border-radius: 20px;
	margin-bottom: 15px;
}

.blog-card__title {
	font-size: 20px;
	margin-bottom: 10px;
	line-height: 1.4;
}

.blog-card__link-wrapper:hover .blog-card__title {
	color: var(--color-accent);
}

.blog-card__excerpt {
	font-size: 15px;
	color: var(--color-muted);
}

.blog-card__footer {
	padding: 0 20px 20px;
	margin-top: auto;
}

.blog-card__date {
	font-size: 14px;
	color: var(--color-muted);
}

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

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

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

.contact__description {
	font-size: 18px;
	color: var(--color-muted);
	margin-bottom: 30px;
}

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

.contact__detail-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--color-text);
	font-weight: 500;
}

.contact__detail-item:hover {
	color: var(--color-accent);
}

.contact-form {
	background-color: var(--color-white);
	padding: 40px;
	border-radius: 8px;
	border: 1px solid var(--color-border);
}

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

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

.form-input {
	width: 100%;
	padding: 12px 15px;
	border: 1px solid var(--color-border);
	border-radius: 6px;
	font-size: 16px;
	font-family: var(--font-primary);
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-input:focus {
	outline: none;
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.1);
}

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

.form-checkbox {
	margin-top: 5px;
	width: 16px;
	height: 16px;
}

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

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

.contact-form__btn {
	width: 100%;
	margin-top: 10px;
}

.contact-form__btn:disabled {
	background-color: var(--color-muted);
	cursor: not-allowed;
}

.form-message {
	padding: 20px;
	border-radius: 8px;
	margin-top: 20px;
	text-align: center;
}

.form-message--success {
	background-color: #e6f9f1;
	border: 1px solid var(--color-accent);
}
.form-message--success .form-message__title {
	color: var(--color-accent);
	margin-bottom: 10px;
}

.form-message--error {
	background-color: #fff5f5;
	color: #c53030;
	border: 1px solid #c53030;
}

.is-hidden {
	display: none;
}

@media (max-width: 992px) {
	.contact__container {
		grid-template-columns: 1fr;
		gap: 50px;
	}
	.contact__info {
		text-align: center;
	}
	.contact__details {
		align-items: center;
	}
}

/* COOKIE POPUP */
.cookie-popup {
	position: fixed;
	bottom: 20px;
	left: 20px;
	right: 20px;
	background-color: var(--color-white);
	color: var(--color-text);
	padding: 20px;
	border-radius: 8px;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
	z-index: 200;
	transition: opacity 0.3s ease, transform 0.3s ease;
	transform: translateY(20px);
	opacity: 0;
}

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

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

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

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

.cookie-popup__btn {
	white-space: nowrap;
	padding: 8px 20px;
	background-color: var(--color-accent);
	color: var(--color-white);
	border: none;
	border-radius: 6px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}
.cookie-popup__btn:hover {
	background-color: #099268;
}

@media (max-width: 576px) {
	.cookie-popup__container {
		flex-direction: column;
		text-align: center;
	}
}

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

.pages .container {
	max-width: 800px; /* Optimal width for reading */
}

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

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

.pages p {
	font-size: 16px;
	line-height: 1.7;
	margin-bottom: 20px;
	color: #343a40;
}

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

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

.pages a {
	text-decoration: underline;
}

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

.pages strong {
	font-weight: 600;
}
