/* upgrades.css - CRO and SEO enhancements */

/* ==========================================================
   🦅 LOGO IMAGE STYLES
   ========================================================== */
.logo-img-wrap {
  display: flex !important;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}
.logo-text-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-main {
  font-size: 1.3rem;
  font-weight: 800;
  color: #1a3c6e; /* أزرق داكن يظهر على الهيدر الأبيض */
}
.logo-sub {
  font-size: 0.75rem;
  font-weight: 700;
  color: #d97706; /* ذهبي داكن للوضوح */
  letter-spacing: 0.3px;
}
/* في حالة الصفحات اللي الهيدر فيها داكن — override إن احتجنا */
.site-header--dark .logo-main { color: #ffffff; }
.site-header--dark .logo-sub  { color: #f0a500; }
/* Footer logo */
.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: var(--sp-4, 16px);
}
.footer-logo-img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}
.footer-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.footer-logo-main {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white, #fff);
}
.footer-logo-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--secondary, #f0a500);
}
@media (max-width: 768px) {
  .logo-img { width: 38px; height: 38px; }
  .logo-main { font-size: 1.1rem; }
  .logo-sub { font-size: 0.65rem; }
}

/* Trust Bar */
.top-trust-bar {
  background-color: #f8f9fa;
  color: #333;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding: 8px 15px;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid #e9ecef;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}
.top-trust-bar span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
@media (max-width: 768px) {
  .top-trust-bar {
    font-size: 0.8rem;
    gap: 10px;
    padding: 6px 10px;
  }
}

/* Price Transparency Badge */
.price-badge {
  display: inline-block;
  background-color: #fff3cd;
  color: #856404;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: bold;
  margin-top: 10px;
  border: 1px solid #ffeeba;
}

/* Floating WhatsApp Pulse */
.wa-float-new {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 40px;
  right: 40px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 3px #999;
  z-index: 100;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  animation: wa-pulse 2s infinite;
}
.wa-float-new.show {
  opacity: 1;
  visibility: visible;
}
@keyframes wa-pulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
  .wa-float-new {
    bottom: 90px; /* Above the sticky block */
    right: 20px;
    width: 50px;
    height: 50px;
    font-size: 24px;
  }
}

/* Mobile Sticky CTA Bar */
.sticky-cta-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #fff;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  padding: 10px;
}
.sticky-cta-bar-inner {
  display: flex;
  gap: 10px;
}
.sticky-btn {
  flex: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  color: #fff;
  font-size: 1rem;
  gap: 8px;
}
.sticky-btn-call {
  background-color: #1e3a8a;
}
.sticky-btn-wa {
  background-color: #25d366;
}
@media (max-width: 768px) {
  .sticky-cta-bar {
    display: block;
  }
  body {
    padding-bottom: 70px; /* Make room for sticky bar */
  }
}

/* New Sections Styling */
.pricing-teaser {
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  padding: 40px 20px;
  text-align: center;
  border-radius: 12px;
  margin: 40px 0;
  border: 1px solid #bbf7d0;
}
.pricing-teaser h2 {
  color: #166534;
  margin-bottom: 15px;
}
.pricing-teaser p {
  font-size: 1.1rem;
  color: #14532d;
  margin-bottom: 25px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 30px;
}
.process-step {
  display: flex;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  align-items: flex-start;
}
.process-step-num {
  background: var(--primary);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.process-step-content h3 {
  margin: 0 0 10px 0;
  color: var(--text-heading);
}
.process-step-content p {
  margin: 0;
  color: var(--text-muted);
}
@media (min-width: 768px) {
  .process-steps {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .process-step {
    flex: 1 1 calc(50% - 20px);
  }
}

/* Comparison Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
  margin-top: 30px;
}
.comparison-table th, .comparison-table td {
  padding: 15px;
  text-align: right;
  border-bottom: 1px solid #eee;
}
.comparison-table th {
  background: #f8f9fa;
  font-weight: bold;
}
.comparison-table th.us {
  background: #e0f2fe;
  color: #0369a1;
}
.comparison-table th.them {
  background: #fee2e2;
  color: #b91c1c;
}
.comparison-table tr:last-child td {
  border-bottom: none;
}
.check-icon {
  color: #16a34a;
  font-weight: bold;
}
.cross-icon {
  color: #dc2626;
  font-weight: bold;
}

/* Detailed Reviews */
.detailed-review {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  border-top: 4px solid var(--primary);
  height: 100%;
}
.detailed-review .stars {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.detailed-review .review-text {
  font-size: 1rem;
  line-height: 1.6;
  color: #4b5563;
  margin-bottom: 15px;
  font-style: italic;
}
.detailed-review .author-info {
  display: flex;
  flex-direction: column;
}
.detailed-review .author-name {
  font-weight: bold;
  color: #111827;
}
.detailed-review .review-meta {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 5px;
}

/* Common Section Margin */
.mt-5 { margin-top: 50px; }
.mb-5 { margin-bottom: 50px; }

/* ==========================================================
   🔥 EMERGENCY OFFER BAR
   ========================================================== */
.emergency-bar {
  background: linear-gradient(90deg, #c0392b, #e74c3c);
  color: #fff;
  padding: 8px 0;
  font-size: 0.9rem;
  text-align: center;
  position: relative;
  z-index: 1001;
}
.emergency-badge {
  background: #f1c40f; color: #000;
  padding: 2px 8px; border-radius: 4px;
  font-weight: bold; font-size: 0.8rem;
  animation: pulse-soft 2s infinite;
}
@keyframes pulse-soft {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(241,196,15,0.7); }
  70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(241,196,15,0); }
  100% { transform: scale(1); }
}
.countdown {
  display: inline-flex; gap: 5px; font-weight: bold;
  background: rgba(0, 0, 0, 0.2); padding: 3px 10px; border-radius: 4px; direction: ltr;
}
.countdown span { display: flex; flex-direction: column; align-items: center; line-height: 1; margin:0 3px;}
.countdown small { font-size: 0.55rem; font-weight: normal; margin-top: 2px; }
.close-emergency {
  position: absolute; left: 0; background: none; border: none; color: white;
  cursor: pointer; opacity: 0.7; padding: 5px; font-size: 1.2rem;
}

/* ==========================================================
   🧮 PRICE CALCULATOR
   ========================================================== */
.calc-wrapper { max-width: 800px; margin: 0 auto; background: var(--white); border-radius: 12px; box-shadow: var(--shadow-xl); overflow: hidden; border: 1px solid rgba(0,0,0,0.05); }
.calc-header { background: var(--primary); color: var(--white); padding: 20px; }
.calc-header h3 { font-size: 1.25rem; margin: 0; }
.calc-body { padding: 30px; }
.calc-group label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.form-control { width: 100%; padding: 12px; border: 1px solid #e2e8f0; border-radius: 8px; font-family: inherit; font-size: 1rem; background: var(--white); outline: none; transition: 0.3s; }
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,60,110,0.1); }
.calc-checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 15px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; font-weight: 600; font-size: 0.9rem; transition: 0.3s; }
.calc-checkbox-label:hover { border-color: var(--primary); }
.calc-result { background: #f8fafc; border: 2px dashed #cbd5e1; border-radius: 12px; padding: 20px; margin-top: 20px; }

/* ==========================================================
   📦 PRICING CARDS
   ========================================================== */
.price-pkg-card { background: var(--white); border: 1px solid #e2e8f0; border-radius: 16px; padding: 40px 30px; text-align: center; transition: 0.3s; position: relative; box-shadow: var(--shadow-md); margin-top:20px; }
.price-pkg-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-xl); }
.price-pkg-card.popular { border-color: var(--primary); box-shadow: 0 10px 30px rgba(26,60,110,0.15); transform: scale(1.05); }
.price-pkg-card.popular:hover { transform: scale(1.05) translateY(-8px); }
.popular-badge { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: var(--primary); padding: 6px 16px; border-radius: 20px; font-weight: bold; font-size: 0.85rem; white-space: nowrap; box-shadow: var(--shadow-md); }
.price-pkg-card h3 { font-size: 1.4rem; color: var(--primary); margin-bottom: 15px; }
.price-pkg-amount { font-size: 2.5rem; font-weight: 800; color: var(--primary); margin-bottom: 25px; line-height: 1; display:flex; justify-content:center; align-items:baseline; gap:5px;}
.price-pkg-amount span { font-size: 1rem; font-weight: 400; color: var(--text-muted); }
.price-pkg-features { padding: 0; margin: 0 0 30px; text-align: right; list-style: none; }
.price-pkg-features li { padding: 10px 0; border-bottom: 1px solid #f1f5f9; color: var(--text-muted); font-size: 0.95rem; }
.price-pkg-features li.disabled { opacity: 0.4; text-decoration: line-through; }

/* ==========================================================
   📰 BLOG PREVIEW CARDS
   ========================================================== */
.b-card { background: var(--white); border-radius: 16px; overflow: hidden; display: block; border: 1px solid #e2e8f0; transition: 0.3s; box-shadow: var(--shadow-sm); }
.b-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.b-img-wrap { height: 220px; background: #e2e8f0; overflow: hidden; position: relative; }
.b-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.b-card:hover .b-img-wrap img { transform: scale(1.08); }
.b-content { padding: 25px; }
.b-tag { display: inline-block; padding: 4px 12px; background: rgba(26,60,110,0.08); color: var(--primary); border-radius: 6px; font-size: 0.8rem; font-weight: 700; margin-bottom: 15px; }
.b-title { font-size: 1.2rem; font-weight: 800; color: var(--text-dark); margin-bottom: 10px; line-height: 1.5; }
.b-desc { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 20px; line-height: 1.6; }
.b-readmore { color: var(--secondary); font-weight: 700; font-size: 0.95rem; }
.b-card:hover .b-readmore { color: var(--primary); text-decoration: underline; }

@media (max-width: 991px) {
  .price-pkg-card.popular { transform: none; }
  .price-pkg-card.popular:hover { transform: translateY(-8px); }
}
