/* Table of Contents
---
1. Global Styles
2. Helper Classes
3. Header
4. Navigation
5. Burger Menu
6. Footer
---*/

/* 1. Global Styles */
:root {
	--background-color: #f8f9fa;
	--text-color: #212529;
	--primary-color: #007bff;
	--secondary-color: #6c757d;
	--white-color: #ffffff;
	--border-color: #dee2e6;
	--font-family-headings: 'Poppins', sans-serif;
	--font-family-body: 'Inter', sans-serif;
	--header-height: 80px;
}

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

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family-body);
	font-size: 16px;
	line-height: 1.6;
	color: var(--text-color);
	background-color: var(--background-color);
	-webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	font-family: var(--font-family-headings);
	font-weight: 700;
	line-height: 1.2;
	margin-bottom: 0.5rem;
}

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

a:hover {
	color: #0056b3;
}

ul {
	list-style: none;
}

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

button {
	cursor: pointer;
	border: none;
	background: none;
	font-family: inherit;
}

/* 2. Helper Classes */
.container {
	max-width: 1200px;
	margin-left: auto;
	margin-right: auto;
	padding-left: 15px;
	padding-right: 15px;
}

/* 3. Header */
.header {
	background-color: var(--white-color);
	height: var(--header-height);
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
	transition: background-color 0.3s ease;
}

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

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

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

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

/* 4. Navigation */
.nav__list {
	display: flex;
	gap: 30px;
}

.nav__link {
	font-family: var(--font-family-body);
	font-weight: 500;
	color: var(--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::after,
.nav__link--active::after {
	width: 100%;
}

/* 5. Burger Menu */
.burger {
	display: none;
	color: var(--text-color);
}

/* 6. Footer */
.footer {
	background-color: #111;
	color: var(--white-color);
	padding: 60px 0 0;
}

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

.footer__column .logo {
	color: var(--white-color);
	margin-bottom: 15px;
}

.footer__tagline {
	color: var(--secondary-color);
	font-size: 14px;
}

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

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

.footer__link {
	color: var(--secondary-color);
	font-size: 14px;
}

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

.footer__list--contact {
	gap: 15px;
}

.footer__list--contact li {
	display: flex;
	align-items: center;
	gap: 10px;
}

.footer__icon {
	flex-shrink: 0;
	width: 18px;
	height: 18px;
	color: var(--primary-color);
}

.footer__text {
	color: var(--secondary-color);
	font-size: 14px;
}

.footer__bottom {
	border-top: 1px solid #343a40;
	padding: 20px 0;
	text-align: center;
	font-size: 14px;
	color: var(--secondary-color);
}

/* Responsive Styles */
@media (max-width: 768px) {
	.nav {
		position: fixed;
		top: var(--header-height);
		left: 0;
		width: 100%;
		height: calc(100vh - var(--header-height));
		background-color: var(--white-color);
		transform: translateX(-100%);
		transition: transform 0.3s ease-in-out;
		padding: 40px;
	}

	.nav--open {
		transform: translateX(0);
	}

	.nav__list {
		flex-direction: column;
		align-items: center;
		gap: 25px;
	}

	.nav__link {
		font-size: 20px;
	}

	.burger {
		display: block;
		z-index: 1001; /* Should be above the nav panel */
	}
}

/* ---
7. Button
8. Hero Section
---*/

/* 7. Button */
.button {
	display: inline-block;
	padding: 12px 30px;
	background-color: var(--primary-color);
	color: var(--white-color);
	font-family: var(--font-family-headings);
	font-weight: 600;
	font-size: 16px;
	border-radius: 5px;
	text-align: center;
	transition: background-color 0.3s ease, transform 0.3s ease;
}

.button:hover {
	background-color: #0056b3;
	color: var(--white-color);
	transform: translateY(-2px);
}

/* 8. Hero Section */
.hero {
	padding-top: calc(var(--header-height) + 60px);
	padding-bottom: 60px;
	min-height: 90vh;
	display: flex;
	align-items: center;
	overflow: hidden; /* To prevent AOS from showing elements before animation */
}

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

.hero__title {
	font-size: 48px;
	margin-bottom: 20px;
	color: var(--text-color);
}

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

.hero__cta {
	font-size: 18px;
}

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

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

/* Responsive Styles for Hero */
@media (min-width: 768px) {
	.hero__container {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 992px) {
	.hero__title {
		font-size: 36px;
	}
}

@media (max-width: 767px) {
	.hero {
		padding-top: calc(var(--header-height) + 40px);
		text-align: center;
	}
	.hero__description {
		margin-left: auto;
		margin-right: auto;
	}
	.hero__image-wrapper {
		order: -1; /* Image will be on top on mobile */
	}
}

/* 9. Reusable Section Styles */
.section-title {
	font-size: 36px;
	text-align: center;
	margin-bottom: 20px;
	color: var(--text-color);
}

.section-subtitle {
	font-size: 18px;
	text-align: center;
	color: var(--secondary-color);
	max-width: 800px;
	margin: 0 auto 60px;
}

/* 10. About Section */
.about {
	padding: 80px 0;
	background-color: var(--white-color);
}

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

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

.feature-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.feature-card__icon-wrapper {
	width: 60px;
	height: 60px;
	margin: 0 auto 20px;
	border-radius: 50%;
	background-color: #e7f1ff; /* Light blue background for icon */
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.feature-card__title {
	font-size: 20px;
	font-weight: 600;
	margin-bottom: 10px;
}

.feature-card__description {
	font-size: 15px;
	color: var(--secondary-color);
}

/* Responsive Styles for About */
@media (max-width: 992px) {
	.section-title {
		font-size: 32px;
	}
	.section-subtitle {
		font-size: 16px;
	}
}

.services {
	padding: 80px 0;
	background-color: var(--background-color);
}

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

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

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

.service-card__icon-wrapper {
	width: 60px;
	height: 60px;
	margin-bottom: 25px;
	border-radius: 8px;
	background-color: #e7f1ff;
	display: flex;
	justify-content: center;
	align-items: center;
}

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

.service-card__title {
	font-size: 22px;
	font-weight: 600;
	margin-bottom: 15px;
}

.service-card__description {
	font-size: 15px;
	color: var(--secondary-color);
	flex-grow: 1; /* Pushes the link to the bottom */
	margin-bottom: 20px;
}

.service-card__link {
	font-family: var(--font-family-headings);
	font-weight: 600;
	color: var(--primary-color);
	display: flex;
	align-items: center;
	gap: 8px;
}

.service-card__link:hover {
	color: #0056b3;
	text-decoration: underline;
}

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

.service-card__link:hover .service-card__link-icon {
	transform: translateX(4px);
}

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

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

.blog-card {
	background-color: var(--white-color);
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.blog-card__image-link {
	display: block;
}

.blog-card__image {
	width: 100%;
	height: 200px;
	object-fit: cover;
	transition: transform 0.3s ease;
}

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

.blog-card__content {
	padding: 25px;
}

.blog-card__category {
	display: inline-block;
	margin-bottom: 10px;
	font-size: 12px;
	font-weight: 600;
	color: var(--primary-color);
	background-color: #e7f1ff;
	padding: 4px 10px;
	border-radius: 20px;
	text-transform: uppercase;
}

.blog-card__category:hover {
	background-color: #d0e3ff;
	color: #0056b3;
}

.blog-card__title {
	font-size: 20px;
	margin-bottom: 15px;
}

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

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

.blog-card__excerpt {
	font-size: 15px;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

.blog-card__meta {
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: var(--secondary-color);
	border-top: 1px solid var(--border-color);
	padding-top: 15px;
}

.cases {
	padding: 80px 0;
	background-color: var(--background-color);
}

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

.testimonial-card {
	background-color: var(--white-color);
	padding: 30px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04);
	display: flex;
	flex-direction: column;
}

.testimonial-card__text {
	font-size: 16px;
	color: var(--text-color);
	margin-bottom: 25px;
	flex-grow: 1;
	font-style: italic;
	position: relative;
	padding-left: 20px;
	border-left: 3px solid var(--primary-color);
}

.testimonial-card__author {
	display: flex;
	align-items: center;
	gap: 15px;
}

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

.testimonial-card__author-info {
	display: flex;
	flex-direction: column;
}

.testimonial-card__name {
	font-family: var(--font-family-headings);
	font-weight: 600;
	color: var(--text-color);
}

.testimonial-card__role {
	font-size: 14px;
	color: var(--secondary-color);
}

/* ---
14. Contact Section
---*/

.contact {
	padding: 80px 0;
}

.contact__wrapper {
	display: grid;
	grid-template-columns: 1fr;
	gap: 50px;
	background-color: var(--white-color);
	padding: 50px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}

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

.contact__description {
	font-size: 16px;
	color: var(--secondary-color);
	margin-bottom: 20px;
}

/* Form Styles */
.contact-form {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.form-group {
	display: flex;
	flex-direction: column;
}

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

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

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

.form-group--checkbox {
	flex-direction: row;
	align-items: flex-start;
	gap: 10px;
	font-size: 14px;
	color: var(--secondary-color);
}

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

.form-checkbox-label a {
	text-decoration: underline;
}

.contact-form__button {
	width: 100%;
	padding: 15px;
	font-size: 18px;
	margin-top: 10px;
}

/* Success Message */
.form-success-message {
	margin-top: 20px;
	text-align: center;
	padding: 40px;
	border: 2px dashed var(--primary-color);
	border-radius: 8px;
	background-color: #e7f1ff;
}

.form-success-message__icon {
	width: 48px;
	height: 48px;
	color: var(--primary-color);
	margin-bottom: 15px;
}

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

.form-success-message__text {
	color: var(--secondary-color);
}

/* Responsive Styles for Contact */
@media (min-width: 992px) {
	.contact__wrapper {
		grid-template-columns: 1fr 1fr;
		padding: 70px;
	}
}

/* ---
15. Cookie Pop-up
16. Policy Pages Styles
---*/

/* 15. Cookie Pop-up */
.cookie-popup {
	position: fixed;
	bottom: -100%; /* Initially hidden */
	left: 0;
	width: 100%;
	background-color: var(--white-color);
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	padding: 20px;
	z-index: 2000;
	transition: bottom 0.5s ease-in-out;
}

.cookie-popup--show {
	bottom: 0;
}

.cookie-popup__content {
	display: flex;
	justify-content: space-between;
	align-items: center;
	max-width: 1200px;
	margin: 0 auto;
	gap: 20px;
}

.cookie-popup__text {
	font-size: 14px;
	color: var(--secondary-color);
}

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

.cookie-popup__button {
	padding: 8px 20px;
	flex-shrink: 0;
}

/* Responsive for Cookie Pop-up */
@media (max-width: 768px) {
	.cookie-popup__content {
		flex-direction: column;
		text-align: center;
	}
}

/* 16. Policy Pages Styles */
.pages {
	padding-top: calc(var(--header-height) + 40px);
	padding-bottom: 60px;
}

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

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

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

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

.pages p {
	margin-bottom: 15px;
	line-height: 1.7;
	color: var(--text-color);
}

.pages a {
	text-decoration: underline;
}

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

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