/* =========================================================
   DAMAC – site.css (تحديثات فوق style.css بنفس الهوية)
   ========================================================= */

/* ---------- خطوط العربي ---------- */
html[lang="ar"] body,
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3,
html[lang="ar"] h4, html[lang="ar"] h5, html[lang="ar"] h6,
html[lang="ar"] .h1, html[lang="ar"] .h2, html[lang="ar"] .h3,
html[lang="ar"] .h4, html[lang="ar"] .h5, html[lang="ar"] .h6,
html[lang="ar"] .btn, html[lang="ar"] .nav-link,
html[lang="ar"] .display-2, html[lang="ar"] .display-4, html[lang="ar"] .display-5 {
    font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
}
html[lang="ar"] .display-2 { line-height: 1.35; }
html[lang="ar"] .text-uppercase { letter-spacing: 0; }
[lang="en"], [dir="ltr"] { unicode-bidi: isolate; }

body { overflow-x: hidden; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; }
.section-head { max-width: 800px; }

/* ---------- Accessibility ---------- */
.skip-link {
    position: absolute; top: -50px; inset-inline-start: 12px; z-index: 10000;
    background: var(--bs-dark); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 8px;
}
.skip-link:focus { top: 0; color: #fff; }
:focus-visible { outline: 3px solid rgba(221, 176, 35, .7); outline-offset: 2px; }

/* ---------- Reveal (بديل wow.js) ---------- */
.js-reveal .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
    will-change: opacity, transform;
}
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Navbar ---------- */
#siteNav .container { transition: max-width .4s ease, box-shadow .4s ease; }
@media (min-width: 992px) {
    #siteNav.is-stuck .container { max-width: 100%; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); }
}
@media (max-width: 991.98px) {
    #siteNav .container { max-width: 100%; box-shadow: 0 .125rem .25rem rgba(0, 0, 0, .075); }
    .navbar { flex-wrap: nowrap; }
    .navbar .navbar-brand { max-width: 52%; margin-inline-end: auto; }
    .navbar .navbar-brand img { max-height: 46px; width: auto !important; max-width: 100%; object-fit: contain; }
    .navbar .navbar-collapse { position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 0 24px 16px; box-shadow: 0 10px 20px rgba(0,0,0,.08); }
    .lang-mobile { font-size: 14px; padding: 6px 14px; }
}
.navbar .navbar-brand img { max-height: 60px; width: auto !important; }
.navbar-toggler { border: 1px solid rgba(0,0,0,.15); color: var(--bs-dark); padding: 8px 12px; }

/* ---------- Hero (Bootstrap carousel بنفس شكل owl) ---------- */
.header-carousel { position: relative; }
.header-carousel .carousel-item { transition-duration: .9s; }
.header-carousel .hero-img { height: clamp(520px, 82vh, 860px); object-fit: cover; display: block; }
.header-carousel .owl-prev,
.header-carousel .owl-next { z-index: 12; border: 0; cursor: pointer; }
.header-carousel .carousel-caption { right: auto; bottom: auto; padding: 0; }
.header-carousel .carousel-item.active .carousel-caption-inner > * { animation: heroUp .9s ease both; }
.header-carousel .carousel-item.active .carousel-caption-inner > *:nth-child(2) { animation-delay: .2s; }
.header-carousel .carousel-item.active .carousel-caption-inner > *:nth-child(3) { animation-delay: .4s; }
.header-carousel .carousel-item.active .carousel-caption-inner > *:nth-child(4) { animation-delay: .6s; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.text-center .hero-actions { justify-content: center; }
.text-end .hero-actions { justify-content: flex-end; }
@keyframes heroUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@media (max-width: 992px) {
    .header-carousel .hero-img { height: 640px; }
    .header-carousel .display-2 { font-size: 2.3rem; }
}
@media (max-width: 576px) {
    .header-carousel .owl-prev, .header-carousel .owl-next { top: auto !important; bottom: 24px; transform: none; width: 48px; height: 48px; padding: 0; }
    .header-carousel .owl-prev { left: calc(50% - 56px) !important; right: auto !important; }
    .header-carousel .owl-next { right: calc(50% - 56px) !important; left: auto !important; }
    .header-carousel .carousel-caption-inner .btn { padding: .8rem 1.6rem !important; }
}

/* ---------- Cards ---------- */
.service .service-item { height: 100%; display: flex; flex-direction: column; }
.service .service-item .service-content { flex: 1; display: flex; }
.service .service-item .service-content-inner { width: 100%; display: flex; flex-direction: column; align-items: center; }
.service .service-item .service-content-inner .btn { margin-top: auto; }
.service .service-item .service-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.service .service-item h3 a, .stretched-title { color: inherit; text-decoration: none; }
.service .service-item:hover h3, .service .service-item:hover h3 a { color: var(--bs-white); }
.about .about-img img { aspect-ratio: 4 / 3; object-fit: cover; }
.team .team-img img { aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Back to top ---------- */
.back-to-top { opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s; }
.back-to-top.show { opacity: 1; visibility: visible; transform: none; }

/* ---------- Projects toolbar ---------- */
.proj-toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px;
    margin-bottom: 32px;
}
.proj-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.proj-chip {
    border: 1px solid #dfe5ec; background: #fff; color: var(--bs-dark);
    padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: 14px;
    transition: .2s;
}
.proj-chip span { display: inline-block; min-width: 22px; margin-inline-start: 6px; padding: 0 6px; border-radius: 999px; background: #f1f4f8; font-size: 12px; }
.proj-chip:hover { border-color: var(--bs-primary); }
.proj-chip.active { background: var(--bs-dark); color: #fff; border-color: var(--bs-dark); }
.proj-chip.active span { background: var(--bs-primary); color: var(--bs-dark); }
.proj-search { position: relative; min-width: 260px; }
.proj-search i { position: absolute; top: 50%; inset-inline-start: 16px; transform: translateY(-50%); color: #9aa3b5; }
.proj-search .form-control { border-radius: 999px; padding: 10px 18px; padding-inline-start: 42px; border-color: #dfe5ec; }
@media (max-width: 767.98px) { .proj-search { width: 100%; } .proj-filters { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; } .proj-chip { white-space: nowrap; } }

/* ---------- Project detail ---------- */
.pd-main {
    position: relative; display: block; width: 100%; padding: 0; border: 0;
    border-radius: 14px; overflow: hidden; background: #eef2f6; cursor: zoom-in;
    box-shadow: 0 14px 40px rgba(16, 33, 71, .12);
}
.pd-main img { aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s ease; }
.pd-main:hover img { transform: scale(1.03); }
.pd-zoom {
    position: absolute; bottom: 16px; inset-inline-end: 16px;
    width: 44px; height: 44px; border-radius: 50%;
    background: var(--bs-dark); color: #fff; display: flex; align-items: center; justify-content: center;
}
.pd-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-top: 12px; }
.pd-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #eef2f6; transition: border-color .2s; }
.pd-thumb:hover { border-color: var(--bs-primary); }
.pd-thumb img { aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.pd-card { background: #fff; border: 1px solid #e8edf3; border-radius: 16px; padding: 30px; box-shadow: 0 6px 24px rgba(16, 33, 71, .06); position: sticky; top: 110px; }
.pd-cat { display: inline-flex; align-items: center; background: rgba(221, 176, 35, .15); color: #9a780b; font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.pd-scope { list-style: none; padding: 0; margin: 0; }
.pd-scope li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px dashed #e3e8ef; }
.pd-scope li i { color: var(--bs-primary); margin-top: 4px; }
.pd-lightbox .modal-content { border-radius: 12px; overflow: hidden; }
.pd-lightbox .pd-full { max-height: 85vh; width: auto; max-width: 100%; object-fit: contain; }
.pd-lightbox .carousel-item { text-align: center; background: #000; }
.pd-close { position: absolute; top: 12px; inset-inline-end: 12px; z-index: 5; background-color: rgba(255,255,255,.15); border-radius: 50%; padding: 10px; opacity: 1; }
@media (max-width: 991.98px) { .pd-card { position: static; padding: 22px; } }

/* ---------- Contact ---------- */
.hp-field { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact .form-control { border-color: #dfe5ec; }
.contact .form-control:focus { border-color: var(--bs-primary); box-shadow: 0 0 0 .2rem rgba(221, 176, 35, .2); }
.was-validated .form-control:invalid { border-color: #dc3545; }
.form-floating > label { inset-inline-start: 0; }
html[dir="rtl"] .form-floating > label { right: 0; left: auto; transform-origin: 100% 0; }

/* ---------- Footer ---------- */
.footer .footer-item a { overflow-wrap: anywhere; }
.footer h2.h4 { font-size: 1.5rem; }

.notfound .display-1 { font-size: 7rem; }
