/* RMT Metrotown header behavior: transparent over hero, fixed translucent when scrolled.
   Matches the static HTML build's header exactly. */

.rmt-el-header-outer {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background .3s ease, box-shadow .3s ease;
}

/* Over hero (top of page, not scrolled): white logo + nav */
body:not(.rmt-scrolled) .rmt-el-header-outer .rmt-el-header {
  background: transparent !important;
}
body:not(.rmt-scrolled).rmt-has-hero .rmt-el-header-outer .rmt-el-logo {
  color: #FFFFFF !important;
}
body:not(.rmt-scrolled).rmt-has-hero .rmt-el-header-outer .rmt-el-nav .elementor-heading-title,
body:not(.rmt-scrolled).rmt-has-hero .rmt-el-header-outer .rmt-el-nav a {
  color: rgba(255,255,255,.92) !important;
}

/* Scrolled: fixed translucent warm white with blur */
body.rmt-scrolled .rmt-el-header-outer {
  position: fixed;
  background: rgba(253,252,250,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(15,59,58,.08);
}
body.rmt-scrolled .rmt-el-header-outer .rmt-el-logo { color: #1C5B5E !important; }
body.rmt-scrolled .rmt-el-header-outer .rmt-el-nav .elementor-heading-title a,
body.rmt-scrolled .rmt-el-header-outer .rmt-el-nav a { color: #22312F !important; }

/* Nav link hover underline */
.rmt-el-nav .elementor-heading-title a {
  position: relative;
  padding: 4px 0;
  text-decoration: none;
}
.rmt-el-nav .elementor-heading-title a::after {
  content: '';
  position: absolute; left: 0; bottom: -2px;
  width: 0; height: 2px; background: currentColor;
  transition: width .2s ease;
}
.rmt-el-nav .elementor-heading-title a:hover::after { width: 100%; }

/* Pages without a dark hero always get the solid header so text stays readable */
body:not(.rmt-has-hero) .rmt-el-header-outer {
  position: sticky;
  background: rgba(253,252,250,.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
