/* shared.css — Global styles, nav, footer, utilities for all pages */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #1271EB; --blue-dark: #0A56C2; --blue-light: #EBF3FF; --blue-mid: #D6E8FF;
  --navy: #0B2649; --navy-mid: #0E3263; --teal: #17343D; --muted: #627E84;
  --bg: #F4F6FB; --bg2: #EEF2FA; --white: #FFFFFF; --border: #E2E8F4;
  --font-en: 'Montserrat', sans-serif; --font-ar: 'Cairo', sans-serif;
  --radius: 10px; --radius-lg: 16px; --radius-xl: 20px;
}
html { scroll-behavior: smooth; }
body { font-family: var(--font-en); background: var(--white); color: var(--teal); overflow-x: hidden; line-height: 1.6; }
[dir="rtl"] { font-family: var(--font-ar); }
img { max-width: 100%; display: block; }
a { text-decoration: none; }

/* ── SHARED NAV ── */
.snav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  background: rgba(255,255,255,0.97); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border); height: 70px;
  display: flex; align-items: center; transition: box-shadow 0.3s;
}
.snav.scrolled { box-shadow: 0 2px 24px rgba(18,113,235,0.1); }
.snav-inner {
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.snav-logo img { height: 44px; display: block; }
.snav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.snav-links a { font-size: 13.5px; font-weight: 500; color: var(--teal); padding: 7px 13px; border-radius: 8px; transition: all 0.2s; }
.snav-links a:hover, .snav-links a.active { color: var(--blue); background: var(--blue-light); }
.snav-right { display: flex; align-items: center; gap: 10px; }
.snav-lang {
  display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  color: var(--muted); background: none; border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 12px; cursor: pointer; font-family: inherit; transition: all 0.2s;
}
.snav-lang img { width: 18px; height: 18px; border-radius: 3px; object-fit: cover; }
.snav-lang:hover { border-color: var(--blue); color: var(--blue); }
.snav-signin { font-size: 13.5px; font-weight: 600; color: var(--blue); border: 1.5px solid var(--blue); background: none; border-radius: 8px; padding: 8px 18px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.snav-signin:hover { background: var(--blue-light); }
.snav-signup { font-size: 13.5px; font-weight: 700; color: #fff; background: var(--blue); border: none; border-radius: 8px; padding: 9px 20px; cursor: pointer; font-family: inherit; transition: all 0.2s; }
.snav-signup:hover { background: var(--blue-dark); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(18,113,235,0.3); }

/* Hamburger */
.snav-burger {
  display: none; flex-direction: column; justify-content: center; align-items: center;
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  border-radius: 8px; gap: 5px; padding: 8px; transition: background 0.2s; flex-shrink: 0;
}
.snav-burger:hover { background: var(--blue-light); }
.snav-burger span { display: block; width: 20px; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.3s; transform-origin: center; }
.snav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.snav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.snav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.snav-overlay { position: fixed; inset: 0; background: rgba(11,38,73,0.4); z-index: 490; backdrop-filter: blur(2px); }
.snav-drawer {
  position: fixed; top: 70px; left: 0; right: 0; bottom: 0; z-index: 495;
  background: #fff; transform: translateX(-100%); transition: transform 0.35s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}
[dir="rtl"] .snav-drawer { transform: translateX(100%); }
.snav-drawer.open { transform: translateX(0); }
.snav-drawer-inner { padding: 24px 28px; display: flex; flex-direction: column; height: 100%; }
.snav-drawer-links { list-style: none; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.snav-drawer-links a { display: block; font-size: 17px; font-weight: 600; color: var(--teal); padding: 14px 16px; border-radius: 10px; transition: all 0.2s; }
.snav-drawer-links a:hover, .snav-drawer-links a.active { color: var(--blue); background: var(--blue-light); }
.snav-drawer-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--border); }
.snav-signup-full { display: block; text-align: center; width: 100%; padding: 14px; font-size: 15px; font-weight: 700; color: #fff; background: var(--blue); border: none; border-radius: 10px; cursor: pointer; font-family: inherit; }

/* ── SHARED FOOTER ── */
.sfooter { background: var(--navy); padding: 64px 0 36px; }
.sfooter-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sfooter-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sfooter-brand img { height: 44px; margin-bottom: 16px; }
.sfooter-tagline { font-size: 13.5px; color: rgba(255,255,255,0.4); line-height: 1.7; max-width: 240px; }
.sfooter-col-title { font-size: 11px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 18px; }
.sfooter-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.sfooter-links a { font-size: 13.5px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.sfooter-links a:hover { color: var(--blue); }
.sfooter-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; font-size: 12.5px; color: rgba(255,255,255,0.35); }
.sfooter-social { display: flex; gap: 10px; }
.sfooter-social-btn { width: 36px; height: 36px; border-radius: 8px; background: rgba(255,255,255,0.06); border: none; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; color: rgba(255,255,255,0.5); }
.sfooter-social-btn:hover { background: var(--blue); color: #fff; }
.sfooter-social-btn svg { width: 16px; height: 16px; }

/* ── SECTION UTILITIES ── */
.sec-wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.sec-label { font-size: 11px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--blue); margin-bottom: 12px; }
.sec-title { font-size: clamp(26px,2.8vw,40px); font-weight: 800; color: var(--navy); letter-spacing: -0.8px; line-height: 1.2; margin-bottom: 14px; }
.sec-title span { color: var(--blue); }
.sec-desc { font-size: 15.5px; line-height: 1.75; color: var(--muted); max-width: 520px; }
.sec-center { text-align: center; }
.sec-center .sec-desc { margin: 0 auto; }
[dir="rtl"] .sec-label, [dir="rtl"] .sec-title, [dir="rtl"] .sec-desc { text-align: right; }
[dir="rtl"] .sec-center .sec-label, [dir="rtl"] .sec-center .sec-title, [dir="rtl"] .sec-center .sec-desc { text-align: center; }

/* ── BUTTONS ── */
.btn-blue { display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; font-size: 14px; font-weight: 700; padding: 13px 28px; border-radius: var(--radius); border: none; cursor: pointer; font-family: inherit; transition: all 0.25s; text-decoration: none; }
.btn-blue:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(18,113,235,0.3); }
.btn-white-outline { display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--navy); font-size: 14px; font-weight: 600; padding: 12px 26px; border-radius: var(--radius); border: 1.5px solid var(--border); cursor: pointer; font-family: inherit; transition: all 0.2s; text-decoration: none; }
.btn-white-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── SCROLL ANIMATIONS ── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-left { opacity: 0; transform: translateX(-28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-left.visible { opacity: 1; transform: translateX(0); }
.reveal-right { opacity: 0; transform: translateX(28px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* ── PAGE HERO ── */
.page-hero { padding: 130px 0 80px; background: linear-gradient(160deg, #F0F6FF 0%, #FAFCFF 60%, #F4F6FB 100%); position: relative; overflow: hidden; text-align: center; }
.page-hero::before { content:''; position:absolute; top:-200px; right:-200px; width:600px; height:600px; border-radius:50%; background:radial-gradient(circle,rgba(18,113,235,0.07) 0%,transparent 65%); pointer-events:none; }
.page-hero-inner { max-width: 760px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-light); border: 1px solid rgba(18,113,235,0.2); color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 6px 16px; border-radius: 100px; margin-bottom: 22px; }
.hero-eyebrow-dot { width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.page-hero h1 { font-size: clamp(30px, 4vw, 52px); font-weight: 900; color: var(--navy); letter-spacing: -1.5px; line-height: 1.12; margin-bottom: 18px; }
.page-hero h1 span { color: var(--blue); }
.page-hero p { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.page-hero-btns { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .snav-inner { padding: 0 24px; }
  .sfooter-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .sfooter-inner { padding: 0 24px; }
}
@media (max-width: 768px) {
  .snav { height: 60px; }
  .snav-inner { padding: 0 20px; }
  .snav-links, .snav-right { display: none; }
  .snav-burger { display: flex; }
  .sfooter-top { grid-template-columns: 1fr; gap: 28px; }
  .sfooter-inner { padding: 0 20px; }
  .sfooter-tagline { max-width: none; }
  .sfooter-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .snav-drawer { top: 60px; }
  .page-hero { padding: 100px 0 60px; }
  .sec-wrap { padding: 0 20px; }
}
