/* ============================================================
   Deepmaarg / Nirvaan — shared shell
   Namespace: .dm-*    (do not reuse legacy .header-*, .footer-*)
   ============================================================ */

:root {
	/* Sanctus Healthcare palette (2026-07). Blue structure + lime accent + ink. */
	--dm-teal: #5900C0;          /* blue mid — links, hovers */
	--dm-teal-deep: #4A00A3;     /* Sanctus blue — structure, buttons */
	--dm-cream: #FFFFFF;         /* pure white canvas */
	--dm-sand: #F1EAFC;          /* panels */
	--dm-sand-2: #E1D5F5;        /* borders / dividers */
	--dm-terracotta: #5900C0;    /* accent = Sanctus lime — CTAs, badges, highlights */
	--dm-terracotta-deep: #4A00A3;
	--dm-lime: #5900C0;
	--dm-lime-deep: #5900C0;      /* purple for TEXT/links on white */
	--dm-accent-ink: #FFFFFF;     /* white text on purple accent */
	--dm-indigo: #33006B;         /* Sanctus deep indigo */
	--dm-sage: #C9B6F0;
	--dm-ink: #232130;           /* Sanctus ink — text */
	--dm-muted: #6E6A7A;
	--dm-line: rgba(35, 33, 48, 0.14);
	--dm-accent-glow: rgba(89, 0, 192, 0.6);  /* button glow shadow tint */
	--dm-accent-soft: #F1EAFC;                 /* light accent wash (== --dm-sand) */
	--dm-accent-mid: #7c3aed;                  /* mid-accent between terracotta and indigo */
	--dm-hero-overlay: 0, 0, 0;                /* hero photo overlay — black transparency (all themes) */
	--dm-radius: 16px;
	--dm-radius-sm: 10px;
	--dm-shadow-sm: 0 1px 2px rgba(35, 33, 48, 0.08);
	--dm-shadow-md: 0 12px 32px -18px rgba(35, 33, 48, 0.42);
	--dm-shadow-lg: 0 30px 60px -32px rgba(35, 33, 48, 0.5);
	--dm-font-display: "Roboto Slab", Georgia, "Times New Roman", serif;
	--dm-font-body: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
	--dm-shell-max: 1240px;
}

/* Body base — only affect what we own, don't stomp existing pages */
body.dm-body {
	font-family: var(--dm-font-body);
	color: var(--dm-ink);
	background: #fff;
	overflow-x: hidden;
}

/* ---------- Responsive safety nets (prevent mobile horizontal-scroll site-wide) ---------- */
img, video, iframe, canvas, table { max-width: 100%; }
img, video { height: auto; }
@media (max-width: 480px) {
	.dm-container { padding-left: 16px; padding-right: 16px; }
}

/* ---------- Utilities ---------- */
.dm-container {
	width: 100%;
	max-width: var(--dm-shell-max);
	margin: 0 auto;
	padding: 0 24px;
	box-sizing: border-box;
}

.dm-skip-link {
	position: absolute;
	left: -9999px;
	top: 0;
	background: var(--dm-teal);
	color: #fff;
	padding: 10px 16px;
	border-radius: 0 0 var(--dm-radius-sm) 0;
	z-index: 2000;
	font-weight: 600;
	text-decoration: none;
}
.dm-skip-link:focus { left: 0; }

/* ---------- Header: utility strip ---------- */
.dm-shell-header {
	position: sticky;
	top: 0;
	z-index: 900;
	background: #fff;
	display: flex;
	flex-wrap: nowrap;
	align-items: stretch;
	/* NOTE: never put transform on this element on mobile — the drawer (.dm-menu)
	   is position:fixed inside it and a transformed ancestor would break it.
	   Compact/shadow state uses non-transform props; the slide reveal is desktop-only. */
	transition: box-shadow .3s ease, border-color .3s ease;
}
/* Animated "scrolled" state — compacts + lifts on shadow as you scroll (all viewports) */
.dm-shell-header.dm-header--stuck {
	box-shadow: 0 14px 34px -20px rgba(35, 33, 48, .55);
	border-bottom-color: transparent;
}
.dm-nav { transition: min-height .3s ease; }
.dm-header--stuck .dm-nav { min-height: 74px; }
.dm-brand img { transition: transform .3s ease; }
.dm-header--stuck .dm-brand img { transform: scale(.88); }
/* Desktop-only slide reveal: hide on scroll-down, reveal on scroll-up.
   Safe here because at ≥992px the menu is inline flex (not fixed). */
@media (min-width: 992px) {
	.dm-shell-header { transition: transform .35s cubic-bezier(.4, 0, .2, 1), box-shadow .3s ease, border-color .3s ease; }
	.dm-shell-header.dm-header--hidden { transform: translateY(-100%); }
}
.dm-shell-header > .dm-utility,
.dm-shell-header > .dm-nav-wrap { flex: 0 0 auto; }
.dm-shell-header > .dm-nav-wrap { flex: 1 1 auto; min-width: 0; }

.dm-utility {
	background: var(--dm-teal-deep);
	color: #e7e0d1;
	font-size: 13px;
	letter-spacing: 0.01em;
}
.dm-utility .dm-container {
	display: flex;
	align-items: center;
	gap: 28px;
	min-height: 40px;
	flex-wrap: nowrap;
	white-space: nowrap;
}
.dm-utility__item { flex-shrink: 0; }
.dm-utility__item {
	color: #e7e0d1;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 0;
	transition: color .2s ease;
}
.dm-utility__item:hover { color: #fff; }
.dm-utility__item strong { color: #fff; font-weight: 600; margin-left: 4px; }
.dm-utility__item i { color: var(--dm-terracotta); }
.dm-utility__tag {
	margin-left: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #c9bda2;
	font-size: 12px;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}
.dm-utility__tag i { color: var(--dm-sage); }

/* ---------- Header: primary nav ---------- */
.dm-nav-wrap {
	background: var(--dm-teal-deep);
}
.dm-nav {
	display: flex;
	align-items: center;
	gap: 24px;
	min-height: 100px;
}

.dm-brand {
	display: inline-flex;
	align-items: center;
	gap: 14px;
	text-decoration: none;
	color: var(--dm-ink);
	flex-shrink: 0;
}
.dm-brand img {
	height: 72px;
	width: auto;
	object-fit: contain;
	display: block;
}
/* The logo is a full wordmark (icon + name + tagline), so the separate text is hidden. */
.dm-brand__word { display: none; }
.dm-brand__name {
	font-family: var(--dm-font-display);
	font-weight: 600;
	font-size: 26px;
	letter-spacing: -0.02em;
	color: #ffffff;
}
.dm-brand__tag {
	font-size: 12px;
	color: rgba(255, 255, 255, 0.78);
	letter-spacing: 0.04em;
	margin-top: 2px;
	white-space: nowrap;
}

.dm-menu {
	margin-left: auto;
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 18px;
}
/* Divider + grouped action buttons (keeps links and CTAs visually separate) */
.dm-menu__sep {
	width: 1px;
	height: 26px;
	background: rgba(255, 255, 255, 0.22);
	align-self: center;
	flex: 0 0 auto;
}
.dm-menu__actions {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
}
.dm-menu ul { flex-shrink: 0; }
.dm-menu ul li { flex-shrink: 0; }
.dm-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 6px;
}
.dm-menu ul a {
	display: inline-block;
	padding: 10px 14px;
	font-size: 15px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.9);
	text-decoration: none;
	border-radius: var(--dm-radius-sm);
	position: relative;
	white-space: nowrap;
	transition: color .2s ease, background .2s ease;
}
.dm-menu ul a::after {
	content: "";
	position: absolute;
	left: 14px; right: 14px; bottom: 6px;
	height: 2px;
	background: var(--dm-terracotta);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform .25s ease;
}
	.dm-menu ul a:hover,
	.dm-menu ul a:focus-visible {
		color: #fff;
		background: rgba(255, 255, 255, 0.12);
	}
.dm-menu ul a:hover::after,
.dm-menu ul a:focus-visible::after { transform: scaleX(1); }

/* Super-admin entry — a distinct pill so it doesn't read as a public nav link */
.dm-menu ul li.dm-menu__admin { display: inline-flex; align-items: center; }
.dm-menu ul li.dm-menu__admin a {
	display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px;
	font-weight: 600; color: #fff;
	background: rgba(255, 255, 255, 0.14);
	border: 1px solid rgba(255, 255, 255, 0.34);
	border-radius: 999px;
}
.dm-menu ul li.dm-menu__admin a::after { content: none; }
.dm-menu ul li.dm-menu__admin a:hover,
.dm-menu ul li.dm-menu__admin a:focus-visible {
	background: rgba(255, 255, 255, 0.26);
}
.dm-menu ul li.dm-menu__admin a i { font-size: 12px; }

.dm-cta {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	background: var(--dm-terracotta);
	color: var(--dm-accent-ink) !important;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
	flex-shrink: 0;
	border-radius: 999px;
	box-shadow: var(--dm-shadow-md);
	transition: background .2s ease, transform .2s ease;
}
.dm-cta:hover { background: var(--dm-terracotta-deep); transform: translateY(-1px); }
.dm-cta i { font-size: 14px; }

/* Mobile toggle (CSS-only slide-in drawer) */
.dm-nav-toggle { display: none; }
.dm-hamburger { display: none; }
.dm-nav-backdrop { display: none; }

@media (max-width: 991px) {
	.dm-nav { flex-wrap: nowrap; gap: 12px; min-height: 72px; }
	.dm-brand { min-width: 0; flex: 0 1 auto; }
	.dm-brand__word { min-width: 0; overflow: hidden; }
	.dm-brand__tag { display: none; }
	.dm-brand__name { font-size: 21px; white-space: nowrap; }
	.dm-hamburger {
		display: inline-flex !important;
		position: absolute;
		top: 50%; right: 16px;
		transform: translateY(-50%);
		z-index: 1002;
		flex: 0 0 auto;
		width: 46px; height: 46px;
		border-radius: var(--dm-radius-sm);
		border: 1px solid rgba(255,255,255,0.65);
		background: rgba(255,255,255,0.22);
		cursor: pointer;
		align-items: center;
		justify-content: center;
		flex-direction: column;
		gap: 5px;
	}
	.dm-hamburger span {
		display: block;
		width: 24px; height: 2.5px;
		background: #fff;
		border-radius: 2px;
		transition: transform .25s ease, opacity .25s ease;
	}

	/* Slide-in drawer from the right */
	.dm-menu {
		position: fixed;
		top: 0; right: 0;
		z-index: 1001;
		height: 100dvh;
		width: min(320px, 86vw);
		flex-direction: column;
		align-items: stretch;
		justify-content: flex-start;
		gap: 6px;
		margin: 0;
		padding: 88px 22px 28px;
		background: var(--dm-teal-deep);
		box-shadow: -26px 0 60px -22px rgba(0,0,0,0.5);
		transform: translateX(106%);
		transition: transform .34s cubic-bezier(.4,0,.2,1);
		overflow-y: auto;
	}
	.dm-menu ul {
		flex-direction: column;
		gap: 2px;
		width: 100%;
		border-top: 1px solid rgba(255,255,255,0.14);
	}
	.dm-menu ul li { border-bottom: 1px solid rgba(255,255,255,0.14); }
	.dm-menu ul a { padding: 15px 6px; border-radius: 0; color: #fff; font-size: 16px; }
	.dm-menu ul a::after { display: none; }
	.dm-menu ul a:hover, .dm-menu ul a:focus-visible { background: rgba(255,255,255,0.1); color: #fff; }
	.dm-menu__sep { display: none; }
	.dm-menu__actions { flex-direction: column; align-items: stretch; width: 100%; gap: 10px; margin-top: 16px; }
	.dm-cta { align-self: stretch; justify-content: center; margin-top: 0; }
	.dm-btn-locate { align-self: stretch; justify-content: center; }

	.dm-nav-backdrop {
		display: block;
		position: fixed; inset: 0; z-index: 1000;
		background: rgba(22,28,14,0.5);
		opacity: 0; visibility: hidden;
		transition: opacity .3s ease, visibility .3s ease;
	}

	.dm-nav-toggle:checked ~ .dm-menu { transform: translateX(0); }
	.dm-nav-toggle:checked ~ .dm-nav-backdrop { opacity: 1; visibility: visible; }
	.dm-nav-toggle:checked ~ .dm-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
	.dm-nav-toggle:checked ~ .dm-hamburger span:nth-child(2) { opacity: 0; }
	.dm-nav-toggle:checked ~ .dm-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

	.dm-utility .dm-container { gap: 14px; }
	.dm-utility__tag { display: none; }
}

/* ---------- Main ---------- */
.dm-shell-main { display: block; min-height: 40vh; }

/* ============================================================
   Hero band (.dm-hero) — independent of legacy style.css
   Used by Nirvaan/Index.cshtml in place of the old .banner-2 stack.
   ============================================================ */
.dm-hero {
	position: relative;
	overflow: hidden;
	isolation: isolate;
	color: var(--dm-ink);
	background: var(--dm-cream);
}

/* Layered warm canvas -------------------------------------------------- */
.dm-hero .dm-hero__bg {
	position: absolute; inset: 0;
	z-index: -1;
	background: #FFFFFF;
	pointer-events: none;
}
.dm-hero__glow {
	position: absolute;
	border-radius: 50%;
	filter: blur(60px);
	opacity: 0.55;
}
.dm-hero__glow--a {
	width: 460px; height: 460px;
	top: -160px; right: -80px;
	background: radial-gradient(circle, rgba(74, 0, 163,0.38), transparent 68%);
}
.dm-hero__glow--b {
	width: 520px; height: 520px;
	bottom: -220px; left: -120px;
	background: radial-gradient(circle, rgba(45, 12, 90,0.30), transparent 68%);
}
.dm-hero__grain {
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(35, 33, 48,0.05) 1px, transparent 1px);
	background-size: 5px 5px;
	opacity: 0.5;
}

/* Split grid ----------------------------------------------------------- */
.dm-hero__grid {
	display: grid;
	grid-template-columns: 1.05fr 0.95fr;
	align-items: center;
	gap: 56px;
	padding: clamp(48px, 7vw, 104px) 0 clamp(56px, 7vw, 96px);
}

/* Copy column ---------------------------------------------------------- */
.dm-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	margin: 0 0 20px;
	font-size: 12.5px;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--dm-teal-deep);
}
.dm-hero__pip {
	width: 8px; height: 8px; border-radius: 50%;
	background: var(--dm-terracotta);
	box-shadow: 0 0 0 4px rgba(74, 0, 163,0.16);
}
.dm-hero h1 {
	color: var(--dm-ink);
	font-family: var(--dm-font-display);
	font-weight: 600;
	font-size: clamp(38px, 5.2vw, 68px);
	line-height: 1.04;
	letter-spacing: -0.02em;
	margin: 0 0 18px;
	text-wrap: balance;
}
.dm-hero h1 span {
	color: var(--dm-teal-deep);
	font-style: italic;
}
.dm-hero__sub {
	color: var(--dm-muted);
	font-size: clamp(15px, 1.4vw, 18px);
	max-width: 52ch;
	margin: 0 0 30px;
	line-height: 1.6;
}

/* Search panel --------------------------------------------------------- */
.dm-search {
	background: #fff;
	border: 1px solid var(--dm-sand-2);
	border-radius: var(--dm-radius);
	box-shadow: var(--dm-shadow-lg);
	padding: 14px;
}
.dm-search__form {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	gap: 10px;
}
.dm-search__field {
	display: flex;
	flex-direction: column;
	gap: 5px;
	flex: 1 1 130px;
	min-width: 0;
	position: relative;
}
.dm-search__field--grow { flex: 2 1 200px; }
.dm-search__field label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--dm-muted);
	margin: 0 0 0 2px;
}
.dm-search__field .form-control {
	height: 46px;
	border: 1px solid var(--dm-sand-2);
	border-radius: var(--dm-radius-sm);
	background: #fbf9f5;
	color: var(--dm-ink);
	font-size: 14.5px;
	padding: 0 12px;
	width: 100%;
}
.dm-search__field .form-control:focus {
	outline: none;
	border-color: var(--dm-teal);
	box-shadow: 0 0 0 3px rgba(74, 0, 163,0.16);
	background: #fff;
}
.dm-search__submit {
	flex: 0 0 auto;
	height: 46px;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--dm-radius-sm);
	background: var(--dm-terracotta);
	color: var(--dm-accent-ink);
	font-family: var(--dm-font-body);
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 12px 24px -14px rgba(74, 0, 163,0.8);
	transition: background .2s ease, transform .2s ease;
}
.dm-search__submit:hover { background: var(--dm-terracotta-deep); transform: translateY(-1px); }
.dm-search__submit:focus-visible { outline: 3px solid var(--dm-teal); outline-offset: 2px; }
.dm-search__loc { margin-bottom: 4px; }
.dm-search__loc:empty { display: none; }

/* TomSelect harmonised with the panel fields */
.dm-search .ts-wrapper { flex: 1; }
.dm-search .ts-control {
	min-height: 46px;
	border: 1px solid var(--dm-sand-2) !important;
	border-radius: var(--dm-radius-sm) !important;
	background: #fbf9f5 !important;
	color: var(--dm-ink);
	padding: 0 12px;
	box-shadow: none !important;
	font-size: 14.5px;
	display: flex;
	align-items: center;
}
.dm-search .ts-wrapper.focus .ts-control {
	border-color: var(--dm-teal) !important;
	box-shadow: 0 0 0 3px rgba(74, 0, 163,0.16) !important;
	background: #fff !important;
}
.dm-search .ts-dropdown {
	border: 1px solid var(--dm-sand-2);
	border-radius: var(--dm-radius-sm);
	box-shadow: var(--dm-shadow-md);
}
.dm-search .ts-dropdown .active { background: var(--dm-sand); color: var(--dm-ink); }

/* Trust row ------------------------------------------------------------ */
.dm-hero__trust {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	list-style: none;
	margin: 22px 0 0;
	padding: 0;
}
.dm-hero__trust li {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--dm-ink);
}
.dm-hero__trust i { color: var(--dm-lime-deep); font-size: 14px; }

/* Depth stage (CSS 3D) ------------------------------------------------- */
.dm-hero__stage {
	position: relative;
	min-height: 480px;
	perspective: 1200px;
	transform-style: preserve-3d;
}
.dm-arch {
	position: absolute;
	top: 50%; left: 50%;
	width: 320px; height: 400px;
	transform: translate(-50%, -50%);
	border-radius: 170px 170px 26px 26px;
	overflow: hidden;
	box-shadow: var(--dm-shadow-lg);
	border: 10px solid #fff;
	background: #fff;
	will-change: transform;
}
.dm-arch__scene { display: block; width: 100%; height: 100%; }

.dm-card {
	position: absolute;
	margin: 0;
	background: rgba(255,255,255,0.9);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid rgba(255,255,255,0.7);
	border-radius: 14px;
	box-shadow: var(--dm-shadow-md);
	padding: 14px 16px;
	will-change: transform;
}
.dm-card--seal {
	top: 34px; right: 6px;
	display: flex; align-items: center; gap: 11px;
	text-align: left;
}
.dm-seal {
	width: 40px; height: 40px; border-radius: 50%;
	display: grid; place-items: center;
	background: var(--dm-teal-deep);
	color: #fff; font-size: 16px;
	box-shadow: 0 0 0 5px rgba(45, 12, 90,0.14);
}
.dm-card--seal figcaption { font-weight: 700; font-size: 14px; line-height: 1.15; color: var(--dm-ink); }
.dm-card--seal small { font-weight: 500; font-size: 11.5px; color: var(--dm-muted); }

.dm-card--rating { bottom: 44px; left: -6px; }
.dm-card--rating__stars { color: #E4A93C; font-size: 17px; letter-spacing: 2px; }
.dm-card--rating__meta { font-size: 12.5px; color: var(--dm-muted); margin-top: 3px; }
.dm-card--rating__meta strong { color: var(--dm-ink); font-size: 14px; }

.dm-card--count { top: 8px; left: 14px; text-align: left; }
.dm-card--count strong {
	display: block;
	font-family: var(--dm-font-display);
	font-size: 26px; font-weight: 600; color: var(--dm-teal-deep);
	line-height: 1;
}
.dm-card--count strong span { color: var(--dm-terracotta); }
.dm-card--count__label { font-size: 11.5px; color: var(--dm-muted); }

/* Map section heading -------------------------------------------------- */
.dm-map-head { margin-bottom: 18px; text-align: center; }
.dm-map-head h2 {
	font-family: var(--dm-font-display);
	font-weight: 600;
	font-size: clamp(22px, 3vw, 32px);
	color: var(--dm-ink);
	margin: 0 0 6px;
}
.dm-map-head p { color: var(--dm-muted); font-size: 15px; margin: 0; }

/* Hero responsive ------------------------------------------------------ */
@media (max-width: 900px) {
	.dm-hero__grid { grid-template-columns: 1fr; gap: 40px; }
	.dm-hero__stage { min-height: 400px; order: -1; }
	.dm-hero__copy { text-align: left; }
}
@media (max-width: 575px) {
	.dm-hero__stage { min-height: 340px; transform: scale(0.82); }
	.dm-search { padding: 12px; }
	.dm-search__submit { flex: 1 1 100%; justify-content: center; }
}

/* Toolbar above the hero (location button) */
.dm-hero-toolbar {
	background: #fff;
	border-bottom: 1px solid var(--dm-line);
}
.dm-hero-toolbar .dm-container {
	display: flex;
	justify-content: flex-end;
	padding-top: 14px;
	padding-bottom: 14px;
}
.dm-btn-locate {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 18px;
	background: var(--dm-teal);
	color: #fff;
	border: 0;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	flex-shrink: 0;
	cursor: pointer;
	box-shadow: 0 10px 22px -12px rgba(35, 33, 48,0.55);
	transition: background .2s ease, transform .2s ease;
}
.dm-btn-locate span { white-space: nowrap; }
.dm-btn-locate:hover { background: var(--dm-teal-deep); transform: translateY(-1px); color: #fff; }
.dm-btn-locate i { font-size: 13px; }

/* In the primary nav, Get Location is the secondary (ghost) button so the solid
   "List Your Center" CTA stays the single focal action — declutters the bar. */
.dm-menu .dm-btn-locate {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.4);
	box-shadow: none;
}
.dm-menu .dm-btn-locate:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }

@media (max-width: 575px) {
	.dm-hero .dm-hero__logo img { max-width: 160px; }
	.dm-hero .dm-hero__sub { font-size: 13.5px; margin-bottom: 18px; }
	.dm-hero-toolbar .dm-container { padding-top: 10px; padding-bottom: 10px; }
	.dm-btn-locate { padding: 8px 14px; font-size: 13px; }
}

/* ============================================================
   Global toast / alert (.dm-toast)
   Markup lives once in _Layout.cshtml, driven by showAlert() /
   closeAlert() in common.js. Available on every page.
   Supports optional data-variant="success|warning|error|info".
   ============================================================ */
#alertMessage.dm-toast {
	position: fixed;
	top: 24px;
	right: 24px;
	z-index: 1090;
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 320px;
	max-width: 420px;
	padding: 14px 44px 14px 16px;
	background: #fff;
	color: var(--dm-ink);
	border: 1px solid rgba(40,94,191,0.12);
	border-radius: 14px;
	font-family: var(--dm-font-body);
	font-size: 14px;
	line-height: 1.45;
	box-shadow:
		0 24px 60px -24px rgba(35, 33, 48,0.45),
		0 8px 18px -10px rgba(35, 33, 48,0.2);
	overflow: hidden;
	animation: dm-toast-in .28s cubic-bezier(.2,.8,.2,1) both;
}
/* Left accent rail */
#alertMessage.dm-toast::before {
	content: "";
	position: absolute;
	left: 0; top: 0; bottom: 0;
	width: 4px;
	background: var(--dm-teal-deep);
}
#alertMessage.dm-toast[hidden] { display: none !important; }

#alertMessage .dm-toast__icon {
	flex-shrink: 0;
	width: 34px; height: 34px;
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(45, 12, 90,0.10);
	color: var(--dm-teal-deep);
	font-size: 14px;
}
#alertMessage .dm-toast__text {
	flex: 1 1 auto;
	min-width: 0;
	color: var(--dm-ink);
	font-weight: 500;
	word-break: break-word;
}
#alertMessage .dm-toast__close,
#alertMessage .close-btn {
	position: absolute;
	top: 8px; right: 10px;
	width: 26px; height: 26px;
	background: transparent;
	border: 0;
	color: var(--dm-muted);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	border-radius: 50%;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: background .15s ease, color .15s ease, transform .15s ease;
}
#alertMessage .dm-toast__close:hover,
#alertMessage .close-btn:hover {
	background: var(--dm-sand);
	color: var(--dm-terracotta);
	transform: rotate(90deg);
}
#alertMessage .dm-toast__close:focus-visible {
	outline: 2px solid var(--dm-terracotta);
	outline-offset: 2px;
}

/* Progress bar — matches 3s auto-hide in common.js */
#alertMessage .dm-toast__progress {
	position: absolute;
	left: 4px; right: 0; bottom: 0;
	height: 2px;
	background: var(--dm-teal-deep);
	transform-origin: left center;
	animation: dm-toast-progress 3s linear forwards;
}

/* Variant overrides (opt-in) */
#alertMessage.dm-toast[data-variant="success"]::before { background: #1fa46b; }
#alertMessage.dm-toast[data-variant="success"] .dm-toast__icon { background: rgba(31,164,107,0.12); color: #0f7a4f; }
#alertMessage.dm-toast[data-variant="success"] .dm-toast__progress { background: #1fa46b; }

#alertMessage.dm-toast[data-variant="warning"]::before { background: #e0884a; }
#alertMessage.dm-toast[data-variant="warning"] .dm-toast__icon { background: rgba(224,136,74,0.14); color: #b86b35; }
#alertMessage.dm-toast[data-variant="warning"] .dm-toast__progress { background: #e0884a; }

#alertMessage.dm-toast[data-variant="error"]::before { background: #e25555; }
#alertMessage.dm-toast[data-variant="error"] .dm-toast__icon { background: rgba(226,85,85,0.14); color: #a83232; }
#alertMessage.dm-toast[data-variant="error"] .dm-toast__progress { background: #e25555; }

#alertMessage.dm-toast[data-variant="info"]::before { background: #12a5a5; }
#alertMessage.dm-toast[data-variant="info"] .dm-toast__icon { background: rgba(18,165,165,0.14); color: #0d7b7b; }
#alertMessage.dm-toast[data-variant="info"] .dm-toast__progress { background: #12a5a5; }

@keyframes dm-toast-in {
	from { opacity: 0; transform: translateX(24px) translateY(-4px); }
	to   { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes dm-toast-progress {
	from { transform: scaleX(1); }
	to   { transform: scaleX(0); }
}

/* Mobile — full-width pin to top with safe-area */
@media (max-width: 575px) {
	#alertMessage.dm-toast {
		top: max(12px, env(safe-area-inset-top, 12px));
		left: 12px;
		right: 12px;
		min-width: 0;
		max-width: none;
		padding: 12px 40px 12px 14px;
		font-size: 13.5px;
	}
	#alertMessage .dm-toast__icon { width: 30px; height: 30px; font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	#alertMessage.dm-toast { animation: none; }
	#alertMessage .dm-toast__progress { animation: none; display: none; }
	#alertMessage .dm-toast__close:hover,
	#alertMessage .close-btn:hover { transform: none; }
}

/* ---------- Footer ---------- */
.dm-shell-footer {
	position: relative;
	margin-top: 120px;
	padding-top: 80px;
	background:
		radial-gradient(1200px 400px at 90% -10%, rgba(74, 0, 163,0.20), transparent 60%),
		var(--dm-terracotta-deep);
	color: #e7e0d1;
	overflow: hidden;
	isolation: isolate;
	
}
/* Curved sand separator so the footer never blends with a blue hero above */
.dm-shell-footer::after {
	content: "";
	position: absolute;
	left: 0; right: 0; top: -1px;
	height: 60px;
	background: #ffffff;
	clip-path: ellipse(75% 100% at 50% 0%);
	z-index: 1;
	pointer-events: none;
}
.dm-shell-footer::before {
	content: "";
	position: absolute; inset: 0;
	background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
	background-size: 4px 4px;
	pointer-events: none;
	z-index: 0;
}
.dm-footer-art {
	position: absolute;
	right: -60px; bottom: -40px;
	width: 420px;
	max-width: 55%;
	opacity: 0.14;
	z-index: 0;
	pointer-events: none;
}
.dm-footer-art img { width: 100%; height: auto; display: block; }

.dm-footer-grid {
	position: relative;
	z-index: 1;
	display: grid;
	grid-template-columns: 1.7fr 1fr 1fr 1fr;
	gap: 48px;
	padding: 72px 24px 48px;
}
.dm-footer-col h4 {
	font-family: var(--dm-font-display);
	font-weight: 600;
	font-size: 18px;
	color: #fff;
	margin: 0 0 18px;
	letter-spacing: 0.01em;
	position: relative;
	padding-bottom: 10px;
}
.dm-footer-col h4::after {
	content: "";
	position: absolute; left: 0; bottom: 0;
	width: 28px; height: 2px;
	background: var(--dm-terracotta);
}
.dm-footer-col ul {
	list-style: none;
	margin: 0; padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.dm-footer-col ul a {
	color: #d7cdb6;
	text-decoration: none;
	font-size: 14.5px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: color .2s ease, transform .2s ease;
}
.dm-footer-col ul a::before {
	content: "›";
	color: var(--dm-terracotta);
	font-weight: 700;
	transition: transform .2s ease;
}
.dm-footer-col ul a:hover {
	color: #fff;
}
.dm-footer-col ul a:hover::before { transform: translateX(3px); }

.dm-footer-brand p {
	color: #c9bda2;
	font-size: 14.5px;
	line-height: 1.65;
	margin: 14px 0 18px;
	max-width: 42ch;
}
.dm-footer-logo img {
	height: 56px; width: auto; object-fit: contain;
}
.dm-footer-contact {
	display: flex;
	flex-direction: column;
	gap: 8px;
}
.dm-footer-contact a {
	color: #e7e0d1;
	text-decoration: none;
	font-size: 14px;
	display: inline-flex;
	align-items: center;
	gap: 10px;
}
.dm-footer-contact a i { color: var(--dm-terracotta); width: 16px; }
.dm-footer-contact a:hover { color: #fff; }

.dm-footer-bottom {
	position: relative;
	z-index: 1;
	border-top: 1px solid rgba(255,255,255,0.1);
	padding: 18px 0;
	background: rgba(0,0,0,0.18);
	font-size: 13px;
	color: #c9bda2;
}
.dm-footer-bottom .dm-container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.dm-footer-bottom strong { color: #fff; font-weight: 600; }
.dm-footer-made { font-style: italic; opacity: 0.85; }

@media (max-width: 900px) {
	.dm-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 40px;
		padding: 56px 24px 36px;
	}
	.dm-footer-brand { grid-column: 1 / -1; }
	.dm-footer-art { width: 300px; opacity: 0.1; }
}
@media (max-width: 560px) {
	.dm-footer-grid { grid-template-columns: 1fr; gap: 32px; }
	.dm-footer-bottom .dm-container { flex-direction: column; align-items: flex-start; }
}

/* ---------- Back to top ---------- */
.dm-to-top {
	position: fixed;
	right: 22px;
	bottom: 22px;
	width: 44px; height: 44px;
	border-radius: 50%;
	background: var(--dm-teal);
	color: #fff !important;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: var(--dm-shadow-md);
	text-decoration: none;
	z-index: 50;
	transition: background .2s ease, transform .2s ease;
}
.dm-to-top:hover { background: var(--dm-terracotta); color: var(--dm-accent-ink) !important; transform: translateY(-2px); }

/* ---------- Loader override ---------- */
#global-loader.dm-loader {
	position: fixed;
	z-index: 50000;
	inset: 0;
	width: 100%;
	height: 100%;
	background: var(--dm-sand);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}
#global-loader.dm-loader .loader-img {
	position: static;
	margin: 0;
	text-align: center;
}

/* (search bar styling moved to wwwroot/custom/css/search.css) */

/* ---------- Focus visibility ---------- */
.dm-shell-header a:focus-visible,
.dm-shell-footer a:focus-visible,
.dm-cta:focus-visible,
.dm-to-top:focus-visible {
	outline: 2px solid var(--dm-terracotta);
	outline-offset: 3px;
	border-radius: var(--dm-radius-sm);
}

/* ============================================================
   Responsive — tablets, Android & iOS
   Breakpoints: ≤1199 (small laptop) · ≤991 (tablet landscape)
                ≤767 (tablet portrait) · ≤575 (large phone)
                ≤380 (small phone)
   ============================================================ */

/* iOS / Android safe-area + smooth scrolling, prevent horizontal scroll */
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.dm-body { overflow-x: hidden; }
@supports (padding: max(0px)) {
	.dm-shell-header { padding-top: env(safe-area-inset-top); }
	.dm-footer-bottom { padding-bottom: max(18px, env(safe-area-inset-bottom)); }
	.dm-to-top {
		right: max(22px, env(safe-area-inset-right));
		bottom: max(22px, env(safe-area-inset-bottom));
	}
}

/* Tablet landscape (≤1199px) */
@media (max-width: 1199px) {
	.dm-container { padding: 0 20px; }
	.dm-brand img { height: 58px; }
	.dm-nav { gap: 18px; min-height: 88px; }
	.dm-menu { gap: 14px; }
	.dm-menu ul { gap: 2px; }
	.dm-menu ul a { padding: 10px 11px; font-size: 14.5px; }
	.dm-menu__actions { gap: 10px; }
	.dm-cta { padding: 11px 16px; }
	.dm-btn-locate { padding: 10px 14px; }
	.dm-footer-grid { gap: 40px; padding: 64px 20px 40px; }
}

/* Tablet portrait & below — drawer mode (≤991px) */
@media (max-width: 991px) {
	.dm-container { padding: 0 18px; }
	.dm-utility { font-size: 12.5px; }
	.dm-utility .dm-container { gap: 16px; min-height: 38px; }
	.dm-utility__item { padding: 8px 0; }
	.dm-nav { min-height: 68px; gap: 12px; }
	.dm-brand img { height: 52px; width: auto; }
	.dm-brand__name { font-size: 21px; }
	.dm-brand__tag { font-size: 11px; }

	/* Search bar — stack neatly with comfortable touch height */
	.item-search-tabs.custom-search { padding: 3px; border-radius: 14px; }
	.item-search-tabs .search-background { padding: 4px; border-radius: 10px; }
	.item-search-tabs .form-control {
		height: 50px !important;
		line-height: 50px !important;
		font-size: 14.5px !important;
	}
	.item-search-tabs #btn-search,
	.item-search-tabs .btn-orange { height: 50px; font-size: 14.5px; }
}

/* Tablet portrait (≤767px) — true tablet/large-phone */
@media (max-width: 767px) {
	.dm-utility .dm-container { flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 12px; padding-top: 6px; padding-bottom: 6px; min-height: 0; overflow-x: auto; }
	.dm-utility__item { padding: 4px 0; font-size: 12.5px; }
	.dm-utility__item span { display: inline; }
	.dm-nav { min-height: 64px; }
	.dm-brand__tag { display: none; }
	.dm-brand__name { font-size: 19px; }

	.dm-footer-grid {
		grid-template-columns: 1fr 1fr;
		gap: 32px;
		padding: 56px 18px 32px;
	}
	.dm-footer-brand { grid-column: 1 / -1; }
	.dm-footer-art { width: 240px; opacity: 0.08; right: -40px; }
	.dm-shell-footer { margin-top: 80px; padding-top: 60px; }
	.dm-shell-footer::after { height: 44px; }
}

/* Large phones (≤575px) */
@media (max-width: 575px) {
	.dm-container { padding: 0 14px; }
	.dm-nav { padding: 8px 0; }
	.dm-brand img { height: 46px; width: auto; }
	.dm-brand__name { font-size: 18px; }
	.dm-hamburger { width: 42px; height: 42px; }
	.dm-cta { width: 100%; justify-content: center; padding: 14px 18px; }

	/* Touch targets ≥44px (WCAG / iOS HIG) */
	.dm-menu ul a { min-height: 48px; display: flex; align-items: center; padding: 12px 6px; }

	.dm-footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 48px 14px 28px; }
	.dm-footer-col h4 { font-size: 16px; margin-bottom: 14px; }
	.dm-footer-brand p { font-size: 14px; }
	.dm-footer-art { display: none; }
	.dm-footer-bottom { font-size: 12px; }
	.dm-footer-bottom .dm-container { flex-direction: column; align-items: flex-start; gap: 6px; }

	.dm-to-top { width: 42px; height: 42px; right: 14px; bottom: 14px; }

	/* Search button gets full-width breathing room */
	.item-search-tabs #btn-search,
	.item-search-tabs .btn-orange { height: 52px; font-size: 15px; margin-top: 8px; }
}

/* Small phones (≤380px) — iPhone SE / older Androids */
@media (max-width: 380px) {
	.dm-brand__name { font-size: 17px; }
	.dm-brand img { height: 40px; width: auto; }
	.dm-utility__tag { display: none; }
	.dm-cta { font-size: 14px; padding: 12px 16px; }
	.dm-footer-col h4 { font-size: 15px; }
}

/* Landscape phones — keep nav from eating viewport height */
@media (max-height: 480px) and (orientation: landscape) and (max-width: 991px) {
	.dm-nav-toggle:checked ~ .dm-menu { max-height: 70vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
}

/* High-DPI tweaks (Retina / most Android) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 2dppx) {
	.dm-brand img,
	.dm-footer-logo img { image-rendering: -webkit-optimize-contrast; }
}

/* (mobile hero overrides for the search section live in search.css) */

/* Reduced motion — disable smooth scroll for users who prefer it */
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.dm-menu, .dm-cta, .dm-to-top { transition: none !important; }
}

/* ============================================================
   LOCATION ACCESS MODAL (#locationAccessModel)
   Markup + handlers live in _Layout.cshtml so the header's
   "Get Location" button works on every page. Variables are
   re-declared here (idempotent with search.css) so the modal
   keeps its styling on pages that don't load search.css.
   ============================================================ */
:root {
	--ds-blue:        var(--dm-terracotta-deep);
	--ds-blue-deep:   #232130;
	--ds-blue-soft:   rgba(45, 12, 90, 0.06);
	--ds-blue-line:   rgba(35, 33, 48, 0.20);
	--ds-amber:       var(--dm-terracotta);
	--ds-amber-deep:  var(--dm-terracotta-deep);
	--ds-ink:         #232130;
	--ds-mute:        #8892a3;
}

#locationAccessModel .modal-dialog {
	max-width: 460px;
	margin: auto;
	padding: 1rem;
}
#locationAccessModel .modal-content {
	border: 0;
	border-radius: 20px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 40px 80px -24px rgba(35, 33, 48,0.45),
	            0 12px 28px -16px rgba(35, 33, 48,0.3);
	position: relative;
}
#locationAccessModel .modal-content::before {
	content: "";
	position: absolute;
	left: 0; right: 0; top: 0;
	height: 4px;
	background: var(--ds-blue);
	z-index: 2;
}

/* Header */
#locationAccessModel .modal-header {
	background: var(--ds-blue);
	color: #fff;
	border: 0;
	padding: 22px 26px 20px;
	position: relative;
	overflow: hidden;
}
#locationAccessModel .modal-header::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
	background-size: 6px 6px;
	pointer-events: none;
	opacity: 0.6;
}
#locationAccessModel .modal-title {
	font-family: "Roboto Slab", Georgia, serif;
	font-weight: 600;
	font-size: 19px;
	letter-spacing: 0.01em;
	color: #fff;
	margin: 0;
	display: inline-flex;
	align-items: center;
	gap: 12px;
	position: relative;
	z-index: 1;
}
#locationAccessModel .modal-title i {
	width: 40px; height: 40px;
	border-radius: 50%;
	background: rgba(255,255,255,0.18);
	color: #fff;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 16px;
	box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25);
	animation: ds-pin-pulse 2.4s ease-in-out infinite;
}
@keyframes ds-pin-pulse {
	0%, 100% { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 0 0 0 rgba(255,255,255,0.45); }
	50%      { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.25), 0 0 0 8px rgba(255,255,255,0); }
}

/* Body */
#locationAccessModel .modal-body {
	padding: 24px 26px 8px;
	color: var(--ds-ink);
	font-size: 14.5px;
	line-height: 1.6;
	text-align: center;
}
#locationAccessModel .modal-body p {
	margin: 0;
	color: var(--ds-ink);
}
#locationAccessModel .modal-body p::before {
	content: "\f3c5";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	display: block;
	margin: 6px auto 16px;
	width: 56px; height: 56px;
	border-radius: 50%;
	background: var(--ds-blue-soft);
	color: var(--ds-blue);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	border: 1px dashed rgba(40,94,191,0.3);
}

/* Footer */
#locationAccessModel .modal-footer {
	padding: 18px 26px 24px;
	border: 0;
	display: flex;
	gap: 10px;
	justify-content: center;
	background: transparent;
}
#locationAccessModel .modal-footer .btn {
	flex: 1 1 0;
	max-width: 180px;
	min-height: 46px;
	border: 0;
	border-radius: 999px;
	font-family: "Poppins", system-ui, sans-serif;
	font-weight: 600;
	font-size: 14.5px;
	letter-spacing: 0.02em;
	padding: 10px 18px;
	transition: transform .2s ease, box-shadow .2s ease, background .25s ease, color .25s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
#locationAccessModel #allowLocationAccess {
	background: var(--ds-amber);
	color: #fff;
	box-shadow: 0 14px 28px -14px rgba(184,107,53,0.75);
}
#locationAccessModel #allowLocationAccess::before {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 12px;
}
#locationAccessModel #allowLocationAccess:hover {
	transform: translateY(-2px);
	filter: brightness(1.05);
	box-shadow: 0 20px 36px -16px rgba(184,107,53,0.85);
}
#locationAccessModel #denyLocationAccess {
	background: #fff;
	color: var(--ds-ink);
	border: 1px solid var(--ds-blue-line) !important;
	box-shadow: 0 6px 14px -8px rgba(35, 33, 48,0.25);
}
#locationAccessModel #denyLocationAccess::before {
	content: "\f00d";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 12px;
	color: var(--ds-mute);
}
#locationAccessModel #denyLocationAccess:hover {
	background: var(--ds-blue-soft);
	border-color: var(--ds-blue) !important;
	color: var(--ds-blue-deep);
	transform: translateY(-1px);
}
#locationAccessModel .modal-footer .btn:focus-visible {
	outline: 2px solid var(--ds-amber);
	outline-offset: 3px;
}

/* Backdrop tint */
.modal-backdrop.show { opacity: 0.55; background: #0b1a33; }

/* Responsive */
@media (max-width: 575px) {
	#locationAccessModel .modal-dialog { padding: 0.5rem; }
	#locationAccessModel .modal-header { padding: 18px 20px 16px; }
	#locationAccessModel .modal-title { font-size: 17px; gap: 10px; }
	#locationAccessModel .modal-title i { width: 36px; height: 36px; font-size: 14px; }
	#locationAccessModel .modal-body { padding: 20px 20px 4px; font-size: 14px; }
	#locationAccessModel .modal-body p::before { width: 48px; height: 48px; font-size: 18px; margin-bottom: 12px; }
	#locationAccessModel .modal-footer { padding: 14px 20px 20px; flex-direction: column; gap: 8px; }
	#locationAccessModel .modal-footer .btn { max-width: 100%; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	#locationAccessModel .modal-title i { animation: none; }
	#locationAccessModel .modal-footer .btn,
	#locationAccessModel .modal-footer .btn:hover { transform: none; transition: none; }
}

/* ============================================================
   Motion — scroll reveals + parallax depth (2026-07 redesign)
   Enabled only when <html class="dm-anim"> is present, which
   motion.js adds unless the user prefers reduced motion.
   Content is fully visible without JS or under reduced motion.
   ============================================================ */
.dm-anim [data-reveal] {
	opacity: 0;
	transform: translateY(20px);
	transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1);
	will-change: opacity, transform;
}
.dm-anim [data-reveal].is-revealed {
	opacity: 1;
	transform: none;
}
/* 3D-on-scroll reveal: element lifts out of a tilted plane */
.dm-anim [data-reveal-3d] {
	opacity: 0;
	transform: perspective(1200px) rotateX(16deg) translateY(60px) translateZ(-40px);
	transform-origin: 50% 100%;
	transition: opacity .8s cubic-bezier(.22,.61,.36,1), transform .9s cubic-bezier(.22,.61,.36,1);
	will-change: opacity, transform;
}
.dm-anim [data-reveal-3d].is-revealed {
	opacity: 1;
	transform: perspective(1200px) rotateX(0) translateY(0) translateZ(0);
}
.dm-anim [data-reveal-3d][data-delay="1"] { transition-delay: .1s; }
.dm-anim [data-reveal-3d][data-delay="2"] { transition-delay: .2s; }
.dm-anim [data-reveal-3d][data-delay="3"] { transition-delay: .3s; }
.dm-anim [data-reveal-3d][data-delay="4"] { transition-delay: .4s; }
/* Stagger children inside a revealed group */
.dm-anim [data-reveal-group].is-revealed [data-reveal] { opacity: 1; transform: none; }
.dm-anim [data-reveal-group] [data-reveal]:nth-child(1) { transition-delay: .00s; }
.dm-anim [data-reveal-group] [data-reveal]:nth-child(2) { transition-delay: .08s; }
.dm-anim [data-reveal-group] [data-reveal]:nth-child(3) { transition-delay: .16s; }
.dm-anim [data-reveal-group] [data-reveal]:nth-child(4) { transition-delay: .24s; }
.dm-anim [data-reveal-group] [data-reveal]:nth-child(5) { transition-delay: .32s; }

/* Parallax elements move via CSS vars set by motion.js
   (--dm-py from scroll, --dm-px from pointer). */
.dm-anim [data-parallax] {
	transform: translate3d(var(--dm-px, 0px), var(--dm-py, 0px), 0);
	transition: transform .18s cubic-bezier(.22,.61,.36,1);
}

@media (prefers-reduced-motion: reduce) {
	.dm-anim [data-reveal],
	.dm-anim [data-reveal].is-revealed,
	.dm-anim [data-reveal-3d],
	.dm-anim [data-reveal-3d].is-revealed { opacity: 1 !important; transform: none !important; transition: none !important; }
	.dm-anim [data-parallax] { transform: none !important; }
}
