/* ============================================================
   LEVEL UP SMARTER — ANNOUNCEMENT BAR
   Recovered 2026-08-12.

   This CSS used to live inside the Elementor HTML widget in header
   template 36, but its <style> wrapper had been stripped on save, so
   every rule below was inert and ~139 lines of CSS/JS rendered as
   visible text at the top of every page.

   The bar is now emitted on wp_body_open (see lus_render_announce_bar()
   in functions.php) rather than from inside the header template, so it
   sits in normal flow above everything. That removes the need for
   position:fixed and for the per-page-ID top-spacing compensation that
   used to live in wp-custom-css, and it keeps working on the landing
   pages that hide the Elementor header.
   ============================================================ */

#lusAnnounceBarWrap {
  position: relative;
  width: 100%;
  z-index: 999;
}

#lusAnnounceBarWrap.lus-wrap-hidden {
  display: none !important;
}

.lus-announce-bar {
  background: linear-gradient(90deg, #3343f8 0%, #1c266b 100%);
  padding: 10px 50px 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}

.lus-announce-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.06), transparent);
  animation: lusShimmer 3s ease infinite;
  pointer-events: none;
}

@keyframes lusShimmer {
  from { left: -60%; }
  to   { left: 110%; }
}

@media (prefers-reduced-motion: reduce) {
  .lus-announce-bar::before { animation: none; }
}

.lus-announce-badge {
  background: #e02020;
  color: #fff;
  font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

.lus-announce-text {
  font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #fff;
}

.lus-announce-text .lus-highlight { color: #a8b8ff; }

.lus-announce-divider {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.lus-announce-cta {
  background: #fff;
  color: #0e1422 !important;
  font-family: 'Barlow Condensed', 'Arial Black', sans-serif;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 100px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.15s, box-shadow 0.15s;
  flex-shrink: 0;
  white-space: nowrap;
}

.lus-announce-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.lus-announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s;
}

.lus-announce-close:hover,
.lus-announce-close:focus-visible { color: #fff; }

/* ── Small screens ──────────────────────────────────────────
   Reworked 2026-08-12. The bar is the first thing a phone sees and
   at desktop sizing its copy wrapped to four lines — a 158px slab
   above the fold, which the header (position: fixed, see
   lus-mobile.css) then sat on top of.

   Two things were making it tall. The type was sized for a desktop
   row, and Barlow Condensed was never actually loaded outside the
   article pages, so every rule here was being measured in a
   fallback face about 25% wider than the one it was drawn for.
   The font is now enqueued site-wide next to this file
   (lus_enqueue_announce_bar), and the type is tightened below.

   The close button also moves to the top-right corner: centred on
   a wrapped bar it sat in the middle of the text, and its 4px/8px
   padding was well under a 40px tap target.
   ─────────────────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .lus-announce-divider { display: none; }

  .lus-announce-bar {
    gap: 4px 8px;
    padding: 8px 38px 8px 14px;
  }

  .lus-announce-badge {
    font-size: 10px;
    letter-spacing: 1.5px;
    padding: 2px 8px;
  }

  .lus-announce-text {
    font-size: 12px;
    letter-spacing: 0.4px;
    line-height: 1.25;
    text-align: center;
  }

  .lus-announce-cta {
    font-size: 11px;
    letter-spacing: 1.4px;
    padding: 5px 14px;
  }
}

@media (max-width: 767px) {
  .lus-announce-bar {
    padding: 8px 34px 8px 12px;
  }

  .lus-announce-text {
    font-size: 11px;
    letter-spacing: 0.2px;
  }

  .lus-announce-close {
    top: 2px;
    right: 2px;
    transform: none;
    padding: 9px 11px;
    font-size: 15px;
  }
}
