/* ============================================
   BASE — Design tokens, typography, utilities
   ============================================ */

:root {
  --brand: #1e3656;
  --brand-foreground: #ffffff;
  --accent-cta: #fdca45;
  --accent-cta-foreground: #1e3656;
  --accent-coral: #ea5260;
  --accent-coral-foreground: #ffffff;
}

html, body {
  scroll-behavior: smooth;
}

[dir="rtl"], [dir="rtl"] body {
  font-family: "Noto Kufi Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
}
[dir="ltr"], [dir="ltr"] body {
  font-family: "Varela Round", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Animations */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.float-slow { animation: float 6s ease-in-out infinite; }

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.animate-fade-in { animation: fadeIn 700ms ease both; }

@keyframes carousel-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.carousel-track { animation: carousel-scroll 40s linear infinite; }
.carousel-viewport:hover .carousel-track { animation-play-state: paused; }

/* Hover lift utility */
.lift { transition: transform 300ms ease, box-shadow 300ms ease; }
.lift:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 50px -12px rgba(30, 54, 86, 0.25);
}

/* Glass surfaces */
.glass {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.20);
}
.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.5);
}

/* Hero dark overlay */
.hero-overlay {
  background: linear-gradient(180deg, rgba(15,23,42,0.55) 0%, rgba(15,23,42,0.72) 100%);
}

/* Animated underline link */
.underline-grow { position: relative; }
.underline-grow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  height: 2px;
  width: 100%;
  background: var(--accent-coral);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 300ms ease;
}
.underline-grow:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

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