/*
 * Dubai Bullion homepage foundation.
 *
 * This file contains only the Phase 3A hero presentation from
 * Dubai-Bullion-35.html. Header/footer chrome remains in header-footer.css.
 */

:root {
	--db-home-limestone: #eef0f1;
	--db-home-porcelain: #fbfcfc;
	--db-home-warm-ground: #faf7ef;
	--db-home-assay: #7c5e16;
	--db-home-assay-deep: #634b10;
	--db-home-control: #7b8899;
	--db-home-line: #c9d2de;
	--db-home-ease: cubic-bezier(.22, .61, .36, 1);
	--db-home-duration: .28s;
	--db-home-hero-interval: 4s;
}

/* Astra does not supply a page wrapper here, so keep the reference canvas
 * and reset only the wrapper properties that can affect the hero geometry. */
.db-home-page {
	position: relative;
	width: 100%;
	max-width: 3840px;
	margin: var(--site-header-h) auto 0;
	padding: 0;
	overflow: hidden;
	background: linear-gradient(180deg, #fff 0%, #fbfaf7 42%, #fff 100%);
	color: #2e3644;
	font-family: var(--db-ref-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	line-height: 0;
	text-align: left;
}

.db-home-page,
.db-home-page *,
.db-home-page *::before,
.db-home-page *::after {
	box-sizing: border-box;
}

.db-home-page img,
.db-home-page svg {
	max-width: 100%;
}

/* The managed Hero supplies the single semantic homepage heading inside the
 * artwork container. It reuses the existing editable Hero copy styles. */
.db-home-page .db-home-hero-shell {
	position: relative;
	width: 100%;
	display: flow-root;
}

/* ---------------------------------------------------------- mobile artwork */
.db-home-page .mobile-home-visual-slider {
	display: none;
	position: relative;
	width: 100%;
	max-width: 520px;
	height: clamp(480px, 130vw, 560px);
	min-height: 480px;
	max-height: 560px;
	margin: 0 auto 18px;
	overflow: hidden;
	background: #020916;
	touch-action: pan-y;
}

.db-home-page .mobile-visual-slide {
	display: none;
	position: relative;
	width: 100%;
}

.db-home-page .mobile-visual-slide.is-active {
	display: block;
}

.db-home-page .mobile-visual-slide img {
	display: block;
	width: 100%;
	height: auto;
	user-select: none;
	-webkit-user-drag: none;
}

.db-home-page .mobile-hotspot {
	position: absolute;
	z-index: 8;
	display: block;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .001);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.db-home-page .mobile-hotspot:focus-visible {
	outline: 2px solid #f0cf78;
	outline-offset: -2px;
	border-radius: 6px;
}

/* These regions belong to the legacy baked-in mobile controls. The supplied
 * reference retires them after the artwork is replaced by the wide hero; the
 * permanent WordPress taskbar remains the mobile navigation surface. */
.db-home-page .mobile-visual-slide .mobile-hotspot {
	display: none;
	pointer-events: none;
}

.db-home-page .hotspot-menu {
	left: 4.2%;
	top: 1.35%;
	width: 11%;
	height: 7.2%;
}

.db-home-page .hotspot-login {
	left: 20.2%;
	top: 1.25%;
	width: 13.5%;
	height: 7.3%;
}

.db-home-page .hotspot-signup {
	left: 37%;
	top: 1.25%;
	width: 16.5%;
	height: 7.3%;
}

.db-home-page .hotspot-home {
	left: 70%;
	top: 1.25%;
	width: 12.5%;
	height: 7.3%;
}

.db-home-page .hotspot-cart {
	left: 84%;
	top: .6%;
	width: 12.5%;
	height: 8.5%;
}

.db-home-page .hotspot-brand {
	left: 7%;
	top: 9.8%;
	width: 59%;
	height: 7.3%;
}

.db-home-page .hotspot-buy-gold {
	left: 7.2%;
	top: 46.5%;
	width: 35.5%;
	height: 7%;
}

.db-home-page .hotspot-buy-silver {
	left: 7.2%;
	top: 53.7%;
	width: 35.5%;
	height: 7%;
}

.db-home-page .hotspot-verify-certificate {
	left: 24%;
	top: 75.3%;
	width: 54%;
	height: 8.6%;
}

.db-home-page .hotspot-distributor {
	left: 17%;
	top: 46%;
	width: 66%;
	height: 8.5%;
}

.db-home-page .mobile-visual-dots,
.db-home-page .home-hero-dots {
	position: absolute;
	z-index: 30;
	left: 50%;
	bottom: 2.4%;
	display: flex;
	align-items: center;
	gap: 8px;
	width: max-content;
	padding: 8px 12px;
	transform: translateX(-50%);
	border: 1px solid var(--db-home-line);
	border-radius: 999px;
	background: rgba(251, 252, 252, .92);
	box-shadow: none;
	backdrop-filter: none;
}

.db-home-page .home-hero-arrow {
	position: absolute;
	top: 50%;
	z-index: 31;
	display: none;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0;
	transform: translateY(-50%);
	border: 1px solid rgba(255, 255, 255, .8);
	border-radius: 999px;
	background: rgba(46, 54, 68, .48);
	box-shadow: 0 4px 14px rgba(18, 28, 44, .16);
	color: #fff;
	cursor: pointer;
	font: 400 30px/1 var(--db-ref-sans, Arial, sans-serif);
	transition: background var(--db-home-duration) var(--db-home-ease), transform .18s var(--db-home-ease);
}

.db-home-page .home-hero-arrow:hover,
.db-home-page .home-hero-arrow:focus-visible {
	background: rgba(99, 75, 16, .88);
	color: #fff;
}

.db-home-page .home-hero-arrow:active {
	transform: translateY(-50%) scale(.97);
}

.db-home-page .home-hero-arrow-prev {
	left: 20px;
}

.db-home-page .home-hero-arrow-next {
	right: 20px;
}

.db-home-page .home-hero-dots {
	bottom: 16px;
}

.db-home-page .mobile-visual-dots button,
.db-home-page .home-hero-dots button {
	position: relative;
	box-sizing: content-box;
	width: 9px;
	height: 9px;
	min-width: 9px;
	min-height: 9px;
	margin: -4px;
	padding: 8px;
	border: 0;
	border-radius: 999px;
	background: var(--db-home-control);
	background-clip: content-box;
	box-shadow: none;
	cursor: pointer;
	transition: background var(--db-home-duration) var(--db-home-ease),
		width var(--db-home-duration) var(--db-home-ease);
}

.db-home-page .mobile-visual-dots button.is-active,
.db-home-page .home-hero-dots button.is-active {
	width: 24px;
	background: var(--db-home-assay);
	background-clip: content-box;
}

.db-home-page .mobile-visual-dots button:focus-visible,
.db-home-page .home-hero-dots button:focus-visible {
	outline: 2px solid #1f4fa8;
	outline-offset: 2px;
}

/* ----------------------------------------------------------- desktop hero */
.db-home-page .home-hero-slider {
	position: relative;
	width: 100%;
	height: auto;
	aspect-ratio: 1918 / 820;
	min-height: 0;
	margin: 0;
	padding: 0;
	overflow: hidden;
	isolation: isolate;
	background: var(--db-home-warm-ground);
	border: 0;
	border-radius: 0;
	box-shadow: none;
	line-height: 0;
}

.db-home-page .home-hero-slide {
	position: absolute;
	inset: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	visibility: hidden;
	background: var(--db-home-warm-ground);
	opacity: 0;
	pointer-events: none;
	transition: opacity .72s var(--db-home-ease), visibility .72s var(--db-home-ease);
}

.db-home-page .home-hero-slide.is-active {
	z-index: 2;
	visibility: visible;
	opacity: 1;
	pointer-events: auto;
}

.db-home-page .home-hero-slide-image,
.db-home-page .home-hero-slide-svg {
	display: block;
	width: 100%;
	max-width: 100%;
	margin: 0 auto;
	user-select: none;
	-webkit-user-drag: none;
}

.db-home-page .home-hero-slide-image {
	height: auto;
	max-height: 100%;
	object-fit: contain;
	object-position: center center;
	background: var(--db-home-warm-ground);
}

.db-home-page .home-hero-slide-svg {
	height: 100%;
	max-height: none;
	overflow: visible;
}

.db-home-page .db-hero-copy {
	position: absolute;
	left: 6.6%;
	top: 15%;
	z-index: 3;
	max-width: min(43%, 620px);
	line-height: 1.35;
	text-align: left;
	text-shadow: 0 2px 18px rgba(255, 255, 255, .38);
}

.db-home-page .db-hero-eyebrow {
	margin: 0 0 10px;
	color: var(--db-home-assay-deep);
	font: 700 13px/1.2 var(--db-ref-sans, Arial, sans-serif);
	letter-spacing: .18em;
	text-transform: uppercase;
}

.db-home-page .db-hero-heading {
	margin: 0 0 12px;
	color: #17233b;
	font: 600 clamp(30px, 4vw, 58px)/1.05 var(--db-ref-serif, Georgia, serif);
}

.db-home-page .db-hero-description {
	max-width: 52ch;
	margin: 0;
	color: #2e3644;
	font: 400 clamp(14px, 1.3vw, 18px)/1.5 var(--db-ref-sans, Arial, sans-serif);
}

/* The certificate artwork carries its own reference CTA in the SVG. */
.db-home-page .home-hero-read-more-link rect {
	fill: #b8860b;
	stroke: rgba(255, 255, 255, .55);
	stroke-width: 2;
	filter: drop-shadow(0 8px 18px rgba(0, 0, 0, .28));
	cursor: pointer;
	transition: fill .18s ease, stroke .18s ease;
}

.db-home-page .home-hero-read-more-link text {
	fill: #fff;
	font: 800 34px/1 Arial, Helvetica, sans-serif;
	letter-spacing: 1px;
	pointer-events: none;
}

.db-home-page .home-hero-slide[data-home-hero-slide="1"] .home-hero-visible-cta text {
	font-size: 30px;
}

.db-home-page .home-hero-read-more-link:hover rect,
.db-home-page .home-hero-read-more-link:focus rect {
	fill: #d6a72f;
	stroke: #fff;
}

/* Reference CTA buttons added by the hero enhancement layer. */
.db-home-page .db-hero-cta {
	position: absolute;
	left: 6.6%;
	bottom: 12%;
	z-index: 4;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	line-height: normal;
}

.db-home-page .db-hero-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 46px;
	padding: 12px 22px;
	border: 1px solid #011F4B;
	border-radius: 4px;
	background: #011F4B;
	box-shadow: 0 1px 2px rgba(46, 54, 68, .06), 0 1px 3px rgba(46, 54, 68, .05);
	color: #fff;
	cursor: pointer;
	font-family: var(--db-ref-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif);
	font-weight: 620;
	font-size: 14px;
	line-height: 1;
	letter-spacing: .03em;
	text-decoration: none;
	transition: background var(--db-home-duration) var(--db-home-ease),
		border-color var(--db-home-duration) var(--db-home-ease),
		box-shadow var(--db-home-duration) var(--db-home-ease),
		transform .18s var(--db-home-ease);
}

.db-home-page .db-hero-btn:hover,
.db-home-page .db-hero-btn:focus-visible {
	background: #0B347F;
	border-color: #0B347F;
	box-shadow: 0 2px 6px rgba(46, 54, 68, .06), 0 14px 34px rgba(46, 54, 68, .09);
	color: #fff;
}

.db-home-page .db-hero-btn:hover {
	transform: translateY(-1px);
}

.db-home-page .db-hero-btn:active {
	transform: translateY(0);
}

.db-home-page .db-hero-btn.ghost {
	background: #fff;
	border-color: transparent;
	color: #011F4B;
}

.db-home-page .db-hero-btn.ghost:hover,
.db-home-page .db-hero-btn.ghost:focus-visible {
	background: #fff;
	border-color: transparent;
	color: #011F4B;
}

/* ------------------------------------------------------------- hero motion */
@keyframes db-home-hero-settle {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes db-home-cta-rise {
	from {
		opacity: 0;
		transform: translate3d(0, 12px, 0);
	}
	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

@keyframes db-home-rule-draw {
	from { transform: scaleX(0); }
	to { transform: scaleX(1); }
}

@keyframes db-home-sheen {
	0% {
		transform: translateX(-130%) skewX(-18deg);
		opacity: 0;
	}
	8%, 55% { opacity: .5; }
	100% {
		transform: translateX(230%) skewX(-18deg);
		opacity: 0;
	}
}

html.db-motion .db-home-page .home-hero-slide.is-active .home-hero-slide-image,
html.db-motion .db-home-page .home-hero-slide.is-active .home-hero-slide-svg,
html.db-motion .db-home-page .mobile-visual-slide.is-active img {
	animation: db-home-hero-settle .92s var(--db-home-ease) both;
	will-change: opacity;
}

html.db-motion .db-home-page .home-hero-slide.is-active .db-hero-btn,
html.db-motion .db-home-page .mobile-visual-slide.is-active .db-hero-btn {
	animation: db-home-cta-rise .58s var(--db-home-ease) both;
}

html.db-motion .db-home-page .db-hero-cta .db-hero-btn:nth-child(1) {
	animation-delay: .46s;
}

html.db-motion .db-home-page .db-hero-cta .db-hero-btn:nth-child(2) {
	animation-delay: .58s;
}

html.db-motion .db-home-page .home-hero-dots button.is-active::before,
html.db-motion .db-home-page .mobile-visual-dots button.is-active::before {
	content: "";
	position: absolute;
	inset: 8px;
	border-radius: 999px;
	background: var(--db-home-assay-deep);
	transform-origin: left center;
	animation: db-home-rule-draw var(--db-home-hero-interval) linear both;
}

html.db-motion .db-home-page .home-hero-slider::after {
	content: "";
	position: absolute;
	top: -20%;
	bottom: -20%;
	left: 0;
	z-index: 2;
	width: 22%;
	pointer-events: none;
	background: linear-gradient(
		100deg,
		rgba(255, 255, 255, 0) 0%,
		rgba(255, 255, 255, .34) 38%,
		rgba(247, 240, 220, .62) 50%,
		rgba(255, 255, 255, .34) 62%,
		rgba(255, 255, 255, 0) 100%
	);
	mix-blend-mode: screen;
	animation: db-home-sheen 5.2s var(--db-home-ease) 1.4s infinite;
}

/* ----------------------------------------------------------- breakpoints */
@media (min-width: 1101px) {
	.db-home-page .home-hero-slider {
		width: 100%;
		max-width: none;
		margin: 0;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
	}
}

@media (max-width: 1100px) {
	.db-home-page .home-hero-slider {
		width: 100%;
		max-width: none;
		height: auto;
		aspect-ratio: 1918 / 820;
		min-height: 0;
		margin: 0;
		border-left: 0;
		border-right: 0;
		border-radius: 0;
		box-shadow: none;
	}

	.db-home-page .home-hero-dots {
		bottom: 11px;
		padding: 8px 12px;
	}
}

@media (max-width: 900px) {
	.db-home-page .db-hero-cta {
		left: 5%;
		bottom: 8%;
		gap: 8px;
	}

	.db-home-page .db-hero-btn {
		padding: 10px 16px;
		font-size: 12.5px;
	}
}

@media (max-width: 700px) {
	.db-home-page {
		margin-top: 0;
	}

	.db-home-page .mobile-home-visual-slider {
		display: block;
		margin-top: var(--site-header-h);
		height: clamp(480px, 130vw, 560px);
		min-height: 480px;
		max-height: 560px;
	}

	.db-home-page .mobile-visual-slide {
		position: absolute;
		inset: 0;
		height: 100%;
		min-height: 100%;
	}

	.db-home-page .mobile-visual-slide img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		object-position: center center;
	}

	.db-home-page .mobile-visual-slide .db-hero-cta {
		position: absolute;
		left: 16px;
		right: 16px;
		bottom: 52px;
		z-index: 10;
		padding: 0;
	}

	.db-home-page .mobile-visual-slide .db-hero-copy,
	.db-home-page .db-home-hero-shared-copy {
		top: 12%;
		left: 16px;
		right: 16px;
		max-width: none;
		text-shadow: 0 2px 14px rgba(255, 255, 255, .64);
	}

	.db-home-page .db-home-hero-shared-copy {
		top: calc(var(--site-header-h) + 12%);
	}

	.db-home-page .mobile-visual-slide .db-hero-heading,
	.db-home-page .db-home-hero-shared-copy .db-hero-heading {
		font-size: clamp(28px, 8vw, 40px);
	}

	.db-home-page .mobile-visual-slide .db-hero-description,
	.db-home-page .db-home-hero-shared-copy .db-hero-description {
		font-size: 14px;
	}

	.db-home-page .home-hero-arrow-prev {
		left: 10px;
	}

	.db-home-page .home-hero-arrow-next {
		right: 10px;
	}

	.db-home-page .home-hero-arrow {
		width: 36px;
		height: 36px;
		font-size: 26px;
	}

	.db-home-page .home-hero-slider {
		display: none;
	}
}

@media (max-width: 639px) {
	.db-home-page .mobile-home-visual-slider {
		padding-bottom: 8px;
	}

	.db-home-page .home-hero-slider {
		padding-bottom: 8px;
	}

	.db-home-page .mobile-home-visual-slider .mobile-visual-dots {
		position: absolute;
		left: 50%;
		right: auto;
		bottom: 12px;
		margin: 0;
		transform: translateX(-50%);
	}

	.db-home-page .home-hero-slider .home-hero-dots {
		position: static;
		inset: auto;
		margin: 12px auto 8px;
		transform: none;
	}

	.db-home-page .home-hero-slider .db-hero-cta {
		position: static;
		padding: 14px 16px 4px;
	}

	.db-home-page .home-hero-slider .db-hero-cta .db-hero-btn {
		width: 100%;
		flex: 1 1 46%;
		padding: 11px 10px;
		font-size: 12px;
	}
}

@media (max-width: 620px) {
	.db-home-page .home-hero-slider { min-height: 0; }
}

@media (max-width: 560px) {
	.db-home-page .mobile-visual-slide .db-hero-cta .db-hero-btn {
		flex: 1 1 0;
		min-width: 0;
		padding: 10px 8px;
		font-size: 12px;
		letter-spacing: .02em;
		white-space: nowrap;
	}
}

/* Keep fixed chrome below the standard WordPress admin bar for logged-in
 * administrators. The normal document flow continues to use WordPress's
 * own html margin, so the hero is not given a second artificial offset. */
@media screen and (min-width: 783px) {
	body.admin-bar .site-header {
		inset: 32px 0 auto;
	}
}

@media screen and (max-width: 782px) {
	body.admin-bar .db-mobile-fixed-taskbar {
		top: 46px;
	}

	body.admin-bar .mobile-site-menu {
		top: calc(var(--site-header-h) + 46px);
	}
}

@media (prefers-reduced-motion: reduce) {
	.db-home-page .home-hero-slide,
	.db-home-page .mobile-visual-slide,
	.db-home-page .db-hero-btn,
	.db-home-page .mobile-visual-dots button,
	.db-home-page .home-hero-dots button {
		transition: none;
	}

	html.db-motion .db-home-page .home-hero-slider::after {
		display: none;
		animation: none;
	}

	html.db-motion .db-home-page *,
	html.db-motion .db-home-page *::before,
	html.db-motion .db-home-page *::after {
		animation-duration: .001ms;
		animation-iteration-count: 1;
		transition-duration: .001ms;
	}
}
