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

:root {
  /* ── Light Mode: Blue & White Media Agency ── */
  --bg-primary: #f0f4f9;
  --bg-secondary: #e8eef6;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-hover: rgba(255, 255, 255, 1);
  --border-color: rgba(37, 99, 235, 0.18);
  --border-glow: rgba(37, 99, 235, 0.38);

  /* Brand Accent Palette */
  --gold-primary: #2563eb;
  --gold-light: #1d4ed8;
  --gold-dark: #1e40af;

  /* Accent */
  --accent-sky: #0ea5e9;
  --accent-violet: #7c3aed;
  --accent-green: #059669;
  --accent-red: #dc2626;

  /* Text */
  --text-main: #0f172a;
  --text-muted: #334155;
  --text-dim: #64748b;

  /* Smooth Black Stroke for White/Light Typography */
  --text-stroke-black:
    -1px -1px 0 #000000,
     1px -1px 0 #000000,
    -1px  1px 0 #000000,
     1px  1px 0 #000000,
     0px  2px 5px rgba(0, 0, 0, 0.55);

  --text-stroke-black-strong:
    -1.5px -1.5px 0 #000000,
     1.5px -1.5px 0 #000000,
    -1.5px  1.5px 0 #000000,
     1.5px  1.5px 0 #000000,
     0px    3px   8px rgba(0, 0, 0, 0.7);

  /* Shadows */
  --shadow-gold: 0 8px 30px rgba(37, 99, 235, 0.14);
  --shadow-card: 0 2px 16px rgba(15, 23, 42, 0.08);

  --font-arabic: 'Cairo', 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
  line-height: 1.75;
  overflow-x: hidden;
  background-image:
    radial-gradient(circle at 10% 10%, rgba(37, 99, 235, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(124, 58, 237, 0.04) 0%, transparent 50%);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Container */
.container {
  width: 92%;
  max-width: 1240px;
  margin: 0 auto;
}

/* Header & Nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(37, 99, 235, 0.14);
  padding: 12px 0;
  transition: var(--transition);
  box-shadow: 0 2px 20px rgba(15, 23, 42, 0.08);
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 155px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.2));
  transition: var(--transition);
}

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

.brand-text h1 {
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -0.3px;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  font-weight: 600;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

nav.main-nav a {
  color: var(--text-main);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  transition: var(--transition);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: #ffffff;
  background: #0f172a;
  border: 1px solid #000000;
  text-shadow: var(--text-stroke-black);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-arabic);
  border: none;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.25);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.38);
  background: linear-gradient(135deg, var(--gold-light), var(--gold-primary));
  color: #ffffff;
}

.btn-outline {
  background: #0f172a;
  color: #ffffff;
  border: 1px solid #000000;
  text-shadow: var(--text-stroke-black);
}

.btn-outline:hover {
  background: #1e293b;
  border-color: var(--gold-primary);
  color: #ffffff;
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

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

/* Hero Section */
.hero-section {
  padding: 80px 0 60px;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0f172a;
  border: 1px solid #000000;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  margin-bottom: 24px;
}

.hero-title {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: var(--text-stroke-black-strong);
}

.hero-title .highlight {
  color: #ffffff;
  background: linear-gradient(120deg, var(--gold-primary), var(--accent-violet));
  padding: 0 12px;
  border-radius: 10px;
  text-shadow: var(--text-stroke-black-strong);
  display: inline-block;
  margin-top: 6px;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 32px;
  line-height: 1.85;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
  padding-top: 28px;
}

.stat-item h3 {
  font-size: 28px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
}

.stat-item p {
  font-size: 13px;
  color: var(--text-muted);
}

/* Hero Visual Box */
.hero-visual {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(12px);
}

.visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.visual-dots {
  display: flex;
  gap: 8px;
}

.visual-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #f59e0b; }
.dot-green { background: #10b981; }

/* Sections */
.section-pad {
  padding: 80px 0;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-tag {
  color: #ffffff;
  background: #0f172a;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  display: inline-block;
  text-shadow: var(--text-stroke-black);
}

.section-title {
  font-size: 34px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: var(--text-stroke-black-strong);
  margin-bottom: 16px;
  line-height: 1.35;
}

.section-desc {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
}

/* Service Cards */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 28px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  padding: 32px 28px;
  position: relative;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-card);
}

.service-card:hover {
  transform: translateY(-6px);
  background: var(--bg-card-hover);
  border-color: var(--gold-light);
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.14), var(--shadow-gold);
}

.service-card.featured {
  border-color: var(--gold-primary);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.06) 0%, #ffffff 100%);
}

.card-top-tag {
  position: absolute;
  top: -12px;
  left: 28px;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  font-size: 11px;
  font-weight: 900;
  padding: 4px 14px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}

.service-icon-box {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  margin-bottom: 22px;
  border: 1px solid var(--border-color);
}

.service-card h3 {
  font-size: 21px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  margin-bottom: 12px;
}

.service-card p.card-summary {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 20px;
}

.service-features-list {
  list-style: none;
  margin-bottom: 28px;
}

.service-features-list li {
  font-size: 13px;
  color: var(--text-main);
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.service-features-list li span.check {
  color: var(--gold-primary);
  font-weight: bold;
}

.service-card .card-footer-cta {
  margin-top: auto;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-card .card-footer-cta a:not(.btn) {
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.service-card .card-footer-cta a:not(.btn):hover {
  color: #ffffff;
  transform: translateX(-4px);
}

/* Feature Showcase Box */
.showcase-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 44px;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.showcase-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

/* Authority / Founder Block */
.director-manifesto {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  border: 1px solid var(--gold-primary);
  border-radius: 24px;
  padding: 48px;
  position: relative;
  margin: 60px 0;
  color: #ffffff;
}

.director-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.director-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  border: 3px solid rgba(255, 255, 255, 0.2);
}

.director-meta h3 {
  font-size: 22px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
}

.director-meta p {
  color: #93c5fd;
  font-size: 14px;
  font-weight: 600;
}

.director-quote {
  font-size: 18px;
  line-height: 1.9;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  font-weight: 600;
  font-style: italic;
  margin-bottom: 20px;
}

/* Call to Action Bar */
.cta-banner {
  background: linear-gradient(135deg, #131b2e, #0a0f1d);
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  margin: 70px 0;
  position: relative;
}

.cta-banner h2 {
  font-size: 32px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: var(--text-stroke-black-strong);
  margin-bottom: 14px;
}

.cta-banner p {
  font-size: 16px;
  color: #cbd5e1;
  max-width: 650px;
  margin: 0 auto 32px;
}

/* Footer */
footer.site-footer {
  background: #04060a;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 48px 0 24px;
  margin-top: 60px;
}

.footer-logo-wrap {
  display: inline-block;
  margin-bottom: 14px;
}

.footer-logo-img {
  height: 54px;
  width: auto;
  max-width: 185px;
  object-fit: contain;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  margin-bottom: 18px;
}

.footer-col p {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
}

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

.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 13px;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #ffffff;
  text-shadow: var(--text-stroke-black);
  transform: translateX(-4px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: #94a3b8;
}

/* ── Global Black Stroke & Contrast Fixes Across All Pages ── */
.hero-visual h4,
.slc-info h4,
.step-box h4,
.promo-box h3,
.value-card h4,
.timeline-item h4,
.contact-channel h4,
.service-select-box h3,
.product-card h3,
.policy-section h3,
.policy-toc h4,
.plan-box h3,
.showcase-block h3 {
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black) !important;
}

/* Fix white-on-light elements inside specific pages */
.promo-box {
  background: linear-gradient(135deg, #0f172a, #1e293b) !important;
  color: #ffffff !important;
}
.promo-box p {
  color: #cbd5e1 !important;
}

.service-btn {
  background: #f8fafc !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}
.service-btn:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}

.comparison-table {
  background: #ffffff;
  box-shadow: var(--shadow-card);
}
.comparison-table th {
  background: #0f172a !important;
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}
.comparison-table td {
  color: var(--text-main) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}
.comparison-table td:first-child {
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}
.comparison-table td.col-bad {
  color: #dc2626 !important;
  font-weight: 700;
}
.comparison-table td.col-good {
  color: #059669 !important;
  font-weight: 700;
}

.cpm-box.bad {
  background: rgba(220, 38, 38, 0.08) !important;
}
.cpm-box.good {
  background: rgba(5, 150, 105, 0.08) !important;
}
.cpm-box .cpm-label {
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}

.plan-box.featured {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), #ffffff) !important;
}
.plan-price-tag,
.price-main {
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}

.plan-table th {
  background: #0f172a !important;
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}
.plan-table td {
  color: var(--text-main) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08) !important;
}
.plan-table td:first-child {
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}

.policy-toc ol li a {
  color: var(--gold-primary) !important;
  font-weight: 700 !important;
}

.trust-badge {
  background: rgba(15, 23, 42, 0.06) !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  color: var(--text-main) !important;
  font-weight: 600;
}
.director-manifesto .trust-badge,
.site-footer .trust-badge {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  text-shadow: var(--text-stroke-black);
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .showcase-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-title {
    font-size: 34px;
  }
}

@media (max-width: 768px) {
  nav.main-nav {
    display: none;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 26px;
  }
}
