/* Alacon hover cards: replace the mega-menu panels on the four top-level menu items.
   Desktop only (the mobile menu is left alone). Site colours: navy #1C244B, text #324A6D,
   accent #3D6BCD, pale #F3F5F8, line #C8D5DC, yellow #FFCC03. */
@media (min-width: 1025px) {
  nav.wpr-nav-menu-container > ul.wpr-nav-menu > li > .wpr-sub-mega-menu,
  nav.wpr-nav-menu-container > ul.wpr-nav-menu > li > .wpr-sub-menu { display: none !important; }

  nav.wpr-nav-menu-container > ul.wpr-nav-menu > li.alacon-has-card { position: relative; }

  .alacon-card {
    position: absolute; top: 100%; left: 0; z-index: 99999;
    width: 340px; padding-top: 12px;
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
    font-family: "Poppins", sans-serif; text-align: left; white-space: normal;
  }
  .alacon-has-card:hover > .alacon-card,
  .alacon-has-card:focus-within > .alacon-card {
    opacity: 1; visibility: visible; transform: translateY(0);
    transition-delay: 0s;
  }
  .alacon-card__inner {
    background: #fff; border-radius: 16px; overflow: hidden;
    border: 1px solid #C8D5DC; border-top: 4px solid #FFCC03;
    box-shadow: 0 14px 34px rgba(28, 36, 75, .18);
  }
  .alacon-card .alacon-card__img { display: block; width: 100% !important; height: 150px !important; max-height: 150px !important; object-fit: cover; object-position: center; margin: 0; border-radius: 0; background: #F3F5F8; }
  .alacon-card__body { padding: 16px 20px 18px; }
  .alacon-card__title { margin: 0 0 6px; font-size: 18px; font-weight: 600; line-height: 1.25; color: #1C244B; }
  .alacon-card__text { margin: 0 0 12px; font-size: 14px; font-weight: 300; line-height: 1.55; color: #324A6D; }
  .alacon-card__link { font-size: 14px; font-weight: 500; color: #3D6BCD; text-decoration: none; }
  .alacon-card__link:hover, .alacon-card__link:focus { color: #2F55A8; text-decoration: underline; }
  .alacon-card__more { margin-top: 12px; padding-top: 10px; border-top: 1px solid #C8D5DC; font-size: 13px; color: #324A6D; }
  .alacon-card__more a { color: #3D6BCD; text-decoration: none; margin-left: 10px; }
  .alacon-card__more a:hover { text-decoration: underline; }
}
@media (max-width: 1024px), (hover: none) { .alacon-card { display: none !important; } }

/* Phone number: a tap-to-call link. The logo's full-cover home link sits over it, so lift it above. */
.wpr-logo-description { position: relative; z-index: 3; }
a.alacon-tel { position: relative; z-index: 3; color: inherit; text-decoration: none; }
a.alacon-tel:hover, a.alacon-tel:focus { text-decoration: underline; }

/* One mobile menu: keep the slide-out (Responsive Menu) and hide the Royal Elementor toggle,
   so phones and tablets (1024px and under) show a single hamburger. It is hidden, not removed,
   because the header row takes its height from it and the logo slides off the top without it. */
@media (max-width: 1024px) {
  .wpr-mobile-nav-menu-container { visibility: hidden !important; pointer-events: none !important; }
}
