/* ==========================================================================
   RMD Header – sticky header + offcanvas. Light, flat, brand #CB3981 on #fff.
   All classes start with "rmdhd" so nothing clashes.
   ========================================================================== */
.rmdhd {
	--p: #CB3981;
	--p-600: #b62f71;
	--p-50: #fff4f8;
	--p-100: #fde7f0;
	--p-200: #f8c8dc;
	--ink: #1f1b26;
	--ink-2: #4b4757;
	--muted: #6f6a7a;
	--line: #f0e6ee;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--h: 88px;           /* header height */
	--h-small: 70px;     /* header height after scrolling */

	position: relative;
	width: 100%;
	height: var(--h);
	margin: 0;
	padding: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.4;
	color: var(--ink);
	box-sizing: border-box;
	-webkit-font-smoothing: antialiased;
	z-index: 9990;
}
.rmdhd *, .rmdhd *::before, .rmdhd *::after, .rmdhd-oc *, .rmdhd-oc *::before, .rmdhd-oc *::after { box-sizing: border-box; }
.rmdhd a, .rmdhd-oc a { text-decoration: none !important; }
.rmdhd ul, .rmdhd-oc ul { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.rmdhd li, .rmdhd-oc li { margin: 0 !important; padding: 0 !important; list-style: none !important; }
.rmdhd li::before, .rmdhd-oc li::before, .rmdhd li::marker, .rmdhd-oc li::marker { content: none !important; }
.rmdhd button, .rmdhd-oc button {
	margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
	font-family: inherit !important; text-transform: none !important; letter-spacing: 0 !important; min-height: 0 !important;
	cursor: pointer; color: inherit !important; border-radius: 0 !important;
}
.rmdhd .bi, .rmdhd-oc .bi { line-height: 1; display: inline-block; }

/* ---------- Bar: fixed, glass after scrolling, hides on scroll down ---------- */
.rmdhd .rmdhd-bar {
	position: fixed; left: 0; right: 0; top: 0; z-index: 9990;
	height: var(--h);
	background: rgba(255, 255, 255, 0);
	border-bottom: 1px solid transparent;
	transition: height .4s var(--ease), transform .45s var(--ease), background-color .35s ease, border-color .35s ease;
}
body.admin-bar .rmdhd .rmdhd-bar { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rmdhd .rmdhd-bar { top: 46px; } }
.rmdhd.is-scrolled .rmdhd-bar {
	height: var(--h-small);
	background: rgba(255, 255, 255, .86);
	border-bottom-color: var(--line);
	backdrop-filter: blur(16px) saturate(160%);
	-webkit-backdrop-filter: blur(16px) saturate(160%);
}
.rmdhd.is-hidden .rmdhd-bar { transform: translateY(-101%); }
.rmdhd.is-open .rmdhd-bar { transform: none; }

/* reading-progress line */
.rmdhd .rmdhd-progress {
	position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
	background: var(--p);
	transform: scaleX(var(--p-val, 0)); transform-origin: left center;
	opacity: 0; transition: opacity .3s ease;
}
.rmdhd.is-scrolled .rmdhd-progress { opacity: 1; }

/* 100% band › 1440 box › 90% content */
.rmdhd .rmdhd-inner {
	width: 90%; max-width: 1296px; height: 100%; margin: 0 auto;
	display: flex; align-items: center; gap: 36px;
	opacity: 0; transition: opacity .6s ease;
}
.rmdhd.is-ready .rmdhd-inner { opacity: 1; }

/* logo */
.rmdhd a.rmdhd-logo { flex: none; display: flex; align-items: center; height: 52px; transition: height .4s var(--ease), opacity .2s ease; }
.rmdhd.is-scrolled a.rmdhd-logo { height: 42px; }
.rmdhd a.rmdhd-logo:hover { opacity: .85; }
.rmdhd a.rmdhd-logo img, .rmdhd-oc__logo img { display: block !important; width: auto !important; height: 100% !important; max-width: none !important; margin: 0 !important; border: 0 !important; }
.rmdhd-logo-text { font: 800 20px/1 var(--display); letter-spacing: -.02em; color: var(--ink); }

/* ---------- Desktop menu ---------- */
.rmdhd .rmdhd-menu { flex: 1; display: flex; justify-content: center; min-width: 0; height: 100%; }
.rmdhd .rmdhd-nav { display: flex !important; align-items: stretch; gap: 34px; height: 100%; }
.rmdhd .rmdhd-nav > li { position: relative !important; display: flex; align-items: center; }
.rmdhd .rmdhd-link {
	position: relative; display: inline-flex !important; align-items: center; gap: 6px; height: 100%; padding: 0 !important;
	color: var(--ink-2) !important; font-size: 15px !important; font-weight: 700 !important; line-height: 1 !important; white-space: nowrap;
	transition: color .2s ease;
}
.rmdhd .rmdhd-link::after {                    /* underline grows from the left */
	content: ""; position: absolute; left: 0; right: 0; bottom: calc(50% - 16px); height: 2px; border-radius: 2px;
	background: var(--p); transform: scaleX(0); transform-origin: right center; transition: transform .35s var(--ease);
}
.rmdhd .rmdhd-link:hover, .rmdhd li.is-open > .rmdhd-link, .rmdhd .rmdhd-link.is-current { color: var(--p) !important; }
.rmdhd .rmdhd-link:hover::after, .rmdhd li.is-open > .rmdhd-link::after, .rmdhd .rmdhd-link.is-current::after { transform: scaleX(1); transform-origin: left center; }
.rmdhd .rmdhd-link .bi-chevron-down { font-size: 10px; opacity: .7; transition: transform .3s var(--ease); }
.rmdhd li.is-open > .rmdhd-link .bi-chevron-down { transform: rotate(180deg); }

/* dropdown */
.rmdhd .rmdhd-drop {
	position: absolute; left: -16px; top: calc(50% + 30px); z-index: 5; min-width: 220px; padding: 8px;
	border-radius: 14px; background: #fff; border: 1px solid var(--line);
	box-shadow: 0 24px 48px -24px rgba(31, 27, 38, .25);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .18s ease, transform .22s var(--ease), visibility .18s;
}
.rmdhd .rmdhd-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -24px; height: 24px; }   /* hover bridge */
.rmdhd li.is-open > .rmdhd-drop { opacity: 1; visibility: visible; transform: none; }
.rmdhd .rmdhd-drop a {
	display: flex !important; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 12px !important;
	border-radius: 9px; color: var(--ink-2) !important; font-size: 14px !important; font-weight: 600; line-height: 1.2; white-space: nowrap;
	transition: background-color .15s ease, color .15s ease;
}
.rmdhd .rmdhd-drop a:hover, .rmdhd .rmdhd-drop a:focus-visible, .rmdhd .rmdhd-drop a.is-current { background: var(--p-50); color: var(--p) !important; outline: none; }
.rmdhd .rmdhd-drop a .bi { font-size: 12px; opacity: 0; transform: translateX(-4px); transition: opacity .15s ease, transform .25s var(--ease); }
.rmdhd .rmdhd-drop a:hover .bi, .rmdhd .rmdhd-drop a.is-current .bi { opacity: .8; transform: none; }

/* ---------- Right side: socials, button, burger ---------- */
.rmdhd .rmdhd-right { flex: none; display: flex; align-items: center; gap: 18px; }
.rmdhd .rmdhd-socials { display: flex; align-items: center; gap: 16px; }
.rmdhd .rmdhd-soc { display: block; color: var(--muted) !important; font-size: 16px; transition: color .2s ease, transform .3s var(--ease); }
.rmdhd .rmdhd-soc:hover { color: var(--p) !important; transform: translateY(-2px); }
.rmdhd a.rmdhd-cta {
	display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 20px; border-radius: 999px;
	background: var(--p); color: #fff !important; font-size: 14px; font-weight: 700; white-space: nowrap;
	transition: background-color .25s ease, transform .3s var(--ease), height .4s var(--ease);
}
.rmdhd a.rmdhd-cta .bi { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--p); font-size: 13px; transition: transform .35s var(--ease); }
.rmdhd a.rmdhd-cta:hover { background: var(--p-600); transform: translateY(-1px); }
.rmdhd a.rmdhd-cta:hover .bi { transform: rotate(45deg); }
.rmdhd.is-scrolled a.rmdhd-cta { height: 42px; }

/* burger: two thin lines */
.rmdhd button.rmdhd-burger { display: none !important; position: relative; width: 44px !important; height: 44px !important; padding: 0 !important; border-radius: 50% !important; background: var(--p-50) !important; }
.rmdhd .rmdhd-burger span { position: absolute; right: 11px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .35s var(--ease), width .3s var(--ease), top .35s var(--ease); }
.rmdhd .rmdhd-burger span:nth-child(1) { top: 17px; width: 22px; }
.rmdhd .rmdhd-burger span:nth-child(2) { top: 25px; width: 14px; }
.rmdhd .rmdhd-burger:hover span:nth-child(2) { width: 22px; }
.rmdhd.is-open .rmdhd-burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.rmdhd.is-open .rmdhd-burger span:nth-child(2) { top: 21px; width: 22px; transform: rotate(-45deg); }
.rmdhd button:focus-visible, .rmdhd a:focus-visible, .rmdhd-oc a:focus-visible, .rmdhd-oc button:focus-visible { outline: 2px solid var(--p) !important; outline-offset: 3px; }

/* ==========================================================================
   Offcanvas (tablet / mobile)
   ========================================================================== */
.rmdhd-oc {
	--p: #CB3981; --p-50: #fff4f8; --p-100: #fde7f0; --p-200: #f8c8dc;
	--ink: #1f1b26; --ink-2: #4b4757; --muted: #85808f; --line: #f2e9f0;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	position: fixed; inset: 0; z-index: 9995; visibility: hidden;
	font-family: var(--font); color: var(--ink); -webkit-font-smoothing: antialiased;
	transition: visibility 0s linear .55s;
}
.rmdhd-oc.is-open { visibility: visible; transition: none; }
.rmdhd-oc__shade { position: absolute; inset: 0; background: rgba(31, 27, 38, .35); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .4s ease; }
.rmdhd-oc.is-open .rmdhd-oc__shade { opacity: 1; }
.rmdhd-oc__panel {
	position: absolute; top: 0; right: 0; bottom: 0; width: min(460px, 100%);
	display: flex; flex-direction: column; background: #fff; border-left: 1px solid var(--line);
	overflow: hidden; isolation: isolate;
	clip-path: inset(0 0 0 100%); transition: clip-path .55s cubic-bezier(.77, 0, .175, 1);
}
.rmdhd-oc.is-open .rmdhd-oc__panel { clip-path: inset(0 0 0 0); }
.rmdhd-oc__panel::before {               /* soft brand light */
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: radial-gradient(70% 40% at 100% 0%, #fde7f0, transparent 70%), radial-gradient(60% 35% at 0% 100%, #f4f0ff, transparent 70%);
}
.rmdhd-oc__panel::after {                /* fine grid */
	content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
	background-image: linear-gradient(rgba(203, 57, 129, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(203, 57, 129, .05) 1px, transparent 1px);
	background-size: 44px 44px;
	-webkit-mask-image: linear-gradient(to bottom, #000, transparent 55%); mask-image: linear-gradient(to bottom, #000, transparent 55%);
}
.rmdhd-oc__top { flex: none; display: flex; align-items: center; justify-content: space-between; height: 76px; padding: 0 18px 0 24px; border-bottom: 1px solid var(--line); }
.rmdhd-oc__logo { display: flex; align-items: center; height: 44px; }
.rmdhd-oc button.rmdhd-oc__close {
	display: inline-flex !important; align-items: center; gap: 8px; height: 40px !important; padding: 0 14px 0 16px !important;
	border: 1px solid var(--line) !important; border-radius: 999px !important; background: #fff !important;
	color: var(--ink-2) !important; font-size: 13px !important; font-weight: 700 !important;
	transition: color .2s ease, border-color .2s ease !important;
}
.rmdhd-oc button.rmdhd-oc__close .bi { font-size: 13px; transition: transform .35s var(--ease); }
.rmdhd-oc button.rmdhd-oc__close:hover { color: var(--p) !important; border-color: var(--p-200) !important; }
.rmdhd-oc button.rmdhd-oc__close:hover .bi { transform: rotate(90deg); }

.rmdhd-oc__body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 22px 24px 24px; }
.rmdhd-oc__label { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--p); }
.rmdhd-oc__nav { counter-reset: rmdhd; }
.rmdhd-oc__nav > li { position: relative; border-bottom: 1px solid var(--line); counter-increment: rmdhd; }
/* each row reveals from under a mask */
.rmdhd-oc__row { overflow: hidden; }
.rmdhd-oc__row > * { transform: translateY(105%); transition: transform .6s var(--ease); }
.rmdhd-oc.is-open .rmdhd-oc__row > * { transform: none; transition-delay: calc(.25s + var(--i) * 55ms); }
.rmdhd-oc__nav > li::after {             /* divider draws in */
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--p-200);
	transform: scaleX(0); transform-origin: left center; transition: transform .7s var(--ease);
}
.rmdhd-oc.is-open .rmdhd-oc__nav > li::after { transform: scaleX(1); transition-delay: calc(.3s + var(--i) * 55ms); }
.rmdhd-oc .rmdhd-oc__link, .rmdhd-oc button.rmdhd-oc__link {
	width: 100% !important; display: flex !important; align-items: center; gap: 14px; padding: 18px 0 !important;
	color: var(--ink) !important; font-family: var(--display) !important; font-size: 24px !important; font-weight: 700 !important;
	line-height: 1.15 !important; letter-spacing: -.02em !important; text-align: left !important;
}
.rmdhd-oc .rmdhd-oc__link::before {
	content: counter(rmdhd, decimal-leading-zero); flex: none; width: 24px;
	font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: 0; color: var(--muted); transition: color .2s ease;
}
.rmdhd-oc .rmdhd-oc__txt { transition: transform .35s var(--ease), color .2s ease; }
.rmdhd-oc .rmdhd-oc__link:hover .rmdhd-oc__txt { transform: translateX(6px); color: var(--p); }
.rmdhd-oc .rmdhd-oc__link:hover::before, .rmdhd-oc li.is-open > .rmdhd-oc__row .rmdhd-oc__link::before { color: var(--p); }
.rmdhd-oc .rmdhd-oc__link.is-current .rmdhd-oc__txt, .rmdhd-oc .rmdhd-oc__link.is-current::before { color: var(--p); }
.rmdhd-oc .rmdhd-oc__link > .bi {
	margin-left: auto; flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
	border: 1px solid var(--line); font-size: 14px; color: var(--muted);
	transition: transform .4s var(--ease), color .2s ease, border-color .2s ease, background .2s ease;
}
.rmdhd-oc .rmdhd-oc__link:hover > .bi { color: #fff; border-color: var(--p); background: var(--p); }
.rmdhd-oc a.rmdhd-oc__link:hover > .bi { transform: rotate(-45deg); }
.rmdhd-oc li.is-open > .rmdhd-oc__row .bi-plus-lg { transform: rotate(45deg); color: var(--p); background: var(--p-50); border-color: var(--p-200); }

/* accordion */
.rmdhd-oc .rmdhd-oc__sub { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.rmdhd-oc li.is-open > .rmdhd-oc__sub { grid-template-rows: 1fr; }
.rmdhd-oc .rmdhd-oc__sub > div { min-height: 0; overflow: hidden; }
.rmdhd-oc .rmdhd-oc__sub ul { padding: 0 0 18px 38px !important; }
.rmdhd-oc .rmdhd-oc__sub li { opacity: 0; transform: translateY(6px); transition: opacity .25s ease, transform .35s var(--ease); }
.rmdhd-oc li.is-open > .rmdhd-oc__sub li { opacity: 1; transform: none; transition-delay: calc(.08s + var(--j, 0) * 25ms); }
.rmdhd-oc .rmdhd-oc__sub a { display: flex !important; align-items: center; justify-content: space-between; padding: 10px 0 !important; color: var(--ink-2) !important; font-size: 15px !important; font-weight: 600; transition: color .15s ease; }
.rmdhd-oc .rmdhd-oc__sub a .bi { font-size: 12px; opacity: .5; transition: transform .3s var(--ease), opacity .2s ease; }
.rmdhd-oc .rmdhd-oc__sub a:hover, .rmdhd-oc .rmdhd-oc__sub a.is-current { color: var(--p) !important; }
.rmdhd-oc .rmdhd-oc__sub a:hover .bi { opacity: 1; transform: translateX(3px); }

/* footer */
.rmdhd-oc__foot { flex: none; display: grid; gap: 14px; padding: 18px 24px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .7); opacity: 0; transform: translateY(10px); transition: opacity .4s ease, transform .5s var(--ease); }
.rmdhd-oc.is-open .rmdhd-oc__foot { opacity: 1; transform: none; transition-delay: .55s; }
.rmdhd-oc a.rmdhd-oc__cta { display: flex; align-items: center; justify-content: center; gap: 10px; height: 52px; border-radius: 999px; background: var(--p); color: #fff !important; font-size: 15px; font-weight: 700; transition: background-color .2s ease; }
.rmdhd-oc a.rmdhd-oc__cta:hover { background: #b62f71; }
.rmdhd-oc__contact { display: grid; gap: 6px; }
.rmdhd-oc__contact a { display: inline-flex; align-items: center; gap: 10px; color: var(--ink-2) !important; font-size: 14px; font-weight: 600; }
.rmdhd-oc__contact .bi { color: var(--p); }
.rmdhd-oc__foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.rmdhd-oc__foot-row > span { font-size: 12px; font-weight: 700; color: var(--muted); }
.rmdhd-oc__socials { display: flex; gap: 8px; }
.rmdhd-oc__socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink-2) !important; font-size: 16px; transition: color .2s ease, border-color .2s ease, background .2s ease, transform .3s var(--ease); }
.rmdhd-oc__socials a:hover { color: #fff !important; border-color: var(--p); background: var(--p); transform: translateY(-2px); }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
	.rmdhd .rmdhd-nav { gap: 24px; }
	.rmdhd .rmdhd-inner { gap: 24px; }
}
@media (max-width: 1140px) {
	.rmdhd .rmdhd-socials { display: none; }
}
@media (max-width: 1024px) {
	.rmdhd { --h: 76px; --h-small: 66px; }
	.rmdhd .rmdhd-menu { display: none; }
	.rmdhd .rmdhd-right { margin-left: auto; gap: 12px; }
	.rmdhd button.rmdhd-burger { display: block !important; }
	.rmdhd a.rmdhd-logo { height: 46px; }
	.rmdhd.is-scrolled a.rmdhd-logo { height: 40px; }
}
@media (max-width: 767px) {
	.rmdhd { --h: 68px; --h-small: 62px; }
	.rmdhd a.rmdhd-logo, .rmdhd.is-scrolled a.rmdhd-logo { height: 38px; }
	.rmdhd a.rmdhd-cta { display: none; }
	.rmdhd-oc__top { padding: 0 14px 0 20px; height: 68px; }
	.rmdhd-oc__body { padding: 18px 20px 20px; }
	.rmdhd-oc__foot { padding: 16px 20px 20px; }
	.rmdhd-oc .rmdhd-oc__link, .rmdhd-oc button.rmdhd-oc__link { font-size: 21px !important; padding: 16px 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
	.rmdhd *, .rmdhd *::before, .rmdhd-oc *, .rmdhd-oc *::before { transition-duration: .01s !important; transition-delay: 0s !important; animation: none !important; }
}
