/* Final cross-page navigation interaction and footer system. */
html body #nav.hl-lean-nav {
  position: fixed !important;
  inset: 0 0 auto !important;
  z-index: 300 !important;
  width: 100% !important;
  height: 82px !important;
  min-height: 82px !important;
  padding: 0 clamp(22px, 5vw, 76px) !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  overflow: visible !important;
  border-bottom: 1px solid rgba(238, 231, 218, .12) !important;
  background: rgba(23, 27, 24, .88) !important;
  -webkit-backdrop-filter: blur(10px) !important;
  backdrop-filter: blur(10px) !important;
}
#nav,
#nav *,
#nav a,
#nav button {
  -webkit-tap-highlight-color: transparent !important;
  tap-highlight-color: transparent !important;
}
#nav .hl-lean-nav-links a::after {
  display: none !important;
  content: none !important;
}
#nav .hl-lean-nav-links a:active {
  background: transparent !important;
  color: #fff !important;
}

/* Approved forest treatment for the Ray Tozan profile section. */
html body #why-headland-clean .headland-ray-final {
  background: #304b38 !important;
  background-color: #304b38 !important;
  color: #f1eadf !important;
}

/* One footer label and one desktop logo lockup on every primary page. */
html body #site-footer .footer-simple-address::before {
  content: "Find us at" !important;
  display: block !important;
  margin: 0 0 6px !important;
  color: rgba(233, 223, 207, .62) !important;
  font: 600 .62rem/1 "Barlow", Arial, sans-serif !important;
  letter-spacing: .14em !important;
  text-transform: uppercase !important;
}

@media (min-width: 821px) {
  html body #site-footer .footer-brand-stack {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body #site-footer .footer-wordmark {
    width: auto !important;
    display: inline-block !important;
    font-size: 1.7rem !important;
    letter-spacing: .04em !important;
  }
  html body #site-footer .footer-sub-wordmark {
    width: 100% !important;
    font-size: .52rem !important;
    letter-spacing: 0 !important;
  }
}

/* One consistent closing CTA image band on every primary page. */
html body > section#photo-cta {
  position: relative !important;
  width: 100% !important;
  height: clamp(430px, 36vw, 560px) !important;
  min-height: 0 !important;
  max-height: 560px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
html body > section#photo-cta > img.photo-cta-img,
html body > section#photo-cta > .photo-cta-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
}
html body > section#photo-cta > img.photo-cta-img {
  object-fit: cover !important;
}

html body #site-footer {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(233, 223, 207, .1) !important;
  background: #202522 !important;
  color: #e9dfcf !important;
}
html body #site-footer .footer-simple-inner {
  width: calc(100% - clamp(44px, 10vw, 152px)) !important;
  max-width: 1320px !important;
  margin: 0 auto !important;
  padding: 48px 0 28px !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  grid-template-areas: "brand address links" "bottom bottom bottom" !important;
  align-items: center !important;
  gap: 0 40px !important;
}
html body #site-footer .footer-brand-stack {
  grid-area: brand !important;
  justify-self: start !important;
}
html body #site-footer .footer-simple-address {
  grid-area: address !important;
  justify-self: center !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  color: rgba(233, 223, 207, .72) !important;
  font: 400 .76rem/1.5 "Barlow Condensed", Arial, sans-serif !important;
  letter-spacing: .11em !important;
  text-align: center !important;
  text-transform: uppercase !important;
}
html body #site-footer .footer-address-secondary {
  margin-top: 3px !important;
  color: rgba(233, 223, 207, .58) !important;
}
html body #site-footer .footer-simple-links {
  grid-area: links !important;
  justify-self: end !important;
  margin: 0 !important;
  display: flex !important;
  gap: 10px !important;
}
html body #site-footer .footer-simple-links a {
  width: 40px !important;
  height: 40px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  place-items: center !important;
  border: 1px solid rgba(233, 223, 207, .3) !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: rgba(233, 223, 207, .82) !important;
}
html body #site-footer .footer-simple-links svg {
  width: 17px !important;
  height: 17px !important;
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.55 !important;
}
html body #site-footer .footer-simple-bottom {
  grid-area: bottom !important;
  width: 100% !important;
  margin: 34px 0 0 !important;
  padding: 18px 0 0 !important;
  display: grid !important;
  grid-template-columns: 1fr auto 1fr !important;
  align-items: center !important;
  gap: 24px !important;
  border-top: 1px solid rgba(233, 223, 207, .12) !important;
  color: rgba(233, 223, 207, .48) !important;
  font: 400 .66rem/1.4 "Barlow Condensed", Arial, sans-serif !important;
  letter-spacing: .08em !important;
  text-transform: uppercase !important;
}
html body #site-footer .footer-simple-bottom > span:nth-child(1) { justify-self: start !important; text-align: left !important; }
html body #site-footer .footer-simple-bottom > span:nth-child(2) { justify-self: center !important; text-align: center !important; }
html body #site-footer .footer-simple-bottom > span:nth-child(3) { justify-self: end !important; text-align: right !important; }

@media (max-width: 820px) {
  /* Mobile navigation: one grid, shared by all three pages. */
  html body #nav.hl-lean-nav {
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    padding: 0 20px !important;
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) auto !important;
    column-gap: 9px !important;
    align-items: center !important;
  }
  html body #nav.hl-lean-nav .hl-nav-logo {
    display: inline-flex !important;
    grid-column: 1 !important;
    width: 86px !important;
    min-width: 86px !important;
  }
  html body #nav.hl-lean-nav .hl-nav-logo-main {
    font-size: 1.28rem !important;
  }
  html body #nav.hl-lean-nav .hl-nav-logo-sub {
    font-size: .42rem !important;
  }
  html body #nav.hl-lean-nav .hl-nav-right-wrap {
    display: contents !important;
  }
  html body #nav.hl-lean-nav .hl-lean-nav-links {
    grid-column: 2 !important;
    width: 100% !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: clamp(9px, 2.4vw, 14px) !important;
    overflow: visible !important;
  }
  html body #nav.hl-lean-nav .hl-lean-nav-links a {
    max-width: none !important;
    padding: 14px 0 !important;
    overflow: visible !important;
    font-size: clamp(.58rem, 1.75vw, .67rem) !important;
    letter-spacing: .025em !important;
    text-overflow: clip !important;
  }
  html body #nav.hl-lean-nav .nav-right {
    grid-column: 3 !important;
    margin-left: 0 !important;
  }
  html body #nav.hl-lean-nav .hl-lean-nav-cta {
    padding: 9px clamp(11px, 2.7vw, 15px) !important;
    font-size: clamp(.59rem, 1.8vw, .67rem) !important;
    letter-spacing: .035em !important;
  }

  /* Remove the light one-pixel seam beneath mobile service photographs. */
  html body.headland-home #services .svc-card-img-wrap {
    line-height: 0 !important;
    border: 0 !important;
    background: #202522 !important;
  }
  html body.headland-home #services .svc-card-img {
    display: block !important;
    height: calc(100% + 2px) !important;
    margin-bottom: -2px !important;
    border: 0 !important;
    vertical-align: top !important;
  }

  /* Why Headland mobile: photograph, then a separate cream heading panel. */
  html body #why-headland-clean .wh-hero-split {
    display: block !important;
    min-height: 0 !important;
  }
  html body #why-headland-clean .wh-hero-split .wh-hero {
    display: block !important;
    position: relative !important;
    width: 100% !important;
    height: clamp(290px, 76vw, 390px) !important;
    min-height: 0 !important;
    max-height: 390px !important;
    overflow: hidden !important;
  }
  html body #why-headland-clean .wh-hero-split .wh-hero > img {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: 50% 36% !important;
    filter: grayscale(100%) !important;
  }
  html body #why-headland-clean .wh-hero-overlay,
  html body #why-headland-clean .wh-hero-content {
    display: none !important;
  }
  html body #why-headland-clean #wh-heading-panel {
    display: flex !important;
    min-height: clamp(410px, 108vw, 500px) !important;
    padding: 56px 22px 60px !important;
    box-sizing: border-box !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: #efe5d3 !important;
    text-align: center !important;
  }
  html body #why-headland-clean #wh-heading-panel p {
    width: min(100%, 11.25ch) !important;
    margin: 0 auto !important;
    color: #232720 !important;
    font-family: "Barlow Condensed", Arial, sans-serif !important;
    font-size: clamp(2.7rem, 11.2vw, 3.35rem) !important;
    font-weight: 700 !important;
    line-height: .92 !important;
    letter-spacing: .005em !important;
    text-transform: uppercase !important;
    text-wrap: balance !important;
  }
  html body #why-headland-clean #wh-heading-panel .wh-heading-panel-cta {
    display: inline-flex !important;
    width: min(82vw, 310px) !important;
    min-height: 46px !important;
    margin-top: 30px !important;
    padding: 13px 18px !important;
    box-sizing: border-box !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid #232720 !important;
    border-radius: 999px !important;
    background: transparent !important;
    color: #232720 !important;
    font: 600 .66rem/1.15 "Barlow", Arial, sans-serif !important;
    letter-spacing: .105em !important;
    text-align: center !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
  }

  /* A compact two-by-two Headland Standard grid on mobile. */
  html body #why-headland-clean #headland-standard {
    padding: 58px 16px 64px !important;
  }
  html body #why-headland-clean #headland-standard h2 {
    margin: 0 auto 28px !important;
    font-size: clamp(2.65rem, 11vw, 3.35rem) !important;
    text-align: center !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 1px !important;
    border: 0 !important;
    background: rgba(241, 234, 223, .18) !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__card {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    aspect-ratio: 1 / 1 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    border: 0 !important;
    background: #2b4232 !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__card::before {
    margin: 0 0 auto !important;
    font-size: clamp(2.4rem, 11vw, 3.15rem) !important;
    line-height: 1 !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__summary-row {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    display: flex !important;
    flex: 1 1 auto !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__card h3 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    font-size: clamp(1.16rem, 5.25vw, 1.48rem) !important;
    line-height: .94 !important;
    gap: 6px !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__card h3::after {
    margin-top: 1px !important;
    font-size: 1.15rem !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__summary {
    position: absolute !important;
    inset: 0 !important;
    z-index: 3 !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #24382b !important;
    color: rgba(241, 234, 223, .88) !important;
    font-size: clamp(.69rem, 2.8vw, .82rem) !important;
    line-height: 1.38 !important;
    text-align: left !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
  html body #why-headland-clean #headland-standard .hl-standard-final__card.is-open .hl-standard-final__summary {
    max-height: none !important;
    margin: 0 !important;
    opacity: 1 !important;
  }

  /* Balance the Ray profile heading with the preceding This is Headland section. */
  html body #why-headland-clean #ray .headland-ray-final__copy h2 {
    width: 100% !important;
    max-width: none !important;
    margin: 0 0 .75rem !important;
    font-size: clamp(2rem, 8.4vw, 2.45rem) !important;
    line-height: .92 !important;
    letter-spacing: -.025em !important;
  }

  html body > section#photo-cta {
    height: clamp(360px, 88vw, 450px) !important;
    max-height: 450px !important;
  }
  html body #site-footer .footer-simple-inner {
    width: calc(100% - 40px) !important;
    padding: 38px 0 22px !important;
    grid-template-columns: 1fr auto !important;
    grid-template-areas: "brand brand" "address links" "bottom bottom" !important;
    gap: 24px 16px !important;
  }
  html body #site-footer .footer-brand-stack,
  html body #site-footer .footer-simple-address {
    justify-self: start !important;
    align-items: flex-start !important;
    text-align: left !important;
  }
  html body #site-footer .footer-brand-stack {
    width: max-content !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }
  html body #site-footer .footer-wordmark {
    width: auto !important;
    display: inline-block !important;
    margin: 0 !important;
    color: #e9dfcf !important;
    font-family: "Barlow Condensed", Arial, sans-serif !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    line-height: .95 !important;
    letter-spacing: .035em !important;
    text-align: left !important;
  }
  html body #site-footer .footer-sub-wordmark {
    width: 100% !important;
    margin: 5px 0 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: rgba(233, 223, 207, .82) !important;
    font-family: "Barlow Condensed", Arial, sans-serif !important;
    font-size: .58rem !important;
    font-weight: 500 !important;
    line-height: 1 !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
  }
  html body #site-footer .footer-simple-address {
    font-size: .85rem !important;
  }
  html body #site-footer .footer-simple-links { align-self: start !important; }
  html body #site-footer .footer-simple-bottom {
    margin-top: 0 !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px 18px !important;
  }
  html body #site-footer .footer-simple-bottom > span:nth-child(1) {
    grid-column: 1 / -1 !important;
    justify-self: start !important;
  }
  html body #site-footer .footer-simple-bottom > span:nth-child(2) { grid-column: 1 !important; justify-self: start !important; }
  html body #site-footer .footer-simple-bottom > span:nth-child(3) { grid-column: 2 !important; justify-self: end !important; }
}

/* How It Works carries a legacy body ID. Keep its final shared components canonical. */
html body#headland-hiw-final #site-footer .footer-brand-stack {
  width: max-content !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  display: inline-flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
}
html body#headland-hiw-final #site-footer .footer-wordmark {
  width: auto !important;
  display: inline-block !important;
  margin: 0 !important;
  color: #e9dfcf !important;
  font-family: "Barlow Condensed", Arial, sans-serif !important;
  font-size: 1.7rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: .04em !important;
  text-align: left !important;
}
html body#headland-hiw-final #site-footer .footer-sub-wordmark {
  width: 100% !important;
  margin: 3px 0 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: #e9dfcf !important;
  font-family: "Barlow Condensed", Arial, sans-serif !important;
  font-size: .52rem !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
}

@media (max-width: 820px) {
  html body#headland-hiw-final #nav.hl-lean-nav {
    position: fixed !important;
    inset: 0 0 auto !important;
    z-index: 300 !important;
    width: 100% !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    margin: 0 !important;
    padding: 0 20px !important;
    display: grid !important;
    grid-template-columns: 86px minmax(0, 1fr) auto !important;
    column-gap: 9px !important;
    align-items: center !important;
    overflow: visible !important;
  }
  html body#headland-hiw-final #nav.hl-lean-nav .hl-nav-logo {
    grid-column: 1 !important;
    width: 86px !important;
    min-width: 86px !important;
    display: inline-flex !important;
  }
  html body#headland-hiw-final #nav.hl-lean-nav .hl-nav-right-wrap {
    display: contents !important;
  }
  html body#headland-hiw-final #nav.hl-lean-nav .hl-lean-nav-links {
    grid-column: 2 !important;
    width: 100% !important;
    justify-content: center !important;
  }
  html body#headland-hiw-final #nav.hl-lean-nav .nav-right {
    grid-column: 3 !important;
    margin-left: 0 !important;
  }
  html body#headland-hiw-final #site-footer .footer-wordmark {
    font-size: 2rem !important;
    line-height: .95 !important;
    letter-spacing: .035em !important;
  }
  html body#headland-hiw-final #site-footer .footer-sub-wordmark {
    margin-top: 5px !important;
    font-size: .58rem !important;
  }
}
