/* ==========================================================================
   PRISM — Utilities
   ========================================================================== */

.center-text { text-align: center; }
.mx-auto { margin-inline: auto; }
.hidden { display: none !important; }

@media (max-width: 640px) { .hide-mobile { display: none !important; } }
@media (min-width: 641px) { .show-mobile { display: none !important; } }

/* Body scroll lock while mobile nav is open */
body.no-scroll { overflow: hidden; }

/* Announcement bar dismissed → header sits flush at top */
body.no-announce .announce { display: none; }


/* =========================================================================
   Hywiz additions — appended last in the core chain so nothing above moves.
   ========================================================================= */

/* --- Brand logo: theme-aware pair + hard size cap ------------------------
   Sizing is deliberately NOT scoped to a page type, so it also holds on
   WooCommerce templates where Woo's own img rules would otherwise let the
   logo render at intrinsic size. */
.brand__logo {
  display: block;
  height: 50px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
}
.brand__logo--dark { display: none; }
[data-theme="dark"] .brand__logo--light { display: none; }
[data-theme="dark"] .brand__logo--dark { display: block; }

@media (max-width: 640px) {
  .brand__logo { height: 40px; max-width: 190px; }
}
@media (max-width: 380px) {
  .brand__logo { height: 36px; max-width: 165px; }
}
@media (max-width: 380px) {
  .brand__logo { height: 36px; max-width: 165px; }
}

/* --- Footer agency credit ---------------------------------------------
   One continuous sentence with the copyright: a plain inline span, so it
   wraps as ordinary prose at every width instead of shattering into flex
   items. The heart stays a literal emoji character (the theme removes WP's
   emoji script, so nothing rewrites it into an external image). */
.footer-credit { display: inline; }
.footer-credit__heart {
  font-size: .95em;
  line-height: 1;
  vertical-align: -1px;
  font-style: normal;
}

/* --- Sticky WhatsApp widget -------------------------------------------- */
.hz-sticky {
  position: fixed;
  bottom: 20px;
  z-index: 900;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #25D366;
  color: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .22);
  transition: transform .18s ease, box-shadow .18s ease;
}
.hz-sticky--right { right: 20px; }
.hz-sticky--left { left: 20px; }
.hz-sticky svg { width: 28px; height: 28px; fill: currentColor; display: block; }
.hz-sticky:hover, .hz-sticky:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(0, 0, 0, .28); }
@media (prefers-reduced-motion: reduce) { .hz-sticky { transition: none; } }

/* Keep the last footer line clear of the floating button at narrow widths. */
@media (max-width: 640px) {
  body.has-sticky-right .footer__bottom { padding-right: 82px; }
  body.has-sticky-left .footer__bottom { padding-left: 82px; }
}

/* WhatsApp floating button - Smooth hide when reaching footer on mobile */
.nuvexa-wa-float {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease !important;
}

@media (max-width: 768px) {
  .nuvexa-wa-float.hide-on-footer,
  .hz-sticky.hide-on-footer {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(28px) scale(0.85) !important;
    pointer-events: none !important;
  }
}

/* WhatsApp floating button - Smooth hide when reaching footer on mobile */
.nuvexa-wa-float {
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.25s ease !important;
}

@media (max-width: 768px) {
  .nuvexa-wa-float.hide-on-footer,
  .hz-sticky.hide-on-footer {
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(28px) scale(0.85) !important;
    pointer-events: none !important;
  }
}

