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

/* ==================== CSS VARIABLES ==================== */
:root {
	/* Colors */
	--primary-color: #007bff;
	--primary-color-hover: #0056b3;
	--dark-blue: #0a1931;
	--secondary-gray: #b0b5c0;
	--light-bg: #f8f9fa;
	--white: #ffffff;
	--text-color: #eaeaea;
	--border-color: rgba(255, 255, 255, 0.1);

	/* Typography */
	--font-family-headings: 'Montserrat', sans-serif;
	--font-family-body: 'Poppins', sans-serif;
	--h1-font-size: 2.5rem;
	--h2-font-size: 1.75rem;
	--h3-font-size: 1.25rem;
	--normal-font-size: 1rem;
	--small-font-size: 0.875rem;

	/* Z-index */
	--z-header: 100;
	--z-modal: 1000;
}

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

html {
	scroll-behavior: smooth;
}

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

h1,
h2,
h3 {
	font-family: var(--font-family-headings);
	color: var(--white);
	font-weight: 700;
}

ul {
	list-style: none;
}

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

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

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

/* ==================== REUSABLE CSS CLASSES ==================== */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding: 0 1.5rem;
}

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

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

.header__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--white);
}

.header__logo-img {
	width: 32px;
	height: 32px;
}

.header__toggle {
	display: none;
	font-size: 1.5rem;
	cursor: pointer;
	background: none;
	border: none;
	color: var(--white);
}

/* ==================== NAVIGATION ==================== */
.nav__list {
	display: flex;
	gap: 2.5rem;
}

.nav__link {
	color: var(--secondary-gray);
	font-weight: 500;
	position: relative;
	padding: 0.5rem 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(--white);
}

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

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

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

.footer__logo {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	font-family: var(--font-family-headings);
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--white);
	margin-bottom: 1rem;
}

.footer__logo-img {
	width: 32px;
	height: 32px;
}

.footer__description {
	color: var(--secondary-gray);
	font-size: var(--small-font-size);
}

.footer__title {
	font-size: var(--h3-font-size);
	margin-bottom: 1.5rem;
}

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

.footer__link {
	font-size: var(--normal-font-size);
}

.footer__contact p {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	margin-bottom: 0.75rem;
	color: var(--secondary-gray);
}

.footer__contact-icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	margin-top: 2px;
}

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

/* ==================== RESPONSIVE DESIGN ==================== */
@media screen and (max-width: 768px) {
	.header__toggle {
		display: block;
	}

	.nav {
		position: fixed;
		top: 6rem;
		right: -100%;
		width: 100%;
		height: calc(100vh - 6rem);
		background-color: var(--dark-blue);
		padding: 2rem;
		transition: right 0.4s ease;
	}

	.nav--show {
		right: 0;
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 2rem;
	}

	.nav__link {
		font-size: var(--h3-font-size);
	}
}

/* ==================== BUTTONS ==================== */
.button {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	background-color: var(--primary-color);
	color: var(--white);
	padding: 1rem 2rem;
	border-radius: 5px;
	font-weight: 500;
	font-family: var(--font-family-headings);
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: var(--primary-color-hover);
	transform: translateY(-3px);
	color: var(--white);
}

.button__icon {
	width: 20px;
	height: 20px;
}

/* ==================== HERO ==================== */
.hero {
	min-height: 100vh;
	display: flex;
	align-items: center;
	padding-top: 6rem; /* Header height */
}

.hero__container {
	text-align: center;
}

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

.hero__title {
	font-size: clamp(1.5rem, 5vw, 2.5rem); /* Responsive font size */
	margin-bottom: 1.5rem;
	line-height: 1.2;
}

.hero__title--highlight {
	color: var(--primary-color);
}

.hero__description {
	font-size: clamp(1rem, 2.5vw, 1.125rem);
	color: var(--secondary-gray);
	margin-bottom: 2.5rem;
	max-width: 650px;
	margin-left: auto;
	margin-right: auto;
}

/* ==================== ANIMATIONS ==================== */
[data-animate] {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

[data-animate].animated {
	opacity: 1;
	transform: translateY(0);
}

/* ==================== SERVICES ==================== */
.services {
	padding: 6rem 0;
	background-color: var(--light-bg);
}

.services__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.services__title {
	color: var(--dark-blue);
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.services__subtitle {
	color: #495057; /* Darker gray for better readability on light bg */
	font-size: var(--normal-font-size);
}

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

.service-card {
	background-color: var(--white);
	padding: 2.5rem 2rem;
	border-radius: 8px;
	box-shadow: 0 4px 25px rgba(0, 0, 0, 0.05);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	display: flex;
	flex-direction: column;
}

.service-card:hover {
	transform: translateY(-8px);
	box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}

.service-card__icon-wrapper {
	width: 60px;
	height: 60px;
	border-radius: 50%;
	display: grid;
	place-items: center;
	background-color: #e7f1ff; /* Light blue bg for icon */
	margin-bottom: 1.5rem;
}

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

.service-card__title {
	color: var(--dark-blue);
	font-size: var(--h3-font-size);
	margin-bottom: 0.75rem;
}

.service-card__description {
	color: #495057;
	margin-bottom: 1.5rem;
	flex-grow: 1; /* Pushes the link to the bottom */
}

.service-card__link {
	color: var(--primary-color);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	transition: gap 0.3s ease;
}

.service-card__link:hover {
	gap: 0.75rem;
	color: var(--primary-color-hover);
}

/* ==================== PROCESS ==================== */
.process {
	padding: 6rem 0;
	background-color: var(--dark-blue); /* Back to dark background */
}

.process__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.process__title {
	color: var(--white);
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.process__subtitle {
	color: var(--secondary-gray);
	font-size: var(--normal-font-size);
}

.process__steps {
	display: grid;
	grid-template-columns: 1fr;
	gap: 2rem;
	position: relative;
	max-width: 800px;
	margin: 0 auto;
}

/* The connecting line */
.process__steps::before {
	content: '';
	position: absolute;
	top: 20px;
	left: 42px;
	width: 2px;
	height: calc(100% - 40px);
	background-color: var(--border-color);
}

.process-step {
	display: flex;
	align-items: flex-start;
	gap: 2rem;
	position: relative;
}

.process-step__number {
	font-size: 3rem;
	font-weight: 700;
	font-family: var(--font-family-headings);
	color: var(--primary-color);
	line-height: 1;
	background-color: var(--dark-blue);
	padding-right: 2rem;
	z-index: 2;
	width: 90px;
	flex-shrink: 0;
	text-align: center;
}

.process-step__content {
	padding-top: 0.5rem;
}

.process-step__title {
	font-size: var(--h3-font-size);
	margin-bottom: 0.5rem;
}

.process-step__description {
	color: var(--secondary-gray);
}

@media screen and (max-width: 576px) {
	.process__steps::before {
		left: 20px;
	}
	.process-step {
		gap: 1rem;
	}
	.process-step__number {
		font-size: 2rem;
		width: 42px;
		padding-right: 0;
	}
}

/* ==================== BENEFITS ==================== */
.benefits {
	padding: 6rem 0;
	background-color: var(--light-bg);
}

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

.benefits__image-wrapper {
	width: 100%;
}

.benefits__image {
	border-radius: 8px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	width: 100%;
}

.benefits__title {
	color: var(--dark-blue);
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.benefits__description {
	color: #495057;
	margin-bottom: 2.5rem;
}

.benefits__list {
	display: flex;
	flex-direction: column;
	gap: 2rem;
}

.benefit-item {
	display: flex;
	align-items: flex-start;
	gap: 1.5rem;
}

.benefit-item__icon {
	flex-shrink: 0;
	width: 28px;
	height: 28px;
	color: var(--primary-color);
	margin-top: 4px;
}

.benefit-item__title {
	color: var(--dark-blue);
	font-size: 1.125rem;
	margin-bottom: 0.5rem;
}

.benefit-item__description {
	color: #495057;
	font-size: var(--small-font-size);
}

/* Responsive adjustments */
@media screen and (max-width: 992px) {
	.benefits__container {
		grid-template-columns: 1fr;
		gap: 3rem;
	}
}

/* ==================== BLOG ==================== */
.blog {
	padding: 6rem 0;
	background-color: var(--dark-blue);
}

.blog__header {
	text-align: center;
	margin-bottom: 4rem;
	max-width: 700px;
	margin-left: auto;
	margin-right: auto;
}

.blog__title {
	color: var(--white);
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.blog__subtitle {
	color: var(--secondary-gray);
}

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

.blog-card {
	background-color: #0e1f3a; /* Slightly lighter than dark-blue */
	border: 1px solid var(--border-color);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.3s ease, border-color 0.3s ease;
}

.blog-card:hover {
	transform: translateY(-8px);
	border-color: var(--primary-color);
}

.blog-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
	transition: transform 0.3s 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;
}

.blog-card__meta {
	color: var(--primary-color);
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 1px;
	text-transform: uppercase;
	margin-bottom: 0.75rem;
}

.blog-card__title {
	font-size: 1.25rem;
	margin-bottom: 0.75rem;
}

.blog-card__title a {
	color: var(--white);
}

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

.blog-card__excerpt {
	color: var(--secondary-gray);
	font-size: var(--small-font-size);
	margin-bottom: 1.5rem;
	flex-grow: 1;
}

.blog-card__link {
	color: var(--white);
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
}

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

/* ==================== CONTACT ==================== */
.contact {
	padding: 6rem 0;
	background-color: var(--light-bg);
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 4rem;
	background-color: var(--white);
	padding: 4rem;
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.contact__title {
	color: var(--dark-blue);
	font-size: var(--h2-font-size);
	margin-bottom: 1rem;
}

.contact__description {
	color: #495057;
	margin-bottom: 2rem;
}

.contact__details {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	color: #495057;
}

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

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

/* Form Styles */
.contact__form {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.form__group {
	position: relative;
}

.form__input {
	width: 100%;
	padding: 1rem;
	border: 1px solid #ced4da;
	border-radius: 5px;
	font-size: 1rem;
	font-family: var(--font-family-body);
	outline: none;
	transition: border-color 0.3s ease;
}

.form__input:focus,
.form__input:not(:placeholder-shown) {
	border-color: var(--primary-color);
}

.form__label {
	position: absolute;
	top: 1rem;
	left: 1rem;
	color: #6c757d;
	background-color: var(--white);
	padding: 0 0.25rem;
	transition: all 0.3s ease;
	pointer-events: none;
}

.form__input:focus + .form__label,
.form__input:not(:placeholder-shown) + .form__label {
	top: -0.75rem;
	left: 0.75rem;
	font-size: var(--small-font-size);
	color: var(--primary-color);
}

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

.form__checkbox-input {
	margin-top: 4px;
	width: 1.25rem;
	height: 1.25rem;
}

.form__checkbox-label {
	font-size: var(--small-font-size);
	color: #495057;
}

.form__checkbox-label a {
	color: var(--primary-color);
	text-decoration: underline;
}

.contact__button {
	width: 100%;
	justify-content: center;
	padding: 1.25rem;
	font-size: 1.125rem;
}

.form-message {
	margin-top: 1rem;
	padding: 1rem;
	border-radius: 5px;
	text-align: center;
	display: none; /* Hidden by default */
}

.form-message.success {
	background-color: #d1e7dd;
	color: #0f5132;
	border: 1px solid #badbcc;
	display: block;
}

.form-message.error {
	background-color: #f8d7da;
	color: #842029;
	border: 1px solid #f5c2c7;
	display: block;
}

/* Responsive */
@media screen and (max-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr;
		padding: 2.5rem;
	}
}

/* ==================== COOKIE POP-UP ==================== */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden below the screen */
	left: 0;
	width: 100%;
	background-color: #0e1f3a;
	border-top: 1px solid var(--border-color);
	box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
	padding: 1.5rem 2rem;
	z-index: var(--z-modal);

	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1.5rem;

	transition: bottom 0.5s ease-in-out;
}

.cookie-popup.show {
	bottom: 0; /* Slides into view */
}

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

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

.cookie-popup__button {
	padding: 0.75rem 1.5rem;
	flex-shrink: 0; /* Prevents the button from shrinking */
}

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

/* ==================== POLICY & TEXT PAGES ==================== */
.pages {
	padding: 10rem 0 6rem; /* Extra top padding to account for fixed header */
	color: var(--secondary-gray);
	background-color: var(--dark-blue);
}

.pages h1,
.pages h2 {
	font-family: var(--font-family-headings);
	color: var(--white);
	margin-bottom: 1.5rem;
}

.pages h1 {
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	text-align: center;
	margin-bottom: 3rem;
}

.pages h2 {
	font-size: clamp(1.5rem, 5vw, 2.5rem);
	margin-top: 2.5rem;
}

.pages p,
.pages ul {
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	font-size: 1.125rem;
	line-height: 1.8;
}

.pages p {
	margin-bottom: 1.5rem;
}

.pages ul {
	padding-left: 1.5rem;
	margin-bottom: 1.5rem;
}

.pages li {
	margin-bottom: 1rem;
	padding-left: 1rem;
	position: relative;
}

/* Custom list bullet */
.pages li::before {
	content: '•';
	color: var(--primary-color);
	font-weight: bold;
	display: inline-block;
	position: absolute;
	left: -1rem;
	top: 0;
}

.pages a {
	color: var(--primary-color);
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.pages a:hover {
	color: var(--white);
}

.pages strong {
	color: var(--white);
	font-weight: 500;
}
