/* ==============================
   ENGLISH ZONE — SHARED STYLES
   Used across all pages
============================== */

:root {
  --blue:       #1a6bff;
  --blue-dark:  #0047cc;
  --blue-light: #4d90ff;
  --accent:     #ffd600;
  --bg:         #f0f4ff;
  --bg2:        #ffffff;
  --surface:    #ffffff;
  --surface2:   #eef2ff;
  --text:       #0a0e1a;
  --text2:      #3a4060;
  --text3:      #6b7280;
  --border:     rgba(26,107,255,0.12);
  --shadow:     0 8px 40px rgba(26,107,255,0.12);
  --radius:     20px;
  --tr:         0.32s cubic-bezier(0.4,0,0.2,1);
  --header-h:   72px;
}
[data-theme="dark"] {
  --bg:       #060b18;
  --bg2:      #0c1428;
  --surface:  #111827;
  --surface2: #1a2540;
  --text:     #f0f4ff;
  --text2:    #a0aac8;
  --text3:    #6b7a9a;
  --border:   rgba(26,107,255,0.22);
  --shadow:   0 8px 40px rgba(0,0,0,0.45);
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Cairo','Tajawal',sans-serif;
  background: var(--bg);
  color: var(--text);
  direction: rtl;
  overflow-x: hidden;
  transition: background var(--tr), color var(--tr);
}
body.ltr { direction: ltr; font-family: 'DM Sans',sans-serif; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* UTILITIES */
.container { max-width: 1260px; margin: 0 auto; padding: 0 20px; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 100px;
  font-size: 15px; font-weight: 800;
  cursor: pointer; border: none; text-decoration: none;
  transition: all var(--tr); white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 28px rgba(26,107,255,0.32); }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--text); border: 2px solid var(--border); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-accent { background: var(--accent); color: #0a0e1a; box-shadow: 0 6px 28px rgba(255,214,0,0.28); }
.btn-accent:hover { transform: translateY(-2px); }

/* ===== SHARED HEADER ===== */
.ez-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: all var(--tr);
}
.ez-header.scrolled {
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}
.ez-header .container {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.ez-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.ez-logo img {
  width: 42px; height: 42px;
  border-radius: 10px; object-fit: cover;
  box-shadow: 0 3px 12px rgba(26,107,255,0.25);
}
.ez-logo-text { font-size: 17px; font-weight: 900; color: var(--text); line-height: 1; }
.ez-logo-text span { color: var(--blue); }

.ez-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.ez-nav a {
  color: var(--text2); text-decoration: none;
  padding: 8px 14px; border-radius: 10px;
  font-size: 14px; font-weight: 700; transition: all 0.2s; display: block;
}
.ez-nav a:hover { color: var(--blue); background: rgba(26,107,255,0.07); }

.ez-header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.ez-icon-btn {
  width: 38px; height: 38px; border-radius: 10px;
  border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text2);
  cursor: pointer; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; flex-shrink: 0;
}
.ez-icon-btn:hover { border-color: var(--blue); color: var(--blue); }
.ez-cta-btn { padding: 9px 20px; font-size: 13px; border-radius: 100px; }

.ez-hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 6px; flex-shrink: 0;
}
.ez-hamburger span {
  width: 22px; height: 2px; background: var(--text);
  border-radius: 2px; transition: all 0.3s; display: block;
}
.ez-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.ez-hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.ez-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.ez-mobile-nav {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(320px, 90vw);
  background: var(--surface);
  z-index: 999; padding: 90px 28px 40px;
  display: flex; flex-direction: column; gap: 8px;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4,0,0.2,1);
  box-shadow: -8px 0 40px rgba(0,0,0,0.15);
  overflow-y: auto;
}
body.ltr .ez-mobile-nav { right: auto; left: 0; transform: translateX(-100%); }
.ez-mobile-nav.open { transform: translateX(0); }
.ez-mobile-nav a {
  font-size: 18px; font-weight: 800; color: var(--text);
  padding: 14px 16px; border-radius: 14px; transition: all 0.2s;
}
.ez-mobile-nav a:hover { background: rgba(26,107,255,0.08); color: var(--blue); }
.ez-mobile-nav .btn { margin-top: 16px; justify-content: center; }

.ez-nav-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(0,0,0,0.4); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s;
}
.ez-nav-overlay.open { opacity: 1; pointer-events: auto; }

/* WhatsApp float */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 900;
  width: 54px; height: 54px; border-radius: 16px;
  background: #25d366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; text-decoration: none;
  box-shadow: 0 6px 22px rgba(37,211,102,0.35);
  animation: wa-float 3s ease-in-out infinite;
}
body.ltr .whatsapp-float { right: auto; left: 24px; }
@keyframes wa-float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Back to top */
#back-top {
  position: fixed; bottom: 24px; left: 24px; z-index: 900;
  width: 46px; height: 46px; border-radius: 14px;
  background: var(--blue); color: #fff; border: none;
  cursor: pointer; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 22px rgba(26,107,255,0.32);
  opacity: 0; transform: translateY(20px);
  transition: all var(--tr); pointer-events: none;
}
body.ltr #back-top { left: auto; right: 24px; }
#back-top.show { opacity: 1; transform: translateY(0); pointer-events: auto; }
#back-top:hover { background: var(--blue-dark); }

/* Page padding for fixed header */
.page-padded { padding-top: var(--header-h); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* Responsive header */
@media (max-width: 768px) {
  :root { --header-h: 64px; }
  .ez-nav { display: none; }
  .ez-hamburger { display: flex; }
  .ez-cta-btn { display: none; }
}
