@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

:root {
	--bg-color: #1a1d24; /* Dark blue/grey */
	--surface-color: #2c303a; /* Slightly lighter for cards/sections */
	--primary-text-color: #e0e0e0;
	--secondary-text-color: #b0b0b0;
	--accent-color: #64ffda; /* A vibrant teal/mint */
	--accent-hover-color: #52d1b7;
	--border-color: #40434d;
	--font-family: 'Roboto', sans-serif; /* Changed font */
}

* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--font-family);
	background-color: var(--bg-color);
	color: var(--primary-text-color);
	line-height: 1.7;
	font-size: 16px;
}

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

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

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

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

h1,
h2,
h3,
h4 {
	color: var(--primary-text-color);
	margin-bottom: 1rem;
	line-height: 1.3;
}

h1 {
	font-size: 2.8rem;
	margin-bottom: 1.5rem;
}
h2 {
	font-size: 2.2rem;
	margin-bottom: 1.2rem;
}
h3 {
	font-size: 1.3rem;
}
p {
	margin-bottom: 1rem;
	color: var(--secondary-text-color);
}

/* Header */
header {
	background-color: var(--surface-color);
	padding: 1rem 0;
	border-bottom: 1px solid var(--border-color);
	position: sticky;
	top: 0;
	z-index: 1000;
}

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

.logo {
	height: 30px;
	width: auto;
}

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

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

header nav ul li a {
	font-weight: bold;
	font-size: 1.1rem;
}

/* Main sections */
main section {
	padding: 60px 0;
	overflow: hidden; /* For animations */
}

main section:nth-child(even) {
	/* background-color: var(--surface-color); */ /* Alternate background for sections */
}

.full-width-section {
	padding-left: 0;
	padding-right: 0;
}
.full-width-section > .container {
	max-width: 100%; /* Allow content to go wider if needed for design */
}

/* Hero Section */
#hero {
	background-image: linear-gradient(
			rgba(26, 29, 36, 0.8),
			rgba(26, 29, 36, 0.8)
		),
		url('../img/h1.webp');
	background-size: cover;
	background-position: center;
	color: white;
	text-align: center;
	min-height: 70vh;
	display: flex;
	align-items: center;
	justify-content: center;
}

#hero .hero-content {
	max-width: 800px;
}

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

#hero p {
	font-size: 1.3rem;
	margin-bottom: 2rem;
	color: #f0f0f0;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Softer shadow for paragraphs */
}

.cta-button {
	display: inline-block;
	background-color: var(--accent-color);
	color: var(--bg-color);
	padding: 12px 25px;
	border-radius: 5px;
	font-weight: bold;
	text-decoration: none;
	transition: background-color 0.3s ease, transform 0.2s ease;
	border: 1px solid var(--border-color);
}

.cta-button:hover {
	background-color: var(--accent-hover-color);
	color: var(--bg-color);
	transform: translateY(-2px);
}

/* Philosophy Section */
#philosophy .philosophy-points {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
	gap: 30px;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

#philosophy .point {
	background-color: var(--surface-color);
	padding: 25px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
}
#philosophy .point h3 .emoji {
	margin-right: 0.5em;
	font-size: 1.5em; /* Increased emoji size */
	display: inline-block; /* Ensures proper alignment */
}

/* Services Section - Cards */
#services .cards-container {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
	gap: 30px;
	margin-top: 2rem;
	margin-bottom: 2rem;
}

#services .card {
	background-color: var(--surface-color);
	padding: 20px;
	border-radius: 8px;
	border: 1px solid var(--border-color);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
}

#services .card img {
	width: 100%; /* Adjust as needed */
	height: auto;
	margin-bottom: 1rem;
	object-fit: contain;
}

#services .card h3 {
	margin-bottom: 0.5rem;
}

/* Page 2 - Difference Section */
.section-layout-image-text {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	align-items: center;
}

.section-layout-image-text .image-content img {
	border-radius: 8px;
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* FAQ Section */
#faq .faq-accordion {
	max-width: 800px;
	margin: 2rem auto 0;
}
#faq h2 .emoji {
	margin-right: 0.5em;
}

.faq-item {
	background-color: var(--surface-color);
	margin-bottom: 10px;
	border-radius: 5px;
	border: 1px solid var(--border-color);
}

.faq-question {
	background: none;
	border: none;
	color: var(--primary-text-color);
	width: 100%;
	text-align: left;
	padding: 15px 20px;
	font-size: 1.2rem;
	font-weight: bold;
	cursor: pointer;
	position: relative;
}

.faq-question::after {
	content: '+';
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.5rem;
	color: var(--accent-color);
	transition: transform 0.3s ease; /* Smooth rotation for icon */
}

.faq-item.active .faq-question::after {
	content: '–';
	transform: translateY(-50%) rotate(180deg); /* Rotate minus sign */
}

.faq-answer {
	box-sizing: content-box;
	padding: 0 20px;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease-out, padding 0.3s ease-out;
	color: white;
}
.faq-answer p {
	margin-bottom: 0.5rem;
}

.faq-item.active .faq-answer {
	max-height: 500px; /* Adjust as needed for content */
	padding-top: 10px;
	padding-bottom: 15px;
}

/* Contact Section */
#contact {
	background-image: linear-gradient(
		rgba(26, 29, 36, 0.9),
		rgba(26, 29, 36, 0.9)
	);
	background-size: cover;
	background-position: center;
	color: white;
}
#contact h2,
#contact p {
	color: white; /* Ensure text readability on background image */
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5); /* Add subtle shadow for better readability */
}
#contact .contact-content-wrapper {
	max-width: 1000px; /* Limit width for contact content */
	margin: 0 auto;
	padding: 0 15px; /* Standard padding if not full width */
	border-top: 1px solid var(--border-color);
	padding-top: 20px;
}

.contact-container {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	margin-top: 2rem;
	background-color: rgba(
		44,
		48,
		58,
		0.8
	); /* Semi-transparent surface color for form area */
	padding: 30px;
	border-radius: 8px;
}

.form-group {
	margin-bottom: 1.5rem;
}

.form-group label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: bold;
	color: var(--primary-text-color);
}

.form-group input,
.form-group textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--border-color);
	border-radius: 5px;
	background-color: var(--bg-color);
	color: var(--primary-text-color);
	font-size: 1rem;
}

.form-group input:focus,
.form-group textarea:focus {
	outline: none;
	border-color: var(--accent-color);
	box-shadow: 0 0 5px var(--accent-color);
}

.form-group-checkbox {
	display: flex;
	align-items: flex-start;
	margin-bottom: 1.5rem;
}

.form-group-checkbox input[type='checkbox'] {
	width: auto;
	margin-top: 4px;
	margin-right: 10px;
	accent-color: var(--accent-color);
}

.form-group-checkbox .checkbox-label {
	font-weight: normal;
	color: var(--secondary-text-color);
	font-size: 0.9rem;
	line-height: 1.4;
}
.form-group-checkbox .checkbox-label a {
	color: var(--accent-color);
	text-decoration: underline;
}

.contact-details h3 {
	color: var(--primary-text-color);
}
.contact-details p {
	margin-bottom: 0.8rem;
	color: var(--secondary-text-color);
}
.contact-details .emoji {
	margin-right: 0.5em;
}
.contact-details a {
	color: var(--accent-color);
}
.contact-details a:hover {
	text-decoration: underline;
}

.form-status-message {
	margin-top: 1rem;
	padding: 10px;
	border-radius: 5px;
	text-align: center;
}
.form-status-message.success {
	background-color: #28a745;
	color: white;
}
.form-status-message.error {
	background-color: #dc3545;
	color: white;
}

/* Footer */
footer {
	background-color: var(--surface-color);
	color: var(--secondary-text-color);
	padding: 40px 0 20px;
	border-top: 1px solid var(--border-color);
	text-align: center;
}

.footer-content {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 30px;
	margin-bottom: 30px;
	text-align: left;
}

.footer-contact h4,
.footer-links h4,
.footer-legal h4 {
	color: var(--primary-text-color);
	margin-bottom: 15px;
	font-size: 1.2rem;
}

.footer-contact p,
.footer-links ul li,
.footer-legal ul li {
	margin-bottom: 8px;
}

.footer-links ul,
.footer-legal ul {
	list-style: none;
}

.footer-links a,
.footer-legal a,
.footer-contact a {
	color: var(--secondary-text-color);
}
.footer-links a:hover,
.footer-legal a:hover,
.footer-contact a:hover {
	color: var(--accent-color);
	text-decoration: underline;
}

.copyright {
	font-size: 0.9rem;
	margin-top: 20px;
	border-top: 1px solid var(--border-color);
	padding-top: 20px;
}

/* Cookie Consent Modal */
.cookie-modal {
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background-color: var(--surface-color);
	color: var(--primary-text-color);
	padding: 20px;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
	z-index: 2000; /* Above other elements */
	display: none;
	border-top: 1px solid var(--border-color);
}

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

.cookie-modal-content p {
	margin: 0;
	margin-right: 20px;
	font-size: 0.9rem;
}
.cookie-modal-content p a {
	text-decoration: underline;
}

.cookie-buttons button {
	padding: 8px 15px;
	margin-left: 10px;
	border: none;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
}

#acceptCookies {
	margin-bottom: 5px;
	background-color: var(--accent-color);
	color: var(--bg-color);
}
#acceptCookies:hover {
	background-color: var(--accent-hover-color);
}

#declineCookies {
	background-color: #555;
	color: white;
}
#declineCookies:hover {
	background-color: #777;
}

/* Mobile Menu Styles */
.mobile-menu-toggle {
	display: none; /* Hidden by default, shown on mobile */
	background: none;
	border: none;
	color: var(--primary-text-color);
	font-size: 2rem; /* Larger icon */
	cursor: pointer;
	padding: 5px;
	z-index: 1100; /* Above other header elements */
}

.mobile-menu-toggle .icon-bar {
	display: block;
	width: 25px;
	height: 3px;
	background-color: var(--primary-text-color);
	margin: 5px 0;
	transition: transform 0.3s ease, opacity 0.3s ease;
}

/* Styles for when mobile menu is open (X icon) */
.mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(1) {
	transform: translateY(8px) rotate(45deg);
}
.mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(2) {
	opacity: 0;
}
.mobile-nav-open .mobile-menu-toggle .icon-bar:nth-child(3) {
	transform: translateY(-8px) rotate(-45deg);
}

/* Animation for sections */
.animated-section {
	opacity: 0;
	transform: scale(0.95) translateY(20px);
	transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

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

/* Legal Pages Specific Styles */
.legal-page-container {
	padding: 40px 0;
}
.legal-page-container .container {
	background-color: var(--surface-color);
	padding: 30px;
	border-radius: 8px;
}
.legal-page-container h1 {
	font-size: 1.5rem;
	margin-bottom: 2rem;
	text-align: center;
	color: var(--accent-color);
}
.legal-page-container h2 {
	font-size: 1.5rem;
	margin-top: 2rem;
	margin-bottom: 1rem;
	color: var(--primary-text-color);
	border-bottom: 1px solid var(--border-color);
	padding-bottom: 0.5rem;
}
.legal-page-container p,
.legal-page-container li {
	color: var(--secondary-text-color);
	margin-bottom: 1rem;
}
.legal-page-container ul {
	list-style-position: inside;
	padding-left: 20px;
}
.legal-page-container ul li {
	margin-bottom: 0.5rem;
}

/* Submission Modal */
.submission-modal {
	display: none; /* Hidden by default */
	position: fixed;
	z-index: 2000; /* Above cookie modal, below mobile nav if it's higher */
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0, 0, 0, 0.7); /* Darker dim background */
	justify-content: center;
	align-items: center;
	/* Ensure it uses flex for centering */
	display: flex;
	visibility: hidden; /* Use visibility for transitions if desired, or just display */
	opacity: 0;
	transition: opacity 0.3s ease, visibility 0.3s ease;
}

.submission-modal.visible {
	visibility: visible;
	opacity: 1;
}

.submission-modal-content {
	background-color: var(--surface-color);
	margin: auto;
	padding: 30px 40px;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	width: 90%;
	max-width: 450px;
	text-align: center;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submission-modal-content p {
	color: var(--primary-text-color);
	font-size: 1.1rem; /* Slightly smaller than previous 1.2rem */
	margin-top: 0; /* Spinner is now primary, p is secondary */
	margin-bottom: 0;
}

.spinner {
	border: 5px solid var(--border-color); /* Slightly thicker border */
	border-top: 5px solid var(--accent-color); /* Accent color for spinning part */
	border-radius: 50%;
	width: 50px; /* Larger spinner */
	height: 50px;
	animation: spin 0.8s linear infinite; /* Faster spin */
	margin: 0 auto 20px auto; /* More space below spinner */
}

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

/* Responsive Design */
@media (max-width: 768px) {
	.contact-container {
		grid-template-columns: 1fr; /* Stack columns on smaller screens */
	}

	.section-layout-image-text {
		grid-template-columns: 1fr;
	}

	.cookie-modal-content {
		gap: 10px;
		flex-direction: column;
	}

	body {
		font-size: 15px;
	}
	header .container {
		flex-direction: row; /* Keep logo and toggle on same line */
		justify-content: space-between;
		align-items: center;
		position: relative; /* For mobile menu positioning */
	}
	header .logo {
		margin-bottom: 0;
	}

	.mobile-menu-toggle {
		display: block; /* Show hamburger icon */
	}

	header nav {
		position: fixed;
		top: 0; /* Or top: header height, if header is not fixed height */
		left: 0;
		width: 100%;
		height: 100vh;
		background-color: rgba(
			26,
			29,
			36,
			0.98
		); /* Dark, slightly transparent background */
		backdrop-filter: blur(5px); /* Optional: blur effect for background */
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		transform: translateX(-100%);
		transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1); /* Smoother transition */
		z-index: 999; /* Below toggle, above content */
		padding-top: 60px; /* Space for header */
	}

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

	header nav ul {
		padding-left: 0;
		flex-direction: column;
		text-align: center;
	}
	header nav ul li {
		margin: 20px 0; /* Increased spacing for mobile */
	}
	header nav ul li a {
		font-size: 1.8rem; /* Larger font for mobile menu items */
		color: var(--primary-text-color);
		padding: 10px;
		display: block;
	}
	header nav ul li a:hover {
		color: var(--accent-color);
	}

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

@media (max-width: 480px) {
	main section {
		padding: 40px 0;
	}
	h1 {
		font-size: 1.8rem;
	}
	h2 {
		font-size: 1.6rem;
	}
	#hero h1 {
		font-size: 2rem;
	}

	.cta-button {
		padding: 10px 20px;
		font-size: 0.9rem;
	}
	#philosophy .philosophy-points {
		grid-template-columns: 1fr;
	}
	.footer-content {
		grid-template-columns: 1fr;
		text-align: center;
	}
	.footer-content div {
		margin-bottom: 20px;
	}
}
