/* =========================================================
   front-page.css — رؤية الظل
   مستخرج من: front-page.php (inline <style> blocks)
   ========================================================= */

:root {
    --gold-primary: #D4AF37;
    --gold-secondary: #C5A059;
    --deep-black: #050505;
    --pure-black: #000000;
    --glass: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(212, 175, 55, 0.2);
}

body {
    font-family: 'Noto Kufi Arabic', sans-serif;
    background-color: var(--deep-black);
    color: #e5e5e5;
    direction: rtl;
    line-height: 1.8;
    overflow-x: hidden;
    padding-bottom: 0;
}

@media (max-width: 768px) {
    body { padding-bottom: 70px; }
}

.gold-gradient-text {
    background: linear-gradient(135deg, #8E6D2F 0%, #C5A059 50%, #8E6D2F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-family: 'Noto Kufi Arabic', sans-serif;
    line-height: 1.6;
}

.gold-bg-gradient {
    background: linear-gradient(135deg, #8E6D2F 0%, #C5A059 50%, #8E6D2F 100%);
}

.glass-card {
    background: var(--glass);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    transition: all 0.4s ease;
}

.glass-card:hover {
    border-color: var(--gold-primary);
    background: rgba(212, 175, 55, 0.08);
    transform: translateY(-8px);
}

.hero-mask {
    background: linear-gradient(to bottom, rgba(5,5,5,0.6) 0%, var(--deep-black) 100%);
}

.hero-title-responsive {
    font-size: clamp(1.8rem, 5vw, 3rem);
    line-height: 1.3;
}

.service-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    border-radius: 15px;
    overflow: hidden;
}

.service-table th {
    background: var(--gold-primary);
    color: #000;
    padding: 15px;
    font-weight: 900;
}

.service-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    background: rgba(255,255,255,0.02);
}

.list-item-custom {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    align-items: flex-start;
}

.list-item-custom::before {
    content: "✦";
    color: var(--gold-primary);
    font-weight: bold;
}

.work-overlay {
    background: linear-gradient(to top, rgba(212, 175, 55, 0.95) 0%, transparent 100%);
    opacity: 0;
    transition: 0.4s ease;
    pointer-events: none;
}

.work-item:hover .work-overlay { opacity: 1; }

@supports ((-webkit-backdrop-filter: blur(6px)) or (backdrop-filter: blur(6px))) {
    .work-overlay { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
}

@media (prefers-reduced-motion: reduce) {
    .motion-safe\:group-hover\:scale-105 { transform: none !important; transition: none !important; }
}

.filter-btn { transition: all 0.3s ease; }
.filter-btn.active {
    background: var(--gold-primary);
    color: #000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .section-title  { font-size: 1.8rem !important; }
    .glass-card     { padding: 1.5rem !important; }

    .hero-title-responsive {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }
}

/* شريط CTA الثابت للجوال */
.mobile-sticky-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background-color: var(--pure-black);
    border-top: 2px solid var(--gold-primary);
    z-index: 9999;
    display: none;
    padding: 10px 15px;
    box-shadow: 0 -5px 20px rgba(0,0,0,0.9);
}

@media (max-width: 768px) {
    .mobile-sticky-bar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 10px;
    }
}

.sticky-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    transition: background 0.3s;
    text-decoration: none;
}

.sticky-btn-call     { background: var(--gold-primary); color: #000; }
.sticky-btn-whatsapp { background: transparent; border: 1px solid var(--gold-primary); color: var(--gold-primary); }

.internal-link-chip {
    transition: all 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}
.internal-link-chip:hover {
    background-color: var(--gold-primary);
    color: #000;
    border-color: var(--gold-primary);
}

/* =========================================================
   ENTERPRISE ADDITIONS — Phase 1..7
   Lightweight, uses existing tokens (--gold-primary, .glass-card)
   لا توجد مكتبات خارجية ولا تغيير على الـ IDs/Classes الحالية
   ========================================================= */

/* ضبط CTA داخل محتوى الأحياء لتجنّب CLS */
#trust-stats .glass-card { padding: 1.25rem; }

/* Phase 2 — Local SEO Coverage Hub links spacing */
section[aria-label="تغطية أحياء جدة — رؤية الظل"] .glass-card {
    transition: transform 0.3s ease, border-color 0.3s ease;
}
section[aria-label="تغطية أحياء جدة — رؤية الظل"] .glass-card:hover {
    transform: translateY(-4px);
}

/* Phase 3 — Semantic Cluster cards: equal heights */
section[aria-label="التوسع الدلالي للخدمات"] .glass-card {
    height: 100%;
}

/* Phase 4 — Case Studies typography */
section[aria-label="دراسات حالة — مشاريع رؤية الظل"] ul li {
    padding: 4px 0;
    border-bottom: 1px dashed rgba(212, 175, 55, 0.08);
}
section[aria-label="دراسات حالة — مشاريع رؤية الظل"] ul li:last-child {
    border-bottom: 0;
}

/* Phase 5 — FAQ: max-height collapse (CSS only، بدون JS جديد) */
#faq-expanded .glass-card {
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}
@media (prefers-reduced-motion: reduce) {
    #faq-expanded .glass-card { transition: none; }
}

/* Phase 6 — CRO: subtle pulse on gold CTA داخل المحتوى (CSS فقط) */
@keyframes ctaPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45); }
    50%      { box-shadow: 0 0 0 8px rgba(212, 175, 55, 0); }
}
section[aria-label="تغطية أحياء جدة — رؤية الظل"] a.gold-bg-gradient {
    animation: ctaPulse 2.4s ease-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    section[aria-label="تغطية أحياء جدة — رؤية الظل"] a.gold-bg-gradient {
        animation: none;
    }
}
