/* ==========================================================================
   استوديو — واجهة الموقع (RTL، داكنة بلمسات نحاسية)
   يعتمد على متغيّرات :root التي يولّدها App\Core\Theme من إعدادات لوحة التحكم.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

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

body.site {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--font-body-size, 17px);
    font-weight: var(--font-body-weight, 400);
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

body.site::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(900px 420px at 85% -10%, rgba(200, 129, 74, .10), transparent 70%),
        radial-gradient(700px 360px at 5% 20%, rgba(200, 129, 74, .05), transparent 70%);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: var(--font-heading-weight, 700); color: var(--heading); line-height: 1.3; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.3rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.4rem); }
p { margin: 0 0 1rem; }
.muted { color: var(--muted); }
.icon { vertical-align: middle; flex: none; }

.skip-link {
    position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300;
    background: var(--primary); color: #14100c; padding: 10px 18px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.eyebrow {
    display: inline-block;
    font-family: var(--font-menu);
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .18em;
    color: var(--primary);
    text-transform: uppercase;
    margin-bottom: .9rem;
}

/* ——— أزرار ——— */
.btn-st {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    font-family: var(--font-menu); font-weight: 600; line-height: 1;
    padding: 15px 30px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
    text-align: center;
}
.btn-st:hover { transform: translateY(-2px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-text); box-shadow: 0 10px 30px -14px rgba(200, 129, 74, .8); }
.btn-primary:hover { background: var(--btn-hover-bg); color: var(--btn-hover-text); }
.btn-outline { border-color: var(--border); color: var(--text); background: transparent; }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-light { background: #f5efe6; color: #14100c; }
.btn-light:hover { background: #fff; color: #14100c; }
.btn-link { background: none; color: var(--link); padding: 8px 0; }
.btn-sm { padding: 11px 20px; font-size: .86rem; }
.btn-lg { padding: 17px 38px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-st[disabled] { opacity: .6; pointer-events: none; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-menu); font-size: .92rem; font-weight: 600; }
.link-arrow .icon { transition: transform .2s ease; }
.link-arrow:hover .icon { transform: translateX(-3px); }
.muted-arrow { color: var(--muted); }

/* ——— الهيدر ——— */
.site-header {
    position: relative; z-index: 100;
    background: var(--header-bg); color: var(--header-text);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.site-header.is-sticky { position: sticky; top: 0; }
.header-inner {
    max-width: 1280px; margin: 0 auto; padding: 14px 24px;
    display: flex; align-items: center; gap: 22px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--header-text); flex: none; }
.brand:hover { color: var(--primary); }
.brand-logo { width: auto; object-fit: contain; }
.brand-mark {
    width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
    background: var(--primary-soft); color: var(--primary); border: 1px solid rgba(200, 129, 74, .35);
}
.brand-text { font-family: var(--font-heading); font-weight: 700; font-size: 1.35rem; letter-spacing: -.01em; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-inline-start: auto; }
.site-nav > ul { list-style: none; display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; }
.site-nav > ul > li { position: relative; }
.site-nav a {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: var(--font-menu); font-size: var(--font-menu-size, 15px); font-weight: var(--font-menu-weight, 600);
    color: var(--header-text); padding: 10px 14px; border-radius: 8px;
}
.site-nav a:hover, .site-nav .current-menu-item > a { color: var(--primary); background: rgba(255, 255, 255, .04); }
.caret { font-size: .7rem; opacity: .6; }
.sub-menu {
    position: absolute; top: 100%; inset-inline-end: 0; min-width: 220px;
    list-style: none; margin: 0; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
    opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .18s ease;
}
.has-sub:hover .sub-menu, .has-sub:focus-within .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.sub-menu a { display: block; padding: 9px 12px; border-radius: 8px; }
.header-cta { margin-inline-start: 4px; }
.header-phone {
    display: inline-flex; align-items: center; gap: 7px;
    font-family: var(--font-menu); font-size: .9rem; color: var(--muted);
    padding: 8px 10px; border-radius: 999px; border: 1px solid var(--border);
}
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--border); border-radius: 10px; background: transparent; padding: 11px; }
.nav-toggle span { display: block; height: 2px; background: var(--header-text); border-radius: 2px; margin: 4px 0; transition: .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.nav-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 90; }

/* ——— الأقسام ——— */
.sec-wrap { position: relative; padding: 84px 0; }
.sec-alt { background: linear-gradient(180deg, rgba(255, 255, 255, .015), transparent); border-block: 1px solid var(--border); }
.sec-container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec-wide { max-width: 1480px; }
.sec-full { max-width: none; padding: 0; }
.b-section-head { max-width: 720px; margin-bottom: 42px; }
.b-section-head p { color: var(--muted); margin: 0; }
.b-section-head h2 { margin-bottom: .5rem; }

/* ——— السلايدر ——— */
.hero-slider { position: relative; height: clamp(540px, 84vh, 880px); overflow: hidden; background: var(--surface); isolation: isolate; }
.slides, .slide { position: absolute; inset: 0; }
.slide { opacity: 0; visibility: hidden; transition: opacity .9s ease, visibility .9s; }
.slide.is-active { opacity: 1; visibility: visible; z-index: 2; }
.slide-media, .slide-media picture, .slide-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.slide-media img { object-fit: cover; transform: scale(1.06); transition: transform 7s linear; }
.slide.is-active .slide-media img { transform: scale(1); }
.slide-overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8, 10, 13, .94) 0%, rgba(8, 10, 13, .72) 42%, rgba(8, 10, 13, .25) 100%); }
.align-center .slide-overlay { background: radial-gradient(ellipse at 50% 55%, rgba(8, 10, 13, .78) 0%, rgba(8, 10, 13, .45) 62%, rgba(8, 10, 13, .3) 100%); }
.slide-body { position: relative; z-index: 3; height: 100%; display: flex; align-items: center; max-width: 1200px; margin: 0 auto; padding: 60px 24px; }
.slide-copy { max-width: 660px; }
.slide-title { font-size: clamp(2.1rem, 5vw, 4rem); line-height: 1.15; margin-bottom: 1rem; text-wrap: balance; }
.slide-subtitle { font-size: clamp(1rem, 1.6vw, 1.22rem); color: #d6d1ca; max-width: 54ch; margin-bottom: 2rem; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.align-center .slide-body { justify-content: center; }
.align-center .slide-copy { text-align: center; margin: 0 auto; }
.align-center .slide-actions { justify-content: center; }
.align-end .slide-body { justify-content: flex-end; }
.align-end .slide-copy { text-align: left; }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); z-index: 6;
    width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center;
    background: rgba(12, 14, 18, .55); border: 1px solid rgba(255, 255, 255, .16); color: #fff;
    backdrop-filter: blur(6px); transition: .2s ease;
}
.slider-arrow:hover { background: var(--primary); color: #14100c; border-color: var(--primary); }
.slider-arrow.prev { inset-inline-start: 22px; }
.slider-arrow.next { inset-inline-end: 22px; }
.slider-dots { position: absolute; bottom: 26px; inset-inline: 0; z-index: 6; display: flex; justify-content: center; gap: 9px; }
.slider-dots button { width: 26px; height: 4px; border-radius: 99px; border: 0; background: rgba(255, 255, 255, .32); cursor: pointer; transition: .25s ease; padding: 0; }
.slider-dots button.is-active { background: var(--primary); width: 44px; }

/* حركة العنوان والزر في الشريحة النشطة */
.slide .slide-title, .slide .slide-subtitle, .slide .slide-actions { opacity: 0; transform: translateY(22px); }
.slide.is-active .slide-title { animation: heroIn .85s cubic-bezier(.2, .7, .3, 1) .1s forwards; }
.slide.is-active .slide-subtitle { animation: heroIn .85s cubic-bezier(.2, .7, .3, 1) .26s forwards; }
.slide.is-active .slide-actions { animation: heroIn .85s cubic-bezier(.2, .7, .3, 1) .42s forwards; }
@keyframes heroIn { to { opacity: 1; transform: translateY(0); } }

/* ——— شبكة الخدمات ——— */
.b-services-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 22px; }
.service-card {
    position: relative; padding: 32px 28px; border-radius: var(--radius);
    background: linear-gradient(160deg, var(--surface), rgba(21, 25, 32, .6));
    border: 1px solid var(--border); transition: .25s ease; overflow: hidden;
}
.service-card::after {
    content: ""; position: absolute; inset: 0 auto auto 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent); opacity: 0; transition: .3s ease;
}
.service-card:hover { transform: translateY(-4px); border-color: rgba(200, 129, 74, .4); }
.service-card:hover::after { opacity: 1; }
.service-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); margin-bottom: 18px; }
.service-title { font-size: 1.28rem; margin-bottom: .5rem; }
.service-title a { color: var(--heading); }
.service-title a:hover { color: var(--primary); }
.service-excerpt { color: var(--muted); font-size: .96rem; margin-bottom: 1.2rem; }
.service-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.services-list { display: grid; gap: 16px; }
.service-row {
    display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: start;
    padding: 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface);
}
.service-row h2 { font-size: 1.35rem; margin-bottom: .3rem; }
.service-row h2 a { color: var(--heading); }
.service-row p { color: var(--muted); margin: 0; }
.service-children { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.service-children a { font-size: .85rem; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.service-children a:hover { border-color: var(--primary); color: var(--primary); }
.service-row-actions { display: flex; flex-direction: column; gap: 10px; }

/* ——— صفحة داخلية ——— */
.page-hero { padding: 92px 0 56px; border-bottom: 1px solid var(--border); background: radial-gradient(800px 300px at 80% 0%, rgba(200, 129, 74, .12), transparent); }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero-lead { color: var(--muted); max-width: 62ch; font-size: 1.08rem; margin: 0; }
.page-hero .eyebrow { margin-bottom: .5rem; }
.back-link { display: inline-block; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.back-link:hover { color: var(--primary); }
.service-hero-inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.service-hero-media { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); aspect-ratio: 4/3; }
.service-hero-img { width: 100%; height: 100%; object-fit: cover; }
.service-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.service-detail { display: grid; grid-template-columns: 1fr 300px; gap: 46px; align-items: start; }
.service-content { color: #d5d0c9; }
.service-content h2 { margin-top: 1.8rem; }
.service-content ul { padding-inline-start: 20px; }
.service-content li { margin-bottom: .5rem; }
.service-children-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.service-children-box h2 { font-size: 1.05rem; }
.service-children-box ul { list-style: none; margin: 0; padding: 0; }
.service-children-box li { border-bottom: 1px solid var(--border); padding: 10px 0; }
.service-children-box li:last-child { border: 0; }

/* ——— الأعمال ——— */
.b-works-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.works-grid-lg .work-thumb { aspect-ratio: 4/3; }
.work-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); transition: .25s ease; }
.work-card:hover { transform: translateY(-4px); border-color: rgba(200, 129, 74, .4); }
.work-thumb { position: relative; display: block; aspect-ratio: 16/11; background: #101319; overflow: hidden; }
.work-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.work-card:hover .work-thumb img { transform: scale(1.04); }
.work-thumb-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--primary); background: radial-gradient(circle at 50% 40%, rgba(200, 129, 74, .16), transparent 70%); }
.work-type-badge { position: absolute; top: 14px; inset-inline-start: 14px; font-family: var(--font-menu); font-size: .72rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(10, 12, 16, .78); color: var(--primary); border: 1px solid rgba(200, 129, 74, .3); }
.work-play { position: absolute; inset-inline-end: 14px; bottom: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--primary); color: #14100c; display: grid; place-items: center; box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .8); }
.work-body { padding: 20px 22px 24px; }
.work-service { font-size: .76rem; color: var(--primary); letter-spacing: .06em; }
.work-title { font-size: 1.16rem; margin: .35rem 0 .5rem; }
.work-title a { color: var(--heading); }
.work-title a:hover { color: var(--primary); }
.work-excerpt { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.work-more { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; font-family: var(--font-menu); font-weight: 600; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 36px; }
.filter-pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); font-family: var(--font-menu); font-size: .88rem; font-weight: 600; }
.filter-pill:hover, .filter-pill.is-active { background: var(--primary); border-color: var(--primary); color: #14100c; }

/* صفحة العمل */
.work-hero { position: relative; padding: 96px 0 60px; border-bottom: 1px solid var(--border); overflow: hidden; }
.work-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; filter: blur(2px); }
.work-hero.has-cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13, 15, 19, .55), var(--bg)); }
.work-hero-inner { position: relative; z-index: 2; }
.work-hero h1 { max-width: 20ch; }
.work-hero-excerpt { color: #cfc9c1; max-width: 60ch; font-size: 1.1rem; }
.work-meta { display: flex; flex-wrap: wrap; gap: 34px; margin: 28px 0 0; }
.work-meta div { display: flex; flex-direction: column; gap: 2px; }
.work-meta dt { font-size: .76rem; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.work-meta dd { margin: 0; font-family: var(--font-menu); font-weight: 600; color: var(--heading); }
.work-body-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.work-content { color: #d6d1ca; }
.work-content h2, .work-content h3 { margin-top: 1.6rem; }
.work-side { position: sticky; top: 100px; }
.work-side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.work-side-card h2 { font-size: 1.05rem; }
.work-side-card ul { list-style: none; margin: 0 0 20px; padding: 0; }
.work-side-card li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.work-side-card li span { color: var(--muted); }
.work-section-head { margin-bottom: 28px; }
.work-section-head h2 { margin-bottom: .3rem; }
.work-section-head p { color: var(--muted); margin: 0; }
.design-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.design-item { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface); }
.design-item:first-child { grid-column: 1 / -1; }
.design-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.design-item:first-child img { aspect-ratio: 16/9; }
.design-item figcaption { padding: 12px 16px; font-size: .86rem; color: var(--muted); }
.social-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.social-post { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); aspect-ratio: 4/5; position: relative; }
.social-post img { width: 100%; height: 100%; object-fit: cover; }
.social-post figcaption { position: absolute; inset: auto 0 0; padding: 14px; font-size: .82rem; color: #eee; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.campaign-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.campaign-card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.campaign-label { font-family: var(--font-menu); font-size: .78rem; letter-spacing: .14em; color: var(--primary); text-transform: uppercase; }
.campaign-card p { margin: .6rem 0 0; color: #d3cec7; }
.reels-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.reel-card { margin: 0; aspect-ratio: 9/16; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #0a0c10; position: relative; }
.reel-card img, .reel-card video { width: 100%; height: 100%; object-fit: cover; }
.reel-card figcaption { position: absolute; inset: auto 0 0; padding: 14px; font-size: .82rem; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.work-section-head-follow { margin-top: 44px; }
.yt-frame { position: relative; width: 100%; aspect-ratio: 16/9; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: #000; }
.yt-frame iframe { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; }

/* ——— مشغّل الصوت ——— */
.audio-player { background: linear-gradient(160deg, var(--surface), #101319); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.ap-main { display: flex; align-items: center; gap: 18px; }
.ap-cover { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex: none; background: #0d1015; border: 1px solid var(--border); display: grid; place-items: center; }
.ap-cover-img { width: 100%; height: 100%; object-fit: cover; }
.ap-cover-fallback { color: var(--primary); }
.ap-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ap-eyebrow { font-size: .72rem; letter-spacing: .12em; color: var(--primary); text-transform: uppercase; }
.ap-title { font-family: var(--font-heading); font-size: 1.1rem; color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ap-meta { font-size: .8rem; color: var(--muted); }
.ap-toggle { margin-inline-start: auto; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--primary); color: #14100c; display: grid; place-items: center; cursor: pointer; transition: .2s ease; flex: none; }
.ap-toggle:hover { background: var(--btn-hover-bg); transform: scale(1.04); }
.ap-timeline { display: flex; align-items: center; gap: 12px; margin: 18px 0 8px; }
.ap-time { font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 38px; text-align: center; }
.ap-timeline input[type="range"] { flex: 1; accent-color: var(--primary); height: 4px; cursor: pointer; }
.ap-list { list-style: none; margin: 10px 0 0; padding: 0; border-top: 1px solid var(--border); }
.ap-track { width: 100%; display: grid; grid-template-columns: 26px 1fr 24px; align-items: center; gap: 10px; padding: 11px 6px; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); text-align: start; cursor: pointer; font-family: inherit; font-size: .92rem; }
.ap-track:hover { background: rgba(255, 255, 255, .03); }
.ap-track.is-current { color: var(--primary); }
.ap-track-num { font-size: .78rem; color: var(--muted); }
.ap-track.is-current .ap-track-num { color: var(--primary); }
.ap-track-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ap-track-play { opacity: .4; }
.ap-track:hover .ap-track-play, .ap-track.is-current .ap-track-play { opacity: 1; }
.ap-note { margin: 14px 0 0; font-size: .76rem; color: var(--muted); }

/* ——— عناصر المحرر العامة ——— */
.b-text p:last-child { margin-bottom: 0; }
.b-btn-wrap { display: flex; }
.b-image { margin: 0; }
.b-image-img { border-radius: var(--radius); width: 100%; }
.b-image figcaption, .b-gallery figcaption { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.b-gallery { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 14px; }
.b-gallery-item { margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.b-gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.b-gallery-item:hover .b-gallery-img { transform: scale(1.03); }
.b-gallery-item a { display: block; height: 100%; }
.b-iconbox { text-align: center; padding: 10px; }
.b-icon-title { font-size: 1.1rem; margin: 10px 0 .4rem; }
.b-iconbox p { color: var(--muted); font-size: .92rem; margin: 0; }
.b-video video, .b-video iframe { width: 100%; border-radius: var(--radius); border: 1px solid var(--border); background: #000; aspect-ratio: 16/9; }
/* إطار يوتيوب المضمّن الموحّد (محرر الصفحات وصفحة العمل) — 16:9 */
.b-video .yt-frame { margin: 0; }
.b-video .yt-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 0; aspect-ratio: auto; }
.b-faq { max-width: 820px; }
.b-faq-title { margin-bottom: 18px; }
.b-faq-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; background: var(--surface); overflow: hidden; }
.b-faq-item summary { cursor: pointer; list-style: none; padding: 16px 20px; font-family: var(--font-menu); font-weight: 600; color: var(--heading); position: relative; padding-inline-end: 48px; }
.b-faq-item summary::-webkit-details-marker { display: none; }
.b-faq-item summary::after { content: "+"; position: absolute; inset-inline-end: 20px; color: var(--primary); font-size: 1.2rem; }
.b-faq-item[open] summary::after { content: "−"; }
.b-faq-a { padding: 0 20px 18px; color: var(--muted); }
.b-empty { padding: 30px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); font-size: .9rem; }
.b-image-empty { padding: 40px; border: 1px dashed var(--border); border-radius: 12px; text-align: center; color: var(--muted); }
.preview-banner { background: var(--primary); color: #14100c; text-align: center; padding: 10px; font-size: .9rem; }
.preview-banner a { color: #14100c; text-decoration: underline; }

/* ——— نموذج الطلب ——— */
.request-block { padding: 0; }
.request-inner { background: linear-gradient(165deg, var(--surface), #0f1218); border: 1px solid var(--border); border-radius: 22px; padding: 38px; }
.request-head h2 { margin-bottom: .5rem; }
.request-head p { color: var(--muted); max-width: 60ch; }
.request-form .form-label { font-family: var(--font-menu); font-size: .88rem; font-weight: 600; color: var(--heading); margin-bottom: 6px; }
.request-form .req { color: var(--primary); }
.request-form .optional { color: var(--muted); font-weight: 400; font-size: .8rem; }
.form-control, .form-select {
    background: #0d1015; border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 13px 15px; font-family: var(--font-body); font-size: .95rem;
    min-height: 50px; width: 100%;
}
.form-control::placeholder { color: #6d727c; }
.form-control:focus, .form-select:focus { background: #0d1015; color: var(--text); border-color: var(--primary); box-shadow: 0 0 0 3px rgba(200, 129, 74, .16); }
.form-select option { background: #12151b; }
.phone-group { display: grid; grid-template-columns: 160px 1fr; gap: 8px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 6px; }
.form-note { font-size: .8rem; color: var(--muted); max-width: 46ch; }
.alert { display: flex; gap: 12px; padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; font-size: .93rem; border: 1px solid; }
.alert p { margin: 4px 0 0; }
.alert ul { margin: 8px 0 0; padding-inline-start: 18px; }
.alert-success { background: rgba(56, 142, 90, .12); border-color: rgba(56, 142, 90, .4); color: #b9e6c8; }
.alert-danger { background: rgba(190, 70, 60, .12); border-color: rgba(190, 70, 60, .4); color: #f2c1bc; }
.req-code { margin: 6px 0 0; font-size: .86rem; color: var(--muted); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 34px; align-items: start; }
.contact-info { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 30px; }
.contact-info h2 { font-size: 1.2rem; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: .94rem; }
.contact-list li:last-child { border: 0; }
.contact-list .icon { color: var(--primary); }
.contact-list span, .contact-list a { color: var(--text); }
.contact-social { display: flex; gap: 10px; margin-top: 18px; }
.contact-social a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); display: grid; place-items: center; }
.contact-social a:hover { border-color: var(--primary); color: var(--primary); }
.contact-map { margin-top: 20px; border-radius: 12px; overflow: hidden; border: 1px solid var(--border); }
.contact-map iframe { width: 100%; height: 220px; border: 0; display: block; }

/* ——— شريط الدعوة ——— */
.cta-band { border-block: 1px solid rgba(200, 129, 74, .25); background: radial-gradient(700px 240px at 20% 50%, rgba(200, 129, 74, .18), transparent), #0f1218; }
.cta-band-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-block: 46px; }
.cta-band h2 { margin-bottom: .3rem; }
.cta-band p { margin: 0; color: var(--muted); }

/* ——— الفوتر ——— */
.site-footer { position: relative; background: var(--footer-bg); color: var(--footer-text); border-top: 1px solid var(--border); padding-top: 60px; }
.footer-main { max-width: 1200px; margin: 0 auto; padding: 0 24px 42px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-brand p { color: var(--footer-text); font-size: .92rem; margin-top: 14px; max-width: 40ch; }
.footer-logo { width: auto; object-fit: contain; margin-bottom: 8px; }
.footer-title { font-family: var(--font-menu); font-size: .92rem; letter-spacing: .06em; color: var(--heading); margin-bottom: 16px; }
.footer-links ul, .footer-contact ul, .footer-sub { list-style: none; margin: 0; padding: 0; }
.footer-links li, .footer-contact li { margin-bottom: 10px; font-size: .92rem; }
.footer-links a { color: var(--footer-text); }
.footer-links a:hover, .footer-contact a:hover { color: var(--primary); }
.footer-sub { margin-top: 4px; padding-inline-start: 12px; }
.footer-sub li { margin-bottom: 6px; font-size: .86rem; }
.footer-contact li { display: flex; gap: 9px; align-items: flex-start; }
.footer-contact .icon { color: var(--primary); margin-top: 3px; }
.footer-col p { font-size: .92rem; color: var(--footer-text); }
.footer-social { max-width: 1200px; margin: 0 auto; padding: 0 24px 30px; display: flex; gap: 10px; }
.footer-social a { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); color: var(--footer-text); }
.footer-social a:hover { color: var(--primary); border-color: var(--primary); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 24px; max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .82rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.wa-float { position: fixed; inset-inline-start: 22px; bottom: 22px; z-index: 80; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #06310f; display: grid; place-items: center; box-shadow: 0 12px 30px -10px rgba(37, 211, 102, .6); transition: .2s ease; }
.wa-float:hover { transform: translateY(-3px); color: #06310f; }

/* ——— الصفحات العامة ——— */
.error-page { padding: 110px 0; text-align: center; }
.error-code { font-family: var(--font-heading); font-size: clamp(5rem, 14vw, 9rem); line-height: 1; color: var(--primary-soft); -webkit-text-stroke: 1px rgba(200, 129, 74, .5); display: block; }
.error-inner p { color: var(--muted); max-width: 46ch; margin: 0 auto 26px; }
.error-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.empty-page { padding: 100px 0; text-align: center; }

/* ——— اللايت بوكس ——— */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 7, 9, .94); display: grid; place-items: center; padding: 30px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; }
.lightbox-close { position: absolute; top: 18px; inset-inline-end: 22px; background: none; border: 0; color: #fff; font-size: 2.2rem; line-height: 1; cursor: pointer; }

/* ——— حركات الظهور ——— */
.js .anim { opacity: 0; transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .3, 1); will-change: opacity, transform; }
.js .anim-fade-up { transform: translateY(30px); }
.js .anim-fade-in { transform: none; }
.js .anim-zoom { transform: scale(.96); }
.js .anim-slide-right { transform: translateX(40px); }
.js .anim.in-view { opacity: 1; transform: none; }

/* ——— فريق العمل ——— */
.b-team-grid { display: grid; grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); gap: 28px; max-width: 1200px; margin: 0 auto; padding: 0 24px; box-sizing: border-box; }
.team-card {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 38px 28px 34px;
    border: 1.5px solid rgba(200, 129, 74, .55);
    border-radius: 22px;
    background: linear-gradient(180deg, var(--surface), var(--surface-alt, var(--surface)));
    box-shadow: 0 24px 50px -32px rgba(0, 0, 0, .9);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.team-card:hover {
    transform: translateY(-6px);
    border-color: var(--primary);
    box-shadow: 0 30px 60px -28px rgba(0, 0, 0, .95), 0 0 0 1px rgba(200, 129, 74, .18) inset;
}
.team-photo {
    position: relative; flex: none;
    width: min(210px, 74%); aspect-ratio: 1 / 1; min-height: 0;
    margin: 0 0 24px; overflow: hidden;
    border-radius: 50%; border: 2px solid var(--primary);
    background: radial-gradient(circle at 50% 35%, rgba(200, 129, 74, .14), transparent 72%);
}
.team-photo-img { position: absolute; inset: 4px; width: auto; height: auto; object-fit: cover; object-position: center 30%; border-radius: 50%; transition: transform .5s ease; }
.team-card:hover .team-photo-img { transform: scale(1.05); }
.team-photo-fallback { position: absolute; inset: 4px; display: grid; place-items: center; border-radius: 50%; color: var(--primary); background: rgba(200, 129, 74, .08); }
.team-body { padding: 0; }
.team-name { font-size: clamp(1.25rem, 1.7vw, 1.5rem); font-weight: 700; margin: 0 0 8px; color: var(--heading); }
.team-role { font-size: .98rem; color: var(--muted); margin: 0; letter-spacing: .02em; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
    .js .anim { opacity: 1 !important; transform: none !important; }
    .slide-media img { transform: none !important; }
}

/* ——— التجاوب ——— */
@media (max-width: 1100px) {
    .footer-main { grid-template-columns: 1.4fr 1fr 1fr; }
    .b-works-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .header-phone { display: none; }
}
@media (max-width: 991px) {
    .sec-wrap { padding: 66px 0; }
    .b-services-grid, .b-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-hero-inner, .service-detail, .work-body-grid, .contact-grid { grid-template-columns: 1fr; }
    .work-side { position: static; }
    .service-row { grid-template-columns: auto 1fr; }
    .service-row-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
    .site-nav {
        position: fixed; top: 0; inset-inline-end: 0; height: 100vh; width: min(86vw, 360px); z-index: 95;
        background: #0c0e12; border-inline-start: 1px solid var(--border);
        flex-direction: column; align-items: stretch; gap: 0; padding: 84px 22px 30px;
        transform: translateX(105%); transition: transform .3s ease; overflow-y: auto; margin: 0;
    }
    html[dir="rtl"] .site-nav { transform: translateX(-105%); visibility: hidden; }
    html[dir="rtl"] .site-nav.is-open,
    .site-nav.is-open { transform: translateX(0); visibility: visible; }
    .site-nav > ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .site-nav > ul > li { border-bottom: 1px solid var(--border); }
    .site-nav a { padding: 14px 6px; justify-content: space-between; width: 100%; }
    .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; border: 0; padding: 0 12px 8px; min-width: 0; }
    .header-cta { margin: 18px 0 0; }
    .nav-toggle { display: block; margin-inline-start: auto; order: 3; }
    .header-inner { gap: 12px; }
    .design-gallery, .social-grid, .reels-row, .campaign-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .design-item:first-child { grid-column: auto; }
    .design-item:first-child img { aspect-ratio: 4/3; }
}
@media (max-width: 767px) {
    body.site { font-size: 16px; line-height: 1.8; }
    .header-inner { padding: 12px 16px; }
    .sec-container { padding: 0 18px; }
    .sec-wrap { padding: 52px 0; }
    .work-section-head-follow { margin-top: 32px; }
    .hero-slider { height: clamp(520px, 88vh, 680px); }
    .slide-overlay { background: linear-gradient(180deg, rgba(8, 10, 13, .78) 0%, rgba(8, 10, 13, .9) 100%); }
    .slide-body { padding: 46px 18px; }
    .slide-copy { max-width: 100%; }
    .slide-body { padding: 40px 18px; align-items: flex-end; padding-bottom: 86px; }
    .slide-copy { max-width: 100%; }
    .slide-actions { gap: 10px; }
    .slide-actions .btn-st { width: 100%; }
    .slider-arrow { display: none; }
    .slider-dots { bottom: 18px; }
    .b-works-grid, .b-services-grid, .b-team-grid, .b-gallery, .social-grid, .reels-row, .campaign-grid, .design-gallery { grid-template-columns: 1fr; }
    .team-card { padding: 30px 22px 28px; }
    .team-photo { width: min(190px, 68%); margin-bottom: 20px; }
    .request-inner { padding: 24px 18px; border-radius: 16px; }
    .phone-group { grid-template-columns: 130px 1fr; }
    .footer-main { grid-template-columns: 1fr; gap: 26px; padding-bottom: 30px; }
    .footer-bottom { flex-direction: column; }
    .work-meta { gap: 20px; }
    .cta-band-inner { flex-direction: column; align-items: flex-start; }
    .request-block { padding: 0; }
    .contact-info { padding: 22px; }
    .form-actions { align-items: flex-start; }
    .form-actions .btn-st { width: 100%; }
    .ap-cover { width: 64px; height: 64px; }
    .ap-title { font-size: 1rem; }
    .ap-toggle { width: 48px; height: 48px; }
}

/* PWA install chip */
.pwa-install {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 9999;
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(21,25,32,.96);
    border: 1px solid rgba(200,129,74,.35);
    color: #e9e4dd;
    box-shadow: 0 12px 32px rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
    max-width: 420px;
    margin-inline: auto;
}
.pwa-install p { margin: 0; font-size: .92rem; line-height: 1.6; }
.pwa-install-actions { display: flex; gap: 8px; align-items: center; }
.pwa-install-btn {
    background: #c8814a; color: #121212; border: none; border-radius: 10px;
    padding: 8px 14px; font-weight: 700; cursor: pointer;
}
.pwa-install-close {
    position: absolute; top: 6px; inset-inline-end: 8px;
    background: none; border: none; color: #a3a7b0; font-size: 18px; cursor: pointer;
}
