/* Shared header, services menu, and footer. Loaded after page CSS. */
#nmw-header,
#nmw-footer,
#nmw-header *,
#nmw-footer * { box-sizing: border-box; }

#nmw-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2000;
  font-family: 'Manrope', system-ui, sans-serif;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  color: #1a1a1a;
}
#nmw-header a { text-decoration: none; }
#nmw-header__bar,
.nmw-header__bar {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  min-height: 68px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nmw-logo {
  justify-self: start;
  color: #111;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.nmw-logo span { color: #16a34a; }
.nmw-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.nmw-nav > a,
.nmw-drop__btn {
  color: #3a3a3a;
  font-size: 14px;
  font-weight: 600;
  background: none;
  border: 0;
  padding: 8px 0;
  cursor: pointer;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nmw-nav > a:hover,
.nmw-drop__btn:hover,
.nmw-nav > a[aria-current="page"],
.nmw-drop__btn[aria-current="page"] { color: #16a34a; }
.nmw-drop { position: relative; }
.nmw-drop__chev { width: 12px; height: 12px; transition: transform 0.2s ease; }
.nmw-drop__btn[aria-expanded="true"] .nmw-drop__chev { transform: rotate(180deg); }
.nmw-drop__panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-28%);
  width: min(520px, 72vw);
  background: #fff;
  color: #1a1a1a;
  border-radius: 16px;
  border: 1px solid #eceeed;
  box-shadow: 0 18px 50px rgba(16, 24, 16, 0.14);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  z-index: 5;
}
.nmw-drop__panel a {
  display: block;
  padding: 10px 12px;
  border-radius: 10px;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 600;
}
.nmw-drop__panel a:hover,
.nmw-drop__panel a[aria-current="page"] { background: #f3faf4; color: #15803d; }
.nmw-drop__panel a.nmw-drop__all { grid-column: 1 / -1; color: #15803d; }
.nmw-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.nmw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #111827;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
}
.nmw-btn:hover { border-color: #16a34a; color: #15803d; }
.nmw-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}
.nmw-burger span {
  display: block;
  height: 2px;
  width: 22px;
  background: #1a1a1a;
  border-radius: 2px;
}
#nmw-mobile {
  display: none;
  background: #fff;
  border-top: 1px solid #f0f0f0;
  max-height: calc(100vh - 68px);
  overflow: auto;
  padding: 8px 20px 28px;
}
#nmw-mobile a,
#nmw-mobile summary {
  display: flex;
  align-items: center;
  min-height: 48px;
  color: #1a1a1a;
  font-size: 16px;
  font-weight: 650;
  font-weight: 600;
  border-bottom: 1px solid #f3f3f3;
  font-family: inherit;
}
#nmw-mobile details { border-bottom: 1px solid #f3f3f3; }
#nmw-mobile summary { cursor: pointer; list-style: none; justify-content: space-between; }
#nmw-mobile summary::-webkit-details-marker { display: none; }
#nmw-mobile summary::after { content: "+"; color: #16a34a; font-size: 20px; font-weight: 500; }
#nmw-mobile details[open] summary::after { content: "\2212"; }
#nmw-mobile details a { padding-left: 8px; font-size: 15px; color: #333; }
#nmw-mobile .nmw-mobile-cta {
  display: flex;
  gap: 10px;
  padding-top: 16px;
}
#nmw-mobile .nmw-mobile-cta a {
  flex: 1;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  background: #111;
  color: #fff;
  min-height: 48px;
}
#nmw-header a:focus-visible,
#nmw-header button:focus-visible,
#nmw-footer a:focus-visible {
  outline: 3px solid #15803d;
  outline-offset: 3px;
}

/* Homepage and Centennial: white type over the photo until the page scrolls. */
#nmw-header.nmw-header--overlay:not(.is-solid) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-nav > a,
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-drop__btn,
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-logo { color: #fff; }
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-nav > a:hover,
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-drop__btn:hover,
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-nav > a[aria-current="page"],
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-drop__btn[aria-current="page"] { color: #86efac; }
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-btn {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
}
#nmw-header.nmw-header--overlay:not(.is-solid) .nmw-burger span { background: #fff; }
@media (min-width: 1041px) {
  #nmw-header.nmw-header--overlay:not(.is-solid) .nmw-logo { visibility: hidden; }
}

/* Hide the React header and the light React footer once this chrome is present. */
#nmw-header ~ #root nav,
#nmw-header ~ #root footer { display: none !important; }

#nmw-footer {
  background: #0f1a12;
  color: #d5ddd6;
  font-family: 'Manrope', system-ui, sans-serif;
  padding: 48px 28px 22px;
}
#nmw-footer a { color: #d5ddd6 !important; text-decoration: none; }
#nmw-footer a:hover { color: #fff !important; }
.nmw-footer__grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 32px;
}
.nmw-footer__brand {
  color: #fff !important;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.nmw-footer__blurb {
  color: #9eada3 !important;
  font-size: 14px;
  line-height: 1.7;
  margin: 12px 0 16px;
  max-width: 280px;
}
.nmw-footer__contact a { display: block; margin: 4px 0; font-size: 14px; font-weight: 600; }
.nmw-footer__h {
  color: #fff !important;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.nmw-footer__col a { display: block; font-size: 14px; line-height: 1.45; padding: 4px 0; }
.nmw-footer__base {
  max-width: 1100px;
  margin: 28px auto 0;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: #7f8f84 !important;
  font-size: 12px;
}

.nmw-photo-slot {
  min-height: 280px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 20%, rgba(22, 163, 74, 0.16), transparent 42%),
    linear-gradient(165deg, #f7f8f6, #e5eee7);
  border: 1px solid #e1e8e2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
}
.nmw-photo-slot__label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #15803d;
}
.nmw-photo-slot__hint { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: #3d4a40; }

@media (min-width: 1041px) {
  #nmw-mobile { display: none !important; }
}
@media (max-width: 1040px) {
  .nmw-header__bar { grid-template-columns: 1fr auto; }
  .nmw-nav,
  .nmw-btn--portal { display: none !important; }
  .nmw-burger { display: inline-flex; }
  #nmw-mobile.is-open { display: block; }
  #nmw-header.nmw-header--overlay:not(.is-solid) .nmw-logo { visibility: visible; }
  header#nmw-header nav.nmw-nav > div {
    display: block !important;
    justify-content: flex-start !important;
  }
}
@media (max-width: 720px) {
  .nmw-footer__grid { grid-template-columns: 1fr 1fr; }
  .nmw-header__bar { padding: 0 16px; }
}
@media (max-width: 520px) {
  .nmw-footer__grid { grid-template-columns: 1fr; }
  .nmw-btn--quote { padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .nmw-drop__chev { transition: none; }
}
body.nmw-lock { overflow: hidden; }
