/* Basic Reset */

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

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	font-family: 'Arial', sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f9f9f9;
}

.container {
	width: 90%;
	max-width: 1100px;
	margin: 0 auto;
	padding: 0 20px;
}

/* Header */
header {
	background: #fff;
	border-bottom: 1px solid #eee;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .container {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

header .logo {
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
	font-size: 1.2rem;
	font-weight: bold;
	color: #333;
	text-decoration: none;
}

.logo img {
	height: 40px;
	width: auto;
}

header nav ul {
	list-style: none;
	display: flex;
}

header nav ul li {
	margin-left: 20px;
}

header nav ul li a {
	text-decoration: none;
	color: #555;
	font-weight: 500;
	transition: color 0.3s ease;
}

header nav ul li a:hover {
	color: #007bff;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
	display: none; /* Hidden by default, shown in media query */
	background: transparent;
	border: none;
	cursor: pointer;
	padding: 0.5rem;
	z-index: 1001; /* Above nav items */
}

.sr-only {
	/* For accessibility, hide text visually but not from screen readers */
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.hamburger-icon {
	display: block;
	position: relative;
	width: 24px;
	height: 2px;
	background: #333;
	transition: background 0.3s ease;
}

.hamburger-icon::before,
.hamburger-icon::after {
	content: '';
	position: absolute;
	left: 0;
	width: 100%;
	height: 2px;
	background: #333;
	transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger-icon::before {
	top: -7px;
}

.hamburger-icon::after {
	bottom: -7px;
}

/* Active state for hamburger icon (X shape) */
.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon {
	background: transparent; /* Middle bar disappears */
}

.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon::before {
	transform: rotate(45deg);
	top: 0;
}

.mobile-nav-toggle[aria-expanded='true'] .hamburger-icon::after {
	transform: rotate(-45deg);
	bottom: 0; /* Adjust if top/bottom were initially different */
}

/* Sections */
section {
	padding: 60px 0;
	overflow: hidden; /* For animations */
}

section:nth-child(even) {
	background-color: #fff;
}

section h1,
section h2 {
	text-align: center;
	margin-bottom: 40px;
	color: #333;
	font-size: 2.5rem;
}

section h2 {
	font-size: 2.2rem;
}

section p {
	margin-bottom: 20px;
	color: #555;
	font-size: 1.05rem;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	text-align: center; /* Default for general paragraphs */
}

/* Hero Section */
#hero {
	background-image: linear-gradient(
			103deg,
			rgba(18, 18, 17, 0.78) 2.03%,
			rgba(18, 18, 17, 0.6) 58.46%,
			rgba(18, 18, 17, 0) 90.36%
		),
		url('../img/h1.webp');
	background-repeat: no-repeat;
	background-position: center top;
	background-size: cover;
	color: #fff;
	text-align: center;
	padding: 100px 0;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#hero h1 {
	font-size: 3.5rem;
	margin-bottom: 20px;
	color: #fff;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

#hero p {
	font-size: 1.3rem;
	margin-bottom: 30px;
	color: #f0f0f0;
	text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
	display: inline-block;
	background: #007bff;
	color: #fff;
	padding: 12px 25px;
	text-decoration: none;
	border-radius: 5px;
	font-weight: bold;
	transition: background-color 0.3s ease, transform 0.3s ease;
	font-size: 1.1rem;
}

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

/* What We Do Section */
#what-we-do .container p {
	text-align: left; /* Override general paragraph centering */
}
#what-we-do h2 {
	text-align: center;
}

/* Client Success Cards */
#client-success h2 {
	text-align: center;
}
.cards-container {
	display: flex;
	justify-content: space-around;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
}

.card {
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 8px;
	padding: 25px;
	width: calc(33.333% - 20px); /* Adjust for gap */
	min-width: 280px; /* Minimum width for smaller screens */
	box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	text-align: center;
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.card img {
	width: 100%;
	height: auto;
	margin-bottom: 15px;
	object-fit: contain;
}

.card h3 {
	margin-bottom: 10px;
	color: #007bff;
	font-size: 1.4rem;
}

.card p {
	font-size: 0.95rem;
	color: #555;
	text-align: center;
}

/* Page 2 Specifics */
/* Methodology Section */
.section-layout-image-text {
	display: flex;
	align-items: center;
	gap: 40px;
}
.section-layout-image-text .text-content {
	flex: 1;
}
.section-layout-image-text .text-content p,
.section-layout-image-text .text-content h2 {
	text-align: left;
}
.section-layout-image-text .image-content {
	flex: 1;
	max-width: 500px;
}
.section-layout-image-text .image-content img {
	width: 100%;
	height: auto;
	border-radius: 8px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Industry Insights Section */
#industry-insights .container p,
#industry-insights .container h3 {
	text-align: left;
}
#industry-insights h3 {
	margin-top: 20px;
	margin-bottom: 10px;
	font-size: 1.3rem;
	color: #333;
}

/* FAQ Section */
#faq h2,
#faq h3 {
	text-align: left;
}
.faq-item {
	background: #fff;
	margin-bottom: 10px;
	border-radius: 4px;
	border: 1px solid #e0e0e0;
	overflow: hidden;
}

.faq-question {
	background-color: #f7f7f7;
	color: #333;
	cursor: pointer;
	padding: 15px 20px;
	width: 100%;
	border: none;
	text-align: left;
	outline: none;
	font-size: 1.1rem;
	font-weight: 600;
	transition: background-color 0.3s ease;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.faq-question:hover {
	background-color: #e9e9e9;
}

.faq-toggle-icon {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-right: 2px solid #333;
	border-bottom: 2px solid #333;
	transform: rotate(45deg);
	transition: transform 0.3s ease;
	margin-left: 10px;
}

.faq-question[aria-expanded='true'] .faq-toggle-icon {
	transform: rotate(-135deg);
}

.faq-answer {
	padding: 0 20px;
	background-color: white;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.faq-answer.open {
	padding: 15px 20px;
	max-height: 300px;
}

.faq-answer p {
	text-align: left;
	font-size: 1rem;
	color: #555;
	margin-bottom: 0;
}

.faq-item h3 {
	display: none;
}

.faq-item {
	border-left: none;
	padding: 0;
}

/* Contact Section */
#contact {
	background-blend-mode: overlay;
	background-color: rgba(244, 244, 244, 0.85);
	color: #333;
}
#contact h2 {
	color: #333;
}
#contact p {
	color: #444;
}

.contact-form-container {
	display: flex;
	gap: 40px;
	margin-top: 30px;
	background: #fff;
	padding: 30px;
	border-radius: 8px;
	box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

#contactForm {
	flex: 2;
}

.contact-details {
	flex: 1;
	padding-left: 20px;
	border-left: 1px solid #eee;
}
.contact-details h3 {
	font-size: 1.3rem;
	color: #007bff;
	margin-bottom: 10px;
}
.contact-details p {
	margin-bottom: 10px;
	font-size: 1rem;
	text-align: left;
}
.contact-details a {
	color: #007bff;
	text-decoration: none;
}
.contact-details a:hover {
	text-decoration: underline;
}

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

.form-group label {
	display: block;
	margin-bottom: 5px;
	font-weight: bold;
	color: #444;
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 1rem;
}

.form-group textarea {
	resize: vertical;
}

.form-group-checkbox {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 20px;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin: 0;
	accent-color: #007bff;
}

.form-group-checkbox .checkbox-label {
	display: inline;
	font-weight: normal;
	color: #555;
	margin-bottom: 0;
	cursor: pointer;
}

#contactForm button.cta-button {
	width: auto;
	cursor: pointer;
}

.form-status-message {
	margin-top: 15px;
	font-weight: bold;
}
.form-status-message.success {
	color: green;
}
.form-status-message.error {
	color: red;
}

/* Footer */
footer {
	background: #333;
	color: #f4f4f4;
	padding: 40px 0;
	text-align: center;
}

.footer-columns {
	display: flex;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 20px;
	text-align: left;
}

.footer-column {
	flex: 1;
	min-width: 250px;
	margin-bottom: 20px;
}

.footer-column h4 {
	font-size: 1.3rem;
	margin-bottom: 15px;
	color: #fff;
}

.footer-column p,
.footer-column ul li {
	margin-bottom: 8px;
	font-size: 0.95rem;
	color: #ccc;
}

.footer-column ul {
	list-style: none;
}

.footer-column a {
	color: #00aaff;
	text-decoration: none;
}

.footer-column a:hover {
	text-decoration: underline;
}

/* Cookie Consent Modal */
.modal {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: rgba(0, 0, 0, 0.85);
	color: #fff;
	padding: 20px;
	z-index: 2000;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
}

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

.modal-content p {
	margin: 0;
	font-size: 0.95rem;
	text-align: left;
}

.modal-buttons button {
	background-color: #007bff;
	color: white;
	border: none;
	padding: 10px 15px;
	margin-left: 10px;
	border-radius: 4px;
	cursor: pointer;
	transition: background-color 0.3s ease;
}

.modal-buttons button#rejectCookies {
	margin-top: 5px;
	background-color: #6c757d;
}

.modal-buttons button:hover {
	opacity: 0.9;
}
.modal-buttons button#acceptCookies:hover {
	background-color: #0056b3;
}
.modal-buttons button#rejectCookies:hover {
	background-color: #545b62;
}

/* Centered Modal for Form Submission */
.centered-modal {
	display: none;
	position: fixed;
	z-index: 2001;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7);
}

.centered-modal-content {
	margin: 0 auto;
	transform: translateY(-50%);
	position: relative;
	top: 50%;
	background-color: #fff;
	color: #333;
	padding: 30px 25px;
	border-radius: 8px;
	max-width: 400px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.spinner {
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-radius: 50%;
	border-top: 4px solid #007bff;
	width: 40px;
	height: 40px;
	animation: spin 1s linear infinite;
	margin: 0 auto 20px auto;
}

@keyframes spin {
	0% {
		transform: rotate(0deg);
	}
	100% {
		transform: rotate(360deg);
	}
}

.success-icon {
	font-size: 40px;
	color: #28a745;
	display: block;
	text-align: center;
	margin-bottom: 15px;
}

.centered-modal-content p {
	margin-bottom: 0;
	font-size: 1.1rem;
	color: #333;
}

/* Animation */
.animated-section {
	opacity: 0;
	transform: translateY(30px) scale(0.98);
	transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animated-section.visible {
	opacity: 1;
	transform: translateY(0) scale(1);
}

/* Legal Pages Basic Styling */
.legal-page-container {
	padding: 40px 0;
	background: #fff;
	min-height: 70vh;
}
.legal-page-container .container {
	max-width: 800px;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 30px;
	text-align: left;
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 30px;
	margin-bottom: 15px;
	text-align: left;
	color: #007bff;
}
.legal-page-container p,
.legal-page-container ul {
	margin-bottom: 15px;
	line-height: 1.7;
	text-align: left;
	color: #444;
}
.legal-page-container ul {
	padding-left: 25px;
}
.legal-page-container li {
	margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 992px) {
	.section-layout-image-text {
		flex-direction: column;
	}
	.section-layout-image-text .image-content {
		margin-top: 30px;
		order: -1;
	}
	.contact-form-container {
		flex-direction: column;
	}
	.contact-details {
		padding-left: 0;
		border-left: none;
		margin-top: 30px;
		padding-top: 20px;
		border-top: 1px solid #eee;
	}
}

@media (max-width: 768px) {
	header {
		padding: 1rem 0;
	}

	header .container {
		flex-direction: row;
		justify-content: space-between;
		gap: 10px;
		position: relative;
	}

	.mobile-nav-toggle {
		display: block;
	}

	header nav {
	}

	header nav ul {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: #fff;
		flex-direction: column;
		align-items: center;
		padding: 1rem 0;
		box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
		border-top: 1px solid #eee;
		transform: translateY(-150%);
		transition: transform 0.3s ease-in-out;
		z-index: 999;
	}

	header nav ul.mobile-nav-active {
		transform: translateY(0);
	}

	header nav ul li {
		margin: 10px 0;
		width: 100%;
		text-align: center;
	}
	header nav ul li a {
		display: block;
		padding: 10px 0;
	}

	#hero h1 {
		font-size: 2.8rem;
	}
	#hero p {
		font-size: 1.1rem;
	}

	section h1,
	section h2 {
		font-size: 2rem;
	}
	section h2 {
		font-size: 1.8rem;
	}

	.cards-container {
		flex-direction: column;
		align-items: center;
	}
	.card {
		width: 90%;
		max-width: 400px;
	}

	.footer-columns {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}
	.footer-column {
		text-align: center;
	}
	.footer-column h4 {
		margin-top: 20px;
	}
	.footer-column ul {
		padding-left: 0;
	}
	.footer-column p,
	.footer-column ul li,
	.footer-column a {
		text-align: center;
	}

	.modal-content {
		flex-direction: column;
		text-align: center;
	}
	.modal-content p {
		margin-bottom: 15px;
		text-align: center;
	}
	.modal-buttons {
		width: 100%;
		display: flex;
		justify-content: center;
	}
}

@media (max-width: 480px) {
	body {
		font-size: 15px;
	}
	.container {
		width: 95%;
		padding: 0 10px;
	}
	#hero h1 {
		font-size: 2.2rem;
	}
	#hero p {
		font-size: 1rem;
	}
	.cta-button {
		font-size: 1rem;
		padding: 10px 20px;
	}
	.logo {
		font-size: 1.5rem !important;
	}
	header nav ul li a {
		font-size: 0.9rem;
	}
}
