/**
 * Pure-Soft HR SaaS - Design System & RTL Stylesheet
 * Brand: Pure-Soft
 * Primary Accent: #E75417
 */

:root {
  /* Brand Primary */
  --pure-orange: #E75417;
  --pure-orange-hover: #CF440E;
  --pure-orange-active: #B63908;
  --pure-orange-light: #FFF5F0;
  --pure-orange-subtle: rgba(231, 84, 23, 0.08);
  --pure-orange-border: rgba(231, 84, 23, 0.22);
  --pure-orange-glow: rgba(231, 84, 23, 0.28);

  /* Deep Corporate Palette */
  --pure-navy-950: #060A14;
  --pure-navy-900: #0A1128;
  --pure-navy-800: #0F1A3A;
  --pure-navy-700: #172554;
  --pure-navy-600: #1E3A8A;
  --pure-navy-surface: #121D3B;
  --pure-navy-border: rgba(255, 255, 255, 0.1);

  /* Neutral Slate */
  --pure-slate-900: #0F172A;
  --pure-slate-800: #1E293B;
  --pure-slate-700: #334155;
  --pure-slate-600: #475569;
  --pure-slate-500: #64748B;
  --pure-slate-400: #94A3B8;
  --pure-slate-300: #CBD5E1;
  --pure-slate-200: #E2E8F0;
  --pure-slate-100: #F1F5F9;
  --pure-slate-50:  #F8FAFC;
  --pure-white:     #FFFFFF;

  /* Semantic */
  --pure-success: #10B981;
  --pure-success-light: #ECFDF5;
  --pure-info: #3B82F6;
  --pure-info-light: #EFF6FF;
  --pure-warning: #F59E0B;
  --pure-warning-light: #FFFBEB;

  /* Typography */
  --pure-font-sans: 'Cairo', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --pure-line-height-body: 1.8;
  --pure-line-height-heading: 1.4;

  /* Shadows */
  --pure-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --pure-shadow-md: 0 4px 6px -1px rgba(10, 17, 40, 0.06), 0 2px 4px -2px rgba(10, 17, 40, 0.05);
  --pure-shadow-lg: 0 10px 25px -3px rgba(10, 17, 40, 0.08), 0 4px 6px -4px rgba(10, 17, 40, 0.04);
  --pure-shadow-xl: 0 20px 40px -6px rgba(10, 17, 40, 0.12), 0 8px 16px -6px rgba(10, 17, 40, 0.06);
  --pure-shadow-orange: 0 12px 28px -4px rgba(231, 84, 23, 0.32);

  /* Radius */
  --pure-radius-sm: 6px;
  --pure-radius-md: 10px;
  --pure-radius-lg: 16px;
  --pure-radius-xl: 24px;
  --pure-radius-full: 9999px;
}

/* Base RTL & Typography */
html[dir="rtl"], body {
  font-family: var(--pure-font-sans) !important;
  direction: rtl;
  text-align: right;
  color: var(--pure-slate-800);
  background-color: var(--pure-white);
  line-height: var(--pure-line-height-body);
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6,
.elementor-heading-title {
  font-family: var(--pure-font-sans) !important;
  font-weight: 700;
  color: var(--pure-navy-950);
  line-height: var(--pure-line-height-heading);
  letter-spacing: -0.015em;
}

p, span, a, input, select, textarea, button, label {
  font-family: var(--pure-font-sans) !important;
}

/* Accessibility Focus States */
:focus-visible {
  outline: 2px solid var(--pure-orange) !important;
  outline-offset: 3px !important;
}

button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--pure-orange) !important;
  outline-offset: 2px !important;
}

/* Ensure Astra Container respects full width without weird margins */
.ast-container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* Header & Top Bar */
.pure-topbar {
  background: var(--pure-navy-950);
  color: var(--pure-slate-300);
  font-size: 13px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.pure-topbar a {
  color: var(--pure-slate-300);
  text-decoration: none;
  transition: color 0.2s ease;
}
.pure-topbar a:hover {
  color: var(--pure-orange);
}

.pure-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--pure-slate-200);
  transition: all 0.3s ease;
}

.pure-header.scrolled {
  box-shadow: 0 4px 20px rgba(10, 17, 40, 0.06);
  background: rgba(255, 255, 255, 0.98);
}

.pure-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Pure-Soft Logo */
.pure-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.pure-logo-symbol {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, var(--pure-navy-900) 0%, var(--pure-navy-700) 100%);
  border-radius: var(--pure-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--pure-shadow-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(231, 84, 23, 0.3);
}
.pure-logo-symbol::before {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  background: var(--pure-orange);
  border-radius: 50%;
  opacity: 0.85;
}
.pure-logo-text {
  display: flex;
  flex-direction: column;
}
.pure-brand-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--pure-navy-950);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.pure-brand-name span {
  color: var(--pure-orange);
}
.pure-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--pure-slate-500);
  letter-spacing: 0.03em;
}

/* Navigation Links */
.pure-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pure-nav-item {
  position: relative;
}
.pure-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pure-slate-700);
  text-decoration: none;
  border-radius: var(--pure-radius-md);
  transition: all 0.2s ease;
}
.pure-nav-link:hover,
.pure-nav-link.active {
  color: var(--pure-orange);
  background: var(--pure-orange-subtle);
}

/* Dropdown Menu */
.pure-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: var(--pure-white);
  border: 1px solid var(--pure-slate-200);
  border-radius: var(--pure-radius-lg);
  box-shadow: var(--pure-shadow-xl);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1050;
}
.pure-nav-item:hover .pure-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}
.pure-dropdown-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--pure-radius-md);
  text-decoration: none;
  transition: background 0.2s ease;
}
.pure-dropdown-link:hover {
  background: var(--pure-slate-50);
}
.pure-dropdown-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--pure-radius-sm);
  background: var(--pure-orange-light);
  color: var(--pure-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pure-dropdown-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--pure-navy-950);
  line-height: 1.25;
  margin-bottom: 2px;
}
.pure-dropdown-desc {
  font-size: 12px;
  color: var(--pure-slate-500);
  line-height: 1.4;
}

/* Header Action Buttons */
.pure-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons System */
.pure-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  border-radius: var(--pure-radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}
.pure-btn:hover {
  transform: translateY(-1px);
}
.pure-btn:active {
  transform: translateY(0);
}

.pure-btn-primary {
  background: var(--pure-orange);
  color: var(--pure-white) !important;
  box-shadow: var(--pure-shadow-orange);
}
.pure-btn-primary:hover {
  background: var(--pure-orange-hover);
  box-shadow: 0 14px 30px -4px rgba(231, 84, 23, 0.42);
}

.pure-btn-secondary {
  background: var(--pure-navy-900);
  color: var(--pure-white) !important;
}
.pure-btn-secondary:hover {
  background: var(--pure-navy-800);
}

.pure-btn-outline {
  background: transparent;
  color: var(--pure-slate-800) !important;
  border-color: var(--pure-slate-300);
}
.pure-btn-outline:hover {
  border-color: var(--pure-orange);
  color: var(--pure-orange) !important;
  background: var(--pure-orange-subtle);
}

.pure-btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: var(--pure-white) !important;
  border-color: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
.pure-btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.4);
}

.pure-btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
  border-radius: var(--pure-radius-sm);
}
.pure-btn-lg {
  padding: 16px 32px;
  font-size: 17px;
  border-radius: var(--pure-radius-lg);
}

/* Badge / Chip */
.pure-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--pure-radius-full);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  width: fit-content;
}
.pure-chip-orange {
  background: var(--pure-orange-light);
  color: var(--pure-orange);
  border: 1px solid var(--pure-orange-border);
}
.pure-chip-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #FDBA74;
  border: 1px solid rgba(231, 84, 23, 0.3);
}

/* Sections Global */
.pure-section {
  padding: 96px 0;
  position: relative;
  overflow: hidden;
}
.pure-section-sm {
  padding: 64px 0;
}
.pure-section-dark {
  background: var(--pure-navy-950);
  color: var(--pure-white);
}
.pure-section-dark h1,
.pure-section-dark h2,
.pure-section-dark h3 {
  color: var(--pure-white) !important;
}
.pure-section-dark p {
  color: var(--pure-slate-300);
}
.pure-section-slate {
  background: var(--pure-slate-50);
  border-top: 1px solid var(--pure-slate-200);
  border-bottom: 1px solid var(--pure-slate-200);
}

/* Section Header */
.pure-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 56px auto;
}
.pure-section-title {
  font-size: 38px;
  font-weight: 800;
  margin: 16px 0 16px 0;
  letter-spacing: -0.02em;
}
.pure-section-lead {
  font-size: 18px;
  color: var(--pure-slate-600);
  line-height: 1.85;
}

/* Feature & Module Cards */
.pure-card {
  background: var(--pure-white);
  border: 1px solid var(--pure-slate-200);
  border-radius: var(--pure-radius-lg);
  padding: 32px;
  box-shadow: var(--pure-shadow-sm);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  display: flex;
  flex-direction: column;
}
.pure-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--pure-shadow-lg);
  border-color: rgba(231, 84, 23, 0.35);
}
.pure-card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--pure-radius-md);
  background: var(--pure-orange-light);
  color: var(--pure-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 24px;
}
.pure-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}
.pure-card-text {
  font-size: 15px;
  color: var(--pure-slate-600);
  line-height: 1.75;
  margin-bottom: 20px;
  flex-grow: 1;
}

/* Dark Card */
.pure-card-dark {
  background: var(--pure-navy-surface);
  border: 1px solid var(--pure-navy-border);
  color: var(--pure-white);
}
.pure-card-dark:hover {
  border-color: rgba(231, 84, 23, 0.5);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4);
}
.pure-card-dark .pure-card-title {
  color: var(--pure-white);
}
.pure-card-dark .pure-card-text {
  color: var(--pure-slate-300);
}

/* Mockup Browser Window (Container for Screenshots & Live Demos) */
.pure-mockup-browser {
  background: var(--pure-white);
  border-radius: var(--pure-radius-xl);
  border: 1px solid var(--pure-slate-200);
  box-shadow: var(--pure-shadow-xl);
  overflow: hidden;
  position: relative;
}
.pure-mockup-header {
  background: var(--pure-slate-100);
  padding: 12px 18px;
  border-bottom: 1px solid var(--pure-slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.pure-mockup-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pure-mockup-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.pure-mockup-dot.red { background: #FF5F56; }
.pure-mockup-dot.yellow { background: #FFBD2E; }
.pure-mockup-dot.green { background: #27C93F; }

.pure-mockup-url {
  background: var(--pure-white);
  border: 1px solid var(--pure-slate-200);
  border-radius: var(--pure-radius-sm);
  padding: 4px 16px;
  font-size: 12px;
  color: var(--pure-slate-500);
  direction: ltr;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 6px;
}
.pure-mockup-content {
  padding: 24px;
  background: var(--pure-slate-50);
  min-height: 380px;
  position: relative;
}

/* Placeholder for Real Software Screenshot */
.pure-screenshot-slot {
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
  border: 2px dashed rgba(231, 84, 23, 0.35);
  border-radius: var(--pure-radius-lg);
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 320px;
  position: relative;
}
.pure-screenshot-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--pure-radius-full);
  background: var(--pure-orange-light);
  color: var(--pure-orange);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
}
.pure-screenshot-hint {
  font-size: 13.5px;
  color: var(--pure-slate-500);
  max-width: 440px;
  line-height: 1.6;
}

/* Workflow Flowchart (Interactive UI instead of static image) */
.pure-workflow-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: relative;
  margin-top: 40px;
  padding: 20px 0;
}
.pure-workflow-track::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 30px;
  right: 30px;
  height: 2px;
  background: var(--pure-slate-200);
  z-index: 1;
}
.pure-workflow-step {
  position: relative;
  z-index: 2;
  background: var(--pure-white);
  border: 1px solid var(--pure-slate-200);
  border-radius: var(--pure-radius-lg);
  padding: 20px;
  width: 18%;
  text-align: center;
  box-shadow: var(--pure-shadow-sm);
  transition: all 0.25s ease;
}
.pure-workflow-step:hover {
  transform: translateY(-4px);
  border-color: var(--pure-orange);
  box-shadow: var(--pure-shadow-md);
}
.pure-workflow-icon {
  width: 44px;
  height: 44px;
  margin: 0 auto 10px auto;
  border-radius: 50%;
  background: var(--pure-slate-100);
  color: var(--pure-navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}
.pure-workflow-step.active .pure-workflow-icon {
  background: var(--pure-orange);
  color: var(--pure-white);
  box-shadow: 0 0 0 6px var(--pure-orange-light);
}
.pure-workflow-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--pure-navy-950);
}
.pure-workflow-desc {
  font-size: 12px;
  color: var(--pure-slate-500);
  margin-top: 4px;
}

/* Footer */
.pure-footer {
  background: var(--pure-navy-950);
  color: var(--pure-slate-400);
  padding: 80px 0 32px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.pure-footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 64px;
}
.pure-footer-heading {
  color: var(--pure-white);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
}
.pure-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pure-footer-links a {
  color: var(--pure-slate-400);
  text-decoration: none;
  font-size: 14.5px;
  transition: color 0.2s ease;
}
.pure-footer-links a:hover {
  color: var(--pure-orange);
}
.pure-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
}

/* Mobile Toggle & Drawer Navigation */
.pure-mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--pure-slate-200);
  border-radius: var(--pure-radius-sm);
  color: var(--pure-navy-950);
  padding: 8px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}
.pure-mobile-toggle:hover {
  background: var(--pure-slate-100);
  color: var(--pure-orange);
}

.pure-mobile-nav {
  display: none;
  background: var(--pure-white);
  border-bottom: 2px solid var(--pure-orange);
  box-shadow: var(--pure-shadow-xl);
  overflow-y: auto;
  max-height: 80vh;
}
.pure-mobile-nav.active {
  display: block;
}
.pure-mobile-nav-inner {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.pure-mobile-heading {
  font-size: 12px;
  font-weight: 700;
  color: var(--pure-orange);
  margin-top: 14px;
  margin-bottom: 4px;
  letter-spacing: 0.03em;
}
.pure-mobile-link {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--pure-slate-800);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: var(--pure-radius-sm);
  transition: background 0.2s ease, color 0.2s ease;
}
.pure-mobile-link:hover {
  background: var(--pure-orange-light);
  color: var(--pure-orange);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .pure-header-inner {
    height: 70px;
  }
  .pure-nav {
    display: none;
  }
  .pure-mobile-toggle {
    display: inline-flex;
  }
  .pure-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .pure-workflow-track {
    flex-wrap: wrap;
    gap: 16px;
  }
  .pure-workflow-track::before {
    display: none;
  }
  .pure-workflow-step {
    width: calc(50% - 10px);
  }
}

@media (max-width: 640px) {
  .pure-section {
    padding: 60px 0;
  }
  .pure-section-title {
    font-size: 28px;
  }
  .pure-footer-grid {
    grid-template-columns: 1fr;
  }
  .pure-workflow-step {
    width: 100%;
  }
  .pure-footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

