/* Static-site replacements for behaviour WordPress/Elementor JS used to provide. */

/* Desktop menu: show sub-menus on hover / keyboard focus (was SmartMenus JS) */
.elementor-nav-menu--main .elementor-nav-menu > li:hover > ul,
.elementor-nav-menu--main .elementor-nav-menu > li.oc-hover > ul,
.elementor-nav-menu--main .elementor-nav-menu > li:focus-within > ul {
  display: block;
  left: 0;
  top: 100%;
  z-index: 9999;
  width: auto;
  min-width: 12em;
}

/* Invisible bridge over the gap between a menu item and its drop-down,
   so the menu stays open while the cursor moves down to it */
.elementor-nav-menu--main .elementor-nav-menu > li > ul::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 100%;
  height: 45px;
}

/* Mobile dropdown: sub-menus open when their parent is toggled */
.elementor-nav-menu--dropdown li.oc-open > ul { display: block; }

/* Elementor popup (dialog) wrapper */
.oc-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, .8);
  padding: 20px;
}
.oc-popup[hidden] { display: none !important; }
.oc-popup.dialog-type-lightbox { pointer-events: auto; }
.oc-popup [data-elementor-type="popup"] { display: block !important; width: 100%; }
.oc-popup .dialog-close-button { display: block !important; }
.oc-popup .dialog-widget-content {
  position: relative;
  width: 640px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  overflow: auto;
  animation: ocZoomIn .35s ease;
}
.oc-popup .dialog-close-button {
  position: absolute;
  top: 18px;
  right: 22px;
  z-index: 2;
  font-size: 22px;
  line-height: 1;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}
[data-elementor-type="popup"]:not(.oc-in-popup) { display: none; }
@keyframes ocZoomIn { from { opacity: 0; transform: scale3d(.6, .6, .6); } to { opacity: 1; transform: none; } }

/* Make-column-clickable plugin */
[data-column-clickable] { cursor: pointer; }

/* Toggle widget content is shown by JS; keep closed by default */
.elementor-toggle .elementor-tab-content { display: none; }
.elementor-toggle .elementor-tab-title.elementor-active + .elementor-tab-content { display: block; }

/* Form status message */
.oc-form-note { margin-top: 10px; font-size: 15px; }

/* Respect reduced-motion: show animated elements immediately */
@media (prefers-reduced-motion: reduce) {
  .elementor-invisible { visibility: visible !important; }
}

/* Floating WhatsApp button */
.oc-whatsapp{position:fixed;right:20px;bottom:20px;z-index:9999;width:56px;height:56px;border-radius:50%;background:#25D366;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25);transition:transform .2s ease,box-shadow .2s ease}
.oc-whatsapp:hover,.oc-whatsapp:focus-visible{transform:scale(1.08);box-shadow:0 6px 18px rgba(0,0,0,.3)}
.oc-whatsapp:focus-visible{outline:3px solid #1C3EE5;outline-offset:3px}
@media (max-width:767px){.oc-whatsapp{right:14px;bottom:14px;width:52px;height:52px}}
@media print{.oc-whatsapp{display:none}}

/* Post card thumbnails: fill the card's image area and crop neatly (replaces Elementor's runtime fit logic) */
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail{position:relative;overflow:hidden}
.elementor-posts-container.elementor-has-item-ratio .elementor-post__thumbnail img{position:absolute;top:0;left:0;width:100%!important;height:100%!important;max-width:none;object-fit:cover;transform:none!important}

/* Cookie consent banner */
.oc-cookie{position:fixed;left:20px;bottom:20px;z-index:10000;max-width:420px;background:#fff;color:#1a1a2e;border:1px solid #d9d9e3;border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.18);padding:16px 18px;font-size:14px;line-height:1.5}
.oc-cookie p{margin:0 0 12px}
.oc-cookie a{color:#1C3EE5;text-decoration:underline}
.oc-cookie-btns{display:flex;gap:10px;justify-content:flex-end}
.oc-cookie button{font:inherit;font-weight:600;padding:8px 16px;border-radius:6px;cursor:pointer;border:1px solid #1C3EE5}
.oc-cookie-accept{background:#1C3EE5;color:#fff}
.oc-cookie-decline{background:#fff;color:#1C3EE5}
@media (max-width:767px){.oc-cookie{left:12px;right:84px;bottom:12px;max-width:none}}
@media print{.oc-cookie{display:none}}
