/* =============================================================================
   Base
   ============================================================================= */

html {
  scroll-behavior: smooth;
}

body {
  background: #EFEFEF;
  font-family: 'Montserrat', system-ui, sans-serif;
  color: #000;
}

[dir="rtl"] body {
  font-family: 'Alexandria', system-ui, sans-serif;
}

/* =============================================================================
   Selection
   ============================================================================= */

::selection {
  background: #E6224A;
  color: #fff;
}

/* =============================================================================
   Focus
   ============================================================================= */

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid #E6224A;
  outline-offset: 3px;
  border-radius: 2px;
}

/* =============================================================================
   Typography / Font Utilities
   ============================================================================= */

.font-latin {
  font-family: 'Montserrat', system-ui, sans-serif;
}

.font-arabic {
  font-family: 'Alexandria', system-ui, sans-serif;
}

/* RTL line-height overrides */
[dir="rtl"] .leading-none {
  line-height: 1.4;
}

[dir="rtl"] .leading-tight {
  line-height: 1.7;
}

[dir="rtl"] .leading-snug {
  line-height: 1.8;
}

[dir="rtl"] .leading-relaxed {
  line-height: 1.95;
}

[dir="rtl"] .leading-\[1\.02\] {
  line-height: 1.5;
}

[dir="rtl"] .leading-\[1\.05\] {
  line-height: 1.55;
}

/* =============================================================================
   Logo
   ============================================================================= */

.logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
}

/* =============================================================================
   Navigation
   ============================================================================= */

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  background: #E6224A;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

[dir="rtl"] .nav-link::after {
  transform-origin: right;
}

/* =============================================================================
   Decorative Elements
   ============================================================================= */

.coral-dot {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: #E6224A;
  display: inline-block;
}

.drop-shape {
  clip-path: path('M50,5 C50,5 90,55 90,75 C90,95 70,100 50,100 C30,100 10,95 10,75 C10,55 50,5 50,5 Z');
}

/* =============================================================================
   Button Utilities
   ============================================================================= */

.btn-shine {
  position: relative;
  overflow: hidden;
}

.btn-shine::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.6s ease;
}

.btn-shine:hover::before {
  left: 100%;
}

/* =============================================================================
   Interaction Utilities
   ============================================================================= */

.lift {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s ease;
}

.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.15);
}

/* =============================================================================
   Scroll Reveal
   ============================================================================= */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.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;
}

/* =============================================================================
   RTL Flip Utility
   ============================================================================= */

[dir="rtl"] .rtl-flip {
  transform: scaleX(-1);
}

/* =============================================================================
   Marquee
   ============================================================================= */

.marquee-track {
  animation: marquee 40s linear infinite;
}

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

[dir="rtl"] .marquee-track {
  animation-direction: reverse;
}
