/* Navbar Styles */
.navbar {
  background-color: var(--color-primary);
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 0 20px;
  box-sizing: border-box;
}

.navbar-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

/* Styles for the banner image */
.banner-image {
    max-width: 100%;  /* Ensures the image does not grow beyond the container width */
    height: auto;  /* Maintains aspect ratio */
    max-height: 60px;  /* Prevents the image from exceeding a specific height, adjust as needed */
}

/* Navbar Logo */
.navbar-logo {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 2em;
    font-weight: bold;
}

/* Navbar Menu */
.nav-menu {
    list-style: none;
    display: flex; /* Display the nav items on larger screens */
    gap: 30px;
    margin: 0;
    align-items: center; /* Align items vertically */
}

/* Nav Items */
.nav-item {
    margin: 0;
}

.nav-link {
  text-decoration: none;
  color: white;
  font-size: 1.05rem;
  transition: color 0.3s;
}
.nav-link:hover {
  color: var(--color-accent);
}

/* Hamburger Menu Button */
.navbar-toggle {
    display: none; /* Hide by default on larger screens */
    flex-direction: column;
    cursor: pointer;
    height: 75px; /* Same height as navbar */
    width: 75px; /* Fixed width to create a square section */
    align-items: center;
    justify-content: center;
    background-color: var(--color-primary); /* Deep blue for the button background */
    border: none;
    position: absolute; /* Set absolute positioning */
    right: 20px; /* Align it within the padding of the navbar */
    top: 0;
    z-index: 1100; /* Make sure it stays above other elements */
}

.bar {
    background-color: var(--color-neutral); /* White color to contrast with the blue background */
    height: 0.2rem;
    width: 1.6rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

/* Change hamburger to 'X' when open */
.navbar-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg) translate(7.5px, 7.5px);
}

.navbar-toggle.open .bar:nth-child(2) {
    opacity: 0;
}

.navbar-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg) translate(7.5px, -7.5px);
}

/* Mobile Styles */
@media (max-width: 768px) {
  /* Turn the menu into a left drawer */
  .nav-menu {
    display: flex;                 /* keep your column layout from before */
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;                 /* full height */
    width: 280px;                  /* drawer width */
    padding: 75px 16px 24px;       /* leave room for fixed navbar at top */
    background: var(--color-secondary);
    box-shadow: 2px 0 16px rgba(0,0,0,.18);
    transform: translateX(-100%);  /* hidden to the left */
    transition: transform .28s ease-out;
    z-index: 1200;                 /* above navbar */
  }

  /* show when active */
  .nav-menu.active {
    transform: translateX(0);
  }

  /* make links look good on light drawer */
  .nav-menu .nav-link {
    display: block;
    width: 100%;
    padding: 12px 8px;
    color: #1f2937;               /* dark text on light bg */
    border-radius: 8px;
  }
  .nav-menu .nav-link:hover {
    background: #f3f4f6;
    color: var(--color-primary);
  }

  /* Backdrop behind the drawer */
  .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 1100;                /* below drawer, above page */
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  .nav-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  /* Keep the hamburger visible above everything */
  .navbar-toggle {
    display: flex;
    z-index: 1300;
  }
}