/* Final shared component consistency layer */

/* Shared floating navigation */
.site-header {
  position: fixed !important;
  top: 8px !important;
  left: 50% !important;
  width: min(1180px, calc(100% - 64px)) !important;
  max-width: 1180px !important;
  transform: translateX(-50%) !important;
  z-index: 1000 !important;
  background: rgba(250,250,248,1) !important;
  background-image: none !important;
  border: 0px solid rgba(23, 23, 23, .08) !important;
  border-radius: 999px !important;
  box-shadow: 0 10px 28px rgba(23, 23, 23, .06) !important;
  backdrop-filter: blur(16px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(16px) saturate(120%) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.site-header::before,
.site-header::after {
  content: none !important;
  display: none !important;
}

.site-header .nav-wrap,
.site-header .nav-inner,
.site-header .header-inner,
.site-header > .shell,
.site-header > .container {
  width: 100% !important;
  max-width: none !important;
  padding-inline: 18px !important;
  box-sizing: border-box !important;
}

.site-header nav,
.site-header .nav-links {
  display: flex;
  align-items: center;
}

.site-header a {
  color: rgba(23, 23, 23, .72) !important;
  text-shadow: none !important;
}

.site-header a:hover,
.site-header a:focus-visible,
.site-header a[aria-current="page"] {
  color: #171717 !important;
}

.site-header a[aria-current="page"] {
  background: rgba(255, 255, 255, .74) !important;
  border-radius: 999px !important;
  box-shadow: inset 0 0 0 1px rgba(23, 23, 23, 0) !important;
}

/* One consistent LinkedIn action across every page */
.site-header .nav-cta,
.site-header a[href*="linkedin.com"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border: 1px solid rgba(23, 23, 23, .10) !important;
  border-radius: 999px !important;
  background: transparent !important;
  background-image: none !important;
  color: rgba(23, 23, 23, .64) !important;
  box-shadow: none !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transition:
    color .2s ease,
    background-color .2s ease,
    border-color .2s ease,
    transform .2s ease !important;
}

.site-header .nav-cta:hover,
.site-header .nav-cta:focus-visible,
.site-header a[href*="linkedin.com"]:hover,
.site-header a[href*="linkedin.com"]:focus-visible {
  background: rgba(255, 255, 255, .72) !important;
  color: #171717 !important;
  border-color: rgba(23, 23, 23, .16) !important;
  transform: translateY(-1px) !important;
}

/* Shared containers */
.shell,
.container,
.wrap {
  width: min(1180px, calc(100% - 64px));
  max-width: 1180px;
  margin-inline: auto;
  box-sizing: border-box;
}

/* Shared footer alignment */
.site-footer .shell,
.site-footer .container,
footer .footer-inner {
  width: min(1180px, calc(100% - 64px));
  max-width: 1180px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.site-footer nav,
footer .footer-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.site-footer .footer-copy,
footer .footer-copy,
.site-footer small,
footer small {
  justify-self: end;
  text-align: right;
}

/* Shared dark section heading treatment */
.dark-section h2,
.section-dark h2,
#capabilities h2,
.capabilities h2,
#outcomes h2,
.outcomes h2,
.selected-outcomes h2 {
  color: #f7f7f5 !important;
}

.dark-section h2::after,
.section-dark h2::after,
#capabilities h2::after,
.capabilities h2::after,
#outcomes h2::after,
.outcomes h2::after,
.selected-outcomes h2::after {
  background: #d9ff55 !important;
}

/* Safer text and media alignment */
h1, h2, h3, p, li, a, span {
  overflow-wrap: break-word;
}

img, svg, video {
  max-width: 100%;
  height: auto;
}

@media (max-width: 900px) {
  .site-header {
  width: calc(100% - 24px) !important;
  top: 10px !important;
  border-radius: 24px !important;
}

.shell,
  .container,
  .wrap,
  .site-footer .shell,
  .site-footer .container,
  footer .footer-inner {
  width: calc(100% - 32px);
}

.site-footer .shell,
  .site-footer .container,
  footer .footer-inner {
  grid-template-columns: 1fr;
  justify-items: start;
}

.site-footer nav,
  footer .footer-nav {
  justify-content: flex-start;
}

.site-footer .footer-copy,
  footer .footer-copy,
  .site-footer small,
  footer small {
  justify-self: start;
  text-align: left;
}

}

@media (max-width: 640px) {
  .site-header {
  width: calc(100% - 20px) !important;
  border-radius: 20px !important;
}

.site-header .nav-cta,
  .site-header a[href*="linkedin.com"] {
  min-height: 36px !important;
  padding: 8px 12px !important;
}

}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .site-footer * {
  transition-duration: .01ms !important;
}

}

/* Contact → Footer spacing refinement */
#contact,
.contact-section {
  margin-bottom:0 !important;
  padding-bottom:0 !important;
}

#contact > *:last-child,
.contact-section > *:last-child,
.contact-card,
.contact-box {
  margin-bottom:0 !important;
}

.site-footer,
footer {
  margin-top:0 !important;
  padding-top:0 !important;
}

#contact + .site-footer,
#contact + footer,
.contact-section + .site-footer,
.contact-section + footer {
  margin-top:0 !important;
}

/* Password page - remove default input outline/boundary until interaction */
.password-page input[type="password"],
.password-overlay input[type="password"],
.password-form input[type="password"],
input.password-input {
  border-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  background: rgba(255,255,255,.96);
}

.password-page input[type="password"]:hover,
.password-overlay input[type="password"]:hover,
.password-form input[type="password"]:hover,
input.password-input:hover {
  border-color: rgba(23,23,23,.12) !important;
}

.password-page input[type="password"]:focus,
.password-overlay input[type="password"]:focus,
.password-form input[type="password"]:focus,
input.password-input:focus {
  border-color: rgba(23,23,23,.18) !important;
  box-shadow: 0 0 0 3px rgba(217,255,85,.18) !important;
}


/* Main navigation: flat by default, shadow only after scrolling */
.site-header {
  box-shadow: none !important;
  transition:
    box-shadow .24s ease,
    background-color .24s ease,
    border-color .24s ease !important;
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(0, 0, 0, .10) !important;
}

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


/* Exact nav shadow behaviour */

/* Flat at page load */
.site-header,
.site-header .nav-wrap,
.site-header .nav-inner,
.site-header .header-inner {
  box-shadow: none !important;
}

/* Shadow only after the page has moved */
.site-header.is-scrolled {
  box-shadow: none !important;
}

.site-header.is-scrolled .nav-wrap,
.site-header.is-scrolled .nav-inner,
.site-header.is-scrolled .header-inner {
  box-shadow:
    0 14px 34px rgba(0, 0, 0, .08),
    inset 0 1px 0 rgba(255, 255, 255, .72) !important;
}

/* Remove shadow immediately when returned to the top */
.site-header:not(.is-scrolled) .nav-wrap,
.site-header:not(.is-scrolled) .nav-inner,
.site-header:not(.is-scrolled) .header-inner {
  box-shadow: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .site-header,
  .site-header .nav-wrap,
  .site-header .nav-inner,
  .site-header .header-inner {
    transition: none !important;
  }
}
