:root {
    --bg-main: #050816;
    --bg-secondary: #0b1220;
    --card-bg: #101827;
    --accent: #fbbf24;
    --accent-soft: rgba(251, 191, 36, 0.12);
    --accent-strong: #f59e0b;
    --text-main: #f9fafb;
    --text-muted: #9ca3af;
    --border-subtle: rgba(148, 163, 184, 0.35);
    --radius-lg: 1.5rem;
    --radius-xl: 2rem;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.7);
    --max-width: 1200px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top, #111827 0, #020617 40%, #000 100%);
    color: var(--text-main);
    scroll-behavior: smooth;
}

body { min-height: 100vh; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

.shell {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* اللغات */
[data-lang] { display: none; }
.lang-en [data-lang="en"],
.lang-fr [data-lang="fr"],
.lang-ar [data-lang="ar"] { display: inline; }
.lang-ar body, .lang-ar .page { direction: rtl; }

/* HEADER */
header {
    position: sticky;
    top: 0;
    z-index: 40;
    backdrop-filter: blur(18px);
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-badge {
    width: 42px; height: 42px; border-radius: 999px;
    background: radial-gradient(circle at 30% 20%, #facc15, #f97316, #111827);
    border: 1px solid rgba(248, 250, 252, 0.28);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.9), 0 18px 45px rgba(0, 0, 0, 0.9);
    font-weight: 800; font-size: 0.9rem; letter-spacing: 0.07em; text-transform: uppercase;
}
.brand-text-main { font-weight: 700; font-size: 1.02rem; }
.brand-text-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.16em;
}
.nav-middle { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 1.5rem; font-size: 0.88rem; }

.nav-links a {
    color: var(--text-muted);
    padding-bottom: 0.15rem;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.nav-links a:hover {
    color: var(--text-main);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.nav-cta {
    display: inline-flex; align-items: center; gap: 0.4rem;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(251, 191, 36, 0.35);
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.16), rgba(15, 23, 42, 0.9));
    font-size: 0.83rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--accent);
}
.nav-cta span.dot {
    width: 7px; height: 7px; border-radius: 999px;
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.22);
}

.nav-right { display: flex; align-items: center; gap: 0.8rem; }

.lang-switcher {
    display: flex; align-items: center; gap: 0.35rem;
    padding: 0.25rem 0.5rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.65);
    background: rgba(15, 23, 42, 0.9);
}
.lang-switcher span {
    font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--text-muted);
}
.lang-btn {
    border: none; outline: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.78rem; font-weight: 600;
    padding: 0.2rem 0.45rem;
    border-radius: 999px;
}
.lang-btn.active {
    background: var(--accent);
    color: #111827;
}

/* Mobile nav */
.nav-toggle { display: none; }
.nav-toggle-label {
    display: none;
    width: 34px; height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    align-items: center; justify-content: center;
    cursor: pointer;
}
.nav-toggle-label span {
    width: 16px; height: 2px;
    background: var(--text-main);
    position: relative;
}
.nav-toggle-label span::before,
.nav-toggle-label span::after {
    content: "";
    position: absolute; left: 0;
    width: 16px; height: 2px;
    background: var(--text-main);
}
.nav-toggle-label span::before { top: -5px; }
.nav-toggle-label span::after { top: 5px; }

@media (max-width: 900px) {
    .nav-middle { display: none; }
    .nav-toggle-label { display: inline-flex; }
    .nav { justify-content: space-between; }
}
@media (max-width: 768px) {
    .nav-middle { position: relative; }
    .nav-links {
        position: absolute;
        inset-inline: 0;
        top: 48px;
        flex-direction: column;
        align-items: flex-start;
        padding: 0.8rem 1rem;
        background: rgba(15, 23, 42, 0.98);
        border-radius: 1.1rem;
        border: 1px solid rgba(148, 163, 184, 0.5);
        box-shadow: var(--shadow-soft);
        transform-origin: top right;
        transform: scale(0.95);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }
    .nav-toggle:checked + .nav-toggle-label + .nav-middle .nav-links {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1);
    }
}

/* HERO */
.hero { padding: 3.5rem 0 3rem; }
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.6fr);
    align-items: center;
    gap: 2.5rem;
}
@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); }
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 0.55rem;
    padding: 0.25rem 0.7rem 0.25rem 0.3rem;
    border-radius: 999px;
    background: radial-gradient(circle at left, rgba(251, 191, 36, 0.25), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent-strong);
    margin-bottom: 1.2rem;
}
.eyebrow-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px;
    border-radius: 999px;
    background: #facc15;
    color: #111827;
    font-weight: 800; font-size: 0.7rem;
}
.hero-title {
    font-size: clamp(2.1rem, 4vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 0 0 0.9rem;
}
.hero-title .highlight {
    background: linear-gradient(to right, #facc15, #f97316);
    -webkit-background-clip: text;
    color: transparent;
}
.hero-subtitle {
    max-width: 34rem;
    font-size: 0.98rem;
    color: var(--text-muted);
    line-height: 1.7;
}
.hero-actions {
    display: flex; flex-wrap: wrap;
    gap: 0.85rem;
    margin: 1.7rem 0 1.3rem;
}
.btn-primary, .btn-ghost {
    display: inline-flex; align-items: center; justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.3rem;
    border-radius: 999px;
    font-size: 0.9rem; font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #111827;
    box-shadow: 0 14px 35px rgba(249, 115, 22, 0.55);
}
.btn-ghost {
    background: rgba(15, 23, 42, 0.85);
    color: var(--text-main);
    border-color: rgba(148, 163, 184, 0.6);
}
.hero-meta {
    display: flex; flex-wrap: wrap;
    gap: 1.1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}
.hero-meta .label {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
}

/* Machinery card (كما في النسخة السابقة) */
.hero-card {
    border-radius: var(--radius-xl);
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.18), #020617);
    border: 1px solid rgba(148, 163, 184, 0.5);
    box-shadow: var(--shadow-soft);
    padding: 1.6rem 1.5rem 1.5rem;
    position: relative;
}
.hero-card-header {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.hero-card-title { font-size: 0.95rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.hero-card-subtitle { font-size: 1.05rem; font-weight: 600; }
.loyol-badge {
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: #111827;
    border: 1px solid rgba(156, 163, 175, 0.7);
    font-size: 0.75rem;
    display: flex; align-items: center; gap: 0.35rem;
}
.loyol-badge .dot {
    width: 8px; height: 8px;
    border-radius: 999px;
    background: #22c55e;
}
.hero-card-body {
    margin-top: 1.4rem;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.1fr);
    gap: 1.1rem;
}
.hero-machinery {
    position: relative;
    border-radius: 1.3rem;
    background: radial-gradient(circle at top, #111827, #020617);
    border: 1px solid rgba(148, 163, 184, 0.55);
    padding: 0.9rem;
    overflow: hidden;
}
.hero-machinery-road {
    width: 180%;
    height: 40px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.7), rgba(75, 85, 99, 0.9));
    position: absolute;
    left: -40%; bottom: 16px;
}
.hero-machinery-loader {
    position: relative;
    width: 90%; max-width: 210px;
    margin: 0.3rem auto 0;
}
.hero-machinery-loader-main {
    width: 100%; height: 98px;
    border-radius: 1.1rem;
    background: linear-gradient(135deg, #facc15, #f97316);
    box-shadow: 0 16px 40px rgba(249, 115, 22, 0.8);
    position: relative;
}
.hero-machinery-cabin {
    position: absolute; left: 12%; top: -22px;
    width: 42%; height: 38px;
    border-radius: 14px;
    background: linear-gradient(to right, #111827, #020617);
}
.hero-machinery-glass {
    position: absolute; inset: 5px;
    border-radius: 10px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.5), rgba(15, 23, 42, 0.9));
}
.hero-machinery-boom {
    position: absolute; right: -12px; top: -8px;
    width: 60px; height: 16px;
    border-radius: 12px;
    background: linear-gradient(90deg, #fcd34d, #f97316);
    transform: rotate(-10deg);
}
.hero-machinery-bucket {
    position: absolute; right: -18px; top: 12px;
    width: 38px; height: 26px;
    border-radius: 8px;
    background: #fbbf24;
}
.hero-machinery-wheel {
    position: absolute; bottom: -16px;
    width: 46px; height: 46px;
    border-radius: 999px;
    background: #020617;
    border: 5px solid #111827;
}
.hero-machinery-wheel::after {
    content: ""; position: absolute; inset: 10px;
    border-radius: 999px; background: #fbbf24;
}
.hero-machinery-wheel--front { right: 16px; }
.hero-machinery-wheel--back { left: 16px; }

.hero-card-body-right {
    display: flex; flex-direction: column; gap: 0.7rem;
}
.metric-pill {
    padding: 0.35rem 0.8rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.6);
    background: rgba(15, 23, 42, 0.85);
    font-size: 0.73rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--text-muted);
}
.metric-pill strong { color: var(--accent); }
.hero-checklist { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.82rem; color: var(--text-muted); }
.hero-checklist-item { display: flex; align-items: flex-start; gap: 0.4rem; }
.hero-check-icon {
    margin-top: 0.08rem;
    width: 16px; height: 16px;
    border-radius: 999px;
    background: var(--accent-soft);
    border: 1px solid rgba(251, 191, 36, 0.7);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.72rem; color: var(--accent);
}

/* Sections */
section { padding: 2.5rem 0; }
.section-header { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 1.8rem; }
.section-eyebrow {
    font-size: 0.78rem; text-transform: uppercase;
    letter-spacing: 0.2em; color: var(--accent);
}
.section-title { font-size: 1.4rem; letter-spacing: -0.02em; }
.section-description { font-size: 0.95rem; color: var(--text-muted); max-width: 34rem; }

/* Profile */
.profile-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(148, 163, 184, 0.25), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 1.6rem 1.5rem;
    box-shadow: var(--shadow-soft);
}
.profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 2.4fr) minmax(0, 1.6fr);
    gap: 1.8rem;
}
@media (max-width: 900px) {
    .profile-grid { grid-template-columns: minmax(0, 1fr); }
}
.profile-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.8;
}
.profile-tag-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.7rem;
    margin-top: 1.5rem;
}
.tag-pill {
    padding: 0.55rem 0.7rem;
    border-radius: 0.9rem;
    border: 1px solid rgba(148, 163, 184, 0.55);
    font-size: 0.8rem;
    color: var(--text-muted);
    background: rgba(15, 23, 42, 0.96);
}

/* Vision & mission */
.vision-mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
}
.vm-card {
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 1.3rem 1.2rem 1.4rem;
}
.vm-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.vm-title { font-weight: 600; margin-bottom: 0.5rem; }
.vm-body {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Services */
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.3rem;
}
.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.08), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(148, 163, 184, 0.6);
    padding: 1.1rem 1.1rem 1.2rem;
}
.service-card::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 60%);
    opacity: 0;
    transition: opacity 0.25s ease;
}
.service-card:hover::before { opacity: 1; }
.service-tag {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.service-title { font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; }
.service-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }

/* Why us */
.why-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.6fr);
    gap: 1.8rem;
}
@media (max-width: 900px) {
    .why-grid { grid-template-columns: minmax(0, 1fr); }
}
.why-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
}
.why-card {
    border-radius: 1.1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 1rem 1rem 1.1rem;
}
.why-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent);
    margin-bottom: 0.3rem;
}
.why-title { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.35rem; }
.why-body { font-size: 0.88rem; color: var(--text-muted); line-height: 1.6; }
.badge-stack {
    display: flex; flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1.1rem;
}
.badge {
    font-size: 0.75rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.7);
    color: var(--text-muted);
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.6fr);
    gap: 1.7rem;
}
@media (max-width: 900px) {
    .contact-grid { grid-template-columns: minmax(0, 1fr); }
}
.contact-card {
    border-radius: var(--radius-lg);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    padding: 1.4rem 1.3rem 1.6rem;
}
.contact-field-label {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.contact-field-value { font-size: 0.9rem; margin-bottom: 0.8rem; }
.contact-field-value a { color: var(--accent); }
.contact-field-value a:hover { text-decoration: underline; }
.contact-note { font-size: 0.85rem; color: var(--text-muted); margin-top: 0.7rem; }
.contact-cta { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.7rem; }

/* Security card */
.security-card {
    border-radius: var(--radius-lg);
    background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.12), rgba(15, 23, 42, 0.98));
    border: 1px solid rgba(52, 211, 153, 0.6);
    padding: 1.4rem 1.3rem 1.5rem;
    font-size: 0.86rem;
    color: var(--text-muted);
}
.security-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #bbf7d0;
}
.security-list {
    list-style: none;
    padding: 0;
    margin: 0.3rem 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}
.security-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
}
.security-bullet {
    margin-top: 0.15rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #22c55e;
}

/* Footer */
footer {
    border-top: 1px solid rgba(148, 163, 184, 0.35);
    padding: 1rem 0 1.3rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    align-items: center;
    justify-content: space-between;
}
.footer-links { display: flex; gap: 1rem; }
.footer-links span { color: var(--text-muted); }

@media (max-width: 640px) {
    .hero { padding-top: 2.5rem; }
}
