/* ============================================================
   ELTTEC AFRICA - GLOBAL UX (SKELETON + TYPOGRAPHY)
   Load this file last so it applies to all public pages.
   ============================================================ */

/* ------------------------------------------------------------
   Skeleton loading screen
   ------------------------------------------------------------ */
#site-skeleton {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(20px, 4vw, 44px);
  background: #090d0a;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

#site-skeleton.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sk-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 4vw, 42px);
  width: 100%;
  max-width: 1240px;
  height: 100%;
  margin: 0 auto;
}

.sk {
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 25%,
    rgba(255, 255, 255, 0.13) 37%,
    rgba(255, 255, 255, 0.05) 63%
  );
  background-size: 400% 100%;
  border-radius: 10px;
  animation: sk-shimmer 1.35s ease infinite;
}

.sk-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.sk-logo {
  width: 148px;
  height: 34px;
  border-radius: 8px;
}

.sk-nav {
  display: flex;
  gap: 16px;
}

.sk-nav .sk {
  width: 62px;
  height: 11px;
  border-radius: 999px;
}

.sk-hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex: 1;
  min-height: 0;
}

.sk-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sk-eyebrow {
  width: 120px;
  height: 11px;
  border-radius: 999px;
}

.sk-title {
  width: 92%;
  height: clamp(24px, 3.2vw, 40px);
  border-radius: 12px;
}

.sk-title-short {
  width: 64%;
}

.sk-text {
  width: 86%;
  height: 12px;
  border-radius: 999px;
}

.sk-text-short {
  width: 58%;
}

.sk-button {
  width: 168px;
  height: 42px;
  margin-top: 10px;
  border-radius: 999px;
}

.sk-hero-media {
  width: 100%;
  height: min(52vh, 420px);
  border-radius: 22px;
}

.sk-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.sk-card {
  height: clamp(88px, 12vh, 128px);
  border-radius: 16px;
}

@keyframes sk-shimmer {
  0% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0 50%;
  }
}

@media (max-width: 767px) {
  .sk-nav .sk:nth-child(n + 4) {
    display: none;
  }

  .sk-hero {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .sk-hero-media {
    height: 180px;
    order: -1;
  }

  .sk-cards {
    grid-template-columns: 1fr;
  }

  .sk-card:nth-child(n + 3) {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sk {
    animation: none;
  }
}

@media print {
  #site-skeleton {
    display: none !important;
  }
}

/* ------------------------------------------------------------
   Typography: slightly reduce non-heading text
   Headings (h1-h6, .h1-.h6, .display-*) are intentionally kept.
   ------------------------------------------------------------ */
body {
  font-size: 0.875rem !important;
}

p,
li,
dt,
dd,
blockquote,
figcaption,
.card-text,
.list-group-item,
.breadcrumb-item,
.form-label,
.form-control,
.form-select,
textarea,
input,
select,
.btn,
.nav-link,
.dropdown-item,
.nav-link-custom,
p.text-muted,
p.text-secondary,
p.text-white-50,
.small,
small {
  font-size: 0.84rem !important;
  line-height: 1.55;
}

.lead {
  font-size: 0.96rem !important;
}

.small,
small {
  font-size: 0.76rem !important;
}

.badge {
  font-size: 0.7rem !important;
}

button:not(.mobile-nav-action-btn):not(.btn-close) {
  font-size: 0.82rem !important;
}

.btn,
.btn-elttec-primary,
.btn-elttec-outline {
  font-size: 0.82rem !important;
}

.footer,
.footer p,
.footer a,
.footer li {
  font-size: 0.82rem !important;
}

/* Keep the mobile slide-down menu buttons readable */
body.mobile-nav-active .mobile-nav-action-btn {
  font-size: 0.94rem !important;
}

/* ------------------------------------------------------------
   Top navigation: no border line, lime active item
   ------------------------------------------------------------ */
.header,
.header-modern,
.header-modern.header-scrolled {
  border-bottom: none !important;
}

.header-modern .nav-link-custom.active,
.navmenu a.active {
  color: var(--elttec-lime) !important;
}

.header-modern .nav-link-custom.active::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
