/*
 * Call / WhatsApp buttons, phone action bar, header quote button and the
 * quick enquiry popup extras. Kept separate from style.css on purpose.
 */

/* header "Get a Free Quote" (large screens only, so the phone header stays as it is) */
.ws-header-cta { display: none; }
@media (min-width: 992px) {
  .ws-header-cta {
    display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
    padding: 9px 18px !important; font-size: .86rem !important; border-radius: 999px !important; margin-left: 4px;
  }
}

/* floating buttons (tablet & desktop) */
.ws-float { position: fixed; right: 22px; bottom: 22px; z-index: 990; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.ws-float-btn {
  display: inline-flex; align-items: center; gap: 0; height: 56px; min-width: 56px; padding: 0 17px; border-radius: 999px;
  color: #fff !important; text-decoration: none; font-weight: 700; font-size: .9rem; overflow: hidden;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .28); transition: gap .25s ease, padding .25s ease, transform .2s ease;
}
.ws-float-btn i { font-size: 1.4rem; line-height: 1; }
.ws-float-btn span { max-width: 0; opacity: 0; white-space: nowrap; transition: max-width .25s ease, opacity .2s ease; }
.ws-float-btn:hover, .ws-float-btn:focus-visible { gap: 10px; padding: 0 22px; transform: translateY(-2px); color: #fff; }
.ws-float-btn:hover span, .ws-float-btn:focus-visible span { max-width: 140px; opacity: 1; }
.ws-float-wa { background: #25D366; }
.ws-float-wa::after { content: ''; position: absolute; inset: 0; border-radius: inherit; animation: ws-pulse 2.6s ease-out infinite; pointer-events: none; }
.ws-float-wa { position: relative; }
.ws-float-call { background: linear-gradient(135deg, #F05A24 0%, #FFAA3A 100%); }
@keyframes ws-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, .5); } 70% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); } }
@media (prefers-reduced-motion: reduce) { .ws-float-wa::after { animation: none; } }

/* bottom action bar (phones) */
.ws-mobile-bar { display: none; }
@media (max-width: 767px) {
  .ws-float { display: none; }
  .ws-mobile-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 990;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    background: rgba(8, 11, 18, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .1);
  }
  [data-theme="light"] .ws-mobile-bar { background: rgba(255, 255, 255, .96); border-top-color: rgba(15, 23, 42, .1); }
  .ws-mobile-bar a, .ws-mobile-bar button {
    display: flex; align-items: center; justify-content: center; gap: 7px; height: 46px; border-radius: 12px; border: 0;
    font-weight: 700; font-size: .86rem; text-decoration: none; color: #fff !important; cursor: pointer;
    background: linear-gradient(135deg, #F05A24 0%, #FFAA3A 100%);
  }
  .ws-mobile-bar .is-wa { background: #25D366; }
  .ws-mobile-bar .is-quote { background: #1D2433; border: 1px solid rgba(255, 255, 255, .14); }
  [data-theme="light"] .ws-mobile-bar .is-quote { background: #1B2233; }
  .ws-mobile-bar i { font-size: 1.05rem; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  body.quote-modal-active .ws-mobile-bar { display: none; }
}

/* quick enquiry popup extras */
.ws-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.ws-optional { font-weight: 500; opacity: .7; text-transform: none; letter-spacing: 0; }
.ws-form-note { margin: 10px 0 0; font-size: .78rem; text-align: center; opacity: .75; }
.quote-modal .btn-success { background: #25D366; border-color: #25D366; color: #fff; }
@media (max-width: 575px) {
  .quote-modal { padding: 12px; align-items: flex-end; }
  .quote-modal-dialog { max-height: 92vh; overflow-y: auto; }
}

/* keep the desktop menu on one line now that it has Portfolio + the quote button */
@media (min-width: 992px) {
  .main-nav-panel .navbar-nav .nav-link { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-right-group { gap: 14px; }
  .main-nav-panel .navbar-nav .nav-link { padding: 8px 9px !important; font-size: .86rem !important; }
  .ws-header-cta .ws-cta-long { display: none; }
}
