/* ============================================================================
   ABZARBIN — PAGE HERO v2 (نسخه ۵.۲.۰)
   سبک جدید هیرو صفحات داخلی: تصویر واقعی مرتبط با موضوع + کاور کم‌رنگ
   روشن + کارت شیشه‌ای متن + قاب قطبی‌شکل (polaroid) با چرخش ظریف.
   قابل استفاده در: سوالات متداول، برندها، پیگیری سفارش، تماس و ...
   ============================================================================ */

.ry-phero {
    --ph-ink: #1C1917;
    --ph-ink-2: #44403C;
    --ph-ink-3: #78716C;
    --ph-accent: #EA580C;
    --ph-accent-2: #FBBF24;
    position: relative;
    overflow: hidden;
    background: #2A2622;
    isolation: isolate;
}

/* لایه تصویر پس‌زمینه */
.ry-phero-bg {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-size: cover;
    background-position: center;
    animation: ryPheroKen 22s ease-in-out infinite alternate;
    transform: scale(1.04);
}
@keyframes ryPheroKen {
    from { transform: scale(1.04) translateX(0); }
    to   { transform: scale(1.10) translateX(-1.6%); }
}

/* کاور کم‌رنگ — توریل روشن روی تصویر تا متن کاملاً خوانا باشد */
.ry-phero-veil {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(120% 130% at 85% 15%, rgba(255, 252, 247, 0.94) 0%, rgba(255, 252, 247, 0.78) 42%, rgba(250, 245, 238, 0.42) 100%),
        linear-gradient(180deg, rgba(255, 252, 247, 0.60) 0%, rgba(255, 252, 247, 0.82) 100%);
}

/* الگوی نقطه‌چین صنعتی */
.ry-phero::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background-image: radial-gradient(rgba(28, 25, 23, 0.055) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.9;
    pointer-events: none;
}

.ry-phero-inner {
    position: relative;
    max-width: 1280px;
    margin: 0 auto;
    padding: clamp(44px, 6vw, 84px) clamp(16px, 4vw, 32px);
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
    gap: clamp(20px, 4vw, 48px);
    align-items: center;
}

/* ---------- ستون متن (کارت شیشه‌ای) ---------- */
.ry-phero-card {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(14px) saturate(150%);
    -webkit-backdrop-filter: blur(14px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 24px;
    padding: clamp(20px, 3.4vw, 34px);
    box-shadow: 0 24px 60px -22px rgba(28, 25, 23, 0.35);
    position: relative;
}
.ry-phero-card::before {
    content: '';
    position: absolute;
    top: 0;
    inset-inline: 28px;
    height: 4px;
    border-radius: 0 0 6px 6px;
    background: linear-gradient(90deg, var(--ph-accent), var(--ph-accent-2), var(--ph-accent));
}

.ry-phero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0;
    color: var(--ph-accent);
    background: rgba(234, 88, 12, 0.09);
    border: 1px solid rgba(234, 88, 12, 0.28);
    border-radius: 999px;
    padding: 6px 14px;
    margin: 0 0 16px;
}
.ry-phero-eyebrow i { font-size: 11px; }

.ry-phero-title {
    font-size: clamp(24px, 4.2vw, 38px);
    font-weight: 900;
    color: var(--ph-ink);
    line-height: 1.45;
    margin: 0 0 10px;
    position: relative;
}
.ry-phero-title em {
    font-style: normal;
    color: var(--ph-accent);
    position: relative;
    white-space: nowrap;
}
.ry-phero-title em::after {
    content: '';
    position: absolute;
    right: 0;
    left: 0;
    bottom: 2px;
    height: 8px;
    background: rgba(251, 191, 36, 0.45);
    border-radius: 4px;
    z-index: -1;
}

.ry-phero-desc {
    font-size: clamp(13px, 1.4vw, 14.5px);
    font-weight: 500;
    color: var(--ph-ink-2);
    line-height: 2;
    margin: 0 0 18px;
    max-width: 56ch;
}
.ry-phero-desc strong { color: var(--ph-ink); font-weight: 800; }

/* چیپ‌های آماری شیشه‌ای */
.ry-phero-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ry-phero-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    color: var(--ph-ink-2);
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(28, 25, 23, 0.10);
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: 0 3px 10px rgba(28, 25, 23, 0.06);
}
.ry-phero-chip i { color: var(--ph-accent); font-size: 11px; }
.ry-phero-chip b { color: var(--ph-ink); font-weight: 800; }

/* ناحیه اختیاری داخل کارت (مثل جستجوی سوالات متداول) */
.ry-phero-slot { margin-top: 18px; }

/* ---------- ستون تصویر (قاب polaroid) ---------- */
.ry-phero-figure {
    position: relative;
    justify-self: center;
    width: min(100%, 420px);
    transform: rotate(-2.2deg);
    transition: transform 0.45s cubic-bezier(0.32, 0.72, 0, 1);
}
.ry-phero-figure:hover { transform: rotate(0deg) scale(1.02); }
.ry-phero-figure-frame {
    background: #fff;
    padding: 12px 12px 42px;
    border-radius: 14px;
    box-shadow:
        0 30px 60px -18px rgba(28, 25, 23, 0.45),
        0 4px 14px rgba(28, 25, 23, 0.18);
    position: relative;
}
.ry-phero-figure-img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    background: #EDE9E3;
}
/* نوار چسب کهربایی بالای قاب */
.ry-phero-figure-frame::before {
    content: '';
    position: absolute;
    top: -14px;
    inset-inline-start: 50%;
    transform: translateX(50%);
    width: 96px;
    height: 28px;
    background: rgba(251, 191, 36, 0.85);
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(28, 25, 23, 0.18);
    transform: translateX(50%) rotate(-3deg);
}
/* امضای پایین قاب */
.ry-phero-figure-cap {
    position: absolute;
    bottom: 12px;
    inset-inline: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 700;
    color: #78716C;
}
.ry-phero-figure-cap i { color: #EA580C; font-size: 12px; }
.ry-phero-figure-cap .cap-dots { letter-spacing: 2px; color: #D6D0C8; }

/* نشان شش‌ضلعی (مهره) پشت قاب */
.ry-phero-figure::before {
    content: '\f017';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: -26px;
    inset-inline-end: -14px;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: #EA580C;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 12px 30px -8px rgba(28, 25, 23, 0.35);
    z-index: 2;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 992px) {
    .ry-phero-inner {
        grid-template-columns: minmax(0, 1fr);
        padding: clamp(36px, 7vw, 52px) clamp(14px, 4vw, 24px);
    }
    .ry-phero-figure {
        order: -1;
        width: min(100%, 340px);
        transform: rotate(-1.6deg);
        margin-top: 6px;
    }
    .ry-phero-figure-frame::before { width: 74px; height: 22px; }
    .ry-phero-figure::before { width: 52px; height: 52px; font-size: 16px; top: -20px; inset-inline-end: -8px; }
}

@media (max-width: 480px) {
    .ry-phero-figure { width: min(100%, 270px); }
    .ry-phero-chips { gap: 6px; }
    .ry-phero-chip { font-size: 10.5px; padding: 6px 11px; }
    .ry-phero-card { border-radius: 20px; }
}

/* حالت لنداسکیپ — فشرده */
@media (orientation: landscape) and (max-height: 540px) and (max-width: 1024px) {
    .ry-phero-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
        padding: 22px 20px;
        gap: 20px;
    }
    .ry-phero-bg { animation: none; }
    .ry-phero-title { font-size: clamp(18px, 2.6vw, 24px); margin-bottom: 6px; }
    .ry-phero-desc { font-size: 12px; line-height: 1.7; margin-bottom: 10px; }
    .ry-phero-figure { width: min(100%, 230px); }
    .ry-phero-figure-img { aspect-ratio: 16 / 10; }
}

/* کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
    .ry-phero-bg { animation: none; }
    .ry-phero-figure { transition: none; }
}
