/* Red Door – Under Construction Banner
 * Fonts follow the site's Elementor global typography when available. */

.rdcb {
	--rdcb-bg: #8B1E1E;
	--rdcb-text: #FFFFFF;
	--rdcb-accent: #F4EDE4;
	--rdcb-heading-font: var(--e-global-typography-primary-font-family, "Playfair Display", Georgia, "Times New Roman", serif);
	--rdcb-body-font: var(--e-global-typography-text-font-family, inherit);

	position: relative;
	z-index: 99999;
	box-sizing: border-box;
	width: 100%;
	color: var(--rdcb-text);
	font-family: var(--rdcb-body-font);
	line-height: 1.4;
	-webkit-font-smoothing: antialiased;
}
.rdcb *, .rdcb *::before, .rdcb *::after { box-sizing: border-box; }

/* ---------- Bar layout ---------- */
.rdcb--bar {
	background: var(--rdcb-bg);
	/* subtle "under construction" stripe along the bottom edge */
	border-bottom: 4px solid transparent;
	border-image: repeating-linear-gradient(-45deg, var(--rdcb-accent) 0 10px, transparent 10px 20px) 4;
}
.rdcb--sticky { position: sticky; top: 0; }
body.admin-bar .rdcb--sticky { top: 32px; }
@media (max-width: 782px) { body.admin-bar .rdcb--sticky { top: 46px; } }

.rdcb--bar .rdcb__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 12px 56px 12px 16px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 6px 16px;
	text-align: center;
}
.rdcb--bar .rdcb__eyebrow { display: none; }
.rdcb--bar .rdcb__heading {
	font-family: var(--rdcb-heading-font);
	font-size: 18px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}
.rdcb--bar .rdcb__message { font-size: 15px; opacity: .92; }

/* ---------- Shared pieces ---------- */
.rdcb__actions {
	display: inline-flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 8px 16px;
}
.rdcb .rdcb__btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 18px;
	background: var(--rdcb-accent);
	color: var(--rdcb-bg);
	border-radius: 999px;
	font-weight: 700;
	font-size: 15px;
	letter-spacing: .02em;
	text-decoration: none;
	white-space: nowrap;
	transition: transform .15s ease, box-shadow .15s ease;
}
.rdcb .rdcb__btn:hover,
.rdcb .rdcb__btn:focus-visible {
	color: var(--rdcb-bg);
	transform: translateY(-1px);
	box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}
.rdcb .rdcb__link {
	color: var(--rdcb-text);
	font-size: 14px;
	text-decoration: underline;
	text-underline-offset: 3px;
	opacity: .9;
}
.rdcb .rdcb__link:hover { color: var(--rdcb-text); opacity: 1; }

.rdcb__close {
	position: absolute;
	top: 50%;
	right: 12px;
	transform: translateY(-50%);
	width: 34px;
	height: 34px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: inherit;
	font-size: 24px;
	line-height: 1;
	cursor: pointer;
	opacity: .8;
}
.rdcb__close:hover, .rdcb__close:focus-visible { opacity: 1; background: rgba(255, 255, 255, .15); }

/* ---------- Hero / pop-up layout ---------- */
.rdcb--hero {
	position: fixed;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
}
.rdcb__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 12, 10, .55);
	backdrop-filter: blur(3px);
}
.rdcb--hero .rdcb__inner {
	position: relative;
	width: 100%;
	max-width: 560px;
	padding: 48px 32px 40px;
	background: var(--rdcb-bg);
	border-radius: 6px;
	box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	text-align: center;
	animation: rdcb-in .35s ease-out both;
}
/* striped top edge */
.rdcb--hero .rdcb__inner::before {
	content: "";
	position: absolute;
	top: 0; left: 0; right: 0;
	height: 8px;
	border-radius: 6px 6px 0 0;
	background: repeating-linear-gradient(-45deg, var(--rdcb-accent) 0 12px, transparent 12px 24px);
	opacity: .9;
}
.rdcb--hero .rdcb__eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12px;
	letter-spacing: .25em;
	text-transform: uppercase;
	opacity: .85;
}
.rdcb--hero .rdcb__eyebrow span { display: block; width: 28px; height: 1px; background: currentColor; }
.rdcb--hero .rdcb__heading {
	font-family: var(--rdcb-heading-font);
	font-size: clamp(30px, 6vw, 42px);
	font-weight: 600;
	line-height: 1.1;
}
.rdcb--hero .rdcb__message { font-size: 16px; max-width: 420px; opacity: .92; }
.rdcb--hero .rdcb__actions { flex-direction: column; margin-top: 6px; }
.rdcb--hero .rdcb__btn { padding: 12px 28px; font-size: 18px; }
.rdcb--hero .rdcb__close { top: 18px; right: 18px; transform: none; z-index: 1; }

@keyframes rdcb-in {
	from { opacity: 0; transform: translateY(12px) scale(.98); }
	to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
	.rdcb--hero .rdcb__inner { animation: none; }
	.rdcb .rdcb__btn { transition: none; }
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
	.rdcb--bar .rdcb__inner { padding: 10px 48px 10px 16px; }
	.rdcb--bar .rdcb__heading { font-size: 16px; width: 100%; }
	.rdcb--bar .rdcb__message { font-size: 14px; }
	.rdcb--hero .rdcb__inner { padding: 44px 20px 32px; }
}

.rdcb.is-hidden { display: none !important; }
