/* ═══════════════════════════════════════════════════════════════
   visual-upgrade.css — تَطوير بصريّ ٣٠٪ بهويّة وتد
   يُحمَّل بعد public.css لتَجاوز الألوان القديمة بألوان DB.
   ٩ مايو ٢٠٢٦
   ═══════════════════════════════════════════════════════════════ */

/* ─── (1) مزامنة المتغيّرات القديمة بألوان DB ─── */
:root {
    --w-primary:        var(--brand-primary-1);
    --w-primary-light:  var(--brand-primary-3);
    --w-primary-dark:   var(--brand-secondary-3);
    --w-gold:           var(--brand-primary-2);
    --w-cream:          var(--brand-primary-4);
    --w-text:           #1a1a1a;
    --w-text-light:     #6b7280;
    --w-bg:             #fafaf7;
    --w-border:         #e8e1d4;
    --w-shadow:         0 4px 18px rgba(23,57,92,0.08);
    --w-shadow-lg:      0 12px 36px rgba(23,57,92,0.14);
}

/* ─── (2) خلفيّة عامّة بكريم خفيف لإحساس الهويّة ─── */
body {
    background: var(--w-bg) !important;
    color: var(--w-text);
}

/* ─── (3) Navbar — لمسة ذهبيّة في الأسفل ─── */
.navbar {
    background: linear-gradient(180deg, #fff 0%, #fdfcfa 100%) !important;
    border-bottom: 3px solid var(--brand-primary-2) !important;
    box-shadow: 0 2px 14px rgba(23,57,92,0.07) !important;
}
.navbar-brand h1,
.navbar-brand span {
    font-family: var(--brand-font-headings) !important;
    color: var(--brand-primary-1) !important;
    letter-spacing: -0.3px;
}
.navbar-links a,
.main-nav a {
    font-weight: 600;
    color: var(--brand-primary-1) !important;
    transition: all .25s ease;
    position: relative;
}
.navbar-links a:hover,
.navbar-links a.active,
.main-nav a:hover,
.main-nav a.active {
    color: var(--brand-primary-2) !important;
}
.main-nav a.active::after,
.navbar-links a.active::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 3px;
    background: var(--brand-primary-2);
    border-radius: 2px;
}

/* ─── (4) Hero — مُكثّف ومُهَذَّب (٩ مايو ٢٠٢٦ — ٢) ─── */
.hero {
    position: relative;
    overflow: hidden;
    padding: 50px 24px 60px !important;
    text-align: center;
    color: #fff !important;
    background: linear-gradient(135deg,
                  var(--brand-primary-1) 0%,
                  var(--brand-secondary-3) 60%,
                  var(--brand-primary-3) 100%) !important;
    border-radius: 0;
    margin-bottom: 30px;
}

/* watermark شعار خفيف */
.hero::before {
    content: '';
    position: absolute;
    top: 50%;
    inset-inline-start: -120px;
    width: 380px;
    height: 380px;
    background-image: var(--brand-logo-watermark, none);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    opacity: 0.05;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 0;
}

/* الشعار: نَستخدم الـjpg مباشرة بحدّ ذهبيّ — بلا cream wrapper مربكة */
.hero-logo-circle {
    width: 96px;
    height: 96px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--brand-primary-2);
    box-shadow: 0 8px 24px rgba(0,0,0,0.28);
    position: relative;
    z-index: 1;
    background: var(--brand-primary-1);  /* احتياطيّ خلف الـimg */
    display: block;
}
.hero-logo-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero h1,
.hero-content h1 {
    font-family: var(--brand-font-headings) !important;
    font-size: 36px !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
    color: #fff !important;
    text-shadow: 0 2px 12px rgba(0,0,0,0.25);
    position: relative;
    z-index: 1;
    letter-spacing: -0.3px;
}
.hero h1::after {
    content: '';
    display: block;
    width: 56px;
    height: 3px;
    background: var(--brand-primary-2);
    margin: 12px auto 0;
    border-radius: 2px;
}
.hero p {
    font-size: 15px !important;
    line-height: 1.85 !important;
    max-width: 640px !important;
    margin: 16px auto 22px !important;
    color: rgba(255,255,255,0.92) !important;
    position: relative;
    z-index: 1;
}
.hero .cta,
.hero-buttons {
    position: relative;
    z-index: 1;
}

/* ─── (5) Section Title — أنيق بحدّ ذهبيّ ─── */
.section-title {
    font-family: var(--brand-font-headings) !important;
    font-weight: 800 !important;
    color: var(--brand-primary-1) !important;
    font-size: 30px !important;
    text-align: center;
    margin: 70px 0 36px !important;
    position: relative;
    padding-bottom: 18px;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg,
                  var(--brand-primary-2) 0%,
                  var(--brand-primary-1) 50%,
                  var(--brand-primary-2) 100%);
    border-radius: 3px;
}

/* ─── (6) Product Cards — هويّة وتد ─── */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 22px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 60px;
}
.product-card {
    background: #fff !important;
    border-radius: 16px !important;
    padding: 32px 24px !important;
    text-align: center;
    transition: all .3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-top: 4px solid var(--brand-primary-2) !important;
    border-bottom: 1px solid var(--w-border);
    position: relative;
    overflow: hidden;
    color: var(--brand-primary-1) !important;
    text-decoration: none;
    box-shadow: var(--w-shadow);
    display: block;
}
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(180deg, var(--brand-primary-4) 0%, transparent 70%);
    transition: height .35s ease;
    z-index: 0;
    opacity: 0.5;
}
.product-card:hover {
    transform: translateY(-8px) !important;
    box-shadow: var(--w-shadow-lg) !important;
    border-top-color: var(--brand-primary-1) !important;
    border-top-width: 6px !important;
}
.product-card:hover::before {
    height: 100%;
}
.product-card .icon,
.product-card > .icon {
    font-size: 44px !important;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
    line-height: 1;
}
.product-card h3 {
    font-family: var(--brand-font-headings) !important;
    font-weight: 700 !important;
    color: var(--brand-primary-1) !important;
    font-size: 19px !important;
    margin-bottom: 10px !important;
    position: relative;
    z-index: 1;
}
.product-card p {
    font-size: 13.5px !important;
    color: #5b6a7a !important;
    line-height: 1.7 !important;
    position: relative;
    z-index: 1;
    margin: 0;
}

/* ─── (7) Buttons — بهويّة وتد ─── */
.btn-gold {
    background: var(--brand-primary-2) !important;
    color: var(--brand-primary-1) !important;
    font-weight: 800 !important;
    border: 2px solid var(--brand-primary-2) !important;
    transition: all .25s ease !important;
    box-shadow: 0 6px 18px rgba(198,164,106,0.35);
    border-radius: 8px;
}
.btn-gold:hover {
    background: var(--brand-primary-1) !important;
    color: var(--brand-primary-2) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(0,0,0,0.25);
}
.btn-navy {
    background: var(--brand-primary-1) !important;
    color: #fff !important;
    font-weight: 700 !important;
    border: 2px solid var(--brand-primary-1) !important;
    border-radius: 8px;
}
.btn-navy:hover {
    background: var(--brand-secondary-3) !important;
    color: var(--brand-primary-2) !important;
}
.btn-outline {
    border: 2px solid currentColor !important;
    background: transparent;
    font-weight: 700 !important;
    border-radius: 8px;
    transition: all .25s ease;
}
.btn-outline:hover {
    background: rgba(255,255,255,0.12);
}

/* ─── (8) Cards & Sections — لمسة كريميّة ─── */
.card,
.form-card {
    background: #fff;
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--w-shadow);
    border-top: 3px solid var(--brand-primary-2);
}

/* ─── (9) Brand-aware focus rings ─── */
input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: var(--brand-primary-2) !important;
    box-shadow: 0 0 0 3px rgba(198,164,106,0.18) !important;
}

/* ─── (10) Mobile responsive ─── */
@media (max-width: 768px) {
    .hero { padding: 40px 18px 50px !important; }
    .hero h1, .hero-content h1 { font-size: 26px !important; }
    .hero p { font-size: 14px !important; }
    .hero-logo-circle { width: 80px; height: 80px; }
    .hero::before { width: 280px; height: 280px; inset-inline-start: -80px; }
    .section-title { font-size: 22px !important; }
    .product-card { padding: 22px 16px !important; }
    .product-card h3 { font-size: 17px !important; }
}

/* ─── (11) لمسة أخيرة: تَحديد لون الـlinks في النصّ ─── */
a:not(.btn):not(.product-card):not(.navbar-brand):not(.navbar-links a):hover {
    color: var(--brand-primary-2) !important;
}
