/* Header, mobile drawer, and global sticky controls v69 */
html,
body {
  overflow-x: hidden;
}

body.has-sticky-call:not(.hide-floating-contact) {
  padding-bottom: 0;
}

.wm-nav button,
.wm-mobile-menu button {
  appearance: none;
  -webkit-appearance: none;
}

.wm-help-menu > .wm-dropdown.wm-help-mega {
  left: auto;
  right: 0;
  width: min(760px, calc(100vw - 40px));
  max-height: min(78vh, 720px);
  padding: 18px;
  border: 1px solid rgba(18, 60, 52, .12);
  border-radius: 22px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 26px 80px rgba(8, 42, 37, .22), 0 1px 0 rgba(255, 255, 255, .8) inset;
  backdrop-filter: blur(18px);
  overflow: auto;
  overscroll-behavior: contain;
}

.wm-help-menu:not(.open) > .wm-dropdown.wm-help-mega {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px);
}

.wm-help-menu.open > .wm-dropdown.wm-help-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.wm-help-mega .wm-submenu-item {
  display: block;
  margin: 0 0 10px;
  border: 1px solid rgba(18, 60, 52, .08);
  border-radius: 18px;
  background: linear-gradient(180deg, #fff 0%, #f8fbfa 100%);
  box-shadow: 0 8px 22px rgba(8, 42, 37, .05);
  overflow: hidden;
}

.wm-help-mega .wm-submenu-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 58px;
  padding: 16px 18px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #143d34;
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
  line-height: 1.2;
  text-align: left;
}

.wm-help-mega .wm-submenu-toggle:hover,
.wm-help-mega .wm-submenu-toggle:focus-visible {
  background: rgba(217, 164, 65, .1);
}

.wm-nav .menu-arrow,
.wm-mobile-menu .menu-arrow {
  color: #f1d27a;
  line-height: 1;
  transition: transform .22s ease, color .22s ease;
}

.wm-nav .open > .nav-toggle .menu-arrow,
.wm-submenu-item.open > .wm-submenu-toggle .menu-arrow,
.wm-mobile-menu .menu-item.active > .menu-arrow {
  transform: rotate(180deg);
  color: #ffe59a;
}

.wm-help-mega .wm-submenu {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
  max-height: none;
  margin: 0;
  padding: 0 14px 16px;
  border: 0;
  background: transparent;
  box-shadow: none;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
  overflow: visible;
}

.wm-help-mega .wm-submenu[hidden] {
  display: none !important;
}

.wm-help-mega #desktop-help-ocd {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.wm-help-mega .wm-submenu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #25443d;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  white-space: normal;
}

.wm-help-mega .wm-submenu a:hover,
.wm-help-mega .wm-submenu a:focus-visible {
  background: #eef7f3;
  color: #123c34;
  transform: none;
}

.wm-help-mega .wm-submenu a[href$="-consultation"] {
  background: #fff5dc;
  color: #6f4308;
  font-weight: 900;
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 9998;
}

.float-btn.whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .22);
}

.float-btn.whatsapp svg {
  width: 30px;
  height: 30px;
}

.wm-sticky-call-now {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 9998;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  max-width: calc(100vw - 32px);
  padding: 12px 26px;
  border-radius: 999px;
  background: var(--cta-gradient, linear-gradient(135deg, #f8d978, #d98a00));
  color: #111;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(0, 0, 0, .2);
  transform: translateX(-50%);
}

@media (min-width: 769px) {
  .wm-sticky-call-now {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .wm-sticky-call-now {
    display: inline-flex;
  }
}

.hide-floating-contact .floating-contact,
.hide-floating-contact .wm-sticky-call-now,
.mobile-menu-open .floating-contact,
.mobile-menu-open .wm-sticky-call-now {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

@media (max-width: 900px) {
  :root {
    --wm-header-height-mobile: 88px;
    --wm-header-height: var(--wm-header-height-mobile);
  }

  html {
    scroll-padding-top: calc(var(--wm-header-height) + env(safe-area-inset-top, 0px));
  }

  body {
    padding-top: calc(var(--wm-header-height) + env(safe-area-inset-top, 0px));
  }

  body.has-sticky-call:not(.hide-floating-contact) main,
  body.has-sticky-call:not(.hide-floating-contact) .wm-footer {
    padding-bottom: 96px;
  }

  .wm-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    height: calc(var(--wm-header-height) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--wm-header-height) + env(safe-area-inset-top, 0px));
    z-index: 10020;
  }

  .wm-header .wm-container {
    box-sizing: border-box;
    height: calc(var(--wm-header-height) + env(safe-area-inset-top, 0px));
    min-height: calc(var(--wm-header-height) + env(safe-area-inset-top, 0px));
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-bottom: 10px;
  }

  .wm-mobile-menu {
    position: fixed !important;
    top: calc(var(--wm-header-height, 82px) + env(safe-area-inset-top, 0px)) !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 10010 !important;
    display: block !important;
    width: min(88vw, 360px) !important;
    height: calc(100dvh - var(--wm-header-height, 82px) - env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100dvh - var(--wm-header-height, 82px) - env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    background: radial-gradient(circle at top left, rgba(217, 164, 65, .08), transparent 34%), linear-gradient(135deg, #123c34, #082a25) !important;
    box-shadow: -18px 0 44px rgba(0, 0, 0, .24) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform .28s ease !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
  }

  .wm-mobile-menu.active,
  body.menu-open .wm-mobile-menu {
    transform: translate3d(0, 0, 0) !important;
    pointer-events: auto !important;
  }

  .wm-overlay {
    position: fixed !important;
    top: calc(var(--wm-header-height, 82px) + env(safe-area-inset-top, 0px)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
  }

  .wm-mobile-menu a,
  .wm-mobile-menu .menu-item {
    color: #fff !important;
    background: transparent !important;
  }

  .wm-mobile-menu .submenu.open {
    max-height: none;
    overflow: visible;
  }

  .wm-mobile-menu #help.submenu.open {
    max-height: none;
    overflow: visible;
  }

  .wm-mobile-menu .submenu-nested {
    max-height: 0;
    overflow: hidden;
    background: rgba(0, 0, 0, .1);
  }

  .wm-mobile-menu .submenu-nested.open {
    max-height: none;
    overflow: visible;
  }

  .wm-mobile-menu .submenu-nested a {
    padding-left: 46px;
    font-size: 14px;
    line-height: 1.3;
  }

  .floating-contact {
    right: 18px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }

  .wm-sticky-call-now {
    width: min(430px, calc(100vw - 36px));
  }
}

@media (max-width: 640px) {
  .wm-help-mega .wm-submenu,
  .wm-help-mega #desktop-help-ocd {
    grid-template-columns: 1fr;
  }
}

/* Clean desktop/mobile header split v70 */
@media (min-width: 992px) {
  .wm-nav {
    display: flex !important;
  }

  .wm-menu-toggle,
  .wm-mobile-menu,
  .wm-overlay {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .sticky-talk-btn,
  .mobile-sticky-cta,
  .talk-to-expert-sticky,
  .wm-floating-cta,
  .wm-sticky-call-now {
    display: none !important;
  }

  .wm-menu-item {
    position: relative;
  }

  .wm-help-menu > .wm-dropdown.wm-help-mega {
    left: auto !important;
    right: 0 !important;
    width: min(860px, calc(100vw - 48px)) !important;
    max-width: 860px !important;
    max-height: min(70vh, 620px) !important;
    margin-top: 10px !important;
    padding: 16px !important;
    border: 1px solid rgba(18, 60, 52, .12) !important;
    border-radius: 18px !important;
    background: #fbfdfb !important;
    box-shadow: 0 24px 60px rgba(8, 42, 37, .18), 0 1px 0 rgba(255, 255, 255, .9) inset !important;
    backdrop-filter: none !important;
    overflow: auto !important;
    overscroll-behavior: contain !important;
  }

  .wm-help-menu:hover > .wm-dropdown.wm-help-mega,
  .wm-help-menu:focus-within > .wm-dropdown.wm-help-mega,
  .wm-help-menu.open > .wm-dropdown.wm-help-mega {
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
  }

  .wm-help-menu:not(:hover):not(:focus-within):not(.open) > .wm-dropdown.wm-help-mega {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(8px) !important;
  }

  .wm-help-mega {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }

  .wm-help-mega .wm-submenu-item {
    display: flex !important;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
    border: 1px solid rgba(18, 60, 52, .1) !important;
    border-radius: 14px !important;
    background: #ffffff !important;
    box-shadow: 0 8px 24px rgba(8, 42, 37, .06) !important;
    overflow: hidden !important;
  }

  .wm-help-mega .wm-submenu-toggle {
    min-height: auto !important;
    padding: 14px 14px 8px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #123c34 !important;
    cursor: default !important;
    font-size: 15px !important;
    font-weight: 850 !important;
    line-height: 1.2 !important;
    pointer-events: none;
  }

  .wm-help-mega .wm-submenu-toggle .menu-arrow {
    display: none !important;
  }

  .wm-help-mega .wm-submenu,
  .wm-help-mega .wm-submenu[hidden],
  .wm-help-mega #desktop-help-ocd,
  .wm-help-mega #desktop-help-ocd[hidden] {
    position: static !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 4px !important;
    min-width: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 10px 12px !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow: visible !important;
  }

  .wm-help-mega .wm-submenu a {
    display: flex !important;
    align-items: center;
    min-height: 34px;
    padding: 8px 10px !important;
    border-radius: 10px !important;
    color: #25443d !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .wm-help-mega .wm-submenu a:hover,
  .wm-help-mega .wm-submenu a:focus-visible {
    background: #eef7f3 !important;
    color: #123c34 !important;
    transform: none !important;
  }
}

@media (max-width: 991px) {
  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  :root {
    --wm-header-height-mobile: 88px;
    --wm-header-height: var(--wm-header-height-mobile);
  }

  body .wm-nav,
  body .wm-header-cta {
    display: none !important;
  }

  body .wm-menu-toggle {
    display: flex !important;
  }

  body .wm-mobile-menu {
    position: fixed !important;
    top: calc(var(--wm-header-height, 88px) + env(safe-area-inset-top, 0px)) !important;
    right: 0 !important;
    bottom: auto !important;
    left: auto !important;
    z-index: 10010 !important;
    display: block !important;
    width: min(88vw, 360px) !important;
    max-width: 100vw !important;
    height: calc(100dvh - var(--wm-header-height, 88px) - env(safe-area-inset-top, 0px)) !important;
    max-height: calc(100dvh - var(--wm-header-height, 88px) - env(safe-area-inset-top, 0px)) !important;
    padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    background: radial-gradient(circle at top left, rgba(217, 164, 65, .08), transparent 34%), linear-gradient(135deg, #123c34, #082a25) !important;
    box-shadow: -18px 0 44px rgba(0, 0, 0, .24) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    transform: translate3d(100%, 0, 0) !important;
    transition: transform .28s ease !important;
  }

  body .wm-mobile-menu.active,
  body.menu-open .wm-mobile-menu {
    pointer-events: auto !important;
    transform: translate3d(0, 0, 0) !important;
  }

  body .wm-overlay {
    position: fixed !important;
    top: calc(var(--wm-header-height, 88px) + env(safe-area-inset-top, 0px)) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    z-index: 10000 !important;
  }

  .wm-mobile-menu .submenu.open,
  .wm-mobile-menu #help.submenu.open,
  .wm-mobile-menu .submenu-nested.open {
    max-height: none !important;
    overflow: visible !important;
  }
}

/* Restored footer contact/social alignment v70 */
.wm-sticky-call-now,
.sticky-talk-btn,
.mobile-sticky-cta,
.talk-to-expert-sticky,
.wm-floating-cta {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 768px) {
  body:not(.hide-floating-contact):not(.mobile-menu-open) .wm-sticky-call-now {
    display: inline-flex !important;
    visibility: visible !important;
  }
}

.wm-footer-brand .footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.wm-footer-brand .footer-social {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.wm-footer-brand .footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(212, 175, 55, .24);
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.wm-footer-brand .footer-social img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.wm-footer-brand .footer-contact {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.wm-footer-brand .footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
}

.wm-footer-brand .footer-contact-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  color: #d4af37;
}

@media (max-width: 420px) {
  .wm-footer-brand .footer-top {
    align-items: flex-start;
    gap: 14px;
  }

  .wm-footer-brand .footer-social {
    gap: 8px;
  }

  .wm-footer-brand .footer-social a {
    width: 36px;
    height: 36px;
  }
}

/* Desktop help menu as a mobile-style accordion v73 */
@media (min-width: 992px) {
  .wm-help-menu > .wm-dropdown.wm-help-mega {
    left: auto !important;
    right: 0 !important;
    width: min(430px, calc(100vw - 48px)) !important;
    max-width: 430px !important;
    max-height: min(76vh, 680px) !important;
    margin-top: 10px !important;
    padding: 0 !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 18px !important;
    background: radial-gradient(circle at top left, rgba(217, 164, 65, .08), transparent 34%), linear-gradient(135deg, #123c34, #082a25) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .wm-help-mega {
    display: block !important;
  }

  .wm-help-mega .wm-submenu-item {
    display: block !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    overflow: visible !important;
  }

  .wm-help-mega .wm-submenu-item + .wm-submenu-item {
    border-top: 1px solid rgba(255, 255, 255, .13) !important;
  }

  .wm-help-mega .wm-submenu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 58px !important;
    padding: 17px 18px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #ffffff !important;
    cursor: pointer !important;
    font-size: 16px !important;
    font-weight: 750 !important;
    line-height: 1.25 !important;
    text-align: left !important;
    pointer-events: auto !important;
  }

  .wm-help-mega .wm-submenu-toggle:hover,
  .wm-help-mega .wm-submenu-toggle:focus-visible,
  .wm-help-mega .wm-submenu-item.open > .wm-submenu-toggle {
    background: rgba(255, 255, 255, .08) !important;
    color: #ffffff !important;
  }

  .wm-help-mega .wm-submenu-toggle .menu-arrow {
    display: inline-flex !important;
    color: #f1d27a !important;
    font-size: 14px !important;
  }

  .wm-help-mega .wm-submenu,
  .wm-help-mega #desktop-help-ocd {
    position: static !important;
    display: block !important;
    max-height: min(48vh, 460px) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: rgba(0, 0, 0, .12) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
  }

  .wm-help-mega .wm-submenu[hidden],
  .wm-help-mega #desktop-help-ocd[hidden] {
    display: none !important;
  }

  .wm-help-mega .wm-submenu a {
    display: flex !important;
    align-items: center !important;
    min-height: 48px !important;
    padding: 13px 18px 13px 34px !important;
    border-top: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: rgba(255, 255, 255, .94) !important;
    font-size: 15px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    white-space: normal !important;
  }

  .wm-help-mega .wm-submenu a:hover,
  .wm-help-mega .wm-submenu a:focus-visible,
  .wm-help-mega .wm-submenu a[href$="-consultation"]:hover,
  .wm-help-mega .wm-submenu a[href$="-consultation"]:focus-visible {
    background: rgba(255, 255, 255, .1) !important;
    color: #ffffff !important;
    transform: none !important;
  }

  .wm-help-mega .wm-submenu a[href$="-consultation"] {
    background: transparent !important;
    color: #f1d27a !important;
    font-weight: 800 !important;
  }
}

/* Desktop help menu right-side flyout panels v74 */
@media (min-width: 992px) {
  .wm-help-menu > .wm-dropdown.wm-help-mega {
    width: 320px !important;
    max-width: 320px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  .wm-help-mega .wm-submenu-item {
    position: relative !important;
    overflow: visible !important;
  }

  .wm-help-mega .wm-submenu-item.open > .wm-submenu-toggle {
    background: rgba(255, 255, 255, .1) !important;
    color: #ffffff !important;
  }

  .wm-help-mega .wm-submenu-item.open > .wm-submenu-toggle .menu-arrow {
    transform: rotate(-90deg) !important;
  }

  .wm-help-mega .wm-submenu,
  .wm-help-mega #desktop-help-ocd {
    position: absolute !important;
    top: 0 !important;
    left: calc(100% + 12px) !important;
    z-index: 10030 !important;
    width: min(430px, calc(100vw - 380px)) !important;
    max-width: 430px !important;
    min-width: 300px !important;
    max-height: min(70vh, 620px) !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    border-radius: 16px !important;
    background: radial-gradient(circle at top left, rgba(217, 164, 65, .08), transparent 34%), linear-gradient(135deg, #123c34, #082a25) !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .28) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
  }

  .wm-help-mega .wm-submenu[hidden],
  .wm-help-mega #desktop-help-ocd[hidden] {
    display: none !important;
  }

  .wm-help-mega .wm-submenu a:first-child {
    border-top: 0 !important;
  }
}
