/**
 * =========================================================================
 * MYTECHAPART PROMOTIONAL DESIGN SYSTEM — PHASE 1: VISUAL FOUNDATION
 * =========================================================================
 * Loaded after all template/vendor CSS files (core.css, demo.css,
 * front-page-landing.css, promo-responsive.css) without touching vendor/.
 * Supports RTL (Arabic) & LTR (English) | Light & Dark Modes.
 * =========================================================================
 */

:root {
  /* 1. Brand & Interactive Color Tokens (WCAG AA >= 4.5:1 Verified) */
  --promo-color-primary: #696cff;
  --promo-color-action: #5f61e6;          /* Contrast with #ffffff = 4.82:1 (>= 4.5:1) */
  --promo-color-action-hover: #5f61e6;    /* Hover state */
  --promo-color-action-pressed: #5457cc;  /* Pressed/Active state (Contrast = 5.86:1) */
  --promo-color-primary-soft: rgba(105, 108, 255, 0.08);

  /* Unified Compliance Green Token (Single Green Across All Badges & Icons) */
  --promo-color-compliance: #15803d;      /* Contrast with #ffffff = 5.02:1 (>= 4.5:1) */
  --promo-color-compliance-text: #15803d; /* Contrast on #ffffff = 5.02:1 */
  --promo-color-compliance-soft: rgba(21, 128, 61, 0.08);
  --promo-color-compliance-border: rgba(21, 128, 61, 0.24);

  /* Accessible Semantic Solids for White Text (>= 4.5:1) */
  --promo-color-info-solid: #0e7490;      /* Contrast with #ffffff = 5.36:1 */
  --promo-color-warning-solid: #b45309;   /* Contrast with #ffffff = 5.02:1 */

  /* Neutral Text & Surface Tokens (Light Mode >= 4.5:1) */
  --promo-text-heading: #0f172a;          /* Contrast on #fff = 17.8:1 */
  --promo-text-body: #1e293b;             /* Contrast on #fff = 14.6:1 */
  --promo-text-muted: #475569;            /* Contrast on #fff = 7.58:1 (>= 4.5:1) */
  --promo-surface-page: #ffffff;
  --promo-surface-alt: #f8fafc;
  --promo-surface-card: #ffffff;
  --promo-border-card: #e2e8f0;           /* Light neutral gray border instead of purple */
  --promo-border-card-hover: #cbd5e1;

  /* 2. Typography Scale Tokens */
  --promo-font-sans: 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Tahoma, Arial, sans-serif;
  --promo-fs-h1: clamp(2rem, 4vw, 3.25rem);
  --promo-fw-h1: 800;
  --promo-fs-h2: 2.25rem;                 /* 36px on desktop */
  --promo-fs-h3: 1.5rem;                  /* 24px */
  --promo-fs-body: 17px;                  /* 17px body text */
  --promo-fs-nav: 15px;                   /* 15px navigation text */
  --promo-fs-btn: 15px;                   /* 15px button text */

  /* 3. Border Radius Tokens */
  --promo-radius-btn: 12px;
  --promo-radius-card: 16px;
  --promo-radius-pill: 9999px;

  /* 4. Elevation / Shadow Tokens (Strictly 2 Shadows: Normal & Hover) */
  --promo-shadow-card: 0 4px 16px rgba(15, 23, 42, 0.06);
  --promo-shadow-card-hover: 0 12px 28px rgba(15, 23, 42, 0.12);

  /* 5. Section Spacing Tokens */
  --promo-section-py-desktop: 96px;
  --promo-section-py-mobile: 56px;
  --promo-section-py: var(--promo-section-py-desktop);
}

/* Dark Mode Design Tokens */
[data-bs-theme="dark"] {
  --promo-color-primary: #696cff;
  --promo-color-action: #5f61e6;          /* Contrast with #ffffff = 4.82:1 */
  --promo-color-action-hover: #5f61e6;
  --promo-color-action-pressed: #5457cc;
  --promo-color-primary-soft: rgba(105, 108, 255, 0.14);

  --promo-color-compliance: #15803d;      /* Solid badge bg with white text = 5.02:1 */
  --promo-color-compliance-text: #4ade80; /* Text/icon on dark surface = 8.45:1 */
  --promo-color-compliance-soft: rgba(74, 222, 128, 0.12);
  --promo-color-compliance-border: rgba(74, 222, 128, 0.28);

  --promo-text-heading: #f8fafc;          /* Contrast on #232333 = 14.8:1 */
  --promo-text-body: #e2e8f0;             /* Contrast on #232333 = 12.1:1 */
  --promo-text-muted: #cbd5e1;            /* Contrast on #232333/#2b2c40 = 9.4:1 (>= 4.5:1) */
  --promo-surface-page: #232333;
  --promo-surface-alt: #1e1e2d;
  --promo-surface-card: #2b2c40;
  --promo-border-card: #3b3f5c;           /* Neutral slate gray border in dark mode */
  --promo-border-card-hover: #4f557a;

  --promo-shadow-card: 0 4px 16px rgba(0, 0, 0, 0.28);
  --promo-shadow-card-hover: 0 12px 28px rgba(0, 0, 0, 0.45);
}

/* Responsive Typography & Spacing Token Adjustments for Tablet/Mobile */
@media (max-width: 991.98px) {
  :root {
    /* Keep h2 (28px) strictly smaller than h1 (min 2rem = 32px) on tablet & mobile */
    --promo-fs-h2: 1.75rem;
    --promo-fs-h3: 1.375rem;
  }
}

@media (max-width: 767.98px) {
  :root {
    --promo-section-py: var(--promo-section-py-mobile);
    --promo-fs-h2: 1.625rem;
    --promo-fs-h3: 1.3125rem;
  }
}

/* =========================================================================
 * 2. BASE ROOT & TYPOGRAPHY HIERARCHY (h1 > h2 > h3, Body 17px, Nav 15px)
 * ========================================================================= */
html {
  font-size: 16px !important;
}

html body {
  font-family: var(--promo-font-sans) !important;
  font-size: var(--promo-fs-body) !important;
  line-height: 1.65 !important;
  color: var(--promo-text-body) !important;
}

html body p,
html body .section-py p,
html body #landingHero p,
html body .lead,
html body #landingHero .lead,
html body .accordion-body,
html body .card-body p {
  font-size: var(--promo-fs-body) !important;
  line-height: 1.65 !important;
}

/* H1: clamp(2rem, 4vw, 3.25rem), weight 800 */
html body h1,
html body .h1,
html body #landingHero h1,
html body #landingHero h1.display-5,
html body .promo-page-hero h1 {
  font-size: var(--promo-fs-h1) !important;
  font-weight: var(--promo-fw-h1) !important;
  line-height: 1.25 !important;
  color: var(--promo-text-heading);
}

html body #landingHero h1 .fs-3 {
  font-size: 0.58em !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
}

/* H2: 2.25rem on desktop (scaled on mobile/tablet so h1 > h2 always) */
html body h2,
html body .h2,
html body .section-py h2,
html body h2.fw-extrabold {
  font-size: var(--promo-fs-h2) !important;
  font-weight: 800 !important;
  line-height: 1.3 !important;
  color: var(--promo-text-heading);
}

/* Preserve normal button font size inside FAQ accordion headers */
html body .accordion-header h2,
html body h2.accordion-header {
  font-size: 1.0625rem !important;
  line-height: 1.4 !important;
}

/* H3: 1.5rem */
html body h3,
html body .h3,
html body .section-py h3 {
  font-size: var(--promo-fs-h3) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  color: var(--promo-text-heading);
}

/* Navigation Links: 15px across all viewports */
html body nav.layout-navbar .navbar.landing-navbar .landing-nav-menu .navbar-nav .nav-link,
html body nav.layout-navbar .navbar-nav .nav-link,
html body .landing-nav-menu .navbar-nav .nav-link {
  font-size: var(--promo-fs-nav) !important;
  font-weight: 600 !important;
  color: var(--promo-text-heading) !important;
  min-height: 44px !important;
  display: inline-flex !important;
  align-items: center !important;
}

nav.layout-navbar .navbar-nav .nav-link:hover,
nav.layout-navbar .navbar-nav .nav-link:focus,
nav.layout-navbar .navbar-nav .nav-link.active {
  color: var(--promo-color-action) !important;
}

[data-bs-theme="dark"] nav.layout-navbar .navbar-nav .nav-link:hover,
[data-bs-theme="dark"] nav.layout-navbar .navbar-nav .nav-link:focus,
[data-bs-theme="dark"] nav.layout-navbar .navbar-nav .nav-link.active {
  color: #a5b4fc !important;
}

/* Links & Interactive Accents */
a:not(.btn):not(.nav-link):not(.badge):not(.navbar-brand):not(.promo-whatsapp-fab) {
  color: var(--promo-color-action);
}

a:not(.btn):not(.nav-link):not(.badge):not(.navbar-brand):not(.promo-whatsapp-fab):hover {
  color: var(--promo-color-action-pressed);
}

[data-bs-theme="dark"] a:not(.btn):not(.nav-link):not(.badge):not(.navbar-brand):not(.promo-whatsapp-fab) {
  color: #a5b4fc;
}

/* =========================================================================
 * 3. BUTTON SYSTEM (Min Height 44px, Font 15px, Radius 12px, Contrast >= 4.5:1)
 * ========================================================================= */
html body .btn,
html body .btn-lg,
html body .btn-sm,
html body .btn-xs,
html body .section-py .btn,
html body #landingHero .btn,
html body .promo-workbench-tabs > .btn,
html body .promo-filter-pills > .btn,
html body .promo-pricing-cycle-toggle > .btn {
  min-height: 44px !important;
  font-size: var(--promo-fs-btn) !important;
  font-weight: 700 !important;
  border-radius: var(--promo-radius-btn) !important;
  padding-block: 0.55rem !important;
  padding-inline: 1.15rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.35rem;
  line-height: 1.35 !important;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease !important;
}

/* Primary Action Button (#5f61e6 bg + #ffffff text = 4.84:1 contrast) */
html body .btn-primary,
html body .btn.btn-primary {
  background-color: var(--promo-color-action) !important;
  border-color: var(--promo-color-action) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(95, 97, 230, 0.24) !important;
}

html body .btn-primary:hover,
html body .btn-primary:focus,
html body .btn.btn-primary:hover,
html body .btn.btn-primary:focus {
  background-color: var(--promo-color-action-hover) !important;
  border-color: var(--promo-color-action-hover) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px rgba(95, 97, 230, 0.32) !important;
}

html body .btn-primary:active,
html body .btn-primary.active,
html body .btn.btn-primary:active,
html body .btn.btn-primary.active {
  background-color: var(--promo-color-action-pressed) !important;
  border-color: var(--promo-color-action-pressed) !important;
  color: #ffffff !important;
}

/* Secondary / Outline / Soft Buttons (Consistent across all sections) */
html body .btn-outline-primary {
  color: var(--promo-color-action) !important;
  border: 1.5px solid var(--promo-color-action) !important;
  background-color: transparent !important;
}

html body .btn-outline-primary:hover,
html body .btn-outline-primary:focus {
  background-color: var(--promo-color-primary-soft) !important;
  color: var(--promo-color-action-pressed) !important;
  border-color: var(--promo-color-action-pressed) !important;
}

html[data-bs-theme="dark"] body .btn-outline-primary {
  color: #c7d2fe !important;
  border-color: #818cf8 !important;
}

html[data-bs-theme="dark"] body .btn-outline-primary:hover,
html[data-bs-theme="dark"] body .btn-outline-primary:focus {
  background-color: rgba(105, 108, 255, 0.18) !important;
  color: #ffffff !important;
}

html body .btn-label-primary,
html body .btn-label-info,
html body .btn-label-secondary {
  background-color: var(--promo-color-primary-soft) !important;
  color: var(--promo-color-action-pressed) !important;
  border: 1px solid rgba(95, 97, 230, 0.2) !important;
}

html body .btn-label-primary:hover,
html body .btn-label-info:hover,
html body .btn-label-secondary:hover {
  background-color: rgba(105, 108, 255, 0.14) !important;
  color: var(--promo-color-action-pressed) !important;
}

/* Active state for Tab / Filter / Cycle switcher buttons (#5457cc bg + #fff text = 5.86:1 contrast in Light & Dark) */
html body .btn-label-primary.active,
html body .promo-workbench-tabs .btn.active,
html body .promo-filter-pills .btn.active,
html body .promo-pricing-cycle-toggle .btn.active,
html[data-bs-theme="dark"] body .btn-label-primary.active,
html[data-bs-theme="dark"] body .promo-workbench-tabs .btn.active,
html[data-bs-theme="dark"] body .promo-filter-pills .btn.active,
html[data-bs-theme="dark"] body .promo-pricing-cycle-toggle .btn.active {
  background-color: var(--promo-color-action-pressed) !important;
  color: #ffffff !important;
  border: 1.5px solid var(--promo-color-action-pressed) !important;
  font-weight: 800 !important;
}

html[data-bs-theme="dark"] body .btn-label-primary:not(.active),
html[data-bs-theme="dark"] body .btn-label-info:not(.active),
html[data-bs-theme="dark"] body .btn-label-secondary:not(.active) {
  background-color: rgba(105, 108, 255, 0.16) !important;
  color: #e0e7ff !important;
  border-color: rgba(165, 180, 252, 0.28) !important;
}

/* Unify workbench tab group so each tab button has 12px radius and >= 44px height */
.promo-workbench-tabs {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 0.45rem !important;
}

.promo-workbench-tabs > .btn {
  border-radius: var(--promo-radius-btn) !important;
  margin: 0 !important;
}

/* =========================================================================
 * 4. CARDS SYSTEM (16px Radius, Neutral Gray Borders, Strictly 2 Shadows)
 * ========================================================================= */
.card,
.promo-bento-card,
.promo-workbench-window,
.promo-plan-recommended,
.accordion-item.card {
  border-radius: var(--promo-radius-card) !important;
  border: 1px solid var(--promo-border-card) !important;
  border-top: 1px solid var(--promo-border-card) !important;
  background-color: var(--promo-surface-card) !important;
  box-shadow: var(--promo-shadow-card) !important;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease !important;
}

.card:hover,
.promo-bento-card:hover,
.promo-workbench-window:hover,
.promo-plan-recommended:hover {
  box-shadow: var(--promo-shadow-card-hover) !important;
  border-color: var(--promo-border-card-hover) !important;
  border-top-color: var(--promo-border-card-hover) !important;
}

/* Recommended plan card keeps subtle distinction without breaking the 2-shadow / neutral-border system */
.promo-plan-recommended {
  border-width: 1.5px !important;
}

/* =========================================================================
 * 5. SECTION SPACING (96px Desktop / 56px Mobile)
 * ========================================================================= */
.section-py {
  padding-top: var(--promo-section-py-desktop) !important;
  padding-bottom: var(--promo-section-py-desktop) !important;
}

#landingHero.section-py {
  padding-top: calc(var(--promo-section-py-desktop) + 16px) !important;
  padding-bottom: var(--promo-section-py-desktop) !important;
}

@media (max-width: 767.98px) {
  .section-py {
    padding-top: var(--promo-section-py-mobile) !important;
    padding-bottom: var(--promo-section-py-mobile) !important;
  }

  #landingHero.section-py {
    padding-top: calc(var(--promo-section-py-mobile) + 28px) !important;
    padding-bottom: var(--promo-section-py-mobile) !important;
  }
}

/* =========================================================================
 * 6. UNIFIED COMPLIANCE GREEN & WCAG AA CONTRAST ENFORCEMENT (>= 4.5:1)
 * ========================================================================= */

/* Muted & body text contrast >= 4.5:1 in both Light and Dark modes */
.text-muted,
.card .text-muted,
.section-py .text-muted {
  color: var(--promo-text-muted) !important;
}

.text-heading,
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  color: var(--promo-text-heading) !important;
}

/* Primary text accent contrast >= 4.5:1 */
.text-primary {
  color: var(--promo-color-action) !important;
}

[data-bs-theme="dark"] .text-primary {
  color: #a5b4fc !important;
}

.text-info {
  color: var(--promo-color-info-solid) !important;
}

[data-bs-theme="dark"] .text-info {
  color: #38bdf8 !important;
}

.text-warning {
  color: var(--promo-color-warning-solid) !important;
}

[data-bs-theme="dark"] .text-warning {
  color: #fbbf24 !important;
}

/* Single Unified Compliance Green for all compliance badges, icons, and success states */
.text-success,
.promo-trust-pill i {
  color: var(--promo-color-compliance-text) !important;
}

.promo-trust-pill {
  border-radius: var(--promo-radius-btn) !important;
  border: 1px solid var(--promo-color-compliance-border) !important;
  background-color: var(--promo-color-compliance-soft) !important;
  color: var(--promo-text-heading) !important;
}

.bg-label-success,
.badge.bg-label-success {
  background-color: var(--promo-color-compliance-soft) !important;
  color: var(--promo-color-compliance-text) !important;
  border: 1px solid var(--promo-color-compliance-border) !important;
}

.bg-label-primary,
.badge.bg-label-primary,
.promo-badge-pill {
  background-color: var(--promo-color-primary-soft) !important;
  color: var(--promo-color-action-pressed) !important;
  border-color: rgba(95, 97, 230, 0.22) !important;
}

[data-bs-theme="dark"] .bg-label-primary,
[data-bs-theme="dark"] .badge.bg-label-primary,
[data-bs-theme="dark"] .promo-badge-pill {
  background-color: rgba(105, 108, 255, 0.18) !important;
  color: #e0e7ff !important;
}

.bg-label-info,
.badge.bg-label-info {
  background-color: rgba(14, 116, 144, 0.1) !important;
  color: var(--promo-color-info-solid) !important;
}

[data-bs-theme="dark"] .bg-label-info,
[data-bs-theme="dark"] .badge.bg-label-info {
  background-color: rgba(56, 189, 248, 0.15) !important;
  color: #7dd3fc !important;
}

.bg-label-warning,
.badge.bg-label-warning {
  background-color: rgba(180, 83, 9, 0.1) !important;
  color: var(--promo-color-warning-solid) !important;
}

[data-bs-theme="dark"] .bg-label-warning,
[data-bs-theme="dark"] .badge.bg-label-warning {
  background-color: rgba(251, 191, 36, 0.15) !important;
  color: #fde68a !important;
}

.bg-label-secondary,
.badge.bg-label-secondary {
  background-color: rgba(71, 85, 105, 0.1) !important;
  color: var(--promo-text-body) !important;
}

[data-bs-theme="dark"] .bg-label-secondary,
[data-bs-theme="dark"] .badge.bg-label-secondary {
  background-color: rgba(203, 213, 225, 0.14) !important;
  color: #e2e8f0 !important;
}

/* Solid badges & elements with white text: guarantee >= 4.8:1 contrast */
.badge.bg-primary,
.bg-primary.text-white {
  background-color: var(--promo-color-action) !important;
  color: #ffffff !important;
}

.badge.bg-success,
.bg-success.text-white,
.promo-whatsapp-fab {
  background-color: var(--promo-color-compliance) !important;
  background-image: none !important;
  color: #ffffff !important;
}

.badge.bg-info,
.bg-info.text-white,
.btn-info {
  background-color: var(--promo-color-info-solid) !important;
  border-color: var(--promo-color-info-solid) !important;
  color: #ffffff !important;
}

.badge.bg-warning,
.bg-warning.text-white {
  background-color: var(--promo-color-warning-solid) !important;
  color: #ffffff !important;
}

/* Screenshot overlay bar: solid dark slate backdrop so white text has >14:1 contrast */
html body .promo-screenshot-overlay {
  background-color: rgba(15, 23, 42, 0.92) !important;
  background-image: none !important;
}

