/* Shared floating navigation for the public marketing pages. */
.site-header {
  position: sticky;
  top: 10px;
  z-index: 50;
  margin-bottom: -78px;
  padding-top: 10px;
  background: transparent;
  border: 0;
  backdrop-filter: none;
}

.nav-wrap {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  width: calc(100% - clamp(36px, 7vw, 112px));
  max-width: 1720px;
  min-height: 68px;
  margin-inline: auto;
}

.brand {
  justify-self: start;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear;
}
.brand img { width: 250px; height: 58px; }
header.is-brand-hidden :is(.brand, [data-scroll-brand]) {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-8px);
  transition: none;
}

.nav-links {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 9px 18px;
  border: 1px solid rgba(207, 224, 211, .86);
  border-radius: 999px;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 12px 34px rgba(10, 55, 31, .12), inset 0 1px rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(20px) saturate(1.25);
  backdrop-filter: blur(20px) saturate(1.25);
}

.nav-links a {
  white-space: nowrap;
  padding: 11px 12px;
  font-size: .9rem;
}

.nav-links .nav-actions { gap: 7px; }
.nav-links .nav-actions .btn { padding: 11px 15px; font-size: .88rem; white-space: nowrap; }
.nav-wrap > .nav-member-link {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 11px;
  border: 1px solid rgba(11, 74, 43, .18);
  border-radius: 999px;
  color: var(--green-900, #0b4a2b);
  background: rgba(255, 255, 255, .65);
  font-size: .74rem;
  font-weight: 750;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  transform: translateY(-50%);
  pointer-events: auto;
  transition: background .18s ease, border-color .18s ease;
}
.nav-wrap > .nav-member-link span + span {
  color: var(--green-800, #14683a);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.nav-wrap > .nav-member-link:hover {
  border-color: rgba(11, 74, 43, .38);
  background: #fff;
}

.language-toggle {
  min-width: 45px;
  min-height: 41px;
  padding: 9px 11px;
  border: 1px solid #cfe0d3;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  color: var(--green-900, #0b4a2b);
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
  transition: background .18s ease, transform .18s ease;
}

.language-toggle:hover { background: #eaf8ee; transform: translateY(-1px); }
.language-toggle:focus-visible, .mobile-toggle:focus-visible { outline: 3px solid rgba(24,164,71,.42); outline-offset: 3px; }
.legal-language-note { width: min(1100px, calc(100% - 40px)); margin: 92px auto 0; padding: 14px 18px; border: 1px solid #cfe0d3; border-radius: 14px; background: #f1faf3; color: #284c36; font-weight: 700; }
.legal-language-note[hidden] { display: none; }
.shell > header { display: flex; justify-content: space-between; align-items: center; gap: 18px; }

/* Keep existing request-consent controls readable in the compact dark forms. */
.services-contact-field label.consent-row,
.business-contact-section .business-form .field label.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: rgba(235, 241, 236, .72);
  font-size: .82rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
}
.services-contact-field .consent-row input[type="checkbox"],
.business-contact-section .business-form .consent-row input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin: 3px 0 0;
  padding: 0;
  accent-color: #28a64a;
}
.services-contact-field .consent-row a,
.business-contact-section .business-form .consent-row a { color: #fff; text-decoration: underline; }

@media (max-width: 1280px) {
  .site-header { margin-bottom: -76px; }
  .nav-wrap { grid-template-columns: minmax(0, 1fr) auto; width: calc(100% - 36px); min-height: 66px; }
  .brand img { width: min(220px, 58vw); height: 52px; }
  .hero-grid { padding-top: 144px; }
  .mobile-toggle { display: block; justify-self: end; margin: 0; border-color: #cfe0d3; background: rgba(255,255,255,.82); }
  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    justify-self: stretch;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
    padding: 12px;
    border-radius: 22px;
    background: rgba(255,255,255,.96);
  }
  .nav-links.open { display: flex; }
  .nav-links > a { padding: 12px 14px; }
  .nav-links .nav-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    margin-top: 6px;
    padding-top: 10px;
    border-top: 1px solid #e0ebe3;
  }
  .nav-links .nav-actions .btn { width: 100%; padding: 12px 16px; font-size: .94rem; }
  .nav-wrap > .nav-member-link {
    position: static;
    grid-column: 1 / -1;
    justify-self: end;
    width: auto;
    padding: 8px 10px;
    transform: none;
  }
  .language-toggle { width: 100%; }
}

@media (min-width: 1281px) {
  /* Give the floating pill a comfortable gap above the hero content. */
  .hero-grid { padding-top: clamp(160px, 18vh, 190px); }
}

@media (max-width: 480px) {
  .nav-wrap { width: calc(100% - 28px); }
  .brand img { width: min(190px, 55vw); height: 46px; }
  .mobile-toggle { width: 42px; height: 42px; }
}
