/* Font for brand */
@import url('https://fonts.googleapis.com/css2?family=Alex+Brush&display=swap');

.alex-brush {
  font-family: 'Alex Brush', cursive;
  font-size: 2rem;
  color: #004AAA;
  text-decoration: none;
}

/* NAV BAR ROOT */
.navbar {
  background-color: white;
  border-bottom: 2px solid #FF940E;
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between; /* logo left, links right */
  padding: 1rem 2rem;
  box-sizing: border-box;
}

/* Brand/logo */
.navbar .logo a {
  display: inline-block;
}

/* Hamburger (hidden on desktop) */
.hamburger {
  display: none;
  font-size: 2rem;
  cursor: pointer;
}

/* Links container (desktop: horizontal row) */
.nav-links {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Individual links */
.nav-link {
  text-decoration: none;
  color: #004AAA;
  font-weight: bold;
  padding: 0.5rem 1rem;
  display: inline-block;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  background-color: #FFEBD2;
}

/* Dropdown */
.dropdown {
  position: relative;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  padding: 0.4rem 0;
  z-index: 1001;
}

.dropdown-menu li {
  list-style: none;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #004AAA;
  text-decoration: none;
  padding: 0.6rem 1rem;
}

.dropdown:hover > .dropdown-menu {
  display: block;
}

/* Responsive (mobile) */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  /* Stack nav items in a slide-down panel */
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;          /* hidden until toggled */
    flex-direction: column; /* vertical */
    background-color: #fff;
    border-bottom: 2px solid #FF940E;
    padding: 0.75rem 0;
  }

  /* Shown when toggled */
  .nav-links.show {
    display: flex;
  }

  /* Full-width touch-friendly links */
  .nav-link {
    padding: 0.9rem 1.2rem;
    width: 100%;
  }

  /* Mobile dropdown: reveal on tap (we’ll toggle via JS) */
  .dropdown.open > .dropdown-menu {
    position: static;    /* flow inside the column */
    display: block;
    box-shadow: none;
    border-top: 1px solid #eee;
    margin-top: 0.25rem;
  }
}

/* Utility */
.hidden { display: none; }
