/* تطبيق جو — تصميم عربي RTL مستقل */
:root {
    --jo-bg: #f6f1e8;
    --jo-bg-2: #fffdf8;
    --jo-ink: #10221f;
    --jo-muted: #3f524d;
    --jo-line: rgba(16, 34, 31, 0.12);
    --jo-brand: #0a5c49;
    --jo-brand-deep: #07362d;
    --jo-gold: #c9a227;
    --jo-sand: #ead9b8;
    --jo-card: #ffffff;
    --jo-shadow: 0 18px 40px rgba(7, 54, 45, 0.12);
    --jo-radius: 22px;
    --jo-header-h: 86px;
}

html { scroll-behavior: smooth; }

body.jo-redesign {
    font-family: "Cairo", "Tajawal", sans-serif !important;
    background: var(--jo-bg) !important;
    color: var(--jo-ink);
    line-height: 1.8;
    overflow-x: hidden;
}

body.jo-redesign .loader-box { display: none !important; }

.jo-wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* ========== Header ========== */
body.jo-redesign header.jo-header {
    position: sticky !important;
    top: 0;
    inset-inline: 0;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    z-index: 1200 !important;
    background: rgba(246, 241, 232, 0.96) !important;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--jo-line);
    box-shadow: none;
    transform: none !important;
}

.jo-header.fixed,
.jo-header.active {
    box-shadow: 0 10px 30px rgba(7, 54, 45, 0.1);
}

.jo-topbar {
    background: var(--jo-brand-deep);
    color: #f6f1e8;
    font-size: 0.82rem;
    font-weight: 600;
}

.jo-topbar .jo-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 28px;
    padding-block: 6px;
    flex-wrap: nowrap;
    overflow: hidden;
}

.jo-topbar span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.jo-topbar i { color: var(--jo-gold); }

.jo-nav {
    display: grid !important;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 20px;
    min-height: 72px;
    height: 72px;
}

.jo-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
    flex-shrink: 0;
}

.jo-logo-img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
}

.jo-brand-text {
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--jo-brand-deep);
    line-height: 1.15;
}

.jo-brand-text small {
    display: block;
    margin-top: 3px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--jo-muted);
}

.jo-header .header-middle {
    flex: unset !important;
    width: auto !important;
    height: auto !important;
    position: static !important;
    transform: none !important;
    background: transparent !important;
    padding: 0 !important;
    box-shadow: none !important;
    display: flex !important;
    justify-content: center;
    align-items: center;
}

.jo-menu,
.jo-header ul.jo-menu {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center;
    gap: 4px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.jo-menu li {
    display: block;
    width: auto !important;
    margin: 0 !important;
}

.jo-menu a {
    display: inline-flex;
    align-items: center;
    color: var(--jo-ink) !important;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 8px 12px !important;
    border-radius: 999px;
    text-decoration: none !important;
    white-space: nowrap;
    line-height: 1.2;
}

.jo-menu a:hover,
.jo-menu a:focus {
    background: rgba(10, 92, 73, 0.1);
    color: var(--jo-brand) !important;
}

.jo-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.jo-lang {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--jo-line);
    background: #fff;
    color: var(--jo-ink);
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.jo-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--jo-brand);
    color: #fff !important;
    font-weight: 800;
    border-radius: 999px;
    padding: 10px 16px;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(10, 92, 73, 0.28);
    white-space: nowrap;
}

.jo-cta:hover { background: var(--jo-brand-deep); color: #fff !important; }

.jo-header .navbar-toggler,
.jo-header .menu-title,
.jo-header .overlay { display: none !important; }

/* ========== Hero ========== */
.jo-hero {
    position: relative;
    min-height: min(92vh, 820px);
    display: grid;
    align-items: center;
    background:
        linear-gradient(100deg, rgba(7, 30, 27, 0.88) 8%, rgba(7, 54, 45, 0.62) 55%, rgba(7, 30, 27, 0.35) 100%),
        url("/front/images/egypt/hero-cairo.jpg") center/cover no-repeat;
    color: #fff;
    overflow: hidden;
}

.jo-hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 32px;
    align-items: center;
    padding-block: 48px 72px;
}

.jo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(201, 162, 39, 0.18);
    border: 1px solid rgba(201, 162, 39, 0.55);
    color: #f3e0a6;
    border-radius: 999px;
    padding: 6px 14px;
    font-weight: 700;
    margin-bottom: 18px;
}

.jo-hero h1 {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.35;
    color: #fff;
    margin-bottom: 16px;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.jo-hero h1 em {
    font-style: normal;
    color: var(--jo-gold);
}

.jo-hero .lead {
    font-size: 1.12rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 38rem;
    margin-bottom: 24px;
}

.jo-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }

.jo-btn-gold {
    background: linear-gradient(135deg, #d4af37, #b45309);
    color: #fff !important;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 22px;
    text-decoration: none !important;
}

.jo-btn-ghost {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #fff !important;
    font-weight: 800;
    border-radius: 999px;
    padding: 12px 22px;
    text-decoration: none !important;
}

.jo-book {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 8px;
    background: #fff;
    color: var(--jo-ink);
    border-radius: 18px;
    padding: 10px;
    max-width: 560px;
    box-shadow: var(--jo-shadow);
}

.jo-book label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--jo-muted);
}

.jo-book input {
    width: 100%;
    border: 0;
    background: transparent;
    font-weight: 700;
    color: var(--jo-ink);
    outline: none;
}

.jo-book > div {
    background: #f6f1e8;
    border-radius: 12px;
    padding: 8px 12px;
}

.jo-book button,
.jo-book a.jo-book-go {
    background: var(--jo-brand);
    color: #fff !important;
    border: 0;
    border-radius: 12px;
    font-weight: 800;
    padding: 12px 18px;
    display: grid;
    place-items: center;
    text-decoration: none !important;
    white-space: nowrap;
}

.jo-hero-visual { position: relative; text-align: center; }
.jo-hero-visual img {
    width: min(360px, 100%);
    filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.45));
}
.jo-float {
    position: absolute;
    background: #fff;
    color: var(--jo-ink);
    border-radius: 16px;
    padding: 10px 14px;
    font-weight: 700;
    box-shadow: var(--jo-shadow);
    font-size: 0.9rem;
}
.jo-float.one { top: 12%; inset-inline-start: 0; }
.jo-float.two { bottom: 18%; inset-inline-end: 0; }
.jo-float b { color: var(--jo-brand); display: block; }

/* ========== Sections ========== */
.jo-section { padding: 72px 0; }
.jo-section.alt { background: var(--jo-bg-2); }

.jo-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.jo-head span {
    color: var(--jo-brand);
    font-weight: 800;
    letter-spacing: 0.04em;
}
.jo-head h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--jo-brand-deep);
    margin: 8px 0 10px;
}
.jo-head p { color: var(--jo-muted); margin: 0; }

.jo-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: -48px;
    position: relative;
    z-index: 2;
}
.jo-stat {
    background: var(--jo-card);
    border-radius: var(--jo-radius);
    padding: 22px 18px;
    box-shadow: var(--jo-shadow);
    border: 1px solid var(--jo-line);
    text-align: center;
}
.jo-stat strong {
    display: block;
    font-size: 1.8rem;
    color: var(--jo-brand);
    font-weight: 800;
}
.jo-stat p { margin: 6px 0 0; color: var(--jo-muted); font-weight: 600; }

.jo-cities {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    gap: 14px;
}
.jo-cities a {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    display: block;
    color: #fff !important;
    text-decoration: none !important;
}
.jo-cities a:first-child { grid-row: 1 / span 2; }
.jo-cities img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.jo-cities a:hover img { transform: scale(1.06); }
.jo-cities span {
    position: absolute;
    inset-inline: 0;
    bottom: 0;
    padding: 16px;
    background: linear-gradient(transparent, rgba(7, 30, 27, 0.88));
    font-weight: 800;
    font-size: 1.1rem;
}

.jo-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}
.jo-feature {
    background: var(--jo-card);
    border: 1px solid var(--jo-line);
    border-radius: var(--jo-radius);
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(7, 54, 45, 0.06);
}
.jo-feature img { width: 100%; height: 170px; object-fit: cover; }
.jo-feature-body { padding: 18px; }
.jo-feature i {
    width: 42px; height: 42px;
    display: grid; place-items: center;
    background: rgba(10, 92, 73, 0.1);
    color: var(--jo-brand);
    border-radius: 12px;
    font-size: 1.25rem;
    margin-bottom: 10px;
}
.jo-feature h3 { font-size: 1.1rem; font-weight: 800; color: var(--jo-brand-deep); }
.jo-feature p { color: var(--jo-muted); margin: 0; }

.jo-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    counter-reset: step;
}
.jo-step {
    background: var(--jo-card);
    border-radius: var(--jo-radius);
    padding: 18px 16px 16px;
    border: 1px solid var(--jo-line);
    text-align: center;
}
.jo-step img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 14px;
    margin-bottom: 12px;
    background: #eee;
}
.jo-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    display: inline-block;
    background: var(--jo-brand);
    color: #fff;
    font-weight: 800;
    border-radius: 999px;
    padding: 2px 10px;
    margin-bottom: 8px;
}
.jo-step h3 { font-size: 1.05rem; font-weight: 800; color: var(--jo-brand-deep); }
.jo-step p { color: var(--jo-muted); margin: 0; font-size: 0.95rem; }

.jo-split {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
}
.jo-split img {
    width: 100%;
    border-radius: 28px;
    min-height: 360px;
    object-fit: cover;
    box-shadow: var(--jo-shadow);
}
.jo-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.jo-pills span {
    background: rgba(10, 92, 73, 0.1);
    color: var(--jo-brand-deep);
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 12px;
}

.jo-quotes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}
.jo-quote {
    background: var(--jo-card);
    border-radius: var(--jo-radius);
    padding: 22px;
    border: 1px solid var(--jo-line);
}
.jo-quote header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
    background: transparent;
    border: 0;
    position: static;
}
.jo-quote img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.jo-quote h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.jo-quote .stars { color: #c9a227; font-weight: 800; }
.jo-quote p { margin: 0; color: var(--jo-muted); }

.jo-faq { max-width: 860px; margin: 0 auto; }
.jo-faq details {
    background: var(--jo-card);
    border: 1px solid var(--jo-line);
    border-radius: 16px;
    padding: 4px 18px;
    margin-bottom: 10px;
}
.jo-faq summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--jo-brand-deep);
    padding: 12px 0;
    list-style: none;
}
.jo-faq summary::-webkit-details-marker { display: none; }
.jo-faq details p { color: var(--jo-muted); padding-bottom: 12px; }

.jo-download {
    background:
        linear-gradient(100deg, rgba(7, 54, 45, 0.92), rgba(10, 92, 73, 0.78)),
        url("/front/images/egypt/cairo-taxi.jpg") center/cover no-repeat;
    color: #fff;
    border-radius: 32px;
    padding: 42px 36px;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: center;
}
.jo-download h2 { color: #fff; font-weight: 800; }
.jo-download p { color: rgba(255,255,255,.9); }
.jo-stores { display: flex; gap: 12px; flex-wrap: wrap; }
.jo-stores img { height: 52px; }

/* ========== Footer ========== */
.jo-footer {
    background: var(--jo-brand-deep);
    color: #f4ead6;
    margin-top: 0;
    padding-top: 56px;
}
.jo-footer a { color: #f4ead6; text-decoration: none; }
.jo-footer a:hover { color: var(--jo-gold); }
.jo-footer .jo-brand-text,
.jo-footer .jo-brand-text small { color: #fff; }
.jo-foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
    gap: 28px;
    padding-bottom: 36px;
}
.jo-footer h4 {
    color: var(--jo-gold);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 14px;
}
.jo-footer ul { list-style: none; padding: 0; margin: 0; }
.jo-footer li { margin-bottom: 8px; }
.jo-social { display: flex; gap: 10px; margin-top: 16px; }
.jo-social a {
    width: 38px; height: 38px;
    display: grid; place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    color: #fff;
}
.jo-news {
    display: flex;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
}
.jo-news input {
    border: 0;
    padding: 12px 14px;
    flex: 1;
    min-width: 0;
    color: var(--jo-ink);
    outline: none;
}
.jo-news button {
    background: var(--jo-gold);
    color: #10221f;
    border: 0;
    font-weight: 800;
    padding: 0 16px;
}
.jo-copy {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding: 16px 0;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    font-size: 0.9rem;
}

/* Overlay */
.jo-header .overlay.show {
    display: block !important;
    position: fixed;
    inset: 0;
    background: rgba(7, 30, 27, 0.5);
    z-index: 1190;
}

/* Dark mode leftovers from old theme */
body.jo-redesign.dark,
body.jo-redesign.dark-mode {
    background: var(--jo-bg) !important;
    color: var(--jo-ink);
}

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .jo-steps { grid-template-columns: repeat(3, 1fr); }
    .jo-hero-grid, .jo-split, .jo-download, .jo-foot-grid { grid-template-columns: 1fr; }
    .jo-features, .jo-quotes, .jo-stats { grid-template-columns: 1fr 1fr; }
    .jo-hero-visual { order: -1; }
}

@media (max-width: 1199px) {
    .jo-nav {
        display: flex !important;
        grid-template-columns: none;
        height: 68px;
        min-height: 68px;
        justify-content: flex-start;
        gap: 12px;
    }
    .jo-header .navbar-toggler {
        display: grid !important;
        place-items: center;
        width: 42px;
        height: 42px;
        border: 1px solid var(--jo-line);
        background: #fff;
        border-radius: 12px;
        color: var(--jo-ink);
        font-size: 1.3rem;
        flex-shrink: 0;
    }
    .jo-brand { margin-inline-end: auto; }
    .jo-header .header-middle {
        position: fixed !important;
        top: 0;
        bottom: 0;
        inset-inline-start: 0;
        width: min(340px, 86vw);
        height: 100vh !important;
        background: #fff !important;
        z-index: 1300;
        padding: 18px !important;
        transform: translateX(110%);
        transition: transform .3s ease;
        box-shadow: var(--jo-shadow);
        display: block !important;
        align-items: stretch;
    }
    html[dir="rtl"] .jo-header .header-middle { transform: translateX(110%); }
    html[dir="ltr"] .jo-header .header-middle { transform: translateX(-110%); }
    .jo-header .header-middle.show { transform: translateX(0) !important; }
    .jo-header .menu-title {
        display: flex !important;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
    }
    .jo-header .menu-title h3 { margin: 0; font-weight: 800; }
    .jo-menu,
    .jo-header ul.jo-menu {
        flex-direction: column !important;
        align-items: stretch !important;
    }
    .jo-menu a { padding: 12px 10px !important; width: 100%; }
    .jo-header .overlay.show { display: block !important; }
    .jo-lang { display: none; }
    .jo-cities { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 180px 180px; }
    .jo-cities a:first-child { grid-column: 1 / span 2; grid-row: auto; min-height: 220px; }
}

@media (max-width: 680px) {
    .jo-topbar { display: none; }
    .jo-stats, .jo-features, .jo-quotes, .jo-steps { grid-template-columns: 1fr; }
    .jo-book { grid-template-columns: 1fr; }
    .jo-hero { min-height: auto; }
    .jo-hero-grid { padding-block: 28px 56px; }
    .jo-float { display: none; }
    .jo-cta span { display: none; }
    .jo-section { padding: 48px 0; }
    .jo-download { padding: 28px 20px; border-radius: 22px; }
    .jo-foot-grid { grid-template-columns: 1fr; }
}

body.jo-redesign .jo-quote-user img { flex-shrink: 0; }

body.jo-redesign.rtl { direction: rtl; text-align: start; }
body.jo-redesign.ltr { direction: ltr; text-align: start; }

