/* Excel Security Systems — one button system for the whole site.
   Loaded LAST on every page so it settles the cascade. Selectors are doubled
   (.btn-primary.btn-primary) to outrank the per-page descendant rules such as
   .featured .btn-gold without resorting to !important.

   Three tiers:
     Primary   gold pill, navy text      — the action you want taken
     Secondary outlined pill, same size  — the alternative, on dark grounds
     Text      gold underline            — tertiary, inline with copy          */

:root {
  --btn-gold: #f0a500;
  --btn-gold-hi: #ffb61f;
  --btn-ink: #14213a;
  --btn-radius: 999px;
}

/* ---- shared geometry --------------------------------------------------- */
.btn-primary.btn-primary,
.btn-gold.btn-gold,
.eq-btn.eq-btn,
.promo-cta.promo-cta,
.form-submit.form-submit,
.rs-btn-orange.rs-btn-orange,
.nav-cta.nav-cta,
.btn-secondary.btn-secondary,
.rs-pill.rs-pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: var(--btn-radius);
  padding: 14px 30px;
  font-family: inherit; font-size: 15px; font-weight: 700; letter-spacing: 0.2px;
  line-height: 1.2; text-align: center; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

/* ---- primary ----------------------------------------------------------- */
.btn-primary.btn-primary,
.btn-gold.btn-gold,
.eq-btn.eq-btn,
.promo-cta.promo-cta,
.form-submit.form-submit,
.rs-btn-orange.rs-btn-orange,
.nav-cta.nav-cta {
  background: var(--btn-gold);
  background-image: none;          /* drops the old orange gradient */
  color: var(--btn-ink);
}
.btn-primary.btn-primary:hover,
.btn-gold.btn-gold:hover,
.eq-btn.eq-btn:hover,
.promo-cta.promo-cta:hover,
.form-submit.form-submit:hover,
.rs-btn-orange.rs-btn-orange:hover,
.nav-cta.nav-cta:hover {
  background: var(--btn-gold-hi);
  color: var(--btn-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 33, 58, 0.18);
}

/* The quote form's submit stays full width; only its looks change. */
.form-submit.form-submit { width: 100%; }

/* ---- secondary: outlined, for dark grounds ----------------------------- */
.btn-secondary.btn-secondary,
.rs-pill.rs-pill {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
}
.btn-secondary.btn-secondary:hover,
.rs-pill.rs-pill:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
  transform: translateY(-1px);
}
/* The circle arrow keeps its place inside the pill */
.rs-pill.rs-pill { padding-right: 8px; }
.rs-pill .circ {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--btn-gold); background-image: none;
  color: var(--btn-ink); font-size: 12px;
}

/* ---- text tier --------------------------------------------------------- */
.btn-ghost.btn-ghost,
.eq-all.eq-all,
.fb-visit.fb-visit,
.rs-more a {
  display: inline-block;
  background: none; border: 0; border-radius: 0;
  padding: 0 0 3px; 
  font-family: inherit; font-size: 15px; font-weight: 700;
  color: var(--btn-ink); text-decoration: none;
  border-bottom: 2px solid #c8901a;
  transition: color 0.2s;
}
.btn-ghost.btn-ghost:hover,
.eq-all.eq-all:hover,
.fb-visit.fb-visit:hover,
.rs-more a:hover { color: #c8901a; }

/* On dark grounds the text tier flips to white */
.cta-section .btn-ghost.btn-ghost,
.rs-app .btn-ghost.btn-ghost { color: #fff; }

/* ---- focus ------------------------------------------------------------- */
.btn-primary:focus-visible, .btn-secondary:focus-visible, .btn-ghost:focus-visible,
.btn-gold:focus-visible, .eq-btn:focus-visible, .eq-all:focus-visible,
.promo-cta:focus-visible, .form-submit:focus-visible, .nav-cta:focus-visible,
.rs-btn-orange:focus-visible, .rs-pill:focus-visible, .rs-more a:focus-visible {
  outline: 2px solid var(--btn-gold); outline-offset: 3px;
}

@media (max-width: 768px) {
  .btn-primary.btn-primary, .btn-gold.btn-gold, .eq-btn.eq-btn, .promo-cta.promo-cta,
  .rs-btn-orange.rs-btn-orange, .nav-cta.nav-cta,
  .btn-secondary.btn-secondary, .rs-pill.rs-pill {
    padding: 12px 24px; font-size: 14.5px;
  }
  /* long labels may need to wrap rather than overflow the screen */
  .btn-primary.btn-primary, .btn-secondary.btn-secondary { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .btn-primary, .btn-secondary, .btn-gold, .eq-btn, .promo-cta, .form-submit,
  .nav-cta, .rs-btn-orange, .rs-pill { transition: none !important; transform: none !important; }
}

/* NON-INTERACTIVE TILES --------------------------------------------------
   Every selector below is a static card, chip or stat tile: a <div>, <span>
   or <li> with no href, no onclick and no handler. Several of them lift and
   glow on hover, which reads as "click me", and the pointer then turned into
   the text I-beam over them - the look of a link that has gone dead. An arrow
   is the honest cursor for a tile you cannot click; text inside stays
   selectable either way.

   Nested <a> and <button> are unaffected: a UA rule matching the element
   itself outranks a value inherited from the tile, so links keep the hand.

   Do NOT add a clickable tile here. a.pcard (183 catalogue cards), a.eq-card,
   a.fb-card and .service-card (onclick -> window.location) are real targets
   and keep cursor: pointer. */
.feature-card, .screen-card, .rule-card, .svc-card, .review-card,
.plan-card, .scenario-card, .ac-card, .compare-card, .equip-card,
.usecase-card, .promo-card, .maint-card, .step-card, .cap-block,
.business-card, .guarantee-box, div.pcard,
.rs-chip, .pchip, .eq-stat, .stats .stat, .trust-item, .trust-bar-item,
.contact-item, .details-item {
  cursor: default;
}

/* FLOATING QUOTE BUTTON + MODAL ------------------------------------------
   A persistent call to action in the bottom-right corner, in the shape people
   already recognise from chat widgets. Markup is created by quote-widget.js,
   so these are the only styles it needs; everything is prefixed qq- to stay
   clear of the page forms. */
.qq-fab {
  position: fixed; z-index: 900;
  right: max(20px, env(safe-area-inset-right, 0px));
  bottom: max(20px, env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px 14px 18px; border: 0; border-radius: 999px;
  background: var(--btn-gold, #f0a500); color: #14213a;
  font-family: inherit; font-size: 15px; font-weight: 800; letter-spacing: -0.01em;
  cursor: pointer; box-shadow: 0 10px 30px rgba(20, 33, 58, 0.26);
  transition: transform 0.22s ease, box-shadow 0.18s ease, background 0.18s ease,
              opacity 0.22s ease, visibility 0.22s;
}
.qq-fab svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.qq-fab:hover { background: #ffb61f; transform: translateY(-2px); box-shadow: 0 16px 38px rgba(20, 33, 58, 0.32); }
.qq-fab:focus-visible { outline: 3px solid #14213a; outline-offset: 3px; }
/* stand down while a video lightbox is up */
body.vb-lock .qq-fab, body.qq-lock .qq-fab { display: none; }
body.qq-lock { overflow: hidden; }

.qq-modal {
  position: fixed; inset: 0; z-index: 1200;
  display: flex; align-items: center; justify-content: center;
  padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px))
           max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: rgba(8, 16, 34, 0.62);
  opacity: 0; transition: opacity 0.18s ease;
}
.qq-modal.open { opacity: 1; }
.qq-card {
  position: relative; width: 100%; max-width: 520px;
  max-height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: #fff; border-radius: 14px; padding: 30px 30px 26px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  transform: translateY(10px); transition: transform 0.18s ease;
}
.qq-modal.open .qq-card { transform: translateY(0); }
.qq-close {
  position: absolute; top: 12px; right: 14px;
  width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: #6b7280; font-size: 26px; line-height: 1; cursor: pointer;
}
.qq-close:hover, .qq-close:focus-visible { background: #f1efe9; color: #14213a; outline: none; }
.qq-card h2 {
  font-family: var(--font-display, inherit); font-size: 24px; font-weight: 800;
  letter-spacing: -0.02em; color: #14213a; margin: 0 34px 8px 0;
}
.qq-sub { font-size: 14.5px; line-height: 1.55; color: #6b7280; margin: 0 0 20px; }
.qq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.qq-group { margin-bottom: 14px; min-width: 0; }
.qq-group label {
  display: block; font-size: 12.5px; font-weight: 700; letter-spacing: 0.02em;
  color: #14213a; margin-bottom: 6px;
}
.qq-group input, .qq-group select, .qq-group textarea {
  width: 100%; padding: 11px 13px; border: 1px solid #d9d3c7; border-radius: 7px;
  font-family: inherit; font-size: 15px; color: #14213a; background: #fff;
}
.qq-group textarea { resize: vertical; min-height: 76px; }
.qq-group input:focus, .qq-group select:focus, .qq-group textarea:focus {
  outline: none; border-color: var(--btn-gold, #f0a500);
  box-shadow: 0 0 0 3px rgba(240, 165, 0, 0.18);
}
.qq-submit {
  width: 100%; margin-top: 4px; padding: 14px; border: 0; border-radius: 7px;
  background: var(--btn-gold, #f0a500); color: #14213a;
  font-family: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
  transition: background 0.18s ease;
}
.qq-submit:hover { background: #ffb61f; }
.qq-fine { font-size: 12.5px; line-height: 1.5; color: #8a857a; text-align: center; margin: 12px 0 0; }

@media (max-width: 560px) {
  /* the label is the whole point of the button, so it stays - only the
     padding and type size come down to keep it off the opposite edge */
  .qq-fab { padding: 12px 17px 12px 14px; font-size: 13.5px; gap: 8px; }
  .qq-fab svg { width: 18px; height: 18px; }
  /* the hero is busy enough on a phone - let the pill arrive after it */
  .qq-fab.qq-away {
    opacity: 0; visibility: hidden; pointer-events: none;
    transform: translateY(16px) scale(0.94);
  }
  .qq-card { padding: 26px 20px 22px; border-radius: 12px; }
  .qq-row { grid-template-columns: 1fr; gap: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .qq-fab, .qq-modal, .qq-card { transition: none; }
}

/* TOP BAR ----------------------------------------------------------------
   A thin strip above the nav carrying the company line. The nav is fixed at
   top:0 on every page, so the bar is fixed too and the nav is pushed down by
   its height; .topbar-pad restores the same amount of flow space, since each
   page bakes its own clearance for the nav into its first section rather than
   padding the body. The sibling selector means pages without the bar keep
   their nav at top:0 untouched. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 101;
  height: 34px; display: flex; align-items: center; justify-content: center;
  padding: 0 max(14px, env(safe-area-inset-right, 0px)) 0 max(14px, env(safe-area-inset-left, 0px));
  background: #14213a; color: rgba(255, 255, 255, 0.86);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em; line-height: 1;
  text-align: center;
}
.topbar b { font-weight: 700; color: #fff; }
.topbar .sep { color: rgba(255, 255, 255, 0.34); margin: 0 9px; }
.topbar-pad { height: 34px; }
.topbar ~ nav { top: 34px; }
.topbar .tb-short { display: none; }

@media (max-width: 720px) {
  .topbar { height: 30px; font-size: 11.5px; }
  .topbar-pad { height: 30px; }
  .topbar ~ nav { top: 30px; }
  /* the full line wraps below roughly 700px, so swap in a shorter one */
  .topbar .tb-full { display: none; }
  .topbar .tb-short { display: inline; }
}

/* MOBILE: SWIPE RAILS ----------------------------------------------------
   Card grids collapse to one or two columns on a phone, which turned the
   catalogue into 26 screens of scrolling. These grids become horizontal
   rails instead - the same idiom the reviews and Facebook strips already
   use - so each group costs one card's height rather than one per card.
   Only picture-led cards are converted; text blocks (feature cards,
   comparisons, pricing, step lists) stay stacked, where reading beats
   compactness.
   The negative margin lets a rail run to both screen edges while its first
   card stays aligned with the text above it, and the part-visible card at
   the right edge is what tells people it scrolls. */
@media (max-width: 720px) {
  .pgrid, .related-grid, .eq-grid, .ac-grid, .rs-videos, .cap-grid,
  .features-grid, .screens-grid, .rules-grid, .scenarios-grid,
  .usecase-grid, .equip-grid, .steps-grid, .maint-grid {
    display: flex; flex-wrap: nowrap;
    gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: -5vw; margin-right: -5vw;
    padding-left: 5vw; padding-right: 5vw; padding-bottom: 2px;
    /* without this, scroll-snap aligns the first card to the scrollport edge
       and scrolls straight past the left padding on load, so the rail starts
       flush to the screen instead of lining up with the text above it */
    scroll-padding-left: 5vw; scroll-padding-right: 5vw;
  }
  .pgrid::-webkit-scrollbar, .related-grid::-webkit-scrollbar, .eq-grid::-webkit-scrollbar,
  .ac-grid::-webkit-scrollbar, .rs-videos::-webkit-scrollbar, .cap-grid::-webkit-scrollbar,
  .features-grid::-webkit-scrollbar, .screens-grid::-webkit-scrollbar,
  .rules-grid::-webkit-scrollbar, .scenarios-grid::-webkit-scrollbar,
  .usecase-grid::-webkit-scrollbar, .equip-grid::-webkit-scrollbar,
  .steps-grid::-webkit-scrollbar, .maint-grid::-webkit-scrollbar { display: none; }

  .pgrid > *, .related-grid > *, .eq-grid > *, .ac-grid > *, .rs-videos > *,
  .cap-grid > *, .features-grid > *, .screens-grid > *, .rules-grid > *,
  .scenarios-grid > *, .usecase-grid > *, .equip-grid > *, .steps-grid > *,
  .maint-grid > * {
    flex: 0 0 auto; scroll-snap-align: start;
  }
  /* picture-led tiles can be narrow; cards carrying a paragraph need the width */
  .pgrid > *, .related-grid > *, .cap-grid > * { width: 66vw; max-width: 250px; }
  .eq-grid > * { width: 44vw; max-width: 185px; }
  .ac-grid > * { width: 70vw; max-width: 280px; }
  .rs-videos > * { width: 78vw; max-width: 320px; }
  .features-grid > *, .scenarios-grid > *, .rules-grid > *,
  .usecase-grid > *, .steps-grid > *, .maint-grid > * { width: 78vw; max-width: 300px; }
  .screens-grid > *, .equip-grid > * { width: 70vw; max-width: 270px; }
  /* cards in a rail are side by side, so they must share a height */
  .features-grid > *, .scenarios-grid > *, .rules-grid > *, .usecase-grid > *,
  .steps-grid > *, .maint-grid > *, .equip-grid > * { align-self: stretch; }

  /* the rails give the height back, so the bands can breathe less */
  .rs-section { padding: 52px 5%; }
  .rs-head { margin-bottom: 28px; }
  .cat-block + .cat-block { margin-top: 44px; }
}
