/* Floating island navigation. Loaded last so the page content can begin at the top
   and flow underneath the fixed, translucent header without reserving header space. */
:root {
  --site-header-height: 84px;
}

html {
  scroll-padding-top: 6.25rem;
}

body {
  padding-top: 0 !important;
}

.site-header {
  position: fixed;
  inset: .75rem auto auto 50%;
  transform: translateX(-50%);
  z-index: 1000;
  width: max-content;
  max-width: calc(100vw - 1.5rem);
  margin: 0;
  border: 1px solid rgb(26 59 40 / 15%);
  border-radius: 999px;
  background: rgb(247 245 240 / 90%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 10px 34px rgb(26 59 40 / 16%);
  overflow: visible;
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: max-content;
  max-width: 100%;
  min-height: 70px;
  padding: 0 .8rem 0 .65rem;
  gap: .7rem;
}

.site-header__brand {
  width: 128px;
  height: 64px;
}

.site-header__brand img {
  width: 120px;
  height: 62px;
  object-fit: contain;
}

.site-header__actions {
  gap: .7rem;
}

.site-header__links {
  gap: .9rem;
}

.site-header__links a {
  white-space: nowrap;
  font-size: .86rem;
}

.site-header__cta {
  min-height: 40px;
  padding: .65rem .95rem;
  font-size: .84rem;
  white-space: nowrap;
}

/* The hero's background/image now begins at viewport top, beneath the island. */
.home-page #home {
  height: auto !important;
  min-height: 100vh !important;
  min-height: 100svh !important;
}

/* Keep breadcrumb text clear of the floating island without adding a global page gap. */
.blog-breadcrumb,
.ex-breadcrumb,
.process-breadcrumb,
.grade-breadcrumbs {
  padding-top: 5.5rem !important;
}

.origin-breadcrumbs {
  margin-top: 5.5rem !important;
}

@media (max-width: 900px) {
  :root { --site-header-height: 76px; }

  .site-header {
    inset: .6rem auto auto 50%;
    width: max-content;
    max-width: calc(100vw - 1rem);
    border-radius: 24px;
  }

  .site-header__inner {
    width: max-content;
    max-width: 100%;
    min-height: 64px;
    padding: 0 .65rem;
    gap: .45rem;
  }

  .site-header__brand {
    width: 108px;
    height: 60px;
  }

  .site-header__brand img {
    width: 102px;
    height: 58px;
  }

  .site-header__links { display: none; }
  .site-header__actions { gap: .4rem; }

  .site-header__cta {
    min-height: 38px;
    padding: .58rem .78rem;
    font-size: .8rem;
  }

  .site-header__toggle {
    display: inline-flex;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .site-header__mobile {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    background: rgb(247 245 240 / 94%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    backdrop-filter: blur(18px) saturate(140%);
    border-radius: 0 0 22px 22px;
  }

  .site-header__mobile[data-open="true"] {
    display: block;
    border-top: 1px solid var(--makhanley-sand);
  }

  .site-header__mobile-links {
    gap: 0;
  }

  .home-page #home {
    height: auto !important;
    min-height: 100vh !important;
    min-height: 100svh !important;
  }
}

@media (max-width: 340px) {
  .site-header__brand { width: 80px; }
  .site-header__brand img { width: 76px; }
  .site-header__cta { padding-inline: .5rem; font-size: .72rem; }
  .site-header__toggle { flex-basis: 36px; width: 36px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  .site-header { transition: none; }
}


/* Homepage hero spacing below the floating island */
.home-page #home > .z-10 {
  transform: translateY(1.25rem);
}

/* Page heads that no longer display visible breadcrumb rows */
.export-main .ex-hero {
  padding-top: 7rem;
}
.blog-page .blog-hero {
  padding-top: 7rem;
}

/* The bulk page begins at the viewport top beneath the floating island. */
.bulk-page #contact-information {
  padding-top: clamp(7rem, 9vw, 8rem) !important;
}

@media (max-width: 900px) {
  .bulk-page #contact-information {
    padding-top: 6rem !important;
  }
}

@media (max-width: 620px) {
  .home-page #home > .z-10 {
    transform: translateY(.75rem);
  }
  .export-main .ex-hero {
    padding-top: 6rem;
  }
  .blog-page .blog-hero {
    padding-top: 6rem;
  }
  .bulk-page #contact-information {
    padding-top: 5.5rem !important;
  }
}
