/* =========================================================
   ضمان المتحدة — تصميم الصفحة الرئيسية
   ملف مستقل، لا يعتمد على قالب scrapcar / Bootstrap
   ========================================================= */

:root {
    --brand: #f36c31;
    --brand-600: #e0561a;
    --brand-700: #c04512;
    --brand-soft: #fff2ec;

    --ink: #0d1520;
    --ink-800: #16212f;
    --ink-700: #24313f;
    --body: #46525f;
    --muted: #78838f;

    --line: #e7eaef;
    --line-soft: #f0f2f5;
    --surface: #ffffff;
    --surface-soft: #f7f8fa;

    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 22px;

    --shadow-sm: 0 1px 2px rgba(13, 21, 32, .06), 0 2px 8px rgba(13, 21, 32, .04);
    --shadow: 0 4px 12px rgba(13, 21, 32, .07), 0 12px 32px rgba(13, 21, 32, .07);
    --shadow-lg: 0 10px 24px rgba(13, 21, 32, .1), 0 30px 60px rgba(13, 21, 32, .12);

    --container: 1180px;
    --header-h: 76px;

    --font: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.ua-page {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.75;
    color: var(--body);
    background: var(--surface);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.ua-page h1, .ua-page h2, .ua-page h3, .ua-page h4 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: -.01em;
}

.ua-page p { margin: 0; }
.ua-page ul { margin: 0; padding: 0; list-style: none; }
.ua-page img, .ua-page svg, .ua-page video { max-width: 100%; display: block; }

.ua-page a {
    color: inherit;
    text-decoration: none;
    transition: color .18s ease;
}

.ua-page button { font-family: inherit; }

.ua-page :focus-visible {
    outline: 3px solid rgba(243, 108, 49, .45);
    outline-offset: 3px;
    border-radius: 6px;
}

/* ---------- Layout ---------- */
.ua-container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.ua-section { padding: 96px 0; }
.ua-section--soft { background: var(--surface-soft); }
.ua-section--tight { padding: 72px 0; }

.ua-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}

.ua-eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .06em;
    color: var(--brand-600);
    background: var(--brand-soft);
    border-radius: 999px;
    padding: 6px 16px;
    margin-bottom: 18px;
}

.ua-head h2 {
    font-size: clamp(28px, 3.4vw, 40px);
    margin-bottom: 14px;
}

.ua-head p {
    font-size: 17px;
    color: var(--muted);
}

/* ---------- Buttons ---------- */
.ua-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 15px 28px;
    border-radius: 999px;
    border: 1.5px solid transparent;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease;
}

.ua-btn svg { width: 18px; height: 18px; flex: none; }

.ua-btn--primary {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 6px 18px rgba(243, 108, 49, .32);
}
.ua-btn--primary:hover {
    background: var(--brand-600);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(243, 108, 49, .4);
}

.ua-btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line);
}
.ua-btn--ghost:hover { border-color: var(--ink); color: var(--ink); }

.ua-btn--light {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border-color: rgba(255, 255, 255, .3);
    backdrop-filter: blur(6px);
}
.ua-btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.ua-btn--sm { padding: 11px 20px; font-size: 14px; }

/* =========================================================
   Header
   ========================================================= */
.ua-header {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(255, 255, 255, .92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.ua-header.is-stuck {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.ua-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 28px;
}

.ua-logo { flex: none; }
.ua-logo img { height: 44px; width: auto; }

.ua-nav { margin-inline-end: auto; }

.ua-nav ul {
    display: flex;
    align-items: center;
    gap: 4px;
}

.ua-nav a {
    display: block;
    position: relative;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-700);
    border-radius: var(--radius-sm);
}

.ua-nav a::after {
    content: '';
    position: absolute;
    inset-inline: 14px;
    bottom: 4px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transition: transform .2s ease;
}

.ua-nav a:hover { color: var(--brand-600); }
.ua-nav a:hover::after,
.ua-nav a.is-active::after { transform: scaleX(1); }
.ua-nav a.is-active { color: var(--brand-600); }

.ua-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: none;
}

.ua-hello {
    font-size: 14px;
    font-weight: 600;
    color: var(--muted);
}
.ua-hello strong { color: var(--ink); font-weight: 700; }

.ua-burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: var(--radius-sm);
    cursor: pointer;
    align-items: center;
    justify-content: center;
}
.ua-burger span {
    display: block;
    position: relative;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
}
.ua-burger span::before,
.ua-burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--ink);
    transition: transform .22s ease, top .22s ease;
}
.ua-burger span::before { top: -6px; }
.ua-burger span::after { top: 6px; }

.ua-burger.is-open span { background: transparent; }
.ua-burger.is-open span::before { top: 0; transform: rotate(45deg); }
.ua-burger.is-open span::after { top: 0; transform: rotate(-45deg); }

/* Mobile drawer */
.ua-drawer {
    display: none;
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 16px 0 24px;
}
.ua-drawer.is-open { display: block; }

.ua-drawer ul { display: grid; gap: 2px; margin-bottom: 16px; }
.ua-drawer a {
    display: block;
    padding: 12px 14px;
    font-size: 16px;
    font-weight: 600;
    color: var(--ink-700);
    border-radius: var(--radius-sm);
}
.ua-drawer a:hover { background: var(--surface-soft); color: var(--brand-600); }
.ua-drawer .ua-drawer__actions { display: grid; gap: 10px; }
.ua-drawer .ua-btn { width: 100%; }

/* =========================================================
   Hero
   ========================================================= */
.ua-hero {
    position: relative;
    isolation: isolate;
    padding: 104px 0 96px;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}

.ua-hero__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    transform: scale(1.04);
}

.ua-hero__scrim {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to left, rgba(13, 21, 32, .95) 0%, rgba(13, 21, 32, .88) 42%, rgba(13, 21, 32, .55) 75%, rgba(13, 21, 32, .45) 100%),
        linear-gradient(to top, rgba(13, 21, 32, .9), rgba(13, 21, 32, .2));
}

.ua-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
    gap: 56px;
    align-items: center;
}

.ua-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: #ffd9c6;
    background: rgba(243, 108, 49, .16);
    border: 1px solid rgba(243, 108, 49, .35);
    border-radius: 999px;
    padding: 7px 16px;
    margin-bottom: 24px;
}
.ua-hero__badge svg { width: 15px; height: 15px; }

.ua-hero h1 {
    color: #fff;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.2;
    margin-bottom: 20px;
}
.ua-hero h1 em {
    font-style: normal;
    color: var(--brand);
}

.ua-hero__lede {
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.85;
    color: rgba(255, 255, 255, .78);
    max-width: 560px;
    margin-bottom: 34px;
}

.ua-hero__trust {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 26px;
    margin-top: 34px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, .14);
}
.ua-hero__trust li {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 14.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, .85);
}
.ua-hero__trust svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--brand);
}

/* VIN card */
.ua-vin {
    background: rgba(255, 255, 255, .07);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--radius-lg);
    padding: 32px;
    backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}

.ua-vin h2 {
    color: #fff;
    font-size: 21px;
    margin-bottom: 6px;
}

.ua-vin__sub {
    font-size: 14.5px;
    color: rgba(255, 255, 255, .65);
    margin-bottom: 24px;
}

.ua-vin__field { margin-bottom: 14px; }

.ua-vin label {
    display: block;
    font-size: 13.5px;
    font-weight: 700;
    color: rgba(255, 255, 255, .8);
    margin-bottom: 9px;
}

.ua-vin__input {
    position: relative;
    display: flex;
    align-items: center;
}

.ua-vin__input svg {
    position: absolute;
    inset-inline-start: 16px;
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, .45);
    pointer-events: none;
}

.ua-vin input[type="text"] {
    width: 100%;
    height: 56px;
    padding-inline: 48px 18px;
    font-family: var(--font);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: .08em;
    color: #fff;
    background: rgba(13, 21, 32, .55);
    border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: var(--radius);
    transition: border-color .18s ease, background-color .18s ease;
}
.ua-vin input[type="text"]::placeholder {
    color: rgba(255, 255, 255, .35);
    font-weight: 500;
    letter-spacing: .05em;
}
.ua-vin input[type="text"]:focus {
    outline: none;
    border-color: var(--brand);
    background: rgba(13, 21, 32, .8);
}

.ua-vin__hint {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
    margin-bottom: 22px;
}
.ua-vin__hint svg { width: 15px; height: 15px; flex: none; margin-top: 4px; }

.ua-vin .ua-btn { width: 100%; padding-block: 17px; font-size: 16px; }

.ua-vin__note {
    margin-top: 16px;
    font-size: 12.5px;
    text-align: center;
    color: rgba(255, 255, 255, .5);
}
.ua-vin__note a { color: rgba(255, 255, 255, .85); text-decoration: underline; }
.ua-vin__note a:hover { color: var(--brand); }

/* =========================================================
   Stats band
   ========================================================= */
.ua-stats {
    background: var(--ink-800);
    padding: 0;
}

.ua-stats ul {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.ua-stats li {
    padding: 44px 28px;
    text-align: center;
    border-inline-start: 1px solid rgba(255, 255, 255, .09);
}
.ua-stats li:first-child { border-inline-start: 0; }

.ua-stats__num {
    display: block;
    font-size: clamp(30px, 3.6vw, 44px);
    font-weight: 800;
    line-height: 1.2;
    color: var(--brand);
    margin-bottom: 4px;
}

.ua-stats__label {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 4px;
}

.ua-stats__desc {
    font-size: 13.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, .55);
}

/* =========================================================
   Steps
   ========================================================= */
.ua-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    position: relative;
}

.ua-step {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 36px 30px 32px;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.ua-step:hover {
    transform: translateY(-4px);
    border-color: transparent;
    box-shadow: var(--shadow);
}

.ua-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--brand-soft);
    color: var(--brand-600);
    font-size: 19px;
    font-weight: 800;
    margin-bottom: 20px;
}

.ua-step h3 { font-size: 19px; margin-bottom: 10px; }
.ua-step p { font-size: 15px; color: var(--muted); }

/* =========================================================
   Report checks grid
   ========================================================= */
.ua-checks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 18px;
}

.ua-check {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ua-check:hover {
    border-color: rgba(243, 108, 49, .45);
    box-shadow: 0 6px 18px rgba(243, 108, 49, .12);
    transform: translateY(-2px);
}

.ua-check__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: var(--brand-soft);
    color: var(--brand-600);
}
.ua-check__icon svg { width: 22px; height: 22px; }

.ua-check span {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--ink-700);
    line-height: 1.5;
}

/* =========================================================
   Split (video)
   ========================================================= */
.ua-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 60px;
    align-items: center;
}

.ua-split h2 {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 18px;
}

.ua-split p {
    font-size: 16.5px;
    line-height: 1.9;
    color: var(--muted);
    margin-bottom: 26px;
}

.ua-bullets { display: grid; gap: 14px; margin-bottom: 32px; }
.ua-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15.5px;
    font-weight: 600;
    color: var(--ink-700);
}
.ua-bullets svg {
    width: 21px;
    height: 21px;
    flex: none;
    margin-top: 3px;
    color: var(--brand);
}

.ua-media {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--ink);
}
.ua-media video { width: 100%; height: auto; display: block; }

/* =========================================================
   CTA band
   ========================================================= */
.ua-cta {
    position: relative;
    isolation: isolate;
    padding: 88px 0;
    background: var(--ink);
    color: #fff;
    overflow: hidden;
}

.ua-cta__bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: .28;
}
.ua-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(to left, rgba(13, 21, 32, .95), rgba(13, 21, 32, .78));
}

.ua-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}

.ua-cta h2 {
    color: #fff;
    font-size: clamp(26px, 3.2vw, 38px);
    max-width: 620px;
    margin-bottom: 12px;
}

.ua-cta p {
    font-size: 16.5px;
    color: rgba(255, 255, 255, .72);
    max-width: 560px;
}

.ua-cta__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* =========================================================
   FAQ
   ========================================================= */
.ua-faq {
    max-width: 840px;
    margin-inline: auto;
    display: grid;
    gap: 14px;
}

.ua-faq__item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: border-color .2s ease, box-shadow .2s ease;
}
.ua-faq__item.is-open {
    border-color: rgba(243, 108, 49, .4);
    box-shadow: var(--shadow-sm);
}

.ua-faq__q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px 24px;
    background: transparent;
    border: 0;
    text-align: start;
    font-family: var(--font);
    font-size: 16.5px;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    line-height: 1.6;
}
.ua-faq__q:hover { color: var(--brand-600); }

.ua-faq__q i {
    position: relative;
    width: 22px;
    height: 22px;
    flex: none;
    border-radius: 50%;
    background: var(--brand-soft);
    transition: background-color .2s ease, transform .25s ease;
}
.ua-faq__q i::before,
.ua-faq__q i::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 2px;
    border-radius: 2px;
    background: var(--brand-600);
    transform: translate(-50%, -50%);
    transition: transform .25s ease;
}
.ua-faq__q i::after { transform: translate(-50%, -50%) rotate(90deg); }
.ua-faq__item.is-open .ua-faq__q i::after { transform: translate(-50%, -50%) rotate(0deg); }

.ua-faq__a {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .28s ease;
}
.ua-faq__item.is-open .ua-faq__a { grid-template-rows: 1fr; }

.ua-faq__a > div { overflow: hidden; }
.ua-faq__a p {
    padding: 0 24px 22px;
    font-size: 15.5px;
    line-height: 1.9;
    color: var(--muted);
}

/* =========================================================
   Footer
   ========================================================= */
.ua-footer {
    background: var(--ink);
    color: rgba(255, 255, 255, .68);
    padding: 68px 0 0;
}

.ua-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 48px;
    padding-bottom: 48px;
}

.ua-footer__brand img {
    height: 52px;
    width: auto;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 20px;
}

.ua-footer__brand p {
    font-size: 15px;
    line-height: 1.9;
    max-width: 380px;
}

.ua-footer h3 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
}

.ua-footer__links { display: grid; gap: 11px; }
.ua-footer__links a { font-size: 15px; color: rgba(255, 255, 255, .68); }
.ua-footer__links a:hover { color: var(--brand); }

.ua-pay {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.ua-pay li {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    min-width: 58px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 8px;
}
.ua-pay img { max-height: 26px; width: auto; }

.ua-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    padding: 24px 0 28px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    font-size: 14px;
}
.ua-footer__bottom a:hover { color: var(--brand); }
.ua-footer__bottom nav { display: flex; gap: 20px; }

/* =========================================================
   Reveal on scroll
   ========================================================= */
.ua-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .6s ease, transform .6s ease;
}
.ua-reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
    .ua-nav, .ua-header__actions .ua-btn--ghost, .ua-hello { display: none; }
    .ua-burger { display: inline-flex; }
    .ua-header__actions { margin-inline-start: auto; }

    .ua-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .ua-hero__lede { max-width: none; }
    .ua-split { grid-template-columns: 1fr; gap: 40px; }
    .ua-steps { grid-template-columns: 1fr; }
    .ua-footer__grid { grid-template-columns: 1fr 1fr; }
    .ua-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
    .ua-section { padding: 68px 0; }
    .ua-section--tight { padding: 56px 0; }
    .ua-container { padding-inline: 18px; }

    .ua-hero { padding: 64px 0 72px; }
    .ua-vin { padding: 24px 20px; }

    .ua-stats ul { grid-template-columns: 1fr; }
    .ua-stats li {
        border-inline-start: 0;
        border-top: 1px solid rgba(255, 255, 255, .09);
        padding: 32px 20px;
    }
    .ua-stats li:first-child { border-top: 0; }

    .ua-checks { grid-template-columns: 1fr; }
    .ua-head { margin-bottom: 40px; }

    .ua-cta { padding: 64px 0; }
    .ua-cta__inner { flex-direction: column; align-items: flex-start; }

    .ua-footer__grid { grid-template-columns: 1fr; gap: 36px; }
    .ua-footer__bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .ua-page *, .ua-page *::before, .ua-page *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
    .ua-reveal { opacity: 1; transform: none; }
}
