/* بريفي — styles for the 3D hero scene.
 * Loaded only when the feature is on (BRF_HERO3D), and every rule below needs html.brf-hero3d,
 * a class the script adds only after the model has drawn its first frame. Without it nothing here applies. */

/* the scene: one full-screen canvas behind the page; later sections cover it with their own backgrounds */
html.brf-hero3d .brf-hero3d__stage { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: var(--h3d-bg, #D9D9D9); }
html.brf-hero3d .brf-hero3d__stage canvas { display: block; width: 100%; height: 100%; }
html.brf-hero3d body.brf-page-landing { background: var(--h3d-bg, #D9D9D9); }
html.brf-hero3d .brf-topbar { position: relative; z-index: 3; }
html.brf-hero3d .brf-landing { position: relative; z-index: 1; }
html.brf-hero3d .brf-page-landing .brf-footer { position: relative; z-index: 1; background: var(--bg); }

/* the hero shows the scene instead of the sample card; the card keeps its space so nothing moves */
html.brf-hero3d .brf-hero { background: transparent; touch-action: pan-y; cursor: grab; }
html.brf-hero3d .brf-hero a, html.brf-hero3d .brf-hero button, html.brf-hero3d .brf-hero input { cursor: pointer; }
html.brf-hero3d .brf-hero__demo { visibility: hidden; }
html.brf-hero3d.brf-h3d-drag .brf-hero { cursor: grabbing; }
html.brf-hero3d.brf-h3d-drag body { user-select: none; -webkit-user-select: none; }

/* small "drag" hint under the scene, gone after the first drag */
html.brf-hero3d .brf-hero3d__hint {
	visibility: visible; position: absolute; inset-inline: 0; bottom: -4px; margin-inline: auto; width: max-content; max-width: 100%;
	display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
	background: rgba(255, 255, 255, .78); color: #3F454B; font-size: 13.5px; font-weight: 700;
	box-shadow: 0 1px 0 rgba(0, 0, 0, .06); pointer-events: none; transition: opacity .35s ease;
}
html.brf-hero3d .brf-hero3d__hint.is-gone { opacity: 0; }
@media (max-width: 860px) { html.brf-hero3d .brf-hero__demo { min-height: 300px; } }
@media (prefers-reduced-motion: reduce) { html.brf-hero3d .brf-hero3d__hint { transition: none; } }

/* the brand blue is a little pale on #D9D9D9: a deeper shade of it, only while the scene is on */
html.brf-hero3d .brf-hero .brf-eyebrow { color: #0A5A84; }
html.brf-hero3d .brf-hero .brf-btn--ghost { background: #fff; color: #0A5A84 !important; border-color: #fff; } /* the base ghost button sets its colour with !important */

/* a dark background colour chosen by the owner: light text on it (the buttons keep their own colours) */
html.brf-hero3d.brf-h3d-darkbg .brf-hero { --ink: #F4F6F8; --ink-2: #DDE3E8; --muted: #C3CBD1; }
html.brf-hero3d.brf-h3d-darkbg .brf-hero .brf-eyebrow { color: #7FCFF5; }
html.brf-hero3d.brf-h3d-darkbg .brf-hero .brf-btn--ghost { background: transparent; color: #F4F6F8 !important; border-color: rgba(255, 255, 255, .55); }
html.brf-hero3d.brf-h3d-darkbg .brf-hero h1 { color: #F4F6F8; }
html.brf-hero3d.brf-h3d-darkbg .brf-hero3d__hint { background: rgba(0, 0, 0, .45); color: #F4F6F8; }
