/* Lafer - restore V5 original mega dropdown. Scoped to Lafer Enterprise only. */
@media (min-width: 1200px) {
  html body.lafer-enterprise .lf-header .lf-main-menu > li.lf-premium-solutions { position: relative !important; }
  html body.lafer-enterprise .lf-header .lf-main-menu > li.lf-premium-solutions > .lf-premium-submenu,
  html body.lafer-enterprise .lf-header .lf-main-menu > li.lf-premium-solutions > .sub-menu.lf-premium-submenu {
    position: absolute !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 7px 9px !important;
    top: calc(100% + 9px) !important;
    left: 50% !important;
    right: auto !important;
    width: 620px !important;
    min-width: 0 !important;
    max-width: min(620px, calc(100vw - 32px)) !important;
    padding: 22px !important;
    margin: 0 !important;
    background: rgba(248,251,255,.96) !important;
    border: 1px solid rgba(255,255,255,.97) !important;
    border-radius: 25px !important;
    box-shadow: 0 23px 70px rgba(2,23,84,.20), inset 0 1px rgba(255,255,255,.9) !important;
    -webkit-backdrop-filter: blur(30px) saturate(135%) !important;
    backdrop-filter: blur(30px) saturate(135%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translate(-50%, 8px) scale(.985) !important;
    transform-origin: 50% 0 !important;
    transition: opacity .2s ease, visibility .2s ease, transform .24s cubic-bezier(.2,.85,.35,1) !important;
    z-index: 1280 !important;
    overflow: hidden !important;
  }
  html body.lafer-enterprise .lf-header .lf-main-menu > li.lf-premium-solutions:hover > .lf-premium-submenu,
  html body.lafer-enterprise .lf-header .lf-main-menu > li.lf-premium-solutions:focus-within > .lf-premium-submenu,
  html body.lafer-enterprise .lf-header .lf-main-menu > li.lf-premium-solutions.lf-premium-open > .lf-premium-submenu {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translate(-50%, 0) scale(1) !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-submenu > li.lf-premium-heading {
    display: flex !important;
    grid-column: 1 / -1 !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 16px !important;
    padding: 0 6px 16px !important;
    margin: 0 0 6px !important;
    border-bottom: 1px solid #dce6f3 !important;
    list-style: none !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-heading > strong {
    font: 750 16px/1.3 Montserrat,Outfit,sans-serif !important;
    color: #142650 !important;
    letter-spacing: -.025em !important;
    white-space: nowrap !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-heading > .lf-premium-browse {
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    font: 760 12px/1.2 Montserrat,Outfit,sans-serif !important;
    text-decoration: none !important;
    color: #0c53c2 !important;
    white-space: nowrap !important;
    min-height: 30px !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-heading > .lf-premium-browse:hover { color: #003a9d !important; }
  html body.lafer-enterprise .lf-header .lf-premium-browse svg { width: 14px !important; height: 14px !important; }
  html body.lafer-enterprise .lf-header .lf-premium-submenu > li.lf-premium-item {
    display: block !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    min-width: 0 !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-submenu > li.lf-premium-item > a.lf-premium-option {
    width: 100% !important;
    min-height: 64px !important;
    display: flex !important;
    align-items: center !important;
    gap: 11px !important;
    margin: 0 !important;
    padding: 12px 11px !important;
    border: 0 !important;
    border-radius: 15px !important;
    background: transparent !important;
    box-shadow: none !important;
    text-decoration: none !important;
    color: #112653 !important;
    font: 750 13px/1.3 Montserrat,Outfit,sans-serif !important;
    letter-spacing: -.016em !important;
    white-space: normal !important;
    transition: background-color .2s ease, transform .2s ease, color .2s ease !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-submenu > li.lf-premium-item > a.lf-premium-option:hover,
  html body.lafer-enterprise .lf-header .lf-premium-submenu > li.lf-premium-item > a.lf-premium-option:focus-visible {
    background: #e7f1ff !important;
    transform: translateY(-1px) !important;
    color: #064cb6 !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-badge {
    display: grid !important;
    place-items: center !important;
    flex: 0 0 39px !important;
    width: 39px !important;
    height: 39px !important;
    border-radius: 12px !important;
    color: #1056c0 !important;
    background: #dfecff !important;
  }
  html body.lafer-enterprise .lf-header .lf-premium-badge svg { width: 20px !important; height: 20px !important; }
  html body.lafer-enterprise .lf-header .lf-premium-label { display: block; flex: 1 1 auto; min-width: 0; }
  html body.lafer-enterprise .lf-header .lf-premium-option > .lf-premium-arrow {
    flex: 0 0 15px !important;
    width: 15px !important;
    height: 15px !important;
    color: #457abd !important;
    margin-left: auto !important;
  }
}
/* Approximately 10 percent lower visual density; preserve wide V12 containers. */
html body.lafer-enterprise {
  --lf-nav-h: 85px;
  --lf-nav-mobile-h: 66px;
}
html body.lafer-enterprise .lf-header .site-nav,
html body.lafer-enterprise .lf-header .site-nav.compact {
  min-height: 85px !important;
  height: 85px !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}
html body.lafer-enterprise .lf-header .site-nav .brand img,
html body.lafer-enterprise .lf-header .site-nav.compact .brand img {
  width: 153px !important;
  max-height: 56px !important;
}
html body.lafer-enterprise .lf-header .site-nav .nav-actions > a.btn,
html body.lafer-enterprise .lf-header .site-nav.compact .nav-actions > a.btn {
  height: 51px !important;
  min-height: 51px !important;
  max-height: 51px !important;
  padding-left: 17px !important;
  padding-right: 17px !important;
  font-size: 12.8px !important;
}
html body.lafer-enterprise .lf-header .site-nav .lf-main-menu > li > a {
  font-size: 13px !important;
}
html body.lafer-enterprise #main .section-title {
  font-size: clamp(39px,3.65vw,62px) !important;
}
html body.lafer-enterprise #main .section-lead {
  font-size: clamp(16px,1.13vw,19px) !important;
}
html body.lafer-enterprise #main .stats-v2 .stat-value {
  font-size: clamp(38px,3.42vw,57px) !important;
}
html body.lafer-enterprise #main .stats-v2 .stat p {
  font-size: clamp(12.5px,.85vw,14px) !important;
}
html body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2 {
  min-height: 212px !important;
  padding: 24px 23px 22px !important;
}
html body.lafer-enterprise #main .problem-v2 strong {
  font-size: clamp(15.5px,1.10vw,18px) !important;
}
html body.lafer-enterprise #main .problem-v2 .problem-icon {
  width: 46px !important;
  height: 46px !important;
}
html body.lafer-enterprise #main .problem-v2 .problem-icon svg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
}
html body.lafer-enterprise #main .problem-v2 .problem-desc {
  font-size: clamp(12px,.88vw,14px) !important;
}
html body.lafer-enterprise #main .service-grid-v2 .service-v2 {
  min-height: 242px !important;
  padding: 28px !important;
}
html body.lafer-enterprise #main .service-v2 .svc-orb {
  width: 94px !important;
  height: 94px !important;
}
html body.lafer-enterprise #main .service-v2 .svc-orb svg {
  width: 40px !important;
  height: 40px !important;
  min-width: 40px !important;
  min-height: 40px !important;
}
html body.lafer-enterprise #main .service-v2 .svc-name {
  font-size: clamp(21px,1.52vw,27px) !important;
}
html body.lafer-enterprise #main .service-v2 .svc-cta {
  font-size: clamp(13px,.92vw,15px) !important;
}
html body.lafer-enterprise #main .reviews-row .review-v2 {
  min-height: 214px !important;
  padding: 26px 28px !important;
}
html body.lafer-enterprise #main .reviews-row .review-v2 blockquote {
  font-size: clamp(15.5px,1.04vw,17px) !important;
}
html body.lafer-enterprise #main .person-v2 .person-info {
  padding: 22px 23px 25px !important;
}
html body.lafer-enterprise #main .person-v2 .person-info h3 {
  font-size: clamp(16px,1.04vw,18px) !important;
}
html body.lafer-enterprise #main .resources-grid-v2 {
  grid-template-rows: 248px 248px !important;
}
html body.lafer-enterprise #main .resources-grid-v2 .resource-v2 {
  padding: 27px 31px !important;
}
html body.lafer-enterprise #main .resources-grid-v2 .resource-v2 h3 {
  font-size: clamp(22px,1.8vw,31px) !important;
}
html body.lafer-enterprise #main .contact-v2 .contact-copy h2 {
  font-size: clamp(49px,4.5vw,71px) !important;
}
html body.lafer-enterprise #main .contact-v2 .contact-copy > p {
  font-size: clamp(16px,1.07vw,18px) !important;
}
html body.lafer-enterprise #main .contact-v2 .form-submit {
  min-height: 55px !important;
  font-size: 16px !important;
}
html body.lafer-enterprise #main .btn {
  font-size: clamp(13.5px,.94vw,16px) !important;
  min-height: 49px !important;
  padding: 16px 22px !important;
}
/* Keep the premium V12 wide container: do NOT reduce --lf-page-max. */
@media (min-width: 1200px) and (max-width: 1480px) {
  html body.lafer-enterprise .lf-header .site-nav .brand img,
  html body.lafer-enterprise .lf-header .site-nav.compact .brand img { width: 139px !important; }
  html body.lafer-enterprise .lf-header .site-nav .nav-actions > a.btn,
  html body.lafer-enterprise .lf-header .site-nav.compact .nav-actions > a.btn {
    font-size: 11.9px !important;
    height: 48px !important;
    min-height: 48px !important;
    max-height: 48px !important;
    padding-left: 13px !important;
    padding-right: 13px !important;
  }
}
@media (max-width: 1199px) {
  html body.lafer-enterprise .lf-header .site-nav,
  html body.lafer-enterprise .lf-header .site-nav.compact {
    min-height: 74px !important;
    height: 74px !important;
  }
  html body.lafer-enterprise .lf-header .site-nav .brand img,
  html body.lafer-enterprise .lf-header .site-nav.compact .brand img {
    width: 137px !important;
  }
}
@media (max-width: 740px) {
  html body.lafer-enterprise .lf-header .site-nav,
  html body.lafer-enterprise .lf-header .site-nav.compact {
    min-height: 66px !important;
    height: 66px !important;
  }
  html body.lafer-enterprise .lf-header .site-nav .brand img,
  html body.lafer-enterprise .lf-header .site-nav.compact .brand img {
    width: 126px !important;
  }
  html body.lafer-enterprise #main .section-title {
    font-size: clamp(30px,6.5vw,43px) !important;
  }
  html body.lafer-enterprise #main .section-lead { font-size: 15.5px !important; }
  html body.lafer-enterprise #main .solve-v2 .problem-card.problem-v2 {
    min-height: 198px !important;
    padding: 20px 18px !important;
  }
  html body.lafer-enterprise #main .service-grid-v2 .service-v2 {
    min-height: 216px !important;
    padding: 18px !important;
  }
  html body.lafer-enterprise #main .service-v2 .svc-orb {
    width: 64px !important;
    height: 64px !important;
  }
  html body.lafer-enterprise #main .service-v2 .svc-orb svg {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
  html body.lafer-enterprise #main .service-v2 .svc-name {
    font-size: 18px !important;
  }
  html body.lafer-enterprise #main .service-v2 .svc-cta {
    font-size: 12px !important;
  }
  html body.lafer-enterprise #main .resources-grid-v2 {
    grid-template-rows: auto !important;
  }
  html body.lafer-enterprise #main .contact-v2 .contact-copy h2 {
    font-size: clamp(35px,8.1vw,47px) !important;
  }
  html body.lafer-enterprise #main .btn { min-height: 44px !important; }
}
@media (prefers-reduced-motion: reduce) {
  html body.lafer-enterprise .lf-header .lf-premium-submenu { transition: none !important; }
}
/* ===== v1.1 · Lafer glass + discreet mobile section rail =====
   Only affects the shared Lafer Enterprise UI. Mobile content stays wide.
   The original desktop navigation and active section indicator remain usable.
*/

/* Slightly clearer glass: from the opaque theme glass to a refined, legible 76%.
   The scrolled state stays a touch stronger for contrast over photography.
   Matching compact and default selectors means no sudden transparency jump. */
@media (min-width: 741px) {
  html body.lafer-enterprise .lf-header #mainNav.site-nav {
    background: rgba(250, 252, 255, .76) !important;
    -webkit-backdrop-filter: blur(28px) saturate(155%) !important;
    backdrop-filter: blur(28px) saturate(155%) !important;
  }
  html body.lafer-enterprise .lf-header #mainNav.site-nav.compact {
    background: rgba(250, 252, 255, .82) !important;
  }
}

/* On phones, the section dots become a slim, quiet edge navigator.
   Width 15px + left 0px keeps it outside the >=16px home content gutter.
   We retain focus/click navigation and make the indicator clear on interaction. */
@media (max-width: 740px) {
  html body.lafer-enterprise #sectionRail.quick-rail {
    display: flex !important;
    box-sizing: border-box !important;
    position: fixed !important;
    left: 0 !important;
    top: 50% !important;
    right: auto !important;
    transform: translateY(-50%) !important;
    width: 15px !important;
    min-width: 15px !important;
    max-width: 15px !important;
    padding: 10px 3px !important;
    gap: 8px !important;
    border: 1px solid rgba(255, 255, 255, .18) !important;
    border-radius: 0 12px 12px 0 !important;
    background: rgba(248, 251, 255, .16) !important;
    box-shadow: none !important;
    -webkit-backdrop-filter: blur(7px) !important;
    backdrop-filter: blur(7px) !important;
    opacity: .48 !important;
    z-index: 700 !important;
    pointer-events: auto !important;
    transition: opacity .22s ease, background-color .22s ease !important;
  }
  html body.lafer-enterprise #sectionRail.quick-rail:focus-within,
  html body.lafer-enterprise #sectionRail.quick-rail:hover {
    opacity: .90 !important;
    background: rgba(248, 251, 255, .62) !important;
  }
  html body.lafer-enterprise #sectionRail.quick-rail .rail-dot {
    display: block !important;
    flex: 0 0 auto !important;
    width: 5px !important;
    height: 5px !important;
    min-width: 5px !important;
    min-height: 5px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px !important;
    background: #9ab0d5 !important;
    box-shadow: none !important;
  }
  html body.lafer-enterprise #sectionRail.quick-rail .rail-dot.active {
    width: 5px !important;
    height: 16px !important;
    min-height: 16px !important;
    background: #0756d4 !important;
    border-radius: 999px !important;
  }
  /* Tooltips from a dot must never expand over card content on phones. */
  html body.lafer-enterprise #sectionRail.quick-rail .rail-dot::after {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  html body.lafer-enterprise #sectionRail.quick-rail {
    transition: none !important;
  }
}


/* V1.2: The page-map button is useful only while exploring the opening
   screen on phones. Keep it available on desktop and restore when scrolling up. */
@media (max-width: 740px) {
  html body.lafer-enterprise #mapTrigger.map-trigger {
    transition: opacity .22s ease, transform .22s ease, visibility .22s ease !important;
  }
  html body.lafer-enterprise.lf-premium-after-intro #mapTrigger.map-trigger {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(10px) !important;
  }
}
@media (max-width: 740px) and (prefers-reduced-motion: reduce) {
  html body.lafer-enterprise #mapTrigger.map-trigger {
    transition: none !important;
  }
}
