/* ===== Sinalda site header (replaces Elementor header) ===== */
.sh, .sh-skip {
  --sh-navy: #16163f;
  --sh-blue: #01579b;
  --sh-blue-dark: #013f70;
  --sh-cyan: #01c4fc;
  --sh-ink: #16163f;
  --sh-muted: #5b6275;
  --sh-line: #e4e8ef;
  --sh-soft: #f4f7fb;
  --sh-wrap: 1350px; /* same as the page content container */
  --sh-ease: cubic-bezier(.2, .7, .2, 1);
  font-family: Montserrat, system-ui, sans-serif;
}
.sh *, .sh *::before, .sh *::after { box-sizing: border-box; }
.sh ul { list-style: none; margin: 0; padding: 0; }
.sh p { margin: 0; }
.sh a { text-decoration: none; color: inherit; }
.sh button { font: inherit; color: inherit; background: none; border: 0; padding: 0; margin: 0; cursor: pointer; border-radius: 0; text-transform: none; letter-spacing: normal; }
.sh button:hover, .sh button:focus { background: none; color: inherit; }
.sh svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sh :focus-visible { outline: 2px solid var(--sh-cyan); outline-offset: 2px; }
.sh-vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sh-wrap { max-width: var(--sh-wrap); margin-inline: auto; padding-inline: 10px; }

.sh-skip { position: absolute; left: 12px; top: -100px; z-index: 10000; background: var(--sh-navy); color: #fff; padding: 10px 16px; font-weight: 600; }
.sh-skip:focus { top: 12px; color: #fff; }

/* Anchor jumps land below the sticky bar (replaces the old #theVeryMainHeader script) */
html { scroll-padding-top: 96px; }

/* Sticky: the notice + utility rows scroll away, the main bar stays */
.sh { position: sticky; top: calc(var(--sh-offset, 0px) * -1); z-index: 1000; }

/* Notice */
.sh-notice { background: var(--sh-cyan); color: var(--sh-navy); font-size: 13px; font-weight: 500; text-align: center; }
.sh-notice .sh-wrap { padding-block: 7px; }
.sh-notice a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Utility bar */
.sh-utility { background: var(--sh-blue); color: #fff; font-size: 13px; }
.sh-utility .sh-wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.sh-contact { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.sh-contact li, .sh-contact a { display: inline-flex; align-items: center; gap: 8px; }
.sh-contact a:hover { color: var(--sh-cyan); }
.sh-contact svg { font-size: 14px; opacity: .85; }
.sh-search form { display: flex; align-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); padding: 2px 4px 2px 14px; transition: background .2s, border-color .2s; }
.sh-search form:focus-within { background: #fff; border-color: #fff; }
.sh-search input { all: unset; width: 200px; font-size: 13px; color: #fff; padding-block: 5px; }
.sh-search input::placeholder { color: rgba(255,255,255,.75); }
.sh-search form:focus-within input { color: var(--sh-ink); }
.sh-search form:focus-within input::placeholder { color: var(--sh-muted); }
.sh-search button { display: grid; place-items: center; width: 30px; height: 30px; }
.sh-search button svg { font-size: 16px; }
.sh-search form:focus-within button { color: var(--sh-blue); }

/* Main bar */
.sh-main { background: rgba(255,255,255,.96); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--sh-line); transition: box-shadow .25s; position: relative; }
.sh.is-stuck .sh-main { box-shadow: 0 6px 24px -12px rgba(22,22,63,.25); }
.sh-main > .sh-wrap { display: flex; align-items: stretch; gap: 24px; min-height: 84px; transition: min-height .25s var(--sh-ease); }
.sh.is-stuck .sh-main > .sh-wrap { min-height: 68px; }
.sh-logo { display: block; flex: none; align-self: center; }
.sh-logo img { display: block; height: 58px; width: auto; transition: height .25s var(--sh-ease); }
.sh.is-stuck .sh-logo img { height: 46px; }

/* Desktop nav */
.sh-nav { flex: 1; display: flex; align-items: stretch; }
.sh-nav-in { display: contents; }
.sh-menu { display: flex; align-items: stretch; margin-left: auto !important; }
.sh-menu > .sh-item { display: flex; }
.sh .sh-trigger { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 15px; font-weight: 500; color: var(--sh-ink); position: relative; white-space: nowrap; }
.sh-menu > .sh-item > .sh-trigger::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -1px; height: 3px; background: var(--sh-blue); transform: scaleX(0); transition: transform .2s var(--sh-ease); }
.sh-menu > .sh-item > .sh-trigger:hover, .sh-menu > .sh-item > .sh-trigger[aria-expanded="true"] { color: var(--sh-blue); }
.sh-menu > .sh-item > .sh-trigger:hover::after, .sh-menu > .sh-item > .sh-trigger[aria-expanded="true"]::after { transform: scaleX(1); }
.sh-chev { font-size: 13px; opacity: .6; transition: transform .25s var(--sh-ease); }
.sh-trigger[aria-expanded="true"] .sh-chev { transform: rotate(180deg); }

.sh-cta { align-self: center; margin-left: 18px; }
.sh .sh-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--sh-blue); color: #fff; font-weight: 600; font-size: 15px; padding: 12px 20px; transition: background .2s; white-space: nowrap; }
.sh .sh-btn:hover, .sh .sh-btn:focus { background: var(--sh-blue-dark); color: #fff; }

/* Panels (shared) */
.sh-item { position: relative; }
.sh-panel { visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .18s var(--sh-ease), transform .18s var(--sh-ease), visibility 0s linear .18s; }
.sh-item.is-open > .sh-panel { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sh-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--sh-muted); margin-bottom: 12px !important; }

/* Mega panel (Products) spans the full header width */
.sh-item:has(> .sh-mega) { position: static; }
.sh-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--sh-line); box-shadow: 0 24px 48px -24px rgba(22,22,63,.3); }
.sh-mega .sh-panel-body { max-width: var(--sh-wrap); margin-inline: auto; padding: 32px 10px; }
.sh-mega-grid { display: grid; grid-template-columns: 1fr 270px; gap: 32px; }
.sh-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.sh-cards a { display: flex; gap: 12px; align-items: flex-start; padding: 12px; transition: background .15s; }
.sh-cards a:hover { background: var(--sh-soft); }
.sh-cards strong { display: block; font-size: 14px; line-height: 1.3; font-weight: 600; color: var(--sh-ink); margin-bottom: 2px; }
.sh-cards small { display: block; font-family: "Open Sans", system-ui, sans-serif; font-size: 13px; line-height: 1.45; color: var(--sh-muted); }
.sh-cards a:hover strong { color: var(--sh-blue); }
.sh-ico { display: grid; place-items: center; width: 40px; height: 40px; flex: none; background: #e6f2fb; color: var(--sh-blue); font-size: 20px; }
.sh-promo { background: linear-gradient(150deg, var(--sh-blue), var(--sh-navy)); color: #fff; padding: 28px; display: flex; flex-direction: column; gap: 12px; font-family: "Open Sans", system-ui, sans-serif; font-size: 14px; line-height: 1.5; }
.sh-promo-title { font-family: Montserrat, sans-serif; font-size: 18px; font-weight: 700; }
.sh-promo .sh-btn { background: #fff; color: var(--sh-blue); align-self: flex-start; margin-top: 4px; }
.sh-promo .sh-btn:hover, .sh-promo .sh-btn:focus { background: var(--sh-navy); color: #fff; }

/* Desktop mega menu: eight even tiles, four across and two down, at the old tile height.
   Small icon beside the title, description underneath, each on one line. */
@media (min-width: 1241px) {
  .sh-mega .sh-panel-body { padding-block: 28px 32px; }
  .sh-mega-grid { display: block; }
  .sh-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 20px; }
  .sh-cards > li { display: flex; }
  .sh-cards a { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: center; align-items: center; gap: 6px 10px; min-height: 92px; padding: 14px 14px 14px 16px; background: var(--sh-soft); transition: background .15s; }
  .sh-cards a:hover, .sh-cards a:focus-visible { background: #e8eef6; }
  .sh-cards a > span:last-child { display: contents; }
  .sh-ico { width: 22px; height: 22px; font-size: 22px; background: none; }
  .sh-cards strong { font-size: 16px; margin: 0; white-space: nowrap; }
  .sh-cards small { grid-column: 1 / -1; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1241px) and (max-width: 1420px) {
  .sh-cards { gap: 12px; }
  .sh-cards a { padding-inline: 14px 12px; }
  .sh-cards strong { font-size: 15px; }
  .sh-cards small { font-size: 12.5px; }
}

/* Dropdowns */
.sh-drop { position: absolute; top: 100%; left: 0; min-width: 260px; white-space: nowrap; background: #fff; border: 1px solid var(--sh-line); box-shadow: 0 20px 40px -16px rgba(22,22,63,.3); }
.sh-drop .sh-panel-body { padding: 12px 20px; }
.sh-drop--right { top: calc(100% + 14px); left: auto; right: 0; min-width: 300px; }
.sh-links a { display: block; padding: 8px 0; font-size: 15px; color: var(--sh-ink); transition: color .15s, transform .15s; }
.sh-links a:hover { color: var(--sh-blue); transform: translateX(3px); }

.sh-burger, .sh-drawer-search { display: none; }

/* ===== Mobile / tablet: full-width menu that opens under the bar ===== */
@media (max-width: 1240px) {
  .sh-hide-sm { display: none !important; }
  .sh-search input { width: 140px; }
  .sh-main { backdrop-filter: none; background: #fff; } /* backdrop-filter would trap the fixed menu */
  .sh-main > .sh-wrap, .sh.is-stuck .sh-main > .sh-wrap { min-height: 68px; justify-content: space-between; align-items: center; }
  .sh-logo img { height: 46px; }

  /* Burger that morphs into an X */
  .sh-burger { display: grid; place-items: center; width: 44px; height: 44px; margin-right: -10px; -webkit-tap-highlight-color: transparent; }
  .sh-burger-box { position: relative; display: block; width: 24px; height: 18px; }
  .sh-burger-box span { position: absolute; left: 0; top: 8px; width: 100%; height: 2px; background: var(--sh-ink); transition: transform .35s var(--sh-ease), opacity .2s linear; }
  .sh-burger-box span:nth-child(1) { transform: translateY(-8px); }
  .sh-burger-box span:nth-child(3) { transform: translateY(8px); }
  .sh-burger[aria-expanded="true"] .sh-burger-box span:nth-child(1) { transform: rotate(45deg); }
  .sh-burger[aria-expanded="true"] .sh-burger-box span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
  .sh-burger[aria-expanded="true"] .sh-burger-box span:nth-child(3) { transform: rotate(-45deg); }

  /* The menu sheet (sits above the live chat tab while open) */
  .sh.is-menu-open { z-index: 100000; }
  .sh-nav { position: fixed; left: 0; right: 0; top: var(--sh-bar-bottom, 68px); bottom: 0; display: block; background: #fff; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s var(--sh-ease), transform .25s var(--sh-ease), visibility 0s linear .25s; }
  .sh.is-menu-open .sh-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .sh-nav-in { display: flex; flex-direction: column; min-height: 100%; max-width: 640px; margin-inline: auto; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }

  /* Rows ease in one after another */
  .sh-nav-in > *, .sh-menu > .sh-item { opacity: 0; transform: translateY(10px); transition: opacity .3s var(--sh-ease), transform .3s var(--sh-ease); }
  .sh-nav-in > .sh-menu { opacity: 1; transform: none; }
  .sh.is-menu-open .sh-nav-in > *, .sh.is-menu-open .sh-menu > .sh-item { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 35ms + 80ms); }

  .sh-menu { flex-direction: column; margin: 0 !important; }
  .sh-menu > .sh-item { display: block; border-bottom: 1px solid var(--sh-line); }
  .sh-item, .sh-item:has(> .sh-mega) { position: static; }
  .sh-menu > .sh-item > .sh-trigger { width: 100%; justify-content: space-between; min-height: 58px; padding: 0 20px; font-size: 17px; }
  .sh-menu > .sh-item > .sh-trigger::after { display: none; }
  .sh-menu > .sh-item > .sh-trigger:hover { color: var(--sh-ink); }
  .sh-menu > .sh-item.is-open > .sh-trigger { color: var(--sh-blue); font-weight: 600; }
  .sh-chev { font-size: 18px; opacity: .7; }

  /* Accordions: height animates open and shut */
  .sh-panel, .sh-mega, .sh-drop, .sh-drop--right { position: static; display: grid; grid-template-rows: 0fr; white-space: normal; opacity: 1; transform: none; visibility: hidden; min-width: 0; background: var(--sh-soft); border: 0; box-shadow: none; transition: grid-template-rows .32s var(--sh-ease), visibility 0s linear .32s; }
  .sh-item.is-open > .sh-panel { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
  .sh-panel-in { overflow: hidden; min-height: 0; }
  .sh-mega .sh-panel-body, .sh-drop .sh-panel-body { max-width: none; margin: 0; padding: 6px 20px 14px; }
  .sh-links a { display: flex; align-items: center; min-height: 46px; padding: 0; font-size: 15px; }
  .sh-links a:hover { transform: none; }

  /* Products: icon + name rows */
  .sh-mega-grid { display: block; }
  .sh-eyebrow, .sh-promo, .sh-cards small { display: none; }
  .sh-cards { grid-template-columns: 1fr; gap: 0; }
  .sh-cards a { align-items: center; min-height: 52px; padding: 0; gap: 14px; }
  .sh-cards a:hover { background: none; }
  .sh-cards strong { font-size: 15px; font-weight: 500; margin: 0; }
  .sh-ico { width: 36px; height: 36px; font-size: 18px; background: #fff; border: 1px solid var(--sh-line); }

  /* Quote button + its links */
  .sh-cta { align-self: stretch; margin: 0; padding: 20px 20px 0; }
  .sh .sh-cta > .sh-btn { width: 100%; min-height: 54px; justify-content: space-between; padding: 0 20px; font-size: 16px; }
  .sh-cta > .sh-panel { background: #fff; }
  .sh-cta .sh-panel-body { padding: 4px 0 0; }
  .sh-cta .sh-links a { border-bottom: 1px solid var(--sh-line); }

}

@media (max-width: 600px) {
  .sh-search { display: none; }
  .sh-drawer-search { display: flex; align-items: center; margin: 16px 20px 8px; border: 1px solid var(--sh-line); padding: 2px 4px 2px 16px; background: var(--sh-soft); }
  .sh-drawer-search:focus-within { border-color: var(--sh-blue); background: #fff; }
  .sh-drawer-search input { all: unset; flex: 1; min-width: 0; font-size: 16px; padding-block: 11px; color: var(--sh-ink); }
  .sh-drawer-search button { display: grid; place-items: center; width: 44px; height: 44px; font-size: 18px; color: var(--sh-blue); }
  .sh-utility .sh-wrap { justify-content: center; min-height: 38px; }
  .sh-contact { gap: 4px 18px; font-size: 12px; }
  .sh-notice { font-size: 12px; }
}

.sh.is-switching *, .sh.is-switching *::after { transition: none !important; }

@media (prefers-reduced-motion: reduce) {
  .sh *, .sh *::before, .sh *::after { transition: none !important; }
}

/* Phones: a little more room at the screen edges, matching the page sections */
@media (max-width: 767px) {
  .sh-wrap { padding-inline: 16px; }
}

/* Desktop dropdowns: larger, bolder link text; each link is a box that takes the
   same tinted hover as the mega menu tiles. */
@media (min-width: 1241px) {
  .sh-drop { min-width: 280px; }
  .sh-drop .sh-panel-body { padding: 10px; }
  .sh-links li + li { margin-top: 2px; }
  .sh-links a { padding: 12px 16px; font-size: 16px; font-weight: 600; line-height: 1.3; color: var(--sh-ink); transition: background .15s, color .15s; }
  .sh-links a:hover, .sh-links a:focus-visible { background: #e8eef6; color: var(--sh-blue); transform: none; }
}
