/* ============ Ordex brand — from 08_wordmark_lines.svg ============
   primary  #2563EB (speed lines blue)
   navy     #0B1733 (wordmark)
   white    #FFFFFF
==================================================================== */
:root {
    --blue: #2563EB;
    --blue-dark: #1D4ED8;
    --blue-soft: #EFF4FE;
    --navy: #0B1733;
    --navy-soft: #122148;
    --ink: #1E2A45;
    --muted: #5B6B8C;
    --line: #E3E9F4;
    --bg: #FFFFFF;
    --bg-alt: #F6F9FE;
    --ok: #10804A;
    --ok-bg: #E8F7EF;
    --warn: #A16207;
    --warn-bg: #FEF6E0;
    --err: #B42318;
    --err-bg: #FDEAE8;
    --radius: 14px;
    --shadow: 0 1px 2px rgba(11, 23, 51, .05), 0 8px 24px rgba(11, 23, 51, .07);
    --shadow-lg: 0 4px 12px rgba(11, 23, 51, .08), 0 16px 40px rgba(11, 23, 51, .12);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
body.rtl { font-family: 'Tajawal', 'Segoe UI', Tahoma, sans-serif; }
body.ltr { font-family: 'Inter', 'Segoe UI', Arial, sans-serif; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }

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

/* ============ topbar ============ */
.topbar {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}
.topbar-in { display: flex; align-items: center; gap: 28px; height: 68px; }
/* logo stays at the LEFT in both languages (per brand wordmark) */
body.rtl .topbar-in { flex-direction: row-reverse; }
.brand-logo { height: 34px; width: auto; flex-shrink: 0; direction: ltr; }
.nav { display: flex; gap: 4px; flex: 1; }
.nav a {
    padding: 8px 14px; border-radius: 9px;
    font-weight: 500; color: var(--ink); font-size: 15px;
    transition: background .15s, color .15s;
}
.nav a:hover { background: var(--blue-soft); color: var(--blue); }
.nav a.active { background: var(--blue-soft); color: var(--blue); font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
    padding: 7px 16px; border: 1.5px solid var(--line); border-radius: 9px;
    font-weight: 700; font-size: 14px; color: var(--navy);
    transition: border-color .15s, color .15s;
}
.lang-switch:hover { border-color: var(--blue); color: var(--blue); }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 22px; height: 2.5px; background: var(--navy); margin: 4px 0; border-radius: 2px; transition: .2s; }

/* ============ hero ============ */
.hero {
    position: relative; overflow: hidden;
    background: linear-gradient(160deg, var(--navy) 0%, #0E1F45 55%, #14306B 100%);
    color: #fff;
}
.hero-in { padding: 88px 20px 96px; position: relative; text-align: center; max-width: 880px; }
.hero-badge {
    display: inline-block; padding: 7px 18px; border-radius: 999px;
    background: rgba(37, 99, 235, .18); border: 1px solid rgba(37, 99, 235, .45);
    color: #BFD3FB; font-size: 14px; font-weight: 700; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(32px, 5.2vw, 54px); font-weight: 900; line-height: 1.25; margin-bottom: 18px; }
.hero-sub { font-size: clamp(16px, 2vw, 19px); color: #C3CEE6; max-width: 660px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero-lines { position: absolute; top: 46px; opacity: .5; }
body.ltr .hero-lines { left: 28px; }
body.rtl .hero-lines { right: 28px; transform: scaleX(-1); }
.hero-lines span { display: block; height: 5px; background: var(--blue); margin-bottom: 11px; border-radius: 2px; }
.hero-lines span:nth-child(1) { width: 56px; margin-inline-start: 18px; }
.hero-lines span:nth-child(2) { width: 84px; }
.hero-lines span:nth-child(3) { width: 46px; margin-inline-start: 28px; }

/* ============ buttons ============ */
.btn {
    display: inline-block; padding: 13px 28px; border-radius: 11px;
    font-weight: 700; font-size: 15.5px; border: 0; cursor: pointer;
    font-family: inherit; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px rgba(37, 99, 235, .35); }
.btn-primary:hover { background: var(--blue-dark); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255, 255, 255, .4); }
.btn-outline:hover { border-color: #fff; background: rgba(255, 255, 255, .08); }
.btn-white { background: #fff; color: var(--navy); }
.btn-light { background: var(--blue-soft); color: var(--blue); }
.btn-light:hover { background: #E0EAFD; }
.btn-block { display: block; text-align: center; width: 100%; }

/* ============ numbers band ============ */
.numbers { background: var(--bg); border-bottom: 1px solid var(--line); }
.numbers-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 34px 20px; }
.num { text-align: center; }
.num b { display: block; font-size: 34px; font-weight: 900; color: var(--blue); }
.num span { color: var(--muted); font-size: 14.5px; }

/* ============ sections & grids ============ */
.section { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--navy); margin-bottom: 32px; text-align: center; }
.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ============ cards ============ */
.card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px; transition: box-shadow .18s, transform .18s, border-color .18s;
}
a.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: #C9D9F8; }

.cat-card { text-align: center; }
.cat-icon { font-size: 38px; display: block; margin-bottom: 12px; }
.cat-card h3 { font-size: 19px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.cat-card p { color: var(--muted); font-size: 14.5px; margin-bottom: 14px; min-height: 48px; }
.cat-count { display: inline-block; padding: 4px 14px; border-radius: 999px; background: var(--blue-soft); color: var(--blue); font-size: 13px; font-weight: 700; }
.star { font-size: 14px; }

.product-card { display: flex; flex-direction: column; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.cat-chip { font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--bg-alt); border: 1px solid var(--line); padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge { font-size: 12.5px; font-weight: 800; padding: 4px 11px; border-radius: 999px; white-space: nowrap; }
.badge-rent { background: var(--blue-soft); color: var(--blue); }
.badge-sale { background: var(--ok-bg); color: var(--ok); }
.badge-soon { background: var(--warn-bg); color: var(--warn); }
.product-card h3 { font-size: 18.5px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.product-card p { color: var(--muted); font-size: 14.5px; flex: 1; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.price { font-size: 13.5px; color: var(--muted); }
.price b { color: var(--navy); font-size: 18px; font-weight: 900; }
.price-muted { font-weight: 700; }
.card-cta { color: var(--blue); font-weight: 700; font-size: 14px; white-space: nowrap; }
.is-soon { opacity: .82; }

/* ============ models band ============ */
.models-grid .model-card h3 { font-size: 21px; font-weight: 900; color: var(--navy); margin-bottom: 10px; }
.models-grid .model-card p { color: var(--muted); margin-bottom: 18px; }

/* ============ CTA band ============ */
.cta-band { background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%); color: #fff; }
.cta-band-in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 900; margin-bottom: 8px; }
.cta-band p { color: #DCE7FC; max-width: 620px; }

/* ============ page head ============ */
.page-head { background: var(--bg-alt); border-bottom: 1px solid var(--line); padding: 44px 0; }
.page-head h1 { font-size: clamp(26px, 4vw, 38px); font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.page-head p { color: var(--muted); font-size: 17px; max-width: 720px; }
.page-head-hero { background: linear-gradient(160deg, var(--navy), #14306B); border: 0; }
.page-head-hero h1 { color: #fff; }
.page-head-hero p { color: #C3CEE6; }
.crumbs { display: flex; gap: 8px; font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--blue); font-weight: 600; }

/* ============ filters ============ */
.filters { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.filter-group { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.filter-divider { height: 1px; background: var(--line); width: 100%; max-width: 560px; margin: 0 auto; }
.chip {
    padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line);
    font-size: 14px; font-weight: 600; color: var(--ink); background: #fff;
    transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.active { background: var(--navy); border-color: var(--navy); color: #fff; }

/* ============ product page ============ */
.product-head { display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start; }
.product-short { font-size: 18px; color: var(--muted); margin: 6px 0 16px; }
.product-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.product-price-box {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px; box-shadow: var(--shadow); text-align: center;
}
.pp-label { display: block; color: var(--muted); font-size: 14px; font-weight: 700; }
.pp-value { display: block; font-size: 40px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.pp-unit { display: block; color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.product-body .product-long { font-size: 17px; max-width: 820px; margin-bottom: 36px; }
.product-body .section-title { text-align: start; font-size: 22px; margin-bottom: 18px; }

.features { display: grid; gap: 12px; max-width: 820px; }
.features-2col { grid-template-columns: repeat(2, 1fr); max-width: 100%; }
.features li {
    background: #fff; border: 1px solid var(--line); border-radius: 11px;
    padding: 13px 18px; font-weight: 500; position: relative;
    padding-inline-start: 44px;
}
.features li::before {
    content: '✓'; position: absolute; inset-inline-start: 16px; top: 12px;
    color: var(--blue); font-weight: 900; font-size: 16px;
}

/* ============ steps ============ */
.step-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 8px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ============ forms ============ */
.form-wrap { max-width: 760px; }
.form-wrap .section-title { text-align: start; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 14px; color: var(--navy); }
.form input, .form textarea {
    padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
    font-family: inherit; font-size: 15px; color: var(--ink); background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.form input:focus, .form textarea:focus {
    outline: 0; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15);
}
.form button { align-self: flex-start; }

/* ============ notes ============ */
.note {
    background: var(--blue-soft); border: 1px solid #C9D9F8; color: var(--navy);
    border-radius: 11px; padding: 14px 18px; margin-bottom: 24px; font-size: 14.5px;
}
.note-ok { background: var(--ok-bg); border-color: #B7E4CC; color: var(--ok); font-weight: 700; }
.note-err { background: var(--err-bg); border-color: #F3C2BC; color: var(--err); }
.note-soon { background: var(--warn-bg); border-color: #F0DFAE; color: var(--warn); font-weight: 700; }

/* ============ pricing table ============ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 28px; }
.pricing-table { width: 100%; border-collapse: collapse; background: #fff; min-width: 640px; }
.pricing-table th {
    background: var(--navy); color: #fff; font-size: 14px; font-weight: 800;
    padding: 13px 18px; text-align: start;
}
.pricing-table td { padding: 13px 18px; border-top: 1px solid var(--line); font-size: 14.5px; }
.pricing-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.pricing-table td a { color: var(--blue); font-weight: 700; }
.td-price { font-weight: 800; color: var(--navy); white-space: nowrap; }
.pricing-custom { text-align: center; }
.pricing-custom h3 { font-size: 21px; font-weight: 900; color: var(--navy); margin-bottom: 8px; }
.pricing-custom p { color: var(--muted); max-width: 560px; margin: 0 auto 18px; }

/* ============ footer ============ */
.footer { background: var(--navy); color: #B9C4DC; margin-top: 40px; }
.footer-in { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; padding: 52px 20px 36px; }
.footer-brand p { margin-top: 14px; font-size: 14.5px; max-width: 340px; }
.footer-col h4 { color: #fff; font-size: 15px; font-weight: 800; margin-bottom: 14px; }
.footer-col a { display: block; padding: 5px 0; font-size: 14px; color: #B9C4DC; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 20px; font-size: 13.5px; color: #8694B5; }

/* ============ responsive ============ */
@media (max-width: 960px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .product-head { grid-template-columns: 1fr; }
    .footer-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
    .nav {
        display: none; position: absolute; top: 68px; inset-inline: 0;
        background: #fff; flex-direction: column; padding: 12px 20px 18px;
        border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    }
    .nav.open { display: flex; }
    .burger { display: block; }
    /* mobile header: lang-switch LEFT, logo CENTER, burger RIGHT (both languages) */
    .topbar-in { position: relative; justify-content: space-between; gap: 12px; }
    .topbar-actions { display: contents; }
    .lang-switch { order: -1; }
    .burger { order: 1; }
    .brand { position: absolute; left: 50%; transform: translateX(-50%); }
    .grid-3, .grid-2, .form-row, .features-2col { grid-template-columns: 1fr; }
    .numbers-in { grid-template-columns: 1fr; gap: 22px; }
    .hero-in { padding: 60px 20px 68px; }
    .hero-lines { display: none; }
    .cta-band-in { flex-direction: column; text-align: center; }
    .footer-in { grid-template-columns: 1fr; }
}
