/* ==========================================================================
   شركة رواد تجميع المعادن — ورقة الأنماط الرئيسية
   هوية صناعية: فحمي داكن + رمادي معدني + ذهبي كلون تمييز.
   ========================================================================== */

/* ---------- الخطوط (مستضافة محليًا) ---------- */
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/tajawal-400-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08E3-08FF,
                   U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/tajawal-400-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/tajawal-500-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08E3-08FF,
                   U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/tajawal-500-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/tajawal-700-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08E3-08FF,
                   U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/tajawal-700-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/tajawal-800-arabic.woff2') format('woff2');
    unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+08E3-08FF,
                   U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
    font-family: 'Tajawal';
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url('../fonts/tajawal-800-latin.woff2') format('woff2');
    unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF, U+FFFD;
}

/* ---------- المتغيرات ---------- */
:root {
    --ink: #0b0f14;
    --ink-2: #0e141b;
    --panel: #111922;
    --steel: #131b24;
    --surface: rgba(255, 255, 255, .035);
    --line: rgba(255, 255, 255, .09);
    --line-strong: rgba(255, 255, 255, .17);

    --gold: #d99a1f;
    --gold-soft: #ecb955;
    --gold-deep: #a97008;

    --text: #eef2f6;
    --muted: #97a3af;

    --shell: 1200px;
    --header-h: 78px;
    --radius: 16px;
    --radius-sm: 12px;

    --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- إعادة ضبط ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--ink);
    color: var(--text);
    font-family: 'Tajawal', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.95;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img,
svg { display: block; max-width: 100%; }

img { height: auto; }

h1, h2, h3 {
    margin: 0;
    font-weight: 800;
    line-height: 1.32;
    letter-spacing: -.01em;
}

p { margin: 0 0 1.1rem; }

p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    inset-inline-start: 50%;
    top: -100px;
    z-index: 200;
    padding: .7rem 1.4rem;
    background: var(--gold);
    color: #14100a;
    font-weight: 700;
    border-radius: 0 0 10px 10px;
    transform: translateX(50%);
    transition: top .2s var(--ease);
}

.skip-link:focus { top: 0; }

.shell {
    width: min(100% - 2.5rem, var(--shell));
    margin-inline: auto;
}

.gold { color: var(--gold); }

/* ---------- الأزرار ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .95rem 1.75rem;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .25s var(--ease), background-color .25s var(--ease),
                border-color .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}

.btn__icon { width: 1.25em; height: 1.25em; flex: none; }

.btn--gold {
    background: linear-gradient(180deg, var(--gold-soft), var(--gold));
    color: #170f02;
    box-shadow: 0 10px 26px -12px rgba(217, 154, 31, .8);
}

.btn--gold:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px -12px rgba(217, 154, 31, .95);
}

.btn--ghost {
    border-color: var(--line-strong);
    color: var(--text);
    background: rgba(255, 255, 255, .04);
    backdrop-filter: blur(6px);
}

.btn--ghost:hover {
    border-color: var(--gold);
    color: var(--gold-soft);
    transform: translateY(-2px);
}

.btn--sm { padding: .68rem 1.25rem; font-size: .93rem; }

.btn--lg { padding: 1.1rem 2.3rem; font-size: 1.06rem; }

/* ---------- الترويسة ---------- */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    transition: background-color .35s var(--ease), box-shadow .35s var(--ease),
                border-color .35s var(--ease);
    border-bottom: 1px solid transparent;
    background: linear-gradient(180deg, rgba(11, 15, 20, .78), rgba(11, 15, 20, 0));
}

.site-header.is-stuck {
    background: rgba(10, 14, 19, .88);
    backdrop-filter: blur(14px) saturate(140%);
    border-bottom-color: var(--line);
    box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .9);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    height: var(--header-h);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    flex: none;
}

.brand__mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, .6));
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }

.brand__name { font-weight: 800; font-size: 1.16rem; letter-spacing: -.02em; }

.brand__sub {
    font-size: .74rem;
    font-weight: 500;
    color: var(--gold);
    letter-spacing: .08em;
}

.nav__list { display: flex; align-items: center; gap: .35rem; }

.nav__link {
    position: relative;
    display: block;
    padding: .5rem .8rem;
    font-size: .95rem;
    font-weight: 500;
    color: #c3ccd6;
    border-radius: 8px;
    transition: color .25s var(--ease);
}

.nav__link::after {
    content: '';
    position: absolute;
    inset-inline: .8rem;
    bottom: .18rem;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: inline-start;
    transition: transform .3s var(--ease);
}

.nav__link:hover,
.nav__link.is-active { color: #fff; }

.nav__link:hover::after,
.nav__link.is-active::after { transform: scaleX(1); }

.site-header__actions { display: flex; align-items: center; gap: .6rem; }

.burger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 0;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
}

.burger__bar {
    display: block;
    width: 19px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s var(--ease);
}

.burger.is-open .burger__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open .burger__bar:nth-child(2) { opacity: 0; }
.burger.is-open .burger__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- القسم الرئيسي (Hero) ---------- */
.hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: min(100svh, 900px);
    padding-block: calc(var(--header-h) + 4rem) clamp(3.5rem, 8vh, 6rem);
    overflow: hidden;
    isolation: isolate;
}

.hero__media { position: absolute; inset: 0; z-index: -2; }

.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to left, rgba(8, 11, 15, .96) 0%, rgba(8, 11, 15, .9) 30%,
                        rgba(8, 11, 15, .58) 62%, rgba(8, 11, 15, .34) 100%),
        linear-gradient(to top, rgba(8, 11, 15, .96) 4%, rgba(8, 11, 15, 0) 45%);
}

.hero__inner { position: relative; max-width: 44rem; }

.hero__title {
    margin-block: .9rem 1.2rem;
    font-size: clamp(2.15rem, 6.2vw, 4.15rem);
    line-height: 1.2;
    text-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.hero__lead {
    max-width: 37rem;
    text-wrap: pretty;
    font-size: clamp(1.02rem, 1.5vw, 1.18rem);
    color: #cbd4dd;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
    margin-top: 1.9rem;
}

.hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 2.6rem;
    padding-top: 1.9rem;
    border-top: 1px solid var(--line);
}

.chip {
    padding: .42rem 1.05rem;
    font-size: .87rem;
    font-weight: 500;
    color: #d6dee6;
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--line);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.hero__scroll {
    position: absolute;
    inset-inline-start: 2.2rem;
    bottom: 2.4rem;
    display: grid;
    place-items: center;
    width: 26px;
    height: 54px;
}

.hero__scroll-line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--gold));
    animation: scroll-hint 2.4s var(--ease) infinite;
}

@keyframes scroll-hint {
    0%, 100% { opacity: .25; transform: scaleY(.55); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ---------- الأقسام العامة ---------- */
.section {
    position: relative;
    padding-block: clamp(4.5rem, 8.5vw, 8rem);
    scroll-margin-top: var(--header-h);
}

.hero { scroll-margin-top: 0; }

.section--dark { background: var(--ink); }

.section--panel {
    background: var(--ink-2);
    border-block: 1px solid var(--line);
}

.section--steel {
    background:
        radial-gradient(120% 90% at 100% 0%, rgba(217, 154, 31, .09), transparent 55%),
        linear-gradient(180deg, var(--steel), var(--ink));
    border-block: 1px solid var(--line);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: .7rem;
    margin: 0 0 .85rem;
    font-size: .87rem;
    font-weight: 700;
    letter-spacing: .1em;
    color: var(--gold);
}

.eyebrow__rule {
    width: 34px;
    height: 2px;
    background: linear-gradient(to left, var(--gold), transparent);
    flex: none;
}

.eyebrow--light { color: var(--gold-soft); }

.section__title {
    font-size: clamp(1.65rem, 3.5vw, 2.6rem);
    margin-bottom: 1.35rem;
}

.section__head { max-width: 46rem; margin-bottom: clamp(2.5rem, 4vw, 3.6rem); }

.section__intro { color: var(--muted); font-size: 1.05rem; }

.lead { font-size: clamp(1rem, 1.4vw, 1.12rem); color: #c3ccd6; }

.lead strong { color: var(--text); font-weight: 700; }

.section p:not(.lead):not(.eyebrow) { color: var(--muted); }

/* ---------- التخطيط المنقسم ---------- */
.split {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: center;
}

.split__media { min-width: 0; }

@media (min-width: 900px) {
    .split { grid-template-columns: 1.05fr .95fr; }
    .split--reverse .split__text { order: 2; }
    .split--reverse .split__media { order: 1; }
    .split--align-start { align-items: start; }
}

.framed {
    position: relative;
    margin: 0;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    box-shadow: 0 40px 70px -45px rgba(0, 0, 0, .95);
}

.framed img { width: 100%; height: 100%; object-fit: cover; }

.framed--gold::after {
    content: '';
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(217, 154, 31, .38);
    border-radius: 9px;
    pointer-events: none;
}

.tick-list { margin-top: 1.6rem; display: grid; gap: .7rem; }

.tick-list li {
    position: relative;
    padding-inline-start: 1.9rem;
    color: var(--muted);
    font-size: .98rem;
}

.tick-list li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: .78em;
    width: 9px;
    height: 9px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ---------- بطاقات الخدمات ---------- */
.cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1rem, 1.8vw, 1.5rem);
}

.card {
    position: relative;
    padding: clamp(1.6rem, 2.4vw, 2.1rem);
    background: linear-gradient(160deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .014));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform .35s var(--ease), border-color .35s var(--ease),
                background-color .35s var(--ease);
}

.card::before {
    content: '';
    position: absolute;
    inset-block-start: 0;
    inset-inline-start: 0;
    width: 46%;
    height: 2px;
    background: linear-gradient(to left, var(--gold), transparent);
    opacity: 0;
    transition: opacity .35s var(--ease);
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(217, 154, 31, .42);
}

.card:hover::before { opacity: 1; }

.card__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 1.3rem;
    border-radius: 14px;
    color: var(--gold);
    background: rgba(217, 154, 31, .1);
    border: 1px solid rgba(217, 154, 31, .24);
}

.icon { width: 26px; height: 26px; }

.card__title { font-size: 1.2rem; margin-bottom: .5rem; }

.card__text { color: var(--muted); font-size: .97rem; margin: 0; }

@media (min-width: 640px) {
    .cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1000px) {
    .cards { grid-template-columns: repeat(6, 1fr); }
    .card { grid-column: span 2; }
    .card:nth-child(4) { grid-column: 2 / span 2; }
    .card:nth-child(5) { grid-column: 4 / span 2; }
}

/* ---------- تفاصيل قسم الهدم ---------- */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem 2rem;
    margin-top: 2.2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

@media (min-width: 560px) {
    .detail-grid { grid-template-columns: repeat(2, 1fr); }
}

.detail__title {
    position: relative;
    padding-inline-start: 1rem;
    font-size: 1.03rem;
    margin-bottom: .3rem;
}

.detail__title::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: .34em;
    width: 3px;
    height: 1.15em;
    background: var(--gold);
    border-radius: 2px;
}

.detail__text { color: var(--muted); font-size: .94rem; margin: 0; }

/* ---------- خطوات المعادن ---------- */
.steps { display: grid; gap: 1.1rem; margin-top: 2.2rem; }

.step {
    display: flex;
    gap: 1.1rem;
    padding: 1.1rem 1.25rem;
    background: rgba(255, 255, 255, .035);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    transition: border-color .3s var(--ease), background-color .3s var(--ease);
}

.step:hover { border-color: rgba(217, 154, 31, .38); background: rgba(255, 255, 255, .055); }

.step__num {
    flex: none;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--gold);
    line-height: 1.6;
    font-variant-numeric: tabular-nums;
}

.step__body { display: flex; flex-direction: column; gap: .15rem; }

.step__title { font-weight: 700; line-height: 1.6; }

.step__text { color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* ---------- لماذا رواد ---------- */
.features {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(1.3rem, 2.4vw, 2.2rem);
}

@media (min-width: 720px) { .features { grid-template-columns: repeat(2, 1fr); } }

.feature {
    display: flex;
    gap: 1.1rem;
    padding-inline-start: 0;
}

.feature__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    color: var(--gold);
    background: rgba(217, 154, 31, .1);
    border: 1px solid rgba(217, 154, 31, .24);
}

.feature__title { font-size: 1.12rem; margin-bottom: .25rem; }

.feature__text { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- نداء التواصل ---------- */
.cta {
    position: relative;
    padding-block: clamp(4.5rem, 9vw, 7.5rem);
    overflow: hidden;
    isolation: isolate;
    text-align: center;
}

.cta__media { position: absolute; inset: 0; z-index: -2; }

.cta__media img { width: 100%; height: 100%; object-fit: cover; }

.cta::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(8, 11, 15, .93), rgba(8, 11, 15, .86));
}

.cta__inner { max-width: 44rem; margin-inline: auto; }

.cta__title { font-size: clamp(1.55rem, 3.4vw, 2.5rem); margin-bottom: 1rem; }

.cta__text { color: #c3ccd6; font-size: clamp(1rem, 1.4vw, 1.1rem); margin-bottom: 2.1rem; }

/* ---------- بطاقة التواصل ---------- */
.contact-card {
    padding: clamp(1.6rem, 3vw, 2.3rem);
    background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
}

.contact-card__title { font-size: 1.15rem; margin-bottom: 1.3rem; }

.contact-card__note {
    margin: 1.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: .9rem;
    color: var(--muted);
}

.contact-list { display: grid; gap: .8rem; }

.contact-item__link {
    display: flex;
    align-items: center;
    gap: .95rem;
    padding: .85rem 1rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .028);
    transition: border-color .3s var(--ease), transform .3s var(--ease);
}

a.contact-item__link:hover { border-color: rgba(217, 154, 31, .45); transform: translateY(-2px); }

.contact-item__icon {
    display: grid;
    place-items: center;
    flex: none;
    width: 42px;
    height: 42px;
    border-radius: 11px;
    color: var(--gold);
    background: rgba(217, 154, 31, .1);
}

.contact-item__icon .icon { width: 21px; height: 21px; }

.contact-item__body { display: flex; flex-direction: column; line-height: 1.55; min-width: 0; }

.contact-item__label { font-size: .8rem; color: var(--muted); }

.contact-item__value { font-weight: 700; font-size: 1.02rem; word-break: break-word; }

/* ---------- التذييل ---------- */
.site-footer {
    background: #080b0f;
    border-top: 1px solid var(--line);
    padding-top: clamp(3rem, 5vw, 4.5rem);
}

.site-footer__inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    padding-bottom: 2.5rem;
}

@media (min-width: 780px) {
    .site-footer__inner { grid-template-columns: 1.4fr 1fr; align-items: start; }
}

.site-footer__logo { width: 210px; height: auto; margin-bottom: 1rem; }

.site-footer__desc { color: var(--muted); max-width: 30rem; font-size: .96rem; }

.site-footer__heading {
    font-size: .95rem;
    letter-spacing: .06em;
    color: var(--gold);
    margin-bottom: 1rem;
}

.site-footer__nav ul { display: grid; gap: .55rem; }

.site-footer__nav a {
    color: var(--muted);
    font-size: .95rem;
    transition: color .25s var(--ease), padding-inline-start .25s var(--ease);
}

.site-footer__nav a:hover { color: var(--gold-soft); padding-inline-start: .3rem; }

.site-footer__bar {
    border-top: 1px solid var(--line);
    padding-block: 1.4rem;
}

.site-footer__bar p {
    margin: 0;
    font-size: .87rem;
    color: #6f7c89;
    text-align: center;
}

/* ---------- زر واتساب العائم ---------- */
.wa-float {
    position: fixed;
    inset-inline-end: 1.1rem;
    bottom: 1.1rem;
    z-index: 90;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .85rem;
    background: #1faa53;
    color: #fff;
    border-radius: 999px;
    box-shadow: 0 14px 34px -12px rgba(31, 170, 83, .85);
    transition: transform .25s var(--ease), background-color .25s var(--ease);
}

.wa-float:hover { transform: translateY(-3px); background: #24bd5d; }

.wa-float__icon { width: 30px; height: 30px; flex: none; }

.wa-float__label { display: none; font-weight: 700; font-size: .95rem; padding-inline-end: .5rem; }

@media (min-width: 900px) {
    .wa-float { padding: .8rem 1rem; }
    .wa-float__label { display: block; }
}

/* ---------- صفحة الخطأ ---------- */
.error-page { display: grid; place-items: center; min-height: 100svh; text-align: center; }

.error-page__inner { max-width: 34rem; padding-block: 3rem; }

.error-page__logo { width: 220px; height: auto; margin-inline: auto; margin-bottom: 2rem; }

.error-page__code { font-size: 3rem; font-weight: 800; color: var(--gold); margin: 0; line-height: 1.2; }

.error-page__title { font-size: 1.6rem; margin-bottom: .8rem; }

.error-page__text { color: var(--muted); margin-bottom: 2rem; }

/* ---------- ظهور تدريجي عند التمرير ---------- */
.js [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- الجوال ---------- */
@media (max-width: 1023px) {
    :root { --header-h: 66px; }

    .burger { display: flex; }

    .site-header__cta { display: none; }

    /* الشعار وزر القائمة يبقيان فوق طبقة القائمة حتى يمكن إغلاقها */
    .brand,
    .site-header__actions {
        position: relative;
        z-index: 100;
    }

    .nav {
        position: fixed;
        inset: 0;
        z-index: 99;
        display: grid;
        align-content: center;
        padding: 5rem 2rem 3rem;
        background: rgba(8, 11, 15, .97);
        backdrop-filter: blur(10px);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-14px);
        transition: opacity .3s var(--ease), transform .3s var(--ease), visibility .3s;
    }

    .nav.is-open { opacity: 1; visibility: visible; transform: none; }

    .nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: .35rem;
        width: min(100%, 26rem);
        margin-inline: auto;
    }

    .nav__link {
        padding: 1rem .4rem;
        font-size: 1.22rem;
        font-weight: 700;
        color: var(--text);
        border-bottom: 1px solid var(--line);
        border-radius: 0;
    }

    .nav__link::after { display: none; }

    body.is-locked { overflow: hidden; }

    .hero__scroll { display: none; }

    .hero { min-height: auto; padding-block: calc(var(--header-h) + 5rem) 4rem; }
}

@media (max-width: 420px) {
    .brand__mark { width: 38px; height: 38px; }
    .brand__name { font-size: 1.02rem; }
    .brand__sub { font-size: .68rem; }
    .btn { width: 100%; }
    .hero__actions { flex-direction: column; align-items: stretch; }
}

/* ---------- تقليل الحركة ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .js [data-reveal] { opacity: 1; transform: none; }
}
