/*
Theme Name: Derwish
Theme URI: https://derwish.com
Author: LocalOwl Digital
Author URI: https://www.localowl.digital/
Text Domain: derwish
*/

/* import font styles */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@200;300;400;500;600;900&display=swap");

/* colors */
:root {
  --black: #000;
  --white: #fff;
  --graylight: #f9f9f9;
  --borderlight: #f3f3f3;
  --green: #3c896d;
  --bg-color: #e4e2dd;
}

* {
  font-family: "Montserrat", sans-serif;
  transition: all 0.5s;
}

p {
  font-size: 18px;
  font-weight: 200;
}

@media (min-width: 1200px) {
  .container {
    width: 1156px !important;
  }
  .rl-basicmasonry-gallery.derwish-gallery-lightbox .rl-gallery-item img {
    min-height: 200px;
  }
}

a {
  text-decoration: none;
}
a:hover {
  color: var(--green) !important;
}
.text-white * {color: white;}
/* header */
.bg-title-section {
  padding: 60px;
  display: flex;
  align-items: flex-end;
  height: 445px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.bg-title-section h1 {
  font-size: 48pt;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 6.2pt;
  position: relative;
  z-index: 0;
}

.bg-title-section h1::after {
  width: 60px;
  height: 4px;
  display: block;
  top: 33px;
  position: absolute;
  left: -90px;
  content: "";
  background-color: white;
}

div#block-12 a:hover, a.glink:hover,
ul#menu-main-menu li a:hover {color: white!important;}

.color-sec-header {
  height: 445px;
  background-color: var(--green);
  width: 130%;
  transform: translate(10px, 50px);
  transition: 1s all;
}
.header-page .relative {
  z-index: -1;
}
div#show-desc {
  font-weight: 200;
  font-size: 14px;
}
.menu-header {
  height: 100%;
  align-items: center;
  margin: auto;
  display: grid;
}
.blog-desc-canvas,
.blog-desc {
  font-weight: 300;
  font-size: 14px;
  text-transform: uppercase;
  margin-top: 5px;
  margin-bottom: 20px;
	color: white;
}
/* books image homepage */
.wp-block-image figure img {
    max-height: 400px;
    min-height: 400px;
    object-fit: cover;
}

.logo-text {
  text-transform: uppercase;
  color: var(--green);
  font-weight: 500;
  font-size: 26px;
  padding: 10px 0 !important;
  font-weight: 600;
}
.rt-container,
.rt-container-fluid,
.header-page .col-md-9 {
  z-index: -1;
}

/* sticky header */
header#navbar {
  position: fixed;
  width: 100%;
  background: black;
  padding: 15px 0;
  z-index: 9999;
}
span.menu-item-description,
.tss-meta-info,
.rating-wrapper,
.header.sticky .blog-desc {
  display: none !important;
}

.footer-social-media ul {
  flex-wrap: nowrap;
}
.wpml-ls-legacy-list-horizontal {
  padding: 0;
}

/* language */
.wpml-ls-legacy-list-horizontal ul li a {
  font-weight: 200;
}

/* footer */
footer.site-footer {background: black!important;}
div#main-page{
  background-image: linear-gradient(to bottom, #000000cf, #000000cf),
    url(/wp-content/uploads/2023/06/bg-derwish.jpeg);
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-size: cover;
}

.header-page .container .row > * {z-index: 99!important;}
.header-page.pt-5.pb-5 .container.p-5 {padding-top: 100px;}
footer.site-footer p,
footer.site-footer a {
  color: var(--white);
  font-size: 14px !important;
}

/* menu */
ul#menu-main-menu {
  list-style: none;
  padding: 0;
}
ul#menu-main-menu li a {
  padding-right: 0;
  padding-left: 0;
  font-size: 18px;
  font-weight: 300;
  text-transform: uppercase;
}
ul#menu-main-menu li a:hover {
  color: var(--white);
}
.menu-right-to-left {
  padding-left: 80px;
}

/* mobile css */
/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (max-width: 992px) {
  .color-sec-header,
  .blog-desc, div#show-desc,
  .bg-title-section h1::after {
    display: none;
  }
  .row {width: 100%;margin: 0;}
  ul#menu-main-menu li a {font-size: 16px;}
  .bg-title-section {height: 300px;align-items: center;}
	.container.menu-header-section {
		height: 60px;
		display: flex;
	}
	.wp-block-image figure img {
		max-height: unset; 
    	min-height: unset;
	}
  nav {width: 80% !important;}
  .menu-right-to-left {
    padding-left: 15px;
  }
  .container-fluid.menu-header-section,
  header#navbar {
    width: 100%;
    display: flex;
  }
  .bg-title-section {
    width: unset !important;
  }
  .header.sticky .logo-text,
  .logo-text {
    font-size: 16px;
  }
  .bg-title-section h1 {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 0;
    text-align: center;
  }
  .row.p-5.pt-2.pb-2 {
    padding: 5px !important;
  }
  .bg-title-section {
    padding: 20px;
    width: 100% !important;
    display: flex;
    justify-content: center;
  }
  header#navbar,
  .header-page.pt-5.pb-5 .container.p-5 {
    padding: 0px !important;
  }
}

input#navcheck {
  position: fixed;
  opacity: 0;
}

.menu-header label {
  position: relative;
  margin: 0;
  padding: 0;
  cursor: pointer;
}
label::before {
  position: relative;
  z-index: 1;
  background-color: rgba(10, 38, 57, 0.75);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
label .burger {
  position: relative;
  width: 2em;
  height: 2em;
  margin: 0;
  padding: 0;
  transition: opacity 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
label .burger::before,
label .burger .bar,
label .burger::after {
  position: relative;
  left: 0;
  display: block;
  width: 100%;
  height: 12%;
  background: black;
  content: "";
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 99999;
  display: flex;
  flex-flow: column nowrap;
  justify-content: center;
  align-items: flex-start;
  transform: translate3d(0, 0, 0);

  /* material acceleration */
/*   transform: translateX(-100%);
  will-change: transform;
  transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
  width: 60%; */
  background: linear-gradient(to right, #3c896dc4, #3c896dc4),
    url(/wp-content/uploads/2023/06/derwish-main-image.jpg);
}
@media (min-width: 40em) {
  nav::before {
    width: 60em;
  }
}
nav a {
  color: white;
  text-decoration: none;
  font-weight: 500;
}
main {
  overflow: hidden;
}
main .content {
  transform: translate3d(0, 0, 0);
  /* material acceleration */
  will-change: transform, filter;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.default-image .wp-block-image figure img {
    min-height: auto !important;
    min-width: auto !important;
    object-fit: unset;
}

[id="navcheck"]:checked + label::before {
  opacity: 1;
  pointer-events: auto;
}
nav.hidden,
[id="navcheck"]:checked ~ nav.hidden { 
	transform: translateX(-100%)!important;
  will-change: transform;
  transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
  width: 60%;
}
[id="navcheck"]:checked ~ nav.show {
	transform: translateX(0);!important;
	will-change: transform;
    transition: transform 2s cubic-bezier(0.19, 1, 0.22, 1);
    width: 60%;
}
[id="navcheck"]:checked ~ nav::before {
  transform: skewX(0deg) translateX(0);
}
/* [id="navcheck"]:checked ~ nav a {
  transform: translateX(0);
} */
[id="navcheck"]:checked ~ main .content {
  transform: translateX(3em);
  transform-origin: left center;
  filter: blur(2px);
}

/* helper */
.visuallyhidden {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: 0px;
  overflow: overlay;
  padding: 0;
  position: relative;
  width: 1px;
  border-bottom: 3px solid var(--green);
  color: white;
}

.rl-basicmasonry-gallery.derwish-gallery-lightbox .rl-gallery-item img {
  min-height: 250px;
  object-fit: cover;
}
#closetoggle {
  position: absolute;
  right: 30px;
  top: 10%;
  cursor: pointer;
}


