/* ============================================
   PedsTech — Light Theme | ألوان الشعار
   أخضر #90A830 · برتقالي #E8823C · أزرق #48A8C0
   ============================================ */

:root {
    --green: #90A830;
    --green-dark: #78901F;
    --green-light: #F2F6E4;
    --orange: #E8823C;
    --orange-dark: #C06000;
    --orange-light: #FDF0E5;
    --blue: #48A8C0;
    --blue-dark: #35899E;
    --blue-light: #E8F5F9;
    --ink: #16181D;
    --ink-soft: #4B5563;
    --ink-muted: #9CA3AF;
    --bg: #FFFFFF;
    --bg-soft: #F8FAF6;
    --bg-card: #FFFFFF;
    --border: #E5E9E0;
    --border-strong: #D5DBCE;
    --gradient-brand: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%);
    --gradient-warm: linear-gradient(135deg, var(--orange) 0%, var(--green) 100%);
    --shadow-sm: 0 1px 3px rgba(22,24,29,0.06);
    --shadow-md: 0 4px 20px rgba(22,24,29,0.08);
    --shadow-lg: 0 12px 48px rgba(22,24,29,0.12);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --font-display: 'Cairo', sans-serif;
    --font-body: 'Tajawal', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ======= NAVBAR ======= */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}
.navbar.scrolled {
    border-bottom-color: var(--border);
    box-shadow: var(--shadow-sm);
}
.nav-container {
    max-width: 1240px; margin: 0 auto;
    padding: 14px 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.nav-logo img { height: 44px; width: auto; }
.logo-text { display: flex; flex-direction: column; line-height: 1.25; }
.logo-main { font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; color: var(--ink); }
.logo-sub { font-size: 0.62rem; color: var(--ink-muted); letter-spacing: 0.02em; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links li a {
    padding: 9px 18px; border-radius: 50px;
    font-size: 0.92rem; font-weight: 500; color: var(--ink-soft);
    transition: var(--transition);
}
.nav-links li a:hover { color: var(--ink); background: var(--bg-soft); }
.nav-links li a.active { color: var(--green-dark); background: var(--green-light); font-weight: 700; }
.nav-links li a.nav-cta {
    background: var(--ink); color: #fff !important; font-weight: 700;
    padding: 10px 26px;
}
.nav-links li a.nav-cta:hover { background: var(--green-dark); transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: var(--transition); display: block; }

/* ======= LAYOUT ======= */
.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-soft); }

.section-header { text-align: center; margin-bottom: 60px; }
.section-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--green-light); color: var(--green-dark);
    border: 1px solid #DBE5C2;
    padding: 6px 18px; border-radius: 50px;
    font-size: 0.82rem; font-weight: 700; margin-bottom: 18px;
}
.section-badge.orange { background: var(--orange-light); color: var(--orange-dark); border-color: #F5D9BE; }
.section-badge.blue { background: var(--blue-light); color: var(--blue-dark); border-color: #C4E4EE; }
.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 900; line-height: 1.25; margin-bottom: 14px;
    color: var(--ink);
}
.section-title .hl-green { color: var(--green-dark); }
.section-title .hl-orange { color: var(--orange); }
.section-title .hl-blue { color: var(--blue-dark); }
.section-subtitle { font-size: 1.05rem; color: var(--ink-soft); max-width: 620px; margin: 0 auto; }

/* ======= BUTTONS ======= */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 14px 32px; border-radius: 50px;
    font-family: var(--font-body); font-size: 1rem; font-weight: 700;
    cursor: pointer; border: none; transition: var(--transition); white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-orange { background: var(--orange); color: #fff; }
.btn-orange:hover { background: var(--orange-dark); transform: translateY(-2px); }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--border-strong); }
.btn-outline:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-light); }

/* ======= HERO ======= */
.hero {
    padding: 170px 0 90px;
    position: relative; overflow: hidden;
    background:
        radial-gradient(ellipse 55% 45% at 88% 8%, var(--blue-light) 0%, transparent 60%),
        radial-gradient(ellipse 45% 45% at 8% 90%, var(--green-light) 0%, transparent 60%),
        radial-gradient(ellipse 35% 30% at 50% 110%, var(--orange-light) 0%, transparent 65%),
        #FFFFFF;
}
.hero-content {
    display: grid; grid-template-columns: 1.1fr 0.9fr;
    gap: 72px; align-items: center;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 10px;
    background: #fff; border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    color: var(--ink-soft); padding: 8px 20px; border-radius: 50px;
    font-size: 0.85rem; font-weight: 600; margin-bottom: 26px;
}
.hero-badge-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.8)} }
.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4.3vw, 3.25rem);
    font-weight: 900; line-height: 1.55; margin-bottom: 22px;
    color: var(--ink);
}
.hero-title .grad {
    display: inline-block;
    font-size: 0.9em;
    padding: 0.04em 0 0.1em;
    margin: 0.06em 0;
    background: var(--gradient-brand);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-desc { font-size: 1.1rem; color: var(--ink-soft); margin-bottom: 36px; line-height: 1.85; max-width: 520px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-trust { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--ink-soft); font-weight: 500; }
.hero-trust-item .dot { width: 10px; height: 10px; border-radius: 3px; }
.dot-green { background: var(--green); } .dot-orange { background: var(--orange); } .dot-blue { background: var(--blue); }

/* Hero visual */
.hero-visual { position: relative; }
.hero-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px;
    box-shadow: var(--shadow-lg);
    position: relative; z-index: 1;
}
.hero-card-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.hero-card-logo img { height: 110px; width: auto; }
.hc-bars { display: flex; flex-direction: column; gap: 14px; }
.hc-bar-row { display: flex; align-items: center; gap: 12px; }
.hc-bar-label { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; width: 90px; flex-shrink: 0; }
.hc-bar { flex: 1; height: 10px; background: var(--bg-soft); border-radius: 50px; overflow: hidden; }
.hc-bar-fill { height: 100%; border-radius: 50px; animation: barGrow 1.6s ease-out; }
@keyframes barGrow { from { width: 0 !important; } }
.hero-float {
    position: absolute; z-index: 3; background: #fff; min-width: 130px;
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 14px 20px; box-shadow: var(--shadow-md);
    animation: floaty 4.5s ease-in-out infinite;
}
.hero-float-1 { top: -30px; right: -26px; animation-delay: 0s; }
.hero-float-2 { bottom: -20px; left: -30px; animation-delay: 2.2s; }
@keyframes floaty { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-9px)} }
.hf-num { font-family: var(--font-display); font-weight: 900; font-size: 1.3rem; }
.hf-label { font-size: 0.72rem; color: var(--ink-muted); }

/* ======= STATS STRIP ======= */
.stats-strip { background: var(--ink); padding: 56px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.stat { text-align: center; }
.stat-num {
    font-family: var(--font-display); font-size: 2.6rem; font-weight: 900;
    line-height: 1.1; margin-bottom: 6px;
}
.stat:nth-child(1) .stat-num { color: var(--green); }
.stat:nth-child(2) .stat-num { color: var(--orange); }
.stat:nth-child(3) .stat-num { color: var(--blue); }
.stat:nth-child(4) .stat-num { color: #fff; }
.stat-label { font-size: 0.88rem; color: rgba(255,255,255,0.65); }

/* ======= SERVICES ======= */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 36px 30px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.service-card::before {
    content: ''; position: absolute; top: 0; right: 0; left: 0; height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0); transform-origin: right; transition: var(--transition);
}
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:nth-child(3n+1) .sc-icon { background: var(--green-light); }
.service-card:nth-child(3n+2) .sc-icon { background: var(--orange-light); }
.service-card:nth-child(3n+3) .sc-icon { background: var(--blue-light); }
.sc-icon {
    width: 60px; height: 60px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.9rem; margin-bottom: 22px;
}
.sc-title { font-family: var(--font-display); font-size: 1.25rem; font-weight: 800; margin-bottom: 10px; }
.sc-desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.75; }

/* ======= PLATFORM CARDS ======= */
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 24px; }
.platform-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 32px;
    transition: var(--transition); display: flex; flex-direction: column;
}
.platform-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--green); }
.pc-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.pc-icon {
    width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
    background: var(--bg-soft); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
}
.pc-img { width: 54px; height: 54px; border-radius: 14px; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.pc-num { font-size: 0.68rem; color: var(--ink-muted); font-weight: 700; letter-spacing: 0.08em; }
.pc-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; color: var(--ink); }
.pc-tag {
    display: inline-block; background: var(--blue-light); color: var(--blue-dark);
    font-size: 0.7rem; font-weight: 700; padding: 3px 12px; border-radius: 50px;
    margin-bottom: 12px; align-self: flex-start;
}
.pc-desc { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.75; }
.pc-features { margin-bottom: 20px; flex: 1; }
.pc-feature {
    display: flex; align-items: baseline; gap: 9px;
    font-size: 0.85rem; color: var(--ink-soft); padding: 3px 0;
}
.pc-feature::before { content: '✓'; color: var(--green-dark); font-weight: 900; flex-shrink: 0; }
.pc-link {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 0.85rem; font-weight: 700; color: var(--blue-dark);
    transition: var(--transition);
}
.pc-link:hover { color: var(--orange); gap: 10px; }

/* ======= WHY US ======= */
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.why-list { display: flex; flex-direction: column; gap: 14px; }
.why-item {
    display: flex; gap: 18px; padding: 20px 22px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    transition: var(--transition);
}
.why-item:hover { border-color: var(--green); box-shadow: var(--shadow-md); }
.wi-icon {
    width: 48px; height: 48px; border-radius: 13px; flex-shrink: 0;
    background: var(--green-light);
    display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
}
.why-item:nth-child(even) .wi-icon { background: var(--orange-light); }
.wi-title { font-weight: 800; font-size: 1rem; margin-bottom: 3px; }
.wi-desc { font-size: 0.85rem; color: var(--ink-soft); }
.why-side { position: sticky; top: 120px; }
.why-panel {
    background: var(--ink); color: #fff;
    border-radius: var(--radius-lg); padding: 44px 38px;
    position: relative; overflow: hidden;
}
.why-panel::after {
    content: ''; position: absolute; width: 220px; height: 220px; border-radius: 50%;
    background: radial-gradient(circle, rgba(144,168,48,0.25), transparent 70%);
    bottom: -80px; left: -60px;
}
.wp-logo { height: 64px; width: auto; margin-bottom: 24px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.3)); }
.wp-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; margin-bottom: 12px; }
.wp-desc { color: rgba(255,255,255,0.7); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.8; }
.wp-points { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.wp-point { display: flex; align-items: center; gap: 12px; font-size: 0.9rem; }
.wp-point .p-dot { width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 0.7rem; flex-shrink: 0; }
.p-green { background: var(--green); } .p-orange { background: var(--orange); } .p-blue { background: var(--blue); }

/* ======= VALUES ======= */
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card {
    text-align: center; padding: 44px 30px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
    transition: var(--transition);
}
.value-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.value-card:nth-child(1):hover { border-color: var(--green); }
.value-card:nth-child(2):hover { border-color: var(--orange); }
.value-card:nth-child(3):hover { border-color: var(--blue); }
.vc-icon { font-size: 2.8rem; margin-bottom: 18px; }
.vc-title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; margin-bottom: 10px; }
.vc-desc { color: var(--ink-soft); font-size: 0.92rem; }

/* ======= CONTACT ======= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.35fr; gap: 56px; }
.contact-items { display: flex; flex-direction: column; gap: 14px; margin: 32px 0; }
.contact-item {
    display: flex; align-items: center; gap: 16px;
    padding: 18px 22px; background: #fff;
    border: 1px solid var(--border); border-radius: var(--radius);
    transition: var(--transition);
}
.contact-item:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateX(-3px); }
.ci-icon {
    width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.contact-item:nth-child(1) .ci-icon { background: var(--green-light); }
.contact-item:nth-child(2) .ci-icon { background: var(--orange-light); }
.contact-item:nth-child(3) .ci-icon { background: var(--blue-light); }
.contact-item:nth-child(4) .ci-icon { background: var(--green-light); }
.ci-label { font-size: 0.72rem; color: var(--ink-muted); font-weight: 600; }
.ci-value { font-weight: 700; font-size: 0.98rem; color: var(--ink); }

.contact-form-wrap {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 44px;
    box-shadow: var(--shadow-md);
}
.form-title { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; margin-bottom: 6px; }
.form-subtitle { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 30px; }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.form-input, .form-textarea, .form-select {
    width: 100%; padding: 13px 16px;
    background: var(--bg-soft); border: 1.5px solid var(--border);
    border-radius: var(--radius-sm); color: var(--ink);
    font-family: var(--font-body); font-size: 0.95rem;
    transition: var(--transition); direction: rtl;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
    outline: none; border-color: var(--green); background: #fff;
    box-shadow: 0 0 0 4px rgba(144,168,48,0.12);
}
.form-textarea { resize: vertical; min-height: 130px; }
.form-submit {
    width: 100%; padding: 16px; background: var(--ink); color: #fff;
    border: none; border-radius: var(--radius-sm);
    font-family: var(--font-body); font-size: 1rem; font-weight: 700;
    cursor: pointer; transition: var(--transition);
}
.form-submit:hover { background: var(--green-dark); }
.form-submit:disabled { opacity: 0.6; cursor: wait; }
.form-message { padding: 14px 18px; border-radius: var(--radius-sm); margin-top: 16px; font-size: 0.9rem; font-weight: 600; display: none; }
.form-message.success { background: var(--green-light); color: var(--green-dark); display: block; }
.form-message.error { background: #FDEBEB; color: #C0392B; display: block; }

/* ======= STEPS ======= */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
    width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-display); font-weight: 900; font-size: 0.85rem; color: #fff;
}
.step:nth-child(1) .step-num { background: var(--green); }
.step:nth-child(2) .step-num { background: var(--orange); }
.step:nth-child(3) .step-num { background: var(--blue); }
.step-title { font-weight: 800; font-size: 0.95rem; margin-bottom: 2px; }
.step-desc { font-size: 0.82rem; color: var(--ink-soft); }

/* ======= PAGE HERO ======= */
.page-hero {
    padding: 160px 0 70px; text-align: center;
    background:
        radial-gradient(ellipse 50% 60% at 15% 0%, var(--green-light) 0%, transparent 60%),
        radial-gradient(ellipse 50% 60% at 85% 0%, var(--blue-light) 0%, transparent 60%),
        #fff;
}
.page-hero-title { font-family: var(--font-display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 900; margin-bottom: 14px; }
.page-hero-desc { color: var(--ink-soft); font-size: 1.08rem; max-width: 640px; margin: 0 auto; }

/* ======= CTA ======= */
.cta-section { padding: 90px 0; }
.cta-box {
    background: var(--ink); border-radius: var(--radius-lg);
    padding: 70px 56px; text-align: center; color: #fff;
    position: relative; overflow: hidden;
}
.cta-box::before {
    content: ''; position: absolute; width: 340px; height: 340px; border-radius: 50%;
    background: radial-gradient(circle, rgba(72,168,192,0.3), transparent 70%);
    top: -140px; right: -100px;
}
.cta-box::after {
    content: ''; position: absolute; width: 280px; height: 280px; border-radius: 50%;
    background: radial-gradient(circle, rgba(232,130,60,0.25), transparent 70%);
    bottom: -110px; left: -80px;
}
.cta-title { font-family: var(--font-display); font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 900; margin-bottom: 14px; position: relative; z-index: 1; }
.cta-desc { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 36px; position: relative; z-index: 1; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--green-light); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,0.3); }
.btn-ghost:hover { border-color: var(--green); background: rgba(144,168,48,0.15); }

/* ======= FOOTER ======= */
.footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding: 70px 0 36px; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.4fr; gap: 52px; margin-bottom: 52px; }
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { height: 44px; width: auto; }
.footer-tagline { color: var(--ink-soft); font-size: 0.87rem; margin-bottom: 18px; line-height: 1.75; }
.footer h4 { font-weight: 800; font-size: 0.92rem; margin-bottom: 18px; color: var(--ink); }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: var(--ink-soft); font-size: 0.86rem; transition: var(--transition); }
.footer-col ul li a:hover { color: var(--green-dark); }
.footer-contact-item { display: flex; align-items: center; gap: 10px; color: var(--ink-soft); font-size: 0.86rem; padding: 4px 0; transition: var(--transition); }
.footer-contact-item:hover { color: var(--ink); }
.footer-bottom {
    padding-top: 30px; border-top: 1px solid var(--border);
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: var(--ink-muted); }
.footer-brand-strip { display: flex; gap: 6px; }
.fbs-dot { width: 12px; height: 12px; border-radius: 4px; }

/* ======= ANIMATIONS ======= */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }

/* ======= RESPONSIVE ======= */
@media (max-width: 1024px) {
    .hero-content { grid-template-columns: 1fr; gap: 56px; }
    .hero-visual { max-width: 460px; margin: 0 auto; }
    .services-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
    .why-grid { grid-template-columns: 1fr; }
    .why-side { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
    .contact-grid { grid-template-columns: 1fr; }
    .values-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .nav-links {
        display: none; flex-direction: column; align-items: stretch;
        position: fixed; inset: 66px 0 auto 0;
        background: #fff; border-bottom: 1px solid var(--border);
        padding: 20px; gap: 6px; box-shadow: var(--shadow-lg);
    }
    .nav-links.open { display: flex; }
    .nav-links li a { display: block; padding: 14px 18px; text-align: center; }
    .nav-toggle { display: flex; }
    .hero { padding: 140px 0 70px; }
    .services-grid { grid-template-columns: 1fr; }
    .platforms-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .container { padding: 0 20px; }
    .section { padding: 64px 0; }
    .cta-box { padding: 48px 28px; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .hero-float { display: none; }
}

/* =====================================================================
   الإصدار 3 — أقسام جديدة
   ===================================================================== */

/* ---- شريط تقدّم القراءة ---- */
.scroll-progress { position: fixed; top: 0; right: 0; height: 3px; width: 0; z-index: 1100; background: linear-gradient(90deg, var(--blue), var(--green), var(--orange)); transition: width .1s linear; }

/* ---- منهجية العمل ---- */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.process-grid::before { content: ''; position: absolute; top: 38px; right: 12%; left: 12%; height: 2px; background: repeating-linear-gradient(90deg, var(--border-strong) 0 8px, transparent 8px 16px); z-index: 0; }
.process-step { position: relative; z-index: 1; text-align: center; padding: 0 8px; }
.ps-num { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 22px; background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-md); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; position: relative; transition: transform .3s; }
.process-step:hover .ps-num { transform: translateY(-6px) rotate(-3deg); }
.ps-num::after { content: attr(data-n); position: absolute; top: -8px; left: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); }
.process-step:nth-child(4n+1) .ps-num::after { background: var(--green); }
.process-step:nth-child(4n+2) .ps-num::after { background: var(--orange); }
.process-step:nth-child(4n+3) .ps-num::after { background: var(--blue); }
.ps-title { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; margin-bottom: 8px; }
.ps-desc { font-size: .86rem; color: var(--ink-soft); line-height: 1.8; }

/* ---- المعرض الإبداعي ---- */
.gallery-filters { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 36px; }
.gf-btn { padding: 9px 20px; border-radius: 50px; border: 1px solid var(--border); background: #fff; color: var(--ink-soft); font-family: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; transition: .2s; }
.gf-btn:hover { border-color: var(--green); color: var(--green-dark); }
.gf-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-grid { columns: 3 280px; column-gap: 20px; }
.g-item { break-inside: avoid; margin-bottom: 20px; border-radius: var(--radius); overflow: hidden; position: relative; cursor: zoom-in; background: var(--bg-soft); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: transform .35s, box-shadow .35s; }
.g-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.g-item img, .g-item video { width: 100%; display: block; transition: transform .6s; }
.g-item:hover img { transform: scale(1.04); }
.g-item.hidden { display: none; }
.g-empty-thumb { aspect-ratio: 16/10; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: linear-gradient(135deg, var(--green-light), var(--blue-light)); }
.g-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(22,24,29,.85) 0%, rgba(22,24,29,0) 55%); display: flex; flex-direction: column; justify-content: flex-end; padding: 18px; opacity: 0; transition: opacity .3s; }
.g-item:hover .g-overlay { opacity: 1; }
.g-cat { font-size: .7rem; font-weight: 700; color: var(--green); margin-bottom: 3px; }
.g-title { color: #fff; font-family: var(--font-display); font-weight: 800; font-size: 1rem; line-height: 1.4; }
.g-client { color: rgba(255,255,255,.7); font-size: .75rem; margin-top: 2px; }
.g-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 58px; height: 58px; border-radius: 50%; background: rgba(255,255,255,.95); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 24px rgba(0,0,0,.25); transition: transform .3s; pointer-events: none; }
.g-play::before { content: ''; border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent var(--ink); margin-left: 4px; }
.g-item:hover .g-play { transform: translate(-50%,-50%) scale(1.1); }
@media (hover: none) { .g-overlay { opacity: 1; } }

/* ---- نافذة العرض (Lightbox) ---- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(12,13,16,.94); display: none; align-items: center; justify-content: center; padding: 60px 20px 30px; }
.lightbox.open { display: flex; animation: lbIn .25s ease; }
@keyframes lbIn { from { opacity: 0; } }
.lb-stage { max-width: 1100px; width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lb-media { max-width: 100%; max-height: calc(100vh - 170px); border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-frame { width: 100%; aspect-ratio: 16/9; max-height: calc(100vh - 170px); border: 0; border-radius: 12px; background: #000; }
.lb-caption { color: #fff; text-align: center; }
.lb-caption strong { font-family: var(--font-display); font-size: 1.1rem; display: block; }
.lb-caption span { color: rgba(255,255,255,.65); font-size: .85rem; }
.lb-btn { position: absolute; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.3rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s; }
.lb-btn:hover { background: rgba(255,255,255,.22); }
.lb-close { top: 16px; left: 16px; }
.lb-prev { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { left: 16px; top: 50%; transform: translateY(-50%); }

/* ---- شريط العملاء المتحرك ---- */
.partners-section { padding: 70px 0; background: #fff; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.partners-title { text-align: center; font-size: .9rem; font-weight: 700; color: var(--ink-muted); letter-spacing: .02em; margin-bottom: 34px; }
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee var(--marquee-speed, 40s) linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
.partner-chip { flex-shrink: 0; height: 84px; min-width: 170px; padding: 0 28px; border: 1px solid var(--border); border-radius: 18px; background: var(--bg-soft); display: flex; align-items: center; justify-content: center; gap: 10px; transition: .3s; text-decoration: none; }
.partner-chip img { max-height: 52px; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .7; transition: .3s; }
.partner-chip:hover { background: #fff; box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.partner-chip:hover img { filter: none; opacity: 1; }
.partner-name { font-family: var(--font-display); font-weight: 800; font-size: .92rem; color: var(--ink-soft); white-space: nowrap; }
.partner-chip:hover .partner-name { color: var(--ink); }
.partners-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 16px; }
.partners-grid .partner-chip { min-width: 0; }

/* ---- آراء العملاء ---- */
.testi-wrap { position: relative; max-width: 820px; margin: 0 auto; }
.testi-track { display: flex; transition: transform .6s cubic-bezier(.65,0,.35,1); }
.testi-viewport { overflow: hidden; border-radius: var(--radius-lg); }
.testi-card { flex: 0 0 100%; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 48px; text-align: center; box-shadow: var(--shadow-md); }
.testi-quote { font-size: 3.6rem; line-height: .6; color: var(--green); font-family: Georgia, serif; margin-bottom: 18px; }
.testi-text { font-size: 1.08rem; line-height: 2; color: var(--ink); margin-bottom: 26px; }
.testi-stars { color: #F2B01E; letter-spacing: 3px; margin-bottom: 18px; }
.testi-person { display: flex; align-items: center; justify-content: center; gap: 12px; }
.testi-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; border: 2px solid var(--green-light); }
.testi-avatar.ph { background: var(--gradient-brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-family: var(--font-display); }
.testi-name { font-weight: 800; text-align: right; }
.testi-role { font-size: .8rem; color: var(--ink-muted); text-align: right; }
.testi-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.testi-dot { width: 9px; height: 9px; border-radius: 50px; background: var(--border-strong); border: 0; cursor: pointer; transition: .3s; padding: 0; }
.testi-dot.active { width: 28px; background: var(--green); }

/* ---- الأسئلة الشائعة ---- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item[open] { box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.faq-item summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 1rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--green-light); color: var(--green-dark); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; transition: transform .3s; }
.faq-item[open] summary::after { transform: rotate(45deg); background: var(--ink); color: #fff; }
.faq-answer { padding: 0 24px 22px; color: var(--ink-soft); line-height: 1.95; font-size: .95rem; }

/* ---- زر واتساب العائم + العودة للأعلى ---- */
.wa-float { position: fixed; bottom: 24px; left: 24px; z-index: 1000; width: 58px; height: 58px; border-radius: 50%; background: #25D366; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 26px rgba(37,211,102,.45); transition: transform .3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }
.wa-float::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: #25D366; animation: waPulse 2.4s infinite; z-index: -1; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
.to-top { position: fixed; bottom: 24px; right: 24px; z-index: 999; width: 46px; height: 46px; border-radius: 14px; background: var(--ink); color: #fff; border: 0; cursor: pointer; font-size: 1.1rem; opacity: 0; transform: translateY(12px); pointer-events: none; transition: .3s; box-shadow: var(--shadow-md); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* ---- استجابة ---- */
@media (max-width: 1024px) {
    .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .process-grid::before { display: none; }
}
@media (max-width: 768px) {
    .hero-title { line-height: 1.6; }
    .testi-card { padding: 34px 24px; }
    .testi-text { font-size: 1rem; }
    .gallery-grid { columns: 2 150px; column-gap: 12px; }
    .g-item { margin-bottom: 12px; }
    .partner-chip { height: 70px; min-width: 140px; padding: 0 18px; }
    .lb-prev, .lb-next { top: auto; bottom: 18px; transform: none; }
    .wa-float { width: 52px; height: 52px; bottom: 18px; left: 18px; }
    .to-top { bottom: 18px; right: 18px; }
}
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .marquee-track, .hero-float, .wa-float::before { animation: none; } }
