/* Reset and Base Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

:root {
	--terra-bg: #8B6F47;
	--olive-bg: #6B7F3F;
	--text-color: #2C2416;
	--light-text: #F5F1E8;
	--accent: #C9A961;
}

html {
	font-size: 16px;
	scroll-behavior: smooth;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	color: var(--text-color);
	background-color: #fff;
	line-height: 1.6;
	overflow-x: hidden;
}

/* Utility Classes */
.terra-bg {
	background-color: var(--terra-bg);
	color: var(--light-text);
}

/* Typography */
.huge {
	font-size: clamp(3rem, 8vw, 8rem);
	font-weight: 300;
	line-height: 1.1;
	letter-spacing: -0.02em;
}

.xhuge {
	font-size: clamp(2rem, 5vw, 5rem);
	font-weight: 300;
	line-height: 1.2;
	letter-spacing: -0.01em;
}

.big {
	font-size: clamp(1.5rem, 3vw, 3rem);
	font-weight: 300;
	line-height: 1.3;
}

.mask-text {
	-webkit-text-fill-color: transparent;
	-webkit-background-clip: text;
	background-clip: text;
	background-image: linear-gradient(180deg, var(--text-color) 0%, var(--terra-bg) 100%);
}

/* Header */
header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 1000;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 2rem 3rem;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(10px);
	transition: all 0.3s ease;
}

header.uppercase {
	text-transform: uppercase;
	letter-spacing: 0.1em;
	font-size: 0.875rem;
}

.menu {
	list-style: none;
	display: flex;
	gap: 2rem;
	align-items: center;
}

.menu a {
	text-decoration: none;
	color: var(--text-color);
	transition: color 0.3s ease;
}

.menu a:hover {
	color: var(--terra-bg);
}

.logo-link {
	text-decoration: none;
}

.logo-text {
	font-size: 1.5rem;
	font-weight: 400;
	color: var(--text-color);
	letter-spacing: 0.2em;
}

.cta-button {
	background: var(--terra-bg);
	color: var(--light-text) !important;
	padding: 0.5rem 1.5rem;
	border-radius: 2px;
	transition: background 0.3s ease;
}

.cta-button:hover {
	background: var(--olive-bg);
}

.navbar-toggler {
	display: none;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.navbar-toggler .line {
	width: 25px;
	height: 2px;
	background: var(--text-color);
	transition: all 0.3s ease;
}

/* Region Selector */
.region-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-color: transparent;
	border: 1px solid #ccc;
	border-radius: 2px;
	padding: 0.5rem 2rem 0.5rem 1rem;
	font-family: inherit;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--text-color);
	cursor: pointer;
	outline: none;
	background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
	background-repeat: no-repeat;
	background-position: right 0.5rem center;
	background-size: 1em;
	min-width: 120px;
	transition: all 0.3s ease;
}

.region-select:hover {
	border-color: var(--terra-bg);
}

.region-select:focus {
	border-color: var(--terra-bg);
}

@media (max-width: 768px) {
	.region-select {
		width: 100%;
		max-width: 250px;
		margin-top: 1rem;
		text-align-last: center;
		padding: 0.8rem;
		background-position: right 1rem center;
	}
}

/* Splash Screen */
.splash {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--terra-bg);
	position: relative;
	overflow: hidden;
}

.animated-box {
	position: relative;
	z-index: 20;
	pointer-events: none;
	text-align: center;
}

.logo-flex {
	display: flex;
	justify-content: center;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.logo-flex span {
	display: inline-block;
	animation: fadeInUp 0.8s ease forwards;
	opacity: 0;
}

.logo-flex span:nth-child(1) {
	animation-delay: 0.1s;
}

.logo-flex span:nth-child(2) {
	animation-delay: 0.2s;
}

.logo-flex span:nth-child(3) {
	animation-delay: 0.3s;
}

.logo-flex span:nth-child(4) {
	animation-delay: 0.4s;
}

.logo-flex span:nth-child(5) {
	animation-delay: 0.5s;
}

.logo-flex span:nth-child(6) {
	animation-delay: 0.6s;
}

.logo-flex.tiles span:nth-child(1) {
	animation-delay: 0.7s;
}

.logo-flex.tiles span:nth-child(2) {
	animation-delay: 0.8s;
}

.logo-flex.tiles span:nth-child(3) {
	animation-delay: 0.9s;
}

.logo-flex.tiles span:nth-child(4) {
	animation-delay: 1.0s;
}

.logo-flex.tiles span:nth-child(5) {
	animation-delay: 1.1s;
}

.rotated {
	transform: rotate(-90deg);
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Headline */
.headline {
	padding: 8rem 0 4rem;
	/* Removed side padding to allow full width */
	text-align: center;
	width: 100%;
	/* Full width */
	margin: 0;
	position: relative;
	background-image: url('../images/modern-moroccan-facade-with-zellige-tile-fountain.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	background-repeat: no-repeat;
	min-height: 400px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.headline-content {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 3rem;
	position: relative;
	z-index: 2;
	width: 100%;
}

.headline::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(245, 241, 232, 0.75);
	z-index: 1;
}

.headline h1 {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.headline {
		background-attachment: scroll;
		min-height: 300px;
		padding: 4rem 1.5rem 3rem;
	}
}

/* Image Cursor Effect */
.image-cursor {
	position: absolute;
	pointer-events: none;
	z-index: 10;
}

.image-cursor img {
	display: block;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
	border-radius: 2px;
	object-fit: cover;
	/* Slight filter effect for images */
	filter: contrast(1.1) saturate(1.1);
}

/* Big Text Section */
.big-text-section {
	padding: 8rem 3rem;
	text-align: center;
	position: relative;
	overflow: hidden;
}

.rotating-text {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 300px;
	height: 300px;
	opacity: 0.1;
	pointer-events: none;
}

.rotating-text svg {
	width: 100%;
	height: 100%;
	animation: rotate 20s linear infinite;
}

.rotating-text text {
	fill: var(--light-text);
	font-size: 14px;
	font-weight: 300;
}

@keyframes rotate {
	from {
		transform: rotate(0deg);
	}

	to {
		transform: rotate(360deg);
	}
}

.big-text-section .xhuge {
	margin: 1rem 0;
}

.hover {
	transition: transform 0.3s ease;
}

.hover:hover {
	transform: translateX(10px);
}

.see-about {
	margin-top: 3rem;
}

.button {
	display: inline-block;
	padding: 1rem 2.5rem;
	background: var(--light-text);
	color: var(--terra-bg);
	text-decoration: none;
	border-radius: 2px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	transition: all 0.3s ease;
	border: 2px solid var(--light-text);
}

.button:hover {
	background: var(--terra-bg);
	color: var(--light-text);
	border-color: var(--terra-bg);
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.button.large {
	padding: 1.25rem 3rem;
	font-size: 1.1rem;
}

/* Content Sections */
.full-cont-slider {
	padding: 8rem 3rem;
	background: #fff;
}

.centered-content {
	max-width: 1200px;
	margin: 0 auto;
}

.content-section {
	text-align: center;
}

.section-title {
	font-size: clamp(2rem, 4vw, 4rem);
	font-weight: 300;
	margin-bottom: 2rem;
	color: var(--text-color);
}

.section-text {
	font-size: 1.25rem;
	line-height: 1.8;
	color: var(--text-color);
	max-width: 800px;
	margin: 0 auto 1.5rem;
}

.cta-section {
	margin-top: 3rem;
}

/* Marquee Section */
.full-cont-marquee {
	padding: 8rem 3rem;
	position: relative;
	overflow: hidden;
}

.animated-text {
	text-align: center;
	margin-bottom: 4rem;
	font-size: clamp(1.5rem, 3vw, 3rem);
	font-weight: 300;
	opacity: 0.8;
}

.features-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 3rem;
	max-width: 1200px;
	margin: 0 auto 4rem;
}

.feature-item {
	text-align: center;
}

.feature-title {
	font-size: 1.5rem;
	font-weight: 400;
	margin-bottom: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

.feature-text {
	font-size: 1rem;
	line-height: 1.6;
	opacity: 0.9;
}

.see-all-services {
	text-align: center;
}

/* Footer */
footer {
	padding: 6rem 3rem 4rem;
	text-align: center;
}

.footer-links {
	list-style: none;
	display: flex;
	justify-content: center;
	gap: 2rem;
	flex-wrap: wrap;
	margin: 3rem 0;
}

.footer-links a {
	color: var(--light-text);
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.footer-links a:hover {
	opacity: 0.7;
}

.footer-element {
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.1em;
}

/* Mobile Menu */
.menu-hover {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: var(--terra-bg);
	z-index: 9999;
	display: none;
	align-items: center;
	justify-content: center;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.menu-hover.active {
	display: flex;
	opacity: 1;
	visibility: visible;
}

.menu-int {
	text-align: center;
}

.menu-mobile-container .menu {
	flex-direction: column;
	gap: 2rem;
}

.menu-mobile-container .menu a {
	color: var(--light-text);
	font-size: 1.5rem;
}

.copyright {
	margin-top: 2rem;
	font-size: 0.8rem;
	opacity: 0.8;
}

/* Responsive */
@media (max-width: 768px) {
	header {
		padding: 1.5rem;
	}

	.menu-main-container,
	.menu-lang-container {
		display: none;
	}

	.navbar-toggler {
		display: flex;
	}

	.headline {
		padding: 6rem 1.5rem 3rem;
	}

	#image-container {
		height: 40vh;
		min-height: 300px;
	}

	.big-text-section,
	.full-cont-slider,
	.full-cont-marquee {
		padding: 4rem 1.5rem;
	}

	.features-grid {
		grid-template-columns: 1fr;
		gap: 2rem;
	}

	footer {
		padding: 4rem 1.5rem 3rem;
	}

	.footer-links {
		flex-direction: column;
		gap: 1rem;
	}
}

/* Fader Animation */
.fader {
	animation: fadeIn 1s ease-in;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {

	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

/* Language Popup */
.lang-popup {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: #fff;
	padding: 1.5rem;
	border-radius: 4px;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
	z-index: 9998;
	display: none;
	flex-direction: column;
	gap: 1rem;
	max-width: 350px;
	border: 1px solid rgba(0, 0, 0, 0.05);
	animation: slideUp 0.5s ease forwards;
}

.lang-popup p {
	margin-right: 1.5rem;
	font-size: 0.95rem;
	color: var(--text-color);
	line-height: 1.5;
}

.lang-popup-actions {
	display: flex;
	gap: 1rem;
}

.btn-switch {
	background: var(--terra-bg);
	color: var(--light-text);
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 2px;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	text-decoration: none;
	transition: background 0.3s ease;
}

.btn-switch:hover {
	background: var(--olive-bg);
}

.btn-stay {
	background: transparent;
	color: #999;
	border: none;
	padding: 0.5rem 0;
	cursor: pointer;
	font-family: inherit;
	font-size: 0.85rem;
	text-decoration: underline;
}

.btn-close-popup {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	background: transparent;
	border: none;
	font-size: 1.2rem;
	cursor: pointer;
	color: #999;
	padding: 0.25rem;
	line-height: 1;
}

.btn-close-popup:hover {
	color: var(--text-color);
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@media (max-width: 768px) {
	.lang-popup {
		bottom: 0;
		right: 0;
		left: 0;
		width: 100%;
		max-width: none;
		border-radius: 10px 10px 0 0;
		padding: 2rem 1.5rem;
	}
}

/* Print Styles */
@media print {

	header,
	footer,
	.menu-hover,
	#image-container {
		display: none;
	}
}