/* =============================================
   ULTRAGUARD — APP-NAV (mobile bottom tab bar) CSS
   Include AFTER header.css / footer.css (needs the same
   :root tokens — --red, --ink, --white, --radius etc.
   If this is the only file you're adding today and
   header.css/footer.css are already on the page, you
   don't need to redeclare :root here).
============================================= */

:root {
  --red:       #d91c1c;
  --red-dark:  #a81515;
  --ink:       #0c0c0c;
  --white:     #ffffff;
}

/* Hidden by default — this is a MOBILE-ONLY pattern */
.app-nav {
  display: none;
}

@media (max-width: 767px) {
  .app-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 400; /* below any open mobile menu (z-index 300 is nav-menu,
                     but app-nav should still sit above page content) */
    height: 64px;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0px));
    background: #0c0c0e;
    border-top: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 -8px 30px rgba(0,0,0,.35);
  }

  .app-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
    flex: 1;
    min-width: 0;
    height: 100%;
    color: rgba(255,255,255,.55);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .02em;
    text-transform: uppercase;
    padding-bottom: 4px;
    transition: color .15s ease;
  }

  .app-nav__item i {
    font-size: 18.4px;
    line-height: 1;
  }

  .app-nav__item span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .app-nav__item:hover,
  .app-nav__item:active {
    color: #fff;
  }

  .app-nav__item.is-active {
    color: var(--red);
  }

  /* Centre "Quote" item — raised red circular bubble, floats above the bar */
  .app-nav__item--cta {
    position: relative;
    color: rgba(255,255,255,.85);
    font-size: 15px;
  }

  .app-nav__cta-bubble {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 4px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 10px 24px rgba(217,28,28,.45), 0 0 0 5px #0c0c0e;
    transform: translateY(-14px);
    transition: transform .18s ease, background .18s ease;
  }

  .app-nav__cta-bubble i {
    font-size: 20.8px;
    color: #fff;
  }

  .app-nav__item--cta:active .app-nav__cta-bubble,
  .app-nav__item--cta:hover .app-nav__cta-bubble {
    background: var(--red-dark);
    transform: translateY(-16px) scale(1.05);
  }

  /* Stop page content (and the site footer) from being hidden behind the bar */
  body {
    padding-bottom: 64px;
  }

  /* Keep the WhatsApp float button clear of the bottom bar */
  .wa-float {
    bottom: calc(64px + 14px);
    right: 16px;
    width: 50px;
    height: 50px;
  }
  .wa-float img {
    width: 30px;
    height: 30px;
  }
}

/* Very small phones — trim further so 5 items never crowd/overlap */
@media (max-width: 340px) {
  .app-nav__item { font-size: 15px; }
  .app-nav__item i { font-size: 16.8px; }
  .app-nav__cta-bubble { width: 46px; height: 46px; }
  .app-nav__cta-bubble i { font-size: 18.4px; }
}