:root{
  --bg:#fbf7ef;
  --paper:#ffffff;
  --dark:#2b211b;
  --muted:#77695d;
  --line:rgba(77,55,41,.14);
  --brown:#5b3d2e;
  --brown-dark:#241912;
  --gold:#b58a4a;
  --gold-light:#f1d694;
  --radius:28px;
  --shadow:0 24px 70px rgba(44,32,24,.16);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Tajawal","Cairo",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;background:var(--bg);color:var(--dark);line-height:1.75;overflow-x:hidden}
a{text-decoration:none;color:inherit}
img{display:block;max-width:100%}
button,input{font:inherit}
.container{width:min(1180px,92%);margin-inline:auto}
.topbar{background:#21150f;color:#f5dfbd;font-size:14px;padding:8px 0}
.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.site-header{position:sticky;top:0;z-index:90;background:rgba(251,247,239,.9);backdrop-filter:blur(18px);border-bottom:1px solid var(--line)}
.nav-inner{height:82px;display:flex;align-items:center;justify-content:space-between;gap:18px}
.brand{display:flex;align-items:center;gap:12px;min-width:0;font-weight:900}
.brand-logo{width:58px;height:58px;border-radius:18px;object-fit:contain;background:#fff;padding:5px;box-shadow:0 10px 28px rgba(44,32,24,.12)}
.brand strong{font-size:22px;line-height:1.1;display:block;white-space:nowrap}
.brand small{display:block;color:var(--muted);font-size:12px;margin-top:4px;font-weight:800}
.main-nav{display:flex;align-items:center;gap:22px;font-weight:900;color:#47382e}
.main-nav a{position:relative;white-space:nowrap}
.main-nav a:after{content:"";position:absolute;right:0;bottom:-8px;width:0;height:3px;border-radius:5px;background:linear-gradient(90deg,var(--gold),var(--brown));transition:.25s}
.main-nav a:hover:after{width:100%}
.nav-actions{display:flex;align-items:center;gap:10px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:999px;padding:12px 20px;font-weight:900;cursor:pointer;transition:.25s ease;white-space:nowrap}
.btn-primary{background:linear-gradient(135deg,#5b3d2e,#b58a4a);color:#fff;box-shadow:0 16px 28px rgba(91,61,46,.23)}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 22px 38px rgba(91,61,46,.3)}
.btn-soft{background:#fff;color:#4d3729;border:1px solid var(--line)}
.btn-lang{background:#fff7ea;color:#5b3d2e;border:1px solid rgba(181,138,74,.3);padding:10px 15px}
.menu-toggle{display:none;background:#fff;border:1px solid var(--line);border-radius:14px;width:46px;height:46px;font-size:24px;cursor:pointer}

.hero{position:relative;min-height:calc(100vh - 82px);display:grid;align-items:center;isolation:isolate;overflow:hidden}
.hero-bg{position:absolute;inset:0;z-index:-3;background:#3a2a20}
.hero-bg:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(33,21,15,.86),rgba(33,21,15,.48),rgba(33,21,15,.18)),radial-gradient(circle at 20% 20%,rgba(228,199,141,.35),transparent 32%)}
html[dir="ltr"] .hero-bg:after{background:linear-gradient(270deg,rgba(33,21,15,.86),rgba(33,21,15,.48),rgba(33,21,15,.18)),radial-gradient(circle at 80% 20%,rgba(228,199,141,.35),transparent 32%)}
.hero-slide{position:absolute;inset:0;background-size:cover;background-position:center;opacity:0;transform:scale(1.05);transition:opacity 1.1s ease,transform 5s ease}
.hero-slide.active{opacity:1;transform:scale(1)}
.hero-content{padding:95px 0 75px;color:#fff;max-width:770px}
.eyebrow{display:inline-flex;align-items:center;gap:9px;padding:8px 14px;border:1px solid rgba(228,199,141,.35);background:rgba(255,255,255,.1);backdrop-filter:blur(10px);border-radius:999px;color:#ffe5b3;font-weight:900;margin-bottom:20px}
.eyebrow:before{content:"";width:9px;height:9px;border-radius:50%;background:var(--gold-light)}
h1{font-size:clamp(42px,7vw,82px);line-height:1.05;margin:0 0 20px;letter-spacing:-2px}
.hero p{font-size:clamp(18px,2vw,23px);color:#f1e5d2;margin:0 0 32px;max-width:720px}
.hero-actions{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:34px}
.stats{display:grid;grid-template-columns:repeat(3,minmax(130px,1fr));gap:12px;max-width:650px}
.stat{background:rgba(255,250,242,.13);border:1px solid rgba(255,255,255,.18);border-radius:22px;padding:16px 18px;backdrop-filter:blur(12px)}
.stat b{font-size:28px;display:block;color:#fff}.stat span{font-size:14px;color:#eadcc9;font-weight:800}

.section{padding:82px 0}
.section-title{margin-bottom:34px}
.section-title.center{text-align:center;margin-inline:auto;max-width:790px}
.section-title.compact{margin-bottom:22px}
.section-title span{display:inline-flex;color:var(--gold);font-weight:900;margin-bottom:8px}
.section-title h2{font-size:clamp(31px,4.5vw,52px);line-height:1.12;margin:0 0 10px;letter-spacing:-1px}
.section-title p{margin:0;color:var(--muted);font-weight:700}
.section-title.light h2{color:#fff}.section-title.light p{color:#e2d2bd}.section-title.light span{color:#f1d694}
.about-grid{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:center}
.about-box{background:#fff;border:1px solid var(--line);border-radius:34px;padding:34px;box-shadow:0 18px 45px rgba(44,32,24,.08)}
.about-box p{color:#62554a;margin:0 0 15px;font-weight:600}
.about-media{height:520px;border-radius:36px;overflow:hidden;box-shadow:var(--shadow);position:relative;background:#ddd}
.about-media img{width:100%;height:100%;object-fit:cover}
.about-media:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(35,24,17,.45),transparent 50%)}

.works-section{background:#fffaf3;overflow:hidden}
.gallery-shell{position:relative}
.gallery-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}
.gallery-count{font-weight:900;color:#6a5544;background:#fff;border:1px solid var(--line);border-radius:999px;padding:8px 14px}
.gallery-controls{display:flex;gap:10px}
.round-btn{width:52px;height:52px;border-radius:50%;border:1px solid var(--line);background:#fff;color:#3b2d24;font-size:32px;line-height:1;cursor:pointer;box-shadow:0 10px 30px rgba(44,32,24,.12);transition:.25s}
.round-btn:hover{background:#2d1f18;color:#fff}
.gallery-track{direction:ltr;display:flex;gap:18px;overflow-x:auto;scroll-behavior:smooth;scroll-snap-type:x mandatory;padding:18px 4px 30px;cursor:grab;scrollbar-width:none;outline:none;overscroll-behavior-x:contain}
.gallery-track::-webkit-scrollbar{display:none}
.gallery-track.dragging{cursor:grabbing;scroll-behavior:auto;scroll-snap-type:none}
.gallery-card{flex:0 0 clamp(250px,27vw,340px);height:430px;border:0;padding:0;border-radius:28px;overflow:hidden;position:relative;background:#ddd;box-shadow:0 18px 45px rgba(44,32,24,.16);scroll-snap-align:start;transition:transform .35s ease,box-shadow .35s ease;cursor:pointer;color:inherit}
.gallery-card:hover{transform:translateY(-10px) scale(1.018);box-shadow:0 28px 70px rgba(44,32,24,.28)}
.gallery-card img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease,filter .45s ease}
.gallery-card:hover img{transform:scale(1.08);filter:brightness(.82)}
.gallery-card .overlay{position:absolute;inset:auto 16px 16px 16px;background:rgba(255,255,255,.92);color:#34261d;padding:12px 14px;border-radius:18px;font-weight:900;display:flex;align-items:center;justify-content:space-between;gap:10px;opacity:0;transform:translateY(12px);transition:.28s;direction:rtl}
.gallery-card:hover .overlay{opacity:1;transform:translateY(0)}
.gallery-empty{background:#fff;border:1px dashed var(--line);border-radius:22px;padding:22px;color:var(--muted);font-weight:900}

.videos-section{background:#fff;display:block !important;visibility:visible !important;opacity:1 !important;position:relative;z-index:1}
.video-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.video-card{position:relative;min-height:360px;border-radius:30px;overflow:hidden;background:#ddd;box-shadow:0 18px 45px rgba(44,32,24,.14);isolation:isolate;display:block;transition:.25s}
.video-card:hover{transform:translateY(-7px);box-shadow:0 26px 60px rgba(44,32,24,.22)}
.video-card img{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;z-index:-2}
.video-card:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(28,18,12,.78),rgba(28,18,12,.2));z-index:-1}
.play-icon{position:absolute;top:26px;left:26px;width:64px;height:64px;border-radius:50%;background:#fff;color:#2b1f17;display:grid;place-items:center;font-size:27px;box-shadow:0 14px 35px rgba(0,0,0,.22)}
.video-content{position:absolute;right:22px;left:22px;bottom:22px;color:#fff}.video-content h3{margin:0 0 5px;font-size:24px}.video-content p{margin:0;color:#eadfce}

.services-section{background:#fbf7ef}.cards-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.service-card{background:#fff;border:1px solid var(--line);border-radius:28px;padding:28px;box-shadow:0 15px 36px rgba(44,32,24,.06);transition:.25s}
.service-card:hover{transform:translateY(-6px);box-shadow:var(--shadow)}
.icon{width:56px;height:56px;border-radius:18px;background:linear-gradient(135deg,rgba(181,138,74,.2),rgba(91,61,46,.08));display:grid;place-items:center;font-size:26px;margin-bottom:16px}
.service-card h3{margin:0 0 8px;font-size:24px}.service-card p{margin:0;color:#706257}
.why-section{background:#281a13;color:#fff;position:relative;overflow:hidden}.why-section:before{content:"";position:absolute;inset:auto -15% -45% auto;width:520px;height:520px;border-radius:50%;background:rgba(181,138,74,.2)}
.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;position:relative;z-index:1}.why-item{background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.12);border-radius:24px;padding:22px}.why-item b{display:block;color:#f1d694;font-size:18px;margin-bottom:8px}.why-item span{color:#e9dfd4;font-size:15px}

.branches-section{background:#fbf7ef}.branches-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.branch-card{background:#fff;border:1px solid var(--line);border-radius:24px;padding:20px;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;box-shadow:0 12px 30px rgba(44,32,24,.05)}.branch-card h3{font-size:20px;margin:0 0 4px}.branch-card .phone{margin:0;color:var(--muted);direction:ltr;font-weight:900}.branch-card small{display:block;color:#8a7666;font-weight:800;margin-top:5px}.branch-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.branch-actions a{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:999px;padding:9px 13px;background:#fff8ee;color:#6a472f;font-size:14px;font-weight:900;white-space:nowrap}.branch-actions a.map{background:#241912;color:#f6deb3;border-color:#241912}.branch-actions a.whatsapp{background:#e9fff1;color:#14783a;border-color:#c8f1d8}

.social-section{padding:46px 0 70px}.social-box{background:#fff;border:1px solid var(--line);border-radius:34px;padding:28px;display:flex;align-items:center;justify-content:space-between;gap:20px;box-shadow:0 18px 42px rgba(44,32,24,.08)}.social-box h2{margin:0 0 6px;font-size:28px}.social-box p{margin:0;color:var(--muted);font-weight:700}.social-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.social{width:52px;height:52px;border-radius:16px;display:inline-grid;place-items:center;background:transparent;color:inherit;border:0;padding:0;font-weight:900;transition:.25s;box-shadow:none;overflow:visible}.social img{width:52px;height:52px;display:block;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(44,32,24,.14))}.social:hover{transform:translateY(-4px) scale(1.05)}
.site-footer{padding:42px 0;background:#18100c;color:#d9c7ac}.footer-grid{display:grid;grid-template-columns:1.4fr .8fr .8fr;gap:24px;align-items:start}.footer-brand{display:flex;align-items:center;gap:12px}.footer-brand img{width:64px;height:64px;border-radius:18px;background:#fff;object-fit:contain;padding:5px}.footer-brand b{display:block;color:#fff}.footer-brand span{display:block;color:#d9c7ac}.site-footer b{color:#fff}
.whatsapp-float{position:fixed;left:22px;bottom:22px;z-index:91;background:#25d366;color:#fff;width:60px;height:60px;border-radius:50%;display:grid;place-items:center;box-shadow:0 14px 34px rgba(37,211,102,.38);transition:.25s;font-size:27px;font-weight:900}.whatsapp-float:hover{transform:translateY(-4px) scale(1.04)}.scroll-top{position:fixed;right:22px;bottom:22px;z-index:91;width:52px;height:52px;border-radius:50%;border:0;background:#2b1f17;color:#fff;font-size:24px;font-weight:900;box-shadow:0 14px 34px rgba(0,0,0,.22);cursor:pointer;opacity:0;visibility:hidden;transform:translateY(14px);transition:.25s}.scroll-top.show{opacity:1;visibility:visible;transform:translateY(0)}

.lightbox{position:fixed;inset:0;background:rgba(14,10,7,.94);display:none;align-items:center;justify-content:center;z-index:9999;touch-action:none}.lightbox.active{display:flex}.lightbox-stage{width:min(92vw,1220px);height:82vh;display:flex;align-items:center;justify-content:center;overflow:hidden}.lightbox-img{max-width:100%;max-height:100%;object-fit:contain;transform:scale(1);transition:transform .2s ease;user-select:none}.lightbox-close,.lightbox-nav,.zoom-tools button{border:0;cursor:pointer;background:rgba(255,255,255,.94);color:#2f2923;box-shadow:0 10px 30px rgba(0,0,0,.25)}.lightbox-close{position:absolute;top:22px;right:26px;width:50px;height:50px;border-radius:50%;font-size:34px;z-index:3}.lightbox-nav{position:absolute;top:50%;transform:translateY(-50%);width:58px;height:58px;border-radius:50%;font-size:42px;z-index:3}.lightbox-prev{right:26px}.lightbox-next{left:26px}.zoom-tools{position:absolute;bottom:24px;display:flex;gap:10px;z-index:3}.zoom-tools button{min-width:56px;height:44px;border-radius:14px;font-size:18px;font-weight:900}.lightbox-counter{position:absolute;top:26px;left:26px;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.18);border-radius:999px;padding:8px 14px;font-weight:900}

html[dir="ltr"] .main-nav a:after{right:auto;left:0}html[dir="ltr"] .play-icon{left:auto;right:26px}html[dir="ltr"] .video-content{right:22px;left:22px}html[dir="ltr"] .gallery-card .overlay{direction:ltr}
@media (max-width:1050px){.main-nav{position:fixed;inset:82px 0 auto 0;background:rgba(251,247,239,.98);border-bottom:1px solid var(--line);padding:20px;display:none;flex-direction:column;align-items:flex-start}.main-nav.open{display:flex}.menu-toggle{display:block}.nav-actions .btn-primary{display:none}.about-grid,.footer-grid{grid-template-columns:1fr}.cards-grid,.video-grid{grid-template-columns:1fr 1fr}.why-grid{grid-template-columns:1fr 1fr}.branches-grid{grid-template-columns:1fr}.about-media{height:420px}}
@media (max-width:700px){.container{width:min(100% - 28px,1180px)}.topbar{font-size:12px}.nav-inner{height:74px}.brand-logo{width:50px;height:50px}.brand strong{font-size:18px}.brand small{font-size:11px}.hero{min-height:auto}.hero-content{padding:78px 0}.stats,.cards-grid,.video-grid,.why-grid{grid-template-columns:1fr}.gallery-card{flex-basis:78vw;height:430px}.gallery-controls{display:none}.social-box{align-items:flex-start;flex-direction:column}.branch-card{flex-direction:column}.branch-actions{justify-content:flex-start}.lightbox-nav{width:46px;height:46px;font-size:32px}.lightbox-prev{right:12px}.lightbox-next{left:12px}.lightbox-close{right:14px;top:14px}.lightbox-counter{left:14px;top:16px}.whatsapp-float{left:16px;bottom:16px}.scroll-top{right:16px;bottom:16px}}

/* إصلاح السلايدر المتحرك: حركة تلقائية سلسة، بدون منع نزول الصفحة بالماوس */
.gallery-track{
  scroll-snap-type:none !important;
  overscroll-behavior-x:auto !important;
  overscroll-behavior-y:auto !important;
  touch-action:pan-y pinch-zoom !important;
  will-change:scroll-position;
}
.gallery-card{scroll-snap-align:none !important;user-select:none;-webkit-user-drag:none}
.gallery-card img{user-select:none;-webkit-user-drag:none;pointer-events:none}
.gallery-card:focus-visible{outline:3px solid #c2a46d;outline-offset:4px}
.videos-section,.video-grid,.video-card{display:grid !important;visibility:visible !important;opacity:1 !important}
.videos-section{display:block !important;position:relative !important;z-index:1 !important;min-height:360px}
.lightbox.active{display:flex !important;visibility:visible !important;opacity:1 !important}

/* Floating WhatsApp official image icon */
.whatsapp-float{background:transparent !important;box-shadow:none !important;color:inherit !important;overflow:visible !important;}
.whatsapp-float img{width:60px;height:60px;display:block;object-fit:contain;filter:drop-shadow(0 14px 24px rgba(37,211,102,.38));}


/* تحديث أيقونة واتساب في الهيدر والأزرار العائمة */
.btn-whatsapp-header{
  width:46px;
  height:46px;
  padding:0 !important;
  border-radius:50%;
  background:transparent !important;
  box-shadow:none !important;
  border:0 !important;
}
.btn-whatsapp-header img{
  width:43px;
  height:43px;
  object-fit:contain;
  filter:drop-shadow(0 10px 18px rgba(37,211,102,.35));
  transition:transform .25s ease, filter .25s ease;
}
.btn-whatsapp-header:hover img{transform:translateY(-2px) scale(1.08);filter:drop-shadow(0 14px 24px rgba(37,211,102,.48));}
.social.whatsapp img{width:52px;height:52px;object-fit:contain;filter:drop-shadow(0 10px 18px rgba(37,211,102,.32));}
.whatsapp-float img{border-radius:50%;}

/* سلايدر الأعمال: مظهر أكثر احترافية وحركة أسرع */
.gallery-shell{position:relative;isolation:isolate;}
.gallery-shell:before,
.gallery-shell:after{
  content:"";
  position:absolute;
  top:72px;
  bottom:18px;
  width:92px;
  z-index:2;
  pointer-events:none;
}
.gallery-shell:before{right:-2px;background:linear-gradient(90deg,rgba(255,250,243,0),#fffaf3 82%);}
.gallery-shell:after{left:-2px;background:linear-gradient(270deg,rgba(255,250,243,0),#fffaf3 82%);}
.gallery-track{
  gap:20px !important;
  padding:24px 10px 40px !important;
  scroll-behavior:auto !important;
  transform:translateZ(0);
  backface-visibility:hidden;
}
.gallery-card{
  height:455px !important;
  border-radius:32px !important;
  box-shadow:0 18px 40px rgba(44,32,24,.14),0 2px 0 rgba(255,255,255,.8) inset !important;
  transform:translateZ(0);
  transition:transform .32s ease, box-shadow .32s ease, filter .32s ease !important;
}
.gallery-card:before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  background:linear-gradient(135deg,rgba(255,255,255,.28),rgba(255,255,255,0) 34%,rgba(181,138,74,.18) 100%);
  opacity:0;
  transition:opacity .32s ease;
  pointer-events:none;
}
.gallery-card:hover,
.gallery-card.is-active{
  transform:translateY(-12px) scale(1.035) !important;
  box-shadow:0 30px 75px rgba(44,32,24,.28) !important;
}
.gallery-card:hover:before,
.gallery-card.is-active:before{opacity:1;}
.gallery-card:hover img,
.gallery-card.is-active img{transform:scale(1.09);filter:brightness(.86) saturate(1.05);}
.gallery-card .overlay{z-index:3;backdrop-filter:blur(10px);}
.gallery-controls{position:relative;z-index:4;}
.gallery-controls .round-btn{background:rgba(255,255,255,.94);backdrop-filter:blur(10px);}
@media (max-width:700px){
  .gallery-shell:before,.gallery-shell:after{display:none;}
  .gallery-card{height:440px !important;border-radius:26px !important;}
}

/* ترتيب الأزرار العائمة في جهة واحدة */
.whatsapp-float{
  left:auto !important;
  right:22px !important;
  bottom:22px !important;
  z-index:96 !important;
}
.scroll-top{
  left:auto !important;
  right:26px !important;
  bottom:96px !important;
  z-index:96 !important;
}
@media (max-width:700px){
  .whatsapp-float{
    left:auto !important;
    right:16px !important;
    bottom:16px !important;
  }
  .scroll-top{
    left:auto !important;
    right:20px !important;
    bottom:88px !important;
  }
}

/* ضبط حجم أيقونة واتساب ليكون مناسباً ومتناسقاً */
.whatsapp-float{
  width:54px !important;
  height:54px !important;
  display:grid !important;
  place-items:center !important;
  overflow:visible !important;
}
.whatsapp-float img{
  width:46px !important;
  height:46px !important;
  object-fit:contain !important;
  border-radius:50% !important;
}
.whatsapp-float:hover img{
  transform:scale(1.06);
}
.btn-whatsapp-header{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
}
.btn-whatsapp-header img{
  width:34px !important;
  height:34px !important;
  object-fit:contain !important;
}
.social.whatsapp{
  width:46px !important;
  height:46px !important;
}
.social.whatsapp img{
  width:44px !important;
  height:44px !important;
  object-fit:contain !important;
}
.scroll-top{
  bottom:88px !important;
  right:23px !important;
}
@media (max-width:700px){
  .whatsapp-float{
    width:50px !important;
    height:50px !important;
  }
  .whatsapp-float img{
    width:42px !important;
    height:42px !important;
  }
  .btn-whatsapp-header{
    width:36px !important;
    height:36px !important;
    min-width:36px !important;
  }
  .btn-whatsapp-header img{
    width:32px !important;
    height:32px !important;
  }
  .scroll-top{
    bottom:78px !important;
    right:19px !important;
  }
}

/* FINAL FIX: prevent WhatsApp icon from appearing oversized on any browser/cache */
.btn-whatsapp-header,
.nav-actions .btn-whatsapp-header{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  max-width:38px !important;
  max-height:38px !important;
  padding:0 !important;
  display:inline-grid !important;
  place-items:center !important;
  background:transparent !important;
  border:0 !important;
  box-shadow:none !important;
  border-radius:50% !important;
  overflow:hidden !important;
  flex:0 0 38px !important;
  line-height:1 !important;
}
.btn-whatsapp-header img,
a.btn-whatsapp-header > img{
  width:32px !important;
  height:32px !important;
  min-width:32px !important;
  max-width:32px !important;
  min-height:32px !important;
  max-height:32px !important;
  object-fit:contain !important;
  display:block !important;
  margin:0 !important;
  padding:0 !important;
}
.whatsapp-float{
  width:56px !important;
  height:56px !important;
  max-width:56px !important;
  max-height:56px !important;
  right:22px !important;
  left:auto !important;
  bottom:22px !important;
  display:grid !important;
  place-items:center !important;
  overflow:hidden !important;
  background:transparent !important;
  box-shadow:none !important;
  border-radius:50% !important;
  flex:0 0 56px !important;
}
.whatsapp-float img,
a.whatsapp-float > img{
  width:48px !important;
  height:48px !important;
  max-width:48px !important;
  max-height:48px !important;
  object-fit:contain !important;
  display:block !important;
  border-radius:50% !important;
}
.social.whatsapp,
.social-links .social.whatsapp{
  width:46px !important;
  height:46px !important;
  max-width:46px !important;
  max-height:46px !important;
  display:inline-grid !important;
  place-items:center !important;
  overflow:hidden !important;
}
.social.whatsapp img,
.social-links .social.whatsapp > img{
  width:42px !important;
  height:42px !important;
  max-width:42px !important;
  max-height:42px !important;
  object-fit:contain !important;
  display:block !important;
}
@media (max-width:700px){
  .whatsapp-float{width:50px !important;height:50px !important;max-width:50px !important;max-height:50px !important;right:16px !important;bottom:16px !important;}
  .whatsapp-float img{width:44px !important;height:44px !important;max-width:44px !important;max-height:44px !important;}
  .btn-whatsapp-header{width:36px !important;height:36px !important;min-width:36px !important;max-width:36px !important;max-height:36px !important;}
  .btn-whatsapp-header img{width:30px !important;height:30px !important;max-width:30px !important;max-height:30px !important;}
}


/* فتح صور السلايدر في تبويب جديد */
a.gallery-card{display:block;text-decoration:none;color:inherit;}
a.gallery-card:visited{color:inherit;}
a.gallery-card .overlay-text{white-space:nowrap;}

/* ===== تحديث زر الترجمة وزر الرؤية الليلية/النهارية ===== */
.lang-icon,
.nav-actions .lang-icon{
  width:38px !important;
  height:38px !important;
  min-width:38px !important;
  padding:0 !important;
  border:1px solid rgba(181,138,74,.35) !important;
  border-radius:50% !important;
  background:#fff7ea !important;
  color:#5b3d2e !important;
  display:inline-grid !important;
  place-items:center !important;
  gap:0 !important;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(44,32,24,.08) !important;
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
  position:relative;
  line-height:1;
}
.lang-icon span{font-size:17px;line-height:1;display:block;transform:translateY(-1px)}
.lang-icon small{
  position:absolute;
  right:-5px;
  bottom:-4px;
  min-width:18px;
  height:18px;
  padding:0 3px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:#5b3d2e;
  color:#fff7ea;
  font-size:9px;
  line-height:1;
  font-weight:900;
  border:2px solid #fbf7ef;
}
.lang-icon:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(44,32,24,.15) !important}

.theme-toggle{
  position:fixed;
  right:22px;
  bottom:22px;
  z-index:96;
  width:56px;
  height:56px;
  border:0;
  border-radius:50%;
  display:grid;
  place-items:center;
  cursor:pointer;
  color:#fff;
  background:linear-gradient(135deg,#241912,#b58a4a);
  box-shadow:0 14px 34px rgba(44,32,24,.28);
  transition:transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.theme-toggle:hover{transform:translateY(-4px) scale(1.04);box-shadow:0 20px 44px rgba(44,32,24,.35)}
.theme-toggle .theme-icon{font-size:25px;line-height:1}
.scroll-top{right:24px !important;bottom:92px !important}

body.night-mode{
  --bg:#14100d;
  --paper:#211915;
  --dark:#f6ead8;
  --muted:#c6b6a5;
  --line:rgba(245,222,189,.16);
  --brown:#d9b977;
  --brown-dark:#0e0b09;
  --gold:#d8ad62;
  --gold-light:#ffdf93;
  --shadow:0 24px 70px rgba(0,0,0,.42);
  background:#14100d;
  color:#f6ead8;
}
body.night-mode .topbar{background:#0e0b09;color:#f5dfbd;border-bottom:1px solid rgba(245,222,189,.12)}
body.night-mode .site-header{background:rgba(20,16,13,.9);border-bottom-color:rgba(245,222,189,.14)}
body.night-mode .main-nav{color:#f3dfbc}
body.night-mode .brand-logo{background:#2a211b;box-shadow:0 10px 28px rgba(0,0,0,.28)}
body.night-mode .btn-soft,
body.night-mode .btn-lang,
body.night-mode .menu-toggle,
body.night-mode .lang-icon{background:#241c17 !important;color:#f5dfbd !important;border-color:rgba(245,222,189,.2) !important}
body.night-mode .lang-icon small{background:#d8ad62;color:#14100d;border-color:#14100d}
body.night-mode .section,
body.night-mode .branches-section{background:#14100d}
body.night-mode .card,
body.night-mode .service-card,
body.night-mode .branch-card,
body.night-mode .contact-card,
body.night-mode .video-card,
body.night-mode .about-card{background:#211915;color:#f6ead8;border-color:rgba(245,222,189,.14);box-shadow:0 18px 48px rgba(0,0,0,.28)}
body.night-mode .branch-actions a{background:#2b211b;color:#f5dfbd;border-color:rgba(245,222,189,.18)}
body.night-mode .branch-actions a.map{background:#d8ad62;color:#14100d;border-color:#d8ad62}
body.night-mode .branch-actions a.whatsapp{background:#12351f;color:#a8f0c0;border-color:rgba(168,240,192,.22)}
body.night-mode .gallery-shell:before{background:linear-gradient(90deg,rgba(20,16,13,0),#14100d 82%)}
body.night-mode .gallery-shell:after{background:linear-gradient(270deg,rgba(20,16,13,0),#14100d 82%)}
body.night-mode .gallery-card{box-shadow:0 22px 60px rgba(0,0,0,.35) !important}
body.night-mode .footer{background:#0e0b09;color:#f3dfbc}
body.night-mode .theme-toggle{background:linear-gradient(135deg,#f6d78f,#fff7df);color:#241912;box-shadow:0 14px 34px rgba(216,173,98,.22)}
body.night-mode .scroll-top{background:#d8ad62;color:#14100d}
body.night-mode .social{background:#211915;border-color:rgba(245,222,189,.18)}

@media (max-width:1050px){
  body.night-mode .main-nav{background:rgba(20,16,13,.98);border-bottom-color:rgba(245,222,189,.14)}
}
@media (max-width:700px){
  .lang-icon,.nav-actions .lang-icon{width:36px !important;height:36px !important;min-width:36px !important}
  .lang-icon span{font-size:16px}.lang-icon small{right:-5px;bottom:-5px;min-width:17px;height:17px;font-size:8px}
  .theme-toggle{right:16px;bottom:16px;width:50px;height:50px}
  .theme-toggle .theme-icon{font-size:22px}
  .scroll-top{right:18px !important;bottom:82px !important}
}
.lang-icon svg{display:block;width:19px;height:19px}

/* ===== FINAL MOBILE + IMAGE VIEWER FIX ===== */
.theme-toggle,
button.theme-toggle#themeToggle{
  position:fixed !important;
  right:calc(18px + env(safe-area-inset-right)) !important;
  bottom:calc(18px + env(safe-area-inset-bottom)) !important;
  z-index:2147483000 !important;
  width:54px !important;
  height:54px !important;
  min-width:54px !important;
  min-height:54px !important;
  display:grid !important;
  place-items:center !important;
  opacity:1 !important;
  visibility:visible !important;
  pointer-events:auto !important;
  transform:none;
}
.scroll-top{
  right:calc(19px + env(safe-area-inset-right)) !important;
  bottom:calc(88px + env(safe-area-inset-bottom)) !important;
  z-index:2147482999 !important;
}
@media (max-width:700px){
  .site-header{z-index:2147482000 !important;}
  .nav-actions{gap:7px !important;flex:0 0 auto !important;}
  .nav-actions .lang-icon,
  .footer-lang-icon{
    width:34px !important;
    height:34px !important;
    min-width:34px !important;
    max-width:34px !important;
    max-height:34px !important;
  }
  .nav-actions .lang-icon svg,
  .footer-lang-icon svg{width:17px !important;height:17px !important;}
  .nav-actions .lang-icon small,
  .footer-lang-icon small{
    min-width:16px !important;
    height:16px !important;
    font-size:8px !important;
    right:-5px !important;
    bottom:-5px !important;
  }
  .theme-toggle,
  button.theme-toggle#themeToggle{
    right:calc(14px + env(safe-area-inset-right)) !important;
    bottom:calc(18px + env(safe-area-inset-bottom)) !important;
    width:52px !important;
    height:52px !important;
    min-width:52px !important;
    min-height:52px !important;
  }
  .scroll-top{
    right:calc(17px + env(safe-area-inset-right)) !important;
    bottom:calc(86px + env(safe-area-inset-bottom)) !important;
  }
}
.footer-lang-icon{margin-top:8px !important;}
.gallery-card{cursor:zoom-in !important;}
.gallery-card .overlay{pointer-events:none !important;}
