/* ==========================================================================
   ART Group - أنماط التصميم المتجاوبة والمستوحاة من تقنيات الطباعة الحديثة
   الهوية: برتقالي الشعار الأصلي (#EF7A16)، أسود فحمي (#121214)، خلفيات بيضاء (#FFFFFF)
   الخط: Tajawal RTL
   ========================================================================== */

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

:root {
  --primary-orange: #EF7A16;
  --primary-orange-hover: #D9690D;
  --primary-orange-light: rgba(239, 122, 22, 0.12);
  --primary-orange-glow: rgba(239, 122, 22, 0.35);

  --charcoal-900: #0F0F12;
  --charcoal-800: #141418;
  --charcoal-700: #1A1A20;
  --charcoal-600: #24242C;
  --charcoal-500: #32323D;

  --gray-100: #F6F7F9;
  --gray-200: #EDEFF2;
  --gray-300: #DFE2E8;
  --gray-500: #8C92A0;
  --gray-700: #4A4E5A;
  
  --pure-white: #FFFFFF;
  --text-dark: #1A1A22;
  --text-muted: #6B7280;
  --text-light: #E4E5EA;

  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 20px;
  --border-radius-xl: 28px;

  --transition-fast: 0.18s ease;
  --transition-normal: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.06);
  --shadow-card-hover: 0 14px 34px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(239, 122, 22, 0.15);
  --shadow-orange: 0 8px 24px rgba(239, 122, 22, 0.38);
}

/* ==========================================================================
   إعدادات الصفحة والخط الأساسية (RTL)
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  direction: rtl;
  text-align: right;
  scroll-behavior: smooth;
  background-color: var(--charcoal-900);
  color: var(--text-dark);
}

body {
  line-height: 1.6;
  background-color: var(--gray-100);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   شريط التنقل العلوي (Navbar) - خلفية بيضاء نقية لظهور الشعار بكامل تفاصيله
   ========================================================================== */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: #FFFFFF;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.06);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  border-bottom-color: rgba(239, 122, 22, 0.3);
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-img {
  height: 52px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-fast);
}

.brand-logo-link:hover .brand-logo-img {
  transform: scale(1.03);
}

.brand-city-tag {
  background: rgba(239, 122, 22, 0.12);
  color: var(--primary-orange);
  font-size: 0.8rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid rgba(239, 122, 22, 0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 28px;
}

.nav-link {
  color: #1A1A22;
  font-weight: 700;
  font-size: 1rem;
  transition: color var(--transition-fast);
  position: relative;
  padding: 6px 0;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-orange);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary-orange);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.navbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-phone-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-orange);
  color: #FFFFFF !important;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 10px 18px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 14px rgba(239, 122, 22, 0.35);
  transition: all var(--transition-fast);
}

.nav-phone-btn:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}

.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #1A1A22;
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   قسم المقدمة السينمائي (Hero Section)
   حركة رأس الطباعة، انتقال الرول، ماكينات Epson S40610 و Xerox 9070C
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  padding-bottom: 70px;
  background-color: var(--charcoal-900);
  color: #FFFFFF;
  overflow: hidden;
}

.hero-background-visual {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.72) contrast(1.1);
  transform: scale(1.02);
  transition: background-image 0.9s cubic-bezier(0.4, 0, 0.2, 1), transform 9s ease-out;
  z-index: 1;
}

/* تأثير حركة الكاميرا الخفيفة والتكبير للماكينات */
.hero-background-visual.panning {
  transform: scale(1.08);
}

/* تدرج فحمي أسود خلف النص لسهولة القراءة المطلقة */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    rgba(15, 15, 18, 0.95) 0%,
    rgba(15, 15, 18, 0.88) 45%,
    rgba(15, 15, 18, 0.65) 75%,
    rgba(239, 122, 22, 0.18) 100%
  );
  z-index: 2;
}

/* محاكي حركة رأس الطباعة الأفقي */
.hero-printhead-bar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.05);
  z-index: 3;
  overflow: hidden;
}

.hero-printhead-bar.sweeping::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 140px;
  height: 100%;
  background: linear-gradient(90deg, transparent, #FFFFFF, var(--primary-orange), transparent);
  box-shadow: 0 0 15px var(--primary-orange);
  animation: sweepPrinthead 2.8s infinite ease-in-out;
}

@keyframes sweepPrinthead {
  0% { transform: translateX(100%); }
  50% { transform: translateX(-500%); }
  100% { transform: translateX(100%); }
}

.hero-content-wrap {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  width: 100%;
}

.hero-text-side {
  max-width: 650px;
}

.hero-badge-live {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(239, 122, 22, 0.16);
  border: 1px solid rgba(239, 122, 22, 0.4);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFA552;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary-orange);
  box-shadow: 0 0 0 0 rgba(239, 122, 22, 0.7);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(239, 122, 22, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(239, 122, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 122, 22, 0); }
}

.hero-main-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.25;
  color: #FFFFFF;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.hero-main-title .highlight-orange {
  color: var(--primary-orange);
  position: relative;
  display: inline-block;
}

.hero-lead-desc {
  font-size: 1.18rem;
  color: #C8CCD6;
  line-height: 1.8;
  margin-bottom: 32px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 35px;
}

.btn-primary-calc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary-orange);
  color: #FFFFFF !important;
  font-size: 1.1rem;
  font-weight: 800;
  padding: 16px 32px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 6px 20px rgba(239, 122, 22, 0.45);
  transition: all var(--transition-normal);
  border: 2px solid var(--primary-orange);
}

.btn-primary-calc:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(239, 122, 22, 0.55);
}

.btn-secondary-menu {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF !important;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 28px;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  transition: all var(--transition-normal);
}

.btn-secondary-menu:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-3px);
}

.hero-stats-row {
  display: flex;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 22px;
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.stat-val {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--primary-orange);
}

.stat-lbl {
  font-size: 0.82rem;
  color: var(--gray-500);
}

/* بطاقة استعراض الطابعة الحالية في الهيرو */
.hero-printer-card-overlay {
  background: rgba(20, 20, 24, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  position: relative;
}

.printer-badge-current {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.printer-model-heading {
  font-size: 1.4rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.printer-model-caption {
  font-size: 0.92rem;
  color: #B5B9C5;
  margin-bottom: 16px;
}

.printer-features-mini {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}

.mini-feat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: #D2D5E0;
}

.mini-feat svg {
  color: var(--primary-orange);
  flex-shrink: 0;
}

.hero-scene-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 14px;
}

.scene-indicators {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scene-dot {
  width: 24px;
  height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scene-dot.active {
  width: 38px;
  background: var(--primary-orange);
  box-shadow: 0 0 10px rgba(239, 122, 22, 0.6);
}

.live-feed-text {
  font-size: 0.76rem;
  color: var(--gray-500);
}

/* ==========================================================================
   حركة خط رأس الطابعة تحت العناوين (Printhead Title Animation)
   "عند ظهور عنوان قسم جديد، يمرّ تحته خط برتقالي رفيع بحركة تشبه مرور رأس الطابعة"
   ========================================================================== */
.section-heading-wrapper {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 45px auto;
  position: relative;
}

.section-pill-tag {
  display: inline-block;
  background: rgba(239, 122, 22, 0.1);
  color: var(--primary-orange);
  border: 1px solid rgba(239, 122, 22, 0.25);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--charcoal-900);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.section-title.text-light-theme {
  color: #FFFFFF;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-subtitle.text-light-theme {
  color: #A6AAB8;
}

/* خط رأس الطابعة */
.printhead-line-track {
  position: relative;
  width: 140px;
  height: 3px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 12px auto 0 auto;
  border-radius: 3px;
  overflow: visible;
}

.printhead-line-track.dark-track {
  background-color: rgba(255, 255, 255, 0.12);
}

.printhead-line-fill {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  width: 0%;
  background: var(--primary-orange);
  border-radius: 3px;
  transition: width 1.1s cubic-bezier(0.25, 1, 0.5, 1);
}

.printhead-head-marker {
  position: absolute;
  top: -4px;
  right: 0%;
  width: 10px;
  height: 11px;
  background: #FFFFFF;
  border: 2px solid var(--primary-orange);
  border-radius: 2px;
  box-shadow: 0 0 10px var(--primary-orange);
  opacity: 0;
  transition: right 1.1s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.2s ease;
  pointer-events: none;
}

/* تشغيل الأنيميشن عند ظهور العنوان */
.section-heading-wrapper.printhead-animate .printhead-line-fill,
.section-heading-wrapper.printhead-done .printhead-line-fill {
  width: 100%;
}

.section-heading-wrapper.printhead-animate .printhead-head-marker {
  opacity: 1;
  right: calc(100% - 10px);
}

.section-heading-wrapper.printhead-done .printhead-head-marker {
  opacity: 0;
  right: calc(100% - 10px);
}

/* ==========================================================================
   حاسبة سعر الطباعة الفورية (Print Price Calculator)
   3 خطوات في بطاقة واحدة، نتائج دقيقة، دعم الكسور والأرقام العربية
   ========================================================================== */
.calculator-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--charcoal-900) 0%, var(--charcoal-800) 100%);
  color: #FFFFFF;
  position: relative;
}

.calculator-card {
  background: var(--charcoal-700);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
  padding: 40px;
  position: relative;
  overflow: hidden;
}

.calculator-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-orange));
}

.calc-steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 35px;
}

.calc-step-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.calc-step-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.step-num-badge {
  width: 32px;
  height: 32px;
  background: var(--primary-orange);
  color: #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(239, 122, 22, 0.4);
}

.step-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: #FFFFFF;
}

.step-hint {
  font-size: 0.88rem;
  color: var(--gray-500);
  margin-right: auto;
}

/* شبكة بطاقات الخامات (الخطوة 1) */
.materials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 14px;
}

.material-card {
  background: rgba(255, 255, 255, 0.04);
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 16px;
  cursor: pointer;
  text-align: right;
  transition: all var(--transition-fast);
  color: #FFFFFF;
  position: relative;
  outline: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
}

.material-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(239, 122, 22, 0.4);
  transform: translateY(-2px);
}

/* حالة اختيار الخامة: إطار برتقالي وعلامة اختيار */
.material-card.selected {
  background: rgba(239, 122, 22, 0.09);
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 1px var(--primary-orange), 0 8px 24px rgba(239, 122, 22, 0.2);
}

.material-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.material-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.material-card.selected .material-name {
  color: var(--primary-orange);
}

.material-price {
  font-size: 1.15rem;
  font-weight: 900;
  color: var(--primary-orange);
}

.material-price small {
  font-size: 0.72rem;
  font-weight: 500;
  color: #A0A5B2;
}

.material-desc {
  font-size: 0.78rem;
  color: #9EA3B0;
  line-height: 1.4;
  margin-bottom: 12px;
}

.material-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.material-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  color: #C0C4D0;
  padding: 2px 8px;
  border-radius: 12px;
}

.material-card.selected .material-pill {
  background: rgba(239, 122, 22, 0.2);
  color: #FFA352;
}

.material-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  transition: all var(--transition-fast);
}

.material-card.selected .material-check {
  background: var(--primary-orange);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(239, 122, 22, 0.5);
}

/* حقل الأمتار مع الأزرار والرقائق السريعة (الخطوة 2) */
.meters-input-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 480px;
}

.input-stepper-btn {
  width: 48px;
  height: 52px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  border-radius: var(--border-radius-md);
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.input-stepper-btn:hover {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
}

.meters-input-field {
  flex: 1;
  height: 52px;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--border-radius-md);
  color: #FFFFFF;
  font-size: 1.4rem;
  font-weight: 800;
  text-align: center;
  outline: none;
  transition: border-color var(--transition-fast);
}

.meters-input-field:focus {
  border-color: var(--primary-orange);
  box-shadow: 0 0 0 3px rgba(239, 122, 22, 0.25);
}

.meter-unit-label {
  font-size: 1.1rem;
  font-weight: 700;
  color: #A0A5B2;
}

.meters-quick-chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.chips-label {
  font-size: 0.82rem;
  color: var(--gray-500);
}

.meter-chip {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D2D6E2;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.meter-chip:hover {
  background: var(--primary-orange);
  color: #FFFFFF;
  border-color: var(--primary-orange);
}

/* خيار التركيب (الخطوة 3) */
.installation-toggle-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.installation-toggle-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(239, 122, 22, 0.3);
}

.toggle-label-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
}

.toggle-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(239, 122, 22, 0.15);
  color: var(--primary-orange);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-text-main {
  font-size: 1.05rem;
  font-weight: 800;
  color: #FFFFFF;
  display: block;
}

.toggle-text-sub {
  font-size: 0.82rem;
  color: var(--gray-500);
  display: block;
}

/* مفتاح التبديل (Switch) */
.switch-control {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch-control input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.18);
  transition: 0.3s;
  border-radius: 34px;
}

.switch-slider::before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.switch-control input:checked + .switch-slider {
  background-color: var(--primary-orange);
  box-shadow: 0 0 12px rgba(239, 122, 22, 0.5);
}

.switch-control input:checked + .switch-slider::before {
  transform: translateX(24px);
}

/* رسالة التحقق والخطأ */
.calc-validation-box {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #FCA5A5;
  padding: 10px 16px;
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  font-weight: 700;
  display: none;
  margin-top: 10px;
}

/* لوحة النتائج المبرزة (Result Card) */
.calc-results-bar {
  background: linear-gradient(135deg, rgba(239, 122, 22, 0.12) 0%, rgba(20, 20, 24, 0.9) 100%);
  border: 2px solid rgba(239, 122, 22, 0.35);
  border-radius: var(--border-radius-lg);
  padding: 24px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 24px;
}

.results-breakdown {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1rem;
  color: #D2D5E0;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.result-row strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.result-total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 8px;
}

.total-label {
  font-size: 1.3rem;
  font-weight: 900;
  color: #FFFFFF;
}

.total-amount-wrap {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.total-amount-num {
  font-size: 2.8rem;
  font-weight: 900;
  color: var(--primary-orange);
  line-height: 1;
}

.total-amount-currency {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-orange);
}

/* أنيميشن انتقال وميض سريع عند تغير الإجمالي */
.pop-animate {
  animation: totalPop 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes totalPop {
  0% { transform: scale(0.9); opacity: 0.6; }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); opacity: 1; }
}

.results-action-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
}

.btn-whatsapp-order {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 14px 26px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-whatsapp-order:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
}

.calc-summary-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--gray-500);
}

.calc-summary-chips span {
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 10px;
  border-radius: 12px;
}

/* ==========================================================================
   منيو منتجات المطبعة (Products Catalog Menu)
   خلفيات بيضاء نقية، رفع البطاقة عند مرور المؤشر، نصوص واضحة على الموبايل
   ========================================================================== */
.menu-section {
  padding: 85px 0;
  background-color: var(--gray-100);
}

.menu-filter-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 45px;
}

.menu-filter-btn {
  background: #FFFFFF;
  border: 1px solid var(--gray-300);
  color: var(--text-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 10px 22px;
  border-radius: 30px;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.menu-filter-btn:hover {
  border-color: var(--primary-orange);
  color: var(--primary-orange);
}

.menu-filter-btn.active {
  background: var(--primary-orange);
  border-color: var(--primary-orange);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(239, 122, 22, 0.35);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 26px;
}

/* بطاقة المنتج الفردية */
.product-card {
  background: var(--pure-white);
  border: 1px solid var(--gray-200);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  position: relative;
}

/* رفع البطاقة قليلاً على الكمبيوتر عند مرور المؤشر */
@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(239, 122, 22, 0.3);
  }
}

.product-image-wrap {
  position: relative;
  height: 190px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border-bottom: 1px solid var(--gray-200);
  overflow: hidden;
}

.product-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

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

.product-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(20, 20, 24, 0.85);
  color: #FFFFFF;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  backdrop-filter: blur(6px);
}

.product-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.product-title {
  font-size: 1.22rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.35;
}

/* عرض الأسعار */
.single-price-badge.fixed-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.single-price-badge .price-num {
  font-size: 1.35rem;
  font-weight: 900;
}

.single-price-badge .price-curr {
  font-size: 0.85rem;
  font-weight: 700;
}

/* تمييز الأسعار التي تبدأ من مبلغ معين */
.single-price-badge.starts-at {
  display: flex;
  align-items: baseline;
  gap: 4px;
  background: rgba(59, 130, 246, 0.1);
  color: #1D4ED8;
  padding: 4px 12px;
  border-radius: 8px;
  white-space: nowrap;
}

.single-price-badge.starts-at .price-prefix {
  font-size: 0.76rem;
  font-weight: 700;
}

.single-price-badge.custom-price {
  background: rgba(107, 114, 128, 0.1);
  color: var(--gray-700);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

/* بطاقة الفلاير: عرض سعري A5 و A4 بوضوح */
.multi-price-badge {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.multi-price-badge .price-chip {
  background: var(--primary-orange-light);
  color: var(--primary-orange);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.multi-price-badge .price-chip strong {
  font-size: 0.95rem;
  font-weight: 900;
}

.product-specs {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
  flex: 1;
}

.product-actions {
  margin-top: auto;
}

.btn-product-order {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: #141418;
  color: #FFFFFF !important;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 11px 18px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
}

.btn-product-order:hover {
  background: var(--primary-orange);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(239, 122, 22, 0.35);
}

/* ==========================================================================
   بطاقة الطلبات والمواصفات المخصصة غير المدرجة
   ========================================================================== */
.custom-orders-banner {
  margin-top: 55px;
  background: linear-gradient(135deg, var(--charcoal-800) 0%, var(--charcoal-900) 100%);
  border: 1px solid rgba(239, 122, 22, 0.35);
  border-radius: var(--border-radius-xl);
  padding: 38px 42px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  align-items: center;
  gap: 36px;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

.custom-orders-banner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 180px;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--primary-orange));
}

.custom-orders-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 122, 22, 0.16);
  border: 1px solid rgba(239, 122, 22, 0.35);
  color: #FFA352;
  font-size: 0.84rem;
  font-weight: 800;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}

.custom-orders-badge svg {
  color: var(--primary-orange);
}

.custom-orders-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.45;
}

.custom-orders-desc {
  font-size: 0.96rem;
  color: #B5B9C8;
  line-height: 1.75;
  margin-bottom: 22px;
}

.custom-orders-desc strong {
  color: var(--primary-orange);
}

.custom-services-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-tag {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #D6DAE4;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  transition: all var(--transition-fast);
}

.service-tag:hover {
  background: rgba(239, 122, 22, 0.2);
  border-color: var(--primary-orange);
  color: #FFFFFF;
}

.custom-orders-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: stretch;
}

.btn-custom-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25D366;
  color: #FFFFFF !important;
  font-size: 1.05rem;
  font-weight: 800;
  padding: 15px 24px;
  border-radius: var(--border-radius-md);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.35);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-custom-whatsapp:hover {
  background: #1EBE5D;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, 0.45);
}

.btn-custom-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #FFFFFF !important;
  font-size: 0.95rem;
  font-weight: 700;
  padding: 13px 20px;
  border-radius: var(--border-radius-md);
  transition: all var(--transition-fast);
  text-align: center;
}

.btn-custom-call:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-2px);
}

@media (max-width: 992px) {
  .custom-orders-banner {
    grid-template-columns: 1fr;
    padding: 28px 22px;
    gap: 24px;
  }
}

/* ==========================================================================
   قسم ماكينات وتقنيات الطباعة (Epson S40610 & Xerox 9070C)
   ========================================================================== */
.printers-showcase-section {
  padding: 85px 0;
  background-color: var(--charcoal-900);
  color: #FFFFFF;
}

.printers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 30px;
}

.printer-showcase-card {
  background: var(--charcoal-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  transition: transform var(--transition-normal);
}

.printer-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(239, 122, 22, 0.3);
}

.printer-card-img-wrap {
  position: relative;
  height: 240px;
  background: #000000;
  overflow: hidden;
}

.printer-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.printer-showcase-card:hover .printer-card-img {
  transform: scale(1.05);
}

.printer-brand-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-orange);
  color: #FFFFFF;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.printer-card-content {
  padding: 28px;
}

.printer-type-pill {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-orange);
  background: rgba(239, 122, 22, 0.12);
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}

.printer-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.printer-role {
  font-size: 0.95rem;
  color: #C8CCD6;
  margin-bottom: 10px;
  line-height: 1.6;
}

.printer-tech {
  font-size: 0.88rem;
  color: #989EA8;
  line-height: 1.6;
}

/* ==========================================================================
   قسم تواصل معنا (Contact Us)
   هاتف، إنستغرام، فيسبوك، العنوان بالعربية والإنجليزية، وزر خرائط Google
   ========================================================================== */
.contact-section {
  padding: 85px 0 60px 0;
  background: var(--charcoal-800);
  color: #FFFFFF;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
}

.contact-info-card {
  background: var(--charcoal-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-xl);
  padding: 36px;
}

.contact-channels-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 30px;
}

.contact-channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon-box.phone {
  background: rgba(239, 122, 22, 0.15);
  color: var(--primary-orange);
}

.contact-icon-box.instagram {
  background: rgba(225, 48, 108, 0.15);
  color: #E1306C;
}

.contact-icon-box.facebook {
  background: rgba(24, 119, 242, 0.15);
  color: #1877F2;
}

.contact-icon-box.location {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
}

.channel-texts {
  display: flex;
  flex-direction: column;
}

.channel-title {
  font-size: 0.82rem;
  color: var(--gray-500);
  font-weight: 700;
}

.channel-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
}

.channel-val a:hover {
  color: var(--primary-orange);
}

.contact-buttons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
}

.btn-contact-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--border-radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  color: #FFFFFF !important;
}

.btn-contact-action.call {
  background: var(--primary-orange);
  box-shadow: 0 4px 14px rgba(239, 122, 22, 0.35);
}

.btn-contact-action.call:hover {
  background: var(--primary-orange-hover);
  transform: translateY(-2px);
}

.btn-contact-action.instagram {
  background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
}

.btn-contact-action.instagram:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-contact-action.facebook {
  background: #1877F2;
}

.btn-contact-action.facebook:hover {
  background: #166FE5;
  transform: translateY(-2px);
}

.btn-contact-action.directions {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-contact-action.directions:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
}

/* بطاقة العنوان والخريطة */
.contact-map-card {
  background: var(--charcoal-700);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--border-radius-xl);
  padding: 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.address-block {
  margin-bottom: 24px;
}

.address-lang-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-orange);
  text-transform: uppercase;
  margin-bottom: 4px;
  display: block;
}

.address-text-ar {
  font-size: 1.15rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 16px;
  line-height: 1.5;
}

.address-text-en {
  font-size: 0.95rem;
  font-weight: 500;
  color: #C0C4D0;
  direction: ltr;
  text-align: right;
  line-height: 1.5;
}

.map-embed-preview {
  height: 200px;
  border-radius: var(--border-radius-md);
  background: #1A1A22;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-placeholder-inner {
  text-align: center;
  padding: 20px;
  z-index: 2;
}

.map-placeholder-inner svg {
  color: var(--primary-orange);
  margin-bottom: 8px;
}

.map-placeholder-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

/* ==========================================================================
   التذييل (Footer)
   ========================================================================== */
.main-footer {
  background: var(--charcoal-900);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 30px 0;
  color: var(--gray-500);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand-side {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo-img {
  height: 34px;
  width: auto;
}

/* ==========================================================================
   التجاوب مع شاشات الهواتف والتابلت (Mobile Responsive)
   "على الهاتف، اعرض حقول الحاسبة في عمود واحد، وضع النتيجة تحت خيار التركيب مباشرة"
   ========================================================================== */
@media (max-width: 992px) {
  .hero-content-wrap {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-main-title {
    font-size: 2.6rem;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .calc-results-bar {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .results-action-side {
    align-items: stretch;
  }

  .btn-whatsapp-order {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .navbar-inner {
    height: 68px;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 68px;
    right: 0;
    left: 0;
    background: #FFFFFF;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
    flex-direction: column;
    padding: 24px;
    gap: 18px;
    border-bottom: 2px solid var(--primary-orange);
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .navbar-actions .nav-phone-btn {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hero-main-title {
    font-size: 2.1rem;
  }

  .hero-lead-desc {
    font-size: 1.02rem;
  }

  .btn-primary-calc, .btn-secondary-menu {
    width: 100%;
    justify-content: center;
  }

  .calculator-card {
    padding: 24px 18px;
  }

  /* الحاسبة في عمود واحد على الهاتف */
  .calc-steps-grid {
    grid-template-columns: 1fr !important;
    gap: 24px;
  }

  .materials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .material-card {
    padding: 12px;
    min-height: 100px;
  }

  .material-name {
    font-size: 1rem;
  }

  .material-price {
    font-size: 1rem;
  }

  .meters-input-wrapper {
    max-width: 100%;
  }

  .total-amount-num {
    font-size: 2.2rem;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .footer-brand-side {
    justify-content: center;
  }
}

/* ==========================================================================
   دعم تفضيل تقليل الحركة (prefers-reduced-motion)
   "أوقف المؤثرات الحركية عند تفعيل تفضيل تقليل الحركة على الجهاز"
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-background-visual {
    transform: none !important;
    transition: none !important;
  }

  .hero-printhead-bar.sweeping::after {
    display: none !important;
  }

  .pulse-dot {
    animation: none !important;
  }

  .product-card:hover {
    transform: none !important;
  }

  .pop-animate {
    animation: none !important;
  }

  .printhead-head-marker {
    display: none !important;
  }

  .printhead-line-fill {
    width: 100% !important;
    transition: none !important;
  }
}
