/* RepairHub Interaction Recovery v14.1
   Restores pointer interaction and gives dropdowns a no-JavaScript fallback. */

/* Decorative hero layers must never block links/buttons. */
.hero::before,
.hero::after,
.hero-photo,
.hero-photo::before,
.hero-photo::after,
.hero-shade,
.hero-bg,
.hero-overlay,
[class*="hero"]::before,
[class*="hero"]::after {
  pointer-events: none !important;
}

/* Actual interactive hero content stays above all decorative layers. */
.hero > .wrap,
.hero > .container,
.hero-content,
.hero-copy,
.hero .actions,
.hero .btn,
.status-card {
  position: relative;
  z-index: 20;
  pointer-events: auto !important;
}

/* Repair any inherited pointer-events rules. */
a,
button,
input,
select,
textarea,
summary,
label {
  pointer-events: auto;
}

.rh-header,
.rh-nav,
.rh-nav-group,
.rh-account {
  pointer-events: auto !important;
}

/* Dropdowns work with hover/focus even before JavaScript loads. */
@media (min-width: 951px) {
  .rh-nav-group:hover > .rh-dropdown,
  .rh-nav-group:focus-within > .rh-dropdown {
    display: block;
  }

  .rh-nav-group:hover > .rh-mega,
  .rh-nav-group:focus-within > .rh-mega {
    display: grid;
  }
}

/* Ensure menus sit above hero and cannot be clipped. */
.rh-header {
  overflow: visible !important;
  isolation: isolate;
}

.rh-nav,
.rh-nav-group {
  overflow: visible !important;
}

.rh-dropdown,
.rh-mega {
  z-index: 10020 !important;
}

/* Make buttons visibly interactive. */
.btn,
.rh-nav-trigger,
.rh-mobile-menu,
[data-modal],
.close {
  cursor: pointer !important;
}

.btn:focus-visible,
.rh-nav-trigger:focus-visible,
.rh-mobile-menu:focus-visible,
[data-modal]:focus-visible {
  outline: 3px solid rgba(7,149,119,.35);
  outline-offset: 3px;
}

/* Dialog fallback presentation. */
dialog[open] {
  display: grid !important;
  place-items: center;
  max-width: none;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 20px;
  border: 0;
  background: rgba(5,20,35,.68);
  z-index: 100000;
}

dialog[open]::backdrop {
  background: rgba(5,20,35,.68);
}

dialog[open] .modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  background: #fff;
}

/* Anchor targets should not hide under sticky header. */
section[id],
div[id] {
  scroll-margin-top: 105px;
}
