/* ============================================================
   Site header (the top bar in Views/Shared/_Layout.cshtml)
   The coloured banner under it has its own part at the end of this file.
   A lighter look that matches the home page. The template's style.css is not changed:
   every rule here starts with #header-container so it wins over the template's own.
   Sides are written as start / end, so the same rules work in Arabic.

   The header has two states, switched by the template's script (js/custom.js):
     .transparent-header  at the top of the page, see-through over the coloured banner
     .cloned              after scrolling, a white bar that stays at the top
   ============================================================ */

#header-container {
	--rq-brand: #0f7a86;
	--rq-brand-dark: #0b5563;
	--rq-brand-soft: #e1f3f2;
	--rq-ink: #0c2d33;
}

/* ---------- The bar ---------- */
#header-container #header { box-shadow: 0 6px 24px rgba(6, 52, 63, 0.08); }

#header-container.transparent-header #header {
	box-shadow: none;
	border-bottom: none;
}

/* No dividing lines between logo, menu and buttons */
#header-container #logo {
	border: none;
	padding-inline: 0 14px;
	margin-inline: 0 10px;
}

#header-container #header .header-widget { border: none; }

/* ---------- Menu links ---------- */
#header-container #navigation > ul > li { margin: 0 2px; border-radius: 999px; }

#header-container #navigation > ul > li > a {
	padding: 8px 14px;
	border-radius: 999px;
	font-weight: 600;
	color: var(--rq-ink);
	transition: background-color 0.2s, color 0.2s;
}

#header-container #navigation > ul > li:hover > a,
#header-container #navigation > ul > li > a.current {
	background-color: var(--rq-brand-soft);
	color: var(--rq-brand);
}

#header-container.transparent-header #navigation > ul > li > a { color: #fff; }

#header-container.transparent-header #navigation > ul > li:hover > a,
#header-container.transparent-header #navigation > ul > li > a.current {
	background-color: rgba(255, 255, 255, 0.16);
	color: #fff;
}

/* The small arrow after a link that opens a menu: just the arrow, no grey box */
#header-container #navigation > ul > li > a:after,
#header-container #navigation > ul > li:hover > a:after,
#header-container #navigation > ul > li > a.current:after {
	background: none;
	color: inherit;
	opacity: 0.75;
	width: auto;
	margin: 0;
	margin-inline-start: 3px;
	top: 2px;
}

/* ---------- Drop-down menus: white cards ---------- */
body #header-container #navigation ul ul {
	background-color: #fff;
	border-radius: 14px;
	padding: 8px;
	box-shadow: 0 18px 44px rgba(6, 52, 63, 0.16);
}

/* The little pointer above a menu is not needed with the card look */
#header-container #navigation ul ul:after { display: none; }

#header-container #navigation ul ul li {
	width: 214px;
	margin: 0;
	border-radius: 9px;
}

body #header-container #navigation > ul ul li a,
body #header-container #navigation > ul li:hover ul a {
	color: #3b565b;
	font-weight: 500;
	padding: 8px 12px !important;
	padding-inline-end: 34px !important;
	border-radius: 9px;
	text-align: start;
}

body #header-container #navigation > ul ul li:hover > a {
	background-color: var(--rq-brand-soft);
	color: var(--rq-brand);
}

/* Arrow on a row that opens another menu */
body #header-container #navigation > ul ul li a:after,
body #header-container #navigation > ul li:hover ul li a:after,
body #header-container #navigation > ul li:hover ul li:hover > a:after {
	background: none !important;
	color: #9db4b6 !important;
	left: auto;
	right: auto;
	inset-inline-end: 10px;
	top: 10px;
}

body #header-container #navigation > ul li:hover ul li:hover > a:after { color: var(--rq-brand) !important; }

[dir="rtl"] body #header-container #navigation > ul ul li a:after,
[dir="rtl"] body #header-container #navigation > ul ul li:hover a:after { transform: scaleX(-1); }

/* ---------- Log In / Register button ---------- */
#header-container .header-widget .log-in-button {
	display: inline-block;
	margin: 0;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 700;
	background-color: var(--rq-brand);
	color: #fff;
	box-shadow: 0 8px 18px rgba(15, 122, 134, 0.3);
}

#header-container .header-widget .log-in-button i { color: inherit; }

#header-container .header-widget .log-in-button:hover {
	background-color: #0c6975;
	color: #fff;
}

#header-container.transparent-header .header-widget .log-in-button {
	background-color: #fff;
	color: var(--rq-brand-dark);
	box-shadow: 0 8px 20px rgba(6, 52, 63, 0.2);
}

#header-container.transparent-header .header-widget .log-in-button:hover {
	background-color: #fff;
	color: var(--rq-brand);
}

/* ---------- Phones and tablets ---------- */
@media (max-width: 1099px) {
	/* Keep the bar over the coloured banner (the template drops it onto white, where the white logo cannot be seen) */
	#header-container.transparent-header { position: absolute !important; }

	/* Menu button. Its three lines are placed from the left by the template, so it is kept
	   left-to-right inside; otherwise they slide out of the button in Arabic. */
	#header-container .mmenu-trigger { direction: ltr; text-align: left; }

	#header-container.transparent-header .mmenu-trigger {
		background-color: rgba(255, 255, 255, 0.16);
		border-radius: 12px;
	}

	#header-container.transparent-header .hamburger-inner,
	#header-container.transparent-header .hamburger-inner:before,
	#header-container.transparent-header .hamburger-inner:after { background-color: #fff; }
}

@media (max-width: 768px) {
	/* Here the button shows only its icon */
	#header-container .header-widget .log-in-button,
	#header-container.transparent-header .header-widget .log-in-button {
		width: 46px;
		height: 46px;
		padding: 0;
		line-height: 46px;
		border-radius: 12px;
		text-align: center;
	}

	#header-container .header-widget .log-in-button i,
	#header-container.transparent-header .header-widget .log-in-button i {
		background: none;
		color: inherit;
		margin: 0;
		top: 3px;
	}
}

/* ============================================================
   The coloured banner under the header (the "Service" box in _Layout.cshtml)
   Shown on every page that has no top part of its own (Login, Register ...).
   Same deep blue as the top of the home page, instead of the template's flat colour.
   ============================================================ */

/* The colour itself */
#wrapper .intro-banner.dark-overlay:after {
	background:
		radial-gradient(700px 320px at 88% 0%, rgba(255, 138, 101, 0.30), transparent 65%),
		radial-gradient(600px 300px at 0% 100%, rgba(72, 205, 255, 0.22), transparent 60%),
		linear-gradient(135deg, #06343f 0%, #0c6975 55%, #0f7a86 100%);
}

/* A light pattern of dots over it */
#wrapper .intro-banner.dark-overlay:before {
	opacity: 1;
	background: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1.5px);
	background-size: 26px 26px;
	-webkit-mask-image: linear-gradient(180deg, #000, transparent 90%);
	mask-image: linear-gradient(180deg, #000, transparent 90%);
	pointer-events: none;
}

/* Even space on both sides (the template pushes it 20px to one side), and room under the header */
#wrapper .intro-banner.big-padding { padding: 112px 0 6px; }

#wrapper .intro-banner .sidebar-widget { margin-bottom: 34px; }

#wrapper .intro-banner .sidebar-widget h3 {
	margin-bottom: 14px;
	font-size: 18px;
	font-weight: 700;
}

/* The Service box: rounder, with a soft shadow */
#wrapper .intro-banner .bootstrap-select.btn-group > .dropdown-toggle {
	border-radius: 14px;
	box-shadow: 0 12px 28px rgba(6, 52, 63, 0.22);
}

#wrapper .intro-banner .bootstrap-select .dropdown-menu { border-radius: 14px; }

/* ============================================================
   Small pieces used on several pages
   ============================================================ */

/* The reminder that Raqmi is not responsible for payment or delivery (Views/Shared/_Notice.cshtml) */
.rq-notice {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0 0 18px;
	padding: 13px 16px;
	border-radius: 12px;
	border-inline-start: 4px solid #e0a800;
	background: #fffaeb;
	text-align: start;
}

.rq-notice i { flex: none; margin-top: 3px; font-size: 18px; color: #b88700; }
.rq-notice p { margin: 0; font-size: 14.5px; line-height: 1.7; color: #5c4a12; }
.rq-notice a { font-weight: 700; color: #0f7a86; white-space: nowrap; }
.rq-notice a:hover { color: #0b5563; }

/* The lines above the Register button */
.rq-agree { margin: 0 0 12px; font-size: 14px; line-height: 1.7; color: #808080; }
.rq-agree a { font-weight: 700; color: #0f7a86; }

/* ---------- The bell with nothing under it yet ---------- */
.header-notifications-content ul li.rq-bell-empty { padding: 26px 20px; text-align: center; color: #8ea5a8; font-size: 15px; }

/* ---------- The logo in the top bar (drawn by Views/Shared/_Logo.cshtml, styled in logo.css) ---------- */
#header-container #logo a { display: inline-flex; align-items: center; height: 100%; text-decoration: none; }
#header-container #logo .rq-logo { font-size: 32px; }

/* When the page is scrolled the template shows a second, white copy of the bar: there the logo is teal */
#header-container.cloned #logo .rq-logo { color: #0b5563; }

@media (max-width: 768px) {
	#header-container #logo .rq-logo { font-size: 26px; }
}

/* ---------- The numbers on the bell and the envelope: coral, so they stand out on the teal bar ---------- */
#header-container .header-notifications-trigger span { background-color: #ff8a65; color: #3a1408; }

/* ---------- The "Beta" tag inside a menu link (its look is in project.css; the menu does not load that file) ---------- */
#navigation .rq-beta {
	display: inline-block;
	margin-inline-start: 4px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #ff8a65;
	color: #3a1408;
	font-size: 10.5px;
	font-weight: 800;
	line-height: 1.5;
	vertical-align: middle;
}
