/**
 * Custom RTL Styles for Talal Almalqa Decor
 * Additional adjustments for Arabic RTL layout
 */

/* Import Arabic Font */
@import url('fonts.css');

/* Base RTL adjustments */
html[dir="rtl"] {
	text-align: right;
	--ar-font-family: 'Bukra', 'Segoe UI', Tahoma, sans-serif;
	--font-weight-light: 300;
	--font-weight-regular: 400;
	--font-weight-bold: 700;
}

html[dir="rtl"] body {
	font-family: var(--ar-font-family) !important;
}

/* Disable WOW.js and CSS Animations */
.wow {
	visibility: visible !important;
	animation-name: none !important;
	animation-duration: 0s !important;
	animation-delay: 0s !important;
	transition: none !important;
}

*[class*="wow"] {
	visibility: visible !important;
	animation: none !important;
	transition: none !important;
}

/* Prevent any animated elements from being hidden initially */
.wow[style*="visibility: hidden"] {
	visibility: visible !important;
}

/* Fix for missing clock icon - Outlined style to match others */
.icon-clock,
.fa-clock,
.far.fa-clock,
.fas.fa-clock {
	font-family: "Font Awesome 5 Free" !important;
	font-weight: 400 !important;
	/* 400 for outlined (Regular) style */
}

.icon-clock:before,
.fa-clock:before,
.far.fa-clock:before,
.fas.fa-clock:before {
	content: "\f017" !important;
	display: inline-block;
	font-style: normal;
	font-variant: normal;
	text-rendering: auto;
	line-height: 1;
}

/* Header adjustments for RTL */
html[dir="rtl"] .main-header__top-address li {
	flex-direction: row-reverse;
}

html[dir="rtl"] .main-header__top-address .icon {
	margin-left: 15px;
	margin-right: 0;
}

html[dir="rtl"] .main-header__top-address .content {
	text-align: right;
}

/* Feature section arrow direction */
html[dir="rtl"] .feature-one__arrow a i {
	transform: rotate(180deg);
}

/* Section title alignment */
html[dir="rtl"] .section-title {
	text-align: right;
}

html[dir="rtl"] .section-title.text-center {
	text-align: center;
}

/* About Section Image Refinements - Fixed for responsive and RTL */
.about-one__img img {
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	object-fit: cover;
	border-bottom-right-radius: 75px;
	border-top-left-radius: 75px;
}

.about-one__small-img img {
	width: auto !important;
	max-width: 100% !important;
	height: auto !important;
	object-fit: cover;
	border-bottom-right-radius: 40px;
	border-top-left-radius: 40px;
}

.about-one__img-box {
	position: relative;
	display: block;
	text-align: right;
}

/* Footer overlap fix */
.site-footer {
	margin-top: 0 !important;
}

.site-footer__top {
	padding-top: 100px !important;
	padding-bottom: 40px !important;
}

.gallery-page {
	padding-bottom: 50px !important;
}

html[dir="rtl"] .footer-widget__column {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

html[dir="rtl"] .footer-widget__explore,
html[dir="rtl"] .footer-widget__services,
html[dir="rtl"] .footer-widget__contact {
	margin-left: 0 !important;
	margin-right: 0 !important;
}

html[dir="rtl"] .footer-widget__contact-list li {
	flex-direction: row;
	padding-bottom: 12px;
	margin-bottom: 15px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

html[dir="rtl"] .footer-widget__contact-list li:last-child {
	border-bottom: 0;
	margin-bottom: 0;
}

html[dir="rtl"] .footer-widget__contact-list .icon {
	margin-left: 15px;
	margin-right: 0;
	flex-shrink: 0;
}

html[dir="rtl"] .footer-widget__contact-list .text {
	text-align: right;
}

html[dir="rtl"] .footer-widget__explore-list li a,
html[dir="rtl"] .footer-widget__services-list li a {
	padding-left: 0;
	padding-right: 20px;
}

html[dir="rtl"] .footer-widget__explore-list li a:before,
html[dir="rtl"] .footer-widget__services-list li a:before {
	left: auto;
	right: 0;
	transform: translateY(-50%) rotate(180deg);
}

/* Testimonial adjustments for RTL */
.testimonial-one__single {
	text-align: right;
}

.testimonial-one__text-2 {
	text-align: right;
}

.testimonial-one__client-info {
	flex-direction: row;
}

.testimonial-one__img {
	margin-left: 20px;
	margin-right: 0;
}

.testimonial-one__quote {
	left: auto;
	right: 30px;
}

/* Working Process RTL fixes */
html[dir="rtl"] .working-process__single:before {
	left: auto;
	right: -30px;
	transform: rotate(180deg);
}

@media (max-width: 1199px) {
	html[dir="rtl"] .working-process__single:before {
		display: none;
	}
}

/* Contact info adjustments */
html[dir="rtl"] .contact-info-one__single {
	text-align: center;
}

/* Breadcrumb adjustments */
html[dir="rtl"] .thm-breadcrumb {
	flex-direction: row-reverse;
}

html[dir="rtl"] .thm-breadcrumb li {
	margin-right: 0;
	margin-left: 10px;
}

/* Social media icons spacing */
html[dir="rtl"] .site-footer__social a,
html[dir="rtl"] .mobile-nav__social a,
html[dir="rtl"] .main-header__top-right-social a {
	margin-right: 0;
	margin-left: 10px;
}

/* إخفاء لوجو الجوال على الديسكتوب */
.main-menu__logo-mobile {
	display: none;
}

/* إخفاء أيقونات السوشيال ميديا من الهيدر */
.mobile-social-menu {
	display: none !important;
}

/* Header Address Icons spacing */
html[dir="rtl"] .main-header__top-address li {
	display: flex !important;
	align-items: center !important;
	gap: 25px !important;
}

html[dir="rtl"] .main-header__top-address li .content,
html[dir="rtl"] .main-header__top-address li .icon,
html[dir="rtl"] .main-header__top-address li .icon span {
	margin: 0 !important;
	padding: 0 !important;
}

/* CTA section */
.cta-one {
	background-size: cover !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-attachment: fixed !important;
	padding: 100px 0 !important;
	position: relative;
	z-index: 1;
	margin-top: 50px;
}

.cta-one:before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.6);
	/* Dark overlay for readability */
	z-index: -1;
}

.cta-one__inner {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	gap: 30px;
}



.cta-one__content {
	flex: 1;
}

html[dir="rtl"] .cta-one__content {
	text-align: right;
}

.cta-one__title {
	color: #fff !important;
	font-size: 42px !important;
	margin-bottom: 10px !important;
	font-weight: 700 !important;
	line-height: 1.2 !important;
}

.cta-one__text {
	color: rgba(255, 255, 255, 0.9) !important;
	font-size: 20px !important;
	margin: 0 !important;
}

/* Gallery section */
html[dir="rtl"] .gallery-one__img {
	text-align: center;
}

/* Services section */
html[dir="rtl"] .services-one__content {
	text-align: right;
}

/* Mobile menu adjustments */
html[dir="rtl"] .mobile-nav__content {
	right: auto;
	left: 0;
	transform: translateX(-100%);
}

html[dir="rtl"] .mobile-nav__wrapper.expanded .mobile-nav__content {
	transform: translateX(0);
}

/* Slider navigation arrows */
html[dir="rtl"] .main-slider__nav .swiper-button-prev,
html[dir="rtl"] .main-slider__nav .swiper-button-next {
	transform: rotate(0deg);
}

/* Services page spacing */
.services-page {
	padding: 100px 0;
}

/* Gallery page spacing */
.gallery-page {
	padding: 100px 0;
}

.gallery-page .gallery-one__single {
	margin-bottom: 30px;
}

.gallery-one__img img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	border-radius: 10px;
}

.gallery-one__img {
	position: relative;
	overflow: hidden;
	border-radius: 10px;
}

.gallery-one__img a {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: all 0.3s ease;
}

.gallery-one__img:hover a {
	opacity: 1;
}

.gallery-one__img a span {
	color: #fff;
	font-size: 30px;
}

/* Social media section */
.social-media-section {
	padding: 80px 0;
	background-color: var(--ambed-primary, #f2eeeb);
}

/* Contact info section spacing */
.contact-info-one {
	padding: 100px 0 60px;
}

.contact-info-one__single {
	text-align: center;
	padding: 40px 30px;
	background: #fff;
	border-radius: 10px;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
	margin-bottom: 30px;
	transition: all 0.3s ease;
}

.contact-info-one__single:hover {
	transform: translateY(-10px);
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-info-one__icon {
	margin-bottom: 20px;
}

.contact-info-one__icon span {
	font-size: 50px;
	color: var(--ambed-base, #a47c68);
}

.contact-info-one__title {
	font-size: 22px;
	margin-bottom: 15px;
	color: var(--ambed-black, #3c3531);
}

.contact-info-one__text {
	margin-bottom: 5px;
	color: var(--ambed-gray, #8b827d);
}

.contact-info-one__text a {
	color: var(--ambed-gray, #8b827d);
	transition: color 0.3s ease;
}

.contact-info-one__text a:hover {
	color: var(--ambed-base, #a47c68);
}

/* Error page styles */
.error-page {
	padding: 150px 0;
	text-align: center;
}

.error-page__title {
	font-size: 200px;
	line-height: 1;
	color: var(--ambed-base, #a47c68);
	margin-bottom: 30px;
}

.error-page__tagline {
	font-size: 36px;
	margin-bottom: 20px;
	color: var(--ambed-black, #3c3531);
}

.error-page__text {
	font-size: 18px;
	margin-bottom: 30px;
	color: var(--ambed-gray, #8b827d);
}

/* Google map styling */
.google-map-one {
	padding: 80px 0 0;
}

.google-map-one__contact {
	width: 100%;
	height: 450px;
	border: none;
	margin-top: 40px;
}

/* Services one styling adjustments */
.services-one {
	padding-top: 80px !important;
	padding-bottom: 60px !important;
}

.services-one__single {
	margin-bottom: 30px;
}

.services-one__img img,
.services-two__img img {
	height: 280px !important;
	object-fit: cover !important;
	width: 100% !important;
}

/* About One section images */
.about-one__img img {
	width: 482px !important;
	height: 652px !important;
	object-fit: cover !important;
	max-width: 100% !important;
}

.about-one__small-img img {
	width: 232px !important;
	height: 310px !important;
	object-fit: cover !important;
}

/* About One Project Counter - LTR for numbers */
.about-one__project-content {
	direction: ltr !important;
	text-align: center !important;
}

.about-one__project-content .odometer {
	direction: ltr !important;
}

/* About One Points Boxes - Equal Size */
.about-one__points-single {
	min-width: 200px !important;
	min-height: 100px !important;
}

.about-one__points-content-box {
	min-width: 200px !important;
	min-height: 80px !important;
	display: flex !important;
	align-items: center !important;
	padding: 15px 20px !important;
}

.about-one__points-text {
	white-space: nowrap !important;
}

/* Why Choose One Section Img */
.why-choose-one__img img {
	height: 600px;
	object-fit: cover;
}

/* Benefits Section Points Img */
.benefits-one__points-img img {
	height: 170px;
	object-fit: cover;
}

/* Custom Cursor RTL Fixes */
.custom-cursor__cursor {
	right: auto !important;
	left: 0;
	top: 0;
}

.custom-cursor__cursor-two {
	right: auto !important;
}

@media (max-width: 991px) {
	.error-page__title {
		font-size: 120px;
	}

	.error-page__tagline {
		font-size: 28px;
	}

	/* Fix Why Choose One section overlapping with Services on mobile */
	.why-choose-one {
		padding-bottom: 40px !important;
		margin-bottom: 20px !important;
	}

	.why-choose-one__btn {
		margin-bottom: 5px !important;
		display: inline-block !important;
	}

	.why-choose-one__right {
		padding-bottom: 60px !important;
	}

	.services-one {
		margin-top: 40px !important;
	}

	html[dir="rtl"] .cta-one__inner {
		flex-direction: column !important;
		text-align: center !important;
	}

	html[dir="rtl"] .cta-one__content {
		text-align: center !important;
	}

	html[dir="rtl"] .cta-one__btn-box {
		margin-top: 30px;
	}

	.cta-one__title {
		font-size: 32px !important;
	}
}

/* Logo Sizes & Integration */
.main-header__top-inner {
	display: flex !important;
	align-items: center;
	justify-content: space-between;
	padding-top: 23px !important;
	padding-bottom: 13px !important;
}

.main-header__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 60px;
	/* Reduced from 100px */
	overflow: hidden;
	margin: 0 !important;
	/* Remove any default margins */
}

.main-header__logo a {
	display: flex;
	align-items: center;
	height: 100%;
}

.main-header__logo img {
	width: auto !important;
	height: 60px !important;
	max-width: 220px !important;
	object-fit: contain;
}

.footer-widget__logo img {
	width: auto !important;
	height: 80px !important;
	max-width: 280px !important;
	object-fit: contain;
}

.preloader__image {
	background-image: url(../images/loader.png) !important;
	background-size: contain !important;
	width: 120px !important;
	height: 120px !important;
}

/* Updated CTA with fixed background effect */
.cta-one {
	background-size: cover !important;
	background-repeat: no-repeat !important;
	background-position: center !important;
	background-attachment: fixed !important;
	padding: 100px 0 !important;
	position: relative;
	z-index: 1;
	margin-top: 50px;
}

@media (max-width: 991px) {
	.error-page__title {
		font-size: 80px;
	}

	.services-page,
	.gallery-page {
		padding: 60px 0;
	}

	.contact-info-one {
		padding: 60px 0 30px;
	}

	/* ===== REFINED MOBILE HEADER (RTL) ===== */

	/* 1. TOP BAR */
	.main-header__top {
		padding: 25px 0 !important;
		margin: 0 !important;
		background: #fff !important;
		border-bottom: 1px solid #f0f0f0;
		height: auto !important;
		min-height: 80px !important;
	}

	.main-header__top-inner {
		display: flex !important;
		flex-direction: row-reverse !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 10px 15px !important;
		height: auto !important;
	}

	/* إخفاء اللوجو من التوب بار على الجوال */
	.main-header__top .main-header__logo {
		display: none !important;
	}

	/* Phone Style (Desktop Look) */
	.main-header__top-right {
		order: 2 !important;
		margin: 0 !important;
		display: flex !important;
	}

	.main-header__top-address-box {
		display: block !important;
		/* Show on mobile */
	}

	.main-header__top-address {
		margin: 0 !important;
		padding: 0 !important;
		display: flex !important;
		gap: 20px !important;
		flex-wrap: nowrap !important;
	}

	/* إخفاء أوقات العمل من الجوال نهائياً */
	.main-header__top-address>li:nth-child(2) {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		width: 0 !important;
		height: 0 !important;
		overflow: hidden !important;
		position: absolute !important;
		left: -9999px !important;
	}

	/* إظهار الهاتف والعنوان فقط */
	.main-header__top-address li:first-child,
	.main-header__top-address li:nth-child(3) {
		display: flex !important;
		align-items: center !important;
		gap: 5px !important;
		flex-direction: row-reverse !important;
	}

	.main-header__top-address .icon {
		margin: 0 !important;
		font-size: 14px !important;
		color: var(--ambed-base, #a47c68) !important;
		width: 26px !important;
		height: 26px !important;
		min-width: 26px !important;
		display: flex !important;
		align-items: center !important;
		justify-content: center !important;
		background: #fdf8f5 !important;
		border-radius: 50% !important;
	}

	.main-header__top-address .content p {
		font-size: 9px !important;
		margin: 0 !important;
		line-height: 1 !important;
		color: var(--ambed-gray, #827e7c) !important;
	}

	.main-header__top-address .content h5 {
		font-size: 11px !important;
		margin: 0 !important;
		line-height: 1.2 !important;
	}

	.main-header__top-address .content h5 a {
		color: var(--ambed-black, #3c3531) !important;
		font-weight: 700 !important;
	}

	/* Hide social from top bar */
	.main-header__top-right-social {
		display: none !important;
	}

	/* 2. NAVIGATION BAR (STICKY): Social (Right) & Toggle (Left) */
	.main-menu {
		position: sticky !important;
		top: 0 !important;
		z-index: 999 !important;
		background: #fff !important;
		box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06) !important;
	}

	.main-menu__wrapper-inner {
		display: flex !important;
		flex-direction: row !important;
		justify-content: space-between !important;
		align-items: center !important;
		padding: 10px 15px !important;
	}

	/* اللوجو على اليمين */
	.main-menu__logo-mobile {
		display: flex !important;
		margin-right: 0 !important;
		margin-left: auto !important;
		z-index: 10;
	}

	.main-menu__logo-mobile img {
		width: 140px !important;
		height: auto !important;
		max-height: 70px !important;
	}

	.main-menu .main-header__logo,
	.stricky-header .main-header__logo {
		display: none !important;
	}

	/* إخفاء أيقونات التواصل من الهيدر */
	.main-menu__right {
		display: none !important;
	}

	/* التوجلر على اليسار */
	.main-menu__left {
		margin-left: 0 !important;
		margin-right: auto !important;
		width: auto !important;
	}

	.main-menu__search-btn-box,
	.main-menu__btn-box,
	.mobile-social-menu {
		display: none !important;
	}

	/* Toggle on the Left */
	.main-menu__left {
		order: 2 !important;
		width: auto !important;
	}

	.mobile-nav__toggler {
		margin: 0 !important;
		font-size: 26px !important;
		color: var(--ambed-black, #3c3531) !important;
	}

	/* Hide desktop menu items from bar */
	.main-menu__list {
		display: none !important;
	}

	/* ===== MOBILE NAV DRAWER ===== */
	.mobile-nav__container .main-menu__list {
		display: block !important;
		padding: 0 !important;
		margin: 0 !important;
	}

	.mobile-nav__container .main-menu__list li {
		display: block !important;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.mobile-nav__container .main-menu__list li a {
		display: block !important;
		color: #fff !important;
		font-size: 16px !important;
		font-weight: 500 !important;
		padding: 15px 0 !important;
		text-decoration: none !important;
	}

	.mobile-nav__container .main-menu__list li:hover>a,
	.mobile-nav__container .main-menu__list li.current>a {
		color: var(--ambed-base, #a47c68) !important;
	}

	.mobile-nav__content {
		padding: 30px 25px !important;
	}

	.mobile-nav__social {
		display: flex !important;
		justify-content: center !important;
		gap: 20px !important;
		margin-top: 30px !important;
	}

	.mobile-nav__social a {
		color: #fff !important;
		font-size: 20px !important;
	}
}

/* Testimonial Default Avatar - Like WhatsApp */
.testimonial-one__img {
	position: relative;
	overflow: hidden;
}

.testimonial-one__img img {
	opacity: 0 !important;
	position: absolute;
}

.testimonial-one__img::before {
	content: '';
	display: block;
	width: 70px;
	height: 70px;
	border-radius: 50%;
	background: linear-gradient(135deg, #d5d5d5 0%, #e8e8e8 100%);
}

.testimonial-one__img::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 30px;
	height: 30px;
	background: #fff;
	border-radius: 50%;
	box-shadow:
		0 25px 0 0 #fff,
		0 25px 0 8px #fff;
	margin-top: -8px;
}