/* topBar.css */
/* ------------------------------------------
   TOP BAR (utility strip, hero strip, main nav)
------------------------------------------ */

/* Variables used only by top bar / hero */
:root {
  --hero-bg-position-y: 85%;
  --hero-overlay-start-alpha: 0.6;
  --hero-overlay-end-alpha: 0.3;
}

.top-bar {
  width: 100%;
}

/* Utility strip (35px) */
.utility-strip {
  background-color: var(--brand-blue);
  color: var(--text-light);
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 16px;
  font-size: 0.875rem;
}

.utility-menu {
  display: flex;
  gap: 16px;
  list-style: none;
}

.utility-menu a {
  color: var(--text-light);
  text-decoration: none;
  white-space: nowrap;
}

.utility-menu a:hover,
.utility-menu a:focus {
  text-decoration: underline;
}

/* Hero strip (150px high, background image + blue overlay + logo) */
.hero-strip {
  position: relative;
  height: 150px;
  width: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 16px;

  /* Replace with your landscape image */
  background-image: url("../art/G-ForeensicBanner_2048x854.jpg");
  background-size: cover;
  background-position: center var(--hero-bg-position-y);
}

.hero-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
/*
    rgba(11, 59, 89, var(--hero-overlay-start-alpha)),
    rgba(11, 59, 89, var(--hero-overlay-end-alpha))
*/
        rgba(50, 120, 225, var(--hero-overlay-start-alpha)),
        rgba(50, 120, 225, var(--hero-overlay-end-alpha))

  );
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  margin-left: 32px; /* nudge logo to the right */
}

.logo {
  max-height: 80px;
  width: auto;
  display: block;
}

/* Main navigation strip (50px) */
.main-nav-strip {
  background-color: var(--brand-blue);
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  position: relative;
}

.main-nav {
  width: auto;
}

.main-menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  color: var(--text-light);
}

.main-menu a {
  color: var(--text-light);
  text-decoration: none;
  font-size: 1.15rem; /* increased size */
  white-space: nowrap;
}

.main-menu a:hover,
.main-menu a:focus {
  text-decoration: underline;
}

/* Hamburger button (hidden on large screens) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 4px 0;
  background-color: var(--text-light);
}

/* ------------------------------------------
   Responsive behavior for top bar
------------------------------------------ */

@media (max-width: 768px) {
  .hero-strip {
    height: 130px;
  }

  .logo {
    max-height: 60px;
  }

  .main-nav-strip {
    height: auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .main-nav {
    display: none;
    width: 100%;
    margin-top: 8px;
  }

  .main-nav.open {
    display: block;
  }

  .main-menu {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
  }

  .main-menu a {
    font-size: 1rem;
  }
}
