/* ==========================================================================
   زفلتة - الستايل الأساسي
   الألوان مأخوذة من اللوجو
   ========================================================================== */

:root {
    --navy: #081D30;
    --navy-light: #12304d;
    --navy-dark: #04111d;
    --gold: #DC9A03;
    --gold-light: #F2B632;
    --gold-soft: #FFF4D9;
    --cream: #FAF9F7;
    --white: #ffffff;
    --gray: #6b7785;
    --border: #e6e3dd;
    --whatsapp: #25D366;

    --font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --radius: 14px;
    --radius-lg: 24px;
    --shadow-sm: 0 4px 14px rgba(8, 29, 48, .06);
    --shadow: 0 12px 34px rgba(8, 29, 48, .10);
    --shadow-lg: 0 24px 60px rgba(8, 29, 48, .16);
    --ease: cubic-bezier(.22, .61, .36, 1);
    --header-h: 86px;
}

/* ---------- أساسيات ---------- */
html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--cream);
    color: var(--navy);
    line-height: 1.8;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 { font-weight: 800; color: var(--navy); line-height: 1.4; }

a { color: var(--gold); text-decoration: none; transition: color .25s var(--ease); }
a:hover { color: var(--navy); }

img { max-width: 100%; height: auto; }

/* منع أي سكرول أفقي من الأنيميشن */
main { overflow-x: clip; }

::selection { background: var(--gold); color: var(--white); }

.text-gold { color: var(--gold) !important; }
.text-navy { color: var(--navy) !important; }
.bg-navy { background: var(--navy) !important; }
.bg-cream { background: var(--cream) !important; }

.section { padding: 90px 0; }

.section-badge {
    display: inline-block;
    padding: 6px 18px;
    margin-bottom: 18px;
    border-radius: 50px;
    background: var(--gold-soft);
    color: var(--gold);
    font-weight: 700;
    font-size: .95rem;
}

.section-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 16px; }

/* عنوان القسم */
.section-heading { max-width: 680px; margin-bottom: 50px; }
.section-text { color: var(--gray); font-size: 1.08rem; margin: 0; }
.heading-line { display: block; width: 74px; height: 5px; margin: 6px 0 18px; }
.heading-line::before {
    content: "";
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0 62%, transparent 62% 74%, var(--gold) 74%);
    transform: skewX(-25deg);
}
.section-heading.is-light .section-title { color: var(--white); }
.section-heading.is-light .section-text { color: rgba(255, 255, 255, .7); }
.section-heading.is-light .section-badge { background: rgba(220, 154, 3, .15); }

/* زرار مائل زي علامات الطرق */
.btn-skew {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 38px;
    font-weight: 800;
    font-size: 1.05rem;
    clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
    overflow: hidden;
    isolation: isolate;
    transition: color .35s var(--ease), transform .35s var(--ease);
}
.btn-skew::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: var(--white);
    transform: translateX(101%);
    transition: transform .45s var(--ease);
}
.btn-skew:hover::before,
.btn-skew:focus-visible::before { transform: translateX(0); }
.btn-skew i { transition: transform .35s var(--ease); }
.btn-skew:hover i { transform: translateX(-5px); }

.btn-skew-gold { background: var(--gold); color: var(--navy); }
.btn-skew-gold:hover,
.btn-skew-gold:focus-visible { color: var(--navy); }

.btn-skew-light { background: rgba(255, 255, 255, .12); color: var(--white); }
.btn-skew-light::before { background: var(--whatsapp); }
.btn-skew-light:hover,
.btn-skew-light:focus-visible { color: var(--white); }

/* خط ذهبي تحت العناوين زي اللي في اللوجو */
.title-line {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}
.title-line::before,
.title-line::after {
    content: "";
    width: 50px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}

/* ---------- الأزرار ---------- */
.btn {
    font-family: var(--font);
    font-weight: 700;
    padding: 12px 28px;
    border-radius: 50px;
    border: 2px solid transparent;
    transition: all .3s var(--ease);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-gold { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-gold:hover,
.btn-gold:focus-visible {
    background: var(--navy);
    border-color: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-navy { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover,
.btn-navy:focus-visible {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.btn-outline-navy { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline-navy:hover,
.btn-outline-navy:focus-visible {
    background: var(--navy);
    color: var(--white);
    transform: translateY(-3px);
}

.btn-whatsapp { background: var(--whatsapp); color: var(--white); padding: 10px 22px; }
.btn-whatsapp i { font-size: 1.2rem; }
.btn-whatsapp:hover,
.btn-whatsapp:focus-visible {
    background: #1ebe5a;
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 211, 102, .35);
}

/* ==========================================================================
   الهيدر
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(250, 249, 247, .92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { background: rgba(255, 255, 255, .97); box-shadow: var(--shadow-sm); }

.site-header .navbar { min-height: var(--header-h); padding: 8px 0; transition: min-height .3s var(--ease); }
.site-header.scrolled .navbar { min-height: 70px; }

.brand-logo { height: 68px; width: auto; transition: height .3s var(--ease); }
.site-header.scrolled .brand-logo { height: 54px; }

.site-header .nav-link {
    position: relative;
    color: var(--navy);
    font-weight: 700;
    font-size: 1.02rem;
    padding: 8px 14px !important;
}
.site-header .nav-link::after {
    content: "";
    position: absolute;
    bottom: 2px;
    right: 14px;
    left: 14px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .35s var(--ease);
}
.site-header .nav-link:hover,
.site-header .nav-link.active { color: var(--gold); }
.site-header .nav-link:hover::after,
.site-header .nav-link.active::after { transform: scaleX(1); }

/* زر القائمة للموبايل */
.navbar-toggler {
    border: 0;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.navbar-toggler:focus { box-shadow: none; }
.toggler-bar { display: block; width: 26px; height: 3px; border-radius: 3px; background: var(--navy); }
.toggler-bar:nth-child(2) { width: 18px; background: var(--gold); }

@media (max-width: 991.98px) {
    .offcanvas { background: var(--cream); }
    .offcanvas .brand-logo { height: 60px; }
    .offcanvas-body { display: flex; flex-direction: column; gap: 20px; }
    .site-header .nav-link { padding: 12px 6px !important; border-bottom: 1px solid var(--border); }
    .site-header .nav-link::after { display: none; }
    .offcanvas .btn-whatsapp { width: 100%; }
}

@media (min-width: 992px) {
    .offcanvas-body { align-items: center; }
}

/* ==========================================================================
   بانر الصفحات الداخلية
   ========================================================================== */
.page-header {
    position: relative;
    overflow: hidden;
    padding: 80px 0 70px;
    text-align: center;
    background: var(--navy);
    color: var(--white);
}
/* خطوط الطريق المتقطعة */
.page-header::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    height: 6px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 40px, transparent 40px 70px);
    animation: road-move 2.5s linear infinite;
}
.page-header::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    top: -210px;
    left: -120px;
    border-radius: 50%;
    border: 18px solid rgba(220, 154, 3, .12);
}
.page-title { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 10px; }
.page-subtitle { color: rgba(255, 255, 255, .75); font-size: 1.1rem; margin-bottom: 20px; }

.page-header .breadcrumb { justify-content: center; margin: 0; }
.page-header .breadcrumb-item,
.page-header .breadcrumb-item a { color: rgba(255, 255, 255, .7); }
.page-header .breadcrumb-item a:hover { color: var(--gold); }
.page-header .breadcrumb-item.active { color: var(--gold); }
.page-header .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .4); }

/* ==========================================================================
   بانر ابدأ مشروعك (مشترك)
   ========================================================================== */
.cta-section { padding: 40px 0 100px; }

.cta-box {
    position: relative;
    padding: 70px 60px 80px;
    border-radius: 30px;
    background: var(--navy);
    overflow: hidden;
    isolation: isolate;
}
.cta-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    opacity: .35;
    animation: ken-burns 20s ease-out infinite alternate;
}
.cta-box::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(270deg, var(--navy) 35%, rgba(8, 29, 48, .55));
}

.cta-ring {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    pointer-events: none;
}
.cta-ring-1 {
    top: -140px;
    left: -100px;
    width: 380px;
    height: 380px;
    border: 3px dashed rgba(220, 154, 3, .35);
    animation: spin 40s linear infinite;
}
.cta-ring-2 {
    bottom: -90px;
    left: 22%;
    width: 200px;
    height: 200px;
    border: 18px solid rgba(220, 154, 3, .1);
    animation: float 6s ease-in-out infinite;
}

.cta-content { position: relative; max-width: 660px; }
.cta-content .section-badge { background: rgba(220, 154, 3, .15); }
.cta-title { color: var(--white); font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; }
.cta-text { color: rgba(255, 255, 255, .75); font-size: 1.12rem; margin-bottom: 30px; }

.cta-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; }
.cta-phone {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-right: 8px;
    color: var(--white);
}
.cta-phone:hover { color: var(--gold); }
.cta-phone small { display: block; color: rgba(255, 255, 255, .6); }
.cta-phone strong { font-size: 1.15rem; }
.cta-phone-icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    color: var(--gold);
    font-size: 1.2rem;
    animation: phone-ring 2.4s ease-in-out infinite;
}

.cta-road {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(90deg, var(--gold) 0 46px, transparent 46px 78px);
    animation: road-move-cta 2.5s linear infinite;
}

@media (max-width: 767.98px) {
    .cta-box { padding: 50px 24px 60px; text-align: center; }
    .cta-content { margin: 0 auto; }
    .cta-buttons { justify-content: center; }
    .cta-ring-1 { width: 240px; height: 240px; }
}

@keyframes phone-ring {
    0%, 60%, 100% { transform: rotate(0); }
    65%, 75%, 85% { transform: rotate(-14deg); }
    70%, 80%, 90% { transform: rotate(14deg); }
}
@keyframes road-move-cta {
    to { background-position: -78px 0; }
}

/* ==========================================================================
   كارت المقال (مشترك: الخدمات + المدونة)
   ========================================================================== */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--white);
    color: var(--navy);
    overflow: hidden;
    transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.article-card:hover,
.article-card.in-focus { color: var(--navy); transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.article-media { position: relative; height: 210px; overflow: hidden; }
.article-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.article-card:hover .article-media img,
.article-card.in-focus .article-media img { transform: scale(1.1); }
.article-tag {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 14px;
    border-radius: 30px;
    background: var(--gold);
    color: var(--navy);
    font-size: .82rem;
    font-weight: 700;
}

.article-body { display: flex; flex-direction: column; flex: 1; padding: 22px 24px 24px; }
.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-bottom: 10px;
    color: var(--gray);
    font-size: .85rem;
}
.article-meta i { color: var(--gold); margin-left: 4px; }
.article-title { font-size: 1.18rem; line-height: 1.6; margin-bottom: 10px; transition: color .3s var(--ease); }
.article-card:hover .article-title,
.article-card.in-focus .article-title { color: var(--gold); }
.article-excerpt { flex: 1; color: var(--gray); font-size: .96rem; }
.article-more { display: inline-flex; align-items: center; gap: 8px; color: var(--navy); font-weight: 800; }
.article-more i { transition: transform .35s var(--ease); }
.article-card:hover .article-more i,
.article-card.in-focus .article-more i { transform: translateX(-6px); }

/* ==========================================================================
   أكورديون الأسئلة (مشترك)
   ========================================================================== */
.faq-accordion .accordion-item {
    margin-bottom: 14px;
    border: 1px solid var(--border);
    border-radius: 18px !important;
    background: var(--white);
    overflow: hidden;
}
.faq-accordion .accordion-button {
    gap: 12px;
    padding: 20px 24px;
    background: var(--white);
    color: var(--navy);
    font-family: var(--font);
    font-size: 1.08rem;
    font-weight: 700;
    box-shadow: none;
    transition: background .35s var(--ease), color .35s var(--ease);
}
.faq-accordion .accordion-button:not(.collapsed) { background: var(--navy); color: var(--white); }
.faq-accordion .accordion-button:focus-visible { box-shadow: 0 0 0 3px rgba(220, 154, 3, .4); }
.faq-accordion .accordion-button::after {
    width: 16px;
    height: 16px;
    background-image:
        linear-gradient(currentColor, currentColor),
        linear-gradient(currentColor, currentColor);
    background-size: 100% 2px, 2px 100%;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform .4s var(--ease);
}
.faq-accordion .accordion-button:not(.collapsed)::after {
    background-image:
        linear-gradient(var(--gold), var(--gold)),
        linear-gradient(var(--gold), var(--gold));
    transform: rotate(135deg);
}
.faq-num { color: var(--gold); font-weight: 900; }
.faq-accordion .accordion-body { padding: 20px 24px 24px; color: var(--gray); font-size: 1.02rem; }

/* ==========================================================================
   مكان مؤقت للمحتوى
   ========================================================================== */
.placeholder-box {
    padding: 60px 20px;
    text-align: center;
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    background: var(--white);
    color: var(--gray);
}
.placeholder-box i { display: block; font-size: 3rem; color: var(--gold); margin-bottom: 10px; }
.placeholder-box p { margin: 0; font-size: 1.1rem; }

/* ==========================================================================
   الفوتر
   ========================================================================== */
.site-footer {
    position: relative;
    padding: 80px 0 0;
    background: var(--navy);
    color: rgba(255, 255, 255, .75);
}
.site-footer::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
}

.footer-logo {
    height: 110px;
    width: auto;
    padding: 8px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: var(--cream);
}
.footer-about { max-width: 340px; }

.footer-title {
    position: relative;
    color: var(--white);
    font-size: 1.2rem;
    padding-bottom: 12px;
    margin-bottom: 20px;
}
.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 3px;
    border-radius: 3px;
    background: var(--gold);
}

.footer-links,
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li,
.footer-contact li { margin-bottom: 10px; }
.footer-links a,
.footer-contact a { color: rgba(255, 255, 255, .75); }
.footer-links a { display: inline-block; transition: color .25s var(--ease), transform .25s var(--ease); }
.footer-links a:hover { color: var(--gold); transform: translateX(-6px); }
.footer-contact a:hover { color: var(--gold); }
.footer-contact i { color: var(--gold); margin-left: 8px; }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: var(--white);
    transition: all .3s var(--ease);
}
.footer-social a:hover { background: var(--gold); color: var(--white); transform: translateY(-4px); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 20px;
    margin-top: 50px;
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-bottom p { margin: 0; font-size: .95rem; }
.footer-credit a { color: var(--gold); font-weight: 700; }
.footer-credit a:hover { color: var(--white); }

@media (max-width: 575.98px) {
    .footer-bottom { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   زر الواتساب العائم + زر الرجوع للأعلى
   ========================================================================== */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 1040;
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--whatsapp);
    color: var(--white);
    font-size: 1.9rem;
    box-shadow: 0 10px 25px rgba(37, 211, 102, .4);
    animation: pulse 2.2s infinite;
    transition: transform .3s var(--ease);
}
.whatsapp-float:hover { color: var(--white); transform: scale(1.1); }

.back-to-top {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1040;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: var(--navy);
    color: var(--gold);
    font-size: 1.3rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all .35s var(--ease);
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--gold); color: var(--white); }

/* ==========================================================================
   الهيرو (مشترك بين الصفحات)
   ========================================================================== */
.hero-main {
    position: relative;
    display: flex;
    align-items: center;
    min-height: min(calc(100vh - var(--header-h)), 900px);
    min-height: min(calc(100svh - var(--header-h)), 900px);
    padding: 80px 0 180px;
    overflow: hidden;
    background: var(--navy);
    color: var(--white);
}

.hero-media {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 60%;
    overflow: hidden;
}
.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--hero-pos, 30% center);
    animation: ken-burns 16s var(--ease) forwards;
}

.hero-shape {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}
.shape-layer { animation: shape-in 1.2s var(--ease) both; }
.shape-layer-1 { fill: rgba(18, 48, 77, .55); animation-delay: .1s; }
.shape-layer-2 { fill: rgba(8, 29, 48, .8); animation-delay: .2s; }
.shape-layer-3 { fill: var(--navy); animation-delay: .3s; }
.shape-line {
    fill: none;
    stroke: var(--gold);
    stroke-width: 6;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    clip-path: inset(0 0 100% 0);
    filter: drop-shadow(0 0 10px rgba(220, 154, 3, .6));
    animation: draw-line 1.4s var(--ease) .9s forwards;
}

.hero-container { position: relative; z-index: 2; }
.hero-media picture { display: block; height: 100%; }
.hero-shape-m,
.hero-tag,
.hero-mini { display: none; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    margin-bottom: 22px;
    border-radius: 50px;
    border: 1px solid rgba(220, 154, 3, .4);
    background: rgba(220, 154, 3, .1);
    color: var(--gold-light);
    font-weight: 700;
    font-size: .95rem;
}

.hero-heading {
    color: var(--white);
    font-size: clamp(2.6rem, 5.5vw, 4.4rem);
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 18px;
}
/* السطر التاني من اسم المؤسسة */
.hero-heading .hero-heading-line {
    display: block;
    font-size: .72em;
    color: var(--white);
}
.hero-heading small {
    display: block;
    margin-top: 8px;
    font-size: .46em;
    font-weight: 700;
    color: rgba(255, 255, 255, .9);
}

.hero-line { display: block; width: 90px; height: 6px; margin-bottom: 24px; }
.hero-line::before {
    content: "";
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--gold) 0 60%, transparent 60% 72%, var(--gold) 72%);
    transform: skewX(-25deg);
}

.hero-desc {
    max-width: 520px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, .75);
    font-size: 1.15rem;
}

.hero-buttons { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 26px;
    padding: 0;
    margin: 0;
    list-style: none;
    color: rgba(255, 255, 255, .85);
    font-weight: 500;
}
.hero-trust i { color: var(--gold); margin-left: 6px; }

/* ظهور عناصر الهيرو بالترتيب */
.hero-anim {
    opacity: 0;
    transform: translateY(30px);
    animation: hero-in .9s var(--ease) forwards;
    animation-delay: var(--d, 0s);
}

/* أيقونة الماوس */
.hero-scroll {
    position: absolute;
    bottom: 125px;
    left: 50%;
    z-index: 3;
    width: 28px;
    height: 46px;
    border: 2px solid rgba(255, 255, 255, .6);
    border-radius: 20px;
    transform: translateX(-50%);
}
.hero-scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 9px;
    margin-left: -2px;
    border-radius: 4px;
    background: var(--gold);
    animation: scroll-wheel 1.8s ease-in-out infinite;
}

/* الحافة المكسرة تحت الهيرو */
.torn-edge {
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    z-index: 2;
    height: clamp(70px, 11vw, 165px);
    background: url('../images/torn-edge.svg') no-repeat bottom / 100% 100%;
}

/* نسخة الصفحات الداخلية */
.hero-main.is-compact {
    min-height: min(calc(100vh - var(--header-h)), 640px);
    padding: 70px 0 170px;
}
.hero-main.is-compact .hero-heading { font-size: clamp(2.4rem, 5vw, 3.8rem); }

.hero-breadcrumb { margin-bottom: 18px; font-weight: 500; }
.hero-breadcrumb .breadcrumb-item,
.hero-breadcrumb .breadcrumb-item a { color: rgba(255, 255, 255, .65); }
.hero-breadcrumb .breadcrumb-item a:hover { color: var(--gold); }
.hero-breadcrumb .breadcrumb-item.active { color: var(--gold); }
.hero-breadcrumb .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .35); }

@media (max-width: 991.98px) {
    .hero-main { text-align: center; padding: 70px 0 130px; }
    .hero-breadcrumb { justify-content: center; }
    .hero-media { width: 100%; }
    .hero-main::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background: linear-gradient(180deg, rgba(8, 29, 48, .82), rgba(8, 29, 48, .95));
    }
    .hero-shape { display: none; }
    .hero-desc { margin-inline: auto; }
    .hero-line { margin-inline: auto; }
    .hero-buttons,
    .hero-trust { justify-content: center; }
    .hero-scroll { display: none; }
}


/* ==========================================================================
   Keyframes
   ========================================================================== */
@keyframes ken-burns {
    from { transform: scale(1.18); }
    to { transform: scale(1); }
}
@keyframes shape-in {
    from { transform: translateX(45px); }
    to { transform: translateX(0); }
}
@keyframes draw-line {
    to { clip-path: inset(0 0 0 0); }
}
@keyframes hero-in {
    to { opacity: 1; transform: none; }
}
@keyframes scroll-wheel {
    0% { opacity: 1; transform: translateY(0); }
    100% { opacity: 0; transform: translateY(14px); }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes icon-bounce {
    0%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px) scale(1.1); }
}
@keyframes road-move-sm {
    from { background-position: 0 0; }
    to { background-position: -56px 0; }
}
@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ==========================================================================
   الأنيميشن
   ========================================================================== */

/* ظهور العناصر مع السكرول - أضف كلاس reveal وممكن data-delay="100" */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .8s var(--ease), transform .8s var(--ease);
}
.reveal.reveal-right { transform: translateX(-60px); }
.reveal.reveal-left { transform: translateX(60px); }
.reveal.reveal-zoom { transform: scale(.85); }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes road-move {
    from { background-position: 0 0; }
    to { background-position: -70px 0; }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-14px); }
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .55); }
    70% { box-shadow: 0 0 0 18px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ---------- موبايل ---------- */
@media (max-width: 767.98px) {
    :root { --header-h: 72px; }
    .brand-logo { height: 56px; }
    .section { padding: 60px 0; }
    .whatsapp-float { width: 54px; height: 54px; font-size: 1.7rem; bottom: 18px; right: 18px; }
    .back-to-top { bottom: 18px; left: 18px; }
}

/* احترام إعدادات تقليل الحركة */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal { opacity: 1; transform: none; }
}
