/* Display Systems & Prints — CRO layer.
 *
 * A separate stylesheet on purpose. assets/css/main.css is the approved
 * design file and stays byte-for-byte as delivered, so a future design
 * revision can still be dropped straight in over it. Everything here uses
 * that file's own tokens, so it re-themes with the rest of the site.
 */

/* =====================================================================
 * Sticky action bar — phones only
 *
 * The single biggest conversion gap on this site was mobile: the enquiry
 * buttons all sit inside sections you have to scroll to. This puts calling
 * and quoting one thumb-reach away at all times.
 * ===================================================================== */
.dsp-sticky {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 990;                      /* under the popup (1000), over the page */
  gap: 8px;
  padding: 9px 10px calc(9px + env(safe-area-inset-bottom, 0px));
  /* The chatbot bubble floats bottom-right. Leaving it a lane means neither
     one covers the other, on any phone width. */
  padding-right: 76px;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 24px -12px rgba(20, 23, 26, .28);
}

.dsp-sticky__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 0;
  min-height: 46px;                  /* comfortably above the 44px tap target */
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}

.dsp-sticky__item svg { flex: 0 0 auto; }

.dsp-sticky__item--call { color: var(--accent-ink); }
.dsp-sticky__item--call svg { width: 17px; height: 17px; }

.dsp-sticky__item--wa {
  color: #128C7E;
  border-color: rgba(18, 140, 126, .35);
}

.dsp-sticky__item--quote {
  flex: 1.35 1 0;                    /* the money button gets the room */
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 55%, var(--blue-dark) 100%);
  border-color: transparent;
  color: var(--white);
  box-shadow: 0 6px 18px -6px rgba(0, 109, 177, .55);
}

.dsp-sticky__item--quote:hover { color: var(--white); }

@media (max-width: 860px) {
  .dsp-sticky { display: flex; }
  /* Keep the last of the footer reachable above the bar. */
  body { padding-bottom: 68px; }
}

/* A phone in landscape has almost no height to spare. */
@media (max-width: 860px) and (max-height: 450px) {
  .dsp-sticky { display: none; }
  body { padding-bottom: 0; }
}

/* =====================================================================
 * Floating quote tab — desktop only
 *
 * Bottom-left, because the chatbot owns bottom-right.
 * ===================================================================== */
.dsp-quote-tab {
  display: none;
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 990;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 0;
  border-radius: 100px;
  background: linear-gradient(135deg, var(--blue-bright) 0%, var(--blue) 55%, var(--blue-dark) 100%);
  color: var(--white);
  font-family: inherit;
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--sh-lg), 0 8px 24px -8px rgba(0, 109, 177, .6);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}

.dsp-quote-tab:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-lg), 0 14px 30px -10px rgba(0, 109, 177, .65);
}

@media (min-width: 861px) {
  .dsp-quote-tab { display: inline-flex; }
}

@media (prefers-reduced-motion: reduce) {
  .dsp-quote-tab { transition: none; }
  .dsp-quote-tab:hover { transform: none; }
}

/* Never print the floating furniture. */
@media print {
  .dsp-sticky,
  .dsp-quote-tab { display: none !important; }
}

/* =====================================================================
 * End-of-article enquiry card
 * ===================================================================== */
.dsp-cta-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  margin: 40px 0 8px;
  padding: 28px 30px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: var(--r-lg);
  background: var(--wash);
}

.dsp-cta-card__body { flex: 1 1 320px; }

.dsp-cta-card__body h3 {
  margin: 0 0 6px;
  font-size: var(--fs-h3);
  color: var(--ink);
}

.dsp-cta-card__body p {
  margin: 0;
  color: var(--body);
  font-size: var(--fs-base);
}

.dsp-cta-card__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  flex: 0 0 auto;
}

.dsp-cta-card__tel,
.dsp-cta-card__wa {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

.dsp-cta-card__tel:hover,
.dsp-cta-card__wa:hover { text-decoration: underline; }

@media (max-width: 768px) {
  .dsp-cta-card { padding: 24px 22px; }
  .dsp-cta-card__actions { width: 100%; align-items: stretch; }
  .dsp-cta-card__actions .btn { width: 100%; }
  .dsp-cta-card__tel,
  .dsp-cta-card__wa { text-align: center; }
}

/* =====================================================================
 * [dsp_cta] — a button dropped into page or article content
 * ===================================================================== */
.dsp-cta-inline { margin: 26px 0; }
.dsp-cta-inline--center { text-align: center; }
.dsp-cta-inline--right { text-align: right; }

/* =====================================================================
 * Popup
 *
 * The wording is swapped per button, so the heading has to survive two
 * lines without the layout jumping, and the whole panel has to stay
 * reachable above the sticky bar on a short screen.
 * ===================================================================== */
.popup h3 { text-wrap: balance; }

@media (max-width: 860px) {
  .popup-overlay { align-items: flex-start; padding-top: 24px; padding-bottom: 76px; }
}

/* =====================================================================
 * Inner-page hero button
 *
 * .hero__actions is the design's own class, used by the home page hero, so
 * the button already looks right. The only thing missing is the top margin
 * the home page gets from .hero__sub, which inner pages may not have.
 * ===================================================================== */
.hero--inner .hero__actions { margin-top: 30px; }
.hero--inner .hero__sub + .hero__actions { margin-top: 4px; }

@media (max-width: 600px) {
  .hero--inner .hero__actions .btn { width: 100%; }
}
