/*
Theme Name: Alam Alqimma Theme
Theme URI: https://example.com/
Author: Your Name
Author URI: https://example.com/
Description: A custom WordPress theme for Alam Alqimma.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: alamalqimma
*/

:root {
	--black: #000;
	--white: #fff;
	--brown: #bc926e;
}
html {
	scroll-behavior: smooth;
}
body {
	font-family: "Roboto", sans-serif;
	font-size: 16px;
}
img {
	max-width: 100%;
	height: auto;
}
ul {
	list-style: none;
	padding: 0;
	margin: 0;
}
a,
a:hover,
a:focus,
a:active {
	text-decoration: none;
}
header.header {
	padding: 20px 0;
	
}

header .navbar-nav {
    background-color: #043335;
}

header .navbar-nav li a {
    color: #ffffff !important; /* النص أبيض */
}

/* الهوفر */
header .navbar-nav li a:hover,
header .navbar-nav li a:focus {
  background-color: #9D724F; /* اللون الجديد */
  color: #fff;               /* النص يبقى أبيض */
}

/* إنجليزي: الخلفية يمين أعلى */
html[lang^="en"] body {
  background-image: url('https://alam-alqimma.com/wp-content/uploads/2025/08/Asset-1@2x.png');
  background-repeat: no-repeat;
  background-position: right top;
  background-attachment: fixed;
  background-size: auto; /* حجم الصورة الطبيعي */
}

/* عربي: الخلفية يسار أعلى */
html[lang^="ar"] body {
  background-image: url('https://alam-alqimma.com/wp-content/uploads/2025/08/Asset-2.png');
  background-repeat: no-repeat;
  background-position: left top;
  background-attachment: fixed;
  background-size: auto;
}

/* حل لمشكلة iOS مع background-attachment: fixed (إن لزم) */
@supports (-webkit-touch-callout: none) {
  html[lang^="en"] body,
  html[lang^="ar"] body {
    background-attachment: scroll; /* جرّبه إذا اختفت الخلفية على الآيفون فقط */
  }
}





.navbar-brand img {
	max-width: 400px;
}
.navbar-nav {
	border: 1px solid var(--black);
	padding: 10px 20px;
	border-radius: 30px;
}
.navbar-nav li a {
	margin-left: 20px;
	color: var(--black);
	font-weight: 500;
	transition: 0.2s all linear;
}
.navbar-nav li a:hover {
	color: var(--brown);
}
.navbar-nav li:first-child a {
	margin-left: 0;
}
.navbar-nav li.divider a {
	border-right: 1px solid var(--black);
	height: 20px;
	margin: 0 20px 0 30px;
}
.navbar-nav li:last-child a,
.navbar-nav li:nth-last-child(2) a {
	margin-left: 20px;
}
.navbar-nav li.lang-item a {
	text-transform: uppercase;
}
.navbar-nav li.lang-item a.current {
	display: none;
}
.home_slider .carousel-caption {
	right: 0;
	bottom: 50%;
	left: 0;
	text-align: left;
	padding-top: 0;
	padding-bottom: 0;
	transform: translate(0, 50%);
}
.home_slider .carousel-caption h3 {
	font-size: 3rem;
}
.home_slider .carousel-control-prev,
.home_slider .carousel-control-next {
	opacity: 1;
	width: 50px;
	height: 50px;
	top: 50%;
	bottom: unset;
	border: 2px solid var(--white);
	border-radius: 100%;
	padding: 10px;
	margin: 0 10px;
}
.home_slider .carousel-control-prev svg,
.home_slider .carousel-control-next svg {
	fill: var(--white);
}
section.home_partners {
	padding: 50px 0;
}
.home_partners h2 {
	font-size: 22px;
	font-weight: 700;
}
.partner_image {
	width: 100%;
	height: 90px;
	overflow: hidden;
}
.partner_image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border: 1px solid var(--black);
}
.owl-dots {
	margin-top: 20px;
	text-align: center;
}
.owl-dots .owl-dot {
	width: 15px;
	height: 15px;
	background: #ccc !important;
	border-radius: 100%;
	margin: 0 5px;
}
.owl-dots .owl-dot.active {
	background: var(--black) !important;
}
section.home_about {
	padding: 50px 0;
}
.home_about h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 20px 0;
}
section.home_services {
	padding: 50px 0;
}
.home_services h3 {
	font-size: 22px;
	font-weight: 700;
	margin: 20px 0 0;
}
.home_services h2 {
	font-size: 4rem;
	font-weight: 900;
	text-transform: capitalize;
	width: 70%;
}
ul.service_tab {
	border-top: 1px solid #ccc;
	margin-top: 30px;
}
ul.service_tab li {
	display: inline-block;
	margin-right: 30px;
	max-width: 230px;
	vertical-align: top;
}
ul.service_tab li a {
	display: block;
	font-size: 24px;
	font-weight: 300;
	color: var(--black);
	padding-top: 10px;
	position: relative;
}
ul.service_tab li a:before {
	content: "";
	position: absolute;
	top: -3px;
	width: 100%;
	height: 5px;
	background: #9D724F;
	opacity: 0;
}
ul.service_tab li.active a:before {
	opacity: 1;
}
.service_tab_content {
	margin-top: 30px;
	position: relative;
	transition: height 0.5s ease-in-out;
}

.service_tab_item {
	background: #043335;
	max-height: 0px;
	overflow: hidden;
	opacity: 0;
	visibility: hidden;
	position: absolute;
	z-index: 1;
	/* transition: max-height 0.3s ease-in-out; */
}
.service_tab_item.active {
	max-height: 1000px;
	opacity: 1;
	visibility: visible;
	transition: max-height 0.5s ease-in-out;
	z-index: 3;
}
.tab_content {
	padding: 30px;
	font-size: 18px;
	color: var(--white);
}
.service_tab_item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.home_contact {
	padding: 50px 0 0;
}
.home_contact h2 {
	font-size: 22px;
	font-weight: 700;
}
.contact_inner {
	position: relative;
}
.contact_inner ul {
	position: absolute;
	top: 0;
	left: 9%;
	padding: 40px;
	background: var(--white);
}
.contact_inner ul li a i {
	background: var(--brown);
	width: 40px;
	aspect-ratio: 1 / 1;
	display: inline-block;
	text-align: center;
	color: var(--white);
	padding-top: 9px;
	margin-bottom: 10px;
	font-size: 20px;
	margin-right: 15px;
	border-radius: 7px;
}
.contact_inner ul li a {
	color: var(--black);
	font-size: 18px;
	font-weight: 400;
}
.gmap iframe {
	width: 100%;
	height: 400px;
	margin-bottom: -10px;
}
footer.footer {
	background: #9D724F;
	padding: 50px 0 40px;
	color: var(--white);
	font-weight: 300;
	position: relative;
}
.footer .backTop {
	position: absolute;
	top: -0px;
	left: 50%;
	transform: translate(-50%, -50%);
	background: var(--white);
	color: var(--black);
	width: 40px;
	height: 40px;
	border-radius: 100%;
	text-align: center;
	line-height: 40px;
	font-size: 24px;
}
.footer h5 {
	font-weight: 300;
	font-size: 16px;
}
.footer_social {
	margin-bottom: 50px;
}
.footer_social li {
	display: inline-block;
	margin-right: 10px;
}
.footer_social li a {
	color: var(--white);
	font-size: 28px;
}
.poweredby img {
	max-height: 30px;
	width: auto;
	vertical-align: bottom;
}
@media (max-width: 500px) {
	.navbar-brand img {
		max-width: 300px;
	}
	button.navbar-toggler {
		border: none !important;
		outline: none !important;
		box-shadow: unset !important;
		padding: 0;
	}
	.partner_image {
		height: 70px;
	}
	.owl-carousel .owl-item img {
		object-fit: contain;
	}
	.navbar-nav {
		border-radius: 20px;
	}
	.navbar-nav li a {
		margin: 15px 0;
		display: block;
	}
	.navbar-nav li.divider a {
		width: 100%;
		height: 1px;
		display: block;
		background: var(--black);
		margin: 10px 0;
		display: none;
	}
	.navbar-nav li:last-child a,
	.navbar-nav li:nth-last-child(2) a {
		display: none;
	}
	.home_slider .carousel-caption {
		right: unset;
		left: 70px;
		top: 50%;
		border: unset;
		transform: translate(0%, -40%);
		bottom: unset;
	}
	.home_slider .carousel-caption h3 {
		font-size: 1rem;
	}
	.home_services h2 {
		font-size: 3rem;
		width: 100%;
	}
	ul.service_tab li {
		margin-bottom: 20px;
	}
	ul.service_tab li a:before {
		opacity: 1;
	}
}




/* خلفية شفافة 10% على الموبايل فقط */
@media (max-width: 768px) {
  /* إنجليزي */
  html[lang^="en"] body {
    position: relative;
    background: none;
  }
  html[lang^="en"] body::before {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://alam-alqimma.com/wp-content/uploads/2025/08/Asset-1@2x.png');
    background-repeat: no-repeat;
    background-position: right top;
    background-size: auto;
    opacity: 0.1; /* 10% */
    pointer-events: none;
    z-index: -1;
  }

  /* عربي */
  html[lang^="ar"] body {
    position: relative;
    background: none;
  }
  html[lang^="ar"] body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://alam-alqimma.com/wp-content/uploads/2025/08/Asset-2.png');
    background-repeat: no-repeat;
    background-position: left top;
    background-size: auto;
    opacity: 0.1; /* 10% */
    pointer-events: none;
    z-index: -1;
  }

  /* حل مشكلة iOS */
  @supports (-webkit-touch-callout: none) {
    html[lang^="en"] body::before,
    html[lang^="ar"] body::before {
      position: absolute;
    }
  }
}
