/* صفحة الهبوط - أنا قريب */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&display=swap');

body.landing {
    --lp-primary: #ec6100;
    --lp-primary-dark: #c95300;
    --lp-primary-foreground: #fffaf6;
    --lp-secondary: #0c2140;
    --lp-secondary-foreground: #f7fbfd;
    --lp-bg: #fefdfa;
    --lp-card: #ffffff;
    --lp-muted: #eaf1f8;
    --lp-muted-foreground: #5a6a80;
    --lp-border: #dfe6ee;
    --lp-peach: #ffdbbf;
    --lp-cream: #fcf4e6;
    --lp-accent-foreground: #622600;
    --lp-shadow-card: 0 12px 32px -14px rgba(12, 33, 64, 0.16);
    --lp-shadow-soft: 0 20px 50px -20px rgba(12, 33, 64, 0.22);
    --lp-shadow-orange: 0 14px 34px -12px rgba(236, 97, 0, 0.45);

    background: var(--lp-bg);
    color: var(--lp-secondary);
    font-family: 'Cairo', 'Segoe UI', 'Tahoma', sans-serif;
}

body.landing h1, body.landing h2, body.landing h3, body.landing h4 {
    font-weight: 800;
    color: var(--lp-secondary);
}

.lp-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Buttons (scoped override of the app-wide purple .btn) */
body.landing .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    background: var(--lp-primary); color: var(--lp-primary-foreground);
    border: none; padding: 12px 24px; border-radius: 12px;
    font-weight: 700; font-size: 14px; text-decoration: none;
    box-shadow: var(--lp-shadow-orange);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    font-family: inherit;
}
body.landing .btn:hover { transform: translateY(-2px); background: var(--lp-primary-dark); }
body.landing .btn-secondary {
    background: var(--lp-card); color: var(--lp-secondary);
    border: 2px solid rgba(12, 33, 64, 0.12); box-shadow: var(--lp-shadow-card);
}
body.landing .btn-secondary:hover { border-color: var(--lp-primary); color: var(--lp-primary); background: var(--lp-card); }
body.landing .btn-large { padding: 15px 32px; font-size: 16px; }

/* Header */
.lp-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(254, 253, 250, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--lp-border);
    padding: 10px 0;
}
.lp-header .lp-container {
    display: flex; align-items: center; justify-content: space-between; gap: 15px;
}
.lp-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--lp-secondary); }
.lp-brand strong { font-size: 18px; display: block; font-weight: 800; }
.lp-brand small { color: var(--lp-muted-foreground); font-size: 11px; display: block; font-weight: 600; }
.lp-logo { height: 64px; width: auto; max-width: 220px; object-fit: contain; display: block; flex-shrink: 0; }
.lp-nav { display: flex; gap: 26px; }
.lp-nav a { color: var(--lp-secondary); opacity: 0.75; text-decoration: none; font-weight: 700; font-size: 14px; transition: opacity 0.2s, color 0.2s; }
.lp-nav a:hover { opacity: 1; color: var(--lp-primary); }
.lp-cta { display: flex; gap: 10px; }
.lp-burger { display: none; background: none; border: none; font-size: 24px; cursor: pointer; color: var(--lp-secondary); }
.lp-nav-lang { display: none; }

/* منع التمرير/الاهتزاز الأفقي على الجوال */
html, body.landing { max-width: 100%; overflow-x: clip; }

/* Hero */
.lp-hero { position: relative; overflow: hidden; padding: 70px 0 90px; }
.lp-hero::before {
    content: ''; position: absolute; top: -80px; left: -80px; width: 380px; height: 380px;
    background: var(--lp-peach); opacity: 0.55; border-radius: 50%; filter: blur(70px);
    pointer-events: none;
}
.lp-hero-grid {
    display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px;
    align-items: center; position: relative;
}
.lp-hero-text h1 { font-size: 46px; line-height: 1.25; margin-bottom: 18px; font-weight: 900; }
.lp-hero-text h1 span { color: var(--lp-primary); }
.lp-hero-text p { font-size: 17px; line-height: 1.8; margin-bottom: 28px; color: var(--lp-muted-foreground); max-width: 480px; }
.lp-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.lp-hero-actions .btn-secondary i { font-size: 15px; }

.lp-stats { display: flex; gap: 34px; flex-wrap: wrap; }
.lp-stats > div { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-stats .lp-stat-icon {
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--lp-card); border: 1px solid var(--lp-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--lp-secondary); box-shadow: var(--lp-shadow-card); font-size: 18px;
}
.lp-stats strong { font-size: 13px; font-weight: 800; color: var(--lp-secondary); }

.lp-hero-image { position: relative; }
.lp-hero-image img {
    position: relative; z-index: 1; width: 100%; max-width: 460px; display: block; margin: 0 auto;
    border-radius: 32px;
    box-shadow: var(--lp-shadow-soft);
}
.lp-hero-float {
    position: absolute; z-index: 2; display: flex; align-items: center; gap: 12px;
    background: var(--lp-card); padding: 14px; border-radius: 16px;
    box-shadow: var(--lp-shadow-soft); width: 230px;
}
.lp-hero-float-1 { top: 10px; right: -10px; animation: lp-float 4.5s ease-in-out infinite; }
.lp-hero-float-2 { bottom: 30px; left: -20px; animation: lp-float 5.5s ease-in-out infinite; animation-delay: -1.5s; }

@keyframes lp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@media (prefers-reduced-motion: reduce) {
    .lp-hero-float-1, .lp-hero-float-2 { animation: none; }
}
.lp-hero-float-icon {
    flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%;
    background: var(--lp-peach); color: var(--lp-primary);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.lp-hero-float h3 { font-size: 14px; margin-bottom: 3px; font-weight: 800; }
.lp-hero-float p { color: var(--lp-muted-foreground); font-size: 12px; line-height: 1.5; margin: 0; }
.lp-hero-float .lp-stars { color: var(--lp-primary); font-size: 11px; margin-top: 3px; }

/* Sections */
.lp-section { padding: 80px 0; }
.lp-section-alt { background: var(--lp-muted); }
.lp-section-tag { display: block; text-align: center; color: var(--lp-primary); font-weight: 800; font-size: 14px; margin-bottom: 8px; }
.lp-section-title { text-align: center; font-size: 34px; margin-bottom: 12px; font-weight: 900; }
.lp-section-title span { color: var(--lp-primary); }
.lp-section-sub { text-align: center; color: var(--lp-muted-foreground); margin-bottom: 50px; font-size: 16px; }

/* Services (icon grid) */
.lp-services-grid {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px;
}
.lp-service {
    background: var(--lp-card); padding: 30px 16px; border-radius: 18px; text-align: center;
    border: 1px solid var(--lp-border); transition: all 0.25s;
    display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.lp-service:hover {
    transform: translateY(-4px);
    box-shadow: var(--lp-shadow-orange);
    border-color: var(--lp-primary);
}
.lp-service-icon {
    width: 56px; height: 56px; border-radius: 16px;
    background: var(--lp-peach); color: var(--lp-primary);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
    transition: all 0.25s;
}
.lp-service:hover .lp-service-icon { background: var(--lp-primary); color: var(--lp-primary-foreground); }
.lp-service h4 { font-size: 14px; font-weight: 800; margin: 0; }
.lp-services-more { text-align: center; margin-top: 40px; }

/* Collapsed = show only 2 rows (row size depends on the grid's current column count) */
.lp-services-grid.collapsed .lp-service:nth-child(n+13) { display: none; }

/* Why us */
.lp-why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lp-why-card {
    background: var(--lp-card); border: 1px solid var(--lp-border); border-radius: 18px;
    padding: 34px 22px; text-align: center; box-shadow: var(--lp-shadow-card);
    transition: transform 0.25s, box-shadow 0.25s;
}
.lp-why-card:hover { transform: translateY(-4px); box-shadow: var(--lp-shadow-soft); }
.lp-why-icon {
    width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 18px;
    background: var(--lp-peach); color: var(--lp-primary);
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.lp-why-card h3 { font-size: 17px; margin-bottom: 8px; font-weight: 800; }
.lp-why-card p { color: var(--lp-muted-foreground); font-size: 13px; line-height: 1.7; margin: 0; }

.lp-statbar {
    margin-top: 50px; background: var(--lp-secondary); border-radius: 24px;
    padding: 34px 20px; display: grid; grid-template-columns: repeat(3, 1fr);
    box-shadow: var(--lp-shadow-soft);
}
.lp-statbar > div {
    display: flex; align-items: center; justify-content: center; gap: 14px;
    padding: 6px 10px;
}
.lp-statbar > div:not(:last-child) { border-left: 1px solid rgba(247, 251, 253, 0.12); }
.lp-statbar-icon {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    background: rgba(236, 97, 0, 0.2); color: var(--lp-primary);
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.lp-statbar strong { display: block; font-size: 24px; color: var(--lp-secondary-foreground); font-weight: 900; }
.lp-statbar span { font-size: 12px; color: rgba(247, 251, 253, 0.7); font-weight: 700; }

/* Plans */
.lp-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1020px; margin: 0 auto; }
.lp-plan {
    background: var(--lp-card); padding: 38px 26px; border-radius: 22px; text-align: center;
    border: 1px solid var(--lp-border); position: relative; transition: all 0.25s;
    box-shadow: var(--lp-shadow-card);
}
.lp-plan:hover { transform: translateY(-4px); }
.lp-plan-featured {
    border: 2px solid var(--lp-primary);
    box-shadow: var(--lp-shadow-orange);
    transform: scale(1.04);
}
.lp-plan-featured:hover { transform: scale(1.04) translateY(-4px); }
.lp-plan-badge {
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--lp-primary); color: var(--lp-primary-foreground); padding: 5px 18px;
    border-radius: 20px; font-size: 12px; font-weight: 800; box-shadow: var(--lp-shadow-orange);
}
.lp-plan h3 { font-size: 20px; margin-bottom: 4px; font-weight: 800; }
.lp-plan-featured h3 { color: var(--lp-primary); }
.lp-plan-price { font-size: 40px; color: var(--lp-secondary); font-weight: 900; margin: 16px 0 22px; }
.lp-plan-featured .lp-plan-price { color: var(--lp-primary); }
.lp-plan-price small { font-size: 14px; color: var(--lp-muted-foreground); font-weight: 700; }
.lp-plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 12px; }
.lp-plan ul li { color: var(--lp-secondary); font-size: 14px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; }
.lp-plan ul li::before { content: '\f633'; font-family: 'bootstrap-icons'; color: var(--lp-primary); font-weight: bold; }

/* CTA banner */
.lp-cta-section { padding: 0 0 80px; }
.lp-cta-card {
    position: relative; overflow: hidden; border-radius: 40px;
    background: linear-gradient(120deg, var(--lp-primary) 0%, #f4741e 100%);
    padding: 60px 30px; text-align: center; box-shadow: var(--lp-shadow-orange);
}
.lp-cta-card::before {
    content: ''; position: absolute; top: -60px; left: -60px; width: 240px; height: 240px;
    border-radius: 50%; background: rgba(255,255,255,0.12);
}
.lp-cta-card::after {
    content: ''; position: absolute; bottom: -80px; right: -40px; width: 280px; height: 280px;
    border-radius: 50%; background: rgba(12, 33, 64, 0.15);
}
.lp-cta-card h2 { color: var(--lp-primary-foreground); font-size: 34px; margin-bottom: 12px; position: relative; }
.lp-cta-card p { color: rgba(255, 250, 246, 0.9); font-size: 16px; margin-bottom: 28px; position: relative; }
.lp-cta-card div { position: relative; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.lp-cta-card .btn { background: var(--lp-secondary); color: var(--lp-secondary-foreground); box-shadow: var(--lp-shadow-card); }
.lp-cta-card .btn:hover { background: #16345c; }
.lp-cta-card .btn-secondary { background: rgba(255,255,255,0.15); color: var(--lp-primary-foreground); border: 2px solid rgba(255,255,255,0.5); box-shadow: none; }
.lp-cta-card .btn-secondary:hover { background: rgba(255,255,255,0.25); color: var(--lp-primary-foreground); }

/* Footer */
.lp-footer { background: var(--lp-bg); color: var(--lp-muted-foreground); padding: 60px 0 0; border-top: 1px solid var(--lp-border); }
.lp-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding-bottom: 40px;
}
.lp-footer .lp-brand { color: var(--lp-secondary); }
.lp-footer .lp-brand small { color: var(--lp-muted-foreground); }
.lp-footer h4 { color: var(--lp-secondary); margin-bottom: 15px; font-size: 15px; font-weight: 800; }
.lp-footer a { display: block; color: var(--lp-muted-foreground); text-decoration: none; padding: 5px 0; font-size: 13px; transition: color 0.2s; }
.lp-footer a:hover { color: var(--lp-primary); }
.lp-footer p { font-size: 13px; line-height: 1.7; }
.lp-footer p.lp-contact-line {
    display: flex; align-items: center; gap: 8px;
    direction: ltr; justify-content: flex-start;
}
.lp-footer p.lp-contact-line a { display: inline; padding: 0; }
.lp-footer-bottom { border-top: 1px solid var(--lp-border); padding: 20px 0; text-align: center; color: var(--lp-muted-foreground); font-size: 13px; }

/* Mobile */
@media (max-width: 992px) {
    .lp-services-grid { grid-template-columns: repeat(3, 1fr); }
    .lp-services-grid.collapsed .lp-service:nth-child(n+7) { display: none; }
    .lp-why-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-statbar { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .lp-logo { height: 46px; }
    .lp-brand > div { display: none; }

    .lp-nav { display: none; }
    .lp-nav.open {
        display: flex; position: absolute; top: 100%; right: 0; left: 0;
        flex-direction: column; background: var(--lp-card); padding: 20px;
        box-shadow: var(--lp-shadow-soft); gap: 4px; border-bottom: 1px solid var(--lp-border);
    }
    .lp-nav.open a { padding: 10px 4px; }
    .lp-burger { display: block; padding: 4px; flex-shrink: 0; }
    .lp-header .lp-container { gap: 8px; padding: 0 12px; }
    .lp-brand { flex-shrink: 1; min-width: 0; }
    .lp-logo { height: 40px; max-width: 110px; }
    .lp-cta { display: flex; gap: 6px; align-items: center; flex-shrink: 0; margin-inline-start: auto; }
    .lp-cta .lang-switch { display: none; }
    body.landing .lp-cta .btn { padding: 7px 12px; font-size: 12.5px; border-radius: 10px; white-space: nowrap; box-shadow: none; }
    .lp-cta .lp-cta-icon { display: none; }

    /* اللغة داخل القائمة */
    .lp-nav-lang { display: block; border-top: 1px solid var(--lp-border); margin-top: 6px; padding-top: 6px; }
    .lp-nav-lang-toggle {
        width: 100%; display: flex; align-items: center; gap: 8px;
        background: none; border: none; padding: 10px 4px; cursor: pointer;
        font: inherit; font-weight: 700; font-size: 14px; color: var(--lp-secondary);
    }
    .lp-nav-lang-current { margin-inline-start: auto; color: var(--lp-primary); font-size: 13px; }
    .lp-nav-lang-caret { font-size: 12px; transition: transform 0.2s; }
    .lp-nav-lang.open .lp-nav-lang-caret { transform: rotate(180deg); }
    .lp-nav-lang-list { display: none; flex-direction: column; gap: 2px; padding: 4px 0 4px; }
    .lp-nav-lang.open .lp-nav-lang-list { display: flex; }
    .lp-nav.open .lp-nav-lang-list a {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 14px; border-radius: 10px; opacity: 1; background: var(--lp-bg);
    }
    .lp-nav.open .lp-nav-lang-list a.is-active { color: var(--lp-primary); background: #fff3ea; }

    .lp-hero { padding: 40px 0 50px; }
    .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .lp-hero-text h1 { font-size: 32px; }
    .lp-hero-text p { margin-left: auto; margin-right: auto; }
    .lp-hero-actions { justify-content: center; }
    .lp-stats { justify-content: center; }
    .lp-hero-image { max-width: 320px; margin: 0 auto; }
    .lp-hero-float { width: 190px; padding: 10px; }
    .lp-hero-float-1 { top: 0; right: -6px; }
    .lp-hero-float-2 { bottom: 10px; left: -6px; }

    .lp-section { padding: 50px 0; }
    .lp-section-title { font-size: 26px; }

    .lp-services-grid { grid-template-columns: repeat(2, 1fr); }
    .lp-services-grid.collapsed .lp-service:nth-child(n+5) { display: none; }
    .lp-why-grid { grid-template-columns: 1fr; }
    .lp-statbar { grid-template-columns: 1fr; gap: 18px; }
    .lp-statbar > div:not(:last-child) { border-left: none; border-bottom: 1px solid rgba(247, 251, 253, 0.12); padding-bottom: 18px; }

    .lp-plans { grid-template-columns: 1fr; }
    .lp-plan-featured { transform: none; }
    .lp-plan-featured:hover { transform: translateY(-4px); }

    .lp-cta-card { padding: 44px 22px; border-radius: 28px; }
    .lp-cta-card h2 { font-size: 26px; }

    .lp-footer-grid { grid-template-columns: 1fr; gap: 25px; }
}

@media (max-width: 480px) {
    .lp-services-grid { grid-template-columns: repeat(2, 1fr); }
}
