/* =========================================================================
   header-ds.css — Trust bar, topbar, nav, mobile nav, WhatsApp float
   Loaded globally. Trust bar and WhatsApp float use :root tokens directly.
   ========================================================================= */

/* -------------------------------------------------------------------------
   TRUST BAR — static centered row
   ------------------------------------------------------------------------- */
.sh-trust-bar {
  background: var(--sh-teal-50);
  border-bottom: 1px solid var(--sh-teal-100);
  padding: 9px 0;
}
.sh-trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}
.sh-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sh-font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sh-teal-800);
  padding: 0 20px;
  white-space: nowrap;
}
.sh-trust-item svg {
  color: var(--sh-teal-700);
  flex-shrink: 0;
}
.sh-trust-sep {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: var(--sh-teal-100);
  flex-shrink: 0;
}
@media (max-width: 900px) {
  .sh-trust-inner {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0 16px;
  }
  .sh-trust-inner::-webkit-scrollbar { display: none; }
  .sh-trust-item { padding: 0 14px; flex-shrink: 0; }
  .sh-trust-sep { flex-shrink: 0; }
}

/* -------------------------------------------------------------------------
   HEADER — only the nav is sticky; trust bar + topbar scroll away
   ------------------------------------------------------------------------- */
#sh-header {
  position: sticky;
  top: 0;
  z-index: 200;
}
.sh-topbar {
  position: relative;
  z-index: 201;
}

/* -------------------------------------------------------------------------
   NAV — link reset (override Bootstrap/theme underline)
   ------------------------------------------------------------------------- */
.sh .sh-nav-link,
.sh .sh-nav-link:hover,
.sh .sh-nav-link:focus,
.sh .sh-nav-link:visited,
.sh-topbar a,
.sh-topbar a:hover { text-decoration: none !important; }

/* -------------------------------------------------------------------------
   NAV — search input width override
   ------------------------------------------------------------------------- */
.sh .sh-nav-search { width: 220px; }

/* -------------------------------------------------------------------------
   MOBILE NAV — hamburger + panel
   ------------------------------------------------------------------------- */
.sh .sh-nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 6px;
  border-radius: var(--sh-r-sm);
}
.sh .sh-nav-hamburger:hover { background: var(--sh-ink-100); }
.sh .sh-nav-hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--sh-ink-800);
  border-radius: 2px;
  transition: all var(--sh-dur-base) var(--sh-ease);
}
.sh .sh-nav-hamburger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.sh .sh-nav-hamburger.is-open span:nth-child(2) { opacity: 0; }
.sh .sh-nav-hamburger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.sh .sh-mobile-nav {
  display: none;
  border-top: var(--sh-border);
  background: var(--sh-paper);
  padding: 12px 0 20px;
}
.sh .sh-mobile-nav.is-open { display: block; }
.sh .sh-mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 var(--sh-gutter);
}
.sh .sh-mobile-nav-links a {
  display: block;
  padding: 10px 12px;
  font-size: var(--sh-fs-base);
  font-weight: var(--sh-fw-medium);
  color: var(--sh-ink-800);
  border-radius: var(--sh-r-sm);
  text-decoration: none;
}
.sh .sh-mobile-nav-links a:hover { background: var(--sh-ink-100); color: var(--sh-ink-950); text-decoration: none; }
.sh .sh-mobile-nav-links a.is-active { color: var(--sh-teal-800); }
.sh .sh-mobile-nav-divider { height: 1px; background: var(--sh-ink-150); margin: 12px var(--sh-gutter); }
.sh .sh-mobile-nav-actions {
  padding: 8px var(--sh-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sh .sh-mobile-nav-actions .sh-btn { justify-content: center; }
.sh .sh-mobile-nav-contact {
  padding: 16px var(--sh-gutter) 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--sh-font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--sh-ink-500);
  border-top: 1px solid var(--sh-ink-150);
  margin-top: 12px;
}
.sh .sh-mobile-nav-contact a { color: var(--sh-ink-600); text-decoration: none; display: flex; align-items: center; gap: 8px; }
.sh .sh-mobile-nav-contact a:hover { color: var(--sh-ink-900); }
.sh .sh-mobile-nav-contact svg { width: 14px; height: 14px; flex: 0 0 14px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* -------------------------------------------------------------------------
   RESPONSIVE — nav collapses at 900px
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .sh .sh-nav-links  { display: none !important; }
  .sh .sh-nav-search { display: none !important; }
  .sh .sh-nav-hamburger { display: flex; }
  /* Push inquiry + hamburger to the far right with space from the logo */
  .sh .sh-nav-actions { margin-left: auto; gap: 10px; }
}

@media (max-width: 900px) {
  /* Hide "Request quote" CTA from nav on mobile — it lives in the mobile panel */
  .sh .sh-nav-actions .sh-btn-primary { display: none; }
}

@media (max-width: 480px) {
  .sh-topbar { display: none; }
  .sh .sh-nav-inner { padding: 12px 0; }
}

/* -------------------------------------------------------------------------
   WHATSAPP FLOATING BUTTON — pill style
   ------------------------------------------------------------------------- */
.sh-wa-float {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 0;
  height: 48px;
  background: #25D366;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(37,211,102,0.35), 0 2px 6px rgba(0,0,0,0.12);
  color: #fff;
  text-decoration: none;
  overflow: hidden;
  transition: box-shadow 220ms ease, background 220ms ease, transform 220ms ease;
}
.sh-wa-float:hover {
  background: #1ebe5d;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45), 0 2px 8px rgba(0,0,0,0.16);
  transform: translateY(-2px);
  text-decoration: none;
  color: #fff;
}
.sh-wa-float:active { transform: translateY(0); }
.sh-wa-float__icon {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.sh-wa-float__icon svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  transition: transform 220ms ease;
}
.sh-wa-float:hover .sh-wa-float__icon svg { transform: scale(1.1); }
.sh-wa-float__label {
  font-family: var(--sh-font-sans, sans-serif);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  max-width: 0;
  opacity: 0;
  padding-right: 0;
  transition: max-width 300ms ease, opacity 240ms ease, padding-right 300ms ease;
  overflow: hidden;
}
.sh-wa-float:hover .sh-wa-float__label {
  max-width: 130px;
  opacity: 1;
  padding-right: 20px;
}
@media (prefers-reduced-motion: reduce) {
  .sh-wa-float, .sh-wa-float__icon svg { transition: none; }
}

/* -------------------------------------------------------------------------
   FOOTER — supplement to sh-components.css
   ------------------------------------------------------------------------- */
.sh.sh-footer .sh-footer-catalogue {
  background: var(--sh-ink-900);
  border: 1px solid var(--sh-ink-700);
  border-radius: var(--sh-r-sm);
  padding: 16px;
  margin-top: 20px;
}
.sh.sh-footer .sh-footer-catalogue p {
  font-size: var(--sh-fs-xs);
  color: var(--sh-ink-400);
  line-height: 1.55;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .sh.sh-footer .sh-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 640px) {
  .sh.sh-footer .sh-footer-grid { grid-template-columns: 1fr; }
}
