/* ==========================================================================
   AlNowais Real Estate — main stylesheet
   A faithful port of the original template, made responsive and accessible.
   Measurements and colours are taken from the original main_style.css.
   ========================================================================== */

/* Reset ------------------------------------------------------------------ */

ul, ol, li, h1, h2, h3, h4, h5, h6, pre, form, body, html, p, blockquote,
fieldset, input, figure {
	margin: 0;
	padding: 0;
}

*, *::before, *::after { box-sizing: border-box; }

a img { border: 0; }
img { max-width: 100%; height: auto; }
a { text-decoration: none; color: #0075d9; }
a:hover { color: #0057a1; }

/* Base ------------------------------------------------------------------- */

body {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 14px;
	color: #5a5a5a;
	background: #f5f5f5 url(../img/main-bg.jpg) repeat;
}

h1, h2 {
	font-family: Rosario, "Trebuchet MS", sans-serif;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.2;
	color: #1c1c1c;
	padding: .5em 0 .2em;
}

h3 {
	font-family: Rosario, "Trebuchet MS", sans-serif;
	font-size: 18px;
	color: #1c1c1c;
	padding: .5em 0 .2em;
}

h4, h5, h6 {
	font-family: Rosario, "Trebuchet MS", sans-serif;
	color: #1c1c1c;
	padding: .5em 0 .2em;
}

p { line-height: 1.5; padding: .5em 0; }

ul, ol { padding-left: 1.5em; line-height: 1.5; }
ul li, ol li { padding: .15em 0; }

blockquote {
	font-style: italic;
	border-left: 4px solid #ddd;
	margin: 10px 0;
	padding-left: 20px;
	line-height: 1.5;
	color: #888;
}

table { border-collapse: collapse; width: 100%; }
th, td { padding: 8px 10px; border-bottom: 1px solid #e4e4e4; text-align: left; }

/* Layout ----------------------------------------------------------------- */

.container {
	margin: 0 auto;
	width: 960px;
	max-width: 100%;
}

.block {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, .23);
	margin-bottom: 35px;
}

#header-wrap,
#banner-wrap,
#nav-wrap,
#main-wrap,
#footer-wrap { width: 100%; }

#main-wrap .container,
#footer-wrap .container {
	padding: 30px 40px;
	width: 960px;
}

#content { min-height: 400px; }

/* Accessibility ---------------------------------------------------------- */

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

.skip-link:focus {
	position: fixed;
	top: 8px; left: 8px;
	z-index: 1000;
	width: auto; height: auto;
	margin: 0; padding: 10px 16px;
	clip: auto; clip-path: none;
	background: #fff;
	border-radius: 4px;
	box-shadow: 0 0 0 2px #0075d9;
	color: #1c1c1c;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
	outline: 2px solid #0075d9;
	outline-offset: 2px;
}

/* Header ----------------------------------------------------------------- */

#header-wrap { padding: 23px 0; }

#header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
}

#logo,
#logo a {
	font-size: 30px;
	color: #535353;
	font-family: Rosario, "Trebuchet MS", sans-serif;
	line-height: 1;
}

#logo img,
#logo .custom-logo {
	display: block;
	max-height: 90px;
	width: auto;
}

#header-right {
	display: flex;
	align-items: center;
	gap: 15px;
}

#header-right .wsite-phone { color: #5a5a5a; white-space: nowrap; }

.wsite-social { display: inline-flex; gap: 3px; }

.wsite-social-item {
	display: block;
	width: 29px;
	height: 29px;
	background-image: url(../img/social-icons.png);
	background-repeat: no-repeat;
}

.wsite-social-facebook { background-position:    0 0; }
.wsite-social-twitter  { background-position: -31px 0; }
.wsite-social-linkedin { background-position: -61px 0; }
.wsite-social-mail     { background-position: -92px 0; }
.wsite-social-rss      { background-position: -123px 0; }

/* Navigation ------------------------------------------------------------- */

#nav-wrap .container {
	clear: both;
	position: relative;
	height: 45px;
	background: linear-gradient(to bottom, #ffffff 0%, #f8f8f8 45%, #f1f1f1 78%, #f4f4f4 100%);
	border-radius: 5px;
}

.anre-menu-toggle { display: none; }

.wsite-menu-default {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
}

.wsite-menu-default > li {
	list-style: none;
	position: relative;
	border-right: 2px solid #fff;
}

.wsite-menu-default > li > a {
	display: block;
	font-family: Rosario, "Trebuchet MS", sans-serif;
	color: #262626;
	padding: 0 30px;
	font-size: 14px;
	line-height: 45px;
	text-shadow: 0 -1px 0 #fff;
}

.wsite-menu-default > li:first-child > a { border-radius: 5px 0 0 5px; }

.wsite-menu-default > li > a:hover,
.wsite-menu-default > li > a:focus-visible {
	background: linear-gradient(to bottom, #f7f7f7 0%, #f2f2f2 40%, #e9e9e9 100%);
	color: #262626;
}

.wsite-menu-default > li#active > a {
	background: linear-gradient(to bottom, #c1c1c1 0%, #d6d6d6 35%, #e8e8e8 100%);
}

/* Submenu */

.anre-submenu-toggle {
	position: absolute;
	inset: 0 0 0 auto;
	width: 28px;
	border: 0;
	background: transparent;
	cursor: pointer;
}

.wsite-menu-wrap {
	display: none;
	position: absolute;
	top: 45px;
	left: 0;
	z-index: 50;
	min-width: 200px;
}

.wsite-menu-item-wrap:hover > .wsite-menu-wrap,
.wsite-menu-item-wrap.is-open > .wsite-menu-wrap,
.wsite-menu-item-wrap:focus-within > .wsite-menu-wrap { display: block; }

.wsite-menu {
	list-style: none;
	margin: 0;
	padding: 0;
	border-radius: 5px;
	background: #f7f7f7;
	box-shadow: 0 1px 4px rgba(0, 0, 0, .18);
	overflow: hidden;
}

.wsite-menu li { border-bottom: 1px solid #e4e4e4; padding: 0; }
.wsite-menu li:last-child { border-bottom: 0; }

.wsite-menu li a {
	display: block;
	font-family: Rosario, "Trebuchet MS", sans-serif;
	padding: 8px 14px;
	color: #262626;
}

.wsite-menu li a:hover,
.wsite-menu li a:focus-visible { color: #57b2ff; }

/* Banner: inner pages ---------------------------------------------------- */

#banner-wrap .container { position: relative; }

.short-header-page .wsite-header {
	width: 100%;
	height: 144px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border-radius: 5px;
	margin-bottom: 35px;
	box-shadow: 0 0 3px 0 rgba(0, 0, 0, .23);
}

/* Banner: landing -------------------------------------------------------- */

.landing-page #banner {
	display: flex;
	align-items: stretch;
	min-height: 399px;
}

.landing-page #bannerleft {
	order: 2;
	width: 552px;
	flex: 0 0 552px;
}

.landing-page #bannerleft .wsite-header {
	position: relative;
	width: 100%;
	height: 100%;
	min-height: 399px;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center;
	border-radius: 0 5px 5px 0;
}

.corner {
	position: absolute;
	width: 4px;
	height: 4px;
	background-image: url(../img/corners.png);
}

.corner.tl { top: 0;    left: 0;  background-position: top left; }
.corner.tr { top: 0;    right: 0; background-position: top right; }
.corner.br { bottom: 0; right: 0; background-position: bottom right; }
.corner.bl { bottom: 0; left: 0;  background-position: bottom left; }

.landing-page #bannerright {
	order: 1;
	flex: 1 1 auto;
	display: flex;
	align-items: center;
	padding: 0 0 0 50px;
}

.landing-page #bannerright h1 {
	font-family: Rosario, "Trebuchet MS", sans-serif;
	font-size: 40px;
	line-height: 40px;
	color: #5a5a5a;
	margin: 0;
	padding: 0;
}

.landing-page #bannerright p {
	font-family: Arial, Helvetica, sans-serif;
	color: #373737;
	font-size: 15px;
	line-height: 1.4;
	padding: 20px 0;
}

/* Buttons ---------------------------------------------------------------- */

.wsite-button {
	height: 38px;
	display: inline-block;
	padding: 0 21px 0 0;
	background: url(../img/button.png) no-repeat 100% -115px;
	border: 0;
	cursor: pointer;
}

.wsite-button:hover  { background-position: 100% -153px; }
.wsite-button:active { background-position: 100% -191px; }

.wsite-button-inner {
	color: #fff !important;
	font-family: Rosario, "Trebuchet MS", sans-serif;
	height: 38px;
	line-height: 34px;
	display: block;
	font-size: 15px;
	font-weight: 700;
	text-decoration: none;
	padding: 0 20px 0 41px;
	background: url(../img/button.png) no-repeat 0 -1px;
	text-shadow: 0 -1px 0 #333;
}

.wsite-button:hover  .wsite-button-inner { background-position: 0 -39px; }
.wsite-button:active .wsite-button-inner { background-position: 0 -77px; }

.wsite-button-large {
	height: 45px;
	background: url(../img/button_large.png) no-repeat 100% -136px;
}

.wsite-button-large:hover  { background-position: 100% -181px; }
.wsite-button-large:active { background-position: 100% -226px; }

.wsite-button-large .wsite-button-inner {
	height: 45px;
	line-height: 41px;
	background: url(../img/button_large.png) no-repeat 0 -1px;
}

.wsite-button-large:hover  .wsite-button-inner { background-position: 0 -46px; }
.wsite-button-large:active .wsite-button-inner { background-position: 0 -91px; }

.wsite-button-highlight { background-image: url(../img/button_highlight.png); }
.wsite-button-highlight .wsite-button-inner { background-image: url(../img/button_highlight.png); }
.wsite-button-large.wsite-button-highlight { background-image: url(../img/button_large_highlight.png); }
.wsite-button-large.wsite-button-highlight .wsite-button-inner { background-image: url(../img/button_large_highlight.png); }

/* Projects --------------------------------------------------------------- */

.anre-project-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 30px;
}

.anre-project-card-media img { border-radius: 4px; display: block; }
.anre-project-card-title { font-size: 18px; padding: .6em 0 .2em; }
.anre-project-card-excerpt { padding-top: 0; }

.anre-project-gallery {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
}

.anre-gallery-item {
	display: block;
	border: 1px solid #e4e4e4;
	padding: 4px;
	background: #fff;
}

.anre-gallery-item img { display: block; width: 120px; height: auto; }

.anre-facts { margin: 20px 0; }
.anre-facts th { width: 40%; font-weight: 700; color: #1c1c1c; }

.anre-facilities { columns: 2; column-gap: 40px; }

/* Contact form ----------------------------------------------------------- */

.anre-form { max-width: 560px; }
.anre-form .anre-field { margin-bottom: 14px; }

.anre-form fieldset {
	border: 0;
	padding: 0;
	margin: 0 0 14px;
}

.anre-form legend {
	padding: 10px 0 3px;
	font-weight: 400;
}

.anre-form .anre-name {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}

.anre-form .anre-name legend { flex: 0 0 100%; }

.anre-form .anre-name-part {
	display: flex;
	flex-direction: column-reverse;
	flex: 0 0 220px;
}

.anre-form .anre-name-part label {
	padding: 2px 0 0;
	font-size: 12px;
	color: #6a6a6a;
}

.anre-form label {
	display: block;
	padding: 10px 0 3px;
	font-weight: 400;
}

.anre-required-note { padding-top: 0; }

.anre-form .required { color: #c0392b; }

.anre-form input[type="text"],
.anre-form input[type="email"],
.anre-form textarea {
	font-family: Rosario, "Trebuchet MS", sans-serif;
	font-size: 13px;
	color: #535353;
	background: #fff;
	border: 1px solid #bababa;
	border-radius: 5px;
	box-shadow: inset 1px 1px 3px 1px rgba(100, 100, 100, .1);
	padding: 6px 8px;
	width: 100%;
	max-width: 320px;
}

.anre-form textarea { max-width: 500px; min-height: 160px; }
.anre-form .anre-hp { position: absolute; left: -9999px; }

.anre-form-notice { padding: 10px 14px; border-radius: 4px; margin-bottom: 16px; }
.anre-form-notice.is-success { background: #eaf7ea; border: 1px solid #b6dfb6; color: #2d6b2d; }
.anre-form-notice.is-error   { background: #fdecea; border: 1px solid #f5c2bd; color: #a02d20; }

/* Footer ----------------------------------------------------------------- */

#footer-wrap .container { text-align: right; }
#footer-wrap .anre-copyright { padding: 0; color: #5a5a5a; }

/* Pagination ------------------------------------------------------------- */

.anre-pagination { margin-top: 30px; }
.anre-pagination .page-numbers { padding: 4px 10px; }
.anre-pagination .current { color: #1c1c1c; font-weight: 700; }

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1020px) {
	.container { width: 100%; }

	#header-wrap .container,
	#nav-wrap .container,
	#banner-wrap .container {
		width: auto;
		margin: 0 16px;
	}

	#main-wrap .container,
	#footer-wrap .container {
		width: auto;
		margin: 0 16px 35px;
		padding: 24px 24px;
	}
}

@media (max-width: 860px) {
	.landing-page #banner { display: block; min-height: 0; }

	.landing-page #bannerleft {
		width: auto;
		flex: none;
	}

	.landing-page #bannerleft .wsite-header {
		min-height: 260px;
		border-radius: 5px 5px 0 0;
	}

	.landing-page #bannerright { padding: 24px; display: block; }
	.landing-page #bannerright h1 { font-size: 30px; line-height: 34px; }
}

@media (max-width: 760px) {
	#header { flex-direction: column; align-items: flex-start; gap: 14px; }
	#logo img, #logo .custom-logo { max-height: 64px; }

	#nav-wrap .container {
		height: auto;
		background: #f7f7f7;
		padding: 0;
	}

	.anre-menu-toggle {
		display: block;
		width: 100%;
		height: 45px;
		border: 0;
		background: transparent;
		cursor: pointer;
		text-align: left;
		padding: 0 16px;
	}

	.anre-menu-toggle-bars,
	.anre-menu-toggle-bars::before,
	.anre-menu-toggle-bars::after {
		display: block;
		width: 22px;
		height: 2px;
		background: #262626;
		position: relative;
	}

	.anre-menu-toggle-bars::before,
	.anre-menu-toggle-bars::after {
		content: "";
		position: absolute;
	}

	.anre-menu-toggle-bars::before { top: -7px; }
	.anre-menu-toggle-bars::after  { top:  7px; }

	.wsite-menu-default { display: none; flex-direction: column; }
	#site-navigation.is-open .wsite-menu-default { display: flex; }

	.wsite-menu-default > li {
		border-right: 0;
		border-top: 1px solid #e4e4e4;
	}

	.wsite-menu-default > li > a { padding: 0 16px; }

	.anre-submenu-toggle {
		inset: 0 0 auto auto;
		width: 45px;
		height: 45px;
	}

	.anre-submenu-toggle::after {
		content: "";
		display: block;
		width: 8px; height: 8px;
		margin: 0 auto;
		border-right: 2px solid #262626;
		border-bottom: 2px solid #262626;
		transform: rotate(45deg) translate(-2px, -2px);
	}

	.wsite-menu-wrap { position: static; min-width: 0; }
	.wsite-menu-item-wrap:hover > .wsite-menu-wrap { display: none; }
	.wsite-menu-item-wrap.is-open > .wsite-menu-wrap { display: block; }
	.wsite-menu { box-shadow: none; border-radius: 0; background: #fff; }
	.wsite-menu li a { padding: 10px 28px; }

	.short-header-page .wsite-header { height: 110px; }
	.anre-facilities { columns: 1; }
	#footer-wrap .container { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; }
}
