/* =========================================================
   HOMEPAGE — wheel + before/after
   الصفحة الرئيسية فقط
========================================================= */

.wheel-section{overflow:hidden}
.wheel-layout{
  display:grid;
  grid-template-columns:minmax(300px,.9fr) minmax(430px,1.1fr);
  align-items:center;
  gap:42px;
  direction:ltr;
  min-height:455px;
}
.wheel-message{
  direction:rtl;
  min-height:188px;
  border:1px solid rgba(255,107,0,.28);
  border-radius:22px;
  background:#fffaf3;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
  padding:28px 35px;
}
.wheel-message-icon{font-size:42px;line-height:1;color:var(--orange);margin-bottom:14px}
.wheel-message p{margin:0;max-width:430px;font-size:17px;line-height:1.9;color:#171717;font-weight:600}

.wheel-stage{
  position:relative;
  width:430px;
  height:430px;
  margin-inline-start:auto;
  display:grid;
  place-items:center;
  direction:ltr;
  flex:0 0 auto;
}
.wheel-orbit{
  position:absolute;
  inset:20px;
  border:2px dashed rgba(255,107,0,.30);
  border-radius:50%;
  animation:de-wheel-spin 28s linear infinite;
  transform-origin:center;
  will-change:transform;
}
.wheel-stage.is-paused .wheel-orbit{animation-play-state:paused}
.wheel-item{
  position:absolute;
  left:50%;
  top:50%;
  width:52px;
  height:52px;
  margin:-26px;
  padding:3px;
  display:block;
  overflow:visible;
  border:1px solid rgba(255,107,0,.32);
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  transform:rotate(calc(var(--i) * 16.363636deg)) translateY(-195px) rotate(calc(var(--i) * -16.363636deg));
  transition:box-shadow .2s,border-color .2s;
}
.wheel-item img{width:100%;height:100%;display:block;object-fit:cover;border-radius:50%}
.wheel-item:hover{border-color:var(--orange);box-shadow:0 0 0 4px rgba(255,107,0,.12);z-index:5}
.wheel-center{
  position:relative;
  z-index:5;
  width:160px;
  height:160px;
  border-radius:50%;
  background:#181818;
  color:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding:18px;
  box-shadow:0 15px 35px rgba(0,0,0,.16);
  direction:rtl;
}
.wheel-center-icon{font-size:31px;line-height:1;color:var(--orange);margin-bottom:8px}
.wheel-center strong{font-size:12px;line-height:1.55;font-weight:700;color:#ddd}
@keyframes de-wheel-spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}

/* Before / After */
.gallery-section{padding-top:70px}
.before-after-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:24px;
  direction:rtl;
}
.before-after-card{
  background:#fff;
  border:1px solid #e8e8e8;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 8px 22px rgba(0,0,0,.08);
}
.ba-visual{
  position:relative;
  height:320px;
  overflow:hidden;
  background:#eee;
  direction:ltr;
  user-select:none;
  touch-action:none;
}
.ba-base,.ba-after img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.ba-after{position:absolute;inset:0;width:50%;overflow:hidden;z-index:2}
.ba-after img{width:100%;max-width:none}
.ba-range{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  z-index:7;
  cursor:ew-resize;
  margin:0;
}
.ba-handle{
  position:absolute;
  z-index:6;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  width:44px;
  height:44px;
  border-radius:50%;
  background:var(--orange);
  border:4px solid #fff;
  box-shadow:0 2px 7px rgba(0,0,0,.2);
  display:grid;
  place-items:center;
  color:#fff;
  font-size:19px;
  pointer-events:none;
}
.ba-label{
  position:absolute;
  z-index:5;
  top:13px;
  padding:5px 12px;
  border-radius:14px;
  font-size:12px;
  font-weight:800;
  color:#fff;
  pointer-events:none;
}
.ba-after-label{left:13px;background:#14a44d}
.ba-before-label{right:13px;background:var(--orange)}
.ba-body{padding:18px 20px 20px;text-align:right;direction:rtl}
.ba-body>div{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ba-body h3{margin:0;font-size:19px;line-height:1.5;font-weight:900;color:#111}
.ba-body span{background:#fff7ef;color:#9a6b43;border-radius:16px;padding:4px 12px;font-size:12px;white-space:nowrap}
.ba-body p{margin:8px 0 0;color:#6d6d6d;font-size:14px;line-height:1.8}
.gallery-cta{margin-top:34px}

/* Mobile */
@media (max-width:1050px){
  .wheel-layout{grid-template-columns:1fr;gap:25px;min-height:0}
  .wheel-message{order:2;max-width:680px;margin:auto}
  .wheel-stage{order:1;margin:0 auto}
  .before-after-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:780px){
  .wheel-section .section-head{padding-inline:10px}
  .wheel-section .section-head h2{font-size:31px;line-height:1.35}
  .wheel-section .section-head p{font-size:14px}
  .wheel-stage{width:min(340px,92vw);height:min(340px,92vw)}
  .wheel-orbit{inset:16px}
  .wheel-item{
    width:43px;height:43px;margin:-21.5px;
    transform:rotate(calc(var(--i) * 16.363636deg)) translateY(calc(min(340px,92vw) * -.442)) rotate(calc(var(--i) * -16.363636deg));
  }
  .wheel-center{width:134px;height:134px;padding:13px}
  .wheel-center-icon{font-size:25px;margin-bottom:5px}
  .wheel-center strong{font-size:10px;line-height:1.45}
  .wheel-message{min-height:145px;padding:22px 18px;border-radius:18px}
  .wheel-message-icon{font-size:34px;margin-bottom:8px}
  .wheel-message p{font-size:14px;line-height:1.8}

  .before-after-grid{grid-template-columns:1fr;gap:18px}
  .ba-visual{height:min(76vw,320px)}
  .ba-body{padding:15px 16px 17px}
  .ba-body h3{font-size:17px}
  .ba-body p{font-size:13px}
  .ba-handle{width:42px;height:42px}
  .gallery-section{padding-top:55px}
}
@media (max-width:420px){
  .wheel-stage{width:310px;height:310px}
  .wheel-orbit{inset:14px}
  .wheel-item{width:39px;height:39px;margin:-19.5px;transform:rotate(calc(var(--i) * 16.363636deg)) translateY(-135px) rotate(calc(var(--i) * -16.363636deg))}
  .wheel-center{width:124px;height:124px}
  .wheel-center strong{font-size:9px}
}
