@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=MuseoModerno:wght@500;700;800&display=swap');

:root {
	--background: #000000;
	--foreground: #FFFAEF;
	--container-gold-bg: #d2a95117;
	--container-gold-border: #d2a9514d;
}

body {
	font-family: 'Montserrat', sans-serif;
	background-color: var(--background);
	color: var(--foreground);
	position: relative;
}

.hero-top-bg {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: clamp(580px, 78vh, 640px);
	pointer-events: none;
	z-index: 0;
	overflow: hidden;
}

nav,
main {
	position: relative;
	z-index: 1;
}

nav,
nav * {
	font-family: 'MuseoModerno', sans-serif;
}

.site-navbar {
	box-shadow: 0 0 8px #d2a95166, 0 0 14px #d2a95133;
}

button,
.btn-gold,
.project-card__cta {
	font-family: 'MuseoModerno', sans-serif;
}

/* MESH GRID */
.mesh {
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(#d2a95148 1px, transparent 1px),
		linear-gradient(90deg, #d2a95148 1px, transparent 1px);
	background-size: 60px 60px;
	mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.team-member-name {
	font-family: 'MuseoModerno', sans-serif;
	font-size: 2rem;
	line-height: 1.05;
	text-align: center;
}

.team-member-role {
	color: #cfc8bf;
	display: block;
}

.icon-container {
	background-color: rgba(255, 255, 255, 0.15);
}

.btn-gold {
	background-color: #D2A951;
	color: #1e1500;
	transition: box-shadow 220ms ease, filter 220ms ease, background-color 220ms ease;
}

.btn-gold:hover {
	background-color: #d9b061;
	box-shadow: 0 0 10px #d2a951cc, 0 0 24px #d2a9518c;
	filter: saturate(1.08);
}


.bg-white\/5,
.border-white\/10 {
	background-color: var(--container-gold-bg) !important;
	border-color: var(--container-gold-border) !important;
	box-shadow: inset 0 1px 0 #fffaef0f, 0 0 8px #d2a95166, 0 0 14px #d2a95133;
}

.project-card {
	position: relative;
}

.project-card__visual {
	max-width: 470px;
}

.project-card__cta:hover {
	box-shadow: 0 0 20px #4b5abe99, 0 0 40px #404ca766;
	filter: saturate(1.08);
}

.project-card__cta--paysagix:hover {
	box-shadow: 0 0 20px #6ab2739e, 0 0 40px #2e73467a;
	filter: saturate(1.08);
}

.project-card__logo {
	display: block;
	width: 100%;
	height: auto;
	object-fit: contain;
	transform: scale(1.2);
	transform-origin: center;
}

.project-card__logo--paysagix {
	transform: scale(1.2);
}

.reveal {
	opacity: 0;
	transform: translateY(24px);
	transition: opacity 650ms ease, transform 650ms ease;
	will-change: opacity, transform;
}

.reveal.is-visible {
	opacity: 1;
	transform: translateY(0);
}

.reveal.reveal-delay-1 {
	transition-delay: 80ms;
}

.reveal.reveal-delay-2 {
	transition-delay: 160ms;
}

#mobile-menu-toggle {
	display: none;
}

.mobile-controls {
	display: none;
	background-color: rgba(245, 239, 224, 0.9);
	backdrop-filter: blur(12px);
	border: 1px solid rgba(30, 21, 0, 0.08);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
	width: fit-content;
	gap: 4px;
	align-items: center;
	justify-content: center;
	margin-top: 12px;
	position: relative;
	z-index: 71;
	border-radius: 999px;
}

.theme-toggle-mobile,
.mobile-menu-toggle-mobile {
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: none;
	cursor: pointer;
	color: #1e1500;
	padding: 0;
}

.theme-toggle-mobile:hover {
	background-color: rgba(30, 21, 0, 0.08);
	border-radius: 999px;
}

html.dark .mobile-controls {
	background-color: rgba(30, 21, 0, 0.78);
	border-color: rgba(210, 169, 81, 0.16);
	box-shadow: 0 14px 32px rgba(0, 0, 0, 0.34);
	backdrop-filter: blur(14px);
}

html.dark .theme-toggle-mobile,
html.dark .mobile-menu-toggle-mobile {
	color: #FFFAEF;
}

html.dark .theme-toggle-mobile:hover,
html.dark .mobile-menu-toggle-mobile:hover {
	background-color: rgba(255, 250, 239, 0.08);
}

.mobile-menu-icon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 24px;
	height: 18px;
	
}

.mobile-menu-icon span {
	display: block;
	width: 100%;
	height: 2px;
	background-color: currentColor;
	border-radius: 999px;
}

@media (max-width: 768px) {
	.site-navbar {
		display: none !important;
	}

	#theme-toggle {
		display: none;
	}

	.mobile-controls {
		display: flex;
		margin-left: auto;
		margin-right: 16px;
	}

	#theme-toggle-mobile {
		display: inline-flex;
	}

	#desktop-menu {
		display: none;
	}

	#mobile-menu-toggle {
		display: inline-flex;
		background: transparent;
		box-shadow: none;
	}

	#mobile-menu {
		display: none;
		position: absolute;
		top: 80px;
		left: 0;
		right: 0;
		background-color: rgba(30, 21, 0, 0.8);
		backdrop-filter: blur(12px);
		flex-direction: column;
		padding: 24px;
		gap: 16px;
		border-top: 1px solid rgba(210, 169, 81, 0.2);
		z-index: 40;
	}

	#mobile-menu.active {
		display: flex;
	}

	#mobile-menu a {
		display: block;
		padding: 12px 0;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
		color: inherit;
	}

	#mobile-menu a:last-child {
		border-bottom: none;
	}

	.site-navbar>img:not(button img) {
		display: none;
	}

	footer .grid {
		grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
		gap: 24px;
		align-items: start;
	}

	.footer-social-links {
		display: flex;
		flex-direction: column;
		gap: 12px;
		align-items: flex-start;
		justify-content: start;
	}

	.footer-social-item {
		padding: 0;
		margin: 0;
	}

	.footer-facebook {
		grid-area: facebook;
	}

	.footer-instagram {
		grid-area: instagram;
	}

	.footer-phone {
		grid-area: phone;
		padding-top: 0;
		align-self: start;
	}

	.footer-linkedin {
		grid-area: linkedin;
	}

	.footer-brand-column {
		grid-column: 1;
	}

	.footer-legal-column {
		grid-column: 2;
		justify-self: end;
		align-items: flex-end;
		text-align: right;
	}

	.footer-links-column {
		display: none !important;
	}

	.footer-social-label {
		display: inline-block !important;
	}

	.project-card__visual {
		position: relative;
		padding-bottom: 64px;
		max-width: 500px;
		height: auto;
		overflow: hidden;
		border-radius: 1rem;
	}

	.project-card__cta,
	.project-card__cta--paysagix {
		position: absolute !important;
		bottom: 80px !important;
		left: 50% !important;
		transform: translateX(-50%) !important;
		margin: 0 !important;
	}

	.project-card__logo {
		display: block;
		width: 100%;
		height: auto;
		object-fit: contain;
		transform: none;
		max-width: 100%;
	}

	.project-card__logo--paysagix {
		transform: none;
		max-width: 100%;
	}
}


@media (min-width: 769px) {
	.mobile-controls {
		display: none !important;
	}

	#theme-toggle-mobile {
		display: none !important;
	}

	.site-navbar {
		display: flex !important;
	}

	#mobile-menu-toggle {
		display: none;
	}

	#mobile-menu {
		display: none !important;
	}

	#desktop-menu {
		display: flex !important;
		position: static !important;
		background-color: transparent !important;
		border: none !important;
		padding: 0 !important;
		flex-direction: row !important;
		gap: 32px !important;
	}

	#desktop-menu a {
		display: inline-block;
		padding: 0 !important;
		border: none !important;
	}
}

.theme-toggle {
	position: fixed;
	top: 36px;
	right: 56px;
	z-index: 70;
	width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.25rem;
	border-radius: 1000px;
	background-color: rgba(30,21,0,0.6);
	backdrop-filter: blur(8px);
	color: var(--foreground);
	border: none;
	cursor: pointer;
	padding: 8px;
	box-shadow: 0 0 8px #d2a95166, 0 0 14px #d2a95133;
}

.theme-toggle:hover {
	background-color: rgba(49, 34, 0, 0.8);
}

@media (max-width: 768px) {
	.theme-toggle {
		display: none;
	}
}

html.dark .theme-toggle .sun { 
	display: none; 
}

html:not(.dark) .theme-toggle .moon { 
	display: none; 

}
html.dark .theme-toggle .moon { display: inline-block; }
html:not(.dark) .theme-toggle .sun { display: inline-block; }

html.dark .theme-toggle-mobile .sun { 
	display: none; 
}

html:not(.dark) .theme-toggle-mobile .moon { 
	display: none; 
}

html.dark .theme-toggle-mobile .moon { display: inline-block; }
html:not(.dark) .theme-toggle-mobile .sun { display: inline-block; }



/* Theme-specific icons */
.icon--light { display: inline-block; }
.icon--dark { display: inline-block; }
html.dark .icon--light { display: none !important; }
html:not(.dark) .icon--dark { display: none !important; }

/* Theme-specific logos */
.logo--light { display: inline-block; }
.logo--dark { display: inline-block; }
html.dark .logo--light { display: none !important; }
html:not(.dark) .logo--dark { display: none !important; }