/* ══════════════════════════════════════════════════════════════════
   بانک میراث و هنر – استایل اختصاصی
   پالت: طلایی/خاکی با پس‌زمینه کرم گرم
   ══════════════════════════════════════════════════════════════════ */

:root {
    --hr-gold: #b45309;
    --hr-gold-soft: #fef3c7;
    --hr-sand: #faf6ef;
    --hr-brown-dark: #44403c;
    --hr-border: #e7e0d2;
}

body.hr-body {
    background-color: var(--hr-sand);
    padding-bottom: 70px; /* جای ناوبری موبایل */
}

@media (min-width: 992px) {
    body.hr-body { padding-bottom: 0; }
}

/* ─── نوار ناوبری ─────────────────────────────────────────────────── */

.hr-navbar {
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--hr-border);
    padding: .75rem 0;
    position: sticky;
    top: 0;
    z-index: 1030;
}

.hr-brand { display: inline-flex; align-items: center; gap: .5rem; }

.hr-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    background: linear-gradient(135deg, #d97706, #92400e);
}

.hr-brand-badge {
    font-size: .68rem;
    background: var(--hr-gold-soft);
    color: var(--hr-gold);
    border-radius: 999px;
    padding: .15rem .6rem;
    font-weight: 700;
}

.hr-text-gold { color: var(--hr-gold) !important; }

.hr-btn-primary {
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff !important;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    border: none;
    transition: transform .15s ease;
}

.hr-btn-primary:hover { transform: translateY(-1px); color: #fff; }

.hr-btn-outline {
    border: 1.5px solid var(--hr-gold);
    color: var(--hr-gold);
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: transparent;
}

.hr-btn-outline:hover { background: var(--hr-gold-soft); color: var(--hr-gold); }

/* ─── کارت اثر ────────────────────────────────────────────────────── */

.hr-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(68, 64, 60, .07);
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
}

.hr-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(68, 64, 60, .13);
}

.hr-card-media { position: relative; aspect-ratio: 16/10; background: var(--hr-gold-soft); }

.hr-card-img { width: 100%; height: 100%; object-fit: cover; }

.hr-card-tag {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: rgba(255, 255, 255, .95);
    color: var(--hr-brown-dark);
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .25rem .7rem;
}

.hr-card-status {
    position: absolute;
    bottom: .75rem;
    left: .75rem;
    font-size: .72rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .25rem .7rem;
    color: #fff;
}

.hr-card-body { padding: 1rem 1.1rem 1.1rem; }

.hr-card-title {
    font-size: 1.02rem;
    line-height: 1.7;
    margin-bottom: .35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hr-card-desc {
    color: #78716c;
    font-size: .85rem;
    line-height: 1.8;
    margin-bottom: .75rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hr-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: .8rem;
    color: #a8a29e;
}

.hr-badge-verified {
    background: var(--hr-gold-soft);
    color: var(--hr-gold);
    font-size: .7rem;
    font-weight: 700;
    border-radius: 999px;
    padding: .22rem .65rem;
}

/* ─── آمار صفحه اصلی ──────────────────────────────────────────────── */

.hr-stat-box {
    background: #fff;
    border: 1px solid var(--hr-border);
    border-radius: 18px;
    text-align: center;
    padding: 1.25rem .75rem;
}

.hr-stat-number { font-size: 1.6rem; font-weight: 800; color: var(--hr-brown-dark); }
.hr-stat-label { color: #57534e; font-size: .82rem; font-weight: 600; }

/* ─── تضمین کنتراست بالا و خوانایی ۱۰۰٪ متون در تمام بخش‌ها ─── */
.hr-body h1,
.hr-body h2,
.hr-body h3,
.hr-body h4,
.hr-body h5,
.hr-body h6 {
    color: #1c1917;
    font-weight: 700;
}

.hr-body p {
    color: #44403c;
}

.hr-body .text-muted {
    color: #57534e !important;
}

.hr-body .text-dark {
    color: #1c1917 !important;
}

/* هیرو سکشن اصلی با متون کاملاً درخشان و خوانا */
.hr-hero {
    background: linear-gradient(135deg, #78350f 0%, #92400e 50%, #451a03 100%) !important;
    border-radius: 24px;
    color: #ffffff !important;
    padding: 3.5rem 2.2rem;
    box-shadow: 0 12px 36px rgba(120, 53, 15, 0.25);
    border: 1px solid rgba(254, 243, 199, 0.25);
}

.hr-hero h1,
.hr-hero h2,
.hr-hero h3,
.hr-hero .display-6 {
    color: #ffffff !important;
    font-weight: 800 !important;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.hr-hero p,
.hr-hero .fs-5 {
    color: #fef3c7 !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    line-height: 1.8;
}

/* بنر چالش‌ها و پویش‌های دیده‌بانی */
.hr-campaign-card {
    background: linear-gradient(135deg, #1c1917 0%, #292524 100%) !important;
    color: #ffffff !important;
}

.hr-campaign-card h1,
.hr-campaign-card h2,
.hr-campaign-card h3,
.hr-campaign-card h4,
.hr-campaign-card h5,
.hr-campaign-card h6 {
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.hr-campaign-card p,
.hr-campaign-card .text-white-50 {
    color: #f5f5f4 !important;
    opacity: 0.95 !important;
}

/* ─── خط زمانی دفتر حافظان ────────────────────────────────────────── */

.hr-timeline { position: relative; padding-right: 1.75rem; }

.hr-timeline::before {
    content: '';
    position: absolute;
    right: .45rem;
    top: .4rem;
    bottom: .4rem;
    width: 2px;
    background: var(--hr-border);
}

.hr-timeline-item { position: relative; padding-bottom: 1.5rem; }

.hr-timeline-dot {
    position: absolute;
    right: -1.75rem;
    top: .35rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--hr-border);
}

/* ─── ناوبری موبایل ───────────────────────────────────────────────── */

.hr-mobile-nav {
    position: fixed;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    border-top: 1px solid var(--hr-border);
    display: flex;
    z-index: 1030;
    padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom));
}

.hr-mobile-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .15rem;
    font-size: .66rem;
    color: #78716c;
    text-decoration: none;
    background: transparent;
    border: none;
    cursor: pointer;
}

.hr-mobile-nav-item i { font-size: 1.05rem; }

.hr-mobile-nav-center {
    position: relative;
    top: -12px;
}

.hr-nav-floating-btn {
    width: 42px;
    height: 42px;
    background: linear-gradient(135deg, #d97706, #92400e);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.4);
    margin-bottom: 2px;
}

/* ─── گواهی ───────────────────────────────────────────────────────── */

.hr-certificate {
    background: #fff;
    border: 2px solid var(--hr-gold);
    outline: 8px solid var(--hr-gold-soft);
    border-radius: 8px;
    padding: 3rem 2rem;
    max-width: 800px;
    margin: auto;
    text-align: center;
    position: relative;
}

.hr-certificate-frame {
    position: absolute;
    inset: 10px;
    border: 1px dashed #d6b98c;
    border-radius: 4px;
    pointer-events: none;
}

@media print {
    .hr-navbar, footer, .hr-mobile-nav, .no-print { display: none !important; }
    body.hr-body { background: #fff; padding: 0; }
    .hr-certificate { outline: 4px solid var(--hr-gold-soft); }
}

/* ─── استایل بنر نصب PWA ────────────────────────────────────────── */
.pwa-install-banner {
    position: fixed;
    bottom: 4.5rem;
    right: 1rem;
    left: 1rem;
    max-width: 440px;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #fde68a;
    border-radius: 1.25rem;
    padding: 0.85rem 1.15rem;
    z-index: 1050;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.pwa-banner-icon {
    width: 44px;
    height: 44px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .pwa-install-banner {
        bottom: 1.5rem;
        right: 1.5rem;
        left: auto;
        margin: 0;
    }
}

