/* =========================================================
   سياسة الخصوصية | البنك اليمني للإنشاء والتعمير
   style.css — التنسيقات الرئيسية (RTL)
   ========================================================= */

:root {
    --primary: #0b4f9e;
    --primary-dark: #083a75;
    --primary-light: #eaf1fb;
    --accent: #c9a45c;
    --accent-dark: #a8863f;
    --dark: #132238;
    --muted: #5b6b80;
    --line: #e3e9f2;
    --bg: #f6f8fc;
    --white: #ffffff;
    --shadow: 0 10px 30px rgba(11, 79, 158, 0.10);
    --shadow-lg: 0 20px 45px rgba(11, 79, 158, 0.16);
    --radius: 14px;
    --radius-sm: 9px;
    --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
    --header-h: 76px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--bg);
    line-height: 1.9;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container {
    width: min(1180px, 92%);
    margin-inline: auto;
}

section[id] { scroll-margin-top: calc(var(--header-h) + 12px); }

/* ---------- الترويسة (Sticky Header) ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
    transition: box-shadow .3s ease, background .3s ease;
}

.site-header.scrolled {
    box-shadow: 0 6px 18px rgba(19, 34, 56, 0.08);
    background: rgba(255, 255, 255, 0.98);
}

.nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    gap: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
}

.brand .logo {
    width: 46px;
    height: 46px;
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-title { font-size: 1.05rem; font-weight: 800; color: var(--primary); }

.brand-sub { font-size: .8rem; color: var(--muted); font-weight: 500; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 26px;
    font-weight: 600;
    font-size: .95rem;
}

.nav-links a { color: var(--dark); transition: color .2s ease; position: relative; padding-block: 6px; }

.nav-links a::after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 3px;
    border-radius: 3px;
    background: var(--accent);
    transition: width .25s ease;
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
    background: var(--primary);
    color: #fff !important;
    padding: 10px 22px;
    border-radius: 50px;
    box-shadow: 0 6px 16px rgba(11, 79, 158, 0.28);
    transition: background .25s ease, transform .25s ease;
}

.nav-cta:hover { background: var(--primary-dark); transform: translateY(-2px); }
.nav-cta::after { display: none; }

/* زر القائمة (الجوال) */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--primary-light);
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background: linear-gradient(135deg, #0b4f9e 0%, #083a75 55%, #062a57 100%);
    color: #fff;
    padding: 90px 0 110px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 85% 20%, rgba(201,164,92,.28), transparent 45%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.12), transparent 45%);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -1px;
    right: 0;
    left: 0;
    height: 80px;
    background: var(--bg);
    clip-path: ellipse(75% 100% at 50% 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin-inline: auto;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.25);
    padding: 7px 18px;
    border-radius: 50px;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .5px;
    margin-bottom: 22px;
}

.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3.1rem); font-weight: 800; line-height: 1.35; margin-bottom: 14px; }

.hero p.lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 640px; margin-inline: auto; }

.hero-meta {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.hero-badge {
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.hero-badge i { color: var(--accent); margin-inline-start: 6px; }

/* ---------- التخطيط: شريط جانبي + محتوى ---------- */
.layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    padding: 46px 0 30px;
    align-items: start;
}

/* القائمة الجانبية (Scrollspy) */
.side-nav {
    position: sticky;
    top: calc(var(--header-h) + 16px);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 14px;
    box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h) - 32px);
    overflow-y: auto;
}

.side-nav h4 {
    font-size: .95rem;
    font-weight: 800;
    color: var(--primary);
    padding: 6px 10px 12px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.side-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    margin-block: 2px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 600;
    color: var(--muted);
    border-right: 3px solid transparent;
    transition: all .2s ease;
}

.side-nav a i { font-size: .8rem; width: 16px; color: var(--accent); }

.side-nav a:hover { background: var(--primary-light); color: var(--primary); }

.side-nav a.active {
    background: var(--primary-light);
    color: var(--primary);
    border-right-color: var(--primary);
}

/* بطاقة تنبيه أسفل الشريط الجانبي */
.side-note {
    margin-top: 14px;
    padding: 14px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: .82rem;
}

.side-note i { color: var(--accent); margin-inline-end: 6px; }
.side-note strong { display: block; margin-bottom: 4px; }

/* ---------- المحتوى ---------- */
.content {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 42px 40px;
    min-width: 0;
}

.doc-intro {
    padding-bottom: 24px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
}

.doc-intro p + p { margin-top: 12px; }

.policy-section { margin-bottom: 42px; scroll-margin-top: var(--header-h); }

.policy-section > h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--primary-light);
}

.policy-section > h2 .num {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: #fff;
    border-radius: 10px;
    font-size: 1.05rem;
    box-shadow: 0 6px 14px rgba(11,79,158,.25);
}

.policy-section h3 {
    font-size: 1.12rem;
    font-weight: 700;
    color: var(--primary);
    margin: 20px 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.policy-section h3 i { font-size: .9rem; color: var(--accent); }

.policy-section p { color: var(--muted); margin-bottom: 12px; }

.policy-section ul, .policy-section ol {
    margin: 8px 0 16px;
    padding-inline-start: 8px;
}

.policy-section li {
    color: var(--muted);
    margin-bottom: 8px;
    padding-inline-start: 26px;
    position: relative;
}

.policy-section li::before {
    content: '\f0a4';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 0;
    top: 3px;
    color: var(--accent);
    font-size: .8rem;
}

.policy-section li strong { color: var(--dark); }

/* جداول */
.policy-table {
    width: 100%;
    border-collapse: collapse;
    margin: 14px 0 20px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.policy-table th {
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    padding: 12px 16px;
    text-align: right;
}

.policy-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: .92rem;
}

.policy-table tbody tr:nth-child(even) { background: var(--primary-light); }

/* صناديق ملاحظات */
.callout {
    display: flex;
    gap: 14px;
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    margin: 16px 0;
    font-size: .93rem;
}

.callout i { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }

.callout.info { background: var(--primary-light); border-right: 4px solid var(--primary); color: var(--primary-dark); }
.callout.info i { color: var(--primary); }

.callout.warn { background: #fff7e6; border-right: 4px solid var(--accent); color: #7a5c1d; }
.callout.warn i { color: var(--accent); }

/* أقسام "فهمنا لبياناتك" على شكل شبكة */
.data-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 16px 0;
}

.data-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 18px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.data-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.data-card i {
    font-size: 1.4rem;
    color: var(--primary);
    background: var(--primary-light);
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-bottom: 12px;
}

.data-card h3 { margin: 0 0 6px; font-size: 1rem; color: var(--dark); }
.data-card p { margin: 0; font-size: .88rem; }

/* ---------- شريط التنقل السفلي ---------- */
.bottom-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.bottom-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 50px;
    font-weight: 700;
    font-size: .9rem;
    transition: all .25s ease;
}

.bottom-link:hover { background: var(--primary); color: #fff; }

/* ---------- CTA ---------- */
.cta-band {
    background:
        radial-gradient(circle at 85% 15%, rgba(201,164,92,.25), transparent 40%),
        radial-gradient(circle at 10% 90%, rgba(255,255,255,.1), transparent 45%),
        linear-gradient(135deg, #0d4f9e 0%, #083a75 60%, #062a57 100%);
    border-radius: 20px;
    padding: 56px 40px;
    margin: 20px 0 50px;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255,255,255,.12);
}

.cta-band::before,
.cta-band::after {
    content: '';
    position: absolute;
    border: 2px solid rgba(255,255,255,.08);
    border-radius: 50%;
}

.cta-band::before { width: 260px; height: 260px; top: -90px; left: -90px; }
.cta-band::after { width: 200px; height: 200px; bottom: -70px; right: -70px; }

.cta-band .cta-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 18px;
    font-size: 1.7rem;
    color: #ffd98a;
    backdrop-filter: blur(4px);
    position: relative;
}

.cta-band h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; margin-bottom: 10px; position: relative; }

.cta-band p {
    color: rgba(255,255,255,.85);
    margin-bottom: 26px;
    max-width: 560px;
    margin-inline: auto;
    font-size: 1rem;
    position: relative;
}

.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 28px;
    border-radius: 50px;
    font-weight: 700;
    font-size: .98rem;
    transition: all .25s ease;
}

.btn-primary { background: var(--white); color: var(--primary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(0,0,0,.25); }

.btn-outline { border: 2px solid rgba(255,255,255,.5); color: #fff; background: rgba(255,255,255,.05); }
.btn-outline:hover { background: rgba(255,255,255,.14); border-color: #fff; transform: translateY(-2px); }

/* ---------- Footer ---------- */
.site-footer {
    background: #0d1b2a;
    color: #c4cdd9;
    padding: 56px 0 0;
    margin-top: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 36px;
    padding-bottom: 40px;
}

.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand-title { color: #fff; }
.footer-brand .brand-sub { color: #9fb1c6; }
.footer-brand p { font-size: .9rem; max-width: 300px; color: #9fb1c6; }

.footer-col h4 {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 16px;
    position: relative;
    padding-bottom: 10px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 32px;
    height: 2px;
    background: var(--accent);
}

.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { font-size: .9rem; color: #9fb1c6; transition: color .2s ease, padding-right .2s ease; }
.footer-col ul a:hover { color: var(--accent); padding-right: 6px; }

.footer-contact li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    font-size: .9rem;
    margin-bottom: 12px;
    color: #9fb1c6;
}

.footer-contact li i { color: var(--accent); margin-top: 5px; }

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,.1);
    padding: 18px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: .85rem;
    color: #7d8ea3;
}

.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--accent); }

/* زر العودة لأعلى */
.to-top {
    position: fixed;
    bottom: 26px;
    left: 26px;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(11,79,158,.35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: all .3s ease;
    z-index: 900;
}

.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--primary-dark); }