/*======================================================================
  Project: SNPT Grocery - Customized Avilon Theme
  File: main.organized.css
  Generated: 2025-09-09 22:55
  Notes:
  - Non-destructive organization pass.
  - No rules removed or re-ordered. Only comments and light whitespace tweaks.
  - Purpose: easier navigation & future maintenance.
  
  Table of Contents (approximate):
  00) Variables & Root Colors
  01) Global Resets & Base
  02) Header & Nav (Desktop/Mobile)
  03) Hero
  04) Custom Decorations (flip-cart, circle waves, title-with-dots)
  05) Sections:
  - About, Stats, Clients, Features, Services, Call-to-Action
  - Branches
  - Pricing (Gift Vouchers)
  - FAQ
  - Footer
  - Portfolio/Service Details
  06) Helpers & Utilities
  07) Preloader, Scroll-Top, Page Titles
  08) Media Queries
  ======================================================================*/

/**
* Template Name: Avilon
* Template URL: https://bootstrapmade.com/avilon-bootstrap-landing-page-template/
* Updated: Aug 07 2024 with Bootstrap v5.3.3
* Author: BootstrapMade.com
* License: https://bootstrapmade.com/license/
*/

/*--------------------------------------------------------------
# Font & Color Variables
# Help: https://bootstrapmade.com/color-system/
--------------------------------------------------------------*/
/* Fonts */
:root{
  --default-font: "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --heading-font: "Noto Kufi Arabic", sans-serif;
  --nav-font: "Noto Kufi Arabic", sans-serif;
}

/* Global Colors - The following color variables are used throughout the website. Updating them here will change the color scheme of the entire website */
:root {
  --background-color: #ffffff;
  --default-color: #212529;
  --heading-color: #6BBE2E;   /* الأخضر */
  --accent-color: #91278F;    /* البنفسجي */
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav Menu Colors */
:root {
  --nav-color: rgba(255, 255, 255, 0.9);   /* الروابط باللون الأبيض شبه شفاف */
  --nav-hover-color: #ffffff;              /* الروابط تتحول لأبيض صافي عند المرور */
  --nav-mobile-background-color: #6BBE2E;  /* خلفية القائمة في الجوال أخضر */
  --nav-dropdown-background-color: #ffffff;/* خلفية عناصر المنسدلة أبيض */
  --nav-dropdown-color: #212529;           /* النصوص في المنسدلة رمادي غامق */
  --nav-dropdown-hover-color: #91278F;     /* عند المرور تتحول لبنفسجي */
}

/* Light Background */
.light-background {
  --background-color: #f7fdf4;  /* أخضر فاتح جداً للخلفية */
  --surface-color: #ffffff;     /* عناصر فوقها تبقى بيضاء */
}

/* Dark Background */
.dark-background {
  --background-color: #6BBE2E;  /* الخلفية الرئيسية أخضر */
  --default-color: #ffffff;     /* النصوص باللون الأبيض */
  --heading-color: #ffffff;     /* العناوين أبيض */
  --surface-color: #91278F;     /* العناصر البارزة بنفسجي */
  --contrast-color: #ffffff;    /* النصوص المتباينة أبيض */
}

/* Smooth scroll */
:root {
  scroll-behavior: smooth;
}
.flip-cart {
  transform: scaleX(-1);  /* يعكس الأيقونة أفقياً */
  display: inline-block;  /* مهم عشان يطبق التحويل */
  font-size: 32px;
  color: #8e24aa;
  margin-right: 8px;
  vertical-align: middle;
}

/* حجم ومكان الحاوية */
.circle-wave-wrap{
  width: 340px;                /* غيّر الحجم كما تريد */
  aspect-ratio: 1/1;
  margin-inline-start: auto;   /* يلصقها يمينًا مع RTL */
}
.title-with-dots {
  position: relative;
  color: #fff;               /* النص الأساسي أبيض */
  font-size: 60px;
  font-weight: 700;
  font-family: 'Tajawal', 'Noto Kufi Arabic', sans-serif;
}

.title-with-dots::after {
  content: "مكانك الأول للتسوق"; /* نسخة ثانية من النص */
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #8e24aa;            /* بنفسجي مثل اللوقو */
  mix-blend-mode: multiply;  /* الدمج */
  pointer-events: none;
}

/* الـSVG */
.circle-waves{ width:100%; height:100%; display:block; }

/* لون وسمك الموجة (الأخضر) */
.cw-stroke{
  fill: none;
  stroke: var(--heading-color);
  stroke-width: 3;
  stroke-opacity: .35;
}

/* ثلاث موجات متتابعة مثل الـHero waves */
.wave{ transform-origin: 50% 50%; animation: cw-ripple 3.8s ease-out infinite; }
.wave2{ animation-delay: 1.2s; }
.wave3{ animation-delay: 2.4s; }

@keyframes cw-ripple{
  0%   { transform: scale(.7);  opacity:.35; }
  70%  { opacity: 0; }
  100% { transform: scale(1.9); opacity: 0; }
}

/* صورة قسم مميزاتنا — دائرة */
.features-2 .feature-photo{
  display:block;
  width:100%;
  max-width: 340px;     /* حجم الدائرة */
  aspect-ratio: 1 / 1;  /* يحافظ على دائرة مثالية */
  border-radius: 50%;
  object-fit: cover;    /* قَصّ أنيق لو كانت الصورة مستطيلة */
  box-shadow: 0 10px 24px rgba(0,0,0,.06);
  /* حدّ اختياري بلون الهوية:
  border: 4px solid var(--heading-color);
  */
}

/*hedr*/ 
 
/* ===== Header: كل شي يمين + تكبير الشعار ===== */

/* اجمع العناصر يمين الهيدر */
.header .container-xl{
  justify-content: flex;      /* يرصّهم يمين */
  gap: 20px;                      /* مسافة بين الشعار والقائمة */
}

/* خلّي الشعار آخر عنصر (أقصى اليمين) والقائمة قبله */
.header #navmenu{ order: 1; }
.header .logo    { order: 2; }

/* كبّر الشعار شوي */
.header .logo img{
  height: 68px;                   /* كان ~56px */
  width: auto;
  transition: height .2s ease;
}

/* عند التصغير أثناء التمرير (لو القالب يضيف .scrolled) */
.header.scrolled .logo img{ height: 60px; }

/* خَلِّ روابط القائمة مصطفّة يمين */
.navmenu ul{
  display: flex;
  align-items: center;
  gap: 18px;
  justify-content: flex-end;      /* يمين داخل بلوك القائمة */
}
.mobile-nav-toggle {
  background: transparent !important; /* يخفي الخلفية */
  border: none !important;            /* يشيل الإطار */
  outline: none !important;           /* يشيل التحديد */
  box-shadow: none !important;        /* يشيل أي ظل */
  color: #fff;                        /* يخلي الأيقونة بيضاء */
  font-size: 28px;                    /* حجم مناسب */
  cursor: pointer;
}

/* ألوان التفاعل كما هي */
.navmenu a{ white-space: nowrap; }

/* ===== موبايل: نرجّع التموضع الافتراضي عشان زر القائمة ===== */
@media (max-width: 991.98px){
  .header .container-xl{
  justify-content: space-between;  /* شعار يمين، زر القائمة يسار */
  gap: 12px;
  }
  .header #navmenu{ order: 2; }       /* القائمة (زر الهامبرغر) تبقى بعد الشعار */
  .header .logo    { order: 1; }
/* NOTE: duplicate selector kept intentionally: `\.header\s+\.logo\s+img\s*\{` (do not remove; later rule overrides earlier) */
  .header .logo img{ height: 62px; }  /* شوي أصغر على الموبايل */
}

/* ترتيب وتوازن عناصر الفروع */
#branches .branch-box{
  background: transparent;           /* نفس ستايل stats */
  padding: 14px 10px;
  border-radius: 10px;
  min-height: 170px;                 /* يضمن تساوي الارتفاع */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .35rem;
}

#branches .branch-icon{
  font-size: 2.2rem;                 /* أيقونة ثابتة الحجم */
  line-height: 1;
  color: var(--accent-color);        /* البنفسجي */
  margin-bottom: .25rem;
}

#branches .branch-title{
  margin: 0;
  font-size: 1.25rem;
  color: var(--heading-color);       /* الأخضر */
  font-weight: 800;
}

#branches .branch-sub{
  margin: 0 0 .4rem;
  color: var(--default-color);        /* البنفسجي */
  font-size: .95rem;
}

#branches .btn{
  padding: .25rem .6rem;
  border-radius: 8px;
  white-space: nowrap;
}
.btn-branch {
  display: inline-block;
  padding: 10px 25px;
  border-radius: 50px;
  background: #6f2dbd;   /* بنفسجي */
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease-in-out;
  text-decoration: none;
}

.btn-branch:hover {
  background: #fff;
  color: #6f2dbd;
  border: 2px solid #6f2dbd;
}

/* فراغ فوق/تحت للمسافة مع الأقسام الأخرى */
#branches.section{ padding: 10px; padding-bottom: 10px; }

/* ===== About Section ===== */

.about h2 {
  color: #6BBE2E;   /* غيّر اللون للبنفسجي */
  font-weight: 700;
}

.about .lead,
.about p {
  color: #333;      /* لون نصوص الفقرة */
  font-size: 1.05rem;
  line-height: 1.7;
}

/* الزر */
.about .btn-readmore {
  display: inline-block;
  padding: 10px 22px;
  background: #91278F;   /* بنفسجي */
  color: #fff;
  border-radius: 6px;
  font-weight: 600;
  transition: all 0.3s ease;
  text-decoration: none;
}

.about .btn-readmore:hover {
  background: #6BBE2E;   /* أخضر عند الهوفر */
  color: #fff;
}

/*--------------------------------------------------------------
# General Styling & Shared Classes
--------------------------------------------------------------*/
body {
  color: var(--default-color);
  background-color: var(--background-color);
  font-family: var(--default-font);
}

a {
  color: var(--accent-color);
  text-decoration: none;
  transition: 0.3s;
}

a:hover {
  color: color-mix(in srgb, var(--accent-color), transparent 25%);
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--heading-color);
  font-family: var(--heading-font);
}

/* PHP Email Form Messages
------------------------------*/
.php-email-form .error-message {
  display: none;
  background: #df1529;
  color: #ffffff;
  text-align: left;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .sent-message {
  display: none;
  color: #ffffff;
  background: #059652;
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
  font-weight: 600;
}

.php-email-form .loading {
  display: none;
  background: var(--surface-color);
  text-align: center;
  padding: 15px;
  margin-bottom: 24px;
}

.php-email-form .loading:before {
  content: "";
  display: inline-block;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  margin: 0 10px -6px 0;
  border: 3px solid var(--accent-color);
  border-top-color: var(--surface-color);
  animation: php-email-form-loading 1s linear infinite;
}

@keyframes php-email-form-loading {
  0% {
  transform: rotate(0deg);
  }

  100% {
  transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: rgba(255, 255, 255, 0);
  --default-color: #ffffff;
  --heading-color: #ffffff;
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 15px 0;
  transition: all 0.5s;
  z-index: 997;
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 80px;   /* قلل الحجم هنا */
  height: auto;       /* يخلي الطول يتناسب */
  width: auto;        /* يخلي العرض يتناسب */
  margin-right: 8px;
}
.header .logo img {
  display: block;        /* يمنع أي line-height إضافية */
  height: 40px;          /* أو استخدم max-height لو تحب */
  width: auto;
}

/* لو تبي تكبر الشعار شوي بالموبايل بدون ما يكبر الشريط */
@media (max-width: 768px) {
  .header .logo img {
  height: 44px;        /* جرّب 42–46px حسب المناسبة */
  }
}

/* للموبايل: صغّر أكثر */
@media (max-width: 768px) {
  .header {
  padding: 6px 0;   /* هذا اللي يرجّع سمك الشريط مثل أول */
  }
}

.header .logo h1 {
  font-size: 30px;
  margin: 0;
  font-weight: 400;
  text-transform: uppercase;
  color: var(--heading-color);
}

/* Global Header on Scroll
------------------------------*/
.scrolled .header {
  --background-color: #6BBE2E;
}

/*--------------------------------------------------------------
# Navigation Menu
--------------------------------------------------------------*/
/* Navmenu - Desktop */
@media (min-width: 1200px) {
  .navmenu {
  padding: 0;
  }

  .navmenu ul {
  margin: 0;
  padding: 0;
  display: flex;
  list-style: none;
  align-items: center;
  }

  .navmenu li {
  position: relative;
  }

  .navmenu a,
  .navmenu a:focus {
  color: var(--nav-color);
  padding: 18px 15px;
  font-size: 16px;
  font-family: var(--nav-font);
  font-weight: 400;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
  transition: 0.3s;
  }

  .navmenu li:last-child a {
  padding-right: 0;
  }

  .navmenu li:hover>a,
  .navmenu .active,
  .navmenu .active:focus {
  color: var(--nav-hover-color);
  }

  .navmenu .dropdown ul {
  margin: 0;
  padding: 10px 0;
  background: var(--nav-dropdown-background-color);
  display: block;
  position: absolute;
  visibility: hidden;
  left: 14px;
  top: 130%;
  opacity: 0;
  transition: 0.3s;
  border-radius: 4px;
  z-index: 99;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu .dropdown ul li {
  min-width: 200px;
  }

  .navmenu .dropdown ul a {
  padding: 10px 20px;
  font-size: 15px;
  text-transform: none;
  color: var(--nav-dropdown-color);
  }

  .navmenu .dropdown ul a i {
  font-size: 12px;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active:hover,
  .navmenu .dropdown ul li:hover>a {
  color: var(--nav-dropdown-hover-color);
  }

  .navmenu .dropdown:hover>ul {
  opacity: 1;
  top: 100%;
  visibility: visible;
  }

  .navmenu .dropdown .dropdown ul {
  top: 0;
  left: -90%;
  visibility: hidden;
  }

  .navmenu .dropdown .dropdown:hover>ul {
  opacity: 1;
  top: 0;
  left: -100%;
  visibility: visible;
  }
}

/* Navmenu - Mobile */
@media (max-width: 1199px) {
  .mobile-nav-toggle {
  color: var(--nav-color);
  font-size: 28px;
  line-height: 0;
  margin-right: 10px;
  cursor: pointer;
  transition: color 0.3s;
  }

  .navmenu {
  padding: 0;
  z-index: 9997;
  }

  .navmenu ul {
  display: none;
  list-style: none;
  position: absolute;
  inset: 60px 20px 20px 20px;
  padding: 10px 0;
  margin: 0;
  border-radius: 6px;
  background-color: var(--nav-mobile-background-color);
  overflow-y: auto;
  transition: 0.3s;
  z-index: 9998;
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.1);
  }

  .navmenu a,
  .navmenu a:focus {
  color: var(--nav-dropdown-color);
  padding: 10px 20px;
  font-family: var(--nav-font);
  font-size: 17px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  white-space: nowrap;
  transition: 0.3s;
  }

  .navmenu a i,
  .navmenu a:focus i {
  font-size: 12px;
  line-height: 0;
  margin-left: 5px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: 0.3s;
  background-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  }

  .navmenu a i:hover,
  .navmenu a:focus i:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
  color: var(--nav-dropdown-hover-color);
  }

  .navmenu .active i,
  .navmenu .active:focus i {
  background-color: var(--accent-color);
  color: var(--contrast-color);
  transform: rotate(180deg);
  }

  .navmenu .dropdown ul {
  position: static;
  display: none;
  z-index: 99;
  padding: 10px 0;
  margin: 10px 20px;
  background-color: var(--nav-dropdown-background-color);
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  box-shadow: none;
  transition: all 0.5s ease-in-out;
  }

  .navmenu .dropdown ul ul {
  background-color: rgba(33, 37, 41, 0.1);
  }

  .navmenu .dropdown>.dropdown-active {
  display: block;
  background-color: rgba(33, 37, 41, 0.03);
  }

  .mobile-nav-active {
  overflow: hidden;
  }

  .mobile-nav-active .mobile-nav-toggle {
  color: #fff;
  position: absolute;
  font-size: 32px;
  top: 15px;
  right: 15px;
  margin-right: 0;
  z-index: 9999;
  }

  .mobile-nav-active .navmenu {
  position: fixed;
  overflow: hidden;
  inset: 0;
  background: rgba(33, 37, 41, 0.8);
  transition: 0.3s;
  }

  .mobile-nav-active .navmenu>ul {
  display: block;
  }
}

/*--------------------------------------------------------------
.footer-logo {
  max-width: 120px;
  height: auto;
}

.sapt-footer {
  background: #f7fdf4; /* أخضر فاتح */
  color: #212529;
}

.sapt-footer a {
  color: #212529;
  text-decoration: none;
}

.sapt-footer a:hover {
  color: #91278F; /* بنفسجي */
}

.sapt-ft-title {
  font-weight: 700;
  margin-bottom: 12px;
}

.sapt-ft-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sapt-ft-list li {
  margin: 6px 0;
}

.sapt-divider {
  border-color: rgba(0,0,0,.1);
  margin: 24px 0;
}

.ltr {
  direction: ltr;
  unicode-bidi: embed;
  display: inline-block;
}
.footer-logo {
  width: 120px;        /* حجم مناسب */
  height: auto;        /* يحافظ على التناسق */
  display: block;
  margin-bottom: 10px;
  border-radius: 12px; /* زوايا دائرية خفيفة */
}

/* خيارات للتحكم أكثر */
.rounded-sm { border-radius: 6px; }   /* خفيفة */
.rounded-md { border-radius: 12px; }  /* متوسطة */
.rounded-lg { border-radius: 24px; }  /* كبيرة */
.rounded-full { border-radius: 50%; } /* دائرية تمامًا */

/* أيقونات السوشال */
.social-icons {
  margin-top: 12px;
  display: flex;
  gap: 18px;                   /* المسافة بين الأيقونات */
}

.social-icons a {
  color: #198754;              /* أخضر */
  font-size: 25px;             /* حجم الأيقونة */
  transition: 0.3s;
}

.social-icons a:hover {
  color: #91278F;              /* بنفسجي عند الهوفر */
  transform: scale(1.15);      /* تكبير خفيف */
}

/* للجوال فقط */
@media (max-width: 576px) {
  .social-icons {
    justify-content: center;     /* توسيط الأيقونات */
    gap: 12px;                   /* مسافة أصغر بين الأيقونات */
    margin-top: 15px;
    flex-wrap: wrap;             /* ينزلون سطر ثاني إذا المساحة ضاقت */
  }

  .social-icons a {
    font-size: 26px;             /* تكبير الأيقونات شوي للجوال */
  }

  .sapt-footer {
    text-align: center;          /* توسيط كل النصوص داخل الفوتر */
  }

  .sapt-ft-title {
    margin-top: 20px;            /* مسافة فوق العناوين */
  }

  .footer-logo {
    margin-left: auto;           /* يخليها في المنتصف */
    margin-right: auto;
    display: block;              /* يخليها عنصر بلوك */
  }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  overflow: hidden;
  background: var(--background-color);
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid #ffffff;
  border-color: var(--accent-color) transparent var(--accent-color) transparent;
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1.5s linear infinite;
}

@keyframes animate-preloader {
  0% {
  transform: rotate(0deg);
  }

  100% {
  transform: rotate(360deg);
  }
}

/*--------------------------------------------------------------
# Scroll Top Button
--------------------------------------------------------------*/
.scroll-top {
  position: fixed;
  visibility: hidden;
  opacity: 0;
  right: 15px;
  bottom: 15px;
  z-index: 99999;
  background-color: var(--accent-color);
  width: 40px;
  height: 40px;
  border-radius: 4px;
  transition: all 0.4s;
}

.scroll-top i {
  font-size: 24px;
  color: var(--contrast-color);
  line-height: 0;
}

.scroll-top:hover {
  background-color: color-mix(in srgb, var(--accent-color), transparent 20%);
  color: var(--contrast-color);
}

.scroll-top.active {
  visibility: visible;
  opacity: 1;
}

/*--------------------------------------------------------------
# Disable aos animation delay on mobile devices
--------------------------------------------------------------*/
@media screen and (max-width: 768px) {
  [data-aos-delay] {
  transition-delay: 0 !important;
  }
}

/*--------------------------------------------------------------
# Global Page Titles & Breadcrumbs
--------------------------------------------------------------*/
.page-title {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 160px 0 80px 0;
  text-align: center;
  position: relative;
}

.page-title:before {
  content: "";
  background-color: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
}

.page-title h1 {
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 10px;
}

.page-title .breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  justify-content: center;
  padding: 0;
  margin: 0;
  font-size: 16px;
  font-weight: 400;
}

.page-title .breadcrumbs ol li+li {
  padding-left: 10px;
}

.page-title .breadcrumbs ol li+li::before {
  content: "/";
  display: inline-block;
  padding-right: 10px;
  color: color-mix(in srgb, var(--default-color), transparent 50%);
}

/*--------------------------------------------------------------
# Global Sections
--------------------------------------------------------------*/
section,
.section {
  color: var(--default-color);
  background-color: var(--background-color);
  padding: 60px 0;
  scroll-margin-top: 90px;
  overflow: clip;
}

@media (max-width: 1199px) {

  section,
  .section {
  scroll-margin-top: 66px;
  }
}

/*--------------------------------------------------------------
# Global Section Titles
--------------------------------------------------------------*/
.section-title {
  text-align: center;
  padding-bottom: 60px;
  position: relative;
}

.section-title h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  position: relative;
}

.section-title h2:after {
  content: "";
  position: absolute;
  display: block;
  width: 50px;
  height: 3px;
  background: var(--accent-color);
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
}

.section-title p {
  margin-bottom: 0;
}

/*--------------------------------------------------------------
# Hero Section
--------------------------------------------------------------*/
.hero {
  width: 100%;
  overflow: hidden;
  position: relative;
  background: linear-gradient(0deg, var(--background-color) 0%, color-mix(in srgb, var(--background-color) 90%, white 10%) 100%);
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

.hero .carousel-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  position: relative;
  min-height: 70vh;
  padding-top: 60px;
}

.hero h2 {
  margin-bottom: 30px;
  font-size: 48px;
  font-weight: 700;
}

.hero p {
  max-width: 80%;
  animation-delay: 0.4s;
  margin: 0 auto 30px auto;
}

.hero .carousel-control-prev,
.hero .carousel-control-next {
  width: 10%;
}

.hero .carousel-control-next-icon,
.hero .carousel-control-prev-icon {
  background: none;
  font-size: 48px;
  line-height: 1;
  width: auto;
  height: auto;
}

.hero .btn-get-started {
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  transition: 0.5s;
  line-height: 1;
  margin: 10px;
  animation-delay: 0.8s;
  color: var(--default-color);
  border: 2px solid var(--accent-color);
}

.hero .btn-get-started:hover {
  background: var(--accent-color);
  color: var(--contrast-color);
  text-decoration: none;
}

@media (min-width: 1024px) {
  .hero p {
  max-width: 60%;
  }

  .hero .carousel-control-prev,
  .hero .carousel-control-next {
  width: 5%;
  }
}

@media (max-width: 768px) {
  .hero .carousel-container {
  min-height: 90vh;
  }

  .hero h2 {
  font-size: 28px;
  }
}

.hero .hero-waves {
  display: block;
  width: 100%;
  height: 60px;
  position: relative;
}

.hero .wave1 use {
  animation: move-forever1 10s linear infinite;
  animation-delay: -2s;
  fill: var(--default-color);
  opacity: 0.6;
}

.hero .wave2 use {
  animation: move-forever2 8s linear infinite;
  animation-delay: -2s;
  fill: var(--default-color);
  opacity: 0.4;
}

.hero .wave3 use {
  animation: move-forever3 6s linear infinite;
  animation-delay: -2s;
  fill: var(--default-color);
}

@keyframes move-forever1 {
  0% {
  transform: translate(85px, 0%);
  }

  100% {
  transform: translate(-90px, 0%);
  }
}

@keyframes move-forever2 {
  0% {
  transform: translate(-90px, 0%);
  }

  100% {
  transform: translate(85px, 0%);
  }
}

@keyframes move-forever3 {
  0% {
  transform: translate(-90px, 0%);
  }

  100% {
  transform: translate(85px, 0%);
  }
}
.hero-logo {
  width: 300px;      /* غيّر الرقم لتصغير/تكبير */
  height: auto;
  margin-bottom: 4px; /* مسافة أسفل الصورة */
}
/* NOTE: duplicate selector kept intentionally: `\.hero-logo\s*\{` (do not remove; later rule overrides earlier) */
.hero-logo {
  filter: drop-shadow(0px 4px 6px rgba(0,0,0,0.2));
}

/*--------------------------------------------------------------
/*<!-- Stats Section -->*/
.stats {
  background: #f9f9f9;
  padding: 60px 0;
}

.stats-icon {
  font-size: 40px;
  color: var(--accent-color);
  margin-bottom: 15px;
  display: block;
}

.stats h3 {
  font-size: 28px;
  font-weight: bold;
  margin: 0;
  color: var(--heading-color);
}

.stats p {
  font-size: 16px;
  color: #555;
  margin: 0;
}

/*--------------------------------------------------------------
# Clients Section
--------------------------------------------------------------*/
.clients {
  padding: 20px 0;
}

.clients .client-logo {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.clients .client-logo img {
  padding: 20px 40px;
  max-width: 90%;
  transition: 0.3s;
  opacity: 0.5;
  filter: grayscale(100);
}

.clients .client-logo img:hover {
  filter: none;
  opacity: 1;
}

@media (max-width: 640px) {
  .clients .client-logo img {
  padding: 20px;
  }
}

/*--------------------------------------------------------------
# Features 2 Section
--------------------------------------------------------------*/
.features-2 .features-image {
  position: relative;
}

.features-2 .features-item h4 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 5px 0;
}

.features-2 .features-item i {
  font-size: 48px;
  color: var(--accent-color);
  margin-left: 20px;
  line-height: 0;
}

.features-2 .features-item p {
  font-size: 15px;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  margin: 0;
}

/*--------------------------------------------------------------
# Services Section
--------------------------------------------------------------*/
.services .service-item {
  background-color: var(--surface-color);
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  padding: 80px 20px;
  transition: border ease-in-out 0.3s;
  height: 100%;
}

.services .service-item .icon {
  margin: 0 auto;
  width: 64px;
  height: 64px;
  background: var(--accent-color);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: 0.3s;
}

.services .service-item .icon i {
  color: var(--contrast-color);
  font-size: 28px;
  transition: ease-in-out 0.3s;
}

.services .service-item h3 {
  font-weight: 700;
  margin: 10px 0 15px 0;
  font-size: 22px;
  transition: 0.3s;
}

.services .service-item p {
  line-height: 24px;
  font-size: 14px;
  margin-bottom: 0;
}

.services .service-item:hover {
  border-color: var(--accent-color);
}

.services .service-item:hover h3 {
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Call To Action Section
--------------------------------------------------------------*/
.call-to-action {
  padding: 80px 0;
  position: relative;
  clip-path: inset(0);
}

.call-to-action img {
  position: fixed;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.call-to-action:before {
  content: "";
  background: color-mix(in srgb, var(--background-color), transparent 50%);
  position: absolute;
  inset: 0;
  z-index: 2;
}

.call-to-action .container {
  position: relative;
  z-index: 3;
}

.call-to-action h3 {
  font-size: 28px;
  font-weight: 700;
  color: var(--default-color);
}

.call-to-action p {
  color: var(--default-color);
}

.call-to-action .cta-btn {
  font-family: var(--heading-font);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-block;
  padding: 12px 40px;
  border-radius: 5px;
  transition: 0.5s;
  margin: 10px;
  border: 2px solid var(--contrast-color);
  color: var(--contrast-color);
}

.call-to-action .cta-btn:hover {
  background: var(--accent-color);
  border: 2px solid var(--accent-color);
}

/*--------------------------------------------------------------
# Pricing Section
--------------------------------------------------------------*/
.pricing {
  padding: 60px 0 120px 0;
}

.pricing .section-title {
  margin-bottom: 40px;
}

.pricing .pricing-item {
  background-color: var(--surface-color);
  box-shadow: 0 3px 20px -2px rgba(0, 0, 0, 0.1);
  padding: 60px 40px;
  height: 100%;
  position: relative;
  border-radius: 15px;
}

.pricing h3 {
  font-weight: 600;
  margin-bottom: 15px;
  font-size: 20px;
  text-align: center;
}

.pricing .icon {
  margin: 30px auto 20px auto;
  width: 70px;
  height: 70px;
  background: var(--accent-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s;
  transform-style: preserve-3d;
}

.pricing .icon i {
  color: var(--background-color);
  font-size: 28px;
  transition: ease-in-out 0.3s;
  line-height: 0;
}

.pricing .icon::before {
  position: absolute;
  content: "";
  height: 86px;
  width: 86px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 80%);
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-1px);
}

.pricing .icon::after {
  position: absolute;
  content: "";
  height: 102px;
  width: 102px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent-color), transparent 90%);
  transition: all 0.3s ease-out 0s;
  transform: translateZ(-2px);
}

.pricing h4 {
  font-size: 48px;
  color: var(--accent-color);
  font-weight: 700;
  font-family: var(--heading-font);
  margin-bottom: 25px;
  text-align: center;
}

.pricing h4 sup {
  font-size: 28px;
}

.pricing h4 span {
  color: color-mix(in srgb, var(--default-color), transparent 50%);
  font-size: 18px;
  font-weight: 400;
}

.pricing ul {
  padding: 20px 0;
  list-style: none;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  text-align: left;
  line-height: 20px;
}

.pricing ul li {
  padding: 10px 0;
  display: flex;
  align-items: center;
}

.pricing ul i {
  color: #059652;
  font-size: 24px;
  padding-right: 3px;
}

.pricing ul .na {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.pricing ul .na i {
  color: color-mix(in srgb, var(--default-color), transparent 70%);
}

.pricing ul .na span {
  text-decoration: line-through;
}

.pricing .buy-btn {
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  display: inline-block;
  padding: 8px 40px 10px 40px;
  border-radius: 50px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 80%);
  transition: none;
  font-size: 16px;
  font-weight: 600;
  font-family: var(--heading-font);
  transition: 0.3s;
}

.pricing .buy-btn:hover {
  background-color: var(--accent-color);
  color: var(--contrast-color);
}

.pricing .featured {
  z-index: 10;
  border: 3px solid var(--accent-color);
}

@media (min-width: 992px) {
  .pricing .featured {
  transform: scale(1.15);
  }
}

/*--------------------------------------------------------------
# Faq Section
--------------------------------------------------------------*/
.faq .faq-container .faq-item {
  background-color: var(--surface-color);
  position: relative;
  padding: 20px;
  margin-bottom: 15px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
  border-radius: 5px;
  overflow: hidden;
}

.faq .faq-container .faq-item:last-child {
  margin-bottom: 0;
}

.faq .faq-container .faq-item h3 {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  margin: 0 30px 0 0;
  transition: 0.3s;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.faq .faq-container .faq-item h3 .num {
  color: var(--accent-color);
  padding-right: 5px;
}

.faq .faq-container .faq-item h3:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-item .faq-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: 0.3s ease-in-out;
  visibility: hidden;
  opacity: 0;
}

.faq .faq-container .faq-item .faq-content p {
  margin-bottom: 0;
  overflow: hidden;
}

.faq .faq-container .faq-item .faq-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 16px;
  line-height: 0;
  transition: 0.3s;
  cursor: pointer;
}

.faq .faq-container .faq-item .faq-toggle:hover {
  color: var(--accent-color);
}

.faq .faq-container .faq-active {
  background-color: color-mix(in srgb, var(--accent-color), transparent 97%);
  border-color: color-mix(in srgb, var(--accent-color), transparent 80%);
}

.faq .faq-container .faq-active h3 {
  color: var(--accent-color);
}

.faq .faq-container .faq-active .faq-content {
  grid-template-rows: 1fr;
  visibility: visible;
  opacity: 1;
  padding-top: 10px;
}

.faq .faq-container .faq-active .faq-toggle {
  transform: rotate(90deg);
  color: var(--accent-color);
}
/*جوال */ 
/* ===== Footer – Mobile-first tidy ===== */
/* أساس الفوتر للجوال */
#footer.sapt-footer{
  padding: 28px 0 18px;
  text-align:center;
  background: #f7fdf4;         /* نفس خلفية الفروع */
  color: #212529;
}

#footer.sapt-footer .sitename{
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--heading-color); /* أخضر العناوين */
  margin-bottom: .35rem;
}

#footer.sapt-footer > .container > p{
  max-width: 28rem;
  margin: 0 auto 10px;
  font-size: .95rem;
}

/* سوشيال */
#footer.sapt-footer .social-links{ gap:10px; margin:10px 0 12px; }
#footer.sapt-footer .social-links a{
  width:42px; height:42px; border-radius:50%;
  display:inline-flex; align-items:center; justify-content:center;
  background: rgba(145,39,143,.08);
  color: var(--accent-color);
  font-size:1.2rem; transition:.2s ease;
}
#footer.sapt-footer .social-links a:hover{ background:var(--accent-color); color:#fff; }

/* معلومات السجل/العنوان */
#footer.sapt-footer .mt-4.small{
  font-size:.95rem; line-height:1.8;
  max-width:28rem; margin:4px auto 0;
}
#footer.sapt-footer .mt-4.small div{ margin-bottom:4px; }
#footer.sapt-footer .mt-4.small a{
  color: var(--accent-color);
  text-decoration: underline; text-underline-offset:2px;
}

/* فاصل وحقوق */
#footer.sapt-footer .container > .container{
  border-top:1px solid rgba(0,0,0,.06);
  margin-top:14px; padding-top:12px;
}
#footer.sapt-footer .copyright,
#footer.sapt-footer .credits{ font-size:.86rem; color:#6b7280; }

/* شاشة أكبر ≥768px: عمودين RTL */
@media (min-width:768px){
  #footer.sapt-footer{ padding:40px 0 22px; text-align:initial; }
  #footer.sapt-footer .sitename{ font-size:2rem; text-align:center; }
  #footer.sapt-footer > .container > p{ font-size:1rem; margin-bottom:12px; text-align:center; }

  #footer.sapt-footer .mt-4.small{
    max-width:720px; margin-inline:auto;
    display:grid; grid-template-columns:1fr 1fr;
    gap:6px 24px; direction:rtl;
  }
  #footer.sapt-footer .social-links{ justify-content:center; gap:12px; }
}

/* ثبّت اتجاه الأرقام */
#footer.sapt-footer .ltr{ direction:ltr; unicode-bidi:embed; display:inline-block; }

/*--------------------------------------------------------------
# Portfolio Details Section
--------------------------------------------------------------*/
.portfolio-details .portfolio-details-slider img {
  width: 100%;
}

.portfolio-details .portfolio-details-slider .swiper-pagination {
  margin-top: 20px;
  position: relative;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: color-mix(in srgb, var(--default-color), transparent 85%);
  opacity: 1;
}

.portfolio-details .portfolio-details-slider .swiper-pagination .swiper-pagination-bullet-active {
  background-color: var(--accent-color);
}

.portfolio-details .portfolio-info {
  background-color: var(--surface-color);
  padding: 30px;
  box-shadow: 0px 0 30px rgba(0, 0, 0, 0.1);
}

.portfolio-details .portfolio-info h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 85%);
}

.portfolio-details .portfolio-info ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.portfolio-details .portfolio-info ul li+li {
  margin-top: 10px;
}

.portfolio-details .portfolio-description {
  padding-top: 30px;
}

.portfolio-details .portfolio-description h2 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 20px;
}

.portfolio-details .portfolio-description p {
  padding: 0;
  color: color-mix(in srgb, var(--default-color), transparent 30%);
}

/*--------------------------------------------------------------
# Service Details Section
--------------------------------------------------------------*/
.service-details .services-list {
  background-color: var(--surface-color);
  padding: 10px 30px;
  border: 1px solid color-mix(in srgb, var(--default-color), transparent 90%);
  margin-bottom: 20px;
}

.service-details .services-list a {
  display: block;
  line-height: 1;
  padding: 8px 0 8px 15px;
  border-left: 3px solid color-mix(in srgb, var(--default-color), transparent 70%);
  margin: 20px 0;
  color: color-mix(in srgb, var(--default-color), transparent 20%);
  transition: 0.3s;
}

.service-details .services-list a.active {
  color: var(--heading-color);
  font-weight: 700;
  border-color: var(--accent-color);
}

.service-details .services-list a:hover {
  border-color: var(--accent-color);
}

.service-details .services-img {
  margin-bottom: 20px;
}

.service-details h3 {
  font-size: 26px;
  font-weight: 700;
}

.service-details h4 {
  font-size: 20px;
  font-weight: 700;
}

.service-details p {
  font-size: 15px;
}

.service-details ul {
  list-style: none;
  padding: 0;
  font-size: 15px;
}

.service-details ul li {
  padding: 5px 0;
  display: flex;
  align-items: center;
}

.service-details ul i {
  font-size: 20px;
  margin-right: 8px;
  color: var(--accent-color);
}

/*--------------------------------------------------------------
# Starter Section Section
--------------------------------------------------------------*/
/* ارتفاع الهيدر + الموجة (عدّلها لو اختلفت عندك) */
:root{
  --header-h: 500px;   /* ارتفاع الهيدر fixed-top تقريباً */
  --waves-h: 0px;    /* ارتفاع الـ SVG للأمواج */
}

/* ضبط الهيرو على الشاشات الصغيرة */
@media (max-width: 100px){

  /* خلي القسم يبدأ بعد الهيدر مباشرة ويحتفظ بمساحة الموجة تحت */
  .hero{
  padding-top: calc(var(--header-h) + 8px);
  padding-bottom: var(--waves-h);
  justify-content: flex-start; /* نلغي الدفع لأسفل */
  }

  /* وسط المحتوى عموديًا داخل المساحة المتبقية بدون فراغات */
  .hero .carousel-container{
  min-height: calc(100vh - var(--header-h) - var(--waves-h) - 20px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;    /* تمركز عمودي */
  padding-top: 0;             /* نشيل البادنج العلوي الزائد */
  }

  /* تحجيم اللوجو والنصوص للجوال */
  .hero .hero-logo{ width: 100px; margin: 0 0 12px 0; }
  .hero h2{ font-size: 26px; margin: 0 0 12px 0; }
  .hero p{ max-width: 90%; margin: 0 0 16px 0; }
}
/* الهيدر شفاف فوق الهيرو */
.header {
  background: transparent !important;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 10px 0;
  transition: background 0.3s, box-shadow 0.3s;
}

/* الروابط أبيض فوق الخلفية الخضراء للـ hero */
.header .navmenu a {
  color: #fff !important;
  font-weight: 600;
}
.header .navmenu a:hover,
.header .navmenu .active {
  color: #ffeb3b !important; /* أصفر فاتح عند المرور */
}

/* الشعار أبيض (أو بدّل لصورة شفافة) */
.header .logo img {
  filter: brightness(0) invert(1); /* يحول الشعار للأبيض */
  height: 52px;
}

/* لما ينزل المستخدم، يتحول الهيدر لشريط أخضر صغير */
.scrolled .header {
  background: #6BBE2E !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  padding: 6px 0;
}
/* === Desktop-only header polish (لن يؤثر على الجوال) === */
@media (min-width: 1200px){

  /* فلّ عرض الهيدر بدون زوايد يمين/يسار */
  .header,
  .header .container,
  .header .container-xl{
    max-width: 100% !important;
    width: 100% !important;
    margin-right: 0 !important;
    margin-left: 0 !important;
    padding-right: 0 !important;
    padding-left: 0 !important;
  }

  /* ترتيب العناصر: لوقو يمين + روابط بجنبه */
  .header .container,
  .header .container-xl{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .header .logo   { order: 1; }
  .header #navmenu{ order: 2; flex: 1; }

  /* حجم اللوقو للديسكتوب فقط */
  .header .logo img{
    height: 52px;
    width: auto;
    display: block;
    object-fit: contain;
    image-rendering: -webkit-optimize-contrast;
    filter: drop-shadow(0 1px 0 rgba(0,0,0,.06));
    margin: 0 8px 0 0;
  }

  /* قائمة الروابط بجانب اللوقو */
  .navmenu ul{
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 22px;
    margin: 0; padding: 0; list-style: none;
  }

  /* ستايل الروابط + الخط السفلي الأنيق */
  .navmenu a{
    color: var(--nav-color);
    font-weight: 700;
    letter-spacing: .2px;
    padding: 10px 4px;
    position: relative;
    transition: color .2s ease;
    white-space: nowrap;
  }
  .navmenu a::after{
    content:""; position:absolute; inset-inline-start: 0; inset-block-end: -6px;
    height: 2px; width: 0; background: #fff; transition: width .2s ease;
  }
  .navmenu a:hover,
  .navmenu .active{ color: #fff; }
  .navmenu a:hover::after,
  .navmenu .active::after{ width: 100%; }

  /* ظل خفيف عند التمرير (اختياري) */
  .scrolled .header{
    box-shadow: 0 4px 16px rgba(0,0,0,.06);
    --background-color: #6BBE2E;
  }

  /* يمنع اصطدام الهيرو بالهيدر في الديسكتوب فقط */
  .hero{ scroll-margin-top: 90px; }
}

/* ملاحظة: قواعد الجوال الأصلية تبقى هي نفسها لأننا ما لمسنا @media (max-width: 1199px) */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: #25D366;       /* أخضر واتساب */
  color: #fff;
  font-size: 22px;
  transition: background 0.3s;
}
.back-to-top:hover {
  background: #1ebe5c;
  color: #fff;
}
/* زر واتساب ثابت */
.whatsapp-btn {
  position: fixed;
  right: 10px;
  bottom: 10px;
  z-index: 9999;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(0,0,0,.15);
  transition: background 0.3s, transform 0.2s;
  animation: pulse 1.5s infinite; /* هنا أضفنا الحركة */
}

.whatsapp-btn:hover {
  background: #1ebe5c;
  transform: translateY(-2px);
  color: #fff;
}

@keyframes pulse {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.1); }
  100% { transform: scale(1); }
}
