/* ==========================================================================
   Qatar ERP - platform silo pages (/zoho/, /odoo/, /erpnext/, /manageengine/
   and the solution pages built on the same template).

   Adds a real site navigation to the landing-page design system in brand.css,
   plus breadcrumbs, prose blocks, related-page cards and RTL corrections.
   Loaded after brand.css; only these pages reference it.
   ========================================================================== */

/* --- skip link ----------------------------------------------------------- */
.lp-skip {
    position: absolute;
    left: 8px;
    top: -200px;
    z-index: 2000;
    padding: 8px 14px;
    background: var(--primary-color4);
    color: #fff;
    border-radius: 8px;
}
.lp-skip:focus { top: 8px; }
html.silo-html { overflow-x: clip; }
body.silo-page { overflow-x: clip; }

/* --- header / navigation -------------------------------------------------- */
.lp-header-inner { gap: 16px; min-width: 0; }
.lp-header-cta { white-space: nowrap; }
.lp-header-actions { flex: 0 0 auto; }

.lp-nav { flex: 1 1 auto; display: flex; justify-content: center; min-width: 0; }
.lp-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; align-items: center; }
.lp-nav-head { display: none; }
.lp-nav-item { position: relative; display: flex; align-items: center; }
.lp-nav-link {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 9px 10px 9px 12px;
    font-family: var(--font-poppins);
    font-size: 15px; font-weight: 500;
    color: var(--title-color);
    border-radius: 8px;
    white-space: nowrap;
}
.lp-sub-toggle {
    border: 0; background: none; padding: 8px 6px; margin-left: -6px;
    color: var(--text-color); font-size: 11px; line-height: 1; border-radius: 6px; cursor: pointer;
}
.lp-nav-item:hover > .lp-nav-link,
.lp-nav-item:focus-within > .lp-nav-link,
.lp-nav-item.is-open > .lp-nav-link { color: var(--primary-color4); background: rgba(196, 19, 107, 0.06); }
.lp-nav-item:hover > .lp-sub-toggle,
.lp-nav-item.is-open > .lp-sub-toggle { color: var(--primary-color4); }
.lp-nav-lang .lp-sub-toggle { display: none; }
.lp-nav-lang .lp-nav-link { font-weight: 600; }

.lp-sub {
    list-style: none; margin: 0; padding: 10px;
    position: absolute; top: 100%; left: 0; z-index: 60;
    min-width: 270px;
    background: #fff;
    border: 1px solid var(--borders-color);
    border-radius: 14px;
    box-shadow: 0 22px 48px rgba(5, 14, 32, 0.14);
    display: none;
}
.lp-nav-item:hover > .lp-sub,
.lp-nav-item:focus-within > .lp-sub,
.lp-nav-item.is-open > .lp-sub { display: block; }
.lp-sub li + li { margin-top: 2px; }
.lp-sub a {
    display: block; padding: 8px 12px; border-radius: 9px;
    font-family: var(--font-poppins); font-size: 14.5px; font-weight: 500; line-height: 1.35;
    color: var(--title-color);
}
.lp-sub a small { display: block; margin-top: 2px; font-family: inherit; font-size: 12.5px; font-weight: 400; color: var(--paragraph-color); }
.lp-sub a:hover, .lp-sub a:focus-visible { background: rgba(196, 19, 107, 0.08); color: var(--primary-color4); }

.lp-nav-toggle {
    display: none; border: 1px solid var(--borders-color); background: #fff;
    width: 44px; height: 44px; border-radius: 10px; font-size: 22px; line-height: 1;
    align-items: center; justify-content: center; color: var(--title-color); cursor: pointer;
}

@media (max-width: 1399px) {
    .lp-callnow span { display: none; }
    .lp-nav-link { padding: 9px 8px 9px 10px; font-size: 14px; }
    .lp-sub-toggle { padding: 8px 4px; }
}
[dir="rtl"] .lp-nav-link { font-size: 14.5px; }
@media (max-width: 1599px) {
    [dir="rtl"] .lp-callnow span { display: none; }
    [dir="rtl"] .lp-header-cta .lp-cta-long { display: none; }
    [dir="rtl"] .lp-header-cta .lp-cta-short { display: inline; }
}
@media (max-width: 1499px) {
    .lp-callnow span { display: none; }
}
@media (min-width: 1100px) {
    .lp-nav { min-width: 0; }
    .lp-nav > ul { flex-wrap: nowrap; }
}

@media (max-width: 1099px) {
    .lp-nav-toggle { display: inline-flex; }
    .lp-nav {
        position: fixed; top: 0; right: 0; bottom: 0; left: auto;
        width: min(380px, 92vw);
        background: #fff;
        box-shadow: -20px 0 60px rgba(5, 14, 32, 0.25);
        transform: translateX(105%);
        transition: transform 0.28s ease;
        flex-direction: column; justify-content: flex-start; align-items: stretch;
        padding: 18px 20px 40px;
        overflow-y: auto;
        z-index: 1200;
    }
    .lp-nav.is-open { transform: none; visibility: visible; }
    .lp-nav { visibility: hidden; transition: transform 0.28s ease, visibility 0s linear 0.28s; }
    .lp-nav.is-open { transition: transform 0.28s ease, visibility 0s; }
    .lp-nav-head { display: flex; align-items: center; justify-content: space-between; padding: 0 0 14px; margin-bottom: 8px; border-bottom: 1px solid var(--borders-color); font-family: var(--font-poppins); font-weight: 600; }
    .lp-nav-close { border: 0; background: rgba(196, 19, 107, 0.08); width: 40px; height: 40px; border-radius: 10px; font-size: 16px; cursor: pointer; }
    .lp-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
    .lp-nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--borders-color); padding: 4px 0; }
    .lp-nav-link { flex: 1 1 auto; padding: 12px 6px; font-size: 16px; }
    .lp-sub-toggle { margin: 0; padding: 12px 10px; font-size: 14px; }
    .lp-nav-item:hover > .lp-sub, .lp-nav-item:focus-within > .lp-sub { display: none; }
    .lp-nav-item.is-open > .lp-sub { display: block; }
    .lp-sub { position: static; flex: 0 0 100%; box-shadow: none; border: 0; padding: 0 0 10px 8px; min-width: 0; }
    .lp-sub a { padding: 9px 10px; }
    body.lp-nav-open { overflow: hidden; }
    body.lp-nav-open::before { content: ""; position: fixed; inset: 0; background: rgba(5, 14, 32, 0.55); z-index: 1100; }
}

@media (max-width: 767px) {
    .lp-header-actions { gap: 10px; }
    .lp-header-cta .lp-cta-long { display: none; }
    .lp-header-cta .lp-cta-short { display: inline; }
    .lp-header-cta.primary-btn1 { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 575px) {
    .lp-header-inner .lp-logo img { width: 130px; }
    .lp-header-actions { gap: 8px; }
    .lp-nav-toggle { width: 40px; height: 40px; }
}

/* --- hero additions -------------------------------------------------------- */
.lp-crumbs { margin: 0 0 22px; font-size: 13.5px; }
.lp-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.lp-crumbs li { color: rgba(255, 255, 255, 0.62); }
.lp-crumbs li + li::before { content: "/"; margin-right: 6px; color: rgba(255, 255, 255, 0.35); }
.lp-crumbs a { color: rgba(255, 255, 255, 0.8); }
.lp-crumbs a:hover { color: #fff; }
.lp-crumbs li[aria-current] { color: #fff; }

.lp-eyebrow {
    display: inline-block; margin-bottom: 14px;
    font-family: var(--font-poppins); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
    color: var(--primary-color4);
}
.lp-platform-mark { margin-bottom: 18px; line-height: 0; }
.lp-platform-mark img { height: 38px; width: auto; }
.lp-hero-article { padding: 40px 0 46px; }
.lp-hero-article .lp-hero-lead { max-width: 720px; }
.lp-hero-article .lp-cta-btns { margin-top: 26px; }

/* --- prose / intro --------------------------------------------------------- */
.lp-prose p { font-size: 17px; line-height: 30px; color: var(--paragraph-color); margin: 0 0 16px; max-width: 70ch; }
.lp-prose p:last-child { margin-bottom: 0; }
.lp-prose a { color: var(--primary-color4); text-decoration: underline; text-underline-offset: 3px; }
.lp-prose ul, .lp-prose ol { margin: 0 0 18px; padding-left: 22px; }
.lp-prose li { font-size: 16.5px; line-height: 28px; color: var(--paragraph-color); margin-bottom: 6px; }
.lp-prose h3 { font-size: 21px; margin: 28px 0 10px; }
.lp-prose strong { color: var(--title-color); font-weight: 600; }
.lp-glance {
    position: static;
    padding: 24px 24px 20px;
    background: #fdf4f8;
    border: 1px solid var(--borders-color);
    border-radius: 16px;
}
.lp-glance h3 { font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-color4); margin: 0 0 14px; }
.lp-glance ul { list-style: none; margin: 0; padding: 0; }
.lp-glance li { position: relative; padding-left: 24px; margin-bottom: 10px; font-size: 15px; line-height: 24px; color: var(--title-color2); }
.lp-glance li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; color: var(--primary-color4); }

/* --- section variants ----------------------------------------------------- */
.lp-qatar .lp-svc { border-left: 4px solid var(--primary-color4); }
.lp-related-card { display: block; color: inherit; }
.lp-related-card h3 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lp-related-card h3 i { font-size: 15px; color: var(--primary-color4); opacity: 0; transition: opacity 0.2s, transform 0.2s; }
.lp-related-card:hover { border-color: var(--primary-color4); transform: translateY(-3px); }
.lp-related-card:hover h3 { color: var(--primary-color4); }
.lp-related-card:hover h3 i { opacity: 1; transform: translate(2px, -2px); }
.lp-cost-note { margin-top: 18px; font-size: 15px; line-height: 26px; color: var(--paragraph-color); max-width: 80ch; }
.lp-article .lp-prose table { width: 100%; }
.lp-cta-form .lp-form { margin: 0; }
.lp-cta-form h2, .lp-cta-form p { color: #fff; }
.lp-cta-form .lp-form h2, .lp-cta-form .lp-form p, .lp-cta-form .lp-form label { color: var(--title-color); }
.lp-cta-form .lp-form p { color: var(--paragraph-color); }
.mb-30 { margin-bottom: 30px; }

/* --- RTL corrections (Arabic pages) --------------------------------------- */
[dir="rtl"] .lp-nav-link { padding: 9px 12px 9px 10px; }
[dir="rtl"] .lp-sub-toggle { margin-left: 0; margin-right: -6px; }
[dir="rtl"] .lp-sub { left: auto; right: 0; }
[dir="rtl"] .lp-crumbs li + li::before { margin-right: 0; margin-left: 6px; }
[dir="rtl"] .lp-points li { padding-left: 0; padding-right: 28px; }
[dir="rtl"] .lp-points li::before { left: auto; right: 0; }
[dir="rtl"] .lp-glance li { padding-left: 0; padding-right: 24px; }
[dir="rtl"] .lp-glance li::before { left: auto; right: 0; }
[dir="rtl"] .lp-prose ul, [dir="rtl"] .lp-prose ol { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .lp-qatar .lp-svc { border-left: 1px solid var(--borders-color); border-right: 4px solid var(--primary-color4); }
[dir="rtl"] .lp-hero-copy, [dir="rtl"] .section-title, [dir="rtl"] .lp-svc, [dir="rtl"] .pain-card,
[dir="rtl"] .lp-deliver, [dir="rtl"] .lp-step, [dir="rtl"] .lp-prose, [dir="rtl"] .lp-form,
[dir="rtl"] .lp-app-card, [dir="rtl"] .data-table th, [dir="rtl"] .data-table td,
[dir="rtl"] .accordion-button, [dir="rtl"] .accordion-body, [dir="rtl"] .lp-cred, [dir="rtl"] .lp-footer { text-align: right; }
[dir="rtl"] .section-title.text-center { text-align: center; }
[dir="rtl"] .accordion-button::after { margin-left: 0; margin-right: auto; }
@media (max-width: 1099px) {
    [dir="rtl"] .lp-nav { right: auto; left: 0; transform: translateX(-105%); box-shadow: 20px 0 60px rgba(5, 14, 32, 0.25); }
    [dir="rtl"] .lp-nav.is-open { transform: none; }
}
@media (max-width: 1199px) {
    .lp-header-inner .lp-logo img { width: 150px; }
    .lp-nav-link { font-size: 13.5px; padding: 9px 7px 9px 9px; }
}
[dir="rtl"] .lp-sub { padding-left: 0; padding-right: 8px; }
[dir="rtl"] .lp-deliver ul, [dir="rtl"] .lp-indf-feats { padding-left: 0; padding-right: 20px; }

@media (prefers-reduced-motion: reduce) {
    .lp-nav, .lp-related-card, .lp-related-card h3 i { transition: none; }
}

/* --- theme header/footer on silo pages ------------------------------------ */
/* The theme header is position:absolute over the page (163px with the top bar on
   desktop, 85px on tablets, 78px on phones), so the hero starts below it. */
.silo-page .lp-hero { padding-top: 200px; }
.silo-page .lp-hero-article { padding-top: 200px; }
.silo-page .lp-crumbs { margin-bottom: 18px; }
.silo-page .lp-hero .row { align-items: flex-start; }
@media (max-width: 1399px) { .silo-page .lp-hero, .silo-page .lp-hero-article { padding-top: 196px; } }
@media (max-width: 991px) { .silo-page .lp-hero, .silo-page .lp-hero-article { padding-top: 118px; } }
@media (max-width: 575px) { .silo-page .lp-hero, .silo-page .lp-hero-article { padding-top: 108px; } }

/* --- first section after the hero / creds strip: give it room and a heading
   sized as a section heading, not a second H1 ------------------------------ */
.silo-page .lp-hero + .page-feature-section,
.silo-page .lp-hero-article + .page-feature-section,
.silo-page .lp-creds + .page-feature-section,
.silo-page .lp-creds + .contact-faq-section { padding-top: 88px; }
.silo-page .lp-intro .section-title.two h2 { font-size: 36px; line-height: 46px; }
.silo-page .lp-article .section-title.two h2 { font-size: 36px; line-height: 46px; }
.silo-page .lp-glance { margin-top: 6px; }
@media (max-width: 991px) {
    .silo-page .lp-hero + .page-feature-section,
    .silo-page .lp-hero-article + .page-feature-section,
    .silo-page .lp-creds + .page-feature-section,
    .silo-page .lp-creds + .contact-faq-section { padding-top: 56px; }
    .silo-page .lp-intro .section-title.two h2, .silo-page .lp-article .section-title.two h2 { font-size: 30px; line-height: 40px; }
}
@media (max-width: 575px) {
    .silo-page .lp-intro .section-title.two h2, .silo-page .lp-article .section-title.two h2 { font-size: 26px; line-height: 34px; }
}

/* --- hub children index ---------------------------------------------------- */
.lp-children { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 22px; }
.lp-children li { margin: 0; }
.lp-children a { display: block; padding: 14px 16px 14px 18px; border-left: 3px solid var(--primary-color4); background: #fdf4f8; border-radius: 0 10px 10px 0; color: inherit; transition: background 0.2s, transform 0.2s; }
.lp-children a:hover { background: #fbe0ee; transform: translateX(3px); }
.lp-children strong { display: block; font-family: var(--font-poppins); font-size: 16px; font-weight: 600; color: var(--title-color); margin-bottom: 4px; }
.lp-children span { display: block; font-size: 14px; line-height: 22px; color: var(--paragraph-color); }
[dir="rtl"] .lp-children a { border-left: 0; border-right: 3px solid var(--primary-color4); border-radius: 10px 0 0 10px; padding: 14px 18px 14px 16px; }
[dir="rtl"] .lp-children a:hover { transform: translateX(-3px); }
@media (max-width: 991px) { .lp-children { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575px) { .lp-children { grid-template-columns: 1fr; } }

[dir="rtl"] .lp-eyebrow { text-transform: none; letter-spacing: 0; }
