/* ======================================================
   Menasa Public Site — Stylesheet
   RTL · Arabic · Modern · Responsive
   ====================================================== */

:root {
    --ms-primary:        #1e3a8a;
    --ms-primary-2:      #2563eb;
    --ms-accent:         #3b82f6;
    --ms-accent-2:       #06b6d4;
    --ms-purple:         #8b5cf6;
    --ms-text:           #0f172a;
    --ms-text-soft:      #475569;
    --ms-text-muted:     #64748b;
    --ms-bg:             #ffffff;
    --ms-bg-alt:         #f8fafc;
    --ms-bg-soft:        #f1f5f9;
    --ms-border:         #e2e8f0;
    --ms-border-soft:    #f1f5f9;
    --ms-card:           #ffffff;
    --ms-shadow-sm:      0 1px 2px rgba(15, 23, 42, .04);
    --ms-shadow:         0 4px 16px rgba(15, 23, 42, .06);
    --ms-shadow-lg:      0 20px 60px rgba(15, 23, 42, .10);
    --ms-shadow-xl:      0 30px 80px rgba(30, 58, 138, .18);
    --ms-radius-sm:      8px;
    --ms-radius:         14px;
    --ms-radius-lg:      22px;
    --ms-radius-xl:      28px;
    --ms-grad-1:         linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    --ms-grad-2:         linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
    --ms-grad-3:         linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%);
    --ms-grad-4:         linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --ms-grad-hero:      linear-gradient(135deg, #eef2ff 0%, #f0f9ff 50%, #ecfeff 100%);
    --ms-grad-text:      linear-gradient(135deg, #2563eb 0%, #8b5cf6 100%);
    --ms-grad-dark:      linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
    --ms-transition:     all .3s cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--ms-text);
    background: var(--ms-bg);
    direction: rtl;
    text-align: right;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; transition: var(--ms-transition); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

h1, h2, h3, h4, h5, h6 { margin: 0 0 .6em; line-height: 1.3; font-weight: 800; color: var(--ms-text); }
p { margin: 0 0 1em; color: var(--ms-text-soft); }

/* ============== CONTAINER ============== */
.ms-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}
.ms-container-narrow { max-width: 920px; }

/* ============== HEADER / NAV ============== */
.ms-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    transition: var(--ms-transition);
}
.ms-header.scrolled {
    background: rgba(255, 255, 255, .95);
    border-bottom-color: var(--ms-border);
    box-shadow: var(--ms-shadow-sm);
}
.ms-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 78px;
}

/* Brand */
.ms-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.ms-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--ms-grad-1);
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 900;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(59, 130, 246, .35);
}
.ms-brand-text { display: flex; flex-direction: column; line-height: 1; }
.ms-brand-name { font-size: 18px; font-weight: 800; color: var(--ms-text); }
.ms-brand-tag { font-size: 11px; color: var(--ms-text-muted); margin-top: 4px; font-weight: 500; }

/* Menu */
.ms-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}
.ms-menu li a {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ms-text-soft);
    transition: var(--ms-transition);
}
.ms-menu li a:hover { color: var(--ms-primary); background: var(--ms-bg-soft); }
.ms-menu li a.active {
    color: var(--ms-primary);
    background: rgba(37, 99, 235, .08);
}

/* CTA */
.ms-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    border-radius: 12px;
    background: var(--ms-grad-1);
    color: #fff !important;
    font-weight: 700;
    font-size: 14px;
    box-shadow: 0 8px 22px rgba(59, 130, 246, .28);
    transition: var(--ms-transition);
}
.ms-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(59, 130, 246, .4); }
.ms-cta-btn i { font-size: 13px; }

/* Burger */
.ms-burger {
    display: none;
    width: 40px;
    height: 40px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    border-radius: 8px;
}
.ms-burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--ms-text);
    border-radius: 2px;
    transition: var(--ms-transition);
}
.ms-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ms-burger.open span:nth-child(2) { opacity: 0; }
.ms-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============== MAIN ============== */
.ms-main { min-height: calc(100vh - 78px); }

/* ============== PAGE HERO ============== */
.ms-page-hero {
    position: relative;
    padding: 90px 0 70px;
    background: var(--ms-grad-hero);
    overflow: hidden;
    text-align: center;
}
.ms-page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 30% 20%, rgba(59, 130, 246, .12), transparent 40%),
                      radial-gradient(circle at 70% 80%, rgba(139, 92, 246, .10), transparent 40%);
    pointer-events: none;
}
.ms-page-hero .ms-container { position: relative; z-index: 1; }
.ms-page-title {
    font-size: clamp(34px, 5vw, 56px);
    font-weight: 900;
    margin: 16px 0 18px;
    letter-spacing: -.02em;
}
.ms-page-sub {
    font-size: 18px;
    line-height: 1.8;
    color: var(--ms-text-soft);
    max-width: 720px;
    margin: 0 auto;
}
.ms-page-meta {
    margin-top: 18px;
    color: var(--ms-text-muted);
    font-size: 14px;
}

/* Eyebrow tag */
.ms-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--ms-primary-2);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
}
.ms-eyebrow i { font-size: 12px; }

/* Gradient text */
.ms-gradient-text {
    background: var(--ms-grad-text);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ============== SECTIONS ============== */
.ms-section { padding: 80px 0; }
.ms-section-alt { background: var(--ms-bg-alt); }
.ms-section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.ms-section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    margin: 14px 0 14px;
    letter-spacing: -.01em;
}
.ms-section-sub { color: var(--ms-text-soft); font-size: 17px; line-height: 1.8; }

/* ============== SPLIT (About story) ============== */
.ms-split {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 60px;
    align-items: center;
}
.ms-split-content h2 {
    font-size: clamp(28px, 3.5vw, 38px);
    margin: 16px 0 18px;
}
.ms-split-content p {
    font-size: 16px;
    line-height: 1.9;
    color: var(--ms-text-soft);
}
.ms-bullets { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.ms-bullet {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ms-text);
    font-weight: 600;
    font-size: 15px;
}
.ms-bullet i {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--ms-grad-2);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    flex-shrink: 0;
}

/* Visual grid */
.ms-visual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.ms-visual-tile {
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--ms-shadow);
    transition: var(--ms-transition);
    position: relative;
    overflow: hidden;
}
.ms-visual-tile:hover { transform: translateY(-6px); box-shadow: var(--ms-shadow-lg); }
.ms-visual-tile > i {
    font-size: 32px;
    margin-bottom: 14px;
    background: var(--ms-grad-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}
.ms-visual-tile-2 > i { background: var(--ms-grad-2); -webkit-background-clip: text; background-clip: text; }
.ms-visual-tile-3 > i { background: var(--ms-grad-3); -webkit-background-clip: text; background-clip: text; }
.ms-visual-tile-4 > i { background: var(--ms-grad-4); -webkit-background-clip: text; background-clip: text; }
.ms-visual-num {
    font-size: 32px;
    font-weight: 900;
    color: var(--ms-text);
    line-height: 1;
    margin-bottom: 8px;
}
.ms-visual-text { color: var(--ms-text-muted); font-size: 14px; font-weight: 600; }
.ms-visual-tile-2 { transform: translateY(28px); }
.ms-visual-tile-3 { transform: translateY(-12px); }

/* ============== VISION / MISSION / VALUES ============== */
.ms-vm-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.ms-vm-card {
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 38px 28px;
    text-align: center;
    transition: var(--ms-transition);
    box-shadow: var(--ms-shadow);
}
.ms-vm-card:hover { transform: translateY(-8px); box-shadow: var(--ms-shadow-xl); border-color: rgba(59, 130, 246, .3); }
.ms-vm-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--ms-grad-1);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 28px;
    margin: 0 auto 22px;
    box-shadow: 0 12px 30px rgba(59, 130, 246, .25);
}
.ms-vm-card:nth-child(2) .ms-vm-icon { background: var(--ms-grad-2); box-shadow: 0 12px 30px rgba(6, 182, 212, .25); }
.ms-vm-card:nth-child(3) .ms-vm-icon { background: var(--ms-grad-3); box-shadow: 0 12px 30px rgba(139, 92, 246, .25); }
.ms-vm-card h3 { font-size: 22px; margin-bottom: 12px; }
.ms-vm-card p { color: var(--ms-text-soft); margin: 0; font-size: 15px; line-height: 1.8; }

/* ============== PILLARS ============== */
.ms-pillars {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.ms-pillar {
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 34px 30px;
    transition: var(--ms-transition);
    position: relative;
    overflow: hidden;
}
.ms-pillar::before {
    content: "";
    position: absolute;
    top: 0; right: 0;
    width: 110px; height: 110px;
    background: var(--ms-grad-1);
    opacity: 0;
    filter: blur(60px);
    transition: var(--ms-transition);
}
.ms-pillar:hover { transform: translateY(-4px); box-shadow: var(--ms-shadow-lg); border-color: rgba(59, 130, 246, .3); }
.ms-pillar:hover::before { opacity: .25; }
.ms-pillar > * { position: relative; z-index: 1; }
.ms-pillar-num {
    display: inline-block;
    font-size: 36px;
    font-weight: 900;
    background: var(--ms-grad-text);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    line-height: 1;
    margin-bottom: 16px;
}
.ms-pillar h3 { font-size: 20px; margin-bottom: 12px; }
.ms-pillar p { font-size: 15px; line-height: 1.8; color: var(--ms-text-soft); margin: 0; }

/* ============== CTA BANNER ============== */
.ms-cta-banner {
    background: var(--ms-grad-dark);
    color: #fff;
    border-radius: var(--ms-radius-xl);
    padding: 56px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--ms-shadow-xl);
}
.ms-cta-banner::before {
    content: "";
    position: absolute;
    top: -50%; left: -10%;
    width: 400px; height: 400px;
    background: var(--ms-accent);
    opacity: .15;
    filter: blur(100px);
    border-radius: 50%;
}
.ms-cta-banner::after {
    content: "";
    position: absolute;
    bottom: -50%; right: -10%;
    width: 400px; height: 400px;
    background: var(--ms-purple);
    opacity: .15;
    filter: blur(100px);
    border-radius: 50%;
}
.ms-cta-content { position: relative; z-index: 1; max-width: 640px; }
.ms-cta-content h2 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.ms-cta-content p { color: rgba(255, 255, 255, .8); margin: 0; font-size: 16px; }
.ms-cta-banner .ms-btn-light { position: relative; z-index: 1; flex-shrink: 0; }

/* ============== BUTTONS ============== */
.ms-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 15px;
    transition: var(--ms-transition);
    cursor: pointer;
}
.ms-btn-primary {
    background: var(--ms-grad-1);
    color: #fff !important;
    box-shadow: 0 10px 28px rgba(59, 130, 246, .35);
}
.ms-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(59, 130, 246, .45); }
.ms-btn-ghost {
    background: transparent;
    color: var(--ms-text);
    border: 2px solid var(--ms-border);
}
.ms-btn-ghost:hover { border-color: var(--ms-primary-2); color: var(--ms-primary-2); }
.ms-btn-light {
    background: #fff;
    color: var(--ms-text) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
}
.ms-btn-light:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0, 0, 0, .25); }

/* ============== LEGAL PAGES (Terms / Privacy) ============== */
.ms-legal {
    background: var(--ms-card);
    border: 1px solid var(--ms-border);
    border-radius: var(--ms-radius-lg);
    padding: 56px 48px;
    box-shadow: var(--ms-shadow);
    text-align: right;
}
.ms-legal h2 {
    font-size: 24px;
    margin-top: 44px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ms-border-soft);
    color: var(--ms-text);
    position: relative;
}
.ms-legal h2::before {
    content: "";
    position: absolute;
    bottom: -2px;
    right: 0;
    width: 60px;
    height: 2px;
    background: var(--ms-grad-1);
    border-radius: 2px;
}
.ms-legal h2:first-child { margin-top: 0; }
.ms-legal h3 {
    font-size: 18px;
    margin-top: 28px;
    margin-bottom: 12px;
    color: var(--ms-primary);
    font-weight: 700;
}
.ms-legal p {
    font-size: 16px;
    line-height: 2;
    color: var(--ms-text-soft);
    margin-bottom: 18px;
}
.ms-legal a {
    color: var(--ms-primary-2);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, .3);
    text-underline-offset: 3px;
}
.ms-legal a:hover { color: var(--ms-purple); text-decoration-color: var(--ms-purple); }
.ms-legal-list {
    margin: 0 0 22px;
    padding: 0;
}
.ms-legal-list li {
    position: relative;
    padding-right: 30px;
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.9;
    color: var(--ms-text-soft);
}
.ms-legal-list li::before {
    content: "";
    position: absolute;
    top: 14px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ms-grad-1);
}
.ms-legal-list li strong { color: var(--ms-text); font-weight: 700; }

/* ============== FOOTER ============== */
.ms-footer {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #cbd5e1;
    padding: 70px 0 0;
    margin-top: 80px;
}
.ms-footer .ms-brand-name,
.ms-footer .ms-brand-tag { color: #fff; }
.ms-footer .ms-brand-tag { color: #94a3b8; }
.ms-footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 50px;
    padding-bottom: 50px;
}
.ms-footer-about {
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.9;
    margin-top: 18px;
    max-width: 360px;
}
.ms-footer-title {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 12px;
}
.ms-footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 36px;
    height: 2px;
    background: var(--ms-grad-1);
    border-radius: 2px;
}
.ms-footer-links li,
.ms-footer-contact li { margin-bottom: 12px; }
.ms-footer-links a {
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
    transition: var(--ms-transition);
}
.ms-footer-links a::before {
    content: "←";
    margin-left: 8px;
    color: var(--ms-accent);
    opacity: 0;
    transition: var(--ms-transition);
}
.ms-footer-links a:hover { color: #fff; }
.ms-footer-links a:hover::before { opacity: 1; }
.ms-footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #94a3b8;
    font-size: 14px;
    line-height: 1.7;
}
.ms-footer-contact i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .06);
    display: grid;
    place-items: center;
    color: var(--ms-accent);
    flex-shrink: 0;
    font-size: 13px;
}
.ms-footer-contact a { color: #cbd5e1; }
.ms-footer-contact a:hover { color: #fff; }

.ms-socials { display: flex; gap: 10px; margin-top: 22px; }
.ms-socials a {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #cbd5e1;
    display: grid;
    place-items: center;
    transition: var(--ms-transition);
}
.ms-socials a:hover {
    background: var(--ms-grad-1);
    color: #fff;
    transform: translateY(-3px);
}

.ms-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .06);
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.ms-footer-bottom p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}
.ms-footer-cr { font-weight: 500; }

/* ============== RESPONSIVE ============== */
@media (max-width: 992px) {
    .ms-split { grid-template-columns: 1fr; gap: 40px; }
    .ms-vm-grid { grid-template-columns: 1fr; }
    .ms-footer-grid { grid-template-columns: 1fr 1fr; }
    .ms-cta-banner { flex-direction: column; align-items: flex-start; padding: 40px 32px; text-align: right; }
}

@media (max-width: 768px) {
    .ms-burger { display: flex; }
    .ms-cta-btn span { display: none; }
    .ms-cta-btn { padding: 11px 14px; }
    .ms-menu {
        position: fixed;
        top: 78px;
        right: 0;
        left: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 4px;
        max-height: 0;
        overflow: hidden;
        transition: max-height .35s ease;
        box-shadow: 0 20px 40px rgba(0, 0, 0, .08);
        border-bottom: 1px solid var(--ms-border);
    }
    .ms-menu.open { max-height: 80vh; padding-top: 16px; padding-bottom: 16px; }
    .ms-menu li a { padding: 14px 16px; }

    .ms-pillars { grid-template-columns: 1fr; }
    .ms-section { padding: 60px 0; }
    .ms-page-hero { padding: 60px 0 50px; }
    .ms-legal { padding: 32px 22px; }
    .ms-legal h2 { font-size: 20px; }
    .ms-footer-grid { grid-template-columns: 1fr; gap: 36px; }
    .ms-footer { padding-top: 50px; }
    .ms-footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .ms-container { padding: 0 18px; }
    .ms-brand-tag { display: none; }
    .ms-visual-grid { grid-template-columns: 1fr; }
    .ms-visual-tile-2, .ms-visual-tile-3 { transform: none; }
    .ms-cta-content h2 { font-size: 22px; }
    .ms-cta-banner { padding: 30px 22px; }
}
