/* ===== الموقع الرسمي للصيانة — مؤسسة خميس شافعي ===== */
:root {
    --navy: #0a2540;
    --navy-2: #12355b;
    --blue: #1e5eff;
    --blue-soft: #e8efff;
    --gold: #d4a017;
    --gold-soft: #fdf6e3;
    --bg: #f7f9fc;
    --white: #ffffff;
    --text: #0f172a;
    --muted: #5b6b82;
    --border: #e3e8f0;
    --shadow: 0 6px 24px rgba(10, 37, 64, 0.07);
    --shadow-lg: 0 20px 50px rgba(10, 37, 64, 0.14);
    --radius: 20px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.8;
    overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; }

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

/* ===== Top bar ===== */
.topbar {
    background: var(--navy);
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
}
.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-top: 8px;
    padding-bottom: 8px;
    flex-wrap: wrap;
}
.topbar span { display: inline-flex; align-items: center; gap: 6px; }
.topbar i { color: var(--gold); }

/* ===== Navigation ===== */
nav.main-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 12px rgba(10, 37, 64, 0.04);
}
.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--navy), var(--blue));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 8px 20px rgba(30, 94, 255, 0.25);
}
.logo-text strong { display: block; font-size: 19px; font-weight: 900; line-height: 1.2; color: var(--navy); }
.logo-text span { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }

.nav-menu { display: flex; gap: 4px; list-style: none; }
.nav-menu a {
    text-decoration: none;
    color: var(--text);
    font-weight: 700;
    font-size: 15px;
    padding: 9px 16px;
    border-radius: 10px;
    transition: all .2s;
}
.nav-menu a:hover { background: var(--blue-soft); color: var(--blue); }
.nav-menu a.active { background: var(--navy); color: #fff; }

.menu-toggle {
    display: none;
    width: 44px; height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--navy);
    font-size: 18px;
    cursor: pointer;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 12px;
    font-family: inherit;
    font-weight: 800;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all .25s;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(30, 94, 255, 0.28); }
.btn-primary:hover { background: #164ad1; transform: translateY(-3px); }
.btn-gold { background: var(--gold); color: var(--navy); box-shadow: 0 10px 24px rgba(212, 160, 23, 0.3); }
.btn-gold:hover { background: #e2b12a; transform: translateY(-3px); }
.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-light:hover { background: #fff; color: var(--navy); }
.btn-lg { padding: 16px 36px; font-size: 18px; }
.btn-block { width: 100%; }

/* ===== Hero ===== */
.hero {
    position: relative;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(30, 94, 255, 0.35), transparent 55%),
        radial-gradient(ellipse at 90% 100%, rgba(212, 160, 23, 0.18), transparent 50%),
        linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: 110px 20px 120px;
    text-align: center;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
    background-size: 36px 36px;
    opacity: .5;
}
.hero > * { position: relative; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.2);
    font-size: 14px; font-weight: 700;
    margin-bottom: 26px;
}
.hero-badge i { color: var(--gold); }
.hero h1 {
    font-size: clamp(34px, 6.5vw, 70px);
    font-weight: 900;
    line-height: 1.25;
    max-width: 950px;
    margin: 0 auto 22px;
}
.hero h1 .hl { color: var(--gold); }
.hero p { font-size: clamp(17px, 2.5vw, 22px); color: rgba(255,255,255,.8); max-width: 760px; margin: 0 auto 38px; }
.hero-buttons { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    padding: 70px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.1) 1px, transparent 1px);
    background-size: 32px 32px;
}
.page-hero > * { position: relative; }
.page-hero h1 { font-size: clamp(30px, 5vw, 48px); font-weight: 900; margin-bottom: 10px; }
.page-hero p { color: rgba(255,255,255,.8); font-size: 18px; max-width: 700px; margin: 0 auto; }
.breadcrumb { margin-top: 16px; font-size: 14px; color: rgba(255,255,255,.65); }
.breadcrumb a { color: var(--gold); text-decoration: none; }

/* ===== Sections ===== */
.section { padding: 90px 0; }
.section.white { background: var(--white); }
.section-header { text-align: center; margin-bottom: 54px; }
.section-tag {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 14px;
}
.section-title { font-size: clamp(28px, 4.5vw, 44px); font-weight: 900; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.section-subtitle { color: var(--muted); font-size: 18px; max-width: 700px; margin: 0 auto; }

/* ===== Stats ===== */
.stats-wrap { margin-top: -60px; position: relative; z-index: 5; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}
.stat-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border-top: 4px solid var(--blue);
    transition: transform .3s;
}
.stat-card:nth-child(even) { border-top-color: var(--gold); }
.stat-card:hover { transform: translateY(-6px); }
.stat-card i { font-size: 30px; color: var(--blue); margin-bottom: 10px; }
.stat-card:nth-child(even) i { color: var(--gold); }
.stat-number { font-size: 40px; font-weight: 900; color: var(--navy); line-height: 1.2; }
.stat-label { color: var(--muted); font-weight: 700; }

/* ===== Cards ===== */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 30px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }

.card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px;
    box-shadow: var(--shadow);
    transition: all .3s;
    position: relative;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: rgba(30, 94, 255, .35); }

.icon-box {
    width: 66px; height: 66px;
    border-radius: 18px;
    background: linear-gradient(135deg, var(--blue), var(--navy));
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(30, 94, 255, .25);
}
.icon-box.gold { background: linear-gradient(135deg, var(--gold), #b88a0e); box-shadow: 0 10px 24px rgba(212, 160, 23, .3); }

.card h3 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--muted); margin-bottom: 16px; }

.features { list-style: none; margin-bottom: 22px; }
.features li { display: flex; align-items: center; gap: 10px; padding: 5px 0; font-weight: 600; }
.features li i { color: var(--gold); font-size: 14px; }

/* ===== Brands ===== */
.brands-track { overflow: hidden; }
.brands-marquee { display: flex; gap: 24px; width: max-content; animation: marquee 30s linear infinite; }
.brands-track:hover .brands-marquee { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(50%); } }
.brand-item {
    min-width: 170px;
    padding: 26px 30px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    font-size: 22px;
    font-weight: 800;
    color: var(--navy);
    text-align: center;
    box-shadow: var(--shadow);
}
.brands-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* ===== About / legal ===== */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: start; }
.highlight-box {
    background: linear-gradient(135deg, var(--navy), var(--navy-2));
    color: #fff;
    border-radius: var(--radius);
    padding: 28px 30px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.9;
    margin-bottom: 24px;
    border-right: 5px solid var(--gold);
}
.text-block p { color: #334155; font-size: 17px; margin-bottom: 14px; }

.legal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--gold);
}
.legal-card h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--navy); margin-bottom: 14px; }
.legal-card h3 i { color: var(--gold); }
.legal-row { display: flex; justify-content: space-between; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.legal-row:last-child { border-bottom: none; }
.legal-row span:first-child { color: var(--muted); font-weight: 600; }
.legal-row span:last-child { font-weight: 800; color: var(--navy); text-align: left; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; }
.step {
    background: #fff;
    border-radius: var(--radius);
    padding: 30px 24px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step);
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy);
    font-weight: 900;
    font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.step h4 { font-size: 18px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

/* ===== Testimonials ===== */
.testimonial .stars { color: var(--gold); margin-bottom: 14px; }
.testimonial-text { color: #334155; margin-bottom: 20px; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--blue-soft); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-weight: 900; font-size: 20px;
}
.author h4 { font-weight: 800; color: var(--navy); line-height: 1.3; }
.author span { color: var(--muted); font-size: 14px; }

/* ===== FAQ ===== */
.faq-container { max-width: 880px; margin: 0 auto; }
.faq-item { background: #fff; border: 1px solid var(--border); border-radius: 16px; margin-bottom: 14px; overflow: hidden; box-shadow: var(--shadow); }
.faq-question {
    width: 100%;
    display: flex; justify-content: space-between; align-items: center; gap: 14px;
    padding: 20px 24px;
    background: none; border: none;
    font-family: inherit; font-size: 17px; font-weight: 800; color: var(--navy);
    cursor: pointer; text-align: right;
}
.faq-question .faq-icon {
    width: 32px; height: 32px; flex-shrink: 0;
    border-radius: 50%;
    background: var(--blue-soft); color: var(--blue);
    display: flex; align-items: center; justify-content: center;
    transition: all .3s;
}
.faq-item.active .faq-icon { transform: rotate(180deg); background: var(--blue); color: #fff; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-answer p { padding: 0 24px 22px; color: var(--muted); }
.faq-item.active .faq-answer { max-height: 400px; }

/* ===== CTA band ===== */
.cta-band {
    background: linear-gradient(135deg, var(--blue), var(--navy));
    border-radius: 28px;
    padding: 50px 40px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-lg);
}
.cta-band h2 { font-size: clamp(24px, 3.5vw, 34px); font-weight: 900; margin-bottom: 6px; }
.cta-band p { color: rgba(255,255,255,.85); }

/* ===== Contact ===== */
.contact-card { text-align: center; }
.contact-card .icon-box { margin: 0 auto 18px; }
.contact-value { font-size: 26px; font-weight: 900; color: var(--navy); margin-bottom: 8px; direction: ltr; }

/* ===== Legal pages ===== */
.legal-page { max-width: 950px; margin: 0 auto; }
.legal-page .owner-box {
    background: var(--gold-soft);
    border: 1px solid #f1dc9f;
    border-right: 5px solid var(--gold);
    border-radius: 16px;
    padding: 22px 26px;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 36px;
}
.legal-page h2 { font-size: 24px; font-weight: 900; color: var(--navy); margin: 40px 0 12px; padding-bottom: 10px; border-bottom: 2px solid var(--border); }
.legal-page h3 { font-size: 18px; font-weight: 800; color: var(--navy); margin: 22px 0 6px; }
.legal-page p, .legal-page li { color: #334155; font-size: 16px; }
.legal-page ul { padding-right: 22px; margin: 6px 0 14px; }
.legal-page .updated { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

/* ===== Footer ===== */
footer {
    background: var(--navy);
    color: rgba(255,255,255,.75);
    padding: 70px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 36px;
    margin-bottom: 44px;
}
.footer-section h3 { color: #fff; font-size: 18px; font-weight: 800; margin-bottom: 18px; position: relative; padding-bottom: 10px; }
.footer-section h3::after { content: ''; position: absolute; bottom: 0; right: 0; width: 40px; height: 3px; background: var(--gold); border-radius: 3px; }
.footer-section p { font-size: 15px; }
.footer-section ul { list-style: none; }
.footer-section li { margin-bottom: 10px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.footer-section li i { color: var(--gold); font-size: 13px; }
.footer-section a { text-decoration: none; transition: color .2s; }
.footer-section a:hover { color: var(--gold); }
.footer-legal {
    border-top: 1px solid rgba(255,255,255,.12);
    padding: 26px 0;
    text-align: center;
}
.footer-legal .copyright { color: #fff; font-weight: 800; margin-bottom: 4px; }
.footer-legal .operated { direction: ltr; font-size: 14px; margin-bottom: 4px; }
.footer-legal .license { font-size: 13px; color: rgba(255,255,255,.55); margin-bottom: 10px; }
.footer-legal .links a { color: var(--gold); margin: 0 10px; font-size: 14px; }

/* ===== Floating call ===== */
.fab-call {
    position: fixed;
    bottom: 24px; left: 24px;
    width: 62px; height: 62px;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    text-decoration: none;
    z-index: 999;
    box-shadow: 0 12px 30px rgba(30, 94, 255, .45);
    animation: pulseRing 2s infinite;
}
@keyframes pulseRing {
    0% { box-shadow: 0 0 0 0 rgba(30, 94, 255, .5); }
    70% { box-shadow: 0 0 0 18px rgba(30, 94, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(30, 94, 255, 0); }
}

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
    .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .nav-call { display: none; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%; right: 0; left: 0;
        flex-direction: column;
        background: #fff;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        padding: 10px 20px 20px;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a { display: block; padding: 12px 14px; }
}
@media (max-width: 640px) {
    .topbar .tb-hide { display: none; }
    .section { padding: 64px 0; }
    .hero { padding: 80px 20px 100px; }
    .card { padding: 26px; }
    .cta-band { padding: 36px 24px; text-align: center; justify-content: center; }
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
}

/* أرقام الهاتف بالاتجاه الصحيح */
a[href^="tel:"], .ltr, .contact-value { direction: ltr; unicode-bidi: isolate; }
