/*--------------------------------------------------------------
/** 1. VARIABLES
--------------------------------------------------------------*/
:root {
  --accent-color: #a290aa;
  --secondary-color: #9d83a8;
  --black-color: #3c3c3c;
  --light-black-color: #343536;
  --dark-color: #797876;
  --primary-color: #a290aa;
  --primary-color-200: #e8f0f1;
  --primary-color-400: #c4e9ed;
  --gray-color: #777f81;
  --light-color: #ffffff;

  --bs-dark-rgb: 87, 87, 87;
  --bs-gray-100: #eeefef;
  --bs-gray-300: #dcdcdc;
  --bs-primary-text-emphasis: var(--primary-color);
  --bs-primary: #a290aa;
  --bs-light-rgb: 255, 255, 255;
  --bs-primary-rgb: 162, 144, 170;
  --bs-secondary-rgb: 121, 109, 76;
  --swiper-theme-color: #111 !important;
  --cadet-blue-color: #9ab4b7;
}

/* Fonts */
:root {
  --heading-font: "Playfair Display", cursive;
  --body-font: "Lato", sans-serif;
}

/*----------------------------------------------*/
/* 2 GENERAL TYPOGRAPHY
/*----------------------------------------------*/

/* 2.1 General Styles
/*----------------------------------------------*/
*,
*::before,
*::after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

html {
  box-sizing: border-box;
}
#hero-text {
  line-height: 1.5;
  font-size: 1.8rem;
}
body {
  background-color: #ffffff;
  font-family: var(--body-font);
  font-size: 22px;
  font-weight: 400;
  line-height: 164%;
  letter-spacing: 0.4px;
  color: var(--dark-color);
  margin: 0;
}

p {
  color: var(--dark-color);
}

a {
  color: inherit;
  text-decoration: none;
  transition: 0.3s ease-in-out;
}

/* Hover effects only on devices with mouse/pointer */
@media (hover: hover) and (pointer: fine) {
  a:hover {
    color: var(--primary-color);
  }
  #footer a:hover {
    color: #3a3a3a;
  }
}

/*--------------------------------------------------------------
/** 2.3 Section
--------------------------------------------------------------*/
/* - Section Padding
--------------------------------------------------------------*/
.padding-small {
  padding-top: 3em;
  padding-bottom: 3em;
}

.padding-medium {
  padding-top: 6em;
  padding-bottom: 6em;
}

.padding-large {
  padding-top: 12em;
  padding-bottom: 12em;
}

/* - Full-height sections with vertical centering
--------------------------------------------------------------*/

.section-fullpage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px; /* Account for fixed header */
  padding-bottom: 60px;
  box-sizing: border-box;
}

.section-fullpage > .container,
.section-fullpage > .container-lg {
  width: 100%;
}

/* Footer doesn't need full height */
#footer.section-fullpage {
  min-height: auto;
  justify-content: flex-start;
  padding-top: 60px;
}

/* - Section Margin
--------------------------------------------------------------*/
.margin-small {
  margin-top: 8.125em;
  margin-bottom: 8.125em;
}

.margin-medium {
  margin-top: 10em;
  margin-bottom: 10em;
}

.margin-large {
  margin-top: 12em;
  margin-bottom: 12em;
}

/* - Section Title
--------------------------------------------------------------*/
h1,
h2,
h3,
h5,
h6 {
  color: var(--black-color);
  font-family: var(--heading-font);
  text-transform: capitalize;
  font-weight: 900;
  letter-spacing: 0.0675rem;
  margin-bottom: 2rem;
}

h6 {
  font-family: var(--body-font);
 
}

/* - Content width
--------------------------------------------------------------*/
.container-md {
  max-width: 1465px;
}

.container-lg {
  max-width: 1750px;
}

/*--------------------------------------------------------------
/** 2.4 Buttons
--------------------------------------------------------------*/

.btn {
  padding: 15px 35px;
  text-transform: uppercase;
  transition: all 0.4s ease-in-out;
  font-weight: 500;
  letter-spacing: 0.0675rem;
  border-radius: 10px;
}

/* Primary Buttons */
.btn-primary {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--secondary-color);
  --bs-btn-hover-border-color: var(--secondary-color);
  --bs-btn-focus-shadow-rgb: 49, 132, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--secondary-color);
  --bs-btn-active-border-color: var(--secondary-color);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: #fff;
  --bs-btn-disabled-bg: var(--secondary-color);
  --bs-btn-disabled-border-color: #df808f;
}

.btn-outline-primary {
  --bs-btn-color: var(--accent-color);
  --bs-btn-border-color: var(--accent-color);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--accent-color);
  --bs-btn-hover-border-color: var(--accent-color);
  --bs-btn-focus-shadow-rgb: 13, 110, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: var(--accent-color);
  --bs-btn-active-border-color: var(--accent-color);
  --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  --bs-btn-disabled-color: var(--accent-color);
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: var(--accent-color);
  --bs-gradient: none;
}

.btn-check:active + .btn-primary:focus,
.btn-check:checked + .btn-primary:focus,
.btn-primary.active:focus,
.btn-primary:active:focus,
.show > .btn-primary.dropdown-toggle:focus {
  box-shadow: none;
}

/*--------------------------------------------------------------
/** 3.CONTENT ELEMENTS
--------------------------------------------------------------*/

/* Breadcrumb
------------------------------------------------------------- */

.card {
  border: 0px;
  border-radius: 10px;
  box-shadow: 0px 2px 12px 2px rgba(4, 0, 52, 0.08);
}

/* nav tabs */
.nav-tabs .nav-link {
  color: var(--black-color);
}

:focus-visible {
  outline: none;
}

/* Svg Color
------------------------------------------------------------- */
svg.light-color {
  color: var(--light-color);
}

svg.dark-color {
  color: var(--dark-color);
}

svg.light-blue-color {
  color: #5bc4f1;
}

svg.primary-color {
  color: var(--primary-color);
}

svg.accent-color {
  color: var(--accent-color);
}

svg.primary-color-500 {
  color: var(--bs-primary-rgb);
}

/* 4.1 Header
/*----------------------------------------------*/

.site-header {
  width: 100%;
  z-index: 10;
  transition: background 0.3s ease-out;
}

.navbar-toggler svg.navbar-icon {
  width: 50px;
  height: 50px;
}

.navbar-nav .nav-item a.nav-link {
  font-size: 16px;
  color: var(--black-color);
  position: relative;
  transition: color 0.3s ease;
}

.navbar-nav .nav-item a.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition:
    width 0.3s ease,
    left 0.3s ease;
}

.navbar-nav .nav-item a.nav-link.active::after {
  width: 90%;
  left: 5%;
  background-color: #111;
}

@media (hover: hover) and (pointer: fine) {
  .navbar-nav .nav-item a.nav-link:hover::after {
    width: 90%;
    left: 5%;
    background-color: #111;
  }

  .navbar-nav .nav-item a.nav-link:hover {
    color: #111;
  }
}

/*------------ Top User Icons -----------*/
.site-header .user-items svg {
  width: 22px;
  height: 22px;
  cursor: pointer;
}

@media only screen and (max-width: 991px) {
  #navbar .user-items {
    display: none;
  }
}

/*------------ Offcanvas -------------- */
#header-nav .navbar-toggler:focus {
  box-shadow: none;
}

#header-nav .offcanvas {
  transition: 0.5s ease-in-out;
}

#header-nav .offcanvas.show {
  z-index: 99999;
}

#header-nav .offcanvas-end {
  width: 500px;
}

/* 4.2 Slider Section
/*----------------------------------------------*/

section#slider .main-slider-button-next,
.main-slider-button-prev {
  z-index: 111111;
  height: fit-content;
  opacity: 0.9;
}

section#slider .main-slider-button-next.swiper-button-disabled,
.main-slider-button-prev.swiper-button-disabled {
  opacity: 0.6;
}

/* 4.3 Services Section
/*----------------------------------------------*/

/* 4.6 Footer Section
/*----------------------------------------------*/
iconify-icon.social-icon {
  font-size: 1.5rem;
  border-radius: 4.375rem;
  border: 1px #111;
  transition: all 0.5s ease;
}

@media (hover: hover) and (pointer: fine) {
  iconify-icon.social-icon:hover {
    color: #111;
  }
}

/*--------------------------------------------------------------
/** AOS - animation library (trimmed)
--------------------------------------------------------------*/

/* Duration rules - only keeping 1000, 1300, 1500, 1900 */
[data-aos][data-aos][data-aos-duration="1000"],
body[data-aos-duration="1000"] [data-aos] {
  transition-duration: 1s;
}

[data-aos][data-aos][data-aos-duration="1300"],
body[data-aos-duration="1300"] [data-aos] {
  transition-duration: 1.3s;
}

[data-aos][data-aos][data-aos-duration="1500"],
body[data-aos-duration="1500"] [data-aos] {
  transition-duration: 1.5s;
}

[data-aos][data-aos][data-aos-duration="1900"],
body[data-aos-duration="1900"] [data-aos] {
  transition-duration: 1.9s;
}

/* Fade animations - base */
[data-aos^="fade"][data-aos^="fade"] {
  opacity: 0;
  transition-property: opacity, transform;
}

[data-aos^="fade"][data-aos^="fade"].aos-animate {
  opacity: 1;
  transform: translateZ(0);
}

/* Fade animations - used variants */
[data-aos="fade-up"] {
  transform: translate3d(0, 100px, 0);
}

.logo {
  font-family: "Playfair Display", serif;
  font-size: 28px;
  font-weight: 700;
  color: #212529;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: inline-block;
  position: relative;
  transition: all 0.3s ease;
}

#footer .logo {
  font-size: 32px;
}

/* Logo hover effects only on desktop */
@media (hover: hover) and (pointer: fine) {
  .logo:hover {
    color: #9b7e56;
  }

  #footer .logo:hover {
    color: #212529;
  }
}

/* Glassy blur effect for header */
#header {
  background: rgba(247, 247, 247, 0.85) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.05);
  font-family: Lato;
  font-weight: bold;
}

/* Mobile menu full page overlay */
@media (max-width: 991px) {
  .offcanvas {
    height: 100vh !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 9999 !important;
  }
  .offcanvas-body {
    display: flex;
    justify-content: center;
    align-items: start;
  }
  .offcanvas-body ul {
    margin-top: 30%;
  }
  .offcanvas-backdrop {
    z-index: 9998 !important;
  }
}

/* Desktop navigation */
@media (min-width: 992px) {
  #header-nav .offcanvas {
    position: static !important;
    visibility: visible !important;
    background-color: transparent !important;
    border: none !important;
    transform: none !important;
  }

  #header-nav .offcanvas .offcanvas-header {
    display: none;
  }

  #header-nav .navbar-nav {
    flex-direction: row !important;
  }
}

/* Mobile menu responsive text - large on mobile, normal on desktop */
.offcanvas .nav-link.display-2 {
  font-size: 1.75rem !important;
  font-weight: 300;
  line-height: 1.2;
}

@media (min-width: 992px) {
  .offcanvas .nav-link.display-2 {
    font-size: 1.5rem !important;
    font-weight: normal;
  }
}

/* Slider images height control */
#slider .swiper-slide img {
  max-height: 500px;
  width: 100%;
  object-fit: cover;
  object-position: center;
  cursor: grab;
}

#footer {
  background: rgba(230, 230, 230, 0.85);
}



/* WhatsApp button styling */
.btn-whatsapp {
  background-color: #25d366 !important;
  color: #ffffff !important;
  border: none;
  border-radius: 0.5rem;
  transition: background-color 0.3s ease;
}

/* WhatsApp button hover only on desktop */
@media (hover: hover) and (pointer: fine) {
  .btn-whatsapp:hover {
    background-color: #20ba5a !important;
    color: #ffffff !important;
  }
}

/* Floating WhatsApp button */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 1rem;
  text-align: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  font-weight: 500;
  animation: pulse-shadow 2s infinite;
}

/* Floating WhatsApp button hover only on desktop */
@media (hover: hover) and (pointer: fine) {
  .whatsapp-float:hover {
    background-color: #20ba5a;
    color: #ffffff;
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
  }
}

@keyframes pulse-shadow {
  0%,
  100% {
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 4px 18px rgba(37, 211, 102, 0.7);
    transform: scale(1.03);
  }
}

/* Gallery images - uniform size */
.post-image {
  width: 100%;
  height: 400px;
  object-fit: cover;
  transition: transform 0.5s;
}
.post-image:hover {
  transform: translateY(-5px);
}

/* Language toggle button */
.lang-toggle {
  background: transparent;
  border: none;
  color: rgb(33, 33, 33);
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  order: 2;
  outline: none;
  letter-spacing: 0.5px;
}

.lang-toggle:hover,
.lang-toggle:focus,
.lang-toggle:active {
  background: transparent;
  outline: none;
  box-shadow: none;
}

/* Desktop: position lang toggle at the end of navbar */
@media (min-width: 992px) {
  .lang-toggle {
    order: 3;
    margin-left: auto;
  }
}

/* RTL Support */
html[dir="rtl"] {
  font-family: "Noto Sans Arabic", "Lato", sans-serif;
}

html[dir="rtl"] .me-md-5 {
  margin-right: 0 !important;
  margin-left: 3rem !important;
}

html[dir="rtl"] .me-2 {
  margin-right: 0 !important;
  margin-left: 0.5rem !important;
}

@media (min-width: 992px) {
  html[dir="rtl"] .lang-toggle {
    margin-left: 0;
    margin-right: auto;
  }
}

html[dir="rtl"] #footer .info {
  text-align: right;
}

@media (min-width: 992px) {
  html[dir="rtl"] #footer .offset-lg-3 {
    margin-left: 0 !important;
    margin-right: 25% !important;
  }
}

html[dir="rtl"] #footer ul.d-flex {
  direction: ltr;
}

/* Remove letter-spacing for Arabic text */
html[dir="rtl"] body,
html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] h5,
html[dir="rtl"] h6,
html[dir="rtl"] .btn,
html[dir="rtl"] .logo,
html[dir="rtl"] .lang-toggle {
  letter-spacing: 0;
}

/* Keep WhatsApp button position fixed regardless of RTL */
html[dir="rtl"] .whatsapp-float {
  right: 30px !important;
  left: auto !important;
  direction: ltr;
}

/* Hide elements on mobile */
@media (max-width: 768px) {
  .mobile-hide {
    display: none;
  }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .section-fullpage {
    min-height: auto;
    padding-top: 70px;
    padding-bottom: 40px;
  }

  .whatsapp-float {
    bottom: 16px;
    right: 20px;
    border-radius: 50%;
    width: 58px !important;
    height: 58px !important;
    justify-content: center;
  }

  .whatsapp-float span {
    display: none;
  }
  p#cp {
    font-size: 0.9rem !important;
  }
  #footer {
    padding-top: 1rem !important;
  }
  #slider .swiper-slide img {
    max-height: 450px;
  }
}

/*--------------------------------------------------------------
/** PRELOADER
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

#preloader.loaded {
  opacity: 0;
  visibility: hidden;
}

.preloader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.preloader-ring {
  width: 75px;
  height: 75px;
  border: 3px solid #f0eff0;
  border-top-color: var(--accent-color);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
