/* ============================================================
   شركة الدايل العالمية المحدودة - ملف التنسيق الرئيسي
   كل الألوان في الأعلى؛ غيّرها هنا فتتغير في كل الموقع
   ============================================================ */
/* خط Cairo من ملف الموقع نفسه (ملف واحد متغيّر الأوزان من 400 إلى 800). إن لم يوجد الملف يعمل الخط من جوجل أو الخط البديل */
@font-face {
    font-family: "Cairo";
    src: url("../fonts/cairo.woff") format("woff");
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

:root {
    --blue: #2647a3;        /* أزرق الشعار */
    --blue-dark: #1b3478;
    --orange: #f36717;      /* برتقالي الشعار */
    --orange-dark: #d9560c;
    --ink: #1f2937;
    --muted: #5b6575;
    --line: #e3e8f2;
    --bg: #ffffff;
    --bg-soft: #f5f7fc;
    --radius: 10px;
    --shadow: 0 6px 20px rgba(38, 71, 163, .12);
    --font: "Cairo", Tahoma, "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.8;
    color: var(--ink);
    background: var(--bg);
    -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--orange); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.skip-link {
    position: absolute; top: -60px; inset-inline-start: 10px; z-index: 200;
    background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 6px;
}
.skip-link:focus { top: 10px; color: #fff; }

/* ---------------- الرأس ---------------- */
.site-header { background: #fff; position: relative; z-index: 100; box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }

.header-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 24px; padding-block: 12px;
}
.brand-name {
    font-size: 1.45rem; font-weight: 800; color: var(--blue); line-height: 1.4;
    flex: 0 1 260px;
}
.brand-name:hover { color: var(--orange); }

.contact-list {
    list-style: none; margin: 0; padding: 0; flex: 1 1 auto;
    display: grid; grid-template-columns: repeat(2, minmax(0, auto));
    justify-content: center; gap: 6px 28px; font-size: .92rem;
}
.contact-list li { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.contact-list a { color: var(--ink); }
.hours { display: flex; flex-direction: column; line-height: 1.55; }
.hours-line { display: block; }
.contact-list a:hover { color: var(--orange); }
.ico {
    width: 20px; height: 20px; flex: none; fill: none; stroke: var(--orange);
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.brand-logo { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo img { width: 170px; height: auto; }

/* ---------------- القائمة ---------------- */
.main-nav { background: var(--blue); }
.nav-inner { position: relative; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.menu-item { position: relative; display: flex; align-items: center; }
.menu-item > a {
    color: #fff; font-weight: 600; padding: 12px 18px; display: block;
}
.menu-item:hover > a, .menu-item.is-active > a { background: var(--blue-dark); color: #fff; }
.menu-item.is-active > a { box-shadow: inset 0 -4px 0 var(--orange); }

.sub-toggle { display: none; }
.submenu {
    list-style: none; margin: 0; padding: 6px 0; display: none;
    position: absolute; top: 100%; inset-inline-start: 0; min-width: 270px; z-index: 50;
    background: #fff; border-top: 3px solid var(--orange); border-radius: 0 0 var(--radius) var(--radius);
    box-shadow: var(--shadow);
}
.submenu a { display: block; padding: 9px 18px; color: var(--ink); font-size: .95rem; }
.submenu a:hover { background: var(--bg-soft); color: var(--orange); }
.submenu-all a { color: var(--blue); font-weight: 800; border-top: 1px solid var(--line); }
.has-sub:hover > .submenu, .has-sub:focus-within > .submenu, .has-sub.open > .submenu { display: block; }
.has-sub > a::after {
    content: ""; display: inline-block; margin-inline-start: 8px; vertical-align: middle;
    border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0;
}

.nav-toggle {
    display: none; width: 100%; background: none; border: 0; color: #fff;
    font: inherit; font-weight: 700; padding: 12px 0; cursor: pointer; text-align: start;
    align-items: center; gap: 10px;
}
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after {
    display: inline-block; width: 22px; height: 2px; background: #fff; position: relative; content: "";
}
.nav-toggle .bars::before { position: absolute; top: -7px; inset-inline-start: 0; }
.nav-toggle .bars::after  { position: absolute; top: 7px;  inset-inline-start: 0; }

/* ---------------- الصفحة الرئيسية ---------------- */
/* --- الفيديو الرئيسي --- */
.hero {
    position: relative; overflow: hidden; color: #fff; text-align: center;
    min-height: clamp(460px, 74vh, 700px); display: flex; align-items: center;
    background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(27, 52, 120, .35) 0%, rgba(27, 52, 120, .72) 100%);
}
.hero:not(.has-video) .hero-overlay {
    background:
        radial-gradient(circle at 85% 20%, rgba(243, 103, 23, .28), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255, 255, 255, .08), transparent 40%);
}
.hero-content { position: relative; z-index: 2; padding-block: 70px; }
.hero-kicker {
    display: inline-block; margin: 0 0 18px; padding: 4px 18px; font-size: 1rem; font-weight: 600;
    border: 1px solid rgba(255, 255, 255, .45); border-radius: 999px; background: rgba(255, 255, 255, .1);
}
.hero-captions { position: relative; min-height: 5.2rem; margin-bottom: 26px; }
.hero-caption {
    position: absolute; inset-inline: 0; top: 0; margin: 0;
    font-size: clamp(1.8rem, 4.6vw, 3.2rem); font-weight: 800; line-height: 1.4;
    opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease;
}
.hero-caption.is-active { opacity: 1; transform: none; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; padding: 9px 28px; }
.btn-outline:hover { background: #fff; color: var(--blue); }

/* --- بروفايل الشركة --- */
.profile-wrap { position: relative; z-index: 3; margin-top: -46px; }
.profile-banner {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    background: #fff; border-radius: 14px; padding: 22px 28px;
    border-inline-start: 6px solid var(--orange); box-shadow: 0 14px 34px rgba(38, 71, 163, .18);
}
.profile-ico {
    width: 46px; height: 46px; flex: none; fill: none; stroke: var(--blue);
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.profile-text { flex: 1 1 280px; }
.profile-text h2 { margin: 0; color: var(--blue); font-size: 1.35rem; font-weight: 800; }
.profile-text p { margin: 2px 0 0; color: var(--muted); }

/* --- من نحن --- */
.eyebrow {
    display: inline-block; color: var(--orange); font-weight: 800; letter-spacing: .02em;
    margin-bottom: 4px;
}
.section-heading { margin: 0 0 14px; color: var(--blue); font-size: 2rem; font-weight: 800; line-height: 1.5; }
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.about-text p { margin: 0 0 18px; font-size: 1.08rem; color: #374151; }
.link-more { font-weight: 800; color: var(--orange); }
.link-more::after { content: " ←"; }
.link-more:hover { color: var(--blue); }
.about-visual { position: relative; }
.about-visual::before {
    content: ""; position: absolute; inset: 18px auto -18px 18px; width: 100%; height: 100%;
    border: 3px solid var(--orange); border-radius: 16px; z-index: 0;
}
.about-visual > img, .about-logo {
    position: relative; z-index: 1; display: block; width: 100%; border-radius: 16px;
    aspect-ratio: 4 / 3; object-fit: cover; background: #fff; box-shadow: var(--shadow);
}
.about-logo { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); }
.about-logo img { width: 62%; height: auto; }

/* --- لماذا نحن متميزون --- */
.section-soft { background: var(--bg-soft); }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.feature {
    background: #fff; border-radius: 14px; padding: 32px 26px; text-align: center;
    border: 1px solid var(--line); transition: transform .25s, box-shadow .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.feature-ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 68px; height: 68px; border-radius: 50%; margin-bottom: 14px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.feature-ico svg {
    width: 32px; height: 32px; fill: none; stroke: #fff;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { margin: 0 0 8px; color: var(--blue); font-size: 1.25rem; font-weight: 800; }
.feature p { margin: 0; color: var(--muted); }

/* --- التعهد ورؤية المملكة --- */
.pledge {
    position: relative; color: #fff; text-align: center; padding: 78px 0;
    background:
        radial-gradient(circle at 12% 15%, rgba(243, 103, 23, .3), transparent 42%),
        linear-gradient(135deg, var(--blue-dark), var(--blue));
}
.pledge-inner { max-width: 880px; }
.pledge-tag {
    display: inline-block; background: var(--orange); color: #fff; font-weight: 800;
    padding: 4px 20px; border-radius: 999px; margin-bottom: 14px;
}
.pledge h2 { margin: 0 0 12px; font-size: 2.1rem; font-weight: 800; }
.pledge p { margin: 0; font-size: 1.2rem; line-height: 2; opacity: .96; }

/* --- شركاء النجاح --- */
.partners {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px;
}
.partners li {
    display: flex; align-items: center; justify-content: center; height: 110px; padding: 16px;
    background: #fff; border: 1px solid var(--line); border-radius: 12px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.partners li:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--orange); }
.partners img { max-width: 100%; max-height: 100%; object-fit: contain; filter: grayscale(1); opacity: .8; transition: filter .25s, opacity .25s; }
.partners li:hover img { filter: none; opacity: 1; }

/* --- ظهور الأقسام تدريجياً عند التمرير (يعمل فقط عند تشغيل جافاسكربت) --- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

.btn {
    display: inline-block; font: inherit; font-weight: 700; border: 0; cursor: pointer;
    padding: 11px 30px; border-radius: 999px; transition: background .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-accent { background: var(--orange); color: #fff; }
.btn-accent:hover { background: var(--orange-dark); color: #fff; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }

.section { padding: 56px 0; }
.section-title { margin: 0 0 28px; text-align: center; color: var(--blue); font-size: 1.9rem; font-weight: 800; }
.section-title::after {
    content: ""; display: block; width: 60px; height: 4px; background: var(--orange);
    margin: 10px auto 0; border-radius: 2px;
}
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.card {
    display: flex; flex-direction: column; justify-content: space-between; gap: 14px;
    background: #fff; border: 1px solid var(--line); border-top: 4px solid var(--blue);
    border-radius: var(--radius); padding: 22px; color: var(--ink);
    transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-4px); border-top-color: var(--orange); color: var(--ink); }
.card h3 { margin: 0; font-size: 1.15rem; color: var(--blue); }
.card-more { color: var(--orange); font-weight: 700; font-size: .92rem; }

/* ---------------- الصفحات الداخلية ---------------- */
.page-head { background: var(--bg-soft); border-bottom: 1px solid var(--line); padding: 34px 0; }
.page-head h1 { margin: 0; color: var(--blue); font-size: 2rem; font-weight: 800; }
.prose { max-width: 860px; }
.prose h2 { color: var(--blue); margin-top: 0; }

/* ---------------- الذيل ---------------- */
.site-footer { background: var(--blue-dark); color: #dfe6f7; margin-top: 40px; }
.footer-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 12px; padding-block: 20px;
}
.copyright { margin: 0; font-size: .95rem; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.social a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%; color: #fff;
    background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22);
    transition: background .2s, transform .2s, border-color .2s;
}
.social a svg { width: 18px; height: 18px; fill: currentColor; }
.social a:hover, .social a:focus-visible { background: var(--orange); border-color: var(--orange); color: #fff; transform: translateY(-3px); }

/* ---------------- زر واتساب العائم ---------------- */
.whatsapp-float {
    position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 150;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28); transition: transform .2s;
}
.whatsapp-float:hover { transform: scale(1.08); color: #fff; }
.whatsapp-float svg { width: 32px; height: 32px; }

/* ---------------- الجوال واللوحي ---------------- */
@media (max-width: 1000px) {
    .header-top { flex-wrap: wrap; justify-content: center; text-align: center; }
    .brand-name { order: 2; flex: 1 1 100%; text-align: center; font-size: 1.3rem; }
    .brand-logo { order: 1; }
    .contact-list { order: 3; flex: 1 1 100%; grid-template-columns: 1fr; justify-items: center; }
}
@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .menu { display: none; flex-direction: column; padding-bottom: 8px; }
    .menu.open { display: flex; }
    .menu-item { flex-wrap: wrap; }
    .menu-item > a { flex: 1; }
    .has-sub > a::after { display: none; }
    .sub-toggle {
        display: block; width: 48px; align-self: stretch; background: none; border: 0; cursor: pointer;
        border-inline-start: 1px solid rgba(255, 255, 255, .2);
    }
    .sub-toggle::before {
        content: ""; display: inline-block; border: 6px solid transparent;
        border-top-color: #fff; border-bottom: 0; transition: transform .2s;
    }
    .has-sub.open > .sub-toggle::before { transform: rotate(180deg); }
    .submenu {
        position: static; display: none; width: 100%; min-width: 0; box-shadow: none;
        background: rgba(0, 0, 0, .18); border-top: 0; border-radius: 0;
    }
    .submenu a { color: #fff; padding-inline: 34px; }
    .submenu a:hover { background: rgba(0, 0, 0, .15); color: #fff; }
    .submenu-all a { color: #fff; border-top-color: rgba(255, 255, 255, .25); }
    .has-sub:hover > .submenu { display: none; }
    .has-sub.open > .submenu { display: block; }
    .about { grid-template-columns: 1fr; gap: 36px; }
    .about-visual::before { display: none; }
    .hero-captions { min-height: 6.4rem; }
    .profile-banner { text-align: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; scroll-behavior: auto !important; }
    .js .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   صفحة من نحن وما يتكرر في الصفحات الداخلية
   ============================================================ */
.page-hero {
    color: #fff; padding: 54px 0 46px; text-align: start;
    background:
        radial-gradient(circle at 90% 10%, rgba(243, 103, 23, .3), transparent 42%),
        linear-gradient(135deg, var(--blue), var(--blue-dark));
}
.page-hero h1 { margin: 6px 0 4px; font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 800; }
.page-hero p { margin: 0; font-size: 1.15rem; opacity: .92; }
.breadcrumb { display: flex; gap: 8px; font-size: .92rem; opacity: .9; }
.breadcrumb a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb a:hover { color: var(--orange); }

.about-visual { margin: 0; }
.about-visual figcaption { position: relative; z-index: 1; margin-top: 10px; text-align: center; color: var(--muted); font-size: .92rem; }

.scope-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 18px; }
.scope-card {
    position: relative; overflow: hidden; background: #fff; border: 1px solid var(--line);
    border-radius: 14px; padding: 26px 22px; min-height: 120px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.scope-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: var(--orange); }
.scope-num {
    position: absolute; inset-block-start: 6px; inset-inline-end: 14px;
    font-size: 2.6rem; font-weight: 800; line-height: 1; color: rgba(38, 71, 163, .1);
}
.scope-card h3 { position: relative; margin: 0; padding-top: 22px; color: var(--blue); font-size: 1.12rem; font-weight: 800; }

.support-box {
    margin-top: 28px; background: #fff; border-radius: 14px; padding: 26px 30px;
    border-inline-start: 6px solid var(--orange); box-shadow: 0 6px 20px rgba(38, 71, 163, .08);
}
.support-box h3 { margin: 0 0 12px; color: var(--blue); font-size: 1.25rem; font-weight: 800; }

.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.support-box .checklist { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.checklist li { position: relative; padding-inline-start: 32px; color: #374151; }
.checklist li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 20px; height: 20px;
    border-radius: 50%; background: var(--orange);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.vm-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 26px; }
.vm-card {
    background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue);
    border-radius: 14px; padding: 32px 30px; transition: box-shadow .25s, border-top-color .25s;
}
.vm-card:hover { box-shadow: var(--shadow); border-top-color: var(--orange); }
.vm-card h2 { margin: 0 0 12px; color: var(--blue); font-size: 1.6rem; font-weight: 800; }
.vm-card p { margin: 0; font-size: 1.08rem; color: #374151; }

.cta-band { background: var(--bg-soft); padding: 54px 0; text-align: center; border-top: 1px solid var(--line); }
.cta-band h2 { margin: 0 0 20px; color: var(--blue); font-size: 1.7rem; font-weight: 800; }
.cta-band .btn-outline { color: var(--blue); border-color: var(--blue); }
.cta-band .btn-outline:hover { background: var(--blue); color: #fff; }

/* ============================================================
   صفحات المحتوى الديناميكية (الأقسام التي تُدار من لوحة التحكم)
   ============================================================ */
.page-cover { margin: 36px 0 0; }
.page-cover img {
    display: block; width: 100%; max-height: 460px; object-fit: cover;
    border-radius: 16px; box-shadow: var(--shadow);
}

/* النص المنسّق القادم من المحرر */
.rich { color: #374151; font-size: 1.08rem; }
.rich > :first-child { margin-top: 0; }
.rich > :last-child { margin-bottom: 0; }
.rich p { margin: 0 0 1.1em; }
.rich h2, .rich h3, .rich h4 { color: var(--blue); line-height: 1.5; margin: 1.4em 0 .5em; font-weight: 800; }
.rich ul, .rich ol { margin: 0 0 1.1em; padding-inline-start: 1.6em; }
.rich li { margin-bottom: .35em; }
.rich a { text-decoration: underline; text-underline-offset: 3px; }
.rich blockquote {
    margin: 1.2em 0; padding: 8px 20px; background: var(--bg-soft);
    border-inline-start: 5px solid var(--orange); border-radius: 8px;
}
.rich table { border-collapse: collapse; width: 100%; margin: 0 0 1.2em; }
.rich th, .rich td { border: 1px solid var(--line); padding: 8px 12px; text-align: start; }
.rich th { background: var(--bg-soft); color: var(--blue); }
.block-text .prose { max-width: 900px; }
.block-text h2, .image-text-body h2 { margin: 0 0 14px; color: var(--blue); font-size: 1.8rem; font-weight: 800; }

/* نص مع صورة */
.image-text { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.image-text.is-end .image-text-media { order: 2; }
.image-text-media { margin: 0; }
.image-text-media img { display: block; width: 100%; border-radius: 16px; box-shadow: var(--shadow); }
.image-text-body.prose { max-width: none; }
.image-text:not(:has(.image-text-media)) { grid-template-columns: 1fr; }

/* معرض الصور */
.gallery {
    list-style: none; margin: 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px;
}
.gallery li { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--bg-soft); }
.gallery a { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery a:hover img, .gallery a:focus-visible img { transform: scale(1.07); }

/* نافذة تكبير الصورة */
.lightbox {
    border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 94vh;
    overflow: visible; margin: auto;
}
.lightbox::backdrop { background: rgba(10, 18, 40, .88); }
.lightbox img { display: block; max-width: 92vw; max-height: 88vh; border-radius: 10px; margin: auto; }
.lightbox button {
    position: fixed; z-index: 2; width: 48px; height: 48px; border: 0; border-radius: 50%;
    background: rgba(255, 255, 255, .92); color: var(--blue-dark); font-size: 1.9rem; line-height: 1;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.lightbox button:hover { background: var(--orange); color: #fff; }
.lb-close { top: 18px; inset-inline-start: 18px; }
.lb-prev { top: 50%; inset-inline-start: 18px; transform: translateY(-50%); }
.lb-next { top: 50%; inset-inline-end: 18px; transform: translateY(-50%); }

@media (max-width: 860px) {
    .image-text { grid-template-columns: 1fr; gap: 24px; }
    .image-text.is-end .image-text-media { order: 0; }
}

/* ============================================================
   صفحة تواصل معنا
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: 28px; align-items: start; }
.contact-card {
    background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue);
    border-radius: 14px; padding: 30px; box-shadow: 0 6px 20px rgba(38, 71, 163, .07);
}
.contact-card h2 { margin: 0 0 8px; color: var(--blue); font-size: 1.5rem; font-weight: 800; }
.contact-intro { margin: 0 0 18px; color: var(--muted); }

.contact-form .field { margin-bottom: 16px; }
.contact-form .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label { display: block; margin-bottom: 4px; font-weight: 700; color: var(--ink); font-size: .96rem; }
.contact-form .req { color: var(--orange); }
.contact-form input, .contact-form textarea {
    width: 100%; font: inherit; color: var(--ink); background: #fff;
    border: 1.5px solid #cfd7e8; border-radius: 10px; padding: 10px 14px;
    transition: border-color .2s, box-shadow .2s;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(38, 71, 163, .18);
}
.contact-form [aria-invalid="true"] { border-color: #c0392b; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.field-hint { margin: -6px 0 16px; font-size: .88rem; color: var(--muted); }
.contact-form .btn { width: 100%; padding-block: 13px; font-size: 1.05rem; }

/* حقل الروبوتات المخفي: خارج الشاشة لا بـ display:none لأن بعض الروبوتات تتجاهل المخفي */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; font-weight: 600; }
.alert ul { margin: 6px 0 0; padding-inline-start: 20px; font-weight: 400; }
.alert-success { background: #e8f6ee; color: #1b6b3a; border: 1px solid #b7e1c8; }
.alert-error { background: #fdeceb; color: #9b2c22; border: 1px solid #f3c1bc; }

.contact-list-lg { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 20px; font-size: 1rem; }
.contact-list-lg li { align-items: flex-start; }
.contact-info .btn { display: inline-block; }

.branches { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.branch {
    background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--orange);
    border-radius: 12px; padding: 20px 22px; transition: box-shadow .25s, transform .25s;
}
.branch:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.branch h3 { margin: 0 0 6px; color: var(--blue); font-size: 1.15rem; font-weight: 800; }
.branch p { margin: 0 0 4px; color: var(--muted); }
.branch-phone a { color: var(--ink); font-weight: 700; }
.branch-phone a:hover { color: var(--orange); }

@media (max-width: 900px) {
    .contact-grid { grid-template-columns: 1fr; }
    .contact-form .field-row { grid-template-columns: 1fr; gap: 0; }
}

/* ============================================================
   بطاقات الأقسام (صفحة خدماتنا ومشاريعنا والرئيسية)
   ============================================================ */
.service-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.service-card {
    display: flex; flex-direction: column; overflow: hidden; color: var(--ink);
    background: #fff; border: 1px solid var(--line); border-radius: 14px;
    transition: box-shadow .25s, transform .25s, border-color .25s;
}
.service-card:hover, .service-card:focus-visible {
    transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--orange); color: var(--ink);
}
.service-card-media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.service-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.service-card:hover .service-card-media img { transform: scale(1.07); }
.service-card-media img.is-placeholder { object-fit: contain; padding: 22%; opacity: .35; }
.service-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 20px 22px 22px; }
.service-card h3 { margin: 0; color: var(--blue); font-size: 1.2rem; font-weight: 800; line-height: 1.5; }
.service-card p {
    margin: 0; color: var(--muted); font-size: .97rem; line-height: 1.8;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.service-card .card-more { margin-top: auto; padding-top: 6px; }
.service-card .card-more::after { content: " ←"; }
.section-more { margin: 30px 0 0; text-align: center; }

/* ===== كلمات الإدارة (من نحن) ===== */
.leaders-section { border-top: 1px solid var(--line); }
.leaders { display: grid; gap: 28px; }
.leader {
    display: grid; grid-template-columns: 230px 1fr; gap: 30px; align-items: start;
    background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--blue);
    border-radius: 14px; padding: 28px; transition: box-shadow .25s, border-color .25s;
}
.leader:hover { box-shadow: var(--shadow); border-inline-start-color: var(--orange); }
.leader-photo {
    border-radius: 12px; overflow: hidden; background: var(--bg-soft); aspect-ratio: 4 / 5;
    display: flex; align-items: center; justify-content: center;
}
.leader-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.leader-photo.is-empty img { width: 60%; height: auto; object-fit: contain; opacity: .35; }
.leader-role {
    display: inline-block; background: var(--orange); color: #fff; font-weight: 700; font-size: .9rem;
    padding: 2px 14px; border-radius: 999px;
}
.leader-name { margin: 8px 0 14px; color: var(--blue); font-size: 1.5rem; font-weight: 800; }
.leader-body p { margin: 0 0 12px; color: #374151; }
.leader-more summary {
    cursor: pointer; display: inline-block; margin: 4px 0 14px; color: var(--blue); font-weight: 700;
}
.leader-more summary:hover { color: var(--orange); }
.leader-more[open] summary { display: none; }
@media (max-width: 760px) {
    .leader { grid-template-columns: 1fr; padding: 22px; }
    .leader-photo { max-width: 220px; margin-inline: auto; }
}


/* ===== صفحتا العقار والمعرض (اللون من --blue ويتغير بلون كل صفحة) ===== */
.brand-hero { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand-hero-text { flex: 1; min-width: 0; }
.page-brand-logo {
    flex: 0 0 auto; background: #fff; border-radius: 14px; padding: 12px 18px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .18); display: flex; align-items: center; justify-content: center;
}
.page-brand-logo img { display: block; max-height: 120px; max-width: 280px; width: auto; height: auto; object-fit: contain; }
.brand-big-logo { display: flex; align-items: center; justify-content: center; background: var(--bg-soft); border-radius: 14px; padding: 36px; }
.brand-big-logo img { max-width: 100%; max-height: 260px; width: auto; height: auto; object-fit: contain; }
.brand-phones { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 760px; margin: 0 auto; }
.brand-phone {
    display: block; text-align: center; background: #fff; border: 1px solid var(--line); border-top: 5px solid var(--blue);
    border-radius: 14px; padding: 24px 20px; color: var(--ink); transition: box-shadow .25s, border-top-color .25s;
}
.brand-phone:hover { box-shadow: var(--shadow); border-top-color: var(--orange); color: var(--ink); }
.brand-phone span { display: block; color: var(--muted); font-weight: 600; }
.brand-phone strong { display: block; margin-top: 4px; color: var(--blue); font-size: 1.5rem; font-weight: 800; direction: ltr; }
.brand-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
@media (max-width: 640px) {
    .brand-hero { flex-direction: column-reverse; align-items: flex-start; }
    .page-brand-logo img { max-height: 70px; }
}
.brand-address { text-align: center; margin: 0 0 20px; font-size: 1.15rem; color: var(--ink); font-weight: 600; }
.brand-map { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.brand-map iframe { display: block; width: 100%; height: 420px; border: 0; }
@media (max-width: 640px) { .brand-map iframe { height: 320px; } }

/* ===== صفحة الروابط والحسابات البنكية (/links) ===== */
.links-hero { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); color: #fff; text-align: center; padding: 38px 0 34px; }
.links-logo { background: #fff; border-radius: 16px; padding: 12px 20px; width: 200px; height: auto; margin: 0 auto 16px; display: block; }
.links-hero h1 { margin: 0 0 6px; font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; }
.links-hero p { margin: 0; opacity: .92; }
.links-wrap { max-width: 640px; }
.links-title { margin: 34px 0 14px; color: var(--blue); font-size: 1.35rem; font-weight: 800; text-align: center; }
.links-title:first-child { margin-top: 0; }
.links-note { text-align: center; margin: -6px 0 14px; color: var(--muted); }
.links-list, .share-list { list-style: none; margin: 0; padding: 0; }
.links-list { display: grid; gap: 12px; }
.links-btn {
    display: flex; align-items: center; gap: 14px; padding: 13px 20px; border-radius: 12px;
    background: #fff; border: 1px solid var(--line); border-inline-start: 5px solid var(--blue);
    color: var(--ink); font-weight: 700; transition: box-shadow .2s, transform .2s, border-color .2s;
}
.links-btn:hover, .links-btn:focus-visible { box-shadow: var(--shadow); transform: translateY(-2px); border-inline-start-color: var(--orange); color: var(--ink); }
.links-btn svg { width: 24px; height: 24px; flex: 0 0 24px; color: var(--blue); fill: currentColor; }
.links-btn svg[stroke] { fill: none; }
.links-btn.kind-whatsapp svg { color: #25d366; }
.bank-list { display: grid; gap: 12px; }
.bank { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.bank summary {
    cursor: pointer; padding: 14px 20px; font-weight: 800; color: #fff; background: var(--blue);
    list-style: none; display: flex; align-items: center; justify-content: space-between;
}
.bank summary::-webkit-details-marker { display: none; }
.bank summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.bank[open] summary::after { content: "−"; }
.bank dl { margin: 0; padding: 6px 20px 14px; }
.bank dl > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.bank dl > div:last-child { border-bottom: 0; }
.bank dt { color: var(--muted); font-size: .9rem; font-weight: 600; }
.bank dd { margin: 2px 0 0; font-weight: 700; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; word-break: break-word; }
.bank dd bdi { font-size: 1.05rem; letter-spacing: .3px; }
.copy-btn {
    font: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; padding: 5px 16px; border-radius: 999px;
    border: 1px solid var(--blue); background: #fff; color: var(--blue); transition: background .2s, color .2s;
}
.copy-btn:hover, .copy-btn.is-done { background: var(--blue); color: #fff; }
.share-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.share-list a {
    display: inline-block; padding: 6px 18px; border-radius: 999px; border: 1px solid var(--line);
    background: #fff; color: var(--ink); font-weight: 600;
}
.share-list a:hover { border-color: var(--blue); color: var(--blue); }

.bank-accounts { list-style: none; margin: 0; padding: 4px 20px 12px; }
.bank-accounts li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.bank-accounts li:last-child { border-bottom: 0; }
.bank-title { display: block; color: var(--blue-dark); font-weight: 800; margin-bottom: 4px; }
.bank-iban { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.bank-iban bdi { font-weight: 700; font-size: 1.02rem; letter-spacing: .4px; word-break: break-all; }
