:root{
  --bg:#f6f8fb; --card:#fff; --ink:#0f172a; --muted:#64748b;
  --primary:#7c3aed; --indigo:#4f46e5; --border:#e5e7eb; --radius:18px;
  --shadow:0 14px 44px rgba(2,6,23,.08);
}
*{box-sizing:border-box}
body{margin:0;font-family:'Cairo',system-ui;background:var(--bg);color:var(--ink)}
a{text-decoration:none;color:inherit}
.container{max-width:1200px;margin-inline:auto;padding:0 20px}

/* Header */
.site-header{position:sticky;top:0;z-index:50;background:rgba(255,255,255,.8);backdrop-filter:blur(10px);border-bottom:1px solid rgba(15,23,42,.06)}
.header-wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 0}
.brand{display:flex;align-items:center;gap:12px}
.brand img{width:46px;height:46px;border-radius:12px;border:1px solid var(--border);background:#fff;object-fit:contain}
.brand-text strong{display:block;font-weight:900}
.main-nav ul{display:flex;gap:14px;list-style:none;margin:0;padding:0}
.main-nav a{padding:10px 14px;border-radius:12px;font-weight:700}
.main-nav a:hover{background:#fff;border:1px solid var(--border)}
.btn{display:inline-flex;align-items:center;gap:8px;padding:10px 14px;border-radius:12px;border:1px solid transparent;font-weight:800;cursor:pointer}
.btn.primary{background:linear-gradient(135deg,var(--primary),var(--indigo));color:#fff;box-shadow:var(--shadow)}
.btn.ghost{background:#fff;border:1px solid var(--border)}

/* Hero Slider */
.hero-section{position:relative;overflow:hidden}
.hero-slider{position:relative;height:min(68vh,560px)}
.hero-track{display:flex;width:100%;height:100%;transition:transform .7s cubic-bezier(.22,.61,.36,1)}
.hero-slide{min-width:100%;height:100%;position:relative;background-size:cover;background-position:center}
.hero-slide::before{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(15,23,42,.55),rgba(15,23,42,.15))}
.overlay{position:absolute;inset:0;display:grid;place-items:center;text-align:center;color:#fff;padding:20px}
.overlay .kicker{display:inline-block;margin-bottom:10px;padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.12);font-weight:800}
.overlay h1{margin:.2em 0;font-size:clamp(24px,4.8vw,48px)}
.overlay p{margin:0 0 18px;opacity:.95}
.arrow{position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.15);border:1px solid rgba(255,255,255,.4);color:#fff;font-size:28px;cursor:pointer}
.arrow.prev{right:16px} .arrow.next{left:16px}
.dots{position:absolute;bottom:14px;inset-inline:0;display:flex;justify-content:center;gap:8px}
.dots button{width:10px;height:10px;border-radius:999px;border:none;background:rgba(255,255,255,.5);cursor:pointer}
.dots button.active{background:#fff;width:22px;transition:width .25s}

/* Sections */
.section{padding:60px 0}
.section.alt{background:#f8fafc}
.section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;margin-bottom:20px}
.section-head h2{margin:0;font-size:clamp(22px,3.4vw,34px)}
.muted{color:var(--muted)} .link{color:var(--indigo);font-weight:800}

/* Cards & grids */
.cards-4{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}
.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);position:relative;overflow:hidden}
.card:hover{transform:translateY(-4px);transition:transform .25s}

/* Reveal animation */
.reveal{opacity:0;transform:translateY(18px);transition:.6s ease}
.reveal.show{opacity:1;transform:none}
.reveal-group .reveal:nth-child(1){transition-delay:.05s}
.reveal-group .reveal:nth-child(2){transition-delay:.12s}
.reveal-group .reveal:nth-child(3){transition-delay:.19s}
.reveal-group .reveal:nth-child(4){transition-delay:.26s}

/* Footer */
.site-footer{background:#0f172a;color:#e2e8f0;margin-top:28px}
.foot-grid{display:grid;grid-template-columns:1.3fr .7fr .7fr;gap:20px;padding:32px 0}
.foot-links{list-style:none;margin:0;padding:0;display:grid;gap:6px}
.copy{text-align:center;color:#94a3b8;border-top:1px solid rgba(148,163,184,.2);padding:10px}

/* Responsive */
@media (max-width:1000px){
  .cards-4{grid-template-columns:repeat(2,1fr)}
  .grid-3{grid-template-columns:repeat(2,1fr)}
  .hero-slider{height:56vh}
}
@media (max-width:640px){
  .main-nav{display:none}
  .cards-4,.grid-3{grid-template-columns:1fr}
}
/* ==== Pro Form ==== */
.mini-form.pro{margin-top:6px}
.f-row{display:grid;grid-template-columns:1fr 1fr 1fr auto;gap:12px;align-items:end}
.f-field{display:grid;gap:6px}
.f-label{font-weight:800;color:#0f172a}
:root[data-theme="dark"] .f-label{color:#e5e7eb}

.f-input{position:relative}
.f-input input,
.f-input select{
  width:100%; padding:12px 40px 12px 12px; border:1px solid var(--border);
  border-radius:14px; background:#fff; font-size:16px; transition:border .2s, box-shadow .2s;
  appearance:none;
}
.f-input select{ padding-inline-end:38px; background-image:
  linear-gradient(45deg, transparent 50%, #94a3b8 50%),
  linear-gradient(135deg, #94a3b8 50%, transparent 50%),
  linear-gradient(to right, #fff, #fff);
  background-position: calc(100% - 18px) 50%, calc(100% - 12px) 50%, 100% 0;
  background-size: 6px 6px, 6px 6px, 2.5em 3em; background-repeat:no-repeat;
}
.f-input input:focus, .f-input select:focus{
  outline:none; border-color:#c7d2fe; box-shadow:0 0 0 3px rgba(99,102,241,.15);
}
.f-icon{
  position:absolute; inset:0 auto 0 10px; display:grid; place-items:center; width:24px; color:#94a3b8; pointer-events:none;
}

/* أزرار */
.f-actions{display:flex; gap:10px; justify-content:flex-end}
.f-btn{min-width:110px}

/* رسائل */
.f-hint{margin:8px 0 0; color:var(--muted); font-size:12px}
.f-success{
  margin-top:10px; padding:10px 12px; border-radius:14px;
  background:#ecfdf5; color:#065f46; border:1px solid #a7f3d0; font-weight:700;
}

/* Responsive */
@media (max-width:1000px){
  .f-row{grid-template-columns:1fr 1fr; gap:10px}
  .f-actions{grid-column:1/-1; justify-content:flex-start}
}
@media (max-width:640px){
  .f-row{grid-template-columns:1fr; gap:8px}
  .f-btn{width:100%}
}
