/* NUVIA — Inner-page navbar and footer parity with index.html (31 Oct 2026).
   Reuses the ACTUAL homepage's four-link nav and compact white footer.
   Scope prevents changes to About story motion or inner hero sections. */

/* Homepage desktop navbar geometry; retain each page's white/ink contrast
   controller so text remains readable over either sky or white content. */
@media (min-width:821px) {
  html body #nuvia-react-navigation {
    position: fixed !important;
    top: 24px !important;
    left: clamp(32px,8vw,120px) !important;
    right: auto !important;
    width: auto !important;
    max-width: calc(100vw - clamp(32px,8vw,120px) - 32px) !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
    pointer-events: none !important;
  }
  html body #nuvia-react-navigation .nv-nav {
    display:flex !important;
    width:auto !important;
    align-items:center !important;
    justify-content:flex-start !important;
    gap:0 !important;
    overflow:visible !important;
    pointer-events:auto !important;
  }
  html body #nuvia-react-navigation .nv-links {
    display:flex !important;
    flex:0 1 auto !important;
    flex-direction:row !important;
    align-items:center !important;
    gap:clamp(12px,1.15vw,20px) !important;
    width:auto !important;
    min-width:0 !important;
    overflow:visible !important;
  }
  html body #nuvia-react-navigation .nv-navitem {
    flex:0 0 auto !important;
    width:auto !important;
    margin:0 !important;
  }
  html body #nuvia-react-navigation .nv-navitem > button {
    min-height:40px !important;
    padding:6px 4px !important;
    border-radius:0 !important;
    background:transparent !important;
    font:600 14px/1.4 Inter,ui-sans-serif,system-ui,sans-serif !important;
  }
  html body #nuvia-react-navigation .nv-mobile-toggle,
  html body #nuvia-react-navigation .nv-header-brand {display:none !important}
  html body #nuvia-react-navigation .nv-chevron {width:13px !important;height:13px !important;margin-left:3px !important}
  html body #nuvia-react-navigation .nv-navitem > .nv-menu {
    position:absolute !important;
    top:100% !important;
    left:0 !important;
    right:auto !important;
    width:max-content !important;
    max-width:min(calc(100vw - 32px),1100px) !important;
    z-index:100 !important;
  }
}
/* Do not leave stale 'Pricing' controls in keyboard order or mobile drawers,
   even if a previously cached HTML document still contains them. */
#nuvia-react-navigation .nv-navitem--pricing {display:none!important}

/* The home footer is a compact standalone white chapter, followed by
   a separate panoramic video, NOT a video nested in the footer. */
footer#nv-site-footer {
  position:relative;
  z-index:5;
  isolation:isolate;
  display:block;
  width:100%;
  height:auto !important;
  min-height:0 !important;
  margin:0;
  padding:0;
  overflow:hidden;
  background:#fff;
  color:#171c17;
  font-family:Inter,Arial,sans-serif;
}
#nv-site-footer .nvsf-card {
  position:relative !important;
  display:flex !important;
  flex-direction:column !important;
  box-sizing:border-box !important;
  width:100% !important;
  max-width:1560px !important;
  height:auto !important;
  min-height:0 !important;
  margin:0 auto !important;
  padding:0 clamp(32px,5.4vw,100px) 30px !important;
  background:#fff !important;
}
#nv-site-footer .nvsf-card * {box-sizing:border-box}
#nv-site-footer .nvsf-top-rule {
  display:block;
  width:100%;
  height:1px;
  flex:0 0 1px;
  background:linear-gradient(90deg,#8A6A26 0%,#BE9A4A 30%,#EAD3A0 52%,#BE9A4A 76%,#8A6A26 100%) !important;
}
#nv-site-footer .nvsf-navigation {
  display:grid !important;
  grid-template-columns:repeat(4,minmax(0,1fr)) !important;
  gap:0 clamp(22px,4vw,70px) !important;
  width:100% !important;
  margin-top:clamp(38px,4vw,54px) !important;
}
#nv-site-footer .nvsf-column {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  min-width:0;
}
#nv-site-footer .nvsf-column h2 {
  margin:0 0 18px;
  color:#171c17;
  font:650 15px/1.35 Inter,Arial,sans-serif;
}
#nv-site-footer .nvsf-column > a {
  display:block;
  max-width:100%;
  margin:0 0 14px;
  color:#575e57;
  text-decoration:none;
  overflow-wrap:break-word;
  font:450 13px/1.45 Inter,Arial,sans-serif;
  transition:color .22s ease,transform .22s cubic-bezier(.22,.61,.36,1);
}
#nv-site-footer .nvsf-column > a:last-child {margin-bottom:0}
#nv-site-footer .nvsf-column > a:hover {color:#111911;transform:translateX(2px)}
#nv-site-footer .nvsf-column > a:focus-visible {outline:2px solid currentColor;outline-offset:3px}
#nv-site-footer .nvsf-bottom {
  margin-top:0 !important;
  padding-top:clamp(32px,3.5vw,46px) !important;
  text-align:center;
}
#nv-site-footer .nvsf-bottom p {margin:0;color:#667065;font:500 12px/1.4 Inter,Arial,sans-serif}

/* Match homepage's white-to-film blend: eliminates the dark hard seam. */
.footer-panorama {
  position:relative!important;
  isolation:isolate;
  display:block!important;
  width:100%!important;
  height:auto!important;
  min-height:0!important;
  aspect-ratio:1440 / 248!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
  visibility:visible!important;
}
/* Reserve the same intrinsic video height as the homepage BEFORE loading,
   so a late-loaded WebM/MP4 never shoves the page or breaks mobile scroll. */
.footer-panorama.is-ready,
.footer-panorama.nv-footer-film-error {
  height:auto!important;
  min-height:0!important;
  visibility:visible!important;
}
.footer-panorama:not(.is-ready) video {opacity:0!important}
.footer-panorama.is-ready video {opacity:1!important;transition:opacity .35s ease}
.footer-panorama video {
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  max-width:none!important;
  object-fit:cover!important;
  object-position:center center!important;
  pointer-events:none!important;
  -webkit-mask-image:linear-gradient(to bottom,transparent 0px,rgba(0,0,0,.16) 22px,rgba(0,0,0,.48) 62px,rgba(0,0,0,.82) 110px,#000 158px)!important;
  mask-image:linear-gradient(to bottom,transparent 0px,rgba(0,0,0,.16) 22px,rgba(0,0,0,.48) 62px,rgba(0,0,0,.82) 110px,#000 158px)!important;
  -webkit-mask-repeat:no-repeat;
  mask-repeat:no-repeat;
}
.footer-panorama.nv-footer-film-error {
  background:linear-gradient(120deg,#102a22 0%,#244b3d 48%,#142f26 100%)!important;
}
.footer-panorama.nv-footer-film-error video {display:none!important}

@media (min-width:701px) and (max-width:1100px) {
  #nv-site-footer .nvsf-card {padding-inline:clamp(32px,5.5vw,62px)!important}
  #nv-site-footer .nvsf-navigation {column-gap:26px!important}
  #nv-site-footer .nvsf-column h2 {font-size:14px;margin-bottom:13px}
  #nv-site-footer .nvsf-column > a {font-size:12px;margin-bottom:11px}
}
@media (min-width:701px) and (max-width:800px) {
  #nv-site-footer .nvsf-navigation {grid-template-columns:repeat(2,minmax(0,1fr))!important;row-gap:27px!important}
}
@media (max-width:700px) {
  #nv-site-footer .nvsf-card {padding:0 27px 24px!important}
  #nv-site-footer .nvsf-navigation {
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
    column-gap:27px!important;
    row-gap:25px!important;
    margin-top:32px!important;
  }
  #nv-site-footer .nvsf-column h2 {font-size:14px;margin-bottom:12px}
  #nv-site-footer .nvsf-column > a {
    font-size:12px;
    margin:0;
    padding:10px 0;
    line-height:1.3;
    min-height:36px;
  }
  #nv-site-footer .nvsf-bottom {padding-top:26px!important}
  #nv-site-footer .nvsf-bottom p {font-size:11px}
}
@media (max-width:500px) {
  #nv-site-footer .nvsf-card {padding:0 22px 22px!important}
  #nv-site-footer .nvsf-navigation {column-gap:20px!important;row-gap:22px!important;margin-top:26px!important}
  #nv-site-footer .nvsf-column h2 {font-size:13px;margin-bottom:10px}
  #nv-site-footer .nvsf-column > a {font-size:11px}
  #nv-site-footer .nvsf-bottom {padding-top:22px!important}
  #nv-site-footer .nvsf-bottom p {font-size:10px}
}
@media (prefers-reduced-motion:reduce) {
  #nv-site-footer .nvsf-column > a {transition:none}
  #nv-site-footer .nvsf-column > a:hover {transform:none}
}
