/* ===================================================================
   Modern Minimal header/menu redesign + popup fix
   Scoped under .modern-header so it can't clash with the legacy
   theme CSS in style.css / responsive.css.
   =================================================================== */

.modern-header {
	--mh-ink: #241512;
	--mh-maroon: #8b2d28;
	--mh-maroon-dark: #6e211d;
	--mh-gold: #f2a900;
	--mh-cream: #faf5ec;
	--mh-line: #e6dccd;
	--mh-muted: #6f6259;
	position: relative;
	z-index: 9999;
}

/* ---- utility bar ---- */
.modern-header .mh-topbar {
	background: var(--mh-cream);
	border-bottom: 1px solid var(--mh-line);
}

.modern-header .mh-topbar-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 6px 24px;
	padding: 9px 15px;
}

.modern-header .mh-contact {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
}

.modern-header .mh-contact a {
	color: var(--mh-ink);
	font-size: 12.5px;
	font-weight: 500;
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	white-space: nowrap;
}

.modern-header .mh-contact a i {
	color: var(--mh-maroon);
	font-size: 12px;
}

.modern-header .mh-contact a:hover {
	color: var(--mh-maroon);
}

.modern-header .mh-topbar-right {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.modern-header .mh-brochure,
.modern-header .mh-payment {
	font-size: 12.5px;
	font-weight: 600;
	color: var(--mh-maroon);
	text-decoration: none;
	padding-bottom: 1px;
	border-bottom: 1px solid transparent;
	white-space: nowrap;
}

.modern-header .mh-brochure:hover,
.modern-header .mh-payment:hover {
	border-bottom-color: var(--mh-maroon);
}

.modern-header .mh-social {
	list-style: none;
	display: flex;
	gap: 9px;
	margin: 0;
	padding: 0;
}

.modern-header .mh-social li a {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	border: 1px solid var(--mh-line);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mh-ink);
	font-size: 12px;
	transition: background .2s ease, border-color .2s ease, color .2s ease;
}

.modern-header .mh-social li a:hover {
	background: var(--mh-maroon);
	border-color: var(--mh-maroon);
	color: #fff;
}

/* ---- main row ---- */
.modern-header .mh-mainrow {
	background: var(--mh-maroon);
}

.modern-header .mh-mainrow .container {
	max-width: 1320px;
}

.modern-header .mh-mainrow.stricky-fixed {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 9999;
	box-shadow: 0 6px 22px rgba(36, 21, 18, .10);
	animation: mh-slide .4s ease-out;
}

@keyframes mh-slide {
	from {
		transform: translateY(-100%);
	}

	to {
		transform: translateY(0);
	}
}

.modern-header .mh-row {
	display: flex;
	align-items: center;
	gap: 18px;
	padding: 12px 15px;
}

.modern-header .mh-logo {
	flex: none;
}

.modern-header .mh-logo img {
	height: 68px;
	width: auto;
	display: block;
}

.modern-header .main-menu {
	flex: 1;
	min-width: 0;
	float: none;
}

.modern-header .navigation {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	margin: 0;
	padding: 0;
}

.modern-header .navigation li {
	list-style: none;
}

.modern-header .navigation li a {
	color: #f5e9e4;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0;
	text-transform: none;
	padding: 10px 14px;
	border-bottom: 2px solid transparent;
	font-family: 'Montserrat', sans-serif;
}

.modern-header .navigation li a:hover {
	color: var(--mh-gold);
	border-bottom-color: var(--mh-gold);
}

.modern-header .navigation > li > ul {
	border-top: 2px solid var(--mh-gold);
	box-shadow: 0 12px 30px rgba(36, 21, 18, .35);
}

.modern-header .navigation > li > ul > li > a {
	color: var(--mh-ink);
	text-transform: none;
	font-size: 14px;
	padding: 11px 24px;
	border-bottom: none;
}

.modern-header .navigation > li > ul > li:hover > a {
	background: var(--mh-cream);
	color: var(--mh-maroon);
}

/* the theme's own dropdown caret (js-injected .dropdown-btn) —
   just repositioned/recolored for the tighter nav, not duplicated */
.modern-header .navigation li.dropdown > a {
	padding-right: 26px;
}

.modern-header .dropdown-btn {
	top: 50% !important;
	right: 0 !important;
	transform: translateY(-50%);
}

.modern-header .dropdown-btn span {
	color: #f5e9e4;
	font-size: 11px !important;
}

.modern-header .navigation li.dropdown:hover .dropdown-btn span {
	color: var(--mh-gold);
}

.modern-header .mh-cta {
	flex: none;
	display: flex;
	align-items: center;
	gap: 12px;
}

.modern-header .mh-register {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #fff;
	border: 1.5px solid rgba(255, 255, 255, .7);
	border-radius: 24px;
	padding: 9px 16px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.modern-header .mh-register:hover {
	background: #fff;
	border-color: #fff;
	color: var(--mh-maroon);
}

.modern-header .mh-enquiry {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .03em;
	text-transform: uppercase;
	color: #2b1a10;
	background: var(--mh-gold);
	border-radius: 24px;
	padding: 10px 20px;
	text-decoration: none;
	white-space: nowrap;
	transition: background .2s ease;
}

.modern-header .mh-enquiry:hover {
	background: #d99400;
	color: #2b1a10;
}


.modern-header .navbar-header {
	display: none;
}

/* ---- tablet / mobile ---- */
@media (max-width: 1199px) {
	.modern-header .navigation li a {
		padding: 11px 10px;
		font-size: 13px;
	}
}

@media (max-width: 991px) {
	.modern-header .mh-mainrow.stricky-fixed {
		position: relative;
		animation: none;
		box-shadow: none;
	}

	.modern-header .mh-row {
		flex-wrap: wrap;
	}

	.modern-header .navbar-header {
		display: inline-block;
	}

	.modern-header .navbar-toggle .icon-bar {
		background: #ffffff !important;
	}

	.modern-header .mh-cta {
		display: none;
	}

	.modern-header .mh-topbar-right .mh-brochure {
		display: none;
	}
}

@media (max-width: 767px) {
	.modern-header .mh-topbar-inner {
		justify-content: center;
		text-align: center;
	}

	.modern-header .mh-contact {
		justify-content: center;
	}
}

/* ===================================================================
   Popup fix — dimmed backdrop, centered, real close button.
   Vanilla-JS driven (see index.html), no Bootstrap modal dependency.
   =================================================================== */

#imageModal {
	display: none;
	position: fixed;
	inset: 0;
	z-index: 999999;
	align-items: center;
	justify-content: center;
}

#imageModal.mh-open {
	display: flex;
}

#imageModal .mh-backdrop {
	position: absolute;
	inset: 0;
	background: rgba(20, 10, 8, .62);
}

#imageModal .modal-dialog {
	position: relative;
	z-index: 1;
	max-width: 420px;
	width: 92%;
	margin: 0;
}

#imageModal .modal-content {
	position: relative;
	border: none;
	background: transparent;
	box-shadow: 0 25px 60px rgba(0, 0, 0, .4);
}

#imageModal .btn-close {
	position: absolute;
	top: -16px;
	right: -16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--mh-maroon, #8b2d28);
	color: #fff;
	border: 3px solid #fff;
	font-size: 14px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
	font-weight: 700;
	z-index: 2;
}

#imageModal .btn-close:hover {
	background: var(--mh-maroon-dark, #6e211d);
}
