
/* Gharb Diem — hero backgrounds with subtle 3D/parallax movement
   Movement belongs to the section background, never to cards, photos or text. */

/* Shared 3D stage */
.gd-hero-light,
.gd-inner-hero{
	position:relative!important;
	overflow:hidden!important;
	isolation:isolate!important;
	--gd-bg-x:0px;
	--gd-bg-y:0px;
	--gd-bg-x2:0px;
	--gd-bg-y2:0px;
}

/* Keep all content static */
.gd-hero-photo-shell,
.gd-hero-photo-shell img,
.gd-inner-hero-image,
.gd-inner-hero-image img,
.gd-hero-light .gd-hero-copy,
.gd-inner-hero-copy,
.gd-hero-soft-ring,
.gd-hero-soft-dot,
.gd-inner-image-ring{
	transform:none!important;
	transition:box-shadow .3s ease,opacity .3s ease!important;
}

/* Home hero base */
.gd-hero.gd-hero-light{
	background:#F5EBDD!important;
}

/* Main moving background layer */
.gd-hero-light::before,
.gd-inner-hero::before{
	content:""!important;
	position:absolute!important;
	inset:-5%!important;
	z-index:-3!important;
	pointer-events:none!important;
	background:
		radial-gradient(circle at 18% 24%,rgba(201,130,91,.10) 0%,transparent 32%),
		radial-gradient(circle at 82% 22%,rgba(111,141,155,.11) 0%,transparent 34%),
		radial-gradient(circle at 72% 80%,rgba(221,182,91,.08) 0%,transparent 30%)!important;
	transform:translate3d(var(--gd-bg-x),var(--gd-bg-y),0)!important;
	transition:transform .16s ease-out!important;
}

/* Secondary layer for a gentler depth effect */
.gd-hero-light::after,
.gd-inner-hero::after{
	content:""!important;
	position:absolute!important;
	inset:-7%!important;
	z-index:-2!important;
	pointer-events:none!important;
	background:
		radial-gradient(circle at 30% 78%,rgba(201,130,91,.055) 0%,transparent 24%),
		radial-gradient(circle at 88% 66%,rgba(111,141,155,.065) 0%,transparent 24%),
		linear-gradient(120deg,rgba(255,255,255,.25),transparent 36%,rgba(255,255,255,.12) 68%,transparent)!important;
	transform:translate3d(var(--gd-bg-x2),var(--gd-bg-y2),0)!important;
	transition:transform .22s ease-out!important;
}

/* Each hero has its own soft palette */
.gd-route-history .gd-inner-hero,
body.page-id-28 .gd-inner-hero,
.gd-inner-hero-story{
	background:linear-gradient(135deg,#EAF3F2 0%,#F6FAF9 100%)!important;
}

.gd-route-apartments .gd-inner-hero,
body.page-id-30 .gd-inner-hero{
	background:linear-gradient(135deg,#F7E9DC 0%,#FBF4ED 100%)!important;
}

.gd-route-studio .gd-inner-hero,
body.page-id-32 .gd-inner-hero{
	background:linear-gradient(135deg,#ECF3F6 0%,#F7FAFB 100%)!important;
}

.gd-route-apartment .gd-inner-hero,
body.page-id-34 .gd-inner-hero{
	background:linear-gradient(135deg,#F8E5DE 0%,#FCF3EF 100%)!important;
}

.gd-route-tavira .gd-inner-hero,
body.page-id-36 .gd-inner-hero,
.gd-inner-hero-tavira{
	background:linear-gradient(135deg,#E7F2F3 0%,#F3F8F8 100%)!important;
}

.gd-route-contact .gd-inner-hero,
body.page-id-38 .gd-inner-hero{
	background:linear-gradient(135deg,#F3E9DD 0%,#FAF5EE 100%)!important;
}

/* Legal pages keep a separate soft tone */
.gd-legal-hero{
	background:linear-gradient(135deg,#EAF3F1 0%,#F6F9F8 100%)!important;
}

/* Static photo treatment remains elegant */
.gd-hero-photo-shell,
.gd-inner-hero-image{
	box-shadow:0 18px 45px rgba(96,79,63,.08)!important;
}

.gd-hero-light:hover .gd-hero-photo-shell,
.gd-inner-hero:hover .gd-inner-hero-image{
	box-shadow:0 24px 56px rgba(96,79,63,.10)!important;
}

/* Mobile/tablet: no parallax, just the colour treatment */
@media(max-width:900px){
	.gd-hero-light::before,
	.gd-inner-hero::before,
	.gd-hero-light::after,
	.gd-inner-hero::after{
		transform:none!important;
	}
}

@media(prefers-reduced-motion:reduce){
	.gd-hero-light::before,
	.gd-inner-hero::before,
	.gd-hero-light::after,
	.gd-inner-hero::after{
		transform:none!important;
		transition:none!important;
	}
}
