/* ============================================
   ELDORADO IMPORT & EXPORT — DESIGN SYSTEM
   Premium Corporate Shipping & Logistics
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Inter:wght@300;400;500;600;700;800&family=Noto+Sans+Arabic:wght@300;400;500;600;700;800&family=Noto+Sans+SC:wght@300;400;500;700&display=swap');

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
  /* Colors */
  --navy-900: #060e1a;
  --navy-800: #0a1628;
  --navy-700: #112240;
  --navy-600: #1a3358;
  --navy-500: #234470;
  --navy-400: #2d5588;
  --navy-300: #4a7ab5;
  --navy-200: #7aa3d4;
  --navy-100: #b3cce8;
  --navy-50: #e8f0f8;

  --gold-600: #8a6d2a;
  --gold-500: #a88a3a;
  --gold-400: #c8a84e;
  --gold-300: #dfc06b;
  --gold-200: #e8d08a;
  --gold-100: #f2e4b8;
  --gold-50: #faf5e6;

  --white: #ffffff;
  --gray-50: #f8f9fb;
  --gray-100: #f1f3f7;
  --gray-200: #e2e6ee;
  --gray-300: #cdd3df;
  --gray-400: #9ca3b0;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;

  --success: #10b981;
  --error: #ef4444;
  --warning: #f59e0b;

  /* Typography */
  --font-heading: 'Playfair Display', 'Noto Sans Arabic', serif;
  --font-body: 'Inter', 'Noto Sans Arabic', 'Noto Sans SC', sans-serif;
  --font-arabic: 'Noto Sans Arabic', 'Inter', sans-serif;

  /* Font Sizes (fluid) */
  --text-xs: clamp(0.7rem, 0.8vw, 0.75rem);
  --text-sm: clamp(0.8rem, 0.9vw, 0.875rem);
  --text-base: clamp(0.9rem, 1vw, 1rem);
  --text-lg: clamp(1rem, 1.15vw, 1.125rem);
  --text-xl: clamp(1.15rem, 1.3vw, 1.25rem);
  --text-2xl: clamp(1.4rem, 1.7vw, 1.5rem);
  --text-3xl: clamp(1.7rem, 2.2vw, 1.875rem);
  --text-4xl: clamp(2rem, 2.8vw, 2.25rem);
  --text-5xl: clamp(2.5rem, 3.5vw, 3rem);
  --text-6xl: clamp(3rem, 4.5vw, 3.75rem);

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Borders & Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-gold: 0 4px 20px rgba(200, 168, 78, 0.3);
  --shadow-gold-lg: 0 8px 40px rgba(200, 168, 78, 0.35);
  --shadow-navy: 0 4px 20px rgba(10, 22, 40, 0.4);
  --shadow-glass: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
  --transition-slow: 400ms ease;
  --transition-slider: 800ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Z-Index Scale */
  --z-behind: -1;
  --z-base: 0;
  --z-above: 10;
  --z-nav: 100;
  --z-sticky: 200;
  --z-overlay: 300;
  --z-modal: 400;
  --z-toast: 500;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 960px;
  --header-height: 110px;

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-bg-light: rgba(255, 255, 255, 0.85);
  --glass-border-light: rgba(200, 168, 78, 0.15);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--gray-700);
  background-color: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

[dir="rtl"] h1,
[dir="rtl"] h2,
[dir="rtl"] h3,
[dir="rtl"] h4,
[dir="rtl"] h5,
[dir="rtl"] h6 {
  font-family: var(--font-arabic);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

ul, ol {
  list-style: none;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
  background: none;
}

button {
  cursor: pointer;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy-800);
}

h1 { font-size: var(--text-6xl); margin-bottom: var(--space-6); }
h2 { font-size: var(--text-5xl); margin-bottom: var(--space-5); }
h3 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
h4 { font-size: var(--text-3xl); margin-bottom: var(--space-3); }
h5 { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
h6 { font-size: var(--text-xl); margin-bottom: var(--space-2); }

p {
  margin-bottom: var(--space-4);
  color: var(--gray-600);
}

.text-gold { color: var(--gold-400); }
.text-navy { color: var(--navy-800); }
.text-white { color: var(--white); }
.text-muted { color: var(--gray-500); }

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

/* --- Layout Utilities --- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-20) 0;
}

.section-sm {
  padding: var(--space-12) 0;
}

.section-dark {
  background-color: var(--navy-800);
  color: var(--white);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.section-dark p {
  color: var(--gray-300);
}

.section-light {
  background-color: var(--gray-50);
}

.section-gold-accent {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-700) 100%);
  position: relative;
  overflow: hidden;
}

.section-gold-accent::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300), var(--gold-400));
}

.section-gold-accent::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 168, 78, 0.05) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Flex utilities */
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Grid */
.grid { display: grid; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-6 { grid-template-columns: repeat(6, 1fr); }

/* Text alignment */
.text-center { text-align: center; }
.text-start { text-align: start; }
.text-end { text-align: end; }

/* Spacing */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.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); }

/* Section Title */
.section-title {
  text-align: center;
  margin-bottom: var(--space-12);
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: -12px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
  border-radius: var(--radius-full);
}

.section-title p {
  max-width: 640px;
  margin: var(--space-6) auto 0;
  font-size: var(--text-lg);
}

/* Gold Divider */
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-400), var(--gold-300));
  border-radius: var(--radius-full);
  margin: var(--space-4) 0;
}

.gold-divider-center {
  margin-left: auto;
  margin-right: auto;
}

/* --- Page Transition Animation --- */
.page-content {
  animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Shimmer Effect --- */
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.text-shimmer {
  background: linear-gradient(90deg, var(--gold-400) 0%, var(--gold-200) 25%, var(--gold-400) 50%, var(--gold-200) 75%, var(--gold-400) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 4s linear infinite;
}

/* --- Float Animation --- */
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.float-animation {
  animation: float 3s ease-in-out infinite;
}

/* --- Glow Pulse --- */
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(200, 168, 78, 0.2); }
  50% { box-shadow: 0 0 40px rgba(200, 168, 78, 0.4); }
}

/* --- Gradient Border --- */
.gradient-border {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--white);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, var(--gold-400), var(--navy-600), var(--gold-400));
  z-index: -1;
}

/* --- Glass Card --- */
.glass-card {
  background: var(--glass-bg-light);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border-light);
  border-radius: var(--radius-xl);
}

.glass-card-dark {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
}

/* --- Selection --- */
::selection {
  background-color: var(--gold-400);
  color: var(--navy-800);
}

/* --- Scrollbar --- */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--navy-800);
}

::-webkit-scrollbar-thumb {
  background: var(--gold-400);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold-300);
}

/* --- Skip to Content (Accessibility) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--gold-400);
  color: var(--navy-800);
  padding: var(--space-3) var(--space-6);
  z-index: var(--z-toast);
  font-weight: 600;
  transition: top var(--transition-fast);
}

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

/* --- Counter Component --- */
.counter-value {
  font-size: var(--text-5xl);
  font-weight: 800;
  color: var(--gold-400);
  line-height: 1;
  font-family: var(--font-body);
}

/* --- Decorative Elements --- */
.deco-dots {
  position: absolute;
  width: 80px;
  height: 80px;
  background-image: radial-gradient(circle, var(--gold-400) 1px, transparent 1px);
  background-size: 10px 10px;
  opacity: 0.15;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 78, 0.1);
  pointer-events: none;
}

/* --- Press Mention Cards --- */
.press-card:hover {
  border-color: var(--gold) !important;
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(212, 175, 55, 0.15);
}
.press-card:hover img {
  transform: scale(1.08);
}
.gold-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: 2px;
}
