/**
 * الموقع الرسمي: دهانات الرياض (Riyadh Paints)
 * تصميم واجهات عصرية فاخرة - متوافقة تماماً مع RTL والأجهزة المحمولة
 */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@300;400;500;700;800&display=swap');

:root {
  --rp-primary: #0f172a;       /* كحلي فاحم / سلايت داكن */
  --rp-primary-light: #1e293b; /* كحلي هادئ للبطاقات والأسطح */
  --rp-primary-hover: #334155;
  --rp-gold: #c59b27;          /* ذهبي راقٍ كلاسيكي */
  --rp-gold-hover: #a67c1e;
  --rp-gold-light: #fef9ee;
  --rp-whatsapp: #25d366;      /* أخضر واتساب الرسمي */
  --rp-whatsapp-hover: #1ebc57;
  --rp-accent-emerald: #059669;/* أخضر زمردي للثقة والضمان */
  --rp-bg-light: #f8fafc;
  --rp-bg-white: #ffffff;
  --rp-text-main: #1e293b;
  --rp-text-muted: #64748b;
  --rp-border-color: #e2e8f0;
  --rp-shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --rp-shadow-md: 0 10px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --rp-shadow-lg: 0 20px 35px -10px rgba(15, 23, 42, 0.12);
  --rp-radius: 12px;
  --rp-font-main: 'Tajawal', system-ui, -apple-system, sans-serif;
  --rp-font-heading: 'Cairo', system-ui, -apple-system, sans-serif;
}

/* تنسيقات عامة */
body {
  font-family: var(--rp-font-main);
  color: var(--rp-text-main);
  background-color: var(--rp-bg-light);
  line-height: 1.75;
  overflow-x: hidden;
  direction: rtl;
  text-align: right;
}

h1, h2, h3, h4, h5, h6, .navbar-brand, .font-heading {
  font-family: var(--rp-font-heading);
  font-weight: 700;
  color: var(--rp-primary);
  line-height: 1.35;
}

a {
  color: var(--rp-gold);
  text-decoration: none;
  transition: all 0.25s ease;
}

a:hover {
  color: var(--rp-gold-hover);
}

/* الشريط العلوي للاتصال السريع */
.top-bar {
  background-color: var(--rp-primary);
  color: #94a3b8;
  font-size: 0.875rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar a {
  color: #e2e8f0;
  font-weight: 500;
}

.top-bar a:hover {
  color: var(--rp-gold);
}

/* شريط التنقل الرئيسي Navbar */
.rp-navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--rp-shadow-sm);
  transition: all 0.3s ease;
  padding: 14px 0;
}

.rp-navbar.scrolled {
  padding: 10px 0;
  box-shadow: var(--rp-shadow-md);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--rp-primary);
}

.navbar-brand span.logo-gold {
  color: var(--rp-gold);
}

.navbar-brand .brand-badge {
  font-size: 0.65rem;
  background: var(--rp-gold-light);
  color: var(--rp-gold-hover);
  padding: 3px 8px;
  border-radius: 20px;
  border: 1px solid rgba(197, 155, 39, 0.3);
  font-weight: 700;
}

.nav-link {
  font-weight: 600;
  color: var(--rp-text-main);
  padding: 8px 16px !important;
  border-radius: 8px;
  transition: all 0.2s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--rp-gold-hover);
  background-color: var(--rp-gold-light);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 16px;
  left: 16px;
  height: 2px;
  background: var(--rp-gold);
  border-radius: 2px;
}

/* الأزرار العصرية Buttons */
.btn-gold {
  background: linear-gradient(135deg, #d4af37 0%, #b8860b 100%);
  color: #ffffff !important;
  font-family: var(--rp-font-heading);
  font-weight: 700;
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(184, 134, 11, 0.3);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-gold:hover {
  background: linear-gradient(135deg, #b8860b 0%, #996515 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(184, 134, 11, 0.4);
}

.btn-whatsapp {
  background: #25d366 !important;
  color: #ffffff !important;
  font-family: var(--rp-font-heading);
  font-weight: 700;
  border: none;
  padding: 12px 26px;
  border-radius: 30px;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-whatsapp:hover {
  background: #1ebc57 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
}

.btn-outline-gold {
  background: transparent;
  color: var(--rp-gold) !important;
  font-family: var(--rp-font-heading);
  font-weight: 700;
  border: 2px solid var(--rp-gold);
  padding: 10px 24px;
  border-radius: 30px;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-outline-gold:hover {
  background: var(--rp-gold);
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* قسم الواجهة الرئيسية Hero Section */
.hero-section {
  position: relative;
  background-color: var(--rp-primary);
  background-image: linear-gradient(135deg, rgba(15, 23, 42, 0.92) 0%, rgba(30, 41, 59, 0.88) 100%), url('../images/hero-bg.jpg');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  color: #ffffff;
  padding: 110px 0 130px;
  overflow: hidden;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 50px;
  background: linear-gradient(to top, var(--rp-bg-light), transparent);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 155, 39, 0.15);
  color: #fce7b2;
  border: 1px solid rgba(197, 155, 39, 0.35);
  padding: 6px 18px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title {
  color: #ffffff;
  font-size: 3rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
}

.hero-title span.highlight {
  color: #d4af37;
  position: relative;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: #cbd5e1;
  max-width: 650px;
  margin-bottom: 35px;
  line-height: 1.8;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 40px;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 25px;
}

.hero-feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hero-feature-item svg {
  color: var(--rp-gold);
}

/* بطاقات الخدمات Services Cards */
.section-header {
  margin-bottom: 50px;
  text-align: center;
}

.section-badge {
  display: inline-block;
  background: var(--rp-gold-light);
  color: var(--rp-gold-hover);
  border: 1px solid rgba(197, 155, 39, 0.3);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 15px;
}

.section-desc {
  color: var(--rp-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.service-card {
  background: var(--rp-bg-white);
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow-sm);
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid var(--rp-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--rp-shadow-lg);
  border-color: rgba(197, 155, 39, 0.4);
}

.service-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.service-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.service-card:hover .service-img-wrap img {
  transform: scale(1.06);
}

.service-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  font-weight: 700;
}

.service-card-title a {
  color: var(--rp-primary);
}

.service-card-title a:hover {
  color: var(--rp-gold-hover);
}

.service-card-desc {
  color: var(--rp-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rp-border-color);
  padding-top: 15px;
}

/* بطاقات خطوات العمل Workflow Steps */
.step-card {
  background: var(--rp-bg-white);
  padding: 30px 24px;
  border-radius: var(--rp-radius);
  border: 1px solid var(--rp-border-color);
  box-shadow: var(--rp-shadow-sm);
  text-align: center;
  position: relative;
  transition: all 0.3s ease;
  height: 100%;
}

.step-card:hover {
  border-color: var(--rp-gold);
  transform: translateY(-5px);
  box-shadow: var(--rp-shadow-md);
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rp-gold-light);
  color: var(--rp-gold-hover);
  border: 2px solid var(--rp-gold);
  font-family: var(--rp-font-heading);
  font-weight: 800;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 10px;
}

.step-desc {
  color: var(--rp-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* بطاقات المقالات Blog Cards */
.article-card {
  background: var(--rp-bg-white);
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow-sm);
  border: 1px solid var(--rp-border-color);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease;
}

.article-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--rp-shadow-lg);
}

.article-img-wrap {
  position: relative;
  height: 210px;
  overflow: hidden;
}

.article-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.article-card:hover .article-img-wrap img {
  transform: scale(1.05);
}

.article-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(15, 23, 42, 0.85);
  color: #f1f5f9;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.article-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.article-title {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-bottom: 12px;
}

.article-title a {
  color: var(--rp-primary);
}

.article-title a:hover {
  color: var(--rp-gold);
}

.article-excerpt {
  color: var(--rp-text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* معرض الصور Gallery Grid */
.gallery-filter-btn {
  background: #ffffff;
  color: var(--rp-text-main);
  border: 1px solid var(--rp-border-color);
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  margin: 4px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.gallery-filter-btn:hover, .gallery-filter-btn.active {
  background: var(--rp-primary);
  color: #ffffff;
  border-color: var(--rp-primary);
}

.gallery-card {
  position: relative;
  border-radius: var(--rp-radius);
  overflow: hidden;
  box-shadow: var(--rp-shadow-sm);
  background: #000;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, opacity 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.08);
  opacity: 0.85;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 23, 42, 0.9) 0%, rgba(15, 23, 42, 0.2) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-overlay {
  opacity: 1;
}

.gallery-title {
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.gallery-cat {
  color: var(--rp-gold);
  font-size: 0.85rem;
}

/* قسم الأسئلة الشائعة Accordion */
.accordion-item {
  border: 1px solid var(--rp-border-color);
  border-radius: var(--rp-radius) !important;
  margin-bottom: 12px;
  overflow: hidden;
}

.accordion-button {
  font-family: var(--rp-font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--rp-primary);
  background-color: #ffffff;
  padding: 18px 24px;
}

.accordion-button:not(.collapsed) {
  color: var(--rp-gold-hover);
  background-color: var(--rp-gold-light);
  box-shadow: none;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: var(--rp-gold);
}

.accordion-body {
  padding: 20px 24px;
  color: #475569;
  line-height: 1.8;
  font-size: 0.95rem;
  background-color: #ffffff;
}

/* شريط الدعوة للتواصل CTA Box */
.cta-banner {
  background: linear-gradient(135deg, var(--rp-primary) 0%, var(--rp-primary-light) 100%);
  color: #ffffff;
  padding: 60px 40px;
  border-radius: 20px;
  box-shadow: var(--rp-shadow-lg);
  border: 1px solid rgba(197, 155, 39, 0.25);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50px;
  left: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(197, 155, 39, 0.2) 0%, transparent 70%);
  border-radius: 50%;
}

/* التذييل Footer */
.rp-footer {
  background-color: #0b1120;
  color: #94a3b8;
  padding-top: 70px;
  font-size: 0.95rem;
  border-top: 3px solid var(--rp-gold);
}

.rp-footer h5 {
  color: #ffffff;
  font-size: 1.2rem;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 10px;
}

.rp-footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 40px;
  height: 2px;
  background: var(--rp-gold);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.footer-links a:hover {
  color: var(--rp-gold);
  transform: translateX(-5px);
}

.footer-bottom {
  background-color: #060913;
  padding: 24px 0;
  margin-top: 60px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: #64748b;
}

.developer-credit {
  font-size: 0.85rem;
  color: #94a3b8;
}

.developer-credit .dev-link {
  color: var(--rp-gold);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.25s ease;
  padding: 2px 6px;
  border-radius: 4px;
}

.developer-credit .dev-link .whatsapp-icon {
  color: var(--rp-whatsapp);
  transition: transform 0.25s ease;
}

.developer-credit .dev-link:hover {
  color: #ffffff;
  background-color: rgba(197, 155, 39, 0.15);
  text-decoration: none;
}

.developer-credit .dev-link:hover .whatsapp-icon {
  transform: scale(1.15);
}

/* الأزرار العائمة Floating CTA */
.floating-actions {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 1040;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  text-decoration: none;
  position: relative;
}

.floating-btn:hover {
  transform: scale(1.1);
  color: #ffffff !important;
}

.floating-whatsapp {
  background-color: var(--rp-whatsapp);
}

.floating-phone {
  background-color: var(--rp-gold);
}

.pulse-animation::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--rp-whatsapp);
  opacity: 0.8;
  animation: pulse-ring 2s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
}

@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 0; }
  100% { transform: scale(0.9); opacity: 0; }
}

/* استجابة الجوال Mobile Adjustments */
@media (max-width: 991.98px) {
  .hero-title {
    font-size: 2.1rem;
  }
  .hero-subtitle {
    font-size: 1.05rem;
  }
  .hero-section {
    padding: 70px 0 90px;
  }
  .cta-banner {
    padding: 40px 20px;
  }
  .section-title {
    font-size: 1.8rem;
  }
}

/* ==============================================================
   تنسيقات محتوى المقالات والمدونة (Article Content Typography)
   ============================================================== */
.article-content {
  color: #334155;
  font-size: 1.05rem;
  line-height: 2;
}
.article-content h2 {
  color: var(--rp-primary);
  font-size: 1.55rem;
  font-weight: 700;
  margin-top: 2.2rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.3);
}
.article-content h3 {
  color: #1e293b;
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: 1.8rem;
  margin-bottom: 0.8rem;
}
.article-content p {
  margin-bottom: 1.25rem;
  text-align: justify;
}
.article-content ul, .article-content ol {
  padding-right: 1.5rem;
  margin-bottom: 1.5rem;
}
.article-content li {
  margin-bottom: 0.6rem;
  line-height: 1.8;
}
.article-content .highlight-box {
  background: #f8fafc;
  border-right: 4px solid var(--rp-gold);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 1.8rem 0;
  color: #1e293b;
}
.article-content .table-wrap {
  margin: 1.8rem 0;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--rp-border-color);
}
.article-content .faq-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 14px;
  transition: all 0.2s ease;
}
.article-content .faq-box:hover {
  border-color: var(--rp-gold);
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.article-content .faq-question {
  font-family: var(--rp-font-heading);
  font-weight: 700;
  color: var(--rp-primary);
  font-size: 1.1rem;
  margin-bottom: 8px;
}
.article-content a {
  color: #b8860b;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article-content a:hover {
  color: var(--rp-primary);
}
