/* assets/css/header.css
    header1 + header2 styles */

/* Base Header1 styles (desktop + general) */

#header1 .menu-links {
  top: var(--header1-height);
  /* …rest of styles… */
}

#header1 {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: var(--sapphire-sky);
  display: flex;
  color: white;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  z-index: 1000;
}

.header-tagline {
  position: relative;
  z-index: 1001; /* above header background */
  color: white;
  text-align: center;
  padding: 1rem;
}

/* Branding row */
#header1 .branding {
  display: inline-block;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

#header1 .branding img {
  max-height: 50px;
  width: auto;
}

/* Style the hamburger icon consistently */
#header1 .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  padding: 0;
  border: 0;
  background: var(--graphite);
  color: white;
  cursor: pointer;
}
#header1 .menu-toggle svg { display: block; }

#header1 a {
  color: white;
  text-decoration: none; /* optional: removes underline */
}

#header1 a:hover {
  color: #ddd; /* optional: lighter shade on hover */
}

/* Base: present but invisible (no layout shift) */
#header1 .menu-links { top: var(--header1-height);
  position: absolute;
  right: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  width: 220px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  border: 1px solid #ddd;

  /* visibility pattern */
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s .18s;
  /* ensure it stacks above header2 (which has z-index: 999) */
  z-index: 1001;
  will-change: opacity, transform;
}

/* Active: visible */
#header1 .menu-links.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}

/* Items inside */
#header1 .menu-links li { display: block; }
#header1 .menu-links a {
  color: #000;
  text-decoration: none;
  display: block;
  padding: 0.5rem 1rem;
}
#header1 .menu-links a:hover { background: var(--platinum); color: var(--graphite); }
/* Show menu when hovering over the nav or the toggle button */
#header1 nav:hover .menu-links,
#header1 .menu-toggle:hover + .menu-links {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease, visibility 0s;
}
