/* Shared header mark and compact footer for Nivado Digital. */
.site-header .brand-link { min-width: 46px; min-height: 44px; }
.site-header .brand-link .header-n-mark {
  display: block;
  width: 46px;
  height: 40px;
  object-fit: contain;
  transform: none;
}

/* Keep the navigation responsive without repainting it on every scroll event. */
.site-header {
  transition: background-color .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 25px rgba(0, 0, 0, .12); }
/* Faster, subtler reveals reduce the impression of content arriving late. */
.fade-in { transition: opacity .55s ease, transform .55s cubic-bezier(.22,.61,.36,1); }
.fade-in:not(.is-visible) { transform: translateY(14px); }
@media (max-width: 900px) {
  .site-header .mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity .24s ease, transform .24s cubic-bezier(.2,.8,.2,1), visibility 0s linear .24s;
  }
  .site-header .mobile-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
    transition-delay: 0s;
  }
}
@media (prefers-reduced-motion: reduce) {
  .site-header, .site-header .mobile-nav, .fade-in { transition: none; }
  .fade-in:not(.is-visible) { opacity: 1; transform: none; }
}

.niv-footer {
  background: #0b1015;
  border-top: 1px solid rgba(255, 255, 255, .045);
  color: #c5ced8;
}
.niv-footer-inner {
  width: min(calc(100% - 100px), 1330px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 185px minmax(165px, 240px) minmax(330px, 1fr) 120px;
  gap: clamp(22px, 3vw, 52px);
  align-items: start;
  padding: 56px 0 40px;
}
.niv-footer-brand { min-width: 0; }
.niv-footer-brand a {
  display: block;
  width: 100%;
  max-width: 185px;
  line-height: 0;
}
.niv-footer-brand img { display: block; width: 100%; height: auto; }
.niv-footer-description {
  margin: 0;
  max-width: 245px;
  color: #85919d;
  font-size: 11px;
  line-height: 1.65;
}
.niv-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 13px 23px;
  padding-top: 5px;
}
.niv-footer-nav a {
  color: #b5bdc7;
  font-size: 12px;
  white-space: nowrap;
  transition: color .2s ease;
}
.niv-footer-nav a:hover,
.niv-footer-nav a:focus-visible,
.niv-footer-connect a:hover,
.niv-footer-connect a:focus-visible,
.niv-footer-brand a:hover,
.niv-footer-brand a:focus-visible { color: #8acfff; }
.niv-footer-connect {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.niv-footer-connect strong {
  color: #55b5e9;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .025em;
  white-space: nowrap;
}
.niv-footer-connect a {
  color: #64b7e9;
  font-size: 11px;
}
.niv-footer-legal {
  padding: 0 18px 24px;
  color: #5f6974;
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
}
.niv-footer-legal .niv-footer-company { margin-left: 12px; }

@media (max-width: 1080px) {
  .niv-footer-inner {
    grid-template-columns: 185px minmax(190px, 1fr) auto;
    row-gap: 26px;
  }
  .niv-footer-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    padding-top: 0;
  }
}
@media (max-width: 650px) {
  .site-header .brand-link { min-width: 44px; min-height: 44px; }
  .site-header .brand-link .header-n-mark { width: 42px; height: 36px; }
  .niv-footer-inner {
    width: calc(100% - 36px);
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 21px 18px;
    padding: 38px 0 26px;
  }
  .niv-footer-brand { grid-column: 1; grid-row: 1; }
  .niv-footer-connect { grid-column: 2; grid-row: 1; align-items: flex-end; }
  .niv-footer-description { grid-column: 1 / -1; grid-row: 2; max-width: 330px; }
  .niv-footer-nav {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-content: flex-start;
    gap: 7px 22px;
  }
  .niv-footer-nav a { display: inline-flex; align-items: center; min-height: 34px; }
  .niv-footer-legal { padding: 0 18px 24px; }
  .niv-footer-legal .niv-footer-company { display: block; margin: 3px 0 0; }
}
