html { scroll-behavior: smooth; }
body { background-color: #F3ECDE; color: #1E2A26; }

[dir='rtl'] body,
[dir='rtl'] .font-display {
  font-family: 'Cairo', ui-sans-serif, system-ui, sans-serif;
}

.nile-ribbon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .nile-ribbon path {
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    animation: nile-draw 2.4s ease-out forwards;
  }
}

@keyframes nile-draw {
  to { stroke-dashoffset: 0; }
}

[dir='rtl'] .i-arrow {
  display: inline-block;
  transform: scaleX(-1);
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: fade-in-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .reveal-delay-1 { animation-delay: 0.08s; }
  .reveal-delay-2 { animation-delay: 0.16s; }
  .reveal-delay-3 { animation-delay: 0.24s; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Scroll-triggered reveal, applied via reveal.js. Content stays visible
   without JS or when the user prefers reduced motion. */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll { opacity: 1; transform: none; transition: none; }
}
noscript.reveal-noscript-fallback { display: none; }

/* Lightbox overlay for the gallery */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(30, 42, 38, 0.92);
  padding: 1.5rem;
}
.lightbox-overlay.is-open {
  display: flex;
}
.lightbox-overlay img {
  max-width: min(90vw, 1100px);
  max-height: 85vh;
  border-radius: 0.75rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid #C9A227;
  outline-offset: 2px;
}
