:root {
  --purple: #7C3AED;
  --purple-dark: #5b21b6;
  --mint: #10B981;
  --mint-light: #b7ffe1;
  --bg: #0f172a;
  --text: #0b1021;
  --muted: #6b7280;
  --card: #ffffff;
  --alt: #f7f8fb;
  --border: #e5e7eb;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'Cairo', sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.7;
}

img, svg { display: block; }
a { text-decoration: none; color: inherit; }

.container { width: min(1200px, 92vw); margin: 0 auto; }

/* Navbar */
.navbar {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.95);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1rem 0; flex-wrap: nowrap; position: relative; }
.brand { display: inline-flex !important; align-items: center; gap: 0.8rem; font-weight: 800; margin-inline-start: 0; order: 3; }
.brand-icon { width: 46px; height: 46px; }
.brand svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-ar { font-size: 1.2rem; }
.brand-en { font-size: 0.7rem; letter-spacing: 0.6px; color: var(--muted); }
.brand.white .brand-en { color: rgba(255,255,255,0.8); }
.nav-links { display: flex !important; gap: 1rem; align-items: center; flex-wrap: wrap; justify-content: center; flex: 1; order: 2; }
.menu-toggle { display: none !important; visibility: hidden !important; opacity: 0 !important; border: none; padding: 0.5rem; border-radius: 12px; background: var(--purple); color: white; cursor: pointer; font-weight: 800; font-size: 1.5rem; z-index: 100; transition: all 0.3s ease; width: 44px; height: 44px; align-items: center; justify-content: center; position: absolute; left: -9999px; }
.nav-links a { padding: 0.35rem 0.75rem; border-radius: 999px; font-weight: 600; color: #111827; transition: all 0.2s ease; white-space: nowrap; }
.nav-links a.active, .nav-links a:hover { color: var(--purple); background: rgba(124,58,237,0.1); }
.header-contact { display: flex; align-items: center; gap: 1rem; }
.phone-link { display: flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.95rem; background: rgba(16,185,129,0.1); color: var(--mint); border-radius: 999px; font-weight: 700; font-size: 0.95rem; transition: all 0.2s ease; }
.phone-link:hover { background: rgba(16,185,129,0.2); transform: translateY(-1px); }
.cta-small { padding: 0.45rem 0.95rem; background: linear-gradient(120deg, var(--purple), var(--mint)); color: white; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow); white-space: nowrap; order: 1; }
.menu-toggle:hover { background: rgba(124,58,237,0.1); border-color: var(--purple); }
.menu-toggle.active { background: var(--purple); color: white; }

/* Hero */
.hero { padding: 110px 0 80px; background: radial-gradient(circle at 20% 20%, rgba(124,58,237,0.08), transparent 35%), radial-gradient(circle at 80% 10%, rgba(16,185,129,0.12), transparent 30%), #fff; }
.hero-grid { display: grid !important; grid-template-columns: 1.2fr 0.9fr !important; gap: 2rem; align-items: center; }
.hero-text { order: 1; }
.hero-card { order: 2; }
.hero-text h1 { font-size: clamp(2.2rem, 3vw, 3rem); margin: 0.6rem 0; line-height: 1.15; }
.subhead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.2rem; }
.eyebrow { color: var(--purple); font-weight: 800; letter-spacing: 0.5px; font-size: 0.85rem; text-transform: uppercase; }
.hero-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; margin: 1.2rem 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem; padding: 0.9rem 1.4rem; border-radius: 14px; font-weight: 800; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease; }
.btn.primary { background: linear-gradient(120deg, var(--purple), var(--mint)); color: white; box-shadow: var(--shadow); }
.btn.ghost { border-color: rgba(124,58,237,0.2); color: var(--purple); background: #fff; }
.btn.full { width: 100%; text-align: center; background: var(--purple); color: #fff; }
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.hero-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.5rem; }
.stat { min-width: 140px; padding: 0.9rem 1.1rem; border: 1px solid var(--border); border-radius: 12px; background: white; }
.stat-number { font-weight: 900; font-size: 1.4rem; color: var(--purple); }
.stat-label { display: block; color: var(--muted); font-size: 0.95rem; }
.hero-card { background: #0f172a; color: white; border-radius: 20px; padding: 1.8rem; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.hero-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 20% 20%, rgba(124,58,237,0.15), transparent 40%), radial-gradient(circle at 80% 0%, rgba(16,185,129,0.18), transparent 35%); pointer-events: none; }
.hero-card .badge-pill { display: inline-block; background: rgba(255,255,255,0.08); padding: 0.35rem 0.9rem; border-radius: 999px; font-weight: 700; margin-bottom: 0.8rem; }
.hero-card h3 { margin-bottom: 0.5rem; }
.hero-card p { color: rgba(255,255,255,0.9); }
.checklist { list-style: none; margin: 1rem 0 1.5rem; padding: 0; }
.checklist li { padding: 0.35rem 0; color: rgba(255,255,255,0.9); }

/* Sections */
.section { padding: 80px 0; background: #fff; }
.section.muted { background: #0f172a; color: white; }
.section.muted .lead { color: rgba(255,255,255,0.8); }
.section-head { margin-bottom: 2rem; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(2rem, 2.6vw, 2.6rem); margin-top: 0.5rem; }
.lead { color: var(--muted); font-size: 1.05rem; }
.section.muted .lead { color: rgba(255,255,255,0.8); }

.two-col .split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: center; }
.card.soft { background: var(--alt); border: 1px solid var(--border); padding: 1.5rem; border-radius: 16px; box-shadow: var(--shadow); }
.tags { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
.tag { padding: 0.35rem 0.7rem; border-radius: 10px; background: rgba(124,58,237,0.08); color: var(--purple); font-weight: 700; font-size: 0.9rem; }

/* Pillars */
.pillars-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.2rem; }
.pillar-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.4rem; box-shadow: var(--shadow); }
.icon-circle { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 1rem; background: rgba(124,58,237,0.08); }
.icon-circle.green { background: rgba(16,185,129,0.1); }
.icon-circle.dual { background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(16,185,129,0.12)); }
.icon-circle svg { width: 48px; height: 48px; }

/* Why */
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.why-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); padding: 1.2rem; border-radius: 14px; }
.why-item h4 { margin-bottom: 0.4rem; }
.why-item p { color: rgba(255,255,255,0.85); }

/* Invitation */
.invite-card { background: linear-gradient(120deg, rgba(124,58,237,0.08), rgba(16,185,129,0.08)); border: 1px solid var(--border); border-radius: 18px; padding: 2rem; display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.5rem; box-shadow: var(--shadow); align-items: center; }
.invite-form { display: grid; gap: 0.8rem; }
.invite-form input { padding: 0.95rem 1rem; border-radius: 12px; border: 1px solid var(--border); font-family: inherit; font-size: 1rem; }
.invite-form .form-note { color: var(--muted); font-size: 0.9rem; }

/* Page hero */
.page-hero { padding: 120px 0 60px; background: radial-gradient(circle at 15% 15%, rgba(124,58,237,0.1), transparent 35%), radial-gradient(circle at 80% 15%, rgba(16,185,129,0.12), transparent 35%), #fff; }
.page-hero.closed { background: #0f172a; color: white; }
.page-hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.label-closed { padding: 0.6rem 1rem; border-radius: 999px; background: rgba(255,255,255,0.12); color: white; font-weight: 800; }

/* Live workshops */
.workshops-live-grid { display: grid; grid-template-columns: 1fr; gap: 1.8rem; max-width: 900px; margin: 0 auto; }
.workshop-live-card { background: white; border: 1px solid var(--border); border-radius: 18px; padding: 2rem; box-shadow: 0 4px 12px rgba(0,0,0,0.08); display: flex; flex-direction: column; gap: 1rem; transition: all 0.3s ease; }
.workshop-live-card:hover { box-shadow: 0 8px 24px rgba(124,58,237,0.15); transform: translateY(-2px); border-color: rgba(124,58,237,0.3); }
.workshop-live-card h3 { margin-top: 0.2rem; font-size: 1.4rem; }
.workshop-live-card .desc { flex-grow: 1; line-height: 1.7; }
.workshop-live-card .mini-list { flex-grow: 0; }
.actions-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.actions-row .btn { flex: 1 1 180px; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 10px; background: rgba(124,58,237,0.12); color: var(--purple); font-weight: 800; font-size: 0.9rem; }
.muted { color: var(--muted); }
.desc { color: var(--text); }
.mini-list { list-style: none; padding: 0; margin: 0.2rem 0 0.6rem; color: var(--text); }
.mini-list li { padding: 0.2rem 0; }
.meta-row { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-weight: 700; }
.price { color: var(--purple); font-weight: 900; }

/* Archive workshops */
.workshop-archive-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.archive-card { background: white; border: 1px solid var(--border); border-radius: 16px; padding: 1.6rem; box-shadow: var(--shadow); position: relative; transition: all 0.3s ease; }
.archive-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0,0,0,0.12); border-color: var(--purple); }
.archive-top h3 { margin: 0.2rem 0 0.4rem; }

/* Detail cards for workshop pages */
.details-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.5rem; max-width: 1100px; margin: 0 auto; }
.detail-card { background: white; border: 1px solid rgba(124,58,237,0.15); border-radius: 20px; padding: 2rem; box-shadow: 0 4px 20px rgba(0,0,0,0.08); transition: all 0.3s ease; text-align: center; }
.detail-card:hover { transform: translateY(-6px); box-shadow: 0 12px 32px rgba(124,58,237,0.2); border-color: var(--purple); }
.detail-icon-box { width: 72px; height: 72px; margin: 0 auto 1.5rem; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(16,185,129,0.12)); border-radius: 18px; }
.detail-icon { width: 40px; height: 40px; }
.detail-card h3 { color: var(--purple); font-size: 1.3rem; font-weight: 700; margin-bottom: 1rem; }
.detail-main { font-size: 1.1rem; font-weight: 700; color: var(--text); margin: 0.5rem 0; line-height: 1.6; }
.detail-sub { font-size: 0.95rem; color: var(--muted); margin: 0.3rem 0; line-height: 1.5; }
.detail-btn { margin-top: 1rem; width: 100%; padding: 0.7rem; font-size: 0.95rem; }
.badge-closed { background: rgba(124,58,237,0.12); color: var(--purple); padding: 0.3rem 0.7rem; border-radius: 12px; font-weight: 800; font-size: 0.85rem; }
.archive-meta { display: flex; flex-wrap: wrap; gap: 0.6rem; color: var(--muted); font-size: 0.95rem; margin: 0.5rem 0; }
.archive-note { color: var(--text); font-size: 0.98rem; }

/* Meetings */
.meetings-list { display: grid; gap: 1rem; }
.meeting-card { background: white; border: 1px solid var(--border); border-radius: 14px; padding: 1.2rem 1.4rem; box-shadow: var(--shadow); }
.meeting-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.meeting-meta { color: var(--muted); font-size: 0.95rem; margin: 0.3rem 0; }
.meeting-desc { color: var(--text); }

/* Footer */
.footer { background: #0b1021; color: white; padding: 2.5rem 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; align-items: start; }
.footer .brand { color: white; }
.footer .brand-ar { color: white; }
.footer .brand-en { color: rgba(255,255,255,0.8); }
.footer-note { color: rgba(255,255,255,0.7); margin-top: 0.5rem; }
.footer-links { display: grid; gap: 0.35rem; }
.footer-links a { color: rgba(255,255,255,0.85); }
.footer-contact p { color: rgba(255,255,255,0.85); }
.social { display: flex; gap: 0.8rem; margin-top: 0.8rem; }
.social-link { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: rgba(255,255,255,0.1); color: white; text-decoration: none; transition: all 0.3s ease; }
.social-link:hover { background: rgba(255,255,255,0.25); transform: translateY(-3px) scale(1.1); }
.social-link svg { width: 22px; height: 22px; }
.social-link:hover svg { filter: drop-shadow(0 2px 4px rgba(255,255,255,0.3)); }
.social span { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: rgba(255,255,255,0.08); color: white; font-weight: 800; }

/* Utilities */
.alt-bg { background: var(--alt); }

/* Modal */
.modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 50; }
.modal.show { display: flex; }
.modal-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.45); backdrop-filter: blur(4px); }
.modal-content { position: relative; background: #fff; border-radius: 18px; padding: 1.8rem; width: min(520px, 92vw); box-shadow: var(--shadow); z-index: 2; }
.modal-close { position: absolute; top: 0.8rem; left: 0.8rem; background: transparent; border: none; font-size: 1.5rem; cursor: pointer; color: var(--muted); }
.modal-eyebrow { color: var(--purple); font-weight: 800; font-size: 0.9rem; margin-bottom: 0.3rem; }
.modal-form { display: grid; gap: 0.9rem; margin-top: 0.8rem; }
.modal-form label { display: grid; gap: 0.35rem; font-weight: 700; color: var(--text); }
.modal-form input { padding: 0.85rem 0.9rem; border-radius: 12px; border: 1px solid var(--border); font-family: inherit; }
.modal-note { color: var(--muted); font-size: 0.9rem; text-align: center; }
.status { text-align: center; font-weight: 700; margin-top: 0.5rem; }
.status.sending { color: var(--muted); }
.status.success { color: var(--mint); }
.status.error { color: #ef4444; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr !important; }
  .hero-text { order: 2 !important; }
  .hero-card { order: 1 !important; }
  .two-col .split, .invite-card { grid-template-columns: 1fr; }
  .header-contact { flex-direction: column; width: 100%; gap: 0.5rem; }
  .phone-link { width: 100%; justify-content: center; }
  .cta-small { order: 3; width: 100%; text-align: center; }
  .nav-inner { justify-content: space-between; padding: 0.75rem 0; align-items: center; position: relative; }
  .menu-toggle { 
    display: flex !important; 
    visibility: visible !important; 
    opacity: 1 !important; 
    position: relative !important; 
    left: auto !important; 
    order: 1; 
    margin-inline-end: auto;
    cursor: pointer;
  }
  .brand { order: 3; margin-inline-start: 0; margin-inline-end: 0; }
  .nav-links { 
    display: none !important;
    visibility: hidden !important;
    position: fixed !important; 
    top: 0 !important; 
    right: -100% !important; 
    width: 280px !important; 
    max-width: 85vw !important;
    height: 100vh !important; 
    height: -webkit-fill-available !important;
    background: white !important; 
    box-shadow: -4px 0 20px rgba(0,0,0,0.2) !important; 
    -webkit-box-shadow: -4px 0 20px rgba(0,0,0,0.2) !important;
    flex-direction: column !important; 
    align-items: flex-start !important; 
    padding: 4rem 1.5rem 2rem !important; 
    gap: 0.5rem !important; 
    -webkit-transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -moz-transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    -o-transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 99999 !important;
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
  .nav-links.show { 
    display: flex !important;
    visibility: visible !important;
    right: 0 !important; 
    -webkit-transform: translateZ(0) !important;
    transform: translateZ(0) !important;
  }
  .nav-links a { 
    width: 100%; 
    padding: 1rem 1.2rem; 
    border-radius: 12px; 
    font-size: 1.1rem;
    text-align: right;
    font-weight: 600;
    transition: all 0.2s ease;
  }
  .nav-links a:hover, .nav-links a.active { 
    background: rgba(124,58,237,0.1); 
    color: var(--purple);
    transform: translateX(-4px);
  }
  .navbar { 
    position: fixed; 
    top: 0; 
    left: 0; 
    right: 0; 
    z-index: 1000; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    -webkit-box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  body { 
    padding-top: 70px; 
    -webkit-overflow-scrolling: touch;
  }
  /* Overlay when menu is open */
  body.menu-open::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
    -webkit-animation: fadeIn 0.3s ease;
    -moz-animation: fadeIn 0.3s ease;
    -o-animation: fadeIn 0.3s ease;
    animation: fadeIn 0.3s ease;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
  }
  @-webkit-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @-moz-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @-o-keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
  @keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }
}

@media (max-width: 640px) {
  .nav-inner { padding: 0.6rem 0; }
  .hero { padding: 60px 0 40px; }
  .invite-card { padding: 1.2rem; }
  .hero-stats { gap: 0.6rem; }
  .section { padding: 50px 0; }
  .workshop-live-card { padding: 1.4rem; min-height: auto; }
  .details-grid { grid-template-columns: 1fr; gap: 1rem; }
  .detail-card { padding: 1.5rem; }
  .brand-ar { font-size: 0.95rem; }
  .brand-en { font-size: 0.6rem; }
  .brand-icon { width: 36px; height: 36px; }
  .menu-toggle { width: 40px; height: 40px; font-size: 1.3rem; }
  .container { width: 95vw; }
  .btn { padding: 0.8rem 1.2rem; font-size: 0.95rem; }
  .hero-text h1 { font-size: 1.8rem; line-height: 1.2; }
  .subhead { font-size: 0.95rem; }
  body { padding-top: 65px; }
  .stat { min-width: 46%; }
}


