
/* V4.1 menu visibility + lead widget */
:root{ --top-banner-offset: 44px; }

body{ padding-top: 0 !important; }

header,
nav,
.site-header,
.top-nav,
.navbar,
[role="navigation"]{
  position: relative;
  z-index: 10001 !important;
}

header,
.site-header,
.top-nav,
.navbar{
  margin-top: var(--top-banner-offset) !important;
}

@media (max-width: 768px){
  :root{ --top-banner-offset: 54px; }
  header,
  .site-header,
  .top-nav,
  .navbar{
    margin-top: var(--top-banner-offset) !important;
  }
}

/* Lead widget */
#lead-form-v41{
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: min(320px, calc(100vw - 24px));
  z-index: 10002;
  border-radius: 18px;
  padding: 16px;
  background: rgba(11,11,11,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255,215,0,0.22);
  box-shadow: 0 14px 36px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,215,0,0.05) inset;
  color: #f5f5f5;
  font-family: inherit;
}
#lead-form-v41 .lead-title{
  color: #FFD700;
  font-weight: 700;
  font-size: 16px;
  line-height: 1.2;
  margin-bottom: 6px;
}
#lead-form-v41 .lead-sub{
  color: rgba(255,255,255,0.78);
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 12px;
}
#lead-form-v41 .lead-row{
  display: flex;
  gap: 8px;
}
#lead-form-v41 input{
  flex: 1;
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: #fff;
  padding: 11px 12px;
  outline: none;
}
#lead-form-v41 input::placeholder{ color: rgba(255,255,255,0.5); }
#lead-form-v41 button{
  border: 0;
  border-radius: 12px;
  padding: 11px 14px;
  background: linear-gradient(180deg, #ffe58a 0%, #FFD700 100%);
  color: #111;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
#lead-form-v41 .lead-mini{
  margin-top: 10px;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
}
#lead-form-v41 .lead-close{
  position: absolute;
  top: 8px;
  right: 10px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 18px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 4px;
}
@media (max-width: 768px){
  #lead-form-v41{
    right: 10px;
    bottom: 10px;
    width: calc(100vw - 20px);
    padding: 14px;
    border-radius: 16px;
  }
  #lead-form-v41 .lead-row{
    flex-direction: column;
  }
  #lead-form-v41 button{
    width: 100%;
  }
}


/* V4.7 auto-dynamic spacing */
:root{
  --dynamic-topbar-height: 0px;
}

html, body{
  scroll-padding-top: calc(var(--dynamic-topbar-height) + 16px);
}

header,
.site-header,
.top-nav,
.navbar{
  margin-top: var(--dynamic-topbar-height) !important;
}

@media (max-width: 768px){
  header,
  .site-header,
  .top-nav,
  .navbar{
    margin-top: var(--dynamic-topbar-height) !important;
  }
}
