/* site.styles.layout */

        * { box-sizing: border-box; margin: 0; padding: 0; }
        html { scroll-behavior: smooth; }
        /* ===== لوحة خلفية ناعمة متدرّجة متّصلة عبر الصفحة (نمط نماء — بهويتنا الكحلي/الذهبي) ===== */
        body { font-family: var(--font-body); color: var(--ink); line-height: 1.8; min-height: 100vh; position: relative;
            background: #ffffff; }
        /* بلا طبقة زخرفية خلف المحتوى: الدوائر الضبابية كانت تُبقي العين مشغولة
           خلف كل نصّ. الأرضية أبيض هادئ ولمسة لون واحدة أعلى الصفحة. */
        h1, h2, h3, .brand span, .page-title, .sec-head h2 { font-family: var(--font-heading); }
        a { text-decoration: none; color: inherit; }
        img { max-width: 100%; display: block; }
        .container { max-width: 1160px; margin: 0 auto; padding: 0 1.4rem; }
        ::selection { background: var(--brand); color: #fff; }

        /* ===== Top utility bar ===== */
        .topbar { background: var(--brand-900); color: #d6e9df; font-size: .82rem; }
        .topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 40px; }
        .topbar__contact { display: flex; gap: 1.2rem; }
        .topbar__contact a, .topbar__links a { color: #c9d6ea; display: inline-flex; align-items: center; gap: .35rem; }
        .topbar__contact a:hover, .topbar__links a:hover { color: #fff; }
        .topbar__links { display: flex; gap: 1.2rem; }
        .topbar__links a { position: relative; }

        /* ===== Header / Nav =====
           شريطان كما في مواقع الجمعيات: صفّ الهوية (شعار + تواصل + دعوة) ثم صفّ التنقّل
           بعرض الصفحة. كان الثلاثة في صفّ واحد بارتفاع ثابت 74px، فاسم جمعية طويل مع
           عشرة بنود قائمة يزاحم بعضه ويُقصّ. الفصل يعطي كلّ عنصر مساحته. */
        .site-header { background: linear-gradient(135deg, var(--brand-700), var(--brand-900)); color: #fff; }
        .site-header .container { display: flex; align-items: center; justify-content: space-between;
            min-height: 82px; gap: 1.2rem; padding-block: .7rem; }
        .brand { display: flex; align-items: center; gap: .8rem; min-width: 0; flex-shrink: 0; color: #fff; }
        .brand img { height: 52px; width: auto; border-radius: .7rem; background: #fff; padding: 4px; flex-shrink: 0; }
        /* بلا شعار مرفوع: حرف الجمعية في مربّع — الرأس يحتاج مرساة بصرية لا نصًّا عائمًا */
        .brand__mark { width: 48px; height: 48px; border-radius: .8rem; flex-shrink: 0; display: grid; place-items: center;
            background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2);
            font-family: var(--font-heading); font-weight: 800; font-size: 1.35rem; color: #fff; }
        .brand__txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
        .brand__name { font-family: var(--font-heading); font-weight: 800; font-size: 1.12rem; color: #fff;
            white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .brand__sub { font-size: .74rem; color: rgba(255,255,255,.62); }

        /* صفّ التنقّل: بعرض الصفحة، لاصق، وأغمق من صفّ الهوية */
        .site-nav { background: var(--brand-900); position: sticky; top: 0; z-index: 50;
            box-shadow: 0 6px 18px -12px rgba(0,0,0,.5); }
        .site-nav .container { display: flex; align-items: center; justify-content: center; gap: .15rem; flex-wrap: wrap; }
        .nav { display: flex; align-items: center; gap: .1rem; flex-wrap: wrap; justify-content: center; }
        .nav a { padding: .8rem .8rem; font-weight: 600; font-size: .9rem; color: rgba(255,255,255,.82);
            transition: color .15s, background .15s; border-radius: 0; }
        .nav a:hover { background: rgba(255,255,255,.08); color: #fff; }
        .nav a.active { color: #fff; background: rgba(255,255,255,.12); box-shadow: inset 0 -3px 0 0 var(--gold); }
        /* قائمة منسدلة (بند له أبناء) */
        .nav-drop { position: relative; display: inline-flex; }
        .nav-sub { display: none; position: absolute; top: 100%; inset-inline-start: 0; min-width: 210px;
            background: #fff; border: 1px solid var(--line); border-radius: .8rem; padding: .4rem;
            box-shadow: 0 18px 34px -18px rgba(0,0,0,.28); z-index: 60; }
        .nav-sub a { display: block; white-space: nowrap; }
        .nav-sub .nav-drop { display: block; }
        .nav-sub .nav-drop > a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
        /* المستوى الثالث فأعلى يخرج جانباً لا تحت أبيه */
        .nav-sub .nav-sub { top: -.4rem; inset-inline-start: 100%; }
        .nav-drop:hover > .nav-sub, .nav-drop:focus-within > .nav-sub { display: block; }
        .nav-cta { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
        .menu-toggle { display: none; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: .7rem;
            padding: .55rem .75rem; cursor: pointer; font-size: 1.2rem; }
        /* زرّا الحساب والتبرّع على أرضية داكنة */
        .site-header .btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
        .site-header .btn--ghost:hover { background: rgba(255,255,255,.2); border-color: rgba(255,255,255,.4); }
        .site-header .btn--brand { background: #fff; color: var(--brand-700); box-shadow: 0 10px 22px -12px rgba(0,0,0,.5); }
        .site-header .btn--brand:hover { background: var(--gold-soft); }
        /* تواصل سريع داخل صفّ الهوية */
        .head-contact { display: flex; align-items: center; gap: 1.1rem; font-size: .84rem; color: rgba(255,255,255,.8); }
        .head-contact a { display: inline-flex; align-items: center; gap: .4rem; }
        .head-contact a:hover { color: #fff; }
        @media (max-width: 1080px) { .head-contact { display: none; } }

        /* ===== Buttons ===== */
        .btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-family: inherit; font-weight: 700;
            border: 0; cursor: pointer; border-radius: var(--radius-btn); padding: .72rem 1.4rem; font-size: .95rem; transition: transform .12s, filter .12s; }
        /* الفعل الأساسي بلون الجمعية مصمتًا — لا تدرّج ذهبي ثابت يزاحم هويّتها */
        .btn--brand { background: var(--brand); color: #fff; box-shadow: 0 12px 24px -12px var(--brand-shadow); }
        .btn--brand:hover { transform: translateY(-2px); background: var(--brand-700); }
        .btn--navy { background: var(--brand-700); color: #fff; }
        .btn--navy:hover { transform: translateY(-2px); background: var(--brand-900); }
        .btn--ghost { background: #fff; color: var(--brand); border: 1px solid var(--line); }
        .btn--ghost:hover { border-color: var(--brand); background: var(--gold-soft); }
        .btn--white { background: #fff; color: var(--brand-700); }
        .btn--lg { padding: .95rem 2rem; font-size: 1.05rem; }

        /* ===== Sections ===== */
        section { padding: 3.5rem 0; position: relative; }
        /* التبادل بين الأبيض والملوّن يعطي إيقاعًا بدل شريط لون متّصل */
        section:nth-of-type(even) { background: var(--soft-bg); }
        /* الأقسام شفّافة فوق لوحة الخلفية (نمط نماء)؛ من يريد لمسة لون يضيف .sec-tint */
        .sec-tint { background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(244,247,252,.2)); }
        .sec-head { text-align: center; max-width: 620px; margin: 0 auto 2.2rem; }

        /* ===== كاروسيل عام (صف أفقي + أسهم دائرية) — على نمط نماء ===== */
        .car { position: relative; }
        .car-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.75rem; }
        .car-head .sec-head { text-align: start; margin: 0; max-width: none; }
        .car-head .sec-head h2::after { margin-inline-start: 0; margin-inline-end: auto; }
        .car-nav { display: flex; gap: .55rem; flex-shrink: 0; }
        .car-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--brand);
            display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; box-shadow: 0 6px 16px -10px rgba(16,24,40,.25); }
        .car-arrow:hover { background: var(--brand); color: #fff; border-color: var(--brand); transform: translateY(-2px); }
        .car-arrow svg { width: 20px; height: 20px; }
        .car-track { display: flex; gap: 1.3rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
            padding: .5rem .25rem 1rem; scrollbar-width: none; }
        .car-track::-webkit-scrollbar { display: none; }
        .car-track > * { scroll-snap-align: start; flex: 0 0 auto; }
        .sec-head h2 { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.35; color: var(--brand-900); }
        .sec-head h2::after { content: ''; display: block; width: 56px; height: 4px; border-radius: 999px;
            background: linear-gradient(90deg, var(--gold), var(--gold)); margin: .9rem auto 0; }
        .sec-head p { color: var(--muted); margin-top: .9rem; font-size: 1.05rem; }
        /* علوية ذهبية مميّزة */
        .eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .82rem; font-weight: 800; letter-spacing: .02em;
            color: var(--gold-2); background: var(--gold-soft); padding: .35rem .9rem; border-radius: 999px; margin-bottom: 1rem; }
        .eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }

        /* ===== Cards / Grid ===== */
        .grid { display: grid; gap: 1.5rem; }
        .grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
        .card { background: #fff; border-radius: var(--radius-card); overflow: hidden; border: 1px solid rgba(17,24,39,.05);
            box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -16px rgba(16,24,40,.12); transition: transform .2s, box-shadow .2s; }
        .card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px -18px rgba(16,24,40,.22); }
        .card__cover { height: 185px; background-size: cover; background-position: center;
            background-image: linear-gradient(135deg, var(--brand-2), var(--brand-900)); }
        .card__body { padding: 1.35rem; }
        .card__title { font-weight: 800; font-size: 1.15rem; margin-bottom: .5rem; }
        .card__desc { color: var(--muted); font-size: .92rem; margin-bottom: 1rem;
            display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
        .card__meta { font-size: .82rem; color: #94a3b8; }

        .progress { height: 9px; background: #eef0f4; border-radius: 999px; overflow: hidden; margin-bottom: .5rem; }
        .progress__fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold)); border-radius: 999px; }
        .progress-meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); }
        .progress-meta b { color: var(--ink); }

        /* ===== Footer ===== */
        .site-footer { background: var(--brand-900); color: #cbd5e1; padding: 3.5rem 0 1.5rem; margin-top: 2rem;
            background-image: linear-gradient(180deg, rgba(255,255,255,.03), transparent 200px); }
        .footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
        .site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 1rem; }
        .site-footer a { display: block; color: #a3b4cd; padding: .25rem 0; }
        .site-footer a:hover { color: #fff; }
        .footer-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: .9rem; }
        .footer-brand img { height: 44px; border-radius: .6rem; background: #fff; padding: 3px; }
        .footer-brand span { font-weight: 800; font-size: 1.15rem; color: #fff; }
        .footer-social { display: flex; gap: .55rem; margin-top: 1rem; }
        .footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); color: #c9d6ea;
            display: flex; align-items: center; justify-content: center; padding: 0; transition: background .15s, color .15s; }
        .footer-social a:hover { background: var(--brand-2); color: #fff; }
        .footer-bottom { text-align: center; border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.2rem; padding-top: 1.25rem; font-size: .85rem; color: #8496b2; }

        /* ===== شريط رؤية 2030 (نفخر بدعم الرؤية) — على نمط مواقع الجمعيات ===== */
        .vision-strip { display: flex; align-items: center; justify-content: center; gap: 1.1rem; flex-wrap: wrap;
            border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.8rem; text-align: center; }
        .vision-strip__txt { color: #cfe3dc; font-size: .95rem; font-weight: 600; }
        .vision-badge { display: inline-flex; flex-direction: column; align-items: center; line-height: 1.05; padding: .3rem 1.4rem;
            border-inline-start: 2px solid rgba(255,255,255,.14); }
        .vision-badge__top { display: flex; align-items: baseline; gap: .45rem; }
        .vision-badge__ar { color: #e7f0ec; font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; }
        .vision-badge__v { color: #fff; font-weight: 800; letter-spacing: .14em; font-size: .8rem; }
        .vision-badge__n { font-family: var(--font-heading); font-weight: 800; font-size: 2.5rem; line-height: 1; margin: .1rem 0;
            background: linear-gradient(135deg, var(--gold), var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
        .vision-badge__sub { color: #9fc2b8; font-size: .68rem; letter-spacing: .02em; }

        /* ===== واتساب عائم ===== */
        .site-wa { position: fixed; inset-block-end: 1.4rem; inset-inline-end: 1.4rem; z-index: 8990;
            display: inline-flex; align-items: center; gap: .55rem; height: 3.5rem; padding-inline: .95rem;
            border-radius: 999px; background: #25d366; color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
            box-shadow: 0 14px 30px -12px rgba(18,140,70,.65); transition: transform .2s, box-shadow .2s; }
        .site-wa svg { width: 1.65rem; height: 1.65rem; flex: none; }
        .site-wa:hover { transform: translateY(-3px); box-shadow: 0 18px 34px -12px rgba(18,140,70,.75); }
        .site-wa:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 3px; }
        /* الاسم يظهر عند المرور على الشاشات العريضة؛ على الجوال دائرة فقط لا تغطّي المحتوى */
        .site-wa__label { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .3s ease; }
        .site-wa:hover .site-wa__label, .site-wa:focus-visible .site-wa__label { max-width: 12rem; }
        @media (hover: none), (max-width: 600px) { .site-wa__label { display: none; } .site-wa { width: 3.5rem; padding: 0; justify-content: center; } }
        @media (prefers-reduced-motion: reduce) { .site-wa, .site-wa__label { transition: none; } }
        @media print { .site-wa { display: none; } }

        /* ===== تبويب «تبرّع الآن» العائم على حافة الصفحة (مثل نماء) ===== */
        .donate-tab { position: fixed; inset-inline-start: 0; top: 44%; z-index: 60; display: inline-flex; align-items: center; gap: .45rem;
            background: var(--brand); color: #fff; font-weight: 800; font-size: .9rem;
            padding: .8rem .9rem; border-radius: 0 1rem 1rem 0; box-shadow: 0 12px 26px -10px rgba(0,0,0,.4);
            transition: padding .15s, filter .15s; }
        .donate-tab:hover { filter: brightness(1.05); padding-inline-end: 1.3rem; }
        .donate-tab svg { width: 18px; height: 18px; }
        @media (max-width: 600px) { .donate-tab { font-size: .8rem; padding: .65rem .7rem; } .donate-tab span { display: none; } }

        /* ===== Forms ===== */
        .form-card { background: #fff; border-radius: 1.5rem; padding: 2.2rem; border: 1px solid rgba(17,24,39,.05);
            box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 14px 34px -20px rgba(16,24,40,.18); }
        .field { margin-bottom: 1.1rem; }
        .field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; }
        .field .req { color: #dc2626; }
        .field input, .field select, .field textarea { width: 100%; font-family: inherit; font-size: 1rem; padding: .75rem .9rem;
            border: 1px solid #e2e8f0; border-radius: .85rem; outline: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
        .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-ring); }
        .field textarea { resize: vertical; min-height: 120px; }
        .field .err { color: #dc2626; font-size: .82rem; margin-top: .3rem; }
        .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
        .flash { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; padding: .9rem 1.1rem; border-radius: .9rem; margin-bottom: 1.4rem; font-weight: 600; }
        .form-errors { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; padding: .9rem 1.1rem; border-radius: .9rem; margin-bottom: 1.4rem; font-size: .9rem; }
        @media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }

        /* ===== إعدادات الثيم (App\Themes\ActiveTheme::bodyClasses) — لا تُطبَّق على classic بقيمه الافتراضية ===== */
        .card-style-outline .card, .card-style-outline .hh-door, .card-style-outline .hh-proj, .card-style-outline .hh-art,
        .card-style-outline .form-card { box-shadow: none; border: 1px solid var(--line); }
        .card-style-flat .card, .card-style-flat .hh-door, .card-style-flat .hh-proj, .card-style-flat .hh-art,
        .card-style-flat .form-card { box-shadow: none; border-color: transparent; background: var(--soft-bg); }
        .section-bg-plain section:nth-of-type(even), .section-bg-plain .hh-sec--soft { background: transparent; }
        .footer-tone-brand .site-footer { background: var(--brand-700); }
        .footer-tone-light .site-footer { background: var(--soft-bg); color: var(--ink); background-image: none; }
        .footer-tone-light .site-footer h4, .footer-tone-light .footer-brand span { color: var(--brand-900); }
        .footer-tone-light .site-footer a, .footer-tone-light .site-footer p, .footer-tone-light .site-footer span { color: var(--muted) !important; }
        .footer-tone-light .site-footer a:hover { color: var(--brand) !important; }
        .footer-tone-light .footer-social a { background: #fff; border: 1px solid var(--line); }
        .footer-tone-light .vision-strip, .footer-tone-light .footer-bottom { border-color: var(--line); }
        .footer-tone-light .vision-badge__ar, .footer-tone-light .vision-badge__v { color: var(--brand-900); }
        .footer-tone-light .footer-brand span, .footer-tone-light .footer-bottom b { color: var(--brand-900) !important; }
        /* نصّ حقوق النشر والرؤية ليس داخل a/p/span ⇒ يلزمه لونه على الخلفية الفاتحة (تباين مقروء) */
        .footer-tone-light .footer-bottom, .footer-tone-light .vision-strip__txt { color: var(--muted); }
        .footer-tone-light .vision-badge { border-color: var(--line); }
        .footer-tone-light .vision-badge__sub { color: var(--muted) !important; }

        @media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
        @media (max-width: 820px) {
            .topbar { display: none; }
            .nav { display: none; position: absolute; top: 100%; inset-inline: 0; background: var(--brand-900);
                flex-direction: column; align-items: stretch; padding: .5rem .75rem 1rem; gap: .1rem;
                box-shadow: 0 18px 30px -18px rgba(0,0,0,.45); }
            .nav.open { display: flex; }
            .nav a { text-align: start; }
            .site-nav { position: relative; }
            .site-nav .container { justify-content: flex-end; }
            .menu-toggle { display: block; }
            .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
        }
        /* جوال: اسم الجمعية ينكمش بنقاط بدل أن يدفع «تبرّع الآن» خارج الشاشة (كان عرض الصفحة ٤٥٤px على شاشة ٤٠٠) */
        @media (max-width: 600px) {
            .site-header .container { gap: .6rem; min-height: 68px; }
            .brand { flex-shrink: 1; gap: .55rem; }
            .brand img { height: 40px; }
            .brand__mark { width: 40px; height: 40px; font-size: 1.1rem; }
            .brand__name { font-size: .98rem; }
            .brand__sub { display: none; }
            .nav-cta { gap: .4rem; }
            .nav-cta .btn { padding: .5rem .75rem; font-size: .82rem; }
        }
