/* NORVI USA Smart Header v1.4.0 — changes only the current Elementor V4.3 header and cart. */
:root{--norvi-header-admin-offset:0px;--norvi-green:#0b9934;--norvi-bright-green:#13ab41}
body.admin-bar{--norvi-header-admin-offset:32px}
@media(max-width:782px){body.admin-bar{--norvi-header-admin-offset:46px}}

/* The live Elementor header is moved into a direct body-level portal to avoid
   transformed ancestors shifting a position:fixed header partway down the page. */
body:not(.elementor-editor-active) #norvi-smart-header-portal{
  position:fixed!important;top:var(--norvi-header-admin-offset)!important;
  left:0!important;right:0!important;z-index:9900!important;
  width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
  border:0!important;transform:none!important;overflow:visible!important;
  box-sizing:border-box!important;isolation:isolate;
}
#norvi-smart-header-portal > .elementor-location-header,
#norvi-smart-header-portal > [data-elementor-type="header"]{
  display:block!important;position:relative!important;top:auto!important;
  bottom:auto!important;left:auto!important;right:auto!important;
  width:100%!important;max-width:100%!important;margin:0!important;
  padding:0!important;transform:none!important;overflow:visible!important;
}
#norvi-smart-header-portal .norvi-v43-header,
#norvi-smart-header-portal .norvi-v43-header-layout,
#norvi-smart-header-portal .norvi-v43-header > .e-con{
  margin:0!important;padding:0!important;gap:0!important;row-gap:0!important;
  width:100%!important;max-width:100%!important;overflow:visible!important;
}
#norvi-smart-header-portal .norvi-v43-top-bar,
.norvi-smart-header-static .norvi-v43-top-bar{
  display:flex!important;visibility:visible!important;opacity:1!important;
  position:relative!important;inset:auto!important;
  width:100%!important;max-width:100%!important;margin:0!important;padding:0!important;
  background:var(--norvi-green)!important;border:0!important;
  box-sizing:border-box!important;
}
#norvi-smart-header-portal .norvi-v43-top-bar > .e-con,
#norvi-smart-header-portal .norvi-v43-top-bar > .e-con-inner{
  display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;
  align-items:center!important;justify-content:space-between!important;
  width:100%!important;max-width:1370px!important;margin:0 auto!important;
  padding:8px 22px!important;min-height:44px!important;gap:20px!important;
  box-sizing:border-box!important;
}
/* Enhanced readability on the green bar */
#norvi-smart-header-portal .norvi-v43-top-copy,
#norvi-smart-header-portal .norvi-v43-top-copy *,
#norvi-smart-header-portal .norvi-v43-top-contacts,
#norvi-smart-header-portal .norvi-v43-top-contacts *{
  color:#fff!important;font-size:14px!important;font-weight:600!important;
  line-height:1.4!important;letter-spacing:.08px!important;
}
#norvi-smart-header-portal .norvi-v43-top-copy,
#norvi-smart-header-portal .norvi-v43-top-contacts{
  width:auto!important;max-width:100%!important;min-width:0!important;
  flex:0 1 auto!important;white-space:normal!important;
}
#norvi-smart-header-portal .norvi-v43-top-copy p,
#norvi-smart-header-portal .norvi-v43-top-contacts p{margin:0!important}
#norvi-smart-header-portal .norvi-v43-top-contacts a{
  color:#fff!important;text-decoration:none!important;
}
#norvi-smart-header-portal .norvi-v43-top-contacts a:hover,
#norvi-smart-header-portal .norvi-v43-top-contacts a:focus-visible{
  color:#e0ffe4!important;text-decoration:underline!important;
}
#norvi-smart-header-portal .norvi-top-actions{
  display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:flex-end!important;gap:18px!important;margin-left:auto!important;
  min-width:0!important;
}
#norvi-smart-header-portal .norvi-v43-top-contacts{
  text-align:right!important;margin:0!important;
}
#norvi-smart-header-portal .norvi-consultation-link{
  display:inline-flex!important;flex:0 0 auto!important;align-items:center!important;
  justify-content:center!important;min-height:34px!important;padding:7px 15px!important;
  border:1px solid #fff!important;border-radius:5px!important;
  background:#fff!important;color:#08762a!important;text-decoration:none!important;
  font:700 13px/1.2 Arial,Helvetica,sans-serif!important;white-space:nowrap!important;
  transition:background-color .2s ease,color .2s ease!important;
}
#norvi-smart-header-portal .norvi-consultation-link:hover,
#norvi-smart-header-portal .norvi-consultation-link:focus-visible{
  background:#dcffe7!important;color:#075f26!important;
}
/* Main navigation row — flush to announcement bar. */
#norvi-smart-header-portal .norvi-v43-main-header{
  position:relative!important;margin:0!important;padding:0!important;
  width:100%!important;max-width:100%!important;
  background-color:#fff!important;
  box-shadow:none!important;
  transition:background-color .24s ease,box-shadow .24s ease,backdrop-filter .24s ease!important;
}
#norvi-smart-header-portal.norvi-is-scrolled.norvi-has-translucency .norvi-v43-main-header{
  background-color:rgba(255,255,255,var(--norvi-nav-opacity,.66))!important;
  -webkit-backdrop-filter:blur(8px) saturate(1.1)!important;
  backdrop-filter:blur(8px) saturate(1.1)!important;
  box-shadow:0 6px 18px rgba(0,28,12,.13)!important;
}
#norvi-smart-header-portal.norvi-is-scrolled .norvi-v43-top-bar{
  background-color:rgba(11,153,52,.96)!important;
}
#norvi-smart-header-portal .norvi-v43-header-row{
  margin:0 auto!important;max-width:1370px!important;
  min-height:74px!important;padding:10px 22px!important;
  display:flex!important;align-items:center!important;box-sizing:border-box!important;
}
#norvi-smart-header-portal .norvi-v43-nav-wrap{
  display:flex!important;flex-flow:row nowrap!important;
  gap:9px!important;align-items:center!important;justify-content:flex-end!important;
  min-width:96px!important;overflow:visible!important;
}
#norvi-smart-header-portal .norvi-v43-nav-wrap > .elementor-element{
  min-width:0!important;flex:1 1 auto!important;
}
#norvi-smart-header-portal .norvi-cart-slot{
  display:flex!important;flex:0 0 auto!important;align-items:center!important;justify-content:center!important;
  order:5!important;min-width:0!important;
}
#norvi-smart-header-portal .norvi-legacy-cart-item{display:none!important}
/* Cart icon and count, distinct from plain navigation links. */
.norvi-cart-pill{
  position:relative;display:inline-flex!important;align-items:center!important;justify-content:center!important;
  gap:8px!important;min-height:44px!important;padding:10px 15px!important;
  color:#fff!important;background:#0b9934!important;border:1px solid #0b9934!important;
  border-radius:10px!important;font:700 13px/1.2 Arial,Helvetica,sans-serif!important;
  text-decoration:none!important;white-space:nowrap!important;
  box-shadow:0 3px 8px rgba(8,95,36,.13)!important;
  transition:background .2s ease,transform .2s ease,box-shadow .2s ease!important;
}
.norvi-cart-pill:hover,.norvi-cart-pill:focus-visible{
  background:#08752a!important;border-color:#08752a!important;color:#fff!important;
  box-shadow:0 5px 14px rgba(8,95,36,.22)!important;
  transform:translateY(-1px);text-decoration:none!important;
}
.norvi-cart-pill svg,.norvi-floating-cart svg{
  display:block;flex:0 0 auto;width:23px;height:23px;stroke:currentColor;
}
.norvi-cart-count{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  min-width:22px!important;height:22px!important;padding:0 5px!important;
  border-radius:99px!important;background:#fff!important;color:#07792c!important;
  font:700 12px/1 Arial,Helvetica,sans-serif!important;box-sizing:border-box!important;
}
.norvi-cart-in-header .norvi-cart-count{
  position:absolute!important;right:-8px!important;top:-9px!important;
  box-shadow:0 1px 5px rgba(0,0,0,.17)!important;
}
.norvi-cart-pill:focus-visible,.norvi-floating-cart:focus-visible,.norvi-consultation-link:focus-visible{
  outline:3px solid #ffe58e!important;outline-offset:3px!important;
}
/* Floating basket only when a visitor has items and scrolls. */
.norvi-floating-cart{
  position:fixed!important;bottom:24px!important;right:24px!important;z-index:9898!important;
  width:62px!important;height:62px!important;border-radius:50%!important;
  display:flex!important;justify-content:center!important;align-items:center!important;
  background:#0b9934!important;color:#fff!important;text-decoration:none!important;
  border:2px solid #fff!important;box-shadow:0 8px 28px rgba(0,0,0,.25)!important;
  transition:transform .2s ease,background .2s ease!important;
}
.norvi-floating-cart[hidden]{display:none!important}
.norvi-floating-cart:hover{background:#08752a!important;transform:translateY(-3px);color:#fff!important}
.norvi-floating-cart .norvi-cart-count{
  position:absolute!important;right:-4px!important;top:-7px!important;min-width:23px!important;
  height:23px!important;border:1px solid #fff!important;
}
/* Tablet: allow announcement elements to wrap inside continuous green bar. */
@media(max-width:1180px){
 #norvi-smart-header-portal .norvi-v43-top-bar > .e-con,
 #norvi-smart-header-portal .norvi-v43-top-bar > .e-con-inner{
   flex-wrap:wrap!important;justify-content:center!important;gap:5px 16px!important;
 }
 #norvi-smart-header-portal .norvi-v43-top-copy,
 #norvi-smart-header-portal .norvi-top-actions{margin-left:0!important;text-align:center!important}
 #norvi-smart-header-portal .norvi-v43-top-copy,
 #norvi-smart-header-portal .norvi-v43-top-copy *,
 #norvi-smart-header-portal .norvi-v43-top-contacts,
 #norvi-smart-header-portal .norvi-v43-top-contacts *{font-size:13px!important}
}
@media(max-width:1024px){
 #norvi-smart-header-portal .norvi-v43-top-bar.elementor-hidden-tablet{display:flex!important}
 #norvi-smart-header-portal .norvi-v43-nav-wrap{gap:6px!important}
 #norvi-smart-header-portal .norvi-cart-pill-label{display:none!important}
 #norvi-smart-header-portal .norvi-cart-pill{height:43px!important;width:43px!important;padding:8px!important}
 #norvi-smart-header-portal .norvi-v43-header-row{padding:10px 18px!important}
 #norvi-smart-header-portal .norvi-v43-brand-row{flex:1 1 auto!important;min-width:0!important}
 #norvi-smart-header-portal .norvi-v43-nav-wrap{flex:0 0 auto!important;width:auto!important}
}
@media(max-width:767px){
 #norvi-smart-header-portal .norvi-v43-top-bar.elementor-hidden-mobile{display:flex!important}
 #norvi-smart-header-portal .norvi-v43-top-bar > .e-con,
 #norvi-smart-header-portal .norvi-v43-top-bar > .e-con-inner{
   flex-direction:column!important;flex-wrap:nowrap!important;justify-content:center!important;
   padding:8px 12px!important;gap:5px!important;
 }
 #norvi-smart-header-portal .norvi-v43-top-copy,
 #norvi-smart-header-portal .norvi-v43-top-copy *,
 #norvi-smart-header-portal .norvi-v43-top-contacts,
 #norvi-smart-header-portal .norvi-v43-top-contacts *{font-size:12px!important;line-height:1.35!important}
 #norvi-smart-header-portal .norvi-v43-top-copy{text-align:center!important}
 #norvi-smart-header-portal .norvi-top-actions{
   width:100%!important;flex-direction:column!important;gap:7px!important;
 }
 #norvi-smart-header-portal .norvi-v43-top-contacts{text-align:center!important}
 #norvi-smart-header-portal .norvi-consultation-link{min-height:30px!important;padding:6px 14px!important;font-size:12px!important}
 #norvi-smart-header-portal .norvi-v43-header-row{padding:9px 14px!important;min-height:62px!important}
 .norvi-floating-cart{bottom:70px!important;right:14px!important;width:56px!important;height:56px!important}
}
@media(prefers-reduced-motion:reduce){
 #norvi-smart-header-portal .norvi-v43-main-header,
 .norvi-cart-pill,.norvi-floating-cart,.norvi-consultation-link{transition:none!important}
}

/* V1.2: Elementor 4 Atomic classes are restored on the original element IDs. */
#norvi-smart-header-portal .norvi-v43-top-bar.elementor-element,
#norvi-smart-header-portal .norvi-v43-top-bar.elementor-element.e-con {
  max-width:none!important;
  width:100%!important;
  margin:0!important;
  padding:0!important;
}
#norvi-smart-header-portal.norvi-is-scrolled .norvi-v43-main-header.elementor-element {
  background-image:none!important;
  background:rgba(255,255,255,var(--norvi-nav-opacity,.66))!important;
  -webkit-backdrop-filter:blur(9px) saturate(1.07)!important;
  backdrop-filter:blur(9px) saturate(1.07)!important;
}
/* Cart survives as a distinct action even when Elementor menu is reflowed. */
#norvi-smart-header-portal .norvi-cart-slot .norvi-cart-pill {color:#fff!important;}


/* V1.3 — square-cornered cart action and right-aligned desktop position.
 * The original Elementor header stays editable; only the cart presentation changes.
 * Set absolute positioning relative to the full-width NAV row, not the flex menu,
 * so the cart reaches the right edge rather than stopping beside "Contact". */
#norvi-smart-header-portal .norvi-cart-slot .norvi-cart-pill,
#norvi-smart-header-portal .norvi-cart-shortcode {
  border-radius: 0 !important;
  box-sizing: border-box !important;
  height: 46px !important;
  min-height: 46px !important;
  padding: 9px 18px !important;
  font-weight: 700 !important;
}
#norvi-smart-header-portal .norvi-cart-pill:hover,
#norvi-smart-header-portal .norvi-cart-pill:focus-visible {
  border-radius: 0 !important;
}
/* Desktop: place cart near the far-right screen edge. Keep existing menu editable. */
@media (min-width: 1025px) {
  #norvi-smart-header-portal .norvi-v43-main-header {position:relative !important;}
  #norvi-smart-header-portal .norvi-v43-header-row,
  #norvi-smart-header-portal .norvi-v43-nav-wrap {position:static !important;}
  #norvi-smart-header-portal .norvi-v43-nav-wrap {
    padding-right: 115px !important;
  }
  #norvi-smart-header-portal .norvi-cart-slot {
    position: absolute !important;
    right: clamp(18px, 2.5vw, 42px) !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 4 !important;
    margin: 0 !important;
    min-width: 0 !important;
  }
}
/* Tablet/phone: cart remains adjacent to Elementor's hamburger toggle. */
@media (max-width: 1024px) {
  #norvi-smart-header-portal .norvi-v43-nav-wrap {padding-right: 0 !important;}
  #norvi-smart-header-portal .norvi-cart-slot {
    position: static !important;
    top: auto !important;
    right: auto !important;
    transform: none !important;
    margin-left: 8px !important;
    order: 10 !important;
  }
  #norvi-smart-header-portal .norvi-cart-slot .norvi-cart-pill {
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
    padding: 8px !important;
  }
}


/* V1.4 — targeted visual adjustments; no Elementor template modifications. */
/* Announcement bar: phone / email FIRST, consultation button to their RIGHT. */
#norvi-smart-header-portal .norvi-v43-top-bar .norvi-top-actions.norvi-booking-right {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 16px !important;
}
#norvi-smart-header-portal .norvi-top-actions.norvi-booking-right > .norvi-v43-top-contacts {
  order: 1 !important;
  flex: 0 1 auto !important;
  margin-left: 0 !important;
}
#norvi-smart-header-portal .norvi-top-actions.norvi-booking-right > .norvi-consultation-link {
  order: 2 !important;
  border-radius: 0 !important; /* crisp rectangular consultation button */
  -webkit-border-radius: 0 !important;
  margin-left: 0 !important;
}
#norvi-smart-header-portal .norvi-top-actions.norvi-booking-right > .norvi-consultation-link:hover,
#norvi-smart-header-portal .norvi-top-actions.norvi-booking-right > .norvi-consultation-link:focus-visible {
  border-radius: 0 !important;
}

/* Desktop: put cart back in normal navigation flow directly after Contact.
   Undo the V1.3 absolute-right cart and the corresponding 115px menu spacer. */
@media (min-width: 1025px) {
  #norvi-smart-header-portal .norvi-v43-nav-wrap {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: clamp(12px, 1.2vw, 20px) !important;
    padding-right: 0 !important;
    position: relative !important;
  }
  #norvi-smart-header-portal .norvi-v43-nav-wrap > .elementor-element {
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
  }
  #norvi-smart-header-portal .norvi-v43-nav-wrap .norvi-cart-slot {
    position: static !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    transform: none !important;
    margin: 0 !important;
    padding: 0 !important;
    order: 5 !important;
    flex: 0 0 auto !important;
  }
}

/* Phone: preserve accessible reading order if right-side actions stack. */
@media (max-width: 767px) {
  #norvi-smart-header-portal .norvi-top-actions.norvi-booking-right {
    flex-direction: column !important;
    gap: 7px !important;
    align-items: center !important;
  }
  #norvi-smart-header-portal .norvi-top-actions.norvi-booking-right > .norvi-v43-top-contacts {
    text-align: center !important;
  }
}

/* Compact phones: prevent the contact details and consultation from colliding. */
@media (max-width: 767px) {
  #norvi-smart-header-portal .norvi-v43-top-bar .norvi-top-actions.norvi-booking-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    gap: 7px !important;
  }
  #norvi-smart-header-portal .norvi-v43-top-bar .norvi-top-actions.norvi-booking-right > .norvi-consultation-link {
    border-radius: 0 !important;
  }
}
