.nah-guide {
  --nah-ink: #243842;
  --nah-warm: #f8f3eb;
  --nah-selected: #eaf2f4;
  --nah-rule: #bbc7c9;
  box-sizing: border-box;
  width: min(calc(100% - 2rem), 68rem);
  margin: clamp(2rem, 5vw, 4rem) auto;
  padding: clamp(1.15rem, 3vw, 2.5rem);
  color: var(--nah-ink);
  background: var(--nah-warm);
  border-radius: 1rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}
.nah-guide *, .nah-guide *::before, .nah-guide *::after { box-sizing: border-box; }
.nah-guide :is(h2, h3, h4) {
  color: var(--nah-ink);
  font-family: inherit;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  text-wrap: balance;
  margin: 0 0 .5rem;
}
.nah-guide h2 { font-size: clamp(1.55rem, 3.2vw, 2.3rem); }
.nah-guide h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.nah-guide p { margin: 0 0 .85rem; max-width: 72ch; }
.nah-guide figure { margin: .75rem 0; }
.nah-guide img { display: block; max-width: 100%; height: auto; border-radius: .5rem; }
.nah-guide-card img[src*="home-lighting.svg"], .nah-guide-card img[src*="merry-bright.svg"] { width: 100%; }
.nah-guide figcaption { margin: .4rem 0; font-size: .925rem; }
.nah-guide .nah-guide-proof img { width: auto; max-height: 15rem; }
.nah-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1rem;
  margin-block: 1.1rem;
}
.nah-guide-card {
  min-width: 0;
  border: 1px solid var(--nah-rule);
  border-radius: .7rem;
  padding: clamp(1rem, 2.15vw, 1.5rem);
  background: white;
}
.nah-guide-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem; }
.nah-guide-options {
  display: grid;
  gap: .35rem;
  width: min(100%, 31rem);
  margin-block: .85rem 1.35rem;
}
.nah-guide-options label { font-weight: 650; }
.nah-guide-options select {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 0 0 .65rem;
  padding: .5rem;
  color: var(--nah-ink);
  background: white;
  border: 1px solid #687d83;
  border-radius: .35rem;
  font: inherit;
}
.nah-guide-options button { justify-self: start; }
.nah-project-action { margin: .7rem 0 .25rem; }
.nah-project-action .nah-project-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: .2em;
  font-weight: 650;
  white-space: normal;
  overflow-wrap: break-word;
}
body.home main h1.nah-home-heading {
  text-transform: none;
  text-wrap: balance;
  max-width: 23ch;
  line-height: 1.08;
}
body.home main :is(.nah-hero-detail, .nah-hero-quick) {
  min-height: 44px;
  white-space: normal;
  text-align: center;
}
.nah-guide a { color: #234c61; text-underline-offset: .18em; }
.nah-guide .nah-guide-button, .nah-gallery-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: .65rem 1.1rem;
  border: 2px solid #243842;
  border-radius: .45rem;
  background: #243842;
  color: white;
  font: inherit;
  font-weight: 650;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.nah-guide .nah-guide-button.is-secondary, .nah-gallery-toggle { color: #243842; background: white; }
.nah-guide .nah-guide-button:hover, .nah-gallery-toggle:hover { color: white; background: #324d5b; }
.nah-guide :is(button, a, input, select, textarea, summary):focus-visible,
.nah-nav-link:focus-visible, .nah-gallery-toggle:focus-visible, .nah-project-link:focus-visible,
.nah-hero-detail:focus-visible, .nah-hero-quick:focus-visible, #call-to-action .nah-bar-estimate:focus-visible {
  outline: 3px solid #8b5a29;
  outline-offset: 3px;
}
.nah-guide [aria-pressed="true"],
.nah-guide label:has(input:checked) {
  border-color: #365568;
  box-shadow: inset 0 0 0 1px #365568;
  background: var(--nah-selected);
  color: var(--nah-ink);
}
.nah-gallery-toggle { margin-top: .5rem; font-size: .9rem; }
.nah-guide [id], .nah-guide:target { scroll-margin-top: 6rem; }
@media (max-width: 767px) {
  /* Elementor's existing scroll handler owns display and the 500px reveal. */
  body #call-to-action.nah-three-actions {
    flex-direction: row;
    flex-wrap: nowrap;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .35rem !important;
    padding-inline: max(.45rem, env(safe-area-inset-left)) max(.45rem, env(safe-area-inset-right)) !important;
    padding-bottom: max(.4rem, env(safe-area-inset-bottom)) !important;
  }
  body #call-to-action.nah-three-actions > a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    min-height: 44px;
    padding-inline: .25rem !important;
    white-space: normal;
    line-height: 1.15;
    text-align: center;
  }
  #call-to-action[data-nah-suppressed] { visibility: hidden !important; pointer-events: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  .nah-guide *, .nah-guide *::before, .nah-guide *::after,
  .nah-gallery-toggle, .nah-bar-estimate { animation: none !important; transition: none !important; }
  .work-image-gallery .swiper-wrapper { transition-duration: 0ms !important; }
}
