/* Nile Agri Source identity: header/footer logo and the first-visit splash screen. */

.brand .brand-logo {
  display: block;
  width: auto;
  height: 52px;
}
.footer-brand .brand-logo {
  height: 60px;
}
@media (max-width: 800px) {
  .brand .brand-logo { height: 42px; }
}

/* The splash plays the animated logo once per browser session (see js/splash.js).
   It ends itself with CSS, so it never blocks the page even without JavaScript. */
.splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F7F3E8;
  animation: splash-out .5s ease-in 3.3s forwards;
}
.splash-logo {
  width: min(300px, 64vw);
  height: auto;
}
.splash.is-done {
  animation: splash-out .3s ease-in forwards;
}
html.splash-seen .splash {
  display: none;
}
@keyframes splash-out {
  to { opacity: 0; visibility: hidden; }
}
@media (prefers-reduced-motion: reduce) {
  .splash { display: none; }
}

/* Floating WhatsApp button on every page. inset-inline-end puts it bottom-right,
   and bottom-left in right-to-left languages. */
.whatsapp-float {
  position: fixed;
  inset-inline-end: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 20;  /* above page content, below the open menus (25, 30) */
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  box-shadow: 0 6px 18px rgb(0 0 0 / .22);
  transition: transform .2s ease, box-shadow .2s ease;
}
.whatsapp-float:hover {
  transform: scale(1.06);
  box-shadow: 0 8px 22px rgb(0 0 0 / .28);
}
.whatsapp-float:focus-visible {
  outline: 3px solid #304b3b;
  outline-offset: 3px;
}
@media (max-width: 600px) {
  .whatsapp-float { width: 52px; height: 52px; inset-inline-end: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .whatsapp-float { transition: none; }
  .whatsapp-float:hover { transform: none; }
}
@media print {
  .whatsapp-float { display: none; }
}
