/*
 * JIBREENTEC
 * Main Stylesheet
 * 
 * Structure:
 * 1. CSS Variables & Design Tokens
 * 2. Base & Reset Styles
 * 3. Typography
 * 4. Layout & Container
 * 5. Components (Buttons, Cards, Forms, etc.)
 * 6. Navigation & Header
 * 7. RTL Support
 * 8. Utilities & Animations
 */

/* ===========================================
   1. CSS VARIABLES & DESIGN TOKENS
   =========================================== */

:root {
  /* Primary Colors - JIBREEN Blue (#00387F) */
  --color-primary-50: #e6f0f9;
  --color-primary-100: #cce0f3;
  --color-primary-200: #99c2e7;
  --color-primary-300: #66a3db;
  --color-primary-400: #3385cf;
  --color-primary-500: #00387F;
  --color-primary-600: #002d66;
  --color-primary-700: #00224d;
  --color-primary-800: #001733;
  --color-primary-900: #000b1a;

  /* Accent Colors - TEC Orange (#EE7C01) */
  --color-accent-50: #fff5e6;
  --color-accent-100: #ffebcc;
  --color-accent-200: #ffd799;
  --color-accent-300: #ffc366;
  --color-accent-400: #ffaf33;
  --color-accent-500: #EE7C01;
  --color-accent-600: #bf6301;
  --color-accent-700: #8f4a01;
  --color-accent-800: #603200;
  --color-accent-900: #301900;

  /* Neutral Colors */
  --color-neutral-50: #f8fafc;
  --color-neutral-100: #f1f5f9;
  --color-neutral-200: #e2e8f0;
  --color-neutral-300: #cbd5e1;
  --color-neutral-400: #94a3b8;
  --color-neutral-500: #64748b;
  --color-neutral-600: #475569;
  --color-neutral-700: #334155;
  --color-neutral-800: #1e293b;
  --color-neutral-900: #0f172a;
  --color-neutral-950: #020617;

  /* Status Colors */
  --color-success-50: #f0fdf4;
  --color-success-500: #22c55e;
  --color-success-600: #16a34a;

  --color-warning-50: #fff5e6;
  --color-warning-500: #EE7C01;
  --color-warning-600: #bf6301;

  --color-danger-50: #fef2f2;
  --color-danger-500: #ef4444;
  --color-danger-600: #dc2626;

  --color-info-50: #e6f0f9;
  --color-info-500: #00387F;
  --color-info-600: #002d66;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Noto Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Noto Sans Arabic', system-ui, sans-serif;

  /* Font Sizes */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-display-sm: 2rem;
  --text-display-md: 2.75rem;
  --text-display-lg: 3.5rem;

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

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

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-soft: 0 2px 15px -3px rgba(0, 0, 0, 0.07), 0 10px 20px -2px rgba(0, 0, 0, 0.04);
  --shadow-soft-lg: 0 10px 40px -10px rgba(0, 0, 0, 0.1), 0 20px 25px -5px rgba(0, 0, 0, 0.03);
  --shadow-glow: 0 0 20px rgba(249, 115, 22, 0.3);
  --shadow-glow-lg: 0 0 40px rgba(249, 115, 22, 0.4);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* Z-Index Scale */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-fixed: 300;
  --z-modal-backdrop: 400;
  --z-modal: 500;
  --z-popover: 600;
  --z-tooltip: 700;
}

/* Z-Index Utilities */
.z-0 { z-index: 0; }
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.z-auto { z-index: auto; }
.-z-10 { z-index: -10; }

@media (min-width: 640px) {
  .sm\:z-auto { z-index: auto; }
  .sm\:z-10 { z-index: 10; }
}

/* ===========================================
   2. BASE & RESET STYLES
   =========================================== */

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

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

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-neutral-900);
  background-color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ===========================================
   3. TYPOGRAPHY
   =========================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-neutral-900);
}

h1 { font-size: var(--text-4xl); }
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); }

.text-display-lg {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.text-display-md {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.text-display-sm {
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

p {
  margin-bottom: 1rem;
}

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

.lead {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--color-neutral-600);
}

.section-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--color-neutral-900);
  margin-bottom: var(--spacing-4);
}

.section-subtitle {
  font-size: var(--text-lg);
  color: var(--color-neutral-600);
  max-width: 600px;
}

/* ===========================================
   4. LAYOUT & CONTAINER
   =========================================== */

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

.container-narrow {
  max-width: 1024px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--spacing-6);
  padding-right: var(--spacing-6);
}

.section {
  padding-top: var(--spacing-20);
  padding-bottom: var(--spacing-20);
}

@media (max-width: 768px) {
  .section {
    padding-top: var(--spacing-12);
    padding-bottom: var(--spacing-12);
  }
}

main {
  flex: 1;
}

/* Grid System */
.grid {
  display: grid;
}

.flex {
  display: flex;
}

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

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

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

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

.gap-2 { gap: var(--spacing-2); }
.gap-3 { gap: var(--spacing-3); }
.gap-4 { gap: var(--spacing-4); }
.gap-6 { gap: var(--spacing-6); }
.gap-8 { gap: var(--spacing-8); }
.gap-12 { gap: var(--spacing-12); }

/* ===========================================
   5. COMPONENTS
   =========================================== */

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3) var(--spacing-6);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-xl);
  transition: all var(--transition-base);
  cursor: pointer;
  border: none;
  outline: none;
  gap: var(--spacing-2);
  white-space: nowrap;
}

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

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent-500) 0%, var(--color-accent-600) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(238, 124, 1, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-600) 0%, var(--color-accent-700) 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(238, 124, 1, 0.35);
}

.btn-secondary {
  background-color: var(--color-neutral-100);
  color: var(--color-neutral-900);
}

.btn-secondary:hover {
  background-color: var(--color-neutral-200);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-accent-500);
  color: var(--color-accent-500);
}

.btn-outline:hover {
  background-color: var(--color-accent-500);
  color: #ffffff;
}

.btn-ghost {
  background-color: transparent;
  color: var(--color-neutral-700);
}

.btn-ghost:hover {
  background-color: var(--color-neutral-100);
}

.btn-lg {
  padding: var(--spacing-4) var(--spacing-8);
  font-size: var(--text-base);
}

.btn-sm {
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-xs);
}

/* Cards */
.card {
  background-color: #ffffff;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: all var(--transition-base);
}

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

.card-body {
  padding: var(--spacing-6);
}

.card-image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-5);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-700);
}

.form-input,
.input {
  display: block;
  width: 100%;
  padding: var(--spacing-3) var(--spacing-4);
  font-size: var(--text-base);
  border: 1px solid var(--color-neutral-200);
  border-radius: var(--radius-xl);
  background-color: #ffffff;
  transition: all var(--transition-base);
}

.form-input:focus,
.input:focus {
  outline: none;
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.form-input::placeholder {
  color: var(--color-neutral-400);
}

.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='20' height='20' viewBox='0 0 20 20' fill='%23737373'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 3rem;
}

[dir="rtl"] .form-select {
  background-position: left 1rem center;
  padding-right: var(--spacing-4);
  padding-left: 3rem;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-1) var(--spacing-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  gap: var(--spacing-1);
}

.badge-primary {
  background-color: var(--color-primary-100);
  color: var(--color-primary-700);
}

.badge-success {
  background-color: var(--color-success-50);
  color: var(--color-success-600);
}

.badge-warning {
  background-color: var(--color-warning-50);
  color: var(--color-warning-600);
}

.badge-danger {
  background-color: var(--color-danger-50);
  color: var(--color-danger-600);
}

/* ===========================================
   6. NAVIGATION & HEADER - MODERN ENHANCED
   =========================================== */

/* Header Container — sticky keeps it in document flow (no overlap) */
.header-modern {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all 0.3s ease;
}

.header-content {
  position: relative;
  z-index: 10;
}

/* Header Background */
.header-background {
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

.header-background > div:first-child {
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* Header Logo */
.header-logo {
  transition: transform 0.3s ease;
}

.header-logo-wrapper {
  position: relative;
  display: inline-block;
}

.header-logo-shine {
  position: absolute;
  inset: -4px;
  background: linear-gradient(135deg, rgba(0, 56, 127, 0.1), rgba(238, 124, 1, 0.1));
  border-radius: 0.5rem;
  pointer-events: none;
}

/* Desktop Navigation */
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
  overflow: hidden;
}

.header-nav-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 56, 127, 0.05), rgba(238, 124, 1, 0.05));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.header-nav-link:hover::before {
  opacity: 1;
}

.header-nav-text {
  position: relative;
  z-index: 1;
  transition: color 0.3s ease;
}

.header-nav-link:hover .header-nav-text {
  color: #00387F;
}

.header-nav-indicator {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 40%;
  height: 2px;
  background: linear-gradient(90deg, #00387F, #EE7C01);
  border-radius: 2px;
  transition: transform 0.3s ease;
}

.header-nav-link:hover .header-nav-indicator,
.header-nav-link-active .header-nav-indicator {
  transform: translateX(-50%) scaleX(1);
}

.header-nav-link-active {
  color: #00387F;
}

.header-nav-link-active::before {
  opacity: 1;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: nowrap;
  flex-direction: row; /* Always left-to-right */
  direction: ltr; /* Force LTR direction */
}

/* Force header container to always use LTR layout */
.header-modern .flex.items-center.justify-between {
  direction: ltr !important;
  flex-direction: row !important;
}

/* Keep actions in same order regardless of language */
[dir="rtl"] .header-actions {
  flex-direction: row !important; /* Same order as LTR */
  flex-wrap: nowrap;
  direction: ltr !important; /* Force LTR */
}

[dir="rtl"] .header-modern .flex.items-center.justify-between {
  flex-direction: row !important; /* Keep same layout as LTR */
  direction: ltr !important; /* Force LTR */
}

/* Hamburger menu button: visible only in responsive/mobile view (below lg) */
@media (max-width: 1023px) {
  .header-mobile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    flex-shrink: 0;
    order: 999; /* Always last */
  }

  [dir="rtl"] .header-mobile-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    order: 999; /* Always last */
  }
}

/* Hide hamburger in web/desktop view (lg and above) */
@media (min-width: 1024px) {
  .header-mobile-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Language Switcher */
.header-lang-switcher {
  position: relative;
}

.header-lang-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 3rem;
}

@media (min-width: 640px) {
  .header-lang-button {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    min-width: 4rem;
  }
}

.header-lang-button:hover {
  color: #00387F;
  background: rgba(0, 56, 127, 0.05);
}

.header-lang-button:active {
  transform: scale(0.95);
}

.header-lang-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(226, 232, 240, 0.5);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 50;
  overflow: hidden;
  pointer-events: none;
}

/* Show dropdown on hover (desktop) - only when not manually toggled */
.header-lang-switcher.group:hover .header-lang-dropdown:not(.show) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Show dropdown on click (mobile/desktop) - takes precedence */
.header-lang-dropdown.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

[dir="rtl"] .header-lang-dropdown {
  right: auto;
  left: 0;
}

.header-lang-dropdown a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  z-index: 1;
}

/* Cart Button */
.header-cart-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  color: #475569;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

.header-cart-button:hover {
  color: #00387F;
  background: rgba(0, 56, 127, 0.05);
}

.header-cart-badge {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.25rem;
  height: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, #00387F, #002d66);
  border-radius: 9999px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  animation: cartBadgePulse 2s ease-in-out infinite;
}

@keyframes cartBadgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* CTA Button */
.header-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #00387F, #002d66);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 56, 127, 0.3);
  transition: all 0.3s ease;
}

.header-cta-button:hover {
  background: linear-gradient(135deg, #002d66, #001f4d);
  box-shadow: 0 10px 15px -3px rgba(0, 56, 127, 0.4);
  transform: translateY(-1px) scale(1.02);
}

/* Mobile Menu Toggle */
.header-mobile-toggle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.625rem;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  min-width: 2.5rem;
  min-height: 2.5rem;
  z-index: 10;
}

.header-mobile-toggle:hover {
  color: #00387F;
  background: rgba(0, 56, 127, 0.05);
}

/* RTL hamburger styling handled in (max-width: 1023px) above */

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

/* Mobile Menu Overlay */
.header-mobile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.3s ease;
  z-index: 40;
}

/* Mobile Menu Panel */
.header-mobile-menu {
  position: fixed;
  top: 0;
  right: 0 !important; /* Always on right side */
  left: auto !important; /* Never on left */
  bottom: 0;
  width: 85%;
  max-width: 24rem;
  background: white;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%) !important; /* Always start off-screen to the right */
  transition: transform 0.3s ease-out;
  z-index: 50;
  pointer-events: none;
  overflow: visible; /* Changed from hidden to allow scrolling */
  display: flex;
  flex-direction: column;
  direction: ltr; /* Force LTR for menu panel */
  height: 100vh; /* Full height */
}

/* Menu always slides from right in both LTR and RTL */
.header-mobile-menu.translate-x-0 {
  transform: translateX(0) !important; /* Always slide to visible position */
}

/* Override RTL transforms for mobile menu - always slide from right */
[dir="rtl"] .header-mobile-menu {
  right: 0 !important;
  left: auto !important;
  transform: translateX(100%) !important; /* Always start off-screen right */
}

[dir="rtl"] .header-mobile-menu.translate-x-0 {
  transform: translateX(0) !important; /* Always slide to visible */
}

/* Override the general RTL translate rule for mobile menu */
[dir="rtl"] .header-mobile-menu.translate-x-full {
  transform: translateX(100%) !important; /* Always slide off to right */
}

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

[dir="rtl"] .header-mobile-link {
  flex-direction: row-reverse;
  text-align: right;
}

[dir="rtl"] .header-mobile-nav {
  direction: rtl;
}

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

.header-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid #e2e8f0;
  background: linear-gradient(135deg, rgba(0, 56, 127, 0.05), rgba(238, 124, 1, 0.03));
  flex-shrink: 0;
  position: relative;
  z-index: 10;
}

.header-mobile-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  min-width: 2.5rem;
  min-height: 2.5rem;
  color: #475569;
  background: rgba(255, 255, 255, 0.9);
  border: 2px solid #e2e8f0;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.header-mobile-close:hover {
  color: white;
  background: linear-gradient(135deg, #00387F, #EE7C01);
  border-color: transparent;
  transform: rotate(90deg) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 56, 127, 0.3);
}

.header-mobile-close:active {
  transform: rotate(90deg) scale(0.95);
}

/* Mobile Navigation */
.header-mobile-nav {
  flex: 1 1 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  min-height: 0;
  max-height: 100%;
}

.header-mobile-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 0.75rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.header-mobile-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 56, 127, 0.1), rgba(238, 124, 1, 0.1));
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 0;
}

.header-mobile-link:hover::before,
.header-mobile-link:focus::before {
  opacity: 1;
}

.header-mobile-link > * {
  position: relative;
  z-index: 1;
}

.header-mobile-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  transition: all 0.3s ease;
}

/* Mobile Footer */
.header-mobile-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: linear-gradient(135deg, #f8fafc, rgba(0, 56, 127, 0.03), rgba(238, 124, 1, 0.02));
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-shrink: 0 0 auto; /* Don't shrink, take natural height */
  position: relative;
  z-index: 10;
}

.header-mobile-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: white;
  text-decoration: none;
  background: linear-gradient(135deg, #00387F, #002d66, #EE7C01);
  border-radius: 0.75rem;
  box-shadow: 0 4px 6px -1px rgba(0, 56, 127, 0.3);
  transition: all 0.3s ease;
}

.header-mobile-cta:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 56, 127, 0.4);
  transform: translateY(-1px) scale(1.02);
}

/* Prominent Get Quote in mobile nav (above language switcher) */
.header-mobile-cta--prominent {
  padding: 1rem 1.25rem;
  font-size: 1rem;
  border-radius: 1rem;
  box-shadow: 0 6px 20px -4px rgba(0, 56, 127, 0.35);
}
.header-mobile-cta--prominent:hover {
  box-shadow: 0 12px 28px -4px rgba(0, 56, 127, 0.4);
}

/* Scroll Effect: JS drives smooth height interpolation; CSS provides initial sizes & will-change hint */
.header-inner {
  height: 68px; /* initial — JS overrides inline */
  will-change: height;
}

.header-logo-img {
  /* Initial heights per breakpoint (before JS kicks in) */
  height: 32px;
  will-change: height;
  transition: transform 0.3s ease; /* only hover scale */
}

@media (min-width: 640px) {
  .header-logo-img { height: 38px; }
}
@media (min-width: 768px) {
  .header-logo-img { height: 42px; }
}
@media (min-width: 1024px) {
  .header-logo-img { height: 46px; }
}
@media (min-width: 1280px) {
  .header-logo-img { height: 50px; }
}

.header-modern.scrolled .header-background {
  opacity: 1;
}

.header-modern.scrolled {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Header theme: white + gradients, theme font colors (#00387F blue, #EE7C01 orange) */
.header-bg-base {
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.header-bg-gradient {
  background: linear-gradient(90deg, rgba(0, 56, 127, 0.04) 0%, transparent 35%, transparent 65%, rgba(238, 124, 1, 0.05) 100%);
  pointer-events: none;
}

[dir="rtl"] .header-bg-gradient {
  background: linear-gradient(90deg, rgba(238, 124, 1, 0.05) 0%, transparent 35%, transparent 65%, rgba(0, 56, 127, 0.04) 100%);
}

/* Spacer no longer needed — header is sticky (in document flow) */

/* Theme nav link colors */
.header-theme .header-nav-link {
  color: #00387F;
}

.header-theme .header-nav-link .header-nav-text {
  color: inherit;
}

.header-theme .header-nav-link:hover .header-nav-text {
  color: #EE7C01;
}

.header-theme .header-nav-link-active,
.header-theme .header-nav-link-active .header-nav-text {
  color: #00387F;
}

.header-theme .header-nav-link::before {
  background: linear-gradient(135deg, rgba(0, 56, 127, 0.06), rgba(238, 124, 1, 0.06));
}

/* Lang button */
.header-theme .header-lang-button {
  color: #00387F;
  background: transparent;
}

.header-theme .header-lang-button:hover {
  color: #EE7C01;
  background: rgba(238, 124, 1, 0.08);
}

/* Cart button */
.header-theme .header-cart-button {
  color: #00387F;
}

.header-theme .header-cart-button:hover {
  color: #EE7C01;
  background: rgba(238, 124, 1, 0.08);
}

/* CTA button: blue to orange gradient */
.header-theme .header-cta-button {
  background: linear-gradient(135deg, #00387F 0%, #002d66 50%, #EE7C01 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
}

.header-theme .header-cta-button:hover {
  background-position: 100% 50%;
  box-shadow: 0 10px 25px -5px rgba(0, 56, 127, 0.25), 0 4px 10px -4px rgba(238, 124, 1, 0.3);
}

/* Mobile toggle */
.header-theme .header-mobile-toggle {
  color: #00387F;
}

.header-theme .header-mobile-toggle:hover {
  color: #EE7C01;
  background: rgba(238, 124, 1, 0.08);
}

/* Header search dropdown + shared suggest list (hero-search-* used in header & home) */
.header-search-dropdown {
  display: none;
}
.header-search-dropdown.open {
  display: block;
}
.hero-search-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: #1e293b;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.15s;
}
.hero-search-item:last-child {
  border-bottom: none;
}
.hero-search-item:hover {
  background: #f8fafc;
}
.hero-search-item-img {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #f1f5f9;
}
.hero-search-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-search-item-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.hero-search-item-name {
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1.3;
}
.hero-search-item-code {
  font-size: 0.75rem;
  color: #64748b;
}
.hero-search-item-price {
  font-size: 0.875rem;
  margin-top: 0.125rem;
}
.hero-search-item-price-current {
  color: #00387F;
  font-weight: 600;
}
.hero-search-item-price-old {
  color: #94a3b8;
  text-decoration: line-through;
  margin-left: 0.25rem;
}
.hero-search-item--view-all {
  justify-content: center;
  font-weight: 600;
  color: #00387F;
  background: #f0f7ff;
}
.hero-search-item--view-all:hover {
  background: #e0effe;
}
.hero-search-loading,
.hero-search-empty {
  padding: 1.25rem 1rem;
  text-align: center;
  color: #64748b;
  font-size: 0.9375rem;
}

/* Responsive Adjustments */
@media (max-width: 1023px) {
  .header-nav {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header-mobile-toggle,
  .header-mobile-overlay,
  .header-mobile-menu {
    display: none;
  }
}

/* Legacy Support */
.nav-link {
  position: relative;
  padding: var(--spacing-2) var(--spacing-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-neutral-700);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary-600);
  background-color: var(--color-primary-50);
}

.nav-link.active {
  color: var(--color-primary-600);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: var(--color-primary-600);
  border-radius: var(--radius-full);
}

/* ===========================================
   7. RTL SUPPORT
   =========================================== */

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

[dir="rtl"] .rtl\:rotate-180 {
  transform: rotate(180deg);
}

[dir="rtl"] .gap-2 > * + *,
[dir="rtl"] .gap-3 > * + *,
[dir="rtl"] .gap-4 > * + * {
  /* Gap works in both directions */
}

/* Logical Properties for RTL */
.ms-auto { margin-inline-start: auto; }
.me-auto { margin-inline-end: auto; }
.ps-0 { padding-inline-start: 0; }
.pe-0 { padding-inline-end: 0; }
.start-0 { inset-inline-start: 0; }
.end-0 { inset-inline-end: 0; }
.text-start { text-align: start; }
.text-end { text-align: end; }

/* ===========================================
   8. UTILITIES & ANIMATIONS
   =========================================== */

/* Visibility */
.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;
}

.sr-only:focus {
  position: static;
  width: auto;
  height: auto;
  padding: inherit;
  margin: inherit;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

/* Display */
.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.inline-flex { display: inline-flex; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.sticky { position: sticky; }

.inset-0 { inset: 0; }
.top-0 { top: 0; }
.right-0 { right: 0; }
.bottom-0 { bottom: 0; }
.left-0 { left: 0; }

/* Z-Index */
.z-10 { z-index: 10; }
.z-20 { z-index: 20; }
.z-30 { z-index: 30; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }

/* Sizing */
.w-full { width: 100%; }
.h-full { height: 100%; }
.min-h-screen { min-height: 100vh; }

/* Spacing Utilities */
.p-0 { padding: 0; }
.p-4 { padding: var(--spacing-4); }
.p-6 { padding: var(--spacing-6); }
.p-8 { padding: var(--spacing-8); }

.px-4 { padding-left: var(--spacing-4); padding-right: var(--spacing-4); }
.px-6 { padding-left: var(--spacing-6); padding-right: var(--spacing-6); }
.py-2 { padding-top: var(--spacing-2); padding-bottom: var(--spacing-2); }
.py-3 { padding-top: var(--spacing-3); padding-bottom: var(--spacing-3); }
.py-4 { padding-top: var(--spacing-4); padding-bottom: var(--spacing-4); }

.m-0 { margin: 0; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-2 { margin-bottom: var(--spacing-2); }
.mb-4 { margin-bottom: var(--spacing-4); }
.mb-6 { margin-bottom: var(--spacing-6); }
.mb-8 { margin-bottom: var(--spacing-8); }
.mb-12 { margin-bottom: var(--spacing-12); }
.mt-4 { margin-top: var(--spacing-4); }
.mt-6 { margin-top: var(--spacing-6); }
.mt-8 { margin-top: var(--spacing-8); }
.mt-12 { margin-top: var(--spacing-12); }

/* Text */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-xs { font-size: var(--text-xs); }
.text-sm { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg { font-size: var(--text-lg); }
.text-xl { font-size: var(--text-xl); }
.text-2xl { font-size: var(--text-2xl); }
.text-3xl { font-size: var(--text-3xl); }
.text-4xl { font-size: var(--text-4xl); }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }

.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Colors */
.text-white { color: #ffffff; }
.text-neutral-400 { color: var(--color-neutral-400); }
.text-neutral-500 { color: var(--color-neutral-500); }
.text-neutral-600 { color: var(--color-neutral-600); }
.text-neutral-700 { color: var(--color-neutral-700); }
.text-neutral-900 { color: var(--color-neutral-900); }
.text-primary-500 { color: var(--color-primary-500); }
.text-primary-600 { color: var(--color-primary-600); }

.bg-white { background-color: #ffffff; }
.bg-neutral-50 { background-color: var(--color-neutral-50); }
.bg-neutral-100 { background-color: var(--color-neutral-100); }
.bg-neutral-800 { background-color: var(--color-neutral-800); }
.bg-neutral-900 { background-color: var(--color-neutral-900); }
.bg-primary-50 { background-color: var(--color-primary-50); }
.bg-primary-100 { background-color: var(--color-primary-100); }
.bg-primary-500 { background-color: var(--color-primary-500); }
.bg-primary-600 { background-color: var(--color-primary-600); }

/* Accent Colors (Orange) */
.text-accent-500 { color: var(--color-accent-500); }
.text-accent-600 { color: var(--color-accent-600); }
.text-accent-700 { color: var(--color-accent-700); }
.bg-accent-50 { background-color: var(--color-accent-50); }
.bg-accent-100 { background-color: var(--color-accent-100); }
.bg-accent-500 { background-color: var(--color-accent-500); }
.bg-accent-600 { background-color: var(--color-accent-600); }
.border-accent-500 { border-color: var(--color-accent-500); }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-0 { border-width: 0; }
.border-t { border-top-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-style: solid; }
.border-neutral-100 { border-color: var(--color-neutral-100); }
.border-neutral-200 { border-color: var(--color-neutral-200); }
.border-neutral-700 { border-color: var(--color-neutral-700); }
.border-neutral-800 { border-color: var(--color-neutral-800); }
.border-primary-500 { border-color: var(--color-primary-500); }

.rounded { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-3xl { border-radius: var(--radius-3xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows */
.shadow { box-shadow: var(--shadow); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-soft { box-shadow: var(--shadow-soft); }
.shadow-soft-lg { box-shadow: var(--shadow-soft-lg); }
.shadow-glow { box-shadow: var(--shadow-glow); }

/* Effects */
.opacity-0 { opacity: 0; }
.opacity-50 { opacity: 0.5; }
.opacity-100 { opacity: 1; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

/* Backdrop */
.backdrop-blur-lg {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* Transitions */
.transition-all {
  transition-property: all;
  transition-timing-function: ease;
  transition-duration: 200ms;
}

.transition-colors {
  transition-property: color, background-color, border-color;
  transition-timing-function: ease;
  transition-duration: 200ms;
}

.transition-transform {
  transition-property: transform;
  transition-timing-function: ease;
  transition-duration: 200ms;
}

.transition-opacity {
  transition-property: opacity;
  transition-timing-function: ease;
  transition-duration: 200ms;
}

.duration-200 { transition-duration: 200ms; }
.duration-300 { transition-duration: 300ms; }

/* Transforms */
.transform { transform: translateZ(0); }
.translate-x-0 { transform: translateX(0); }
.translate-x-full { transform: translateX(100%); }
.-translate-x-full { transform: translateX(-100%); }
.translate-y-0 { transform: translateY(0); }
.translate-y-full { transform: translateY(100%); }
.-translate-y-full { transform: translateY(-100%); }

[dir="rtl"] .translate-x-full { transform: translateX(-100%); }
[dir="rtl"] .-translate-x-full { transform: translateX(100%); }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulse-soft {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out; }
.animate-fade-up { animation: fadeUp 0.5s ease-out; }
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-soft { animation: pulse-soft 2s ease-in-out infinite; }
.animate-spin { animation: spin 1s linear infinite; }

.animation-delay-200 { animation-delay: 200ms; }
.animation-delay-400 { animation-delay: 400ms; }

/* Line Clamp */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Aspect Ratio */
.aspect-square { aspect-ratio: 1 / 1; }
.aspect-video { aspect-ratio: 16 / 9; }
.aspect-4\/3 { aspect-ratio: 4 / 3; }
.aspect-3\/4 { aspect-ratio: 3 / 4; }

/* Object Fit */
.object-cover { object-fit: cover; }
.object-contain { object-fit: contain; }
.object-center { object-position: center; }

/* Cursor */
.cursor-pointer { cursor: pointer; }

/* Pointer Events */
.pointer-events-none { pointer-events: none; }
.pointer-events-auto { pointer-events: auto; }

/* User Select */
.select-none { user-select: none; }

/* Flex Utilities */
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-wrap { flex-wrap: wrap; }

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

/* Responsive Visibility */
.lg\:hidden { display: block; }
.lg\:block { display: none; }
.lg\:flex { display: none; }

/* Responsive Grid */
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:inline-flex { display: inline-flex; }
  .sm\:flex-row { flex-direction: row; }
  .sm\:w-auto { width: auto; }
  .sm\:text-start { text-align: start; }
  .sm\:justify-start { justify-content: flex-start; }
  .sm\:col-span-2 { grid-column: span 2 / span 2; }
  .sm\:gap-4 { gap: 1rem; }
  .sm\:gap-5 { gap: 1.25rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:py-12 { padding-top: 3rem; padding-bottom: 3rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
}

@media (min-width: 768px) {
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:flex-row { flex-direction: row; }
  .md\:block { display: block; }
  .md\:hidden { display: none; }
  .md\:h-12 { height: 3rem; }
  .md\:text-start { text-align: start; }
}

@media (min-width: 1024px) {
  .lg\:hidden { display: none; }
  .lg\:block { display: block; }
  .lg\:flex { display: flex; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:grid-cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .lg\:col-span-1 { grid-column: span 1 / span 1; }
  .lg\:text-start { text-align: start; }
  .lg\:text-left { text-align: left; }
  .lg\:justify-start { justify-content: flex-start; }
  .lg\:mx-0 { margin-left: 0; margin-right: 0; }
  .lg\:max-w-none { max-width: none; }
  .lg\:gap-8 { gap: 2rem; }
  .lg\:gap-12 { gap: 3rem; }
  .lg\:gap-16 { gap: 4rem; }
  .lg\:py-20 { padding-top: 5rem; padding-bottom: 5rem; }
  .lg\:min-h-\[calc\(100vh-5rem\)\] { min-height: calc(100vh - 5rem); }
  .lg\:order-1 { order: 1; }
  .lg\:order-2 { order: 2; }
}

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

::-webkit-scrollbar-track {
  background: var(--color-neutral-100);
}

::-webkit-scrollbar-thumb {
  background: var(--color-neutral-300);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-neutral-400);
}

/* Gradient Backgrounds */
.bg-gradient-to-br {
  background-image: linear-gradient(to bottom right, var(--tw-gradient-stops));
}

.from-primary-500 {
  --tw-gradient-from: var(--color-primary-500);
  --tw-gradient-to: transparent;
  --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

.to-primary-600 {
  --tw-gradient-to: var(--color-primary-600);
}

.from-primary-600 {
  --tw-gradient-from: var(--color-primary-600);
}

.to-primary-700 {
  --tw-gradient-to: var(--color-primary-700);
}

/* Width/Height utilities */
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }

/* Focus Visible */
*:focus-visible {
  outline: 2px solid var(--color-primary-500);
  outline-offset: 2px;
}

/* Selection */
::selection {
  background-color: var(--color-primary-100);
  color: var(--color-primary-900);
}

/* Print */
@media print {
  .no-print { display: none !important; }
}

/* ===========================================
   COOKIE CONSENT BANNER
   =========================================== */

.cookie-consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  transform: translateY(100%);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cookie-consent-banner.translate-y-0 {
  transform: translateY(0);
}

.cookie-consent-inner {
  background: var(--color-neutral-900);
  border-top: 1px solid var(--color-neutral-700);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.3);
}

.cookie-consent-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 768px) {
  .cookie-consent-content {
    flex-direction: row;
    justify-content: space-between;
    gap: 2rem;
  }
}

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

@media (min-width: 768px) {
  .cookie-consent-text {
    text-align: left;
  }
}

[dir="rtl"] .cookie-consent-text {
  text-align: center;
}

@media (min-width: 768px) {
  [dir="rtl"] .cookie-consent-text {
    text-align: right;
  }
}

.cookie-consent-title {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.cookie-consent-message {
  color: var(--color-neutral-400);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-link {
  color: var(--color-primary-500);
  transition: color 0.2s ease;
}

.cookie-consent-link:hover {
  color: var(--color-primary-400);
  text-decoration: underline;
}

.cookie-consent-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  width: 100%;
}

@media (min-width: 768px) {
  .cookie-consent-actions {
    width: auto;
  }
}

.cookie-btn {
  flex: 1;
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

@media (min-width: 768px) {
  .cookie-btn {
    flex: none;
  }
}

.cookie-btn-decline {
  background: transparent;
  color: var(--color-neutral-300);
  border: 1px solid var(--color-neutral-600);
}

.cookie-btn-decline:hover {
  color: #ffffff;
  border-color: var(--color-neutral-500);
  background: rgba(255, 255, 255, 0.05);
}

.cookie-btn-accept {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}

.cookie-btn-accept:hover {
  background: linear-gradient(135deg, var(--color-primary-600) 0%, var(--color-primary-700) 100%);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
}

/* ===========================================
   TOAST NOTIFICATIONS
   =========================================== */

/* Toast: always below fixed header (header is h-16 sm:h-20 ≈ 5rem) */
#toast-container.toast-container-placeholder {
  top: 6rem; /* 96px, below header */
  left: auto;
  right: 1.5rem;
}

#toast-container {
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 400px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.2);
  transition: all var(--transition-base);
}

.toast-success {
  border-left: 4px solid var(--color-success-500);
}

.toast-success svg {
  color: var(--color-success-500);
}

.toast-error {
  border-left: 4px solid var(--color-danger-500);
}

.toast-error svg {
  color: var(--color-danger-500);
}

[dir="rtl"] .toast-success,
[dir="rtl"] .toast-error {
  border-left: none;
  border-right-width: 4px;
  border-right-style: solid;
}

[dir="rtl"] .toast-success {
  border-right-color: var(--color-success-500);
}

[dir="rtl"] .toast-error {
  border-right-color: var(--color-danger-500);
}

/* Toast: fit mobile screens, still below header */
@media (max-width: 639px) {
  #toast-container.toast-container-placeholder {
    left: 0.75rem;
    right: 0.75rem;
    top: max(5.5rem, calc(5rem + env(safe-area-inset-top, 0)));
    padding-top: env(safe-area-inset-top, 0);
    max-width: none;
    align-items: stretch;
  }

  .toast {
    min-width: 0;
    max-width: none;
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.75rem;
    font-size: 0.875rem;
  }

  .toast .flex {
    gap: 0.5rem;
  }

  .toast svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slideInRight 0.3s ease-out;
}

[dir="rtl"] .animate-slide-in-right {
  animation: slideInLeft 0.3s ease-out;
}

/* ===========================================
   PRODUCT CARD COMPONENT
   =========================================== */

.product-card {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.15);
}

.product-card-image {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background-color: var(--color-neutral-100);
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.08);
}

.product-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: var(--radius-full);
  z-index: 5;
}

[dir="rtl"] .product-card-badge {
  left: auto;
  right: 12px;
}

.product-card-badge.sale {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #ffffff;
}

.product-card-badge.new {
  background: linear-gradient(135deg, var(--color-primary-500) 0%, var(--color-primary-600) 100%);
  color: #ffffff;
}

.product-card-content {
  padding: 1.25rem;
}

.product-card-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-neutral-900);
  line-height: 1.4;
  margin-bottom: 0.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.product-card:hover .product-card-title {
  color: var(--color-primary-600);
}

.product-card-price {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.product-card-price .current {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-neutral-900);
}

.product-card-price .original {
  font-size: 0.875rem;
  color: var(--color-neutral-400);
  text-decoration: line-through;
}

/* Quick action buttons */
.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-icon:hover {
  transform: scale(1.1);
}

/* ===========================================
   PROJECT CARD COMPONENT
   =========================================== */

.project-card {
  position: relative;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-neutral-100);
  aspect-ratio: 4 / 3;
}

.project-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-card-image {
  transform: scale(1.05);
}

.project-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  transition: background 0.3s ease;
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
}

.project-card-title {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.project-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.8);
}

/* ===========================================
   SERVICE CARD COMPONENT
   =========================================== */

.service-card {
  padding: 2rem;
  background: #ffffff;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-neutral-100);
  transition: all 0.3s ease;
}

.service-card:hover {
  border-color: var(--color-primary-200);
  box-shadow: var(--shadow-soft-lg);
  transform: translateY(-4px);
}

.service-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  background: var(--color-primary-50);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  transition: all 0.3s ease;
}

.service-card:hover .service-card-icon {
  background: var(--color-primary-100);
  transform: scale(1.1);
}

.service-card-icon svg {
  width: 28px;
  height: 28px;
  color: var(--color-primary-600);
}

/* ===========================================
   BACKGROUND PATTERNS
   =========================================== */

.bg-mesh-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(249, 115, 22, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(249, 115, 22, 0.05) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f97316' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.bg-dark-pattern {
  background-color: var(--color-neutral-900);
  background-image: 
    radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.06) 0%, transparent 40%),
    url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23f97316' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
}

/* ===========================================
   HERO SECTION ENHANCEMENTS
   =========================================== */

.hero {
  min-height: calc(100vh - 5rem);
  display: flex;
  align-items: center;
}

/* ===========================================
   LOADING SPINNER
   =========================================== */

.spinner {
  width: 1.5rem;
  height: 1.5rem;
  border: 2px solid var(--color-neutral-200);
  border-top-color: var(--color-primary-600);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.spinner-sm {
  width: 1rem;
  height: 1rem;
}

.spinner-lg {
  width: 2.5rem;
  height: 2.5rem;
  border-width: 3px;
}

/* ===========================================
   SKELETON LOADING
   =========================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-md);
}

@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.skeleton-text {
  height: 1em;
  margin-bottom: 0.5em;
}

.skeleton-text:last-child {
  width: 80%;
}

.skeleton-image {
  aspect-ratio: 4/3;
}

/* --- Skeleton Card Placeholder --- */
.skeleton-card {
  background: var(--color-neutral-100);
  border-radius: var(--radius-lg, 1rem);
  overflow: hidden;
}
.skeleton-card .skeleton-card-image {
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}
.skeleton-card .skeleton-card-body {
  padding: 1rem;
}
.skeleton-card .skeleton-card-line {
  height: 0.875rem;
  margin-bottom: 0.625rem;
  border-radius: 0.25rem;
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}
.skeleton-card .skeleton-card-line:nth-child(1) { width: 50%; }
.skeleton-card .skeleton-card-line:nth-child(2) { width: 80%; }
.skeleton-card .skeleton-card-line:nth-child(3) { width: 40%; }

/* --- Skeleton Hero Placeholder --- */
.skeleton-hero {
  width: 100%;
  min-height: 50vh;
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: var(--radius-lg, 1rem);
}

/* --- Skeleton Avatar --- */
.skeleton-avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
}

/* --- Image Skeleton Wrapper --- */
.skeleton-img-wrap {
  position: relative;
  overflow: hidden;
}
.skeleton-img-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    90deg,
    var(--color-neutral-200) 25%,
    var(--color-neutral-100) 50%,
    var(--color-neutral-200) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  transition: opacity 0.4s ease;
}
.skeleton-img-wrap.loaded::before {
  opacity: 0;
  pointer-events: none;
}
.skeleton-img-wrap img {
  opacity: 0;
  transition: opacity 0.4s ease;
}
.skeleton-img-wrap.loaded img {
  opacity: 1;
}

/* --- Page Loading State --- */
body:not(.page-loaded) .skeleton-on-load {
  opacity: 0;
}
.skeleton-on-load {
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* --- Skeleton Grid (for full page grid placeholders) --- */
.skeleton-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .skeleton,
  .skeleton-card .skeleton-card-image,
  .skeleton-card .skeleton-card-line,
  .skeleton-hero,
  .skeleton-avatar,
  .skeleton-img-wrap::before {
    background: linear-gradient(
      90deg,
      #374151 25%,
      #4b5563 50%,
      #374151 75%
    );
    background-size: 200% 100%;
  }
}

/* ===========================================
   COMPREHENSIVE RESPONSIVE STYLES
   =========================================== */

/* Mobile First Responsive Breakpoints */

/* Extra Small devices (phones, < 640px) */
@media (max-width: 639px) {
  /* Typography scaling */
  .text-display-lg {
    font-size: 2rem !important;
  }
  
  .text-display-md {
    font-size: 1.5rem !important;
  }
  
  .text-display-sm {
    font-size: 1.25rem !important;
  }
  
  /* Container padding */
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  /* Section padding */
  .section {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
  
  /* Hero adjustments */
  .hero {
    min-height: auto;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }
  
  /* Button full width on mobile */
  .btn-mobile-full {
    width: 100%;
  }
  
  /* Hide on mobile */
  .hidden-mobile {
    display: none !important;
  }
  
  /* Stack flex items */
  .flex-stack-mobile {
    flex-direction: column;
    align-items: stretch;
  }
  
  /* Product card adjustments */
  .product-card-content {
    padding: 0.75rem 1rem 1rem;
  }
  
  .product-card-title {
    font-size: var(--text-base);
  }
  
  .product-card-price .current {
    font-size: var(--text-lg);
  }
}

/* Small devices (landscape phones, 640px - 767px) */
@media (min-width: 640px) {
  .sm\:text-start {
    text-align: start;
  }
  
  .sm\:flex-row {
    flex-direction: row;
  }
  
  .sm\:inline-flex {
    display: inline-flex;
  }
  
  .sm\:w-auto {
    width: auto;
  }
  
  .sm\:gap-4 {
    gap: 1rem;
  }
  
  .sm\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .sm\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Medium devices (tablets, 768px - 1023px) */
@media (min-width: 768px) {
  .md\:text-start {
    text-align: start;
  }
  
  .md\:flex-row {
    flex-direction: row;
  }
  
  .md\:w-auto {
    width: auto;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .md\:block {
    display: block;
  }
  
  .md\:hidden {
    display: none;
  }
  
  .md\:h-12 {
    height: 3rem;
  }
}

/* Large devices (desktops, 1024px+) */
@media (min-width: 1024px) {
  .lg\:text-start {
    text-align: start;
  }
  
  .lg\:justify-start {
    justify-content: flex-start;
  }
  
  .lg\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .lg\:grid-cols-6 {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  
  .lg\:block {
    display: block;
  }
  
  .lg\:hidden {
    display: none;
  }
  
  .lg\:flex {
    display: flex;
  }
  
  .lg\:min-h-\[calc\(100vh-5rem\)\] {
    min-height: calc(100vh - 5rem);
  }
  
  .lg\:mx-0 {
    margin-left: 0;
    margin-right: 0;
  }
  
  .lg\:max-w-none {
    max-width: none;
  }
  
  .lg\:order-1 {
    order: 1;
  }
  
  .lg\:order-2 {
    order: 2;
  }
  
  .lg\:col-span-1 {
    grid-column: span 1 / span 1;
  }
  
  /* Hero shows image on desktop */
  .hero {
    min-height: calc(100vh - 5rem);
  }
}

/* Extra large devices (1280px+) */
@media (min-width: 1280px) {
  .xl\:grid-cols-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  
  .xl\:p-8 {
    padding: 2rem;
  }
}

/* Print Styles */
@media print {
  .no-print {
    display: none !important;
  }
  
  body {
    background: white;
    color: black;
  }
  
  .hero, .section {
    padding: 1rem 0;
  }
  
  a[href]::after {
    content: " (" attr(href) ")";
  }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  
  .animate-float,
  .animate-pulse,
  [data-aos] {
    animation: none !important;
  }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
  :root {
    --color-primary-500: #d65000;
    --shadow-soft: 0 2px 4px rgba(0, 0, 0, 0.3);
  }
  
  .btn {
    border: 2px solid currentColor;
  }
}

/* Dark Mode Support (future-ready) */
@media (prefers-color-scheme: dark) {
  /* Placeholder for future dark mode support */
}

/* Currency Symbol Image Styling */
img[alt="OMR"] {
  display: inline-block;
  vertical-align: middle;
  width: 1rem;
  height: 1rem;
  margin-left: 0.25rem;
  object-fit: contain;
}

[dir="rtl"] img[alt="OMR"] {
  margin-left: 0;
  margin-right: 0.25rem;
}

/* ===========================================
   FOOTER - MODERN ENHANCED
   =========================================== */

.footer-modern {
  position: relative;
  background: #0f172a;
  color: #ffffff;
  overflow: hidden;
}

/* Footer Background */
.footer-background {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.footer-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: footerOrbFloat 25s ease-in-out infinite;
  opacity: 0.4;
}

.footer-orb-1 {
  animation-delay: 0s;
}

.footer-orb-2 {
  animation-delay: 12.5s;
}

@keyframes footerOrbFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.4;
  }
  25% {
    transform: translate(40px, -50px) scale(1.15);
    opacity: 0.6;
  }
  50% {
    transform: translate(-30px, 40px) scale(0.9);
    opacity: 0.3;
  }
  75% {
    transform: translate(50px, 30px) scale(1.1);
    opacity: 0.5;
  }
}

.footer-grid-pattern {
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  animation: footerGridMove 30s linear infinite;
}

@keyframes footerGridMove {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(50px, 50px);
  }
}

.footer-shine {
  background: linear-gradient(
    135deg,
    transparent 0%,
    transparent 40%,
    rgba(255, 255, 255, 0.05) 50%,
    transparent 60%,
    transparent 100%
  );
  animation: footerShine 10s ease-in-out infinite;
}

@keyframes footerShine {
  0%, 100% {
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    opacity: 0;
  }
  50% {
    transform: translateX(100%) translateY(100%) rotate(45deg);
    opacity: 1;
  }
}

/* Footer Content */
.footer-content {
  position: relative;
  z-index: 10;
}

/* Footer Brand */
.footer-brand {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .footer-brand {
    margin-bottom: 2rem;
  }
}

.footer-logo img {
  transition: transform 0.3s ease;
}

.footer-logo:hover img {
  transform: scale(1.05);
}

.footer-description {
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .footer-description {
    line-height: 1.7;
    margin-bottom: 1.5rem;
  }
}

/* Footer Social Links */
.footer-social {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .footer-social {
    gap: 0.75rem;
  }
}

.footer-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

@media (min-width: 640px) {
  .footer-social-link {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
  }
}

.footer-social-link svg {
  width: 1rem;
  height: 1rem;
}

@media (min-width: 640px) {
  .footer-social-link svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.footer-social-link::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00387F, #EE7C01);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.footer-social-link svg {
  position: relative;
  z-index: 1;
  transition: transform 0.3s ease;
}

.footer-social-link:hover {
  color: #ffffff;
  border-color: transparent;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 56, 127, 0.3);
}

.footer-social-link:hover::before {
  opacity: 1;
}

.footer-social-link:hover svg {
  transform: scale(1.1);
}

/* Specific Social Colors */
.footer-social-facebook:hover {
  box-shadow: 0 8px 20px rgba(24, 119, 242, 0.4);
}

.footer-social-instagram:hover {
  box-shadow: 0 8px 20px rgba(225, 48, 108, 0.4);
}

.footer-social-twitter:hover {
  box-shadow: 0 8px 20px rgba(29, 161, 242, 0.4);
}

.footer-social-linkedin:hover {
  box-shadow: 0 8px 20px rgba(0, 119, 181, 0.4);
}

/* Footer Columns */
.footer-column {
  margin-bottom: 1rem;
}

@media (min-width: 640px) {
  .footer-column {
    margin-bottom: 2rem;
  }
}

.footer-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

@media (min-width: 640px) {
  .footer-title {
    font-size: 1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
}

@media (min-width: 1024px) {
  .footer-title {
    font-size: 1.125rem;
    margin-bottom: 1.5rem;
  }
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 3rem;
  height: 2px;
  background: linear-gradient(90deg, #EE7C01, transparent);
  border-radius: 2px;
}

[dir="rtl"] .footer-title::after {
  left: auto;
  right: 0;
}

/* Footer Links */
.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 640px) {
  .footer-links {
    gap: 0.75rem;
  }
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: all 0.3s ease;
  padding: 0.375rem 0;
  position: relative;
  padding-left: 0;
}

@media (min-width: 640px) {
  .footer-link {
    gap: 0.75rem;
    font-size: 0.875rem;
    padding: 0.5rem 0;
  }
}

@media (min-width: 1024px) {
  .footer-link {
    font-size: 0.9375rem;
  }
}

[dir="rtl"] .footer-link {
  padding-left: 0;
  padding-right: 0;
}

.footer-link-icon {
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
  color: #EE7C01;
  font-weight: 600;
}

[dir="rtl"] .footer-link-icon {
  transform: translateX(10px);
}

.footer-link:hover {
  color: #ffffff;
  padding-left: 1rem;
  transform: translateX(4px);
}

[dir="rtl"] .footer-link:hover {
  padding-left: 0;
  padding-right: 1rem;
  transform: translateX(-4px);
}

.footer-link:hover .footer-link-icon {
  opacity: 1;
  transform: translateX(0);
}

.footer-link span:not(.footer-link-icon) {
  transition: color 0.3s ease;
}

/* Footer Contact */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-contact-list {
    gap: 1rem;
  }
}

@media (min-width: 1024px) {
  .footer-contact-list {
    gap: 1.25rem;
  }
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .footer-contact-item {
    gap: 1rem;
  }
}

.footer-contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  min-width: 2rem;
  border-radius: 0.5rem;
  background: rgba(0, 56, 127, 0.2);
  border: 1px solid rgba(0, 56, 127, 0.3);
  color: #EE7C01;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

@media (min-width: 640px) {
  .footer-contact-icon {
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    border-radius: 0.75rem;
  }
}

.footer-contact-item:hover .footer-contact-icon {
  background: rgba(238, 124, 1, 0.2);
  border-color: rgba(238, 124, 1, 0.4);
  transform: scale(1.1);
}

.footer-contact-text {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.75rem;
  line-height: 1.5;
  flex: 1;
}

@media (min-width: 640px) {
  .footer-contact-text {
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

@media (min-width: 1024px) {
  .footer-contact-text {
    font-size: 0.9375rem;
  }
}

.footer-contact-link {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transition: all 0.3s ease;
}

.footer-contact-link:hover {
  color: #EE7C01;
}

/* Footer Newsletter */
.footer-newsletter {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 640px) {
  .footer-newsletter {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
  }
}

@media (min-width: 1024px) {
  .footer-newsletter {
    margin-top: 2rem;
    padding-top: 2rem;
  }
}

.footer-newsletter-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .footer-newsletter-title {
    font-size: 0.875rem;
    margin-bottom: 1rem;
  }
}

@media (min-width: 1024px) {
  .footer-newsletter-title {
    font-size: 0.9375rem;
  }
}

.footer-newsletter-form {
  margin-top: 1rem;
}

.footer-newsletter-input-wrapper {
  display: flex;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  padding: 0.25rem;
  transition: all 0.3s ease;
}

.footer-newsletter-input-wrapper:focus-within {
  border-color: #EE7C01;
  box-shadow: 0 0 0 3px rgba(238, 124, 1, 0.1);
}

.footer-newsletter-input {
  flex: 1;
  min-width: 0;
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 0.75rem;
  outline: none;
}

@media (min-width: 640px) {
  .footer-newsletter-input {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
  }
}

.footer-newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-newsletter-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: linear-gradient(135deg, #00387F, #EE7C01);
  border: none;
  border-radius: 0.5rem;
  color: #ffffff;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .footer-newsletter-button {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
  }
}

.footer-newsletter-button:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(238, 124, 1, 0.4);
}

.footer-newsletter-button:active {
  transform: scale(0.95);
}

/* Footer Bottom */
.footer-bottom {
  position: relative;
  z-index: 10;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  line-height: 1.4;
}

@media (min-width: 640px) {
  .footer-copyright {
    font-size: 0.875rem;
  }
}

.footer-brand-name {
  color: #ffffff;
  font-weight: 700;
}

.footer-brand-name .text-accent-500 {
  color: #EE7C01;
}

.footer-bottom-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (min-width: 640px) {
  .footer-bottom-links {
    gap: 1.5rem;
  }
}

.footer-bottom-link {
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  position: relative;
}

@media (min-width: 640px) {
  .footer-bottom-link {
    font-size: 0.875rem;
  }
}

.footer-bottom-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: #EE7C01;
  transition: width 0.3s ease;
}

.footer-bottom-link:hover {
  color: #EE7C01;
}

.footer-bottom-link:hover::after {
  width: 100%;
}

.footer-page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.footer-page-btn:hover {
  color: #fff;
  background: rgba(238, 124, 1, 0.2);
  border-color: #EE7C01;
}

.page-legal-content {
  line-height: 1.75;
  color: #262626;
}

.page-legal-content h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.page-legal-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.page-legal-content p {
  margin-bottom: 1rem;
}

.page-legal-content ul, .page-legal-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.page-legal-content.rtl ul, .page-legal-content.rtl ol {
  padding-left: 0;
  padding-right: 1.5rem;
}

.page-legal-content a {
  color: #EA580C;
  text-decoration: none;
}

.page-legal-content a:hover {
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1023px) {
  .footer-orb {
    filter: blur(60px);
  }
  
  .footer-orb-1,
  .footer-orb-2 {
    width: 20rem;
    height: 20rem;
  }
  
  .footer-grid-pattern {
    background-size: 40px 40px;
  }
  
  .footer-social-link {
    width: 2.25rem;
    height: 2.25rem;
  }
  
  .footer-contact-icon {
    width: 2.25rem;
    height: 2.25rem;
    min-width: 2.25rem;
  }
}

/* Mobile: compact, use left/right space (2 cols), short height */
@media (max-width: 639px) {
  .footer-modern {
    padding-top: 0;
  }

  .footer-grid-mobile {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 0.75rem;
  }

  .footer-grid-mobile .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 0;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
  }

  .footer-grid-mobile .footer-brand .footer-logo {
    margin-bottom: 0;
  }

  .footer-grid-mobile .footer-brand .footer-logo img {
    height: 1.5rem;
  }

  .footer-grid-mobile .footer-social {
    gap: 0.35rem;
    flex-shrink: 0;
  }

  .footer-grid-mobile .footer-social-link {
    width: 1.75rem;
    height: 1.75rem;
  }

  .footer-grid-mobile .footer-social-link svg {
    width: 0.875rem;
    height: 0.875rem;
  }

  .footer-grid-mobile .footer-column {
    margin-bottom: 0;
    padding-bottom: 0.5rem;
  }

  .footer-grid-mobile .footer-column.footer-contact {
    grid-column: 1 / -1;
    padding-bottom: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 0.75rem;
    align-items: start;
  }

  .footer-grid-mobile .footer-contact .footer-title {
    grid-column: 1 / -1;
    margin-bottom: 0.35rem;
  }

  .footer-grid-mobile .footer-contact .footer-contact-list {
    grid-column: 1;
  }

  .footer-grid-mobile .footer-contact .footer-newsletter {
    grid-column: 2;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }

  .footer-grid-mobile .footer-title {
    font-size: 0.6875rem;
    margin-bottom: 0.25rem;
    padding-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
  }

  .footer-grid-mobile .footer-title::after {
    width: 1.25rem;
  }

  .footer-grid-mobile .footer-links {
    gap: 0.15rem;
  }

  .footer-grid-mobile .footer-link {
    font-size: 0.75rem;
    padding: 0.1rem 0;
  }

  .footer-grid-mobile .footer-contact-list {
    gap: 0.25rem;
  }

  .footer-grid-mobile .footer-contact-item {
    gap: 0.35rem;
  }

  .footer-grid-mobile .footer-contact-icon {
    width: 1.25rem;
    height: 1.25rem;
    min-width: 1.25rem;
  }

  .footer-grid-mobile .footer-contact-icon svg {
    width: 0.65rem;
    height: 0.65rem;
  }

  .footer-grid-mobile .footer-contact-text {
    font-size: 0.6875rem;
    line-height: 1.35;
  }

  .footer-grid-mobile .footer-newsletter-title {
    font-size: 0.6875rem;
    margin-bottom: 0.35rem;
  }

  .footer-grid-mobile .footer-newsletter-form {
    margin-top: 0.25rem;
  }

  .footer-grid-mobile .footer-newsletter-input-wrapper {
    min-height: 28px;
    border-radius: 0.375rem;
  }

  .footer-grid-mobile .footer-newsletter-input {
    padding: 0.25rem 0.5rem;
    font-size: 0.6875rem;
  }

  .footer-grid-mobile .footer-newsletter-button {
    width: 28px;
    min-width: 28px;
    height: 28px;
  }

  .footer-grid-mobile .footer-newsletter-button svg {
    width: 0.875rem;
    height: 0.875rem;
  }

  .footer-content .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .footer-bottom .container {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .footer-copyright {
    font-size: 0.625rem;
    line-height: 1.3;
  }

  .footer-page-btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.625rem;
  }
}

