/* ============================================================
   Spread Agency — global.css
   يُربط في كل صفحة:
   <link rel="stylesheet" href="/public/css/global.css">
   ============================================================ */

/* ── Variables ── */
:root {
  --cn: #30309C;
  --cd: #000017;
  --ct: #30E6CB;
  --cb: #0E8BED;
  --g1: linear-gradient(135deg, #30309C, #000017);
  --g2: linear-gradient(135deg, #30E6CB, #0E8BED);
  --g3: linear-gradient(135deg, #30309C 0%, #0E8BED 60%, #30E6CB 100%);
  --bg: #f5f7ff;
  --surface: rgba(255,255,255,.55);
  --text: #191b3a;
  --muted: #6b6b9a;
  --outline: rgba(48,48,156,.12);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-xl: 44px;
  --shadow-sm: 0 4px 20px rgba(48,48,156,.08);
  --shadow-md: 0 8px 32px rgba(48,48,156,.12);
  --shadow-lg: 0 20px 60px rgba(48,48,156,.16);
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: AJannat-Regular, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  line-height: 1.7;
}
@font-face { font-family: AJannat-Bold;    src: url('../fonts/AJannat-Bold.ttf'); }
@font-face { font-family: AJannat-Regular; src: url('../fonts/AJannat-Regular.ttf'); }
a { text-decoration: none; color: inherit; transition: .3s all; }
img { max-width: 100%; display: block; }

/* ── Glass ── */
.glass {
  background: rgba(255,255,255,.55);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.5);
}
.glass-dark {
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.12);
}

/* ── Scroll reveal ── */
.rv { opacity: 0; transform: translateY(28px); transition: .7s cubic-bezier(.16,1,.3,1); }
.rv.vs { opacity: 1; transform: none; }
.rv.rl { transform: translateX(28px); } .rv.rl.vs { transform: none; }
.rv.rr { transform: translateX(-28px); } .rv.rr.vs { transform: none; }
.d1{transition-delay:.1s} .d2{transition-delay:.2s} .d3{transition-delay:.3s} .d4{transition-delay:.4s}

/* ── HEADER ── */
#sa-header {
  position: fixed; top: 0; width: 100%; z-index: 200;
  background: rgba(245,247,255,.85);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--outline);
  box-shadow: 0 6px 28px rgba(48,48,156,.06);
  transition: .4s all;
}
#sa-header.scrolled { background: rgba(245,247,255,.97); }
.sa-hdr-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1280px; margin: 0 auto; padding: 0 32px; height: 68px; gap: 16px;
}
.sa-logo { font-family: AJannat-Bold; font-size: 20px; color: var(--cd); letter-spacing: -1px; }
.sa-logo em { font-style: normal; color: var(--cn); }
.sa-nav { display: flex; gap: 2px; align-items: center; }
.sa-nav a {
  font-family: AJannat-Bold; font-size: 13px; color: var(--muted);
  padding: 7px 12px; border-radius: 8px; transition: .2s; white-space: nowrap;
}
.sa-nav a:hover, .sa-nav a.ac { color: var(--cn); }
.sa-nav a.ac { border-bottom: 2px solid var(--cn); }
.sa-nav .dropdown { position: relative; }
.sa-nav .dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  background: #fff; border-radius: var(--radius-md); padding: 8px;
  border: 1px solid var(--outline); box-shadow: var(--shadow-md);
  min-width: 180px; display: none; z-index: 300;
}
.sa-nav .dropdown:hover .dropdown-menu { display: block; }
.sa-nav .dropdown-menu a {
  display: block; padding: 9px 14px; border-radius: 8px;
  font-size: 13px; color: var(--text);
}
.sa-nav .dropdown-menu a:hover { background: rgba(48,48,156,.06); color: var(--cn); }
.sa-hdr-actions { display: flex; gap: 10px; align-items: center; }
.sa-cta {
  background: var(--g2); color: #000017 !important;
  padding: 9px 20px; border-radius: 50px;
  font-family: AJannat-Bold; font-size: 13px;
  box-shadow: 0 4px 16px rgba(48,230,203,.3); transition: .3s;
}
.sa-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(48,230,203,.4); }
/* Mobile menu button */
.sa-menu-btn {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  background: none; border: none; padding: 6px;
}
.sa-menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: .3s; }
/* Mobile drawer */
#sa-mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 199;
  background: rgba(0,0,23,.92); backdrop-filter: blur(20px);
  flex-direction: column; align-items: center; justify-content: center; gap: 20px;
}
#sa-mobile-menu.open { display: flex; }
#sa-mobile-menu a { font-family: AJannat-Bold; font-size: 22px; color: #fff; }
#sa-mobile-menu a:hover { color: var(--ct); }
#sa-mobile-menu .sa-cta { font-size: 16px; padding: 12px 32px; margin-top: 10px; }
#sa-mobile-close {
  position: absolute; top: 20px; left: 20px;
  background: none; border: none; color: rgba(255,255,255,.6);
  font-size: 28px; cursor: pointer; line-height: 1;
}

/* ── Page Hero (inner pages) ── */
.sa-page-hero {
  position: relative; padding: 160px 32px 80px;
  background: var(--g1); overflow: hidden; text-align: center;
}
.sa-page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 70% at 30% 50%, rgba(48,48,156,.5) 0%, transparent 70%),
              radial-gradient(ellipse 40% 60% at 80% 40%, rgba(14,139,237,.3) 0%, transparent 70%);
}
.sa-page-hero .sa-eyebrow { color: var(--ct); display: block; margin-bottom: 10px; }
.sa-page-hero h1 { font-family: AJannat-Bold; font-size: clamp(32px,5vw,58px); color: #fff; position: relative; z-index: 1; }
.sa-page-hero p { color: rgba(255,255,255,.7); font-size: 17px; position: relative; z-index: 1; }
.sa-page-hero .breadcrumb { position: relative; z-index: 1; }
.sa-page-hero .breadcrumb-item a { color: rgba(255,255,255,.6); }
.sa-page-hero .breadcrumb-item.active { color: var(--ct); }
.sa-page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ── Section utilities ── */
.sa-sp { padding: 90px 32px; }
.sa-sp-sm { padding: 60px 32px; }
.sa-mw { max-width: 1280px; margin: 0 auto; }
.sa-center { text-align: center; }
.sa-eyebrow {
  font-size: 11px; font-family: AJannat-Bold; color: var(--ct);
  letter-spacing: 3px; text-transform: uppercase; display: block; margin-bottom: 8px;
}
.sa-h2 {
  font-family: AJannat-Bold; font-size: clamp(28px,4vw,50px);
  color: var(--text); line-height: 1.15; margin-bottom: 10px; letter-spacing: -.5px;
}
.sa-h2 em {
  font-style: normal; background: var(--g3);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.sa-h2.light { color: #fff; }
.sa-sub { font-size: 16px; color: var(--muted); max-width: 520px; margin: 0 auto; line-height: 1.8; }

/* ── Buttons ── */
.sa-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g2); color: #000017 !important; padding: 13px 28px;
  border-radius: 50px; font-family: AJannat-Bold; font-size: 15px;
  box-shadow: 0 8px 24px rgba(48,230,203,.3); transition: .3s; border: none; cursor: pointer;
}
.sa-btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(48,230,203,.4); }
.sa-btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2px solid var(--cn); color: var(--cn) !important; padding: 12px 26px;
  border-radius: 50px; font-family: AJannat-Bold; font-size: 15px; transition: .3s; background: transparent;
}
.sa-btn-outline:hover { background: var(--cn); color: #fff !important; }
.sa-btn-glass {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 26px;
  border-radius: 50px; font-family: AJannat-Bold; font-size: 15px; transition: .3s;
}
.sa-btn-glass:hover { background: rgba(255,255,255,.8); }

/* ── Cards ── */
.sa-card {
  background: #fff; border-radius: var(--radius-lg); padding: 28px;
  border: 1.5px solid var(--outline); box-shadow: var(--shadow-sm); transition: .4s;
}
.sa-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }

/* ── Filter tabs ── */
.sa-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 40px; }
.sa-filter-btn {
  padding: 8px 20px; border-radius: 50px; font-family: AJannat-Bold; font-size: 13px;
  border: 2px solid var(--outline); background: #fff; color: var(--muted); cursor: pointer; transition: .3s;
}
.sa-filter-btn.active, .sa-filter-btn:hover { background: var(--g2); border-color: transparent; color: #000017; }

/* ── Pagination ── */
.sa-pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; }
.sa-pagination a {
  width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; font-family: AJannat-Bold; font-size: 14px; color: var(--muted);
  border: 1.5px solid var(--outline); background: #fff; transition: .3s;
}
.sa-pagination a.active { background: var(--g2); border-color: transparent; color: #000017; }
.sa-pagination a:hover:not(.active) { border-color: var(--cn); color: var(--cn); }

/* ── Footer ── */
#sa-footer { background: var(--g1); padding: 70px 32px 28px; position: relative; overflow: hidden; }
#sa-footer::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 50% 60% at 20% 50%, rgba(48,48,156,.5) 0%, transparent 70%),
              radial-gradient(ellipse 40% 50% at 80% 60%, rgba(14,139,237,.2) 0%, transparent 70%);
}
.sa-foot-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px; position: relative; z-index: 1;
}
.sa-foot-brand img { max-height: 48px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .9; }
.sa-foot-brand p { font-size: 14px; color: rgba(255,255,255,.55); line-height: 1.8; max-width: 260px; margin-bottom: 20px; }
.sa-foot-social { display: flex; gap: 10px; }
.sa-fsoc {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.08); display: flex; align-items: center;
  justify-content: center; color: rgba(255,255,255,.6); font-size: 13px; transition: .3s;
}
.sa-fsoc:hover { background: var(--g2); color: #000017; }
.sa-foot-col h5 {
  font-family: AJannat-Bold; font-size: 11px; text-transform: uppercase;
  letter-spacing: 2px; color: rgba(255,255,255,.4); margin-bottom: 16px;
}
.sa-foot-col a, .sa-foot-col span {
  display: block; font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: 10px; transition: .3s;
}
.sa-foot-col a:hover { color: var(--ct); }
.sa-foot-bottom {
  border-top: 1px solid rgba(255,255,255,.08); padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px;
  position: relative; z-index: 1;
}
.sa-foot-copy { font-size: 12px; color: rgba(255,255,255,.35); }

/* ── WhatsApp float ── */
.sa-wa-float {
  position: fixed; bottom: 28px; left: 24px; z-index: 99;
  width: 54px; height: 54px; border-radius: 50%; background: #25d366;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff; box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: .3s;
}
.sa-wa-float:hover { transform: scale(1.1); }
.sa-totop {
  position: fixed; bottom: 92px; left: 24px; z-index: 99;
  width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--g2); color: #000017; font-size: 15px; display: none;
  align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(48,230,203,.3);
}

/* ── Alert / Messages ── */
.sa-msg-s { background: #e8f5e9; color: #2e7d32; padding: 12px 18px; border-radius: 10px; font-size: 13px; }
.sa-msg-e { background: #fce4ec; color: #c62828; padding: 12px 18px; border-radius: 10px; font-size: 13px; }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sa-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .sa-hdr-inner { padding: 0 20px; }
  .sa-nav { display: none; }
  .sa-menu-btn { display: flex; }
  .sa-sp { padding: 60px 20px; }
  .sa-sp-sm { padding: 40px 20px; }
  .sa-page-hero { padding: 120px 20px 60px; }
  .sa-foot-grid { grid-template-columns: 1fr; }
  .sa-foot-bottom { flex-direction: column; text-align: center; }
}
