/* Seven Pure B2B Marketing Website - Main Stylesheet */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */

:root {
  /* Brand Colors - Agricultural Export Theme */
  --forest-green: #123C32;        /* Primary - Deep Forest Green */
  --fresh-green: #6B9E45;         /* Secondary - Fresh Green / Leaves */
  --harvest-gold: #C9A86A;        /* Accent - Natural Gold */
  --warm-offwhite: #FBFAF4;       /* Background - Warm Off-White */
  --dark-charcoal: #17201D;       /* Text */
  --forest-dark: #0F302A;         /* Darker shade for hovers */

  /* Semantic Colors */
  --color-primary: var(--forest-green);
  --color-accent: var(--fresh-green);
  --color-gold: var(--harvest-gold);
  --color-dark: var(--dark-charcoal);
  --color-bg: var(--warm-offwhite);
  --color-bg-alt: #FFFFFF;
  --color-bg-ivory: #F7F5ED;
  --color-text: var(--dark-charcoal);
  --color-text-light: rgba(23, 32, 29, 0.6);
  --color-border: rgba(18, 60, 50, 0.12);
  --color-success: #4A9D5F;
  --color-error: #D64545;

  /* Typography */
  --font-heading: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-arabic: 'Cairo', 'Manrope', sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;      /* 12px */
  --text-sm: 0.875rem;     /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg: 1.125rem;     /* 18px */
  --text-xl: 1.25rem;      /* 20px */
  --text-2xl: 1.5rem;      /* 24px */
  --text-3xl: 1.875rem;    /* 30px */
  --text-4xl: 2.25rem;     /* 36px */
  --text-5xl: 3rem;        /* 48px */
  --text-6xl: 3.75rem;     /* 60px */

  /* Font Weights */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;

  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;

  /* Spacing Scale */
  --space-1: 0.25rem;   /* 4px */
  --space-2: 0.5rem;    /* 8px */
  --space-3: 0.75rem;   /* 12px */
  --space-4: 1rem;      /* 16px */
  --space-5: 1.25rem;   /* 20px */
  --space-6: 1.5rem;    /* 24px */
  --space-8: 2rem;      /* 32px */
  --space-10: 2.5rem;   /* 40px */
  --space-12: 3rem;     /* 48px */
  --space-16: 4rem;     /* 64px */
  --space-20: 5rem;     /* 80px */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 250ms ease-in-out;
  --transition-slow: 350ms ease-in-out;

  /* Layout */
  --container-max: 1280px;
  --container-padding: var(--space-6);
  --header-height: 80px;
  --mobile-bar-height: 64px;

  /* Z-Index Scale */
  --z-base: 1;
  --z-dropdown: 10;
  --z-sticky: 100;
  --z-overlay: 1000;
  --z-modal: 2000;

  /* Gradient System - Al-Hikma Inspired */
  --gradient-hero-primary: linear-gradient(180deg,
    rgba(18, 60, 50, 0.88) 0%,
    rgba(18, 60, 50, 0.65) 40%,
    rgba(18, 60, 50, 0.35) 100%);

  --gradient-hero-secondary: linear-gradient(180deg,
    rgba(15, 48, 42, 0.75) 0%,
    rgba(15, 48, 42, 0.45) 50%,
    rgba(15, 48, 42, 0.20) 100%);

  --gradient-card-hover: linear-gradient(180deg,
    rgba(107, 158, 69, 0.05) 0%,
    rgba(201, 168, 106, 0.08) 100%);

  --gradient-button-gold: linear-gradient(135deg,
    #C9A86A 0%,
    #B39358 100%);

  --gradient-progress: linear-gradient(90deg,
    #6B9E45 0%,
    #C9A86A 100%);
}

/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700;800&family=Inter:wght@400;500;600&family=Cairo:wght@400;600;700&display=swap');

/* ========================================
   CSS RESET & BASE STYLES
   ======================================== */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

/* Arabic Font Support */
html[lang="ar"] body {
  font-family: var(--font-arabic);
}

/* RTL Support */
html[dir="rtl"] {
  direction: rtl;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--color-dark);
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--text-4xl);
  font-weight: var(--weight-extrabold);
}

h2 {
  font-size: var(--text-3xl);
}

h3 {
  font-size: var(--text-2xl);
}

h4 {
  font-size: var(--text-xl);
}

h5 {
  font-size: var(--text-lg);
}

h6 {
  font-size: var(--text-base);
}

@media (min-width: 768px) {
  h1 {
    font-size: var(--text-5xl);
  }

  h2 {
    font-size: var(--text-4xl);
  }

  h3 {
    font-size: var(--text-3xl);
  }
}

@media (min-width: 1024px) {
  h1 {
    font-size: var(--text-6xl);
  }
}

p {
  margin-bottom: var(--space-4);
  line-height: var(--leading-relaxed);
}

p:last-child {
  margin-bottom: 0;
}

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

a:hover {
  color: var(--color-accent);
}

a:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

strong, b {
  font-weight: var(--weight-semibold);
}

em, i {
  font-style: italic;
}

small {
  font-size: var(--text-sm);
}

/* ========================================
   LAYOUT UTILITIES
   ======================================== */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
}

.container-wide {
  max-width: 1440px;
}

.container-narrow {
  max-width: 960px;
}

.section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .section {
    padding-top: var(--space-24);
    padding-bottom: var(--space-24);
  }
}

.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.flex {
  display: flex;
  gap: var(--space-4);
}

.flex-col {
  flex-direction: column;
}

.items-center {
  align-items: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

/* ========================================
   BUTTON STYLES - Enhanced Micro-interactions
   ======================================== */

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 15px 28px;
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: 1;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
  pointer-events: none;
}

.btn:active::after {
  width: 300px;
  height: 300px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-primary {
  color: white;
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-primary:hover {
  background-color: var(--forest-dark);
  border-color: var(--forest-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  color: var(--color-primary);
  background-color: transparent;
  border-color: var(--color-primary);
}

.btn-secondary:hover {
  color: white;
  background-color: var(--color-primary);
}

.btn-secondary:active {
  transform: scale(0.98);
}

.btn-gold {
  color: var(--color-dark);
  background: var(--color-gold);
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background: var(--gradient-button-gold);
  border-color: #B39358;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-gold:active {
  transform: translateY(0);
  box-shadow: var(--shadow-md);
}

.btn-white {
  color: var(--color-primary);
  background-color: white;
  border-color: white;
}

.btn-white:hover {
  background-color: #F7F5ED;
  border-color: #F7F5ED;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-white:active {
  transform: translateY(0);
}

.btn-outline-white {
  color: white;
  background-color: transparent;
  border-color: white;
}

.btn-outline-white:hover {
  background-color: white;
  color: var(--color-primary);
}

.btn-outline-white:active {
  transform: scale(0.98);
}

/* Button Loading State */
.btn.is-loading {
  color: transparent;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn-lg {
  padding: var(--space-5) var(--space-8);
  font-size: var(--text-lg);
}

.btn-sm {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
}

.btn-block {
  display: flex;
  width: 100%;
}

/* ========================================
   CARD COMPONENTS - Enhanced Hover States
   ======================================== */

.card {
  position: relative;
  background-color: white;
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  box-shadow: var(--shadow-xl);
  transform: translateY(-6px);
}

.card:hover::before {
  opacity: 1;
}

.card > * {
  position: relative;
  z-index: 1;
}

.card-bordered {
  border: 1px solid var(--color-border);
  box-shadow: none;
}

.card-flat {
  box-shadow: none;
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.card-title {
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  margin-bottom: var(--space-3);
}

.card-text {
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

/* ========================================
   FORM ELEMENTS
   ======================================== */

.form-group {
  margin-bottom: var(--space-6);
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
  margin-bottom: var(--space-2);
}

.form-label-required::after {
  content: " *";
  color: var(--color-error);
}

.form-input,
.form-select,
.form-textarea {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: white;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-light);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2317201D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-4) center;
  padding-right: var(--space-10);
}

html[dir="rtl"] .form-select {
  background-position: left var(--space-4) center;
  padding-right: var(--space-4);
  padding-left: var(--space-10);
}

.form-error {
  display: none;
  font-size: var(--text-sm);
  color: var(--color-error);
  margin-top: var(--space-2);
}

.form-group.has-error .form-input,
.form-group.has-error .form-select,
.form-group.has-error .form-textarea {
  border-color: var(--color-error);
}

.form-group.has-error .form-error {
  display: block;
}

.form-help {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-top: var(--space-2);
}

/* ========================================
   HEADER STYLES
   ======================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: white;
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  height: auto;
}

.logo span {
  font-size: 17px;
}

@media (min-width: 768px) {
  .logo span {
    font-size: 22px;
  }
}

.nav-main {
  display: none;
}

@media (min-width: 1024px) {
  .nav-main {
    display: flex;
    align-items: center;
    gap: var(--space-8);
  }
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
}

.nav-link {
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
  transition: color var(--transition-fast);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.lang-toggle {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-light);
  background: none;
  border: none;
  cursor: pointer;
}

.lang-toggle span {
  transition: color var(--transition-fast);
}

.lang-toggle span.active {
  color: var(--color-primary);
  font-weight: var(--weight-semibold);
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  height: 28px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

@media (min-width: 1024px) {
  .hamburger {
    display: none;
  }
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--color-dark);
  border-radius: var(--radius-full);
  transition: all var(--transition-base);
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   MOBILE DRAWER NAVIGATION
   ======================================== */

.mobile-drawer {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
  background-color: white;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  visibility: hidden;
}

html[dir="rtl"] .mobile-drawer {
  transform: translateX(100%);
}

.mobile-drawer.active {
  transform: translateX(0) !important;
  visibility: visible !important;
}

.mobile-nav-list {
  list-style: none;
  padding: var(--space-6);
}

.mobile-nav-item {
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-link {
  display: block;
  padding: var(--space-4) 0;
  font-size: var(--text-lg);
  font-weight: var(--weight-medium);
  color: var(--color-dark);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-accent);
}

/* ========================================
   FOOTER STYLES
   ======================================== */

.site-footer {
  background-color: var(--forest-dark);
  color: white;
  padding-top: var(--space-16);
  padding-bottom: var(--space-8);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

@media (min-width: 640px) {
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-content {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-column h4 {
  color: white;
  font-size: var(--text-lg);
  margin-bottom: var(--space-4);
}

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

.footer-list li {
  margin-bottom: var(--space-3);
}

.footer-link {
  color: rgba(255, 255, 255, 0.8);
  font-size: var(--text-sm);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: white;
}

.footer-bottom {
  padding-top: var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.footer-bottom p {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
}

.footer-legal {
  display: flex;
  gap: var(--space-6);
  justify-content: center;
  flex-wrap: wrap;
}

/* ========================================
   MOBILE BOTTOM BAR
   ======================================== */

.mobile-bottom-bar {
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-sticky);
  background-color: white;
  border-top: 1px solid var(--color-border);
  padding: var(--space-3) var(--container-padding);
  gap: var(--space-3);
  box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
}

@media (min-width: 1024px) {
  .mobile-bottom-bar {
    display: none;
  }
}

.mobile-bottom-bar .btn {
  flex: 1;
}

/* ========================================
   HERO SECTIONS
   ======================================== */

.hero {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: var(--color-primary);
  color: white;
  overflow: hidden;
  padding-top: calc(var(--header-height) + var(--space-16));
  padding-bottom: var(--space-16);
}

@media (min-width: 768px) {
  .hero {
    min-height: 600px;
  }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero h1 {
  color: white;
  margin-bottom: var(--space-6);
}

.hero p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin-bottom: var(--space-8);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* ========================================
   SCROLL REVEAL ANIMATIONS
   ======================================== */

.reveal {
  opacity: 0;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal.active {
  opacity: 1;
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
}

.reveal-up.active {
  opacity: 1;
  transform: translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.reveal-stagger.active > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.active > *:nth-child(2) { transition-delay: 100ms; }
.reveal-stagger.active > *:nth-child(3) { transition-delay: 200ms; }
.reveal-stagger.active > *:nth-child(4) { transition-delay: 300ms; }
.reveal-stagger.active > *:nth-child(5) { transition-delay: 400ms; }
.reveal-stagger.active > *:nth-child(6) { transition-delay: 500ms; }

.reveal-stagger.active > * {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.bg-primary {
  background-color: var(--color-primary);
}

.bg-accent {
  background-color: var(--color-accent);
}

.bg-ivory {
  background-color: #F7F5ED;
}

.bg-paper {
  background-color: var(--warm-offwhite);
}

.bg-white {
  background-color: white;
}

.bg-forest {
  background-color: var(--forest-green);
  color: white;
}

.text-primary {
  color: var(--color-primary);
}

.text-accent {
  color: var(--color-accent);
}

.text-gold {
  color: var(--color-gold);
}

.text-muted {
  color: var(--color-text-light);
}

.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--space-2); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: var(--space-4); }
.mt-8 { margin-top: var(--space-8); }

/* ========================================
   ACCESSIBILITY
   ======================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-3) var(--space-4);
  text-decoration: none;
  z-index: 9999;
}

.skip-link:focus {
  top: 0;
}

/* ========================================
   SCROLL PROGRESS BAR
   ======================================== */

.scroll-progress {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gradient-progress);
  transition: width 0.1s ease-out;
  z-index: calc(var(--z-sticky) + 1);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress {
    display: none;
  }
}

/* ========================================
   LAZY LOADING & SKELETON STATES
   ======================================== */

img[data-src] {
  opacity: 0;
  transition: opacity 0.4s ease-in;
}

img.loaded {
  opacity: 1;
}

.skeleton-loader {
  position: relative;
  background: #F7F5ED;
  overflow: hidden;
}

.skeleton-loader::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg,
    rgba(247, 245, 237, 0) 0%,
    rgba(247, 245, 237, 0.8) 50%,
    rgba(247, 245, 237, 0) 100%
  );
  animation: shimmer 2s infinite;
  transform: translateX(-100%);
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton-loader::before {
    animation: none;
  }
}

/* ========================================
   TOAST NOTIFICATION SYSTEM
   ======================================== */

.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: calc(var(--z-modal) + 1);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 400px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .toast-container {
    bottom: calc(var(--mobile-bar-height) + 16px);
    left: 16px;
    right: 16px;
    max-width: none;
  }
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
  pointer-events: auto;
  animation: toast-slide-in 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform-origin: bottom right;
}

@media (max-width: 640px) {
  .toast {
    transform-origin: bottom center;
  }
}

.toast.toast-exit {
  animation: toast-slide-out 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes toast-slide-in {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes toast-slide-out {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    animation: none;
  }

  .toast.toast-exit {
    animation: none;
    opacity: 0;
  }
}

.toast-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-content {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: var(--weight-semibold);
  font-size: var(--text-base);
  color: var(--color-dark);
  margin-bottom: var(--space-1);
}

.toast-message {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: var(--leading-relaxed);
  margin: 0;
}

.toast-close {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  transition: color var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  color: var(--color-dark);
}

.toast-close:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Toast Types */
.toast-success .toast-icon {
  color: var(--color-success);
}

.toast-error .toast-icon {
  color: var(--color-error);
}

.toast-info .toast-icon {
  color: var(--color-accent);
}

/* ========================================
   ENHANCED PRODUCT & FEATURE CARDS
   ======================================== */

/* Product Card Enhancement */
.product-card {
  position: relative;
  overflow: hidden;
}

.product-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.product-card:hover::before {
  opacity: 1;
}

.product-card > * {
  position: relative;
  z-index: 2;
}

.product-image.skeleton-loader {
  background: #F7F5ED;
}

/* Feature Card Enhancement */
.feature-card {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-card-hover);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 0;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card > * {
  position: relative;
  z-index: 1;
}

.feature-card svg {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover svg {
  transform: scale(1.1);
}

/* Process Step Enhancement */
.process-step {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.process-step:hover {
  transform: translateY(-4px);
}

/* ========================================
   RTL (RIGHT-TO-LEFT) SUPPORT FOR ARABIC
   ======================================== */

/* Arabic font for RTL */
[dir="rtl"] {
  font-family: var(--font-arabic);
}

/* Language Toggle Styling */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
}

.lang-toggle span[data-lang] {
  cursor: pointer;
  color: var(--color-text-light);
  transition: color 0.2s;
  padding: 4px 8px;
  border-radius: 4px;
}

.lang-toggle span[data-lang]:hover {
  color: var(--color-primary);
}

.lang-toggle span[data-lang].active {
  color: var(--color-primary);
  font-weight: 700;
}

/* RTL Layout Adjustments */
[dir="rtl"] .logo {
  flex-direction: row-reverse;
}

[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-list {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .feature-cards-grid {
  direction: rtl;
}

[dir="rtl"] .products-grid {
  direction: rtl;
}

[dir="rtl"] .process-steps {
  direction: rtl;
}

[dir="rtl"] .footer-content {
  direction: rtl;
}

/* RTL Text Alignment */
[dir="rtl"] .text-left {
  text-align: right;
}

[dir="rtl"] .text-right {
  text-align: left;
}

/* RTL Margins and Padding */
[dir="rtl"] .product-card,
[dir="rtl"] .feature-card,
[dir="rtl"] .card {
  text-align: right;
}

/* RTL Form Inputs */
[dir="rtl"] .form-input,
[dir="rtl"] .form-textarea,
[dir="rtl"] .form-select {
  text-align: right;
}

/* RTL Buttons - Reverse Arrows */
[dir="rtl"] .btn:contains("→") {
  direction: rtl;
}

/* Adjust hamburger menu for RTL */
[dir="rtl"] .hamburger {
  margin-left: 0;
  margin-right: auto;
}

[dir="rtl"] .mobile-drawer {
  left: 0;
  right: 0;
}

[dir="rtl"] .mobile-drawer.active {
  transform: translateX(0) !important;
}

[dir="rtl"] .mobile-nav-list {
  text-align: right;
}

/* RTL specific spacing adjustments */
[dir="rtl"] .category-tabs {
  flex-direction: row-reverse;
}

[dir="rtl"] .filter-controls {
  direction: rtl;
}

[dir="rtl"] .filter-right {
  flex-direction: row-reverse;
}

/* Toast notifications RTL */
[dir="rtl"] .toast-container {
  left: auto;
  right: 20px;
}

[dir="rtl"] .toast {
  direction: rtl;
  text-align: right;
}

[dir="rtl"] .toast-close {
  left: 12px;
  right: auto;
}
