/* ==========================================================================
   سعّرها | Sa3erha — نظام التصميم المشترك
   ========================================================================== */

:root{
  --blue: #0057FF;
  --blue-dark: #003FBF;
  --blue-tint: #EAF0FF;
  --yellow: #F9C300;
  --yellow-dark: #D9A800;
  --dark: #2E2E2E;
  --dark-soft: #55555A;
  --white: #FFFFFF;
  --bg: #F7F8FA;
  --line: #E4E6EA;
  --success: #1E9E5A;
  --danger: #E23D3D;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --shadow-sm: 0 2px 8px rgba(46,46,46,0.06);
  --shadow-md: 0 8px 24px rgba(46,46,46,0.10);
  --shadow-blue: 0 10px 30px rgba(0,87,255,0.20);

  --font-display: "Cairo", sans-serif;
  --font-body: "IBM Plex Sans Arabic", sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--bg);
  color:var(--dark);
  font-family:var(--font-body);
  direction:rtl;
  text-align:right;
  line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{
  font-family:var(--font-display);
  font-weight:700;
  margin:0 0 .5em;
  color:var(--dark);
}
p{ margin:0 0 1em; color:var(--dark-soft); }
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
button{ font-family:inherit; cursor:pointer; }
input,select,textarea{ font-family:inherit; }

.container{ max-width:1180px; margin:0 auto; padding:0 24px; }
.section{ padding:72px 0; }
.section-tight{ padding:40px 0; }

@media (max-width:720px){
  .section{ padding:48px 0; }
  .container{ padding:0 18px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; }
}

/* ---------- Logo (signature element) ---------- */
.brand{ display:flex; align-items:center; gap:10px; }
.brand-mark{ width:40px; height:40px; flex-shrink:0; }
.brand-word{
  font-family:var(--font-display);
  font-weight:800;
  font-size:22px;
  color:var(--blue);
  letter-spacing:-.2px;
}
.brand-word span{ color:var(--dark); font-weight:700; font-size:12px; display:block; margin-top:-4px; letter-spacing:1px;}

/* ---------- Top navigation ---------- */
.topbar{
  position:sticky; top:0; z-index:50;
  background:rgba(247,248,250,.86);
  backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.topbar-inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.nav-links{ display:flex; gap:28px; align-items:center; }
.nav-links a{ font-weight:600; font-size:15px; color:var(--dark-soft); transition:color .15s; }
.nav-links a:hover{ color:var(--blue); }
.nav-cta{ display:flex; gap:10px; align-items:center; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px;
  border-radius:999px;
  font-weight:700;
  font-size:15px;
  border:2px solid transparent;
  transition:transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space:nowrap;
}
.btn:active{ transform:scale(.97); }
.btn-primary{ background:var(--blue); color:var(--white); box-shadow:var(--shadow-blue); }
.btn-primary:hover{ background:var(--blue-dark); }
.btn-accent{ background:var(--yellow); color:var(--dark); }
.btn-accent:hover{ background:var(--yellow-dark); }
.btn-outline{ background:transparent; color:var(--dark); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--blue); color:var(--blue); }
.btn-ghost{ background:transparent; color:var(--blue); padding:10px 14px; }
.btn-block{ width:100%; }
.btn-lg{ padding:16px 34px; font-size:17px; }
.btn[disabled]{ opacity:.5; cursor:not-allowed; }

/* ---------- Cards ---------- */
.card{
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  box-shadow:var(--shadow-sm);
}
.card-pad{ padding:26px; }
.card-hover{ transition:transform .18s ease, box-shadow .18s ease; }
.card-hover:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }

/* ---------- Service tile (tilted price-tag echo) ---------- */
.service-tile{
  position:relative;
  background:var(--white);
  border:1px solid var(--line);
  border-radius:var(--radius-md);
  padding:24px;
  display:flex; flex-direction:column; gap:10px;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s;
}
.service-tile:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--blue); }
.service-tile.selected{ border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-tint); }
.service-tile .tile-icon{
  width:46px; height:46px; border-radius:10px;
  background:var(--blue-tint); color:var(--blue);
  display:flex; align-items:center; justify-content:center;
  transform:rotate(-15deg);
}
.service-tile .tile-icon svg{ transform:rotate(15deg); width:24px; height:24px; }
.service-tile h4{ font-size:16px; margin:0; }
.service-tile p{ font-size:13px; margin:0; color:var(--dark-soft); }
.service-group-title{
  font-family:var(--font-display); font-weight:800; font-size:14px;
  color:var(--blue); text-transform:none; margin:36px 0 14px;
  display:flex; align-items:center; gap:10px;
}
.service-group-title::after{ content:""; flex:1; height:1px; background:var(--line); }

/* ---------- Forms ---------- */
.field{ margin-bottom:20px; }
.field label{ display:block; font-weight:700; font-size:14px; margin-bottom:8px; }
.field .hint{ font-size:12.5px; color:var(--dark-soft); margin-top:6px; }
.field input[type=text],
.field input[type=number],
.field input[type=tel],
.field input[type=email],
.field input[type=password],
.field select,
.field textarea{
  width:100%;
  padding:13px 14px;
  border:1.5px solid var(--line);
  border-radius:var(--radius-sm);
  font-size:15px;
  background:var(--white);
  color:var(--dark);
  transition:border-color .15s;
}
.field input:focus, .field select:focus, .field textarea:focus{
  outline:none; border-color:var(--blue); box-shadow:0 0 0 3px var(--blue-tint);
}
.field textarea{ resize:vertical; min-height:90px; }
.toggle-row{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 16px; border:1.5px solid var(--line); border-radius:var(--radius-sm);
}
.switch{ position:relative; width:46px; height:26px; flex-shrink:0; }
.switch input{ opacity:0; width:0; height:0; position:absolute; }
.switch-track{ position:absolute; inset:0; background:#D8DBE0; border-radius:999px; transition:background .2s; }
.switch-thumb{ position:absolute; top:3px; right:3px; width:20px; height:20px; background:var(--white); border-radius:50%; transition:transform .2s; box-shadow:0 1px 3px rgba(0,0,0,.3); }
.switch input:checked + .switch-track{ background:var(--blue); }
.switch input:checked + .switch-track .switch-thumb{ transform:translateX(-20px); }

/* step indicator */
.steps{ display:flex; align-items:center; gap:8px; margin-bottom:34px; }
.step{
  flex:1; height:5px; border-radius:99px; background:var(--line); position:relative; overflow:hidden;
}
.step.done, .step.active{ background:var(--blue); }

/* ---------- Badges ---------- */
.badge{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:999px; font-size:12.5px; font-weight:700; }
.badge-yellow{ background:#FFF6DA; color:#8A6B00; }
.badge-blue{ background:var(--blue-tint); color:var(--blue); }
.badge-green{ background:#E7F7EE; color:var(--success); }
.badge-red{ background:#FCEAEA; color:var(--danger); }
.badge-gray{ background:#EFF0F2; color:var(--dark-soft); }

/* ---------- Table ---------- */
table{ width:100%; border-collapse:collapse; }
th{ text-align:right; font-size:12.5px; color:var(--dark-soft); font-weight:700; padding:12px 14px; border-bottom:2px solid var(--line); }
td{ padding:14px; border-bottom:1px solid var(--line); font-size:14.5px; }
tr:last-child td{ border-bottom:none; }

/* ---------- Sidebar dashboard layout ---------- */
.dash{ display:grid; grid-template-columns:260px 1fr; min-height:100vh; }
.dash-side{
  background:var(--dark); color:var(--white);
  padding:26px 20px; display:flex; flex-direction:column; gap:6px;
}
.dash-side .brand-word{ color:var(--yellow); }
.dash-side .brand-word span{ color:#B9B9BC; }
.dash-nav{ margin-top:30px; display:flex; flex-direction:column; gap:4px; }
.dash-nav a{
  padding:12px 14px; border-radius:10px; font-weight:600; font-size:14.5px; color:#C9CACD;
  display:flex; align-items:center; gap:10px; transition:background .15s,color .15s;
}
.dash-nav a:hover{ background:#3B3B3D; color:var(--white); }
.dash-nav a.active{ background:var(--blue); color:var(--white); }
.dash-main{ padding:34px 40px; }
.dash-topline{ display:flex; align-items:center; justify-content:space-between; margin-bottom:28px; flex-wrap:wrap; gap:14px; }
.stat-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:30px; }
.stat-card{ background:var(--white); border:1px solid var(--line); border-radius:var(--radius-md); padding:20px; }
.stat-card .num{ font-family:var(--font-display); font-size:28px; font-weight:800; color:var(--blue); }
.stat-card .lbl{ font-size:13px; color:var(--dark-soft); margin-top:4px; }

@media (max-width:900px){
  .dash{ grid-template-columns:1fr; }
  .dash-side{ display:none; }
  .stat-grid{ grid-template-columns:1fr 1fr; }
  .dash-main{ padding:22px; }
}

/* ---------- Footer ---------- */
.site-footer{ background:var(--dark); color:#C9CACD; padding:50px 0 26px; margin-top:60px; }
.site-footer a{ color:#C9CACD; }
.site-footer a:hover{ color:var(--yellow); }
.footer-grid{ display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:30px; margin-bottom:30px; }
.footer-bottom{ border-top:1px solid #46464A; padding-top:20px; font-size:13px; display:flex; justify-content:space-between; flex-wrap:wrap; gap:10px; }
@media (max-width:720px){ .footer-grid{ grid-template-columns:1fr 1fr; } }

/* ---------- Utility ---------- */
.flex{ display:flex; }
.flex-col{ display:flex; flex-direction:column; }
.items-center{ align-items:center; }
.justify-between{ justify-content:space-between; }
.gap-8{ gap:8px; } .gap-12{ gap:12px; } .gap-16{ gap:16px; } .gap-24{ gap:24px; }
.text-center{ text-align:center; }
.muted{ color:var(--dark-soft); }
.small{ font-size:13px; }
.mt-0{margin-top:0;} .mb-0{margin-bottom:0;}
.w-full{ width:100%; }
.grid-2{ display:grid; grid-template-columns:1fr 1fr; gap:20px; }
@media (max-width:640px){ .grid-2{ grid-template-columns:1fr; } }
.hidden{ display:none !important; }

.price-huge{
  font-family:var(--font-display); font-weight:800; color:var(--blue);
  font-size:52px; line-height:1; letter-spacing:-1px;
}
.price-huge span{ font-size:20px; font-weight:700; color:var(--dark-soft); margin-right:6px; }

.divider{ height:1px; background:var(--line); border:none; margin:24px 0; }

.mobile-toggle{ display:none; }
@media (max-width:860px){
  .nav-links{ display:none; }
  .mobile-toggle{ display:block; }
}
