/* Synopticom Header Widget styles — scoped to widget root */

.synopticom-header {
  --syn-coral: #CE6452;
  --syn-coral-dark: #A54F41;
  --syn-coral-xpal: #fef7f6;
  --syn-ink: #383838;
  --syn-ink-mid: #606060;
  --syn-border: #ecddd9;
  --syn-max: 1240px;
  --syn-gut: clamp(1.25rem, 4vw, 3.5rem);
  --syn-font: 'DM Sans', system-ui, sans-serif;
  --syn-nav-h: clamp(56px, 8vw, 66px);
  --syn-logo-max-w: clamp(96px, 22vw, 140px);
  --syn-logo-max-h: clamp(20px, 3vw, 26px);
  --syn-header-offset: var(--syn-nav-h);
  --syn-panel-max-w: 90vw;
}

.synopticom-header a {
  color: inherit;
  text-decoration: none;
}

@keyframes syn-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}

.synopticom-header .ann {
  background: var(--syn-coral);
  color: rgba(255, 255, 255, 0.92);
  text-align: center;
  padding: 0.52rem 1.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.5;
}

.synopticom-header .ann a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.synopticom-header .ann-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  animation: syn-blink 2s ease-in-out infinite;
}

.synopticom-header .nav-wrap {
  /* position: relative + a high local z-index keeps the inner mega-menu
     dropdown (.nav-drop) above sibling chrome. The actual escape from
     Blocksy's outer #header stacking context is handled by Layer 9 at
     the bottom of this file (the outer #header itself is lifted there).

     border-bottom (#ecddd9) is the visible header divider. An opaque
     white bottom cap seals the glass seam against .sub-nav during scroll
     (v1.0.38). Sub-nav pins at var(--syn-header-offset) with JS sync to
     nav-wrap bottom when stuck. */
  position: relative;
  z-index: 9999;
  background:
    linear-gradient(#fff, #fff) bottom / 100% 3px no-repeat,
    rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid var(--syn-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.synopticom-header .syn-sticky-sentinel {
  height: 1px;
  margin-bottom: -1px;
  pointer-events: none;
  visibility: hidden;
}

.synopticom-header .syn-sticky-spacer {
  pointer-events: none;
}

.synopticom-header .nav-wrap.is-stuck {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background:
    linear-gradient(#fff, #fff) bottom / 100% 3px no-repeat,
    rgba(255, 255, 255, 0.97);
}

.synopticom-header nav {
  max-width: var(--syn-max);
  margin: 0 auto;
  padding: 0 var(--syn-gut);
  height: var(--syn-nav-h);
  min-height: var(--syn-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.synopticom-header .nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.synopticom-header .nav-logo img,
.synopticom-header .nav-logo svg {
  display: block;
  max-height: var(--syn-logo-max-h);
  max-width: 100%;
  width: auto;
  height: auto;
}

.synopticom-header .nav-links {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  list-style: none;
  flex: 1;
  justify-content: center;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.synopticom-header .nav-links > li {
  position: relative;
  list-style: none;
  margin: 0 !important;
  padding: 0 !important;
}

.synopticom-header .nav-links > li.menu-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.synopticom-header .nav-links > li > a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--syn-ink-mid);
  padding: 0.42rem 0.82rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.16s, background 0.16s;
  white-space: nowrap;
  margin: 0 !important;
  text-decoration: none !important;
}

.synopticom-header .nav-links > li > a:hover,
.synopticom-header .nav-links > li.open > a {
  color: var(--syn-coral);
  background: var(--syn-coral-xpal);
}

.synopticom-header .nav-links > li > a.active,
.synopticom-header .nav-links > li.current-menu-item > a,
.synopticom-header .nav-links > li.current-menu-ancestor > a {
  color: var(--syn-coral);
  background: var(--syn-coral-xpal);
  font-weight: 700;
}

.synopticom-header .nav-links > li > a.dot-item::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--syn-coral);
  border-radius: 50%;
  margin-left: 5px;
  vertical-align: 3px;
}

.synopticom-header .nav-chev {
  display: inline-block;
  width: 10px;
  height: 6px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.synopticom-header .nav-chev svg {
  display: block;
}

.synopticom-header .nav-links > li:hover .nav-chev,
.synopticom-header .nav-links > li.open .nav-chev {
  transform: rotate(180deg);
}

.synopticom-header .nav-drop {
  display: block;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: #fff;
  border: 1px solid var(--syn-border);
  border-radius: 10px;
  box-shadow: 0 8px 40px rgba(56, 56, 56, 0.12);
  padding: 1.25rem 1.25rem 0.75rem;
  min-width: 220px;
  /* Highest z-index in the nav-wrap stacking context (which itself sits at
     z-index 9999, above .sub-nav at 250). 10000 is belt-and-braces so the
     dropdown is unambiguously on top of any sibling inside nav-wrap. */
  z-index: 10000 !important;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  margin-top: 0;
  padding-top: calc(8px + 1.25rem);
  will-change: auto;
}

.synopticom-header .nav-links > li .nav-drop {
  transition-delay: 0s;
}

.synopticom-header .nav-links > li:not(:hover):not(.open) .nav-drop {
  transition-delay: 0.08s;
}

.synopticom-header .nav-drop::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

.synopticom-header .nav-links > li:hover .nav-drop,
.synopticom-header .nav-links > li.open .nav-drop {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

.synopticom-header .nav-drop-cols {
  display: flex;
  gap: 0;
}

.synopticom-header .nav-drop-col {
  min-width: 190px;
}

.synopticom-header .nav-drop-col + .nav-drop-col {
  border-left: 1px solid #f4ece9;
  padding-left: 1.1rem;
  margin-left: 1.1rem;
}

.synopticom-header .nd-head {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #909090;
  margin: 0 0 0.55rem 0.1rem;
  padding-top: 0.1rem;
}

.synopticom-header .nd-item {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  transition: background 0.15s;
}

.synopticom-header .nd-item:hover {
  background: #fef7f6;
}

.synopticom-header .nd-item-name {
  font-size: 0.86rem;
  font-weight: 600;
  color: #383838;
  line-height: 1.3;
}

.synopticom-header .nd-item-sub {
  font-size: 0.75rem;
  color: #909090;
  margin-top: 1px;
  line-height: 1.3;
}

.synopticom-header .nd-item:hover .nd-item-name {
  color: #ce6452;
}

.synopticom-header .nd-item.active {
  background: var(--syn-coral-xpal);
}

.synopticom-header .nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.synopticom-header .btn-ghost {
  font-family: var(--syn-font);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--syn-ink-mid);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem 0.5rem;
  transition: color 0.16s;
}

.synopticom-header .btn-ghost:hover {
  color: var(--syn-coral);
}

.synopticom-header .btn-demo {
  font-family: var(--syn-font);
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  background: var(--syn-coral);
  padding: 0.58rem 1.3rem;
  border-radius: 7px;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(206, 100, 82, 0.32);
  transition: background 0.16s, transform 0.12s;
}

.synopticom-header .btn-demo:hover {
  background: var(--syn-coral-dark);
  transform: translateY(-1px);
}

/* Mobile navigation — NOT in original static HTML. */
.synopticom-header .syn-mobile-toggle-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--syn-border);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
}

.synopticom-header .syn-mobile-toggle-btn span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--syn-ink);
  position: relative;
}

.synopticom-header .syn-mobile-toggle-btn span::before,
.synopticom-header .syn-mobile-toggle-btn span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--syn-ink);
  transition: transform 0.2s;
}

.synopticom-header .syn-mobile-toggle-btn span::before {
  top: -6px;
}

.synopticom-header .syn-mobile-toggle-btn span::after {
  top: 6px;
}

.synopticom-header.is-mobile-open .syn-mobile-toggle-btn span {
  background: transparent;
}

.synopticom-header.is-mobile-open .syn-mobile-toggle-btn span::before {
  transform: translateY(6px) rotate(45deg);
}

.synopticom-header.is-mobile-open .syn-mobile-toggle-btn span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.synopticom-header .syn-mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 350;
  pointer-events: none;
}

.synopticom-header.is-mobile-open .syn-mobile-overlay {
  display: block;
  pointer-events: auto;
}

.synopticom-header .syn-mobile-backdrop {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(38, 38, 38, 0.45);
  cursor: pointer;
  z-index: 355;
}

.synopticom-header .syn-mobile-panel {
  display: none;
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  width: var(--syn-panel-max-w);
  height: 100dvh;
  margin: 0;
  background: #fff;
  z-index: 360;
  overflow: hidden;
  border-top: none;
  border-radius: 12px 0 0 12px;
  flex-direction: column;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.12);
}

.synopticom-header.is-mobile-open .syn-mobile-panel {
  display: flex;
}

.synopticom-header .syn-mobile-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  padding: 0.65rem var(--syn-gut);
  border-bottom: 1px solid #f4ece9;
  background: #fff;
}

.synopticom-header .syn-mobile-panel-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #909090;
}

.synopticom-header .syn-mobile-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--syn-border);
  border-radius: 8px;
  background: #fff;
  color: var(--syn-ink);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.16s, border-color 0.16s, background 0.16s;
}

.synopticom-header .syn-mobile-close-btn:hover {
  color: var(--syn-coral);
  border-color: #ecddd9;
  background: var(--syn-coral-xpal);
}

.synopticom-header .syn-mobile-close-btn svg {
  display: block;
}

.synopticom-header .syn-mobile-panel-inner {
  flex: 1;
  overflow-y: auto;
  padding: 1rem var(--syn-gut) 1.5rem;
  -webkit-overflow-scrolling: touch;
}

.synopticom-header .syn-mobile-panel-actions {
  display: none;
  flex-shrink: 0;
  padding: 1rem var(--syn-gut) calc(1rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #f4ece9;
  background: #fff;
  gap: 0.65rem;
}

.synopticom-header.syn-cta-in-panel .syn-mobile-panel-actions {
  display: flex;
  flex-direction: column;
}

.synopticom-header .syn-mobile-panel-btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

.synopticom-header .syn-mobile-panel-btn.btn-demo {
  padding: 0.72rem 1rem;
}

.synopticom-header .syn-mobile-panel-btn.btn-ghost {
  padding: 0.65rem 1rem;
}

.synopticom-header .syn-mobile-nav-list,
.synopticom-header .syn-mobile-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

.synopticom-header .syn-mobile-nav-list > li {
  border-bottom: 1px solid #f4ece9;
}

.synopticom-header .syn-mobile-nav-list > li > a,
.synopticom-header .syn-mobile-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.9rem 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--syn-ink);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--syn-font);
  text-align: left;
}

.synopticom-header .syn-mobile-sub {
  display: none;
  padding: 0 0 0.75rem 0.75rem;
}

.synopticom-header .syn-mobile-sub.is-open {
  display: block;
}

.synopticom-header .syn-mobile-sub a.syn-mobile-sub-item {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 7px;
  text-decoration: none;
  transition: background 0.15s;
}

.synopticom-header .syn-mobile-sub a.syn-mobile-sub-item:hover {
  background: #fef7f6;
}

.synopticom-header .syn-mobile-sub-name {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: #383838;
  line-height: 1.3;
}

.synopticom-header .syn-mobile-sub a.syn-mobile-sub-item:hover .syn-mobile-sub-name {
  color: #ce6452;
}

.synopticom-header .syn-mobile-sub-desc {
  display: block;
  font-size: 0.78rem;
  color: #909090;
  margin-top: 2px;
  line-height: 1.35;
}

.synopticom-header .syn-mobile-group-head-item {
  border-bottom: none;
  list-style: none;
}

.synopticom-header .syn-mobile-group-head {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #909090;
  padding: 0.85rem 0 0.35rem;
}

.synopticom-header .syn-mobile-toggle[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.synopticom-header .syn-mobile-toggle svg {
  transition: transform 0.2s;
  flex-shrink: 0;
}

@media (max-width: 1024px) {
  .synopticom-header .nav-links > li > a {
    font-size: 0.8125rem;
    padding: 0.38rem 0.62rem;
  }

  .synopticom-header .btn-demo {
    font-size: 0.8125rem;
    padding: 0.5rem 0.95rem;
  }

  .synopticom-header .btn-ghost {
    font-size: 0.8125rem;
  }
}

@media (max-width: 900px) {
  .synopticom-header .nav-links {
    display: none;
  }

  .synopticom-header .syn-mobile-toggle-btn {
    display: inline-flex;
  }

  .synopticom-header.syn-cta-in-panel .nav-actions {
    display: none;
  }

  .synopticom-header.syn-cta-in-header .nav-actions .btn-ghost {
    display: none;
  }

  .synopticom-header.syn-cta-in-header .nav-actions .btn-demo {
    font-size: clamp(0.72rem, 2.8vw, 0.8125rem);
    padding: 0.45rem clamp(0.55rem, 2.5vw, 0.85rem);
    white-space: nowrap;
  }
}

@media (min-width: 901px) {
  .synopticom-header .syn-mobile-overlay {
    display: none !important;
  }
}

body.synopticom-mobile-nav-open {
  overflow: hidden;
}

/* Theme overrides (e.g. Blocksy) — reset wp_nav_menu spacing in header nav */
.elementor-widget-synopticom-header .synopticom-header .nav-links,
.elementor-location-header .synopticom-header .nav-links,
header .synopticom-header .nav-links {
  margin: 0 !important;
  padding: 0 !important;
}

.elementor-widget-synopticom-header .synopticom-header .nav-links > li,
.elementor-widget-synopticom-header .synopticom-header .nav-links .menu-item,
.elementor-location-header .synopticom-header .nav-links > li,
.elementor-location-header .synopticom-header .nav-links .menu-item,
header .synopticom-header .nav-links > li,
header .synopticom-header .nav-links .menu-item {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.elementor-widget-synopticom-header .synopticom-header .nav-links > li > a,
.elementor-location-header .synopticom-header .nav-links > li > a,
header .synopticom-header .nav-links > li > a {
  margin: 0 !important;
  text-decoration: none !important;
}

.elementor-location-header .synopticom-header .nav-wrap.is-stuck,
.elementor-widget-synopticom-header .synopticom-header .nav-wrap.is-stuck {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 9999 !important;
}

/* When mobile burger menu is open, drop all header content BEHIND the overlay
   backdrop (z-index 355) so the header is visually darkened along with the page. */
.synopticom-header.is-mobile-open .ann,
.synopticom-header.is-mobile-open .nav-wrap {
  position: relative;
  z-index: 1;
}

.synopticom-header.is-mobile-open .nav-wrap.is-stuck {
  z-index: 1;
}

.elementor-location-header .synopticom-header.is-mobile-open .nav-wrap.is-stuck,
.elementor-widget-synopticom-header .synopticom-header.is-mobile-open .nav-wrap.is-stuck {
  z-index: 1 !important;
}

.elementor-location-header,
.elementor-location-header > .elementor,
.elementor-location-header .e-con,
.elementor-widget-synopticom-header,
.elementor-widget-synopticom-header > .elementor-widget-container,
.elementor-widget-synopticom-header .e-con {
  overflow: visible !important;
}

.elementor-widget-synopticom-header .synopticom-header .nav-links > li > a:hover,
.elementor-widget-synopticom-header .synopticom-header .nav-links > li.open > a,
.elementor-location-header .synopticom-header .nav-links > li > a:hover,
.elementor-location-header .synopticom-header .nav-links > li.open > a,
header .synopticom-header .nav-links > li > a:hover,
header .synopticom-header .nav-links > li.open > a {
  color: var(--syn-coral) !important;
  background: var(--syn-coral-xpal) !important;
}

.elementor-widget-synopticom-header .synopticom-header .nav-links > li > a.active,
.elementor-widget-synopticom-header .synopticom-header .nav-links > li.current-menu-item > a,
.elementor-widget-synopticom-header .synopticom-header .nav-links > li.current-menu-ancestor > a,
.elementor-location-header .synopticom-header .nav-links > li > a.active,
.elementor-location-header .synopticom-header .nav-links > li.current-menu-item > a,
.elementor-location-header .synopticom-header .nav-links > li.current-menu-ancestor > a,
header .synopticom-header .nav-links > li > a.active,
header .synopticom-header .nav-links > li.current-menu-item > a,
header .synopticom-header .nav-links > li.current-menu-ancestor > a {
  color: var(--syn-coral) !important;
  background: var(--syn-coral-xpal) !important;
  font-weight: 700 !important;
}

.elementor-widget-synopticom-header .synopticom-header .nd-item:hover,
.elementor-location-header .synopticom-header .nd-item:hover,
header .synopticom-header .nd-item:hover {
  background: #fef7f6 !important;
}

.elementor-widget-synopticom-header .synopticom-header .nd-item.active,
.elementor-location-header .synopticom-header .nd-item.active,
header .synopticom-header .nd-item.active {
  background: var(--syn-coral-xpal) !important;
}

.elementor-widget-synopticom-header .synopticom-header .nd-item-name,
.elementor-location-header .synopticom-header .nd-item-name,
header .synopticom-header .nd-item-name {
  color: #383838 !important;
  font-weight: 600 !important;
}

.elementor-widget-synopticom-header .synopticom-header .nd-item:hover .nd-item-name,
.elementor-location-header .synopticom-header .nd-item:hover .nd-item-name,
header .synopticom-header .nd-item:hover .nd-item-name {
  color: #ce6452 !important;
}

.synopticom-header .syn-mobile-nav-list > li > a.active {
  color: var(--syn-coral);
  font-weight: 700;
}

/* ──────────────────────────────────────────────────────────────────────
   Layer 9 — outer-header escape hatch
   ──────────────────────────────────────────────────────────────────────
   Blocksy's outer <header id="header"> has position: relative; z-index: 50
   and creates an isolated stacking context. Everything inside it —
   including .nav-wrap (z-index 9999) and .nav-drop (z-index 10000) — is
   trapped at the parent's effective z-index of 50 in the body context.
   The .sub-nav (z-index 250 in <main>) and hero sections therefore paint
   ABOVE the entire header and the dropdown.

   Lift the outer header to a value that beats every in-page sticky
   widget and Elementor sticky section. The dropdown inside it can then
   actually rise above the rest of the page.
   ────────────────────────────────────────────────────────────────────── */
header#header,
header.ct-header,
body > header[role="banner"],
.site > header,
#page > header {
  z-index: 9999 !important;
  position: relative !important;
}

/* NOTE: Earlier versions tried to drop #header to z-index: 1 when the
   mobile panel is open, but that pushes the entire header BELOW the
   in-page .sub-nav (z-index 250 in <main>), which then renders ON TOP of
   the open mobile panel — exactly the bug we want to avoid.

   The correct layering is:
     • #header stays at z-index 9999 in ALL states (including mobile-open)
       so its descendants outrank .sub-nav (250) and any other page chrome.
     • Inside #header, .ann + .nav-wrap drop to z-index 1 (already declared
       further up this file under `.synopticom-header.is-mobile-open .ann`
       and `.synopticom-header.is-mobile-open .nav-wrap`). This puts the
       header chrome BEHIND the .syn-mobile-backdrop (355) and panel (360),
       which still appear above page content because the whole #header
       stacking context is at 9999.
   No outer-header z-index override here — the inner rules handle it. */

/* ──────────────────────────────────────────────────────────────────────
   Layer 9.5 — sub-nav border fallback (belt-and-braces)
   ──────────────────────────────────────────────────────────────────────
   Ensures the light-grey divider between sub-nav and page content stays
   visible even if site.css / late-critical.css fail to enqueue. */
body .sub-nav {
  border-bottom: 1px solid #e8e8e8 !important;
}
