/* =============== GLOBAL STYLES =============== */
:root {
	--primary-color: #0a2e5c;
	--secondary-color: #4ab8a1;
	--background-color: #f8f9fa;
	--text-color: #333333;
	--light-gray: #e9ecef;
	--white: #ffffff;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: 'Lato', sans-serif;
	font-size: 16px;
	line-height: 1.6;
	background-color: var(--background-color);
	color: var(--text-color);
	overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
	font-family: 'Montserrat', sans-serif;
	color: var(--primary-color);
	font-weight: 700;
}

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

ul {
	list-style: none;
}

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

/* =============== HEADER =============== */
.header {
	background-color: var(--white);
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	height: var(--header-height);
}

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

.logo {
	display: flex;
	align-items: center;
	gap: 10px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 24px;
	color: var(--primary-color);
}

.logo svg {
	color: var(--primary-color);
	transition: transform 0.3s ease;
}

.logo:hover svg {
	transform: rotate(15deg);
}

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

.header__nav-link {
	font-weight: 600;
	font-size: 16px;
	color: var(--primary-color);
	position: relative;
	padding: 5px 0;
}

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

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

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

/* Mobile Menu Styles */
@media (max-width: 768px) {
	.header__nav {
		position: fixed;
		top: var(--header-height);
		left: -100%;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--white);
		flex-direction: column;
		justify-content: center;
		align-items: center;
		transition: left 0.3s ease;
	}

	.header__nav--open {
		left: 0;
	}

	.header__nav-list {
		padding-top: 20px;
		flex-direction: column;
		gap: 40px;
		text-align: center;
	}

	.header__nav-link {
		font-size: 24px;
	}

	.header__burger-btn {
		display: block;
	}
}

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

/* =============== FOOTER =============== */
.footer {
	background-color: var(--white);
	padding: 60px 0;
	border-top: 1px solid var(--light-gray);
	margin-top: 50px; /* Placeholder margin */
}

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

.footer__column .logo {
	margin-bottom: 20px;
}

.footer__copyright {
	font-size: 14px;
	color: #777;
}

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

.footer__title::after {
	content: '';
	position: absolute;
	bottom: -5px;
	left: 0;
	width: 30px;
	height: 2px;
	background-color: var(--secondary-color);
}

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

.footer__link {
	font-size: 15px;
	color: var(--text-color);
	display: flex;
	align-items: center;
	gap: 10px;
}

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

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

/* =============== BUTTONS =============== */
.btn {
	display: inline-block;
	padding: 12px 28px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 16px;
	border-radius: 5px;
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	text-align: center;
}

.hero__cta-btn {
	background-color: var(--secondary-color);
	color: var(--white);
	border-color: var(--secondary-color);
}

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

/* =============== HERO SECTION =============== */
.hero {
	position: relative;
	height: calc(100vh - var(--header-height));
	min-height: 600px;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	background-color: var(--primary-color);
}

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

.hero__container {
	position: relative;
	z-index: 2;
	text-align: center;
}

.hero__content {
	max-width: 750px;
	margin: 0 auto;
}

.hero__title {
	font-size: 56px;
	color: var(--white);
	line-height: 1.2;
	margin-bottom: 20px;
}

.hero__subtitle {
	font-size: 20px;
	color: var(--light-gray);
	margin-bottom: 40px;
	line-height: 1.7;
}

/* Hero Responsive */
@media (max-width: 992px) {
	.hero__title {
		font-size: 48px;
	}
	.hero__subtitle {
		font-size: 18px;
	}
}

@media (max-width: 768px) {
	.hero {
		min-height: 500px;
		text-align: left;
	}
	.hero__container {
		text-align: left;
	}
	.hero__title {
		font-size: 36px;
	}
	.hero__subtitle {
		font-size: 16px;
	}
}

/* =============== GLOBAL SECTION STYLES =============== */
.section-title {
	font-size: 36px;
	text-align: center;
	margin-bottom: 60px;
	position: relative;
}

.section-title::after {
	content: '';
	position: absolute;
	bottom: -15px;
	left: 50%;
	transform: translateX(-50%);
	width: 60px;
	height: 3px;
	background-color: var(--secondary-color);
}

/* =============== DIRECTIONS SECTION =============== */
.directions {
	padding: 80px 0;
	background-color: var(--background-color);
}

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

.direction-card {
	background-color: var(--white);
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
	text-align: center;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.direction-card:hover {
	transform: translateY(-10px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.direction-card__icon {
	margin-bottom: 25px;
}

.direction-card__icon i {
	width: 48px;
	height: 48px;
	color: var(--secondary-color);
}

.direction-card__title {
	font-size: 22px;
	margin-bottom: 15px;
}

.direction-card__description {
	font-size: 16px;
	line-height: 1.7;
	color: #555;
}

/* Responsive for Section Title */
@media (max-width: 768px) {
	.section-title {
		font-size: 30px;
		margin-bottom: 50px;
	}
}

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

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

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

.accordion__item {
	border: 1px solid var(--light-gray);
	border-radius: 8px;
	margin-bottom: 15px;
	overflow: hidden;
}

.accordion__header {
	width: 100%;
	background-color: transparent;
	border: none;
	padding: 20px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	text-align: left;
}

.accordion__header-title {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	color: var(--primary-color);
}

.accordion__header-icon {
	transition: transform 0.3s ease;
	flex-shrink: 0;
	margin-left: 15px;
}

.accordion__body {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.4s ease-out, padding 0.4s ease-out;
}

.accordion__content {
	padding: 0 20px;
	font-size: 16px;
	line-height: 1.7;
	color: #555;
}

.accordion__content p {
	margin-bottom: 15px;
}
.accordion__content p:last-child {
	margin-bottom: 0;
}

/* Active state for accordion */
.accordion__item--active .accordion__header-icon {
	transform: rotate(180deg);
	color: var(--secondary-color);
}

.accordion__item--active .accordion__body {
	padding-bottom: 20px;
	/* max-height is set by JS */
}

/* Responsive for Cases */
@media (max-width: 992px) {
	.cases__layout {
		grid-template-columns: 1fr;
	}
	.cases__visual {
		order: -1; /* Image appears on top on mobile */
		margin-bottom: 40px;
	}
}

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

.process__timeline {
	position: relative;
	max-width: 900px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
}

/* The vertical line */
.process__timeline::after {
	content: '';
	position: absolute;
	width: 3px;
	background-color: var(--secondary-color);
	top: 0;
	bottom: 0;
	left: 24px;
	transform: translateX(-50%);
}

.process__step {
	padding-left: 60px;
	position: relative;
}

.process__step-number {
	position: absolute;
	left: 24px;
	top: -30px;
	transform: translateX(-50%);
	width: 50px;
	height: 50px;
	border-radius: 50%;
	background-color: var(--secondary-color);
	color: var(--white);
	font-family: 'Montserrat', sans-serif;
	font-weight: 700;
	font-size: 18px;
	display: flex;
	justify-content: center;
	align-items: center;
	border: 3px solid var(--background-color);
	z-index: 1;
}

.process__step-content {
	background-color: var(--white);
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.process__step-title {
	font-size: 22px;
	margin-bottom: 10px;
}

.process__step-description {
	font-size: 16px;
	line-height: 1.7;
	color: #555;
}

/* Desktop layout for Process section */
@media (min-width: 768px) {
	.process__timeline {
		grid-template-columns: 1fr 1fr;
	}

	.process__timeline::after {
		left: 50%;
	}

	.process__step {
		padding-left: 0;
	}

	/* Place steps on alternating sides */
	.process__step:nth-child(odd) {
		padding-right: 40px;
		grid-column: 1;
	}

	.process__step:nth-child(even) {
		padding-left: 40px;
		grid-column: 2;
	}

	/* Move numbers to the center */
	.process__step-number {
		left: 50%;
	}

	/* Align content blocks correctly */
	.process__step:nth-child(odd) .process__step-content {
		text-align: right;
	}
}

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

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

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

/* Align section title to the left for this block */
.about__title {
	text-align: left;
	margin-bottom: 30px;
}

.about__title::after {
	left: 0;
	transform: translateX(0);
}

.about__subtitle {
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 24px;
	color: var(--primary-color);
	margin-bottom: 20px;
	line-height: 1.4;
}

.about__description {
	margin-bottom: 20px;
	font-size: 16px;
	line-height: 1.7;
	color: #555;
}

.about__principles-list {
	margin-top: 30px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.about__principle-item {
	display: flex;
	align-items: flex-start;
	gap: 15px;
	font-size: 16px;
	color: #333;
}

.about__principle-icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	color: var(--secondary-color);
	margin-top: 2px;
}

/* Responsive for About section */
@media (max-width: 992px) {
	.about__layout {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 768px) {
	.about__title {
		text-align: center;
	}
	.about__title::after {
		left: 50%;
		transform: translateX(-50%);
	}
}

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

.contact__layout {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 60px;
	align-items: center;
	max-width: 1000px;
	margin: 0 auto;
}

.contact__info-title {
	font-size: 28px;
	margin-bottom: 20px;
}

.contact__info-text {
	font-size: 17px;
	line-height: 1.7;
	color: #555;
}

.contact-form {
	background-color: var(--white);
	padding: 40px;
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

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

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

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

.form-input:focus {
	outline: none;
	border-color: var(--secondary-color);
	box-shadow: 0 0 0 3px rgba(74, 184, 161, 0.2);
}

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

.form-group--checkbox input {
	margin-top: 4px;
	flex-shrink: 0;
}

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

.contact__submit-btn {
	width: 100%;
	padding: 15px;
	font-size: 18px;
	background-color: var(--secondary-color);
	color: var(--white);
	border-color: var(--secondary-color);
}

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

/* Success Message */
.success-message {
	display: none; /* Critically important: hidden by default */
	text-align: center;
	padding: 40px;
	background-color: var(--white);
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.success-message__icon {
	width: 60px;
	height: 60px;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

.success-message__title {
	font-size: 24px;
	margin-bottom: 10px;
}

.success-message__text {
	font-size: 16px;
	color: #555;
}

/* Responsive for Contact Section */
@media (max-width: 992px) {
	.contact__layout {
		grid-template-columns: 1fr;
	}
	.contact__info {
		text-align: center;
	}
}

/* =============== COOKIE POPUP =============== */
.cookie-popup {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 20px;
    box-shadow: 0 -2px 15px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    z-index: 2000;
    transform: translateY(120%);
    transition: transform 0.5s ease-in-out;
}

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

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

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

.cookie-popup__btn {
    flex-shrink: 0;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 10px 20px;
}

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

/* =============== POLICY PAGES =============== */
.pages {
    padding: 120px 0;
    background-color: var(--white);
    min-height: calc(100vh - var(--header-height) - 100px); /* Adjust footer height if needed */
}

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

.pages h1, .pages h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-color);
    margin-bottom: 20px;
}

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

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

.pages p, .pages li {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 20px;
}

.pages a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 700;
}

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

.pages ul {
    list-style: disc;
    padding-left: 20px;
}

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