/* ==========================================================================
   DALLAH PLATFORM (منصة دلة) - Official Clean Corporate Stylesheet
   Modern, High-Contrast, Professional, Zero-Gimmick Design
   ========================================================================== */

:root {
  /* Brand Palette - Solid, Authentic Colors */
  --brand-navy: #0a2540;
  --brand-navy-light: #1e3a5f;
  --brand-blue: #0284c7;
  --brand-blue-hover: #0369a1;
  --brand-blue-bg: #f0f7ff;
  
  --brand-gold: #d97706;
  --brand-gold-hover: #b45309;
  --brand-gold-bg: #fffbeb;

  --brand-teal: #0f766e;
  --brand-teal-bg: #f0fdfa;

  /* Surfaces & Borders */
  --bg-page: #f8fafc;
  --bg-white: #ffffff;
  --border-light: #e2e8f0;
  --border-subtle: #edf2f7;

  /* Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 30px rgba(15, 23, 42, 0.1);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.06), 0 4px 10px -2px rgba(0, 0, 0, 0.03);

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --font-family: 'Tajawal', 'Cairo', system-ui, -apple-system, sans-serif;
  --transition: all 0.25s ease;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.7;
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
  font-weight: 800;
  color: var(--brand-navy);
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-logo-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

/* Solid, Bold, Distinct Brand Name - NO GRADIENTS */
.brand-name {
  font-size: 1.55rem;
  font-weight: 900;
  color: var(--brand-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.brand-tagline {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.3px;
}

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

.nav-link {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 0;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--brand-blue);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 2.5px;
  background: var(--brand-blue);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Direct Privacy Policy Link Button */
.btn-nav-privacy {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--brand-navy);
  background: #ffffff;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
}

.btn-nav-privacy:hover {
  background: var(--brand-blue-bg);
  border-color: var(--brand-blue);
  color: var(--brand-blue);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-header-cta:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--brand-navy);
  cursor: pointer;
  padding: 6px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 70px 0 60px;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 800;
  margin-bottom: 20px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

/* Real, Solid Corporate Title */
.hero-title {
  font-size: 3rem;
  font-weight: 900;
  color: var(--brand-navy);
  line-height: 1.25;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 34px;
  max-width: 580px;
}

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

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-blue);
  color: #ffffff;
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-primary-action:hover {
  background: var(--brand-blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.25);
}

.btn-secondary-action {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--brand-navy);
  font-weight: 800;
  font-size: 1rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-light);
  transition: var(--transition);
}

.btn-secondary-action:hover {
  border-color: var(--brand-navy);
  background: #f8fafc;
}

/* Hero Showcase Visual */
.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
  text-align: center;
  position: relative;
}

.hero-main-logo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  transition: transform 0.3s ease;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.06));
}

.hero-main-logo:hover {
  transform: scale(1.05);
}

.hero-visual-badge-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.visual-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.visual-badge i {
  color: var(--brand-blue);
}

/* ==========================================================================
   OFFICIAL 3 APPS SUITE (log, oner, driver)
   ========================================================================== */
.section-apps {
  padding: 80px 0;
  background: var(--bg-page);
}

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

.section-head-clean h2 {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-head-clean p {
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.app-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.app-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-blue);
}

/* App Icon Container */
.app-icon-wrap {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.app-card:hover .app-icon-wrap {
  transform: scale(1.08);
}

.app-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.app-card-title {
  font-size: 1.45rem;
  font-weight: 900;
  color: var(--brand-navy);
  margin-bottom: 6px;
  text-align: center;
}

.app-card-role {
  display: inline-block;
  align-self: center;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.role-customer { background: var(--brand-blue-bg); color: var(--brand-blue); }
.role-merchant { background: var(--brand-gold-bg); color: var(--brand-gold); }
.role-driver { background: var(--brand-teal-bg); color: var(--brand-teal); }

.app-card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 24px;
  flex-grow: 1;
}

.app-card-features {
  list-style: none;
  margin-bottom: 28px;
  padding-top: 18px;
  border-top: 1px dashed var(--border-light);
}

.app-card-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.app-card-features li i {
  color: #16a34a;
  font-size: 0.95rem;
}

/* Store Buttons inside App Cards */
.app-store-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-store-clean {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  background: var(--brand-navy);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.88rem;
  transition: var(--transition);
}

.btn-store-clean:hover {
  background: #000000;
  transform: translateY(-2px);
}

.btn-store-clean.google:hover {
  background: #1e3a5f;
}

.btn-store-clean i {
  font-size: 1.3rem;
}

/* ==========================================================================
   FEATURES / VALUE PROPOSITION (Professional & Direct)
   ========================================================================== */
.section-features-clean {
  padding: 80px 0;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

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

.feature-box {
  padding: 24px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #ffffff;
  transition: var(--transition);
}

.feature-box:hover {
  border-color: var(--brand-blue);
  box-shadow: var(--shadow-md);
}

.feature-box-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-box h4 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.feature-box p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ==========================================================================
   CALL TO ACTION & CONTACT BANNER
   ========================================================================== */
.section-cta-clean {
  padding: 80px 0;
  background: #0a2540;
  color: #ffffff;
}

.cta-clean-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-clean-text h2 {
  color: #ffffff;
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.cta-clean-text p {
  color: #cbd5e1;
  font-size: 1.05rem;
  max-width: 600px;
}

.cta-clean-actions {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
}

.btn-cta-white {
  background: #ffffff;
  color: var(--brand-navy);
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-cta-white:hover {
  background: #f1f5f9;
  transform: translateY(-2px);
}

.btn-cta-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  font-weight: 800;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-cta-outline:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

/* ==========================================================================
   FOOTER (Corporate & Direct)
   ========================================================================== */
.site-footer {
  background: #ffffff;
  color: var(--text-secondary);
  border-top: 1px solid var(--border-light);
  padding: 60px 0 30px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 30px;
}

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

.footer-links-row a {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-secondary);
}

.footer-links-row a:hover {
  color: var(--brand-blue);
}

/* Prominent Privacy Policy Button in Footer */
.footer-privacy-highlight {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--brand-blue-bg);
  color: var(--brand-blue);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(2, 132, 199, 0.25);
  font-size: 0.88rem;
  font-weight: 800;
  transition: var(--transition);
}

.footer-privacy-highlight:hover {
  background: var(--brand-blue);
  color: #ffffff;
}

.footer-bottom-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVENESS
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .apps-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }

  .cta-clean-inner {
    flex-direction: column;
    text-align: center;
  }

  .cta-clean-actions {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 80px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 80px);
    background: #ffffff;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.08);
    transition: right 0.3s ease;
    z-index: 99;
  }

  .nav-menu.open {
    right: 0;
  }

  .header-actions .btn-header-cta {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .footer-links-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
  }

  .footer-bottom-clean {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
}
