/* ============================================================
 * 17. HEADER — fixed glassmorphism + animation + responsive
 * ============================================================ */
#masthead.site-header {
  position: fixed;
  top: 20px; left: 0; right: 0;
  width: calc(100% - 40px); max-width: 1400px; margin: 0 auto;
  z-index: 9999;
  background: linear-gradient(135deg, rgba(255,255,255,.95) 0%, rgba(248,250,252,.95) 100%);
  backdrop-filter: blur(25px) saturate(180%);
  -webkit-backdrop-filter: blur(25px) saturate(180%);
  border-radius: 16px;
  box-shadow:
    0 8px 32px rgba(0,0,0,.12),
    0 2px 8px rgba(0,139,146,.15),
    0 0 0 1px rgba(255,255,255,.3);
  border: 1px solid rgba(0,139,146,.1);
  transition: all .4s cubic-bezier(.25,.8,.25,1);
  animation: headerFloat .8s cubic-bezier(.25,.8,.25,1) forwards;
}
#masthead.site-header:hover {
  transform: translateY(-2px);
  box-shadow:
    0 12px 40px rgba(0,0,0,.15),
    0 4px 12px rgba(0,139,146,.2),
    0 0 0 1px rgba(255,255,255,.4);
}
#masthead.site-header .custom-logo {
  transition: all .3s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,.05));
}

.site-logo.image-logo .custom-logo,
.site-logo.image-logo .custom-logo-link .custom-logo
{ width: 250px !important; height: auto; }


#masthead.site-header .primary-navigation ul a,
#masthead.site-header .primary-navigation ul.primary-menu a {
  transition: all .3s ease;
}
#masthead.site-header #menu-item-25890 > a {
  transition: all .3s cubic-bezier(.25,.8,.25,1);
  box-shadow: 0 4px 12px rgba(0,139,146,.25);
  border-radius: 12px;
}
#masthead.site-header #menu-item-25890 > a:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,139,146,.35);
}
#masthead.site-header .extras-navigation .toggle-icon {
  transition: all .3s ease;
}
#masthead.site-header .site-branding .container {
  padding-left: 24px;
  padding-right: 24px;
}

@keyframes headerFloat {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
  #masthead.site-header {
    width: calc(100% - 24px); top: 16px; border-radius: 14px;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  }
  #masthead.site-header .site-branding .container {
    padding-left: 20px; padding-right: 20px;
  }
}
@media (max-width: 767px) {
  #masthead.site-header {
    width: calc(100% - 16px); top: 12px; border-radius: 12px;
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
  }
  #masthead.site-header:hover { transform: translateY(-1px); }
  #masthead.site-header .site-branding .branding-wrap { transition: padding .3s ease; }
  #masthead.site-header .site-branding .container {
    padding-left: 16px; padding-right: 16px;
  }
  .site-logo.image-logo .custom-logo, .site-logo.image-logo .custom-logo-link .custom-logo { max-width: 165px !important; height: auto; }
  .site-header .site-branding .branding-wrap .primary-navigation { width: 100%; border-radius: 5px; }
}
